]>
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. | |
dd8df4fc | 4 | # Generated by GNU Autoconf 2.59 for wxWidgets 2.7.0. |
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' | |
dd8df4fc VZ |
273 | PACKAGE_VERSION='2.7.0' |
274 | PACKAGE_STRING='wxWidgets 2.7.0' | |
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" | |
bcaab0f9 | 316 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR ac_ct_AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP ac_ct_STRIP RESCOMP ac_ct_RESCOMP DLLTOOL ac_ct_DLLTOOL IF_GNU_MAKE LN_S LNDIR CP_PR CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GSTREAMER_CFLAGS GSTREAMER_LIBS GST_INSPECT CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW_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_WINCE_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC CPPUNIT_CONFIG LIBOBJS LTLIBOBJS' |
a848cd7e SC |
317 | ac_subst_files='' |
318 | ||
319 | # Initialize some variables set by options. | |
320 | ac_init_help= | |
321 | ac_init_version=false | |
322 | # The variables have the same names as the options, with | |
323 | # dashes changed to underlines. | |
324 | cache_file=/dev/null | |
325 | exec_prefix=NONE | |
326 | no_create= | |
327 | no_recursion= | |
328 | prefix=NONE | |
329 | program_prefix=NONE | |
330 | program_suffix=NONE | |
331 | program_transform_name=s,x,x, | |
332 | silent= | |
333 | site= | |
334 | srcdir= | |
335 | verbose= | |
336 | x_includes=NONE | |
337 | x_libraries=NONE | |
338 | ||
339 | # Installation directory options. | |
340 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
341 | # and all the variables that are supposed to be based on exec_prefix | |
342 | # by default will actually change. | |
343 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
344 | bindir='${exec_prefix}/bin' | |
345 | sbindir='${exec_prefix}/sbin' | |
346 | libexecdir='${exec_prefix}/libexec' | |
347 | datadir='${prefix}/share' | |
348 | sysconfdir='${prefix}/etc' | |
349 | sharedstatedir='${prefix}/com' | |
350 | localstatedir='${prefix}/var' | |
351 | libdir='${exec_prefix}/lib' | |
352 | includedir='${prefix}/include' | |
353 | oldincludedir='/usr/include' | |
354 | infodir='${prefix}/info' | |
355 | mandir='${prefix}/man' | |
356 | ||
357 | ac_prev= | |
358 | for ac_option | |
359 | do | |
360 | # If the previous option needs an argument, assign it. | |
361 | if test -n "$ac_prev"; then | |
362 | eval "$ac_prev=\$ac_option" | |
363 | ac_prev= | |
364 | continue | |
365 | fi | |
366 | ||
367 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
368 | ||
369 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
370 | ||
371 | case $ac_option in | |
372 | ||
373 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
374 | ac_prev=bindir ;; | |
375 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
376 | bindir=$ac_optarg ;; | |
377 | ||
378 | -build | --build | --buil | --bui | --bu) | |
379 | ac_prev=build_alias ;; | |
380 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
381 | build_alias=$ac_optarg ;; | |
382 | ||
383 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
384 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
385 | ac_prev=cache_file ;; | |
386 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
387 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
388 | cache_file=$ac_optarg ;; | |
389 | ||
390 | --config-cache | -C) | |
391 | cache_file=config.cache ;; | |
392 | ||
393 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
394 | ac_prev=datadir ;; | |
395 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
396 | | --da=*) | |
397 | datadir=$ac_optarg ;; | |
398 | ||
399 | -disable-* | --disable-*) | |
400 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
401 | # Reject names that are not valid shell variable names. | |
402 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
403 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
404 | { (exit 1); exit 1; }; } | |
405 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
406 | eval "enable_$ac_feature=no" ;; | |
407 | ||
408 | -enable-* | --enable-*) | |
409 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
410 | # Reject names that are not valid shell variable names. | |
411 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
412 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
413 | { (exit 1); exit 1; }; } | |
414 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
415 | case $ac_option in | |
416 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
417 | *) ac_optarg=yes ;; | |
418 | esac | |
419 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
420 | ||
421 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
422 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
423 | | --exec | --exe | --ex) | |
424 | ac_prev=exec_prefix ;; | |
425 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
426 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
427 | | --exec=* | --exe=* | --ex=*) | |
428 | exec_prefix=$ac_optarg ;; | |
429 | ||
430 | -gas | --gas | --ga | --g) | |
431 | # Obsolete; use --with-gas. | |
432 | with_gas=yes ;; | |
433 | ||
434 | -help | --help | --hel | --he | -h) | |
435 | ac_init_help=long ;; | |
436 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
437 | ac_init_help=recursive ;; | |
438 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
439 | ac_init_help=short ;; | |
440 | ||
441 | -host | --host | --hos | --ho) | |
442 | ac_prev=host_alias ;; | |
443 | -host=* | --host=* | --hos=* | --ho=*) | |
444 | host_alias=$ac_optarg ;; | |
445 | ||
446 | -includedir | --includedir | --includedi | --included | --include \ | |
447 | | --includ | --inclu | --incl | --inc) | |
448 | ac_prev=includedir ;; | |
449 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
450 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
451 | includedir=$ac_optarg ;; | |
452 | ||
453 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
454 | ac_prev=infodir ;; | |
455 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
456 | infodir=$ac_optarg ;; | |
457 | ||
458 | -libdir | --libdir | --libdi | --libd) | |
459 | ac_prev=libdir ;; | |
460 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
461 | libdir=$ac_optarg ;; | |
462 | ||
463 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
464 | | --libexe | --libex | --libe) | |
465 | ac_prev=libexecdir ;; | |
466 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
467 | | --libexe=* | --libex=* | --libe=*) | |
468 | libexecdir=$ac_optarg ;; | |
469 | ||
470 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
471 | | --localstate | --localstat | --localsta | --localst \ | |
472 | | --locals | --local | --loca | --loc | --lo) | |
473 | ac_prev=localstatedir ;; | |
474 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
475 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
476 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
477 | localstatedir=$ac_optarg ;; | |
478 | ||
479 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
480 | ac_prev=mandir ;; | |
481 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
482 | mandir=$ac_optarg ;; | |
483 | ||
484 | -nfp | --nfp | --nf) | |
485 | # Obsolete; use --without-fp. | |
486 | with_fp=no ;; | |
487 | ||
488 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
489 | | --no-cr | --no-c | -n) | |
490 | no_create=yes ;; | |
491 | ||
492 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
493 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
494 | no_recursion=yes ;; | |
495 | ||
496 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
497 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
498 | | --oldin | --oldi | --old | --ol | --o) | |
499 | ac_prev=oldincludedir ;; | |
500 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
501 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
502 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
503 | oldincludedir=$ac_optarg ;; | |
504 | ||
505 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
506 | ac_prev=prefix ;; | |
507 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
508 | prefix=$ac_optarg ;; | |
509 | ||
510 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
511 | | --program-pre | --program-pr | --program-p) | |
512 | ac_prev=program_prefix ;; | |
513 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
514 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
515 | program_prefix=$ac_optarg ;; | |
516 | ||
517 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
518 | | --program-suf | --program-su | --program-s) | |
519 | ac_prev=program_suffix ;; | |
520 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
521 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
522 | program_suffix=$ac_optarg ;; | |
523 | ||
524 | -program-transform-name | --program-transform-name \ | |
525 | | --program-transform-nam | --program-transform-na \ | |
526 | | --program-transform-n | --program-transform- \ | |
527 | | --program-transform | --program-transfor \ | |
528 | | --program-transfo | --program-transf \ | |
529 | | --program-trans | --program-tran \ | |
530 | | --progr-tra | --program-tr | --program-t) | |
531 | ac_prev=program_transform_name ;; | |
532 | -program-transform-name=* | --program-transform-name=* \ | |
533 | | --program-transform-nam=* | --program-transform-na=* \ | |
534 | | --program-transform-n=* | --program-transform-=* \ | |
535 | | --program-transform=* | --program-transfor=* \ | |
536 | | --program-transfo=* | --program-transf=* \ | |
537 | | --program-trans=* | --program-tran=* \ | |
538 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
539 | program_transform_name=$ac_optarg ;; | |
540 | ||
541 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
542 | | -silent | --silent | --silen | --sile | --sil) | |
543 | silent=yes ;; | |
544 | ||
545 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
546 | ac_prev=sbindir ;; | |
547 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
548 | | --sbi=* | --sb=*) | |
549 | sbindir=$ac_optarg ;; | |
550 | ||
551 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
552 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
553 | | --sharedst | --shareds | --shared | --share | --shar \ | |
554 | | --sha | --sh) | |
555 | ac_prev=sharedstatedir ;; | |
556 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
557 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
558 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
559 | | --sha=* | --sh=*) | |
560 | sharedstatedir=$ac_optarg ;; | |
561 | ||
562 | -site | --site | --sit) | |
563 | ac_prev=site ;; | |
564 | -site=* | --site=* | --sit=*) | |
565 | site=$ac_optarg ;; | |
566 | ||
567 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
568 | ac_prev=srcdir ;; | |
569 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
570 | srcdir=$ac_optarg ;; | |
571 | ||
572 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
573 | | --syscon | --sysco | --sysc | --sys | --sy) | |
574 | ac_prev=sysconfdir ;; | |
575 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
576 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
577 | sysconfdir=$ac_optarg ;; | |
578 | ||
579 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
580 | ac_prev=target_alias ;; | |
581 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
582 | target_alias=$ac_optarg ;; | |
583 | ||
584 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
585 | verbose=yes ;; | |
586 | ||
587 | -version | --version | --versio | --versi | --vers | -V) | |
588 | ac_init_version=: ;; | |
589 | ||
590 | -with-* | --with-*) | |
591 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
592 | # Reject names that are not valid shell variable names. | |
593 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
594 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
595 | { (exit 1); exit 1; }; } | |
596 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
597 | case $ac_option in | |
598 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
599 | *) ac_optarg=yes ;; | |
600 | esac | |
601 | eval "with_$ac_package='$ac_optarg'" ;; | |
602 | ||
603 | -without-* | --without-*) | |
604 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
605 | # Reject names that are not valid shell variable names. | |
606 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
607 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
608 | { (exit 1); exit 1; }; } | |
609 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
610 | eval "with_$ac_package=no" ;; | |
611 | ||
612 | --x) | |
613 | # Obsolete; use --with-x. | |
614 | with_x=yes ;; | |
615 | ||
616 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
617 | | --x-incl | --x-inc | --x-in | --x-i) | |
618 | ac_prev=x_includes ;; | |
619 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
620 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
621 | x_includes=$ac_optarg ;; | |
622 | ||
623 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
624 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
625 | ac_prev=x_libraries ;; | |
626 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
627 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
628 | x_libraries=$ac_optarg ;; | |
629 | ||
630 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
631 | Try \`$0 --help' for more information." >&2 | |
632 | { (exit 1); exit 1; }; } | |
633 | ;; | |
634 | ||
635 | *=*) | |
636 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
637 | # Reject names that are not valid shell variable names. | |
638 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
639 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
640 | { (exit 1); exit 1; }; } | |
641 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
642 | eval "$ac_envvar='$ac_optarg'" | |
643 | export $ac_envvar ;; | |
644 | ||
645 | *) | |
646 | # FIXME: should be removed in autoconf 3.0. | |
647 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
648 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
649 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
650 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
651 | ;; | |
652 | ||
653 | esac | |
654 | done | |
655 | ||
656 | if test -n "$ac_prev"; then | |
657 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
658 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
659 | { (exit 1); exit 1; }; } | |
660 | fi | |
661 | ||
662 | # Be sure to have absolute paths. | |
663 | for ac_var in exec_prefix prefix | |
664 | do | |
665 | eval ac_val=$`echo $ac_var` | |
666 | case $ac_val in | |
667 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
668 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
669 | { (exit 1); exit 1; }; };; | |
670 | esac | |
671 | done | |
672 | ||
673 | # Be sure to have absolute paths. | |
674 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
ac1cb8d3 | 675 | localstatedir libdir includedir oldincludedir infodir mandir |
a848cd7e SC |
676 | do |
677 | eval ac_val=$`echo $ac_var` | |
678 | case $ac_val in | |
679 | [\\/$]* | ?:[\\/]* ) ;; | |
680 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
681 | { (exit 1); exit 1; }; };; | |
682 | esac | |
683 | done | |
684 | ||
685 | # There might be people who depend on the old broken behavior: `$host' | |
686 | # used to hold the argument of --host etc. | |
687 | # FIXME: To remove some day. | |
688 | build=$build_alias | |
689 | host=$host_alias | |
690 | target=$target_alias | |
691 | ||
692 | # FIXME: To remove some day. | |
693 | if test "x$host_alias" != x; then | |
694 | if test "x$build_alias" = x; then | |
695 | cross_compiling=maybe | |
696 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
697 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
698 | elif test "x$build_alias" != "x$host_alias"; then | |
699 | cross_compiling=yes | |
700 | fi | |
701 | fi | |
702 | ||
703 | ac_tool_prefix= | |
704 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
705 | ||
706 | test "$silent" = yes && exec 6>/dev/null | |
707 | ||
708 | ||
709 | # Find the source files, if location was not specified. | |
710 | if test -z "$srcdir"; then | |
711 | ac_srcdir_defaulted=yes | |
712 | # Try the directory containing this script, then its parent. | |
713 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
714 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
715 | X"$0" : 'X\(//\)[^/]' \| \ |
716 | X"$0" : 'X\(//\)$' \| \ | |
717 | X"$0" : 'X\(/\)' \| \ | |
718 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
719 | echo X"$0" | |
720 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
721 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
722 | /^X\(\/\/\)$/{ s//\1/; q; } | |
723 | /^X\(\/\).*/{ s//\1/; q; } | |
724 | s/.*/./; q'` | |
725 | srcdir=$ac_confdir | |
726 | if test ! -r $srcdir/$ac_unique_file; then | |
727 | srcdir=.. | |
728 | fi | |
729 | else | |
730 | ac_srcdir_defaulted=no | |
731 | fi | |
732 | if test ! -r $srcdir/$ac_unique_file; then | |
733 | if test "$ac_srcdir_defaulted" = yes; then | |
734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
735 | { (exit 1); exit 1; }; } | |
736 | else | |
737 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
738 | { (exit 1); exit 1; }; } | |
739 | fi | |
740 | fi | |
741 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | |
742 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
743 | { (exit 1); exit 1; }; } | |
744 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
745 | ac_env_build_alias_set=${build_alias+set} | |
746 | ac_env_build_alias_value=$build_alias | |
747 | ac_cv_env_build_alias_set=${build_alias+set} | |
748 | ac_cv_env_build_alias_value=$build_alias | |
749 | ac_env_host_alias_set=${host_alias+set} | |
750 | ac_env_host_alias_value=$host_alias | |
751 | ac_cv_env_host_alias_set=${host_alias+set} | |
752 | ac_cv_env_host_alias_value=$host_alias | |
753 | ac_env_target_alias_set=${target_alias+set} | |
754 | ac_env_target_alias_value=$target_alias | |
755 | ac_cv_env_target_alias_set=${target_alias+set} | |
756 | ac_cv_env_target_alias_value=$target_alias | |
757 | ac_env_CC_set=${CC+set} | |
758 | ac_env_CC_value=$CC | |
759 | ac_cv_env_CC_set=${CC+set} | |
760 | ac_cv_env_CC_value=$CC | |
761 | ac_env_CFLAGS_set=${CFLAGS+set} | |
762 | ac_env_CFLAGS_value=$CFLAGS | |
763 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
764 | ac_cv_env_CFLAGS_value=$CFLAGS | |
765 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
766 | ac_env_LDFLAGS_value=$LDFLAGS | |
767 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
768 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
769 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
770 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
771 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
772 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
773 | ac_env_CPP_set=${CPP+set} | |
774 | ac_env_CPP_value=$CPP | |
775 | ac_cv_env_CPP_set=${CPP+set} | |
776 | ac_cv_env_CPP_value=$CPP | |
777 | ac_env_CXX_set=${CXX+set} | |
778 | ac_env_CXX_value=$CXX | |
779 | ac_cv_env_CXX_set=${CXX+set} | |
780 | ac_cv_env_CXX_value=$CXX | |
781 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
782 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
783 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
784 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
785 | ac_env_CXXCPP_set=${CXXCPP+set} | |
786 | ac_env_CXXCPP_value=$CXXCPP | |
787 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | |
788 | ac_cv_env_CXXCPP_value=$CXXCPP | |
789 | ||
790 | # | |
791 | # Report the --help message. | |
792 | # | |
793 | if test "$ac_init_help" = "long"; then | |
794 | # Omit some internal or obsolete options to make the list less imposing. | |
795 | # This message is too long to be a string in the A/UX 3.1 sh. | |
796 | cat <<_ACEOF | |
dd8df4fc | 797 | \`configure' configures wxWidgets 2.7.0 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 | |
dd8df4fc | 863 | short | recursive ) echo "Configuration of wxWidgets 2.7.0:";; |
a848cd7e SC |
864 | esac |
865 | cat <<\_ACEOF | |
866 | ||
867 | Optional Features: | |
868 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
869 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
870 | --enable-gui use GUI classes | |
77ffb593 JS |
871 | --enable-monolithic build wxWidgets as single library |
872 | --enable-plugins build parts of wxWidgets as loadable components | |
873 | --enable-universal use wxWidgets GUI controls instead of native ones | |
a848cd7e | 874 | --enable-nanox use NanoX |
f34ca037 | 875 | --disable-gtk2 use GTK+ 1.2 instead of 2.0 |
a848cd7e SC |
876 | --enable-gpe use GNOME PDA Environment features if possible |
877 | --enable-shared create shared library code | |
878 | --enable-optimise create optimised code | |
879 | --enable-debug same as debug_flag and debug_info | |
880 | --enable-stl use STL for containers | |
881 | --enable-omf use OMF object format | |
882 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!) | |
883 | --enable-debug_info create code with debugging information | |
884 | --enable-debug_gdb create code with extra GDB debugging information | |
885 | --enable-debug_cntxt use wxDebugContext | |
886 | --enable-mem_tracing create code with memory tracing | |
887 | --enable-profile create code with profiling information | |
888 | --enable-no_rtti create code without RTTI information | |
889 | --enable-no_exceptions create code without C++ exceptions handling | |
890 | --enable-permissive compile code disregarding strict ANSI | |
891 | --enable-no_deps create code without dependency information | |
dee1a63f MB |
892 | --enable-compat24 enable wxWidgets 2.4 compatibility |
893 | --disable-compat26 disable wxWidgets 2.6 compatibility | |
ffa0583f | 894 | --disable-rpath disable use of rpath for uninstalled builds |
a848cd7e SC |
895 | --enable-intl use internationalization system |
896 | --enable-config use wxConfig (and derived) classes | |
897 | --enable-protocols use wxProtocol and derived classes | |
898 | --enable-ftp use wxFTP (requires wxProtocol | |
899 | --enable-http use wxHTTP (requires wxProtocol | |
900 | --enable-fileproto use wxFileProto class (requires wxProtocol | |
901 | --enable-sockets use socket/network classes | |
902 | --enable-ole use OLE classes (Win32 only) | |
903 | --enable-dataobj use data object classes | |
904 | --enable-ipc use interprocess communication (wxSocket etc.) | |
905 | --enable-apple_ieee use the Apple IEEE codec | |
81f90336 | 906 | --enable-arcstream use wxArchive streams |
eaff0f0d | 907 | --enable-backtrace use wxStackWalker class for getting backtraces |
36b6448c | 908 | --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only) |
a848cd7e SC |
909 | --enable-cmdline use wxCmdLineParser class |
910 | --enable-datetime use wxDateTime class | |
36b6448c | 911 | --enable-debugreport use wxDebugReport class |
a848cd7e SC |
912 | --enable-dialupman use dialup network classes |
913 | --enable-dynlib use wxLibrary class for DLL loading | |
914 | --enable-dynamicloader use (new) wxDynamicLibrary class | |
915 | --enable-exceptions build exception-safe library | |
916 | --enable-ffile use wxFFile class | |
917 | --enable-file use wxFile class | |
918 | --enable-filesystem use virtual file systems classes | |
919 | --enable-fontmap use font encodings conversion classes | |
920 | --enable-fs_inet use virtual HTTP/FTP filesystems | |
921 | --enable-fs_zip use virtual ZIP filesystems | |
922 | --enable-geometry use geometry class | |
923 | --enable-log use logging system | |
924 | --enable-longlong use wxLongLong class | |
925 | --enable-mimetype use wxMimeTypesManager | |
926 | --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only) | |
927 | --enable-snglinst use wxSingleInstanceChecker class | |
a848cd7e | 928 | --enable-std_iostreams use standard C++ stream classes |
59746b65 | 929 | --enable-std_string use standard C++ string classes |
07158944 | 930 | --enable-stdpaths use wxStandardPaths class |
a848cd7e | 931 | --enable-stopwatch use wxStopWatch class |
07158944 | 932 | --enable-streams use wxStream etc classes |
a848cd7e SC |
933 | --enable-sysoptions use wxSystemOptions |
934 | --enable-textbuf use wxTextBuffer class | |
935 | --enable-textfile use wxTextFile class | |
936 | --enable-timer use wxTimer class | |
937 | --enable-unicode compile wxString with Unicode support | |
938 | --enable-sound use wxSound class | |
3b57de8b | 939 | --enable-mediactrl use wxMediaCtrl class |
77ffb593 | 940 | --enable-wxprintfv use wxWidgets implementation of vprintf() |
81f90336 | 941 | --enable-zipstream use wxZip streams |
a848cd7e SC |
942 | --enable-url use wxURL class |
943 | --enable-protocol use wxProtocol class | |
944 | --enable-protocol-http HTTP support in wxProtocol | |
945 | --enable-protocol-ftp FTP support in wxProtocol | |
946 | --enable-protocol-file FILE support in wxProtocol | |
947 | --enable-threads use threads | |
948 | --enable-docview use document view architecture | |
949 | --enable-help use help subsystem | |
950 | --enable-mshtmlhelp use MS HTML Help (win32) | |
951 | --enable-html use wxHTML sub-library | |
952 | --enable-htmlhelp use wxHTML-based help | |
9a8f0513 | 953 | --enable-xrc use XRC resources sub-library |
a848cd7e SC |
954 | --enable-constraints use layout-constraints system |
955 | --enable-printarch use printing architecture | |
956 | --enable-mdi use multiple document interface architecture | |
8a7b1113 | 957 | --enable-mdidoc use docview architecture with MDI |
a848cd7e SC |
958 | --enable-loggui use standard GUI logger |
959 | --enable-logwin use wxLogWindow | |
960 | --enable-logdialog use wxLogDialog | |
646b6ec1 | 961 | --enable-webkit use wxWebKitCtrl (Mac) |
a848cd7e SC |
962 | --enable-postscript use wxPostscriptDC device context (default for gtk+) |
963 | --enable-prologio not available; see contrib | |
964 | --enable-resources not available; see contrib | |
965 | --enable-clipboard use wxClipboard class | |
966 | --enable-dnd use Drag'n'Drop classes | |
967 | --enable-metafile use win32 metafiles | |
968 | --enable-controls use all usual controls | |
969 | --enable-accel use accelerators | |
970 | --enable-button use wxButton class | |
971 | --enable-bmpbutton use wxBitmapButton class | |
972 | --enable-calendar use wxCalendarCtrl class | |
973 | --enable-caret use wxCaret class | |
974 | --enable-checkbox use wxCheckBox class | |
975 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
976 | --enable-choice use wxChoice class | |
92bbdbcd | 977 | --enable-choicebook use wxChoicebook class |
a848cd7e | 978 | --enable-combobox use wxComboBox class |
da98e9be | 979 | --enable-datepick use wxDatePickerCtrl class |
a848cd7e SC |
980 | --enable-display use wxDisplay class |
981 | --enable-gauge use wxGauge class | |
982 | --enable-grid use wxGrid class | |
983 | --enable-imaglist use wxImageList class | |
984 | --enable-listbook use wxListbook class | |
985 | --enable-listbox use wxListBox class | |
986 | --enable-listctrl use wxListCtrl class | |
987 | --enable-notebook use wxNotebook class | |
988 | --enable-radiobox use wxRadioBox class | |
989 | --enable-radiobtn use wxRadioButton class | |
990 | --enable-sash use wxSashWindow class | |
991 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
992 | --enable-slider use wxSlider class | |
993 | --enable-spinbtn use wxSpinButton class | |
994 | --enable-spinctrl use wxSpinCtrl class | |
995 | --enable-splitter use wxSplitterWindow class | |
996 | --enable-statbmp use wxStaticBitmap class | |
997 | --enable-statbox use wxStaticBox class | |
998 | --enable-statline use wxStaticLine class | |
999 | --enable-stattext use wxStaticText class | |
1000 | --enable-statusbar use wxStatusBar class | |
1001 | --enable-tabdialog use wxTabControl class | |
1002 | --enable-textctrl use wxTextCtrl class | |
1003 | --enable-togglebtn use wxToggleButton class | |
1004 | --enable-toolbar use wxToolBar class | |
1005 | --enable-tbarnative use native wxToolBar class | |
1006 | --enable-tbarsmpl use wxToolBarSimple class | |
0093c2fc | 1007 | --enable-treebook use wxTreebook class |
a848cd7e SC |
1008 | --enable-treectrl use wxTreeCtrl class |
1009 | --enable-tipwindow use wxTipWindow class | |
1010 | --enable-popupwin use wxPopUpWindow class | |
1011 | --enable-commondlg use all common dialogs | |
1012 | --enable-choicedlg use wxChoiceDialog | |
1013 | --enable-coldlg use wxColourDialog | |
1014 | --enable-filedlg use wxFileDialog | |
1015 | --enable-finddlg use wxFindReplaceDialog | |
1016 | --enable-fontdlg use wxFontDialog | |
1017 | --enable-dirdlg use wxDirDialog | |
1018 | --enable-msgdlg use wxMessageDialog | |
1019 | --enable-numberdlg use wxNumberEntryDialog | |
1020 | --enable-splash use wxSplashScreen | |
1021 | --enable-textdlg use wxTextDialog | |
1022 | --enable-tipdlg use startup tips | |
1023 | --enable-progressdlg use wxProgressDialog | |
1024 | --enable-wizarddlg use wxWizard | |
1025 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1026 | --enable-miniframe use wxMiniFrame class | |
1027 | --enable-tooltips use wxToolTip class | |
1028 | --enable-splines use spline drawing code | |
fbe2ca43 | 1029 | --enable-mousewheel use mousewheel |
a848cd7e SC |
1030 | --enable-validators use wxValidator and derived classes |
1031 | --enable-busyinfo use wxBusyInfo | |
4cb1d3da | 1032 | --enable-joystick use wxJoystick |
38b4a946 | 1033 | --enable-metafiles use wxMetaFile (Win32 only) |
a848cd7e SC |
1034 | --enable-dragimage use wxDragImage |
1035 | --enable-accessibility enable accessibility support | |
38b4a946 | 1036 | --enable-dccache cache temporary wxDC objects (Win32 only) |
a848cd7e SC |
1037 | --enable-palette use wxPalette class |
1038 | --enable-image use wxImage class | |
1039 | --enable-gif use gif images (GIF file format) | |
1040 | --enable-pcx use pcx images (PCX file format) | |
1041 | --enable-iff use iff images (IFF file format) | |
1042 | --enable-pnm use pnm images (PNM file format) | |
1043 | --enable-xpm use xpm images (XPM file format) | |
1044 | --enable-icocur use Windows ICO and CUR formats | |
77ffb593 | 1045 | --enable-official_build official build of wxWidgets (win32 DLL only) |
a848cd7e SC |
1046 | --enable-vendor=VENDOR vendor name (win32 DLL only) |
1047 | --disable-largefile omit support for large files | |
1048 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1049 | --disable-gtktest Do not try to compile and run a test GTK program | |
1050 | --disable-sdltest Do not try to compile and run a test SDL program | |
1051 | --enable-omf use OMF object format (OS/2) | |
ebee3cd0 VS |
1052 | --disable-precomp-headers |
1053 | don't use precompiled headers even if compiler can | |
a848cd7e SC |
1054 | |
1055 | Optional Packages: | |
1056 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1057 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1c14217d | 1058 | --without-subdirs don't generate makefiles for samples/demos/... |
f34ca037 | 1059 | --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any" |
a848cd7e SC |
1060 | --with-motif use Motif/Lesstif |
1061 | --with-mac use Mac OS X | |
1062 | --with-cocoa use Cocoa | |
1063 | --with-wine use Wine | |
1064 | --with-msw use MS-Windows | |
1065 | --with-pm use OS/2 Presentation Manager | |
1066 | --with-mgl use SciTech MGL | |
1067 | --with-microwin use MicroWindows | |
1068 | --with-x11 use X11 | |
1069 | --with-libpng use libpng (PNG image format) | |
1070 | --with-libjpeg use libjpeg (JPEG file format) | |
1071 | --with-libtiff use libtiff (TIFF file format) | |
1072 | --with-libxpm use libxpm (XPM file format) | |
1073 | --with-libmspack use libmspack (CHM help files loading) | |
1074 | --with-sdl use SDL for audio on Unix | |
d51253e8 | 1075 | --with-gnomeprint use GNOME print for printing under Unix |
a848cd7e SC |
1076 | --with-opengl use OpenGL (or Mesa) |
1077 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1078 | --with-regex enable support for wxRegEx class | |
1079 | --with-zlib use zlib for LZW compression | |
1080 | --with-odbc use the IODBC and wxODBC classes | |
1081 | --with-expat enable XML support using expat parser | |
ceec2216 | 1082 | --with-flavour=NAME specify a name to identify this build |
a848cd7e SC |
1083 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
1084 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1085 | --with-x use the X Window System | |
1086 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1087 | --with-sdl-prefix=PFX Prefix where SDL is installed (optional) | |
1088 | --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) | |
1089 | --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional) | |
1090 | --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional) | |
1091 | ||
1092 | Some influential environment variables: | |
dcc1b6ad VS |
1093 | CC C compiler command |
1094 | CFLAGS C compiler flags | |
1095 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1096 | nonstandard directory <lib dir> | |
1097 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1098 | headers in a nonstandard directory <include dir> | |
1099 | CPP C preprocessor | |
1100 | CXX C++ compiler command | |
1101 | CXXFLAGS C++ compiler flags | |
1102 | CXXCPP C++ preprocessor | |
a848cd7e SC |
1103 | |
1104 | Use these variables to override the choices made by `configure' or to help | |
1105 | it to find libraries and programs with nonstandard names/locations. | |
1106 | ||
77ffb593 | 1107 | Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e SC |
1108 | _ACEOF |
1109 | fi | |
1110 | ||
1111 | if test "$ac_init_help" = "recursive"; then | |
1112 | # If there are subdirs, report their specific --help. | |
1113 | ac_popdir=`pwd` | |
1114 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1115 | test -d $ac_dir || continue | |
1116 | ac_builddir=. | |
1117 | ||
1118 | if test "$ac_dir" != .; then | |
1119 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1120 | # A "../" for each directory in $ac_dir_suffix. | |
1121 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1122 | else | |
1123 | ac_dir_suffix= ac_top_builddir= | |
1124 | fi | |
1125 | ||
1126 | case $srcdir in | |
1127 | .) # No --srcdir option. We are building in place. | |
1128 | ac_srcdir=. | |
1129 | if test -z "$ac_top_builddir"; then | |
1130 | ac_top_srcdir=. | |
1131 | else | |
1132 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1133 | fi ;; | |
1134 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1135 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1136 | ac_top_srcdir=$srcdir ;; | |
1137 | *) # Relative path. | |
1138 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1139 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1140 | esac | |
ac1cb8d3 VS |
1141 | |
1142 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1143 | # the directories may not exist. | |
1144 | case `pwd` in | |
1145 | .) ac_abs_builddir="$ac_dir";; | |
1146 | *) | |
1147 | case "$ac_dir" in | |
1148 | .) ac_abs_builddir=`pwd`;; | |
1149 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1150 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1151 | esac;; | |
1152 | esac | |
1153 | case $ac_abs_builddir in | |
1154 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1155 | *) | |
1156 | case ${ac_top_builddir}. in | |
1157 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1158 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1159 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1160 | esac;; | |
1161 | esac | |
1162 | case $ac_abs_builddir in | |
1163 | .) ac_abs_srcdir=$ac_srcdir;; | |
1164 | *) | |
1165 | case $ac_srcdir in | |
1166 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1167 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1168 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1169 | esac;; | |
1170 | esac | |
1171 | case $ac_abs_builddir in | |
1172 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1173 | *) | |
1174 | case $ac_top_srcdir in | |
1175 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1176 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1177 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1178 | esac;; | |
1179 | esac | |
a848cd7e SC |
1180 | |
1181 | cd $ac_dir | |
1182 | # Check for guested configure; otherwise get Cygnus style configure. | |
1183 | if test -f $ac_srcdir/configure.gnu; then | |
1184 | echo | |
1185 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1186 | elif test -f $ac_srcdir/configure; then | |
1187 | echo | |
1188 | $SHELL $ac_srcdir/configure --help=recursive | |
1189 | elif test -f $ac_srcdir/configure.ac || | |
ac1cb8d3 | 1190 | test -f $ac_srcdir/configure.in; then |
a848cd7e SC |
1191 | echo |
1192 | $ac_configure --help | |
1193 | else | |
1194 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1195 | fi | |
0093c2fc | 1196 | cd "$ac_popdir" |
a848cd7e SC |
1197 | done |
1198 | fi | |
1199 | ||
1200 | test -n "$ac_init_help" && exit 0 | |
1201 | if $ac_init_version; then | |
1202 | cat <<\_ACEOF | |
dd8df4fc | 1203 | wxWidgets configure 2.7.0 |
ac1cb8d3 | 1204 | generated by GNU Autoconf 2.59 |
a848cd7e | 1205 | |
ac1cb8d3 | 1206 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
1207 | This configure script is free software; the Free Software Foundation |
1208 | gives unlimited permission to copy, distribute and modify it. | |
1209 | _ACEOF | |
1210 | exit 0 | |
1211 | fi | |
1212 | exec 5>config.log | |
1213 | cat >&5 <<_ACEOF | |
1214 | This file contains any messages produced by compilers while | |
1215 | running configure, to aid debugging if configure makes a mistake. | |
1216 | ||
dd8df4fc | 1217 | It was created by wxWidgets $as_me 2.7.0, which was |
ac1cb8d3 | 1218 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
1219 | |
1220 | $ $0 $@ | |
1221 | ||
1222 | _ACEOF | |
1223 | { | |
1224 | cat <<_ASUNAME | |
1225 | ## --------- ## | |
1226 | ## Platform. ## | |
1227 | ## --------- ## | |
1228 | ||
1229 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1230 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1231 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1232 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1233 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1234 | ||
1235 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1236 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1237 | ||
1238 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1239 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1240 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1241 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1242 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1243 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1244 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1245 | ||
1246 | _ASUNAME | |
1247 | ||
1248 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1249 | for as_dir in $PATH | |
1250 | do | |
1251 | IFS=$as_save_IFS | |
1252 | test -z "$as_dir" && as_dir=. | |
1253 | echo "PATH: $as_dir" | |
1254 | done | |
1255 | ||
1256 | } >&5 | |
1257 | ||
1258 | cat >&5 <<_ACEOF | |
1259 | ||
1260 | ||
1261 | ## ----------- ## | |
1262 | ## Core tests. ## | |
1263 | ## ----------- ## | |
1264 | ||
1265 | _ACEOF | |
1266 | ||
1267 | ||
1268 | # Keep a trace of the command line. | |
1269 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1270 | # Strip out --silent because we don't want to record it for future runs. | |
1271 | # Also quote any args containing shell meta-characters. | |
1272 | # Make two passes to allow for proper duplicate-argument suppression. | |
1273 | ac_configure_args= | |
1274 | ac_configure_args0= | |
1275 | ac_configure_args1= | |
1276 | ac_sep= | |
1277 | ac_must_keep_next=false | |
1278 | for ac_pass in 1 2 | |
1279 | do | |
1280 | for ac_arg | |
1281 | do | |
1282 | case $ac_arg in | |
1283 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1284 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1285 | | -silent | --silent | --silen | --sile | --sil) | |
1286 | continue ;; | |
1287 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1288 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1289 | esac | |
1290 | case $ac_pass in | |
1291 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1292 | 2) | |
1293 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1294 | if test $ac_must_keep_next = true; then | |
ac1cb8d3 | 1295 | ac_must_keep_next=false # Got value, back to normal. |
a848cd7e | 1296 | else |
ac1cb8d3 VS |
1297 | case $ac_arg in |
1298 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1299 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1300 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1301 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1302 | case "$ac_configure_args0 " in | |
1303 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1304 | esac | |
1305 | ;; | |
1306 | -* ) ac_must_keep_next=true ;; | |
1307 | esac | |
a848cd7e SC |
1308 | fi |
1309 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1310 | # Get rid of the leading space. | |
1311 | ac_sep=" " | |
1312 | ;; | |
1313 | esac | |
1314 | done | |
1315 | done | |
1316 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1317 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1318 | ||
1319 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1320 | # config.log. We remove comments because anyway the quotes in there | |
1321 | # would cause problems or look ugly. | |
1322 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1323 | # such as our DU 5.0 friend, will then `close' the trap. | |
1324 | trap 'exit_status=$? | |
1325 | # Save into config.log some information that might help in debugging. | |
1326 | { | |
1327 | echo | |
1328 | ||
1329 | cat <<\_ASBOX | |
1330 | ## ---------------- ## | |
1331 | ## Cache variables. ## | |
1332 | ## ---------------- ## | |
1333 | _ASBOX | |
1334 | echo | |
1335 | # The following way of writing the cache mishandles newlines in values, | |
1336 | { | |
1337 | (set) 2>&1 | | |
1338 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1339 | *ac_space=\ *) | |
1340 | sed -n \ | |
ac1cb8d3 VS |
1341 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1342 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
a848cd7e SC |
1343 | ;; |
1344 | *) | |
1345 | sed -n \ | |
ac1cb8d3 | 1346 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
1347 | ;; |
1348 | esac; | |
1349 | } | |
1350 | echo | |
1351 | ||
1352 | cat <<\_ASBOX | |
1353 | ## ----------------- ## | |
1354 | ## Output variables. ## | |
1355 | ## ----------------- ## | |
1356 | _ASBOX | |
1357 | echo | |
1358 | for ac_var in $ac_subst_vars | |
1359 | do | |
1360 | eval ac_val=$`echo $ac_var` | |
1361 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1362 | done | sort | |
1363 | echo | |
1364 | ||
1365 | if test -n "$ac_subst_files"; then | |
1366 | cat <<\_ASBOX | |
1367 | ## ------------- ## | |
1368 | ## Output files. ## | |
1369 | ## ------------- ## | |
1370 | _ASBOX | |
1371 | echo | |
1372 | for ac_var in $ac_subst_files | |
1373 | do | |
1374 | eval ac_val=$`echo $ac_var` | |
ac1cb8d3 | 1375 | echo "$ac_var='"'"'$ac_val'"'"'" |
a848cd7e SC |
1376 | done | sort |
1377 | echo | |
1378 | fi | |
1379 | ||
1380 | if test -s confdefs.h; then | |
1381 | cat <<\_ASBOX | |
1382 | ## ----------- ## | |
1383 | ## confdefs.h. ## | |
1384 | ## ----------- ## | |
1385 | _ASBOX | |
1386 | echo | |
1387 | sed "/^$/d" confdefs.h | sort | |
1388 | echo | |
1389 | fi | |
1390 | test "$ac_signal" != 0 && | |
1391 | echo "$as_me: caught signal $ac_signal" | |
1392 | echo "$as_me: exit $exit_status" | |
1393 | } >&5 | |
ac1cb8d3 | 1394 | rm -f core *.core && |
a848cd7e SC |
1395 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1396 | exit $exit_status | |
1397 | ' 0 | |
1398 | for ac_signal in 1 2 13 15; do | |
1399 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1400 | done | |
1401 | ac_signal=0 | |
1402 | ||
1403 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1404 | rm -rf conftest* confdefs.h | |
1405 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1406 | echo >confdefs.h | |
1407 | ||
1408 | # Predefined preprocessor variables. | |
1409 | ||
1410 | cat >>confdefs.h <<_ACEOF | |
1411 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1412 | _ACEOF | |
1413 | ||
1414 | ||
1415 | cat >>confdefs.h <<_ACEOF | |
1416 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1417 | _ACEOF | |
1418 | ||
1419 | ||
1420 | cat >>confdefs.h <<_ACEOF | |
1421 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1422 | _ACEOF | |
1423 | ||
1424 | ||
1425 | cat >>confdefs.h <<_ACEOF | |
1426 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1427 | _ACEOF | |
1428 | ||
1429 | ||
1430 | cat >>confdefs.h <<_ACEOF | |
1431 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1432 | _ACEOF | |
1433 | ||
1434 | ||
1435 | # Let the site file select an alternate cache file if it wants to. | |
1436 | # Prefer explicitly selected file to automatically selected ones. | |
1437 | if test -z "$CONFIG_SITE"; then | |
1438 | if test "x$prefix" != xNONE; then | |
1439 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1440 | else | |
1441 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1442 | fi | |
1443 | fi | |
1444 | for ac_site_file in $CONFIG_SITE; do | |
1445 | if test -r "$ac_site_file"; then | |
1446 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1447 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1448 | sed 's/^/| /' "$ac_site_file" >&5 | |
1449 | . "$ac_site_file" | |
1450 | fi | |
1451 | done | |
1452 | ||
1453 | if test -r "$cache_file"; then | |
1454 | # Some versions of bash will fail to source /dev/null (special | |
1455 | # files actually), so we avoid doing that. | |
1456 | if test -f "$cache_file"; then | |
1457 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1458 | echo "$as_me: loading cache $cache_file" >&6;} | |
1459 | case $cache_file in | |
1460 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1461 | *) . ./$cache_file;; | |
1462 | esac | |
1463 | fi | |
1464 | else | |
1465 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1466 | echo "$as_me: creating cache $cache_file" >&6;} | |
1467 | >$cache_file | |
1468 | fi | |
1469 | ||
1470 | # Check that the precious variables saved in the cache have kept the same | |
1471 | # value. | |
1472 | ac_cache_corrupted=false | |
1473 | for ac_var in `(set) 2>&1 | | |
ac1cb8d3 | 1474 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
a848cd7e SC |
1475 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1476 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1477 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1478 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1479 | case $ac_old_set,$ac_new_set in | |
1480 | set,) | |
1481 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1482 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1483 | ac_cache_corrupted=: ;; | |
1484 | ,set) | |
1485 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1486 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1487 | ac_cache_corrupted=: ;; | |
1488 | ,);; | |
1489 | *) | |
1490 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ac1cb8d3 | 1491 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
a848cd7e | 1492 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
ac1cb8d3 | 1493 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
a848cd7e | 1494 | echo "$as_me: former value: $ac_old_val" >&2;} |
ac1cb8d3 | 1495 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
a848cd7e | 1496 | echo "$as_me: current value: $ac_new_val" >&2;} |
ac1cb8d3 | 1497 | ac_cache_corrupted=: |
a848cd7e SC |
1498 | fi;; |
1499 | esac | |
1500 | # Pass precious variables to config.status. | |
1501 | if test "$ac_new_set" = set; then | |
1502 | case $ac_new_val in | |
1503 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1504 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1505 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1506 | esac | |
1507 | case " $ac_configure_args " in | |
1508 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1509 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1510 | esac | |
1511 | fi | |
1512 | done | |
1513 | if $ac_cache_corrupted; then | |
1514 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1515 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1516 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1517 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1518 | { (exit 1); exit 1; }; } | |
1519 | fi | |
1520 | ||
1521 | ac_ext=c | |
1522 | ac_cpp='$CPP $CPPFLAGS' | |
1523 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1524 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1525 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1526 | ||
1527 | ||
1528 | ||
1529 | ||
1530 | ||
1531 | ||
1532 | ||
1533 | ||
1534 | ||
1535 | ||
1536 | ||
1537 | ||
1538 | ||
1539 | ||
1540 | ||
1541 | ||
1542 | ||
1543 | ||
1544 | ||
1545 | ||
1546 | ||
1547 | ||
1548 | ||
1549 | ||
1550 | ||
1551 | ||
1552 | ||
1553 | ||
1554 | ||
1555 | ||
1556 | ac_aux_dir= | |
1557 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1558 | if test -f $ac_dir/install-sh; then | |
1559 | ac_aux_dir=$ac_dir | |
1560 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1561 | break | |
1562 | elif test -f $ac_dir/install.sh; then | |
1563 | ac_aux_dir=$ac_dir | |
1564 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1565 | break | |
1566 | elif test -f $ac_dir/shtool; then | |
1567 | ac_aux_dir=$ac_dir | |
1568 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1569 | break | |
1570 | fi | |
1571 | done | |
1572 | if test -z "$ac_aux_dir"; then | |
1573 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1574 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1575 | { (exit 1); exit 1; }; } | |
1576 | fi | |
1577 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1578 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1579 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1580 | ||
1581 | # Make sure we can run config.sub. | |
1582 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1583 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1584 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1585 | { (exit 1); exit 1; }; } | |
1586 | ||
1587 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1588 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1589 | if test "${ac_cv_build+set}" = set; then | |
1590 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1591 | else | |
1592 | ac_cv_build_alias=$build_alias | |
1593 | test -z "$ac_cv_build_alias" && | |
1594 | ac_cv_build_alias=`$ac_config_guess` | |
1595 | test -z "$ac_cv_build_alias" && | |
1596 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1597 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1598 | { (exit 1); exit 1; }; } | |
1599 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1600 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1601 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1602 | { (exit 1); exit 1; }; } | |
1603 | ||
1604 | fi | |
1605 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1606 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1607 | build=$ac_cv_build | |
1608 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1609 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1610 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1611 | ||
1612 | ||
1613 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1614 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1615 | if test "${ac_cv_host+set}" = set; then | |
1616 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1617 | else | |
1618 | ac_cv_host_alias=$host_alias | |
1619 | test -z "$ac_cv_host_alias" && | |
1620 | ac_cv_host_alias=$ac_cv_build_alias | |
1621 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1622 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1623 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1624 | { (exit 1); exit 1; }; } | |
1625 | ||
1626 | fi | |
1627 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1628 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1629 | host=$ac_cv_host | |
1630 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1631 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1632 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1633 | ||
1634 | ||
1635 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1636 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1637 | if test "${ac_cv_target+set}" = set; then | |
1638 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1639 | else | |
1640 | ac_cv_target_alias=$target_alias | |
1641 | test "x$ac_cv_target_alias" = "x" && | |
1642 | ac_cv_target_alias=$ac_cv_host_alias | |
1643 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1644 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1645 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1646 | { (exit 1); exit 1; }; } | |
1647 | ||
1648 | fi | |
1649 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1650 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1651 | target=$ac_cv_target | |
1652 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1653 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1654 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1655 | ||
1656 | ||
1657 | # The aliases save the names the user supplied, while $host etc. | |
1658 | # will get canonicalized. | |
1659 | test -n "$target_alias" && | |
1660 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1661 | NONENONEs,x,x, && | |
1662 | program_prefix=${target_alias}- | |
1663 | ||
1664 | ||
1665 | ||
ceec2216 | 1666 | wx_major_version_number=2 |
dd8df4fc VZ |
1667 | wx_minor_version_number=7 |
1668 | wx_release_number=0 | |
1669 | wx_subrelease_number=0 | |
a848cd7e | 1670 | |
ceec2216 RL |
1671 | WX_RELEASE=$wx_major_version_number.$wx_minor_version_number |
1672 | WX_VERSION=$WX_RELEASE.$wx_release_number | |
1673 | WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number | |
a848cd7e | 1674 | |
ceec2216 | 1675 | WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number |
a848cd7e | 1676 | |
a848cd7e SC |
1677 | |
1678 | ||
1679 | ||
1680 | USE_UNIX=1 | |
1681 | USE_OS2=0 | |
1682 | USE_WIN32=0 | |
1683 | USE_DOS=0 | |
1684 | USE_BEOS=0 | |
1685 | USE_MAC=0 | |
1686 | ||
1687 | USE_AIX= | |
1688 | USE_BSD= USE_DARWIN= USE_FREEBSD= | |
1689 | USE_GNU= USE_HPUX= | |
1690 | USE_LINUX= | |
1691 | USE_NETBSD= | |
1692 | USE_OPENBSD= | |
1693 | USE_OSF= USE_SGI= | |
1694 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
1695 | USE_ULTRIX= | |
1696 | USE_UNIXWARE= | |
1697 | ||
1698 | USE_ALPHA= | |
1699 | ||
1700 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
1701 | ||
1702 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" | |
1703 | ||
1704 | DEFAULT_wxUSE_COCOA=0 | |
1705 | DEFAULT_wxUSE_GTK=0 | |
1706 | DEFAULT_wxUSE_MAC=0 | |
1707 | DEFAULT_wxUSE_MGL=0 | |
1708 | DEFAULT_wxUSE_MICROWIN=0 | |
1709 | DEFAULT_wxUSE_MOTIF=0 | |
1710 | DEFAULT_wxUSE_MSW=0 | |
1711 | DEFAULT_wxUSE_PM=0 | |
1712 | DEFAULT_wxUSE_X11=0 | |
1713 | ||
1714 | DEFAULT_DEFAULT_wxUSE_COCOA=0 | |
1715 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1716 | DEFAULT_DEFAULT_wxUSE_MAC=0 | |
1717 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1718 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 | |
1719 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
1720 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
1721 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
1722 | DEFAULT_DEFAULT_wxUSE_X11=0 | |
1723 | ||
1724 | PROGRAM_EXT= | |
1725 | SO_SUFFIX=so | |
1726 | SAMPLES_RPATH_FLAG= | |
1727 | SAMPLES_RPATH_POSTLINK= | |
1728 | ||
a03b8b04 RD |
1729 | DEFAULT_STD_FLAG=yes |
1730 | ||
a848cd7e SC |
1731 | case "${host}" in |
1732 | *-hp-hpux* ) | |
1733 | USE_HPUX=1 | |
1734 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1735 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1736 | SO_SUFFIX=sl | |
1737 | cat >>confdefs.h <<\_ACEOF | |
1738 | #define __HPUX__ 1 | |
1739 | _ACEOF | |
1740 | ||
2eef8513 VZ |
1741 | |
1742 | CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE" | |
a848cd7e SC |
1743 | ;; |
1744 | *-*-linux* ) | |
1745 | USE_LINUX=1 | |
1746 | cat >>confdefs.h <<\_ACEOF | |
1747 | #define __LINUX__ 1 | |
1748 | _ACEOF | |
1749 | ||
1750 | TMP=`uname -m` | |
1751 | if test "x$TMP" = "xalpha"; then | |
1752 | USE_ALPHA=1 | |
1753 | cat >>confdefs.h <<\_ACEOF | |
1754 | #define __ALPHA__ 1 | |
1755 | _ACEOF | |
1756 | ||
1757 | fi | |
1758 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1759 | ;; | |
1760 | *-*-gnu* | *-*-k*bsd*-gnu ) | |
1761 | USE_GNU=1 | |
1762 | TMP=`uname -m` | |
1763 | if test "x$TMP" = "xalpha"; then | |
1764 | USE_ALPHA=1 | |
1765 | cat >>confdefs.h <<\_ACEOF | |
1766 | #define __ALPHA__ 1 | |
1767 | _ACEOF | |
1768 | ||
1769 | fi | |
1770 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1771 | ;; | |
1772 | *-*-irix5* | *-*-irix6* ) | |
1773 | USE_SGI=1 | |
1774 | USE_SVR4=1 | |
1775 | cat >>confdefs.h <<\_ACEOF | |
1776 | #define __SGI__ 1 | |
1777 | _ACEOF | |
1778 | ||
1779 | cat >>confdefs.h <<\_ACEOF | |
1780 | #define __SVR4__ 1 | |
1781 | _ACEOF | |
1782 | ||
1783 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1784 | ;; | |
1785 | *-*-solaris2* ) | |
1786 | USE_SUN=1 | |
1787 | USE_SOLARIS=1 | |
1788 | USE_SVR4=1 | |
1789 | cat >>confdefs.h <<\_ACEOF | |
1790 | #define __SUN__ 1 | |
1791 | _ACEOF | |
1792 | ||
1793 | cat >>confdefs.h <<\_ACEOF | |
1794 | #define __SOLARIS__ 1 | |
1795 | _ACEOF | |
1796 | ||
1797 | cat >>confdefs.h <<\_ACEOF | |
1798 | #define __SVR4__ 1 | |
1799 | _ACEOF | |
1800 | ||
1801 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1802 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1803 | ;; | |
1804 | *-*-sunos4* ) | |
1805 | USE_SUN=1 | |
1806 | USE_SUNOS=1 | |
1807 | USE_BSD=1 | |
1808 | cat >>confdefs.h <<\_ACEOF | |
1809 | #define __SUN__ 1 | |
1810 | _ACEOF | |
1811 | ||
1812 | cat >>confdefs.h <<\_ACEOF | |
1813 | #define __SUNOS__ 1 | |
1814 | _ACEOF | |
1815 | ||
1816 | cat >>confdefs.h <<\_ACEOF | |
1817 | #define __BSD__ 1 | |
1818 | _ACEOF | |
1819 | ||
1820 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1821 | ;; | |
1822 | *-*-freebsd*) | |
1823 | USE_BSD=1 | |
1824 | USE_FREEBSD=1 | |
1825 | cat >>confdefs.h <<\_ACEOF | |
1826 | #define __FREEBSD__ 1 | |
1827 | _ACEOF | |
1828 | ||
1829 | cat >>confdefs.h <<\_ACEOF | |
1830 | #define __BSD__ 1 | |
1831 | _ACEOF | |
1832 | ||
1833 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1834 | ;; | |
1835 | *-*-openbsd*) | |
1836 | USE_BSD=1 | |
1837 | USE_OPENBSD=1 | |
1838 | cat >>confdefs.h <<\_ACEOF | |
1839 | #define __OPENBSD__ 1 | |
1840 | _ACEOF | |
1841 | ||
1842 | cat >>confdefs.h <<\_ACEOF | |
1843 | #define __BSD__ 1 | |
1844 | _ACEOF | |
1845 | ||
1846 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1847 | ;; | |
1848 | *-*-netbsd*) | |
1849 | USE_BSD=1 | |
1850 | USE_NETBSD=1 | |
1851 | cat >>confdefs.h <<\_ACEOF | |
1852 | #define __NETBSD__ 1 | |
1853 | _ACEOF | |
1854 | ||
1855 | cat >>confdefs.h <<\_ACEOF | |
1856 | #define __BSD__ 1 | |
1857 | _ACEOF | |
1858 | ||
1859 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1860 | ;; | |
1861 | *-*-osf* ) | |
1862 | USE_ALPHA=1 | |
1863 | USE_OSF=1 | |
1864 | cat >>confdefs.h <<\_ACEOF | |
1865 | #define __ALPHA__ 1 | |
1866 | _ACEOF | |
1867 | ||
1868 | cat >>confdefs.h <<\_ACEOF | |
1869 | #define __OSF__ 1 | |
1870 | _ACEOF | |
1871 | ||
1872 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1873 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1874 | ;; | |
1875 | *-*-dgux5* ) | |
1876 | USE_ALPHA=1 | |
1877 | USE_SVR4=1 | |
1878 | cat >>confdefs.h <<\_ACEOF | |
1879 | #define __ALPHA__ 1 | |
1880 | _ACEOF | |
1881 | ||
1882 | cat >>confdefs.h <<\_ACEOF | |
1883 | #define __SVR4__ 1 | |
1884 | _ACEOF | |
1885 | ||
1886 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1887 | ;; | |
1888 | *-*-sysv5* ) | |
1889 | USE_SYSV=1 | |
1890 | USE_SVR4=1 | |
1891 | cat >>confdefs.h <<\_ACEOF | |
1892 | #define __SYSV__ 1 | |
1893 | _ACEOF | |
1894 | ||
1895 | cat >>confdefs.h <<\_ACEOF | |
1896 | #define __SVR4__ 1 | |
1897 | _ACEOF | |
1898 | ||
1899 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1900 | ;; | |
1901 | *-*-aix* ) | |
1902 | USE_AIX=1 | |
1903 | USE_SYSV=1 | |
1904 | USE_SVR4=1 | |
1905 | SO_SUFFIX=a | |
1906 | cat >>confdefs.h <<\_ACEOF | |
1907 | #define __AIX__ 1 | |
1908 | _ACEOF | |
1909 | ||
1910 | cat >>confdefs.h <<\_ACEOF | |
1911 | #define __SYSV__ 1 | |
1912 | _ACEOF | |
1913 | ||
1914 | cat >>confdefs.h <<\_ACEOF | |
1915 | #define __SVR4__ 1 | |
1916 | _ACEOF | |
1917 | ||
1918 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1919 | ;; | |
1920 | ||
1921 | *-*-*UnixWare*) | |
1922 | USE_SYSV=1 | |
1923 | USE_SVR4=1 | |
1924 | USE_UNIXWARE=1 | |
1925 | cat >>confdefs.h <<\_ACEOF | |
1926 | #define __UNIXWARE__ 1 | |
1927 | _ACEOF | |
1928 | ||
1929 | ;; | |
1930 | ||
1931 | *-*-cygwin* | *-*-mingw32* ) | |
1932 | SO_SUFFIX=dll | |
1933 | PROGRAM_EXT=".exe" | |
a848cd7e | 1934 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
a03b8b04 | 1935 | DEFAULT_STD_FLAG=no |
a848cd7e SC |
1936 | ;; |
1937 | ||
1938 | *-pc-msdosdjgpp ) | |
1939 | USE_UNIX=0 | |
1940 | USE_DOS=1 | |
1941 | cat >>confdefs.h <<\_ACEOF | |
1942 | #define __DOS__ 1 | |
1943 | _ACEOF | |
1944 | ||
1945 | PROGRAM_EXT=".exe" | |
1946 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
a848cd7e SC |
1947 | ;; |
1948 | ||
1949 | *-pc-os2_emx | *-pc-os2-emx ) | |
1950 | cat >>confdefs.h <<\_ACEOF | |
1951 | #define __EMX__ 1 | |
1952 | _ACEOF | |
1953 | ||
1954 | USE_OS2=1 | |
1955 | cat >>confdefs.h <<\_ACEOF | |
1956 | #define __OS2__ 1 | |
1957 | _ACEOF | |
1958 | ||
1959 | PROGRAM_EXT=".exe" | |
1960 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
1961 | CXX=gcc | |
1962 | LDFLAGS="$LDFLAGS -Zcrtdll" | |
1963 | ac_executable_extensions=".exe" | |
1964 | export ac_executable_extensions | |
1965 | ac_save_IFS="$IFS" | |
1966 | IFS='\\' | |
1967 | ac_TEMP_PATH= | |
1968 | for ac_dir in $PATH; do | |
1969 | IFS=$ac_save_IFS | |
1970 | if test -z "$ac_TEMP_PATH"; then | |
1971 | ac_TEMP_PATH="$ac_dir" | |
1972 | else | |
1973 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
1974 | fi | |
1975 | done | |
1976 | export PATH="$ac_TEMP_PATH" | |
1977 | unset ac_TEMP_PATH | |
a03b8b04 | 1978 | DEFAULT_STD_FLAG=no |
a848cd7e SC |
1979 | ;; |
1980 | ||
cfda0ea8 | 1981 | *-*-darwin* ) |
a848cd7e SC |
1982 | USE_BSD=1 |
1983 | USE_DARWIN=1 | |
1984 | SO_SUFFIX=dylib | |
1985 | cat >>confdefs.h <<\_ACEOF | |
1986 | #define __BSD__ 1 | |
1987 | _ACEOF | |
1988 | ||
1989 | cat >>confdefs.h <<\_ACEOF | |
1990 | #define __DARWIN__ 1 | |
a848cd7e SC |
1991 | _ACEOF |
1992 | ||
1993 | cat >>confdefs.h <<\_ACEOF | |
1994 | #define TARGET_CARBON 1 | |
1995 | _ACEOF | |
1996 | ||
1997 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
a03b8b04 | 1998 | DEFAULT_STD_FLAG=no |
a848cd7e | 1999 | ;; |
1e9e8aba DE |
2000 | powerpc-apple-macos* ) |
2001 | USE_UNIX=0 | |
2002 | ac_cv_c_bigendian=yes | |
2003 | SO_SUFFIX=shlib | |
2004 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
a03b8b04 | 2005 | DEFAULT_STD_FLAG=no |
1e9e8aba | 2006 | ;; |
a848cd7e SC |
2007 | |
2008 | *-*-beos* ) | |
2009 | USE_BEOS=1 | |
2010 | cat >>confdefs.h <<\_ACEOF | |
2011 | #define __BEOS__ 1 | |
2012 | _ACEOF | |
2013 | ||
2014 | ;; | |
2015 | ||
2016 | *) | |
2017 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 | |
2018 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
2019 | { (exit 1); exit 1; }; } | |
2020 | esac | |
2021 | ||
2022 | ||
2023 | ||
2024 | ||
2025 | wx_arg_cache_file="configarg.cache" | |
2026 | echo "loading argument cache $wx_arg_cache_file" | |
2027 | rm -f ${wx_arg_cache_file}.tmp | |
2028 | touch ${wx_arg_cache_file}.tmp | |
2029 | touch ${wx_arg_cache_file} | |
2030 | ||
2031 | ||
2032 | DEBUG_CONFIGURE=0 | |
2033 | if test $DEBUG_CONFIGURE = 1; then | |
2034 | DEFAULT_wxUSE_UNIVERSAL=no | |
2035 | DEFAULT_wxUSE_STL=no | |
2036 | ||
2037 | DEFAULT_wxUSE_NANOX=no | |
2038 | ||
2039 | DEFAULT_wxUSE_THREADS=yes | |
2040 | ||
2041 | DEFAULT_wxUSE_SHARED=yes | |
2042 | DEFAULT_wxUSE_OPTIMISE=no | |
2043 | DEFAULT_wxUSE_PROFILE=no | |
2044 | DEFAULT_wxUSE_NO_DEPS=no | |
2045 | DEFAULT_wxUSE_NO_RTTI=no | |
2046 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
ffa0583f | 2047 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2048 | DEFAULT_wxUSE_PERMISSIVE=no |
2049 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2050 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2051 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
2052 | DEFAULT_wxUSE_MEM_TRACING=no | |
2053 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2054 | DEFAULT_wxUSE_DMALLOC=no | |
2055 | DEFAULT_wxUSE_APPLE_IEEE=no | |
2056 | ||
2057 | DEFAULT_wxUSE_EXCEPTIONS=no | |
2058 | DEFAULT_wxUSE_LOG=yes | |
2059 | DEFAULT_wxUSE_LOGWINDOW=no | |
2060 | DEFAULT_wxUSE_LOGGUI=no | |
2061 | DEFAULT_wxUSE_LOGDIALOG=no | |
2062 | ||
2063 | DEFAULT_wxUSE_GUI=yes | |
2064 | DEFAULT_wxUSE_CONTROLS=no | |
2065 | ||
2066 | DEFAULT_wxUSE_REGEX=no | |
2067 | DEFAULT_wxUSE_XML=no | |
2068 | DEFAULT_wxUSE_EXPAT=no | |
2069 | DEFAULT_wxUSE_ZLIB=no | |
2070 | DEFAULT_wxUSE_LIBPNG=no | |
2071 | DEFAULT_wxUSE_LIBJPEG=no | |
2072 | DEFAULT_wxUSE_LIBTIFF=no | |
2073 | DEFAULT_wxUSE_LIBXPM=no | |
2074 | DEFAULT_wxUSE_LIBMSPACK=no | |
2075 | DEFAULT_wxUSE_LIBSDL=no | |
d1c38808 | 2076 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
a848cd7e SC |
2077 | DEFAULT_wxUSE_ODBC=no |
2078 | DEFAULT_wxUSE_OPENGL=no | |
2079 | ||
2080 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no | |
eaff0f0d | 2081 | DEFAULT_wxUSE_STACKWALKER=no |
36b6448c | 2082 | DEFAULT_wxUSE_DEBUGREPORT=no |
a848cd7e SC |
2083 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
2084 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
59746b65 | 2085 | DEFAULT_wxUSE_STD_STRING=no |
a848cd7e SC |
2086 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
2087 | DEFAULT_wxUSE_DATETIME=no | |
2088 | DEFAULT_wxUSE_TIMER=no | |
2089 | DEFAULT_wxUSE_STOPWATCH=no | |
2090 | DEFAULT_wxUSE_FILE=no | |
2091 | DEFAULT_wxUSE_FFILE=no | |
07158944 | 2092 | DEFAULT_wxUSE_STDPATHS=no |
a848cd7e SC |
2093 | DEFAULT_wxUSE_TEXTBUFFER=no |
2094 | DEFAULT_wxUSE_TEXTFILE=no | |
2095 | DEFAULT_wxUSE_SOUND=no | |
3b57de8b | 2096 | DEFAULT_wxUSE_MEDIACTRL=no |
a848cd7e SC |
2097 | DEFAULT_wxUSE_INTL=no |
2098 | DEFAULT_wxUSE_CONFIG=no | |
2099 | DEFAULT_wxUSE_FONTMAP=no | |
2100 | DEFAULT_wxUSE_STREAMS=no | |
2101 | DEFAULT_wxUSE_SOCKETS=no | |
2102 | DEFAULT_wxUSE_OLE=no | |
2103 | DEFAULT_wxUSE_DATAOBJ=no | |
2104 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
2105 | DEFAULT_wxUSE_JOYSTICK=no | |
2106 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
2107 | DEFAULT_wxUSE_DYNAMIC_LOADER=no | |
2108 | DEFAULT_wxUSE_LONGLONG=no | |
2109 | DEFAULT_wxUSE_GEOMETRY=no | |
2110 | ||
2111 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2112 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2113 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2114 | ||
2115 | DEFAULT_wxUSE_CLIPBOARD=no | |
2116 | DEFAULT_wxUSE_TOOLTIPS=no | |
2117 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
2118 | DEFAULT_wxUSE_DRAGIMAGE=no | |
2119 | DEFAULT_wxUSE_SPLINES=no | |
fbe2ca43 | 2120 | DEFAULT_wxUSE_MOUSEWHEEL=no |
a848cd7e | 2121 | |
8a7b1113 | 2122 | DEFAULT_wxUSE_MDI=no |
a848cd7e SC |
2123 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no |
2124 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2125 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2126 | ||
2127 | DEFAULT_wxUSE_RESOURCES=no | |
2128 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2129 | DEFAULT_wxUSE_IPC=no | |
2130 | DEFAULT_wxUSE_HELP=no | |
2131 | DEFAULT_wxUSE_MS_HTML_HELP=no | |
2132 | DEFAULT_wxUSE_WXHTML_HELP=no | |
2133 | DEFAULT_wxUSE_TREELAYOUT=no | |
2134 | DEFAULT_wxUSE_METAFILE=no | |
2135 | DEFAULT_wxUSE_MIMETYPE=no | |
2136 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no | |
2137 | DEFAULT_wxUSE_PROTOCOL=no | |
2138 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2139 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2140 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2141 | DEFAULT_wxUSE_URL=no | |
2142 | ||
2143 | DEFAULT_wxUSE_COMMONDLGS=no | |
2144 | DEFAULT_wxUSE_CHOICEDLG=no | |
2145 | DEFAULT_wxUSE_COLOURDLG=no | |
2146 | DEFAULT_wxUSE_DIRDLG=no | |
2147 | DEFAULT_wxUSE_FILEDLG=no | |
2148 | DEFAULT_wxUSE_FINDREPLDLG=no | |
2149 | DEFAULT_wxUSE_FONTDLG=no | |
2150 | DEFAULT_wxUSE_MSGDLG=no | |
2151 | DEFAULT_wxUSE_NUMBERDLG=no | |
2152 | DEFAULT_wxUSE_TEXTDLG=no | |
2153 | DEFAULT_wxUSE_SPLASH=no | |
2154 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
2155 | DEFAULT_wxUSE_PROGRESSDLG=no | |
2156 | DEFAULT_wxUSE_WIZARDDLG=no | |
2157 | ||
2158 | DEFAULT_wxUSE_MENUS=no | |
2159 | DEFAULT_wxUSE_MINIFRAME=no | |
2160 | DEFAULT_wxUSE_HTML=no | |
9a8f0513 | 2161 | DEFAULT_wxUSE_XRC=no |
646b6ec1 | 2162 | DEFAULT_wxUSE_WEBKIT=no |
a848cd7e SC |
2163 | DEFAULT_wxUSE_FILESYSTEM=no |
2164 | DEFAULT_wxUSE_FS_INET=no | |
2165 | DEFAULT_wxUSE_FS_ZIP=no | |
2166 | DEFAULT_wxUSE_BUSYINFO=no | |
9e8e867f | 2167 | DEFAULT_wxUSE_ARCHIVE_STREAMS=no |
a848cd7e | 2168 | DEFAULT_wxUSE_ZIPSTREAM=no |
a848cd7e SC |
2169 | DEFAULT_wxUSE_VALIDATORS=no |
2170 | ||
2171 | DEFAULT_wxUSE_ACCEL=no | |
2172 | DEFAULT_wxUSE_BUTTON=no | |
2173 | DEFAULT_wxUSE_BMPBUTTON=no | |
2174 | DEFAULT_wxUSE_CALCTRL=no | |
2175 | DEFAULT_wxUSE_CARET=no | |
2176 | DEFAULT_wxUSE_CHECKBOX=no | |
2177 | DEFAULT_wxUSE_CHECKLST=no | |
2178 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 2179 | DEFAULT_wxUSE_CHOICEBOOK=no |
a848cd7e | 2180 | DEFAULT_wxUSE_COMBOBOX=no |
da98e9be | 2181 | DEFAULT_wxUSE_DATEPICKCTRL=no |
a848cd7e SC |
2182 | DEFAULT_wxUSE_DISPLAY=no |
2183 | DEFAULT_wxUSE_GAUGE=no | |
2184 | DEFAULT_wxUSE_GRID=no | |
2185 | DEFAULT_wxUSE_IMAGLIST=no | |
2186 | DEFAULT_wxUSE_LISTBOOK=no | |
2187 | DEFAULT_wxUSE_LISTBOX=no | |
2188 | DEFAULT_wxUSE_LISTCTRL=no | |
2189 | DEFAULT_wxUSE_NOTEBOOK=no | |
2190 | DEFAULT_wxUSE_RADIOBOX=no | |
2191 | DEFAULT_wxUSE_RADIOBTN=no | |
2192 | DEFAULT_wxUSE_SASH=no | |
2193 | DEFAULT_wxUSE_SCROLLBAR=no | |
2194 | DEFAULT_wxUSE_SLIDER=no | |
2195 | DEFAULT_wxUSE_SPINBTN=no | |
2196 | DEFAULT_wxUSE_SPINCTRL=no | |
2197 | DEFAULT_wxUSE_SPLITTER=no | |
2198 | DEFAULT_wxUSE_STATBMP=no | |
2199 | DEFAULT_wxUSE_STATBOX=no | |
2200 | DEFAULT_wxUSE_STATLINE=no | |
2201 | DEFAULT_wxUSE_STATTEXT=no | |
2202 | DEFAULT_wxUSE_STATUSBAR=yes | |
2203 | DEFAULT_wxUSE_TABDIALOG=no | |
2204 | DEFAULT_wxUSE_TEXTCTRL=no | |
2205 | DEFAULT_wxUSE_TOGGLEBTN=no | |
2206 | DEFAULT_wxUSE_TOOLBAR=no | |
2207 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
2208 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
0093c2fc | 2209 | DEFAULT_wxUSE_TREEBOOK=no |
a848cd7e SC |
2210 | DEFAULT_wxUSE_TREECTRL=no |
2211 | DEFAULT_wxUSE_POPUPWIN=no | |
2212 | DEFAULT_wxUSE_TIPWINDOW=no | |
2213 | ||
2214 | DEFAULT_wxUSE_UNICODE=no | |
2215 | DEFAULT_wxUSE_UNICODE_MSLU=no | |
2216 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2217 | ||
2218 | DEFAULT_wxUSE_PALETTE=no | |
2219 | DEFAULT_wxUSE_IMAGE=no | |
2220 | DEFAULT_wxUSE_GIF=no | |
2221 | DEFAULT_wxUSE_PCX=no | |
2222 | DEFAULT_wxUSE_PNM=no | |
2223 | DEFAULT_wxUSE_IFF=no | |
2224 | DEFAULT_wxUSE_XPM=no | |
2225 | DEFAULT_wxUSE_ICO_CUR=no | |
2226 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2227 | ||
2228 | DEFAULT_wxUSE_MONOLITHIC=no | |
2229 | DEFAULT_wxUSE_PLUGINS=no | |
2230 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
2231 | else | |
2232 | DEFAULT_wxUSE_UNIVERSAL=no | |
2233 | DEFAULT_wxUSE_STL=no | |
2234 | ||
2235 | DEFAULT_wxUSE_NANOX=no | |
2236 | ||
2237 | DEFAULT_wxUSE_THREADS=yes | |
2238 | ||
2239 | DEFAULT_wxUSE_SHARED=yes | |
2240 | DEFAULT_wxUSE_OPTIMISE=yes | |
2241 | DEFAULT_wxUSE_PROFILE=no | |
2242 | DEFAULT_wxUSE_NO_DEPS=no | |
2243 | DEFAULT_wxUSE_NO_RTTI=no | |
2244 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
ffa0583f | 2245 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2246 | DEFAULT_wxUSE_PERMISSIVE=no |
2247 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2248 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2249 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2250 | DEFAULT_wxUSE_MEM_TRACING=no | |
2251 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2252 | DEFAULT_wxUSE_DMALLOC=no | |
2253 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2254 | ||
2255 | DEFAULT_wxUSE_EXCEPTIONS=yes | |
2256 | DEFAULT_wxUSE_LOG=yes | |
2257 | DEFAULT_wxUSE_LOGWINDOW=yes | |
2258 | DEFAULT_wxUSE_LOGGUI=yes | |
2259 | DEFAULT_wxUSE_LOGDIALOG=yes | |
2260 | ||
2261 | DEFAULT_wxUSE_GUI=yes | |
2262 | ||
2263 | DEFAULT_wxUSE_REGEX=yes | |
2264 | DEFAULT_wxUSE_XML=yes | |
2265 | DEFAULT_wxUSE_EXPAT=yes | |
2266 | DEFAULT_wxUSE_ZLIB=yes | |
2267 | DEFAULT_wxUSE_LIBPNG=yes | |
2268 | DEFAULT_wxUSE_LIBJPEG=yes | |
2269 | DEFAULT_wxUSE_LIBTIFF=yes | |
2270 | DEFAULT_wxUSE_LIBXPM=yes | |
2271 | DEFAULT_wxUSE_LIBMSPACK=yes | |
2272 | DEFAULT_wxUSE_LIBSDL=no | |
a03b8b04 | 2273 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
a848cd7e | 2274 | DEFAULT_wxUSE_ODBC=no |
52cb607e | 2275 | DEFAULT_wxUSE_OPENGL=no |
a848cd7e SC |
2276 | |
2277 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes | |
eaff0f0d | 2278 | DEFAULT_wxUSE_STACKWALKER=yes |
6671c68b | 2279 | DEFAULT_wxUSE_DEBUGREPORT=yes |
a848cd7e | 2280 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
a03b8b04 RD |
2281 | DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG |
2282 | DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG | |
a848cd7e SC |
2283 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
2284 | DEFAULT_wxUSE_DATETIME=yes | |
2285 | DEFAULT_wxUSE_TIMER=yes | |
2286 | DEFAULT_wxUSE_STOPWATCH=yes | |
2287 | DEFAULT_wxUSE_FILE=yes | |
2288 | DEFAULT_wxUSE_FFILE=yes | |
07158944 | 2289 | DEFAULT_wxUSE_STDPATHS=yes |
a848cd7e SC |
2290 | DEFAULT_wxUSE_TEXTBUFFER=yes |
2291 | DEFAULT_wxUSE_TEXTFILE=yes | |
2292 | DEFAULT_wxUSE_SOUND=yes | |
3b57de8b | 2293 | DEFAULT_wxUSE_MEDIACTRL=no |
a848cd7e SC |
2294 | DEFAULT_wxUSE_INTL=yes |
2295 | DEFAULT_wxUSE_CONFIG=yes | |
2296 | DEFAULT_wxUSE_FONTMAP=yes | |
2297 | DEFAULT_wxUSE_STREAMS=yes | |
2298 | DEFAULT_wxUSE_SOCKETS=yes | |
2299 | DEFAULT_wxUSE_OLE=yes | |
2300 | DEFAULT_wxUSE_DATAOBJ=yes | |
2301 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
2302 | DEFAULT_wxUSE_JOYSTICK=yes | |
2303 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
2304 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes | |
2305 | DEFAULT_wxUSE_LONGLONG=yes | |
2306 | DEFAULT_wxUSE_GEOMETRY=yes | |
2307 | ||
2308 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2309 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2310 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2311 | ||
2312 | DEFAULT_wxUSE_CLIPBOARD=yes | |
2313 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2314 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
2315 | DEFAULT_wxUSE_DRAGIMAGE=yes | |
2316 | DEFAULT_wxUSE_SPLINES=yes | |
fbe2ca43 | 2317 | DEFAULT_wxUSE_MOUSEWHEEL=yes |
a848cd7e | 2318 | |
8a7b1113 | 2319 | DEFAULT_wxUSE_MDI=yes |
a848cd7e SC |
2320 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes |
2321 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2322 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2323 | ||
2324 | DEFAULT_wxUSE_RESOURCES=no | |
2325 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
2326 | DEFAULT_wxUSE_IPC=yes | |
2327 | DEFAULT_wxUSE_HELP=yes | |
2328 | DEFAULT_wxUSE_MS_HTML_HELP=yes | |
2329 | DEFAULT_wxUSE_WXHTML_HELP=yes | |
2330 | DEFAULT_wxUSE_TREELAYOUT=yes | |
2331 | DEFAULT_wxUSE_METAFILE=yes | |
2332 | DEFAULT_wxUSE_MIMETYPE=yes | |
2333 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes | |
2334 | DEFAULT_wxUSE_PROTOCOL=yes | |
2335 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2336 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2337 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2338 | DEFAULT_wxUSE_URL=yes | |
2339 | ||
2340 | DEFAULT_wxUSE_COMMONDLGS=yes | |
2341 | DEFAULT_wxUSE_CHOICEDLG=yes | |
2342 | DEFAULT_wxUSE_COLOURDLG=yes | |
2343 | DEFAULT_wxUSE_DIRDLG=yes | |
2344 | DEFAULT_wxUSE_FILEDLG=yes | |
2345 | DEFAULT_wxUSE_FINDREPLDLG=yes | |
2346 | DEFAULT_wxUSE_FONTDLG=yes | |
2347 | DEFAULT_wxUSE_MSGDLG=yes | |
2348 | DEFAULT_wxUSE_NUMBERDLG=yes | |
2349 | DEFAULT_wxUSE_TEXTDLG=yes | |
2350 | DEFAULT_wxUSE_SPLASH=yes | |
2351 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
2352 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
2353 | DEFAULT_wxUSE_WIZARDDLG=yes | |
2354 | ||
2355 | DEFAULT_wxUSE_MENUS=yes | |
2356 | DEFAULT_wxUSE_MINIFRAME=yes | |
2357 | DEFAULT_wxUSE_HTML=yes | |
9a8f0513 | 2358 | DEFAULT_wxUSE_XRC=yes |
646b6ec1 | 2359 | DEFAULT_wxUSE_WEBKIT=yes |
a848cd7e SC |
2360 | DEFAULT_wxUSE_FILESYSTEM=yes |
2361 | DEFAULT_wxUSE_FS_INET=yes | |
2362 | DEFAULT_wxUSE_FS_ZIP=yes | |
2363 | DEFAULT_wxUSE_BUSYINFO=yes | |
9e8e867f | 2364 | DEFAULT_wxUSE_ARCHIVE_STREAMS=yes |
a848cd7e | 2365 | DEFAULT_wxUSE_ZIPSTREAM=yes |
a848cd7e SC |
2366 | DEFAULT_wxUSE_VALIDATORS=yes |
2367 | ||
2368 | DEFAULT_wxUSE_ACCEL=yes | |
2369 | DEFAULT_wxUSE_BUTTON=yes | |
2370 | DEFAULT_wxUSE_BMPBUTTON=yes | |
2371 | DEFAULT_wxUSE_CALCTRL=yes | |
2372 | DEFAULT_wxUSE_CARET=yes | |
2373 | DEFAULT_wxUSE_CHECKBOX=yes | |
2374 | DEFAULT_wxUSE_CHECKLST=yes | |
2375 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 2376 | DEFAULT_wxUSE_CHOICEBOOK=yes |
a848cd7e | 2377 | DEFAULT_wxUSE_COMBOBOX=yes |
da98e9be | 2378 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
a848cd7e SC |
2379 | DEFAULT_wxUSE_DISPLAY=yes |
2380 | DEFAULT_wxUSE_GAUGE=yes | |
2381 | DEFAULT_wxUSE_GRID=yes | |
2382 | DEFAULT_wxUSE_IMAGLIST=yes | |
2383 | DEFAULT_wxUSE_LISTBOOK=yes | |
2384 | DEFAULT_wxUSE_LISTBOX=yes | |
2385 | DEFAULT_wxUSE_LISTCTRL=yes | |
2386 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2387 | DEFAULT_wxUSE_RADIOBOX=yes | |
2388 | DEFAULT_wxUSE_RADIOBTN=yes | |
2389 | DEFAULT_wxUSE_SASH=yes | |
2390 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2391 | DEFAULT_wxUSE_SLIDER=yes | |
2392 | DEFAULT_wxUSE_SPINBTN=yes | |
2393 | DEFAULT_wxUSE_SPINCTRL=yes | |
2394 | DEFAULT_wxUSE_SPLITTER=yes | |
2395 | DEFAULT_wxUSE_STATBMP=yes | |
2396 | DEFAULT_wxUSE_STATBOX=yes | |
2397 | DEFAULT_wxUSE_STATLINE=yes | |
2398 | DEFAULT_wxUSE_STATTEXT=yes | |
2399 | DEFAULT_wxUSE_STATUSBAR=yes | |
2400 | DEFAULT_wxUSE_TABDIALOG=no | |
2401 | DEFAULT_wxUSE_TEXTCTRL=yes | |
2402 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
2403 | DEFAULT_wxUSE_TOOLBAR=yes | |
2404 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
2405 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
0093c2fc | 2406 | DEFAULT_wxUSE_TREEBOOK=yes |
a848cd7e SC |
2407 | DEFAULT_wxUSE_TREECTRL=yes |
2408 | DEFAULT_wxUSE_POPUPWIN=yes | |
2409 | DEFAULT_wxUSE_TIPWINDOW=yes | |
2410 | ||
78de529b | 2411 | DEFAULT_wxUSE_UNICODE=no |
a848cd7e SC |
2412 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
2413 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2414 | ||
2415 | DEFAULT_wxUSE_PALETTE=yes | |
2416 | DEFAULT_wxUSE_IMAGE=yes | |
2417 | DEFAULT_wxUSE_GIF=yes | |
2418 | DEFAULT_wxUSE_PCX=yes | |
2419 | DEFAULT_wxUSE_IFF=no | |
2420 | DEFAULT_wxUSE_PNM=yes | |
2421 | DEFAULT_wxUSE_XPM=yes | |
2422 | DEFAULT_wxUSE_ICO_CUR=yes | |
2423 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2424 | ||
2425 | DEFAULT_wxUSE_MONOLITHIC=no | |
2426 | DEFAULT_wxUSE_PLUGINS=no | |
2427 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
9f45f08e | 2428 | |
f34ca037 | 2429 | DEFAULT_wxUSE_GTK2=yes |
a848cd7e SC |
2430 | fi |
2431 | ||
2432 | ||
2433 | ||
f34ca037 | 2434 | |
a848cd7e SC |
2435 | for toolkit in `echo $ALL_TOOLKITS`; do |
2436 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` | |
2437 | if test "x$LINE" != "x" ; then | |
2438 | has_toolkit_in_cache=1 | |
2439 | eval "DEFAULT_$LINE" | |
2440 | eval "CACHE_$toolkit=1" | |
f34ca037 MW |
2441 | |
2442 | LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}` | |
2443 | if test "x$LINE" != "x" ; then | |
2444 | eval "DEFAULT_$LINE" | |
2445 | fi | |
a848cd7e SC |
2446 | fi |
2447 | done | |
2448 | ||
2449 | ||
2450 | ||
2451 | enablestring= | |
2452 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 | |
2453 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
2454 | no_cache=0 | |
2455 | # Check whether --enable-gui or --disable-gui was given. | |
2456 | if test "${enable_gui+set}" = set; then | |
2457 | enableval="$enable_gui" | |
2458 | ||
2459 | if test "$enableval" = yes; then | |
2460 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2461 | else | |
2462 | ac_cv_use_gui='wxUSE_GUI=no' | |
2463 | fi | |
2464 | ||
2465 | else | |
2466 | ||
2467 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
2468 | if test "x$LINE" != x ; then | |
2469 | eval "DEFAULT_$LINE" | |
2470 | else | |
2471 | no_cache=1 | |
2472 | fi | |
2473 | ||
2474 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
2475 | ||
2476 | fi; | |
2477 | ||
2478 | eval "$ac_cv_use_gui" | |
2479 | if test "$no_cache" != 1; then | |
2480 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2481 | fi | |
2482 | ||
2483 | if test "$wxUSE_GUI" = yes; then | |
2484 | echo "$as_me:$LINENO: result: yes" >&5 | |
2485 | echo "${ECHO_T}yes" >&6 | |
2486 | else | |
2487 | echo "$as_me:$LINENO: result: no" >&5 | |
2488 | echo "${ECHO_T}no" >&6 | |
2489 | fi | |
2490 | ||
2491 | ||
2492 | enablestring= | |
2493 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2494 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2495 | no_cache=0 | |
2496 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2497 | if test "${enable_monolithic+set}" = set; then | |
2498 | enableval="$enable_monolithic" | |
2499 | ||
2500 | if test "$enableval" = yes; then | |
2501 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2502 | else | |
2503 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2504 | fi | |
2505 | ||
2506 | else | |
2507 | ||
2508 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2509 | if test "x$LINE" != x ; then | |
2510 | eval "DEFAULT_$LINE" | |
2511 | else | |
2512 | no_cache=1 | |
2513 | fi | |
2514 | ||
2515 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2516 | ||
2517 | fi; | |
2518 | ||
2519 | eval "$ac_cv_use_monolithic" | |
2520 | if test "$no_cache" != 1; then | |
2521 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2522 | fi | |
2523 | ||
2524 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2525 | echo "$as_me:$LINENO: result: yes" >&5 | |
2526 | echo "${ECHO_T}yes" >&6 | |
2527 | else | |
2528 | echo "$as_me:$LINENO: result: no" >&5 | |
2529 | echo "${ECHO_T}no" >&6 | |
2530 | fi | |
2531 | ||
2532 | ||
2533 | enablestring= | |
2534 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5 | |
2535 | echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6 | |
2536 | no_cache=0 | |
2537 | # Check whether --enable-plugins or --disable-plugins was given. | |
2538 | if test "${enable_plugins+set}" = set; then | |
2539 | enableval="$enable_plugins" | |
2540 | ||
2541 | if test "$enableval" = yes; then | |
2542 | ac_cv_use_plugins='wxUSE_PLUGINS=yes' | |
2543 | else | |
2544 | ac_cv_use_plugins='wxUSE_PLUGINS=no' | |
2545 | fi | |
2546 | ||
2547 | else | |
2548 | ||
2549 | LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}` | |
2550 | if test "x$LINE" != x ; then | |
2551 | eval "DEFAULT_$LINE" | |
2552 | else | |
2553 | no_cache=1 | |
2554 | fi | |
2555 | ||
2556 | ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS | |
2557 | ||
2558 | fi; | |
2559 | ||
2560 | eval "$ac_cv_use_plugins" | |
2561 | if test "$no_cache" != 1; then | |
2562 | echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp | |
2563 | fi | |
2564 | ||
2565 | if test "$wxUSE_PLUGINS" = yes; then | |
2566 | echo "$as_me:$LINENO: result: yes" >&5 | |
2567 | echo "${ECHO_T}yes" >&6 | |
2568 | else | |
2569 | echo "$as_me:$LINENO: result: no" >&5 | |
2570 | echo "${ECHO_T}no" >&6 | |
2571 | fi | |
2572 | ||
2573 | ||
1c14217d VZ |
2574 | withstring=without |
2575 | echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5 | |
2576 | echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6 | |
2577 | no_cache=0 | |
2578 | ||
2579 | # Check whether --with-subdirs or --without-subdirs was given. | |
2580 | if test "${with_subdirs+set}" = set; then | |
2581 | withval="$with_subdirs" | |
2582 | ||
2583 | if test "$withval" = yes; then | |
2584 | ac_cv_use_subdirs='wxWITH_SUBDIRS=yes' | |
2585 | else | |
2586 | ac_cv_use_subdirs='wxWITH_SUBDIRS=no' | |
2587 | fi | |
2588 | ||
2589 | else | |
2590 | ||
2591 | LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}` | |
2592 | if test "x$LINE" != x ; then | |
2593 | eval "DEFAULT_$LINE" | |
2594 | else | |
2595 | no_cache=1 | |
2596 | fi | |
2597 | ||
2598 | ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS | |
2599 | ||
2600 | fi; | |
2601 | ||
2602 | eval "$ac_cv_use_subdirs" | |
2603 | if test "$no_cache" != 1; then | |
2604 | echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp | |
2605 | fi | |
2606 | ||
2607 | if test "$wxWITH_SUBDIRS" = yes; then | |
2608 | echo "$as_me:$LINENO: result: yes" >&5 | |
2609 | echo "${ECHO_T}yes" >&6 | |
2610 | else | |
2611 | echo "$as_me:$LINENO: result: no" >&5 | |
2612 | echo "${ECHO_T}no" >&6 | |
2613 | fi | |
2614 | ||
2615 | ||
a848cd7e SC |
2616 | if test "$wxUSE_GUI" = "yes"; then |
2617 | ||
2618 | ||
2619 | enablestring= | |
2620 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 | |
2621 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
2622 | no_cache=0 | |
2623 | # Check whether --enable-universal or --disable-universal was given. | |
2624 | if test "${enable_universal+set}" = set; then | |
2625 | enableval="$enable_universal" | |
2626 | ||
2627 | if test "$enableval" = yes; then | |
2628 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2629 | else | |
2630 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2631 | fi | |
2632 | ||
2633 | else | |
2634 | ||
2635 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
2636 | if test "x$LINE" != x ; then | |
2637 | eval "DEFAULT_$LINE" | |
2638 | else | |
2639 | no_cache=1 | |
2640 | fi | |
2641 | ||
2642 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
2643 | ||
2644 | fi; | |
2645 | ||
2646 | eval "$ac_cv_use_universal" | |
2647 | if test "$no_cache" != 1; then | |
2648 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2649 | fi | |
2650 | ||
2651 | if test "$wxUSE_UNIVERSAL" = yes; then | |
2652 | echo "$as_me:$LINENO: result: yes" >&5 | |
2653 | echo "${ECHO_T}yes" >&6 | |
2654 | else | |
2655 | echo "$as_me:$LINENO: result: no" >&5 | |
2656 | echo "${ECHO_T}no" >&6 | |
2657 | fi | |
2658 | ||
2659 | ||
2660 | # Check whether --with-gtk or --without-gtk was given. | |
2661 | if test "${with_gtk+set}" = set; then | |
2662 | withval="$with_gtk" | |
2663 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
2664 | fi; | |
2665 | ||
2666 | # Check whether --with-motif or --without-motif was given. | |
2667 | if test "${with_motif+set}" = set; then | |
2668 | withval="$with_motif" | |
2669 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
2670 | fi; | |
2671 | ||
2672 | # Check whether --with-mac or --without-mac was given. | |
2673 | if test "${with_mac+set}" = set; then | |
2674 | withval="$with_mac" | |
c228d3a4 | 2675 | wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2676 | fi; |
2677 | ||
2678 | # Check whether --with-cocoa or --without-cocoa was given. | |
2679 | if test "${with_cocoa+set}" = set; then | |
2680 | withval="$with_cocoa" | |
c228d3a4 | 2681 | wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2682 | fi; |
2683 | ||
2684 | # Check whether --with-wine or --without-wine was given. | |
2685 | if test "${with_wine+set}" = set; then | |
2686 | withval="$with_wine" | |
2687 | wxUSE_WINE="$withval" CACHE_WINE=1 | |
2688 | fi; | |
2689 | ||
2690 | # Check whether --with-msw or --without-msw was given. | |
2691 | if test "${with_msw+set}" = set; then | |
2692 | withval="$with_msw" | |
2693 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 | |
2694 | fi; | |
2695 | ||
2696 | # Check whether --with-pm or --without-pm was given. | |
2697 | if test "${with_pm+set}" = set; then | |
2698 | withval="$with_pm" | |
2699 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
2700 | fi; | |
2701 | ||
2702 | # Check whether --with-mgl or --without-mgl was given. | |
2703 | if test "${with_mgl+set}" = set; then | |
2704 | withval="$with_mgl" | |
2705 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
2706 | fi; | |
2707 | ||
2708 | # Check whether --with-microwin or --without-microwin was given. | |
2709 | if test "${with_microwin+set}" = set; then | |
2710 | withval="$with_microwin" | |
2711 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
2712 | fi; | |
2713 | ||
2714 | # Check whether --with-x11 or --without-x11 was given. | |
2715 | if test "${with_x11+set}" = set; then | |
2716 | withval="$with_x11" | |
2717 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
2718 | fi; | |
2719 | ||
2720 | enablestring= | |
2721 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 | |
2722 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
2723 | no_cache=0 | |
2724 | # Check whether --enable-nanox or --disable-nanox was given. | |
2725 | if test "${enable_nanox+set}" = set; then | |
2726 | enableval="$enable_nanox" | |
2727 | ||
2728 | if test "$enableval" = yes; then | |
2729 | ac_cv_use_nanox='wxUSE_NANOX=yes' | |
2730 | else | |
2731 | ac_cv_use_nanox='wxUSE_NANOX=no' | |
2732 | fi | |
2733 | ||
2734 | else | |
2735 | ||
2736 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
2737 | if test "x$LINE" != x ; then | |
2738 | eval "DEFAULT_$LINE" | |
2739 | else | |
2740 | no_cache=1 | |
2741 | fi | |
2742 | ||
2743 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX | |
2744 | ||
2745 | fi; | |
2746 | ||
2747 | eval "$ac_cv_use_nanox" | |
2748 | if test "$no_cache" != 1; then | |
2749 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp | |
2750 | fi | |
2751 | ||
2752 | if test "$wxUSE_NANOX" = yes; then | |
2753 | echo "$as_me:$LINENO: result: yes" >&5 | |
2754 | echo "${ECHO_T}yes" >&6 | |
2755 | else | |
2756 | echo "$as_me:$LINENO: result: no" >&5 | |
2757 | echo "${ECHO_T}no" >&6 | |
2758 | fi | |
2759 | ||
2760 | ||
f34ca037 MW |
2761 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
2762 | if test "${enable_gtk2+set}" = set; then | |
2763 | enableval="$enable_gtk2" | |
2764 | wxUSE_GTK2="$enableval" | |
2765 | fi; | |
a848cd7e | 2766 | |
a848cd7e SC |
2767 | enablestring= |
2768 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5 | |
2769 | echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6 | |
2770 | no_cache=0 | |
2771 | # Check whether --enable-gpe or --disable-gpe was given. | |
2772 | if test "${enable_gpe+set}" = set; then | |
2773 | enableval="$enable_gpe" | |
2774 | ||
2775 | if test "$enableval" = yes; then | |
2776 | ac_cv_use_gpe='wxUSE_GPE=yes' | |
2777 | else | |
2778 | ac_cv_use_gpe='wxUSE_GPE=no' | |
2779 | fi | |
2780 | ||
2781 | else | |
2782 | ||
2783 | LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}` | |
2784 | if test "x$LINE" != x ; then | |
2785 | eval "DEFAULT_$LINE" | |
2786 | else | |
2787 | no_cache=1 | |
2788 | fi | |
2789 | ||
2790 | ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE | |
2791 | ||
2792 | fi; | |
2793 | ||
2794 | eval "$ac_cv_use_gpe" | |
2795 | if test "$no_cache" != 1; then | |
2796 | echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp | |
2797 | fi | |
2798 | ||
2799 | if test "$wxUSE_GPE" = yes; then | |
2800 | echo "$as_me:$LINENO: result: yes" >&5 | |
2801 | echo "${ECHO_T}yes" >&6 | |
2802 | else | |
2803 | echo "$as_me:$LINENO: result: no" >&5 | |
2804 | echo "${ECHO_T}no" >&6 | |
2805 | fi | |
2806 | ||
2807 | ||
2808 | ||
2809 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2810 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
2811 | no_cache=0 | |
2812 | ||
2813 | # Check whether --with-libpng or --without-libpng was given. | |
2814 | if test "${with_libpng+set}" = set; then | |
2815 | withval="$with_libpng" | |
2816 | ||
2817 | if test "$withval" = yes; then | |
2818 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
2819 | elif test "$withval" = no; then | |
2820 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
2821 | elif test "$withval" = sys; then | |
2822 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
2823 | elif test "$withval" = builtin; then | |
2824 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
2825 | else | |
2826 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2827 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2828 | { (exit 1); exit 1; }; } | |
2829 | fi | |
2830 | ||
2831 | else | |
2832 | ||
2833 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
2834 | if test "x$LINE" != x ; then | |
2835 | eval "DEFAULT_$LINE" | |
2836 | else | |
2837 | no_cache=1 | |
2838 | fi | |
2839 | ||
2840 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
2841 | ||
2842 | fi; | |
2843 | ||
2844 | eval "$ac_cv_use_libpng" | |
2845 | if test "$no_cache" != 1; then | |
2846 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
2847 | fi | |
2848 | ||
2849 | if test "$wxUSE_LIBPNG" = yes; then | |
2850 | echo "$as_me:$LINENO: result: yes" >&5 | |
2851 | echo "${ECHO_T}yes" >&6 | |
2852 | elif test "$wxUSE_LIBPNG" = no; then | |
2853 | echo "$as_me:$LINENO: result: no" >&5 | |
2854 | echo "${ECHO_T}no" >&6 | |
2855 | elif test "$wxUSE_LIBPNG" = sys; then | |
2856 | echo "$as_me:$LINENO: result: system version" >&5 | |
2857 | echo "${ECHO_T}system version" >&6 | |
2858 | elif test "$wxUSE_LIBPNG" = builtin; then | |
2859 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2860 | echo "${ECHO_T}builtin version" >&6 | |
2861 | else | |
2862 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2863 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2864 | { (exit 1); exit 1; }; } | |
2865 | fi | |
2866 | ||
2867 | ||
2868 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2869 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
2870 | no_cache=0 | |
2871 | ||
2872 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
2873 | if test "${with_libjpeg+set}" = set; then | |
2874 | withval="$with_libjpeg" | |
2875 | ||
2876 | if test "$withval" = yes; then | |
2877 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
2878 | elif test "$withval" = no; then | |
2879 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
2880 | elif test "$withval" = sys; then | |
2881 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
2882 | elif test "$withval" = builtin; then | |
2883 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
2884 | else | |
2885 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2886 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2887 | { (exit 1); exit 1; }; } | |
2888 | fi | |
2889 | ||
2890 | else | |
2891 | ||
2892 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
2893 | if test "x$LINE" != x ; then | |
2894 | eval "DEFAULT_$LINE" | |
2895 | else | |
2896 | no_cache=1 | |
2897 | fi | |
2898 | ||
2899 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
2900 | ||
2901 | fi; | |
2902 | ||
2903 | eval "$ac_cv_use_libjpeg" | |
2904 | if test "$no_cache" != 1; then | |
2905 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
2906 | fi | |
2907 | ||
2908 | if test "$wxUSE_LIBJPEG" = yes; then | |
2909 | echo "$as_me:$LINENO: result: yes" >&5 | |
2910 | echo "${ECHO_T}yes" >&6 | |
2911 | elif test "$wxUSE_LIBJPEG" = no; then | |
2912 | echo "$as_me:$LINENO: result: no" >&5 | |
2913 | echo "${ECHO_T}no" >&6 | |
2914 | elif test "$wxUSE_LIBJPEG" = sys; then | |
2915 | echo "$as_me:$LINENO: result: system version" >&5 | |
2916 | echo "${ECHO_T}system version" >&6 | |
2917 | elif test "$wxUSE_LIBJPEG" = builtin; then | |
2918 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2919 | echo "${ECHO_T}builtin version" >&6 | |
2920 | else | |
2921 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2922 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2923 | { (exit 1); exit 1; }; } | |
2924 | fi | |
2925 | ||
2926 | ||
2927 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2928 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
2929 | no_cache=0 | |
2930 | ||
2931 | # Check whether --with-libtiff or --without-libtiff was given. | |
2932 | if test "${with_libtiff+set}" = set; then | |
2933 | withval="$with_libtiff" | |
2934 | ||
2935 | if test "$withval" = yes; then | |
2936 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
2937 | elif test "$withval" = no; then | |
2938 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
2939 | elif test "$withval" = sys; then | |
2940 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
2941 | elif test "$withval" = builtin; then | |
2942 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
2943 | else | |
2944 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2945 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2946 | { (exit 1); exit 1; }; } | |
2947 | fi | |
2948 | ||
2949 | else | |
2950 | ||
2951 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
2952 | if test "x$LINE" != x ; then | |
2953 | eval "DEFAULT_$LINE" | |
2954 | else | |
2955 | no_cache=1 | |
2956 | fi | |
2957 | ||
2958 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
2959 | ||
2960 | fi; | |
2961 | ||
2962 | eval "$ac_cv_use_libtiff" | |
2963 | if test "$no_cache" != 1; then | |
2964 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
2965 | fi | |
2966 | ||
2967 | if test "$wxUSE_LIBTIFF" = yes; then | |
2968 | echo "$as_me:$LINENO: result: yes" >&5 | |
2969 | echo "${ECHO_T}yes" >&6 | |
2970 | elif test "$wxUSE_LIBTIFF" = no; then | |
2971 | echo "$as_me:$LINENO: result: no" >&5 | |
2972 | echo "${ECHO_T}no" >&6 | |
2973 | elif test "$wxUSE_LIBTIFF" = sys; then | |
2974 | echo "$as_me:$LINENO: result: system version" >&5 | |
2975 | echo "${ECHO_T}system version" >&6 | |
2976 | elif test "$wxUSE_LIBTIFF" = builtin; then | |
2977 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2978 | echo "${ECHO_T}builtin version" >&6 | |
2979 | else | |
2980 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2981 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2982 | { (exit 1); exit 1; }; } | |
2983 | fi | |
2984 | ||
2985 | ||
2986 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 | |
2987 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
2988 | no_cache=0 | |
2989 | ||
2990 | # Check whether --with-libxpm or --without-libxpm was given. | |
2991 | if test "${with_libxpm+set}" = set; then | |
2992 | withval="$with_libxpm" | |
2993 | ||
2994 | if test "$withval" = yes; then | |
2995 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
2996 | elif test "$withval" = no; then | |
2997 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
2998 | elif test "$withval" = sys; then | |
2999 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
3000 | elif test "$withval" = builtin; then | |
3001 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
3002 | else | |
3003 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
3004 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
3005 | { (exit 1); exit 1; }; } | |
3006 | fi | |
3007 | ||
3008 | else | |
3009 | ||
3010 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
3011 | if test "x$LINE" != x ; then | |
3012 | eval "DEFAULT_$LINE" | |
3013 | else | |
3014 | no_cache=1 | |
3015 | fi | |
3016 | ||
3017 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
3018 | ||
3019 | fi; | |
3020 | ||
3021 | eval "$ac_cv_use_libxpm" | |
3022 | if test "$no_cache" != 1; then | |
3023 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
3024 | fi | |
3025 | ||
3026 | if test "$wxUSE_LIBXPM" = yes; then | |
3027 | echo "$as_me:$LINENO: result: yes" >&5 | |
3028 | echo "${ECHO_T}yes" >&6 | |
3029 | elif test "$wxUSE_LIBXPM" = no; then | |
3030 | echo "$as_me:$LINENO: result: no" >&5 | |
3031 | echo "${ECHO_T}no" >&6 | |
3032 | elif test "$wxUSE_LIBXPM" = sys; then | |
3033 | echo "$as_me:$LINENO: result: system version" >&5 | |
3034 | echo "${ECHO_T}system version" >&6 | |
3035 | elif test "$wxUSE_LIBXPM" = builtin; then | |
3036 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3037 | echo "${ECHO_T}builtin version" >&6 | |
3038 | else | |
3039 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
3040 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
3041 | { (exit 1); exit 1; }; } | |
3042 | fi | |
3043 | ||
3044 | ||
1c14217d VZ |
3045 | withstring= |
3046 | echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5 | |
3047 | echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6 | |
a848cd7e SC |
3048 | no_cache=0 |
3049 | ||
3050 | # Check whether --with-libmspack or --without-libmspack was given. | |
3051 | if test "${with_libmspack+set}" = set; then | |
3052 | withval="$with_libmspack" | |
3053 | ||
3054 | if test "$withval" = yes; then | |
3055 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
3056 | else | |
3057 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
3058 | fi | |
3059 | ||
3060 | else | |
3061 | ||
3062 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
3063 | if test "x$LINE" != x ; then | |
3064 | eval "DEFAULT_$LINE" | |
3065 | else | |
3066 | no_cache=1 | |
3067 | fi | |
3068 | ||
3069 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
3070 | ||
3071 | fi; | |
3072 | ||
3073 | eval "$ac_cv_use_libmspack" | |
3074 | if test "$no_cache" != 1; then | |
3075 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
3076 | fi | |
3077 | ||
3078 | if test "$wxUSE_LIBMSPACK" = yes; then | |
3079 | echo "$as_me:$LINENO: result: yes" >&5 | |
3080 | echo "${ECHO_T}yes" >&6 | |
3081 | else | |
3082 | echo "$as_me:$LINENO: result: no" >&5 | |
3083 | echo "${ECHO_T}no" >&6 | |
3084 | fi | |
3085 | ||
3086 | ||
1c14217d VZ |
3087 | withstring= |
3088 | echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5 | |
3089 | echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6 | |
a848cd7e SC |
3090 | no_cache=0 |
3091 | ||
3092 | # Check whether --with-sdl or --without-sdl was given. | |
3093 | if test "${with_sdl+set}" = set; then | |
3094 | withval="$with_sdl" | |
3095 | ||
3096 | if test "$withval" = yes; then | |
3097 | ac_cv_use_sdl='wxUSE_LIBSDL=yes' | |
3098 | else | |
3099 | ac_cv_use_sdl='wxUSE_LIBSDL=no' | |
3100 | fi | |
3101 | ||
3102 | else | |
3103 | ||
3104 | LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}` | |
3105 | if test "x$LINE" != x ; then | |
3106 | eval "DEFAULT_$LINE" | |
3107 | else | |
3108 | no_cache=1 | |
3109 | fi | |
3110 | ||
3111 | ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL | |
3112 | ||
3113 | fi; | |
3114 | ||
3115 | eval "$ac_cv_use_sdl" | |
3116 | if test "$no_cache" != 1; then | |
3117 | echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp | |
3118 | fi | |
3119 | ||
3120 | if test "$wxUSE_LIBSDL" = yes; then | |
3121 | echo "$as_me:$LINENO: result: yes" >&5 | |
3122 | echo "${ECHO_T}yes" >&6 | |
3123 | else | |
3124 | echo "$as_me:$LINENO: result: no" >&5 | |
3125 | echo "${ECHO_T}no" >&6 | |
3126 | fi | |
3127 | ||
3128 | ||
1c14217d VZ |
3129 | withstring= |
3130 | echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5 | |
3131 | echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6 | |
d1c38808 VZ |
3132 | no_cache=0 |
3133 | ||
3134 | # Check whether --with-gnomeprint or --without-gnomeprint was given. | |
3135 | if test "${with_gnomeprint+set}" = set; then | |
3136 | withval="$with_gnomeprint" | |
3137 | ||
3138 | if test "$withval" = yes; then | |
3139 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes' | |
3140 | else | |
3141 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no' | |
3142 | fi | |
3143 | ||
3144 | else | |
3145 | ||
3146 | LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}` | |
3147 | if test "x$LINE" != x ; then | |
3148 | eval "DEFAULT_$LINE" | |
3149 | else | |
3150 | no_cache=1 | |
3151 | fi | |
3152 | ||
3153 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT | |
3154 | ||
3155 | fi; | |
3156 | ||
3157 | eval "$ac_cv_use_gnomeprint" | |
3158 | if test "$no_cache" != 1; then | |
3159 | echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp | |
3160 | fi | |
3161 | ||
3162 | if test "$wxUSE_LIBGNOMEPRINT" = yes; then | |
3163 | echo "$as_me:$LINENO: result: yes" >&5 | |
3164 | echo "${ECHO_T}yes" >&6 | |
3165 | else | |
3166 | echo "$as_me:$LINENO: result: no" >&5 | |
3167 | echo "${ECHO_T}no" >&6 | |
3168 | fi | |
3169 | ||
3170 | ||
1c14217d VZ |
3171 | withstring= |
3172 | echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5 | |
3173 | echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6 | |
a848cd7e SC |
3174 | no_cache=0 |
3175 | ||
3176 | # Check whether --with-opengl or --without-opengl was given. | |
3177 | if test "${with_opengl+set}" = set; then | |
3178 | withval="$with_opengl" | |
3179 | ||
3180 | if test "$withval" = yes; then | |
3181 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
3182 | else | |
3183 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
3184 | fi | |
3185 | ||
3186 | else | |
3187 | ||
3188 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
3189 | if test "x$LINE" != x ; then | |
3190 | eval "DEFAULT_$LINE" | |
3191 | else | |
3192 | no_cache=1 | |
3193 | fi | |
3194 | ||
3195 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
3196 | ||
3197 | fi; | |
3198 | ||
3199 | eval "$ac_cv_use_opengl" | |
3200 | if test "$no_cache" != 1; then | |
3201 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
3202 | fi | |
3203 | ||
3204 | if test "$wxUSE_OPENGL" = yes; then | |
3205 | echo "$as_me:$LINENO: result: yes" >&5 | |
3206 | echo "${ECHO_T}yes" >&6 | |
3207 | else | |
3208 | echo "$as_me:$LINENO: result: no" >&5 | |
3209 | echo "${ECHO_T}no" >&6 | |
3210 | fi | |
3211 | ||
3212 | ||
3213 | fi | |
3214 | ||
3215 | ||
1c14217d VZ |
3216 | withstring= |
3217 | echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5 | |
3218 | echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6 | |
a848cd7e SC |
3219 | no_cache=0 |
3220 | ||
3221 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
3222 | if test "${with_dmalloc+set}" = set; then | |
3223 | withval="$with_dmalloc" | |
3224 | ||
3225 | if test "$withval" = yes; then | |
3226 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
3227 | else | |
3228 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
3229 | fi | |
3230 | ||
3231 | else | |
3232 | ||
3233 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
3234 | if test "x$LINE" != x ; then | |
3235 | eval "DEFAULT_$LINE" | |
3236 | else | |
3237 | no_cache=1 | |
3238 | fi | |
3239 | ||
3240 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
3241 | ||
3242 | fi; | |
3243 | ||
3244 | eval "$ac_cv_use_dmalloc" | |
3245 | if test "$no_cache" != 1; then | |
3246 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
3247 | fi | |
3248 | ||
3249 | if test "$wxUSE_DMALLOC" = yes; then | |
3250 | echo "$as_me:$LINENO: result: yes" >&5 | |
3251 | echo "${ECHO_T}yes" >&6 | |
3252 | else | |
3253 | echo "$as_me:$LINENO: result: no" >&5 | |
3254 | echo "${ECHO_T}no" >&6 | |
3255 | fi | |
3256 | ||
3257 | ||
3258 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
3259 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3260 | no_cache=0 | |
3261 | ||
3262 | # Check whether --with-regex or --without-regex was given. | |
3263 | if test "${with_regex+set}" = set; then | |
3264 | withval="$with_regex" | |
3265 | ||
3266 | if test "$withval" = yes; then | |
3267 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
3268 | elif test "$withval" = no; then | |
3269 | ac_cv_use_regex='wxUSE_REGEX=no' | |
3270 | elif test "$withval" = sys; then | |
3271 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
3272 | elif test "$withval" = builtin; then | |
3273 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3274 | else | |
3275 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3276 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3277 | { (exit 1); exit 1; }; } | |
3278 | fi | |
3279 | ||
3280 | else | |
3281 | ||
3282 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
3283 | if test "x$LINE" != x ; then | |
3284 | eval "DEFAULT_$LINE" | |
3285 | else | |
3286 | no_cache=1 | |
3287 | fi | |
3288 | ||
3289 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3290 | ||
3291 | fi; | |
3292 | ||
3293 | eval "$ac_cv_use_regex" | |
3294 | if test "$no_cache" != 1; then | |
3295 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3296 | fi | |
3297 | ||
3298 | if test "$wxUSE_REGEX" = yes; then | |
3299 | echo "$as_me:$LINENO: result: yes" >&5 | |
3300 | echo "${ECHO_T}yes" >&6 | |
3301 | elif test "$wxUSE_REGEX" = no; then | |
3302 | echo "$as_me:$LINENO: result: no" >&5 | |
3303 | echo "${ECHO_T}no" >&6 | |
3304 | elif test "$wxUSE_REGEX" = sys; then | |
3305 | echo "$as_me:$LINENO: result: system version" >&5 | |
3306 | echo "${ECHO_T}system version" >&6 | |
3307 | elif test "$wxUSE_REGEX" = builtin; then | |
3308 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3309 | echo "${ECHO_T}builtin version" >&6 | |
3310 | else | |
3311 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3312 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3313 | { (exit 1); exit 1; }; } | |
3314 | fi | |
3315 | ||
3316 | ||
3317 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3318 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
3319 | no_cache=0 | |
3320 | ||
3321 | # Check whether --with-zlib or --without-zlib was given. | |
3322 | if test "${with_zlib+set}" = set; then | |
3323 | withval="$with_zlib" | |
3324 | ||
3325 | if test "$withval" = yes; then | |
3326 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
3327 | elif test "$withval" = no; then | |
3328 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
3329 | elif test "$withval" = sys; then | |
3330 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
3331 | elif test "$withval" = builtin; then | |
3332 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
3333 | else | |
3334 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3335 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3336 | { (exit 1); exit 1; }; } | |
3337 | fi | |
3338 | ||
3339 | else | |
3340 | ||
3341 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
3342 | if test "x$LINE" != x ; then | |
3343 | eval "DEFAULT_$LINE" | |
3344 | else | |
3345 | no_cache=1 | |
3346 | fi | |
3347 | ||
3348 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
3349 | ||
3350 | fi; | |
3351 | ||
3352 | eval "$ac_cv_use_zlib" | |
3353 | if test "$no_cache" != 1; then | |
3354 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
3355 | fi | |
3356 | ||
3357 | if test "$wxUSE_ZLIB" = yes; then | |
3358 | echo "$as_me:$LINENO: result: yes" >&5 | |
3359 | echo "${ECHO_T}yes" >&6 | |
3360 | elif test "$wxUSE_ZLIB" = no; then | |
3361 | echo "$as_me:$LINENO: result: no" >&5 | |
3362 | echo "${ECHO_T}no" >&6 | |
3363 | elif test "$wxUSE_ZLIB" = sys; then | |
3364 | echo "$as_me:$LINENO: result: system version" >&5 | |
3365 | echo "${ECHO_T}system version" >&6 | |
3366 | elif test "$wxUSE_ZLIB" = builtin; then | |
3367 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3368 | echo "${ECHO_T}builtin version" >&6 | |
3369 | else | |
3370 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3371 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3372 | { (exit 1); exit 1; }; } | |
3373 | fi | |
3374 | ||
3375 | ||
3376 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3377 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
3378 | no_cache=0 | |
3379 | ||
3380 | # Check whether --with-odbc or --without-odbc was given. | |
3381 | if test "${with_odbc+set}" = set; then | |
3382 | withval="$with_odbc" | |
3383 | ||
3384 | if test "$withval" = yes; then | |
3385 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
3386 | elif test "$withval" = no; then | |
3387 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
3388 | elif test "$withval" = sys; then | |
3389 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3390 | elif test "$withval" = builtin; then | |
3391 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3392 | else | |
3393 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3394 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3395 | { (exit 1); exit 1; }; } | |
3396 | fi | |
3397 | ||
3398 | else | |
3399 | ||
3400 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
3401 | if test "x$LINE" != x ; then | |
3402 | eval "DEFAULT_$LINE" | |
3403 | else | |
3404 | no_cache=1 | |
3405 | fi | |
3406 | ||
3407 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
3408 | ||
3409 | fi; | |
3410 | ||
3411 | eval "$ac_cv_use_odbc" | |
3412 | if test "$no_cache" != 1; then | |
3413 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3414 | fi | |
3415 | ||
3416 | if test "$wxUSE_ODBC" = yes; then | |
3417 | echo "$as_me:$LINENO: result: yes" >&5 | |
3418 | echo "${ECHO_T}yes" >&6 | |
3419 | elif test "$wxUSE_ODBC" = no; then | |
3420 | echo "$as_me:$LINENO: result: no" >&5 | |
3421 | echo "${ECHO_T}no" >&6 | |
3422 | elif test "$wxUSE_ODBC" = sys; then | |
3423 | echo "$as_me:$LINENO: result: system version" >&5 | |
3424 | echo "${ECHO_T}system version" >&6 | |
3425 | elif test "$wxUSE_ODBC" = builtin; then | |
3426 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3427 | echo "${ECHO_T}builtin version" >&6 | |
3428 | else | |
3429 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3430 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3431 | { (exit 1); exit 1; }; } | |
3432 | fi | |
3433 | ||
3434 | ||
3435 | echo "$as_me:$LINENO: checking for --with-expat" >&5 | |
3436 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3437 | no_cache=0 | |
3438 | ||
3439 | # Check whether --with-expat or --without-expat was given. | |
3440 | if test "${with_expat+set}" = set; then | |
3441 | withval="$with_expat" | |
3442 | ||
3443 | if test "$withval" = yes; then | |
3444 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3445 | elif test "$withval" = no; then | |
3446 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3447 | elif test "$withval" = sys; then | |
3448 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3449 | elif test "$withval" = builtin; then | |
3450 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3451 | else | |
3452 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3453 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3454 | { (exit 1); exit 1; }; } | |
3455 | fi | |
3456 | ||
3457 | else | |
3458 | ||
3459 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3460 | if test "x$LINE" != x ; then | |
3461 | eval "DEFAULT_$LINE" | |
3462 | else | |
3463 | no_cache=1 | |
3464 | fi | |
3465 | ||
3466 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3467 | ||
3468 | fi; | |
3469 | ||
3470 | eval "$ac_cv_use_expat" | |
3471 | if test "$no_cache" != 1; then | |
3472 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3473 | fi | |
3474 | ||
3475 | if test "$wxUSE_EXPAT" = yes; then | |
3476 | echo "$as_me:$LINENO: result: yes" >&5 | |
3477 | echo "${ECHO_T}yes" >&6 | |
3478 | elif test "$wxUSE_EXPAT" = no; then | |
3479 | echo "$as_me:$LINENO: result: no" >&5 | |
3480 | echo "${ECHO_T}no" >&6 | |
3481 | elif test "$wxUSE_EXPAT" = sys; then | |
3482 | echo "$as_me:$LINENO: result: system version" >&5 | |
3483 | echo "${ECHO_T}system version" >&6 | |
3484 | elif test "$wxUSE_EXPAT" = builtin; then | |
3485 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3486 | echo "${ECHO_T}builtin version" >&6 | |
3487 | else | |
3488 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3489 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3490 | { (exit 1); exit 1; }; } | |
3491 | fi | |
3492 | ||
3493 | ||
3494 | ||
3495 | ||
3496 | enablestring= | |
3497 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 | |
3498 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
3499 | no_cache=0 | |
3500 | # Check whether --enable-shared or --disable-shared was given. | |
3501 | if test "${enable_shared+set}" = set; then | |
3502 | enableval="$enable_shared" | |
3503 | ||
3504 | if test "$enableval" = yes; then | |
3505 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3506 | else | |
3507 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3508 | fi | |
3509 | ||
3510 | else | |
3511 | ||
3512 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
3513 | if test "x$LINE" != x ; then | |
3514 | eval "DEFAULT_$LINE" | |
3515 | else | |
3516 | no_cache=1 | |
3517 | fi | |
3518 | ||
3519 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
3520 | ||
3521 | fi; | |
3522 | ||
3523 | eval "$ac_cv_use_shared" | |
3524 | if test "$no_cache" != 1; then | |
3525 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3526 | fi | |
3527 | ||
3528 | if test "$wxUSE_SHARED" = yes; then | |
3529 | echo "$as_me:$LINENO: result: yes" >&5 | |
3530 | echo "${ECHO_T}yes" >&6 | |
3531 | else | |
3532 | echo "$as_me:$LINENO: result: no" >&5 | |
3533 | echo "${ECHO_T}no" >&6 | |
3534 | fi | |
3535 | ||
3536 | ||
3537 | enablestring= | |
3538 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 | |
3539 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
3540 | no_cache=0 | |
3541 | # Check whether --enable-optimise or --disable-optimise was given. | |
3542 | if test "${enable_optimise+set}" = set; then | |
3543 | enableval="$enable_optimise" | |
3544 | ||
3545 | if test "$enableval" = yes; then | |
3546 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3547 | else | |
3548 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3549 | fi | |
3550 | ||
3551 | else | |
3552 | ||
3553 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
3554 | if test "x$LINE" != x ; then | |
3555 | eval "DEFAULT_$LINE" | |
3556 | else | |
3557 | no_cache=1 | |
3558 | fi | |
3559 | ||
3560 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
3561 | ||
3562 | fi; | |
3563 | ||
3564 | eval "$ac_cv_use_optimise" | |
3565 | if test "$no_cache" != 1; then | |
3566 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3567 | fi | |
3568 | ||
3569 | if test "$wxUSE_OPTIMISE" = yes; then | |
3570 | echo "$as_me:$LINENO: result: yes" >&5 | |
3571 | echo "${ECHO_T}yes" >&6 | |
3572 | else | |
3573 | echo "$as_me:$LINENO: result: no" >&5 | |
3574 | echo "${ECHO_T}no" >&6 | |
3575 | fi | |
3576 | ||
3577 | ||
3578 | enablestring= | |
3579 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 | |
3580 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
3581 | no_cache=0 | |
3582 | # Check whether --enable-debug or --disable-debug was given. | |
3583 | if test "${enable_debug+set}" = set; then | |
3584 | enableval="$enable_debug" | |
3585 | ||
3586 | if test "$enableval" = yes; then | |
3587 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3588 | else | |
3589 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3590 | fi | |
3591 | ||
3592 | else | |
3593 | ||
3594 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
3595 | if test "x$LINE" != x ; then | |
3596 | eval "DEFAULT_$LINE" | |
3597 | else | |
3598 | no_cache=1 | |
3599 | fi | |
3600 | ||
3601 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
3602 | ||
3603 | fi; | |
3604 | ||
3605 | eval "$ac_cv_use_debug" | |
3606 | if test "$no_cache" != 1; then | |
3607 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3608 | fi | |
3609 | ||
3610 | if test "$wxUSE_DEBUG" = yes; then | |
3611 | echo "$as_me:$LINENO: result: yes" >&5 | |
3612 | echo "${ECHO_T}yes" >&6 | |
3613 | else | |
3614 | echo "$as_me:$LINENO: result: no" >&5 | |
3615 | echo "${ECHO_T}no" >&6 | |
3616 | fi | |
3617 | ||
3618 | ||
3619 | enablestring= | |
3620 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3621 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3622 | no_cache=0 | |
3623 | # Check whether --enable-stl or --disable-stl was given. | |
3624 | if test "${enable_stl+set}" = set; then | |
3625 | enableval="$enable_stl" | |
3626 | ||
3627 | if test "$enableval" = yes; then | |
3628 | ac_cv_use_stl='wxUSE_STL=yes' | |
3629 | else | |
3630 | ac_cv_use_stl='wxUSE_STL=no' | |
3631 | fi | |
3632 | ||
3633 | else | |
3634 | ||
3635 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3636 | if test "x$LINE" != x ; then | |
3637 | eval "DEFAULT_$LINE" | |
3638 | else | |
3639 | no_cache=1 | |
3640 | fi | |
3641 | ||
3642 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3643 | ||
3644 | fi; | |
3645 | ||
3646 | eval "$ac_cv_use_stl" | |
3647 | if test "$no_cache" != 1; then | |
3648 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3649 | fi | |
3650 | ||
3651 | if test "$wxUSE_STL" = yes; then | |
3652 | echo "$as_me:$LINENO: result: yes" >&5 | |
3653 | echo "${ECHO_T}yes" >&6 | |
3654 | else | |
3655 | echo "$as_me:$LINENO: result: no" >&5 | |
3656 | echo "${ECHO_T}no" >&6 | |
3657 | fi | |
3658 | ||
3659 | if test "$USE_OS2" = "1"; then | |
69120ee4 | 3660 | DEFAULT_wxUSE_OMF=no |
a848cd7e SC |
3661 | |
3662 | enablestring= | |
3663 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5 | |
3664 | echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6 | |
3665 | no_cache=0 | |
3666 | # Check whether --enable-omf or --disable-omf was given. | |
3667 | if test "${enable_omf+set}" = set; then | |
3668 | enableval="$enable_omf" | |
3669 | ||
3670 | if test "$enableval" = yes; then | |
3671 | ac_cv_use_omf='wxUSE_OMF=yes' | |
3672 | else | |
3673 | ac_cv_use_omf='wxUSE_OMF=no' | |
3674 | fi | |
3675 | ||
3676 | else | |
3677 | ||
3678 | LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}` | |
3679 | if test "x$LINE" != x ; then | |
3680 | eval "DEFAULT_$LINE" | |
3681 | else | |
3682 | no_cache=1 | |
3683 | fi | |
3684 | ||
3685 | ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF | |
3686 | ||
3687 | fi; | |
3688 | ||
3689 | eval "$ac_cv_use_omf" | |
3690 | if test "$no_cache" != 1; then | |
3691 | echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp | |
3692 | fi | |
3693 | ||
3694 | if test "$wxUSE_OMF" = yes; then | |
3695 | echo "$as_me:$LINENO: result: yes" >&5 | |
3696 | echo "${ECHO_T}yes" >&6 | |
3697 | else | |
3698 | echo "$as_me:$LINENO: result: no" >&5 | |
3699 | echo "${ECHO_T}no" >&6 | |
3700 | fi | |
3701 | ||
3702 | fi | |
3703 | ||
3704 | if test "$wxUSE_DEBUG" = "yes"; then | |
3705 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3706 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
3707 | BUILD=debug | |
3708 | elif test "$wxUSE_DEBUG" = "no"; then | |
3709 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3710 | DEFAULT_wxUSE_DEBUG_INFO=no | |
3711 | BUILD=release | |
3712 | fi | |
3713 | ||
3714 | ||
3715 | enablestring= | |
3716 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 | |
3717 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
3718 | no_cache=0 | |
3719 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3720 | if test "${enable_debug_flag+set}" = set; then | |
3721 | enableval="$enable_debug_flag" | |
3722 | ||
3723 | if test "$enableval" = yes; then | |
3724 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3725 | else | |
3726 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3727 | fi | |
3728 | ||
3729 | else | |
3730 | ||
3731 | LINE=`grep "wxUSE_DEBUG_FLAG" ${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_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
3739 | ||
3740 | fi; | |
3741 | ||
3742 | eval "$ac_cv_use_debug_flag" | |
3743 | if test "$no_cache" != 1; then | |
3744 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3745 | fi | |
3746 | ||
3747 | if test "$wxUSE_DEBUG_FLAG" = 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_info" >&5 | |
3758 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
3759 | no_cache=0 | |
3760 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3761 | if test "${enable_debug_info+set}" = set; then | |
3762 | enableval="$enable_debug_info" | |
3763 | ||
3764 | if test "$enableval" = yes; then | |
3765 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3766 | else | |
3767 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3768 | fi | |
3769 | ||
3770 | else | |
3771 | ||
3772 | LINE=`grep "wxUSE_DEBUG_INFO" ${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_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
3780 | ||
3781 | fi; | |
3782 | ||
3783 | eval "$ac_cv_use_debug_info" | |
3784 | if test "$no_cache" != 1; then | |
3785 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3786 | fi | |
3787 | ||
3788 | if test "$wxUSE_DEBUG_INFO" = 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_gdb" >&5 | |
3799 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
3800 | no_cache=0 | |
3801 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3802 | if test "${enable_debug_gdb+set}" = set; then | |
3803 | enableval="$enable_debug_gdb" | |
3804 | ||
3805 | if test "$enableval" = yes; then | |
3806 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3807 | else | |
3808 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3809 | fi | |
3810 | ||
3811 | else | |
3812 | ||
3813 | LINE=`grep "wxUSE_DEBUG_GDB" ${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_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
3821 | ||
3822 | fi; | |
3823 | ||
3824 | eval "$ac_cv_use_debug_gdb" | |
3825 | if test "$no_cache" != 1; then | |
3826 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3827 | fi | |
3828 | ||
3829 | if test "$wxUSE_DEBUG_GDB" = 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}-debug_cntxt" >&5 | |
3840 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
3841 | no_cache=0 | |
3842 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3843 | if test "${enable_debug_cntxt+set}" = set; then | |
3844 | enableval="$enable_debug_cntxt" | |
3845 | ||
3846 | if test "$enableval" = yes; then | |
3847 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3848 | else | |
3849 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3850 | fi | |
3851 | ||
3852 | else | |
3853 | ||
3854 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${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_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
3862 | ||
3863 | fi; | |
3864 | ||
3865 | eval "$ac_cv_use_debug_cntxt" | |
3866 | if test "$no_cache" != 1; then | |
3867 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3868 | fi | |
3869 | ||
3870 | if test "$wxUSE_DEBUG_CONTEXT" = 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}-mem_tracing" >&5 | |
3881 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
3882 | no_cache=0 | |
3883 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3884 | if test "${enable_mem_tracing+set}" = set; then | |
3885 | enableval="$enable_mem_tracing" | |
3886 | ||
3887 | if test "$enableval" = yes; then | |
3888 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3889 | else | |
3890 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3891 | fi | |
3892 | ||
3893 | else | |
3894 | ||
3895 | LINE=`grep "wxUSE_MEM_TRACING" ${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_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
3903 | ||
3904 | fi; | |
3905 | ||
3906 | eval "$ac_cv_use_mem_tracing" | |
3907 | if test "$no_cache" != 1; then | |
3908 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3909 | fi | |
3910 | ||
3911 | if test "$wxUSE_MEM_TRACING" = 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}-profile" >&5 | |
3922 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
3923 | no_cache=0 | |
3924 | # Check whether --enable-profile or --disable-profile was given. | |
3925 | if test "${enable_profile+set}" = set; then | |
3926 | enableval="$enable_profile" | |
3927 | ||
3928 | if test "$enableval" = yes; then | |
3929 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3930 | else | |
3931 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3932 | fi | |
3933 | ||
3934 | else | |
3935 | ||
3936 | LINE=`grep "wxUSE_PROFILE" ${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_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
3944 | ||
3945 | fi; | |
3946 | ||
3947 | eval "$ac_cv_use_profile" | |
3948 | if test "$no_cache" != 1; then | |
3949 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3950 | fi | |
3951 | ||
3952 | if test "$wxUSE_PROFILE" = 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_rtti" >&5 | |
3963 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
3964 | no_cache=0 | |
3965 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3966 | if test "${enable_no_rtti+set}" = set; then | |
3967 | enableval="$enable_no_rtti" | |
3968 | ||
3969 | if test "$enableval" = yes; then | |
3970 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3971 | else | |
3972 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3973 | fi | |
3974 | ||
3975 | else | |
3976 | ||
3977 | LINE=`grep "wxUSE_NO_RTTI" ${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_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
3985 | ||
3986 | fi; | |
3987 | ||
3988 | eval "$ac_cv_use_no_rtti" | |
3989 | if test "$no_cache" != 1; then | |
3990 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3991 | fi | |
3992 | ||
3993 | if test "$wxUSE_NO_RTTI" = 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}-no_exceptions" >&5 | |
4004 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
4005 | no_cache=0 | |
4006 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
4007 | if test "${enable_no_exceptions+set}" = set; then | |
4008 | enableval="$enable_no_exceptions" | |
4009 | ||
4010 | if test "$enableval" = yes; then | |
4011 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
4012 | else | |
4013 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
4014 | fi | |
4015 | ||
4016 | else | |
4017 | ||
4018 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${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_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
4026 | ||
4027 | fi; | |
4028 | ||
4029 | eval "$ac_cv_use_no_exceptions" | |
4030 | if test "$no_cache" != 1; then | |
4031 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
4032 | fi | |
4033 | ||
4034 | if test "$wxUSE_NO_EXCEPTIONS" = 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}-permissive" >&5 | |
4045 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
4046 | no_cache=0 | |
4047 | # Check whether --enable-permissive or --disable-permissive was given. | |
4048 | if test "${enable_permissive+set}" = set; then | |
4049 | enableval="$enable_permissive" | |
4050 | ||
4051 | if test "$enableval" = yes; then | |
4052 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
4053 | else | |
4054 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
4055 | fi | |
4056 | ||
4057 | else | |
4058 | ||
4059 | LINE=`grep "wxUSE_PERMISSIVE" ${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_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
4067 | ||
4068 | fi; | |
4069 | ||
4070 | eval "$ac_cv_use_permissive" | |
4071 | if test "$no_cache" != 1; then | |
4072 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
4073 | fi | |
4074 | ||
4075 | if test "$wxUSE_PERMISSIVE" = 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 | enablestring= | |
4085 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 | |
4086 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
4087 | no_cache=0 | |
4088 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
4089 | if test "${enable_no_deps+set}" = set; then | |
4090 | enableval="$enable_no_deps" | |
4091 | ||
4092 | if test "$enableval" = yes; then | |
4093 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
4094 | else | |
4095 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
4096 | fi | |
4097 | ||
4098 | else | |
4099 | ||
4100 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
4101 | if test "x$LINE" != x ; then | |
4102 | eval "DEFAULT_$LINE" | |
4103 | else | |
4104 | no_cache=1 | |
4105 | fi | |
4106 | ||
4107 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
4108 | ||
4109 | fi; | |
4110 | ||
4111 | eval "$ac_cv_use_no_deps" | |
4112 | if test "$no_cache" != 1; then | |
4113 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
4114 | fi | |
4115 | ||
4116 | if test "$wxUSE_NO_DEPS" = yes; then | |
4117 | echo "$as_me:$LINENO: result: yes" >&5 | |
4118 | echo "${ECHO_T}yes" >&6 | |
4119 | else | |
4120 | echo "$as_me:$LINENO: result: no" >&5 | |
4121 | echo "${ECHO_T}no" >&6 | |
4122 | fi | |
4123 | ||
4124 | ||
4125 | ||
dee1a63f MB |
4126 | enablestring=enable |
4127 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 | |
4128 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
a848cd7e | 4129 | no_cache=0 |
dee1a63f MB |
4130 | # Check whether --enable-compat24 or --disable-compat24 was given. |
4131 | if test "${enable_compat24+set}" = set; then | |
4132 | enableval="$enable_compat24" | |
a848cd7e SC |
4133 | |
4134 | if test "$enableval" = yes; then | |
dee1a63f | 4135 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' |
a848cd7e | 4136 | else |
dee1a63f | 4137 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' |
a848cd7e SC |
4138 | fi |
4139 | ||
4140 | else | |
4141 | ||
dee1a63f | 4142 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` |
a848cd7e SC |
4143 | if test "x$LINE" != x ; then |
4144 | eval "DEFAULT_$LINE" | |
4145 | else | |
4146 | no_cache=1 | |
4147 | fi | |
4148 | ||
dee1a63f | 4149 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 |
a848cd7e SC |
4150 | |
4151 | fi; | |
4152 | ||
dee1a63f | 4153 | eval "$ac_cv_use_compat24" |
a848cd7e | 4154 | if test "$no_cache" != 1; then |
dee1a63f | 4155 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
4156 | fi |
4157 | ||
dee1a63f | 4158 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then |
a848cd7e SC |
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 | ||
4167 | enablestring=disable | |
dee1a63f MB |
4168 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5 |
4169 | echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6 | |
a848cd7e | 4170 | no_cache=0 |
dee1a63f MB |
4171 | # Check whether --enable-compat26 or --disable-compat26 was given. |
4172 | if test "${enable_compat26+set}" = set; then | |
4173 | enableval="$enable_compat26" | |
a848cd7e SC |
4174 | |
4175 | if test "$enableval" = yes; then | |
dee1a63f | 4176 | ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes' |
a848cd7e | 4177 | else |
dee1a63f | 4178 | ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no' |
a848cd7e SC |
4179 | fi |
4180 | ||
4181 | else | |
4182 | ||
dee1a63f | 4183 | LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}` |
a848cd7e SC |
4184 | if test "x$LINE" != x ; then |
4185 | eval "DEFAULT_$LINE" | |
4186 | else | |
4187 | no_cache=1 | |
4188 | fi | |
4189 | ||
dee1a63f | 4190 | ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6 |
a848cd7e SC |
4191 | |
4192 | fi; | |
4193 | ||
dee1a63f | 4194 | eval "$ac_cv_use_compat26" |
a848cd7e | 4195 | if test "$no_cache" != 1; then |
dee1a63f | 4196 | echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
4197 | fi |
4198 | ||
dee1a63f | 4199 | if test "$WXWIN_COMPATIBILITY_2_6" = yes; then |
a848cd7e SC |
4200 | echo "$as_me:$LINENO: result: yes" >&5 |
4201 | echo "${ECHO_T}yes" >&6 | |
4202 | else | |
4203 | echo "$as_me:$LINENO: result: no" >&5 | |
4204 | echo "${ECHO_T}no" >&6 | |
4205 | fi | |
4206 | ||
4207 | ||
ffa0583f RL |
4208 | |
4209 | enablestring= | |
4210 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5 | |
4211 | echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6 | |
4212 | no_cache=0 | |
4213 | # Check whether --enable-rpath or --disable-rpath was given. | |
a848cd7e SC |
4214 | if test "${enable_rpath+set}" = set; then |
4215 | enableval="$enable_rpath" | |
ffa0583f RL |
4216 | |
4217 | if test "$enableval" = yes; then | |
4218 | ac_cv_use_rpath='wxUSE_RPATH=yes' | |
4219 | else | |
4220 | ac_cv_use_rpath='wxUSE_RPATH=no' | |
4221 | fi | |
4222 | ||
4223 | else | |
4224 | ||
4225 | LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}` | |
4226 | if test "x$LINE" != x ; then | |
4227 | eval "DEFAULT_$LINE" | |
4228 | else | |
4229 | no_cache=1 | |
4230 | fi | |
4231 | ||
4232 | ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH | |
4233 | ||
a848cd7e SC |
4234 | fi; |
4235 | ||
ffa0583f RL |
4236 | eval "$ac_cv_use_rpath" |
4237 | if test "$no_cache" != 1; then | |
4238 | echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp | |
4239 | fi | |
4240 | ||
4241 | if test "$wxUSE_RPATH" = yes; then | |
4242 | echo "$as_me:$LINENO: result: yes" >&5 | |
4243 | echo "${ECHO_T}yes" >&6 | |
4244 | else | |
4245 | echo "$as_me:$LINENO: result: no" >&5 | |
4246 | echo "${ECHO_T}no" >&6 | |
4247 | fi | |
4248 | ||
a848cd7e SC |
4249 | |
4250 | ||
4251 | ||
4252 | ||
4253 | enablestring= | |
4254 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 | |
4255 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
4256 | no_cache=0 | |
4257 | # Check whether --enable-intl or --disable-intl was given. | |
4258 | if test "${enable_intl+set}" = set; then | |
4259 | enableval="$enable_intl" | |
4260 | ||
4261 | if test "$enableval" = yes; then | |
4262 | ac_cv_use_intl='wxUSE_INTL=yes' | |
4263 | else | |
4264 | ac_cv_use_intl='wxUSE_INTL=no' | |
4265 | fi | |
4266 | ||
4267 | else | |
4268 | ||
4269 | LINE=`grep "wxUSE_INTL" ${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_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
4277 | ||
4278 | fi; | |
4279 | ||
4280 | eval "$ac_cv_use_intl" | |
4281 | if test "$no_cache" != 1; then | |
4282 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
4283 | fi | |
4284 | ||
4285 | if test "$wxUSE_INTL" = 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 | enablestring= | |
4295 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 | |
4296 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
4297 | no_cache=0 | |
4298 | # Check whether --enable-config or --disable-config was given. | |
4299 | if test "${enable_config+set}" = set; then | |
4300 | enableval="$enable_config" | |
4301 | ||
4302 | if test "$enableval" = yes; then | |
4303 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
4304 | else | |
4305 | ac_cv_use_config='wxUSE_CONFIG=no' | |
4306 | fi | |
4307 | ||
4308 | else | |
4309 | ||
4310 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
4311 | if test "x$LINE" != x ; then | |
4312 | eval "DEFAULT_$LINE" | |
4313 | else | |
4314 | no_cache=1 | |
4315 | fi | |
4316 | ||
4317 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
4318 | ||
4319 | fi; | |
4320 | ||
4321 | eval "$ac_cv_use_config" | |
4322 | if test "$no_cache" != 1; then | |
4323 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
4324 | fi | |
4325 | ||
4326 | if test "$wxUSE_CONFIG" = yes; then | |
4327 | echo "$as_me:$LINENO: result: yes" >&5 | |
4328 | echo "${ECHO_T}yes" >&6 | |
4329 | else | |
4330 | echo "$as_me:$LINENO: result: no" >&5 | |
4331 | echo "${ECHO_T}no" >&6 | |
4332 | fi | |
4333 | ||
4334 | ||
4335 | ||
4336 | enablestring= | |
4337 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 | |
4338 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
4339 | no_cache=0 | |
4340 | # Check whether --enable-protocols or --disable-protocols was given. | |
4341 | if test "${enable_protocols+set}" = set; then | |
4342 | enableval="$enable_protocols" | |
4343 | ||
4344 | if test "$enableval" = yes; then | |
4345 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
4346 | else | |
4347 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
4348 | fi | |
4349 | ||
4350 | else | |
4351 | ||
4352 | LINE=`grep "wxUSE_PROTOCOL" ${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_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4360 | ||
4361 | fi; | |
4362 | ||
4363 | eval "$ac_cv_use_protocols" | |
4364 | if test "$no_cache" != 1; then | |
4365 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4366 | fi | |
4367 | ||
4368 | if test "$wxUSE_PROTOCOL" = 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}-ftp" >&5 | |
4379 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
4380 | no_cache=0 | |
4381 | # Check whether --enable-ftp or --disable-ftp was given. | |
4382 | if test "${enable_ftp+set}" = set; then | |
4383 | enableval="$enable_ftp" | |
4384 | ||
4385 | if test "$enableval" = yes; then | |
4386 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4387 | else | |
4388 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4389 | fi | |
4390 | ||
4391 | else | |
4392 | ||
4393 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${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_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4401 | ||
4402 | fi; | |
4403 | ||
4404 | eval "$ac_cv_use_ftp" | |
4405 | if test "$no_cache" != 1; then | |
4406 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4407 | fi | |
4408 | ||
4409 | if test "$wxUSE_PROTOCOL_FTP" = 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}-http" >&5 | |
4420 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
4421 | no_cache=0 | |
4422 | # Check whether --enable-http or --disable-http was given. | |
4423 | if test "${enable_http+set}" = set; then | |
4424 | enableval="$enable_http" | |
4425 | ||
4426 | if test "$enableval" = yes; then | |
4427 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4428 | else | |
4429 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4430 | fi | |
4431 | ||
4432 | else | |
4433 | ||
4434 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${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_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4442 | ||
4443 | fi; | |
4444 | ||
4445 | eval "$ac_cv_use_http" | |
4446 | if test "$no_cache" != 1; then | |
4447 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4448 | fi | |
4449 | ||
4450 | if test "$wxUSE_PROTOCOL_HTTP" = 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}-fileproto" >&5 | |
4461 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
4462 | no_cache=0 | |
4463 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4464 | if test "${enable_fileproto+set}" = set; then | |
4465 | enableval="$enable_fileproto" | |
4466 | ||
4467 | if test "$enableval" = yes; then | |
4468 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4469 | else | |
4470 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4471 | fi | |
4472 | ||
4473 | else | |
4474 | ||
4475 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${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_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4483 | ||
4484 | fi; | |
4485 | ||
4486 | eval "$ac_cv_use_fileproto" | |
4487 | if test "$no_cache" != 1; then | |
4488 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4489 | fi | |
4490 | ||
4491 | if test "$wxUSE_PROTOCOL_FILE" = 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}-sockets" >&5 | |
4502 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
4503 | no_cache=0 | |
4504 | # Check whether --enable-sockets or --disable-sockets was given. | |
4505 | if test "${enable_sockets+set}" = set; then | |
4506 | enableval="$enable_sockets" | |
4507 | ||
4508 | if test "$enableval" = yes; then | |
4509 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4510 | else | |
4511 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4512 | fi | |
4513 | ||
4514 | else | |
4515 | ||
4516 | LINE=`grep "wxUSE_SOCKETS" ${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_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
4524 | ||
4525 | fi; | |
4526 | ||
4527 | eval "$ac_cv_use_sockets" | |
4528 | if test "$no_cache" != 1; then | |
4529 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4530 | fi | |
4531 | ||
4532 | if test "$wxUSE_SOCKETS" = 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}-ole" >&5 | |
4543 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
4544 | no_cache=0 | |
4545 | # Check whether --enable-ole or --disable-ole was given. | |
4546 | if test "${enable_ole+set}" = set; then | |
4547 | enableval="$enable_ole" | |
4548 | ||
4549 | if test "$enableval" = yes; then | |
4550 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4551 | else | |
4552 | ac_cv_use_ole='wxUSE_OLE=no' | |
4553 | fi | |
4554 | ||
4555 | else | |
4556 | ||
4557 | LINE=`grep "wxUSE_OLE" ${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_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
4565 | ||
4566 | fi; | |
4567 | ||
4568 | eval "$ac_cv_use_ole" | |
4569 | if test "$no_cache" != 1; then | |
4570 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4571 | fi | |
4572 | ||
4573 | if test "$wxUSE_OLE" = 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 | enablestring= | |
4583 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 | |
4584 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
4585 | no_cache=0 | |
4586 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4587 | if test "${enable_dataobj+set}" = set; then | |
4588 | enableval="$enable_dataobj" | |
4589 | ||
4590 | if test "$enableval" = yes; then | |
4591 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4592 | else | |
4593 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4594 | fi | |
4595 | ||
4596 | else | |
4597 | ||
4598 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
4599 | if test "x$LINE" != x ; then | |
4600 | eval "DEFAULT_$LINE" | |
4601 | else | |
4602 | no_cache=1 | |
4603 | fi | |
4604 | ||
4605 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
4606 | ||
4607 | fi; | |
4608 | ||
4609 | eval "$ac_cv_use_dataobj" | |
4610 | if test "$no_cache" != 1; then | |
4611 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4612 | fi | |
4613 | ||
4614 | if test "$wxUSE_DATAOBJ" = yes; then | |
4615 | echo "$as_me:$LINENO: result: yes" >&5 | |
4616 | echo "${ECHO_T}yes" >&6 | |
4617 | else | |
4618 | echo "$as_me:$LINENO: result: no" >&5 | |
4619 | echo "${ECHO_T}no" >&6 | |
4620 | fi | |
4621 | ||
4622 | ||
4623 | ||
4624 | enablestring= | |
4625 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 | |
4626 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
4627 | no_cache=0 | |
4628 | # Check whether --enable-ipc or --disable-ipc was given. | |
4629 | if test "${enable_ipc+set}" = set; then | |
4630 | enableval="$enable_ipc" | |
4631 | ||
4632 | if test "$enableval" = yes; then | |
4633 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
4634 | else | |
4635 | ac_cv_use_ipc='wxUSE_IPC=no' | |
4636 | fi | |
4637 | ||
4638 | else | |
4639 | ||
4640 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
4641 | if test "x$LINE" != x ; then | |
4642 | eval "DEFAULT_$LINE" | |
4643 | else | |
4644 | no_cache=1 | |
4645 | fi | |
4646 | ||
4647 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
4648 | ||
4649 | fi; | |
4650 | ||
4651 | eval "$ac_cv_use_ipc" | |
4652 | if test "$no_cache" != 1; then | |
4653 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
4654 | fi | |
4655 | ||
4656 | if test "$wxUSE_IPC" = yes; then | |
4657 | echo "$as_me:$LINENO: result: yes" >&5 | |
4658 | echo "${ECHO_T}yes" >&6 | |
4659 | else | |
4660 | echo "$as_me:$LINENO: result: no" >&5 | |
4661 | echo "${ECHO_T}no" >&6 | |
4662 | fi | |
4663 | ||
4664 | ||
4665 | ||
4666 | enablestring= | |
4667 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 | |
4668 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
4669 | no_cache=0 | |
4670 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4671 | if test "${enable_apple_ieee+set}" = set; then | |
4672 | enableval="$enable_apple_ieee" | |
4673 | ||
4674 | if test "$enableval" = yes; then | |
4675 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4676 | else | |
4677 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4678 | fi | |
4679 | ||
4680 | else | |
4681 | ||
4682 | LINE=`grep "wxUSE_APPLE_IEEE" ${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_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
4690 | ||
4691 | fi; | |
4692 | ||
4693 | eval "$ac_cv_use_apple_ieee" | |
4694 | if test "$no_cache" != 1; then | |
4695 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4696 | fi | |
4697 | ||
4698 | if test "$wxUSE_APPLE_IEEE" = 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 | ||
81f90336 MW |
4707 | enablestring= |
4708 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5 | |
4709 | echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6 | |
4710 | no_cache=0 | |
4711 | # Check whether --enable-arcstream or --disable-arcstream was given. | |
4712 | if test "${enable_arcstream+set}" = set; then | |
4713 | enableval="$enable_arcstream" | |
4714 | ||
4715 | if test "$enableval" = yes; then | |
9e8e867f | 4716 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes' |
81f90336 | 4717 | else |
9e8e867f | 4718 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no' |
81f90336 MW |
4719 | fi |
4720 | ||
4721 | else | |
4722 | ||
9e8e867f | 4723 | LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}` |
81f90336 MW |
4724 | if test "x$LINE" != x ; then |
4725 | eval "DEFAULT_$LINE" | |
4726 | else | |
4727 | no_cache=1 | |
4728 | fi | |
4729 | ||
9e8e867f | 4730 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS |
81f90336 MW |
4731 | |
4732 | fi; | |
4733 | ||
4734 | eval "$ac_cv_use_arcstream" | |
4735 | if test "$no_cache" != 1; then | |
4736 | echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp | |
4737 | fi | |
4738 | ||
9e8e867f | 4739 | if test "$wxUSE_ARCHIVE_STREAMS" = yes; then |
81f90336 MW |
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 | ||
a848cd7e | 4748 | enablestring= |
36b6448c VZ |
4749 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5 |
4750 | echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6 | |
a848cd7e | 4751 | no_cache=0 |
36b6448c VZ |
4752 | # Check whether --enable-backtrace or --disable-backtrace was given. |
4753 | if test "${enable_backtrace+set}" = set; then | |
4754 | enableval="$enable_backtrace" | |
a848cd7e SC |
4755 | |
4756 | if test "$enableval" = yes; then | |
36b6448c | 4757 | ac_cv_use_backtrace='wxUSE_STACKWALKER=yes' |
a848cd7e | 4758 | else |
36b6448c | 4759 | ac_cv_use_backtrace='wxUSE_STACKWALKER=no' |
a848cd7e SC |
4760 | fi |
4761 | ||
4762 | else | |
4763 | ||
36b6448c | 4764 | LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}` |
a848cd7e SC |
4765 | if test "x$LINE" != x ; then |
4766 | eval "DEFAULT_$LINE" | |
4767 | else | |
4768 | no_cache=1 | |
4769 | fi | |
4770 | ||
36b6448c | 4771 | ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER |
a848cd7e SC |
4772 | |
4773 | fi; | |
4774 | ||
36b6448c | 4775 | eval "$ac_cv_use_backtrace" |
a848cd7e | 4776 | if test "$no_cache" != 1; then |
36b6448c | 4777 | echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
4778 | fi |
4779 | ||
36b6448c | 4780 | if test "$wxUSE_STACKWALKER" = yes; then |
a848cd7e SC |
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 | ||
eaff0f0d | 4789 | enablestring= |
36b6448c VZ |
4790 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 |
4791 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
eaff0f0d | 4792 | no_cache=0 |
36b6448c VZ |
4793 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. |
4794 | if test "${enable_catch_segvs+set}" = set; then | |
4795 | enableval="$enable_catch_segvs" | |
eaff0f0d VZ |
4796 | |
4797 | if test "$enableval" = yes; then | |
36b6448c | 4798 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' |
eaff0f0d | 4799 | else |
36b6448c | 4800 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' |
eaff0f0d VZ |
4801 | fi |
4802 | ||
4803 | else | |
4804 | ||
36b6448c | 4805 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
eaff0f0d VZ |
4806 | if test "x$LINE" != x ; then |
4807 | eval "DEFAULT_$LINE" | |
4808 | else | |
4809 | no_cache=1 | |
4810 | fi | |
4811 | ||
36b6448c | 4812 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION |
eaff0f0d VZ |
4813 | |
4814 | fi; | |
4815 | ||
36b6448c | 4816 | eval "$ac_cv_use_catch_segvs" |
eaff0f0d | 4817 | if test "$no_cache" != 1; then |
36b6448c | 4818 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp |
eaff0f0d VZ |
4819 | fi |
4820 | ||
36b6448c | 4821 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then |
eaff0f0d VZ |
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 | ||
a848cd7e SC |
4830 | enablestring= |
4831 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 | |
4832 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
4833 | no_cache=0 | |
4834 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
4835 | if test "${enable_cmdline+set}" = set; then | |
4836 | enableval="$enable_cmdline" | |
4837 | ||
4838 | if test "$enableval" = yes; then | |
4839 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
4840 | else | |
4841 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
4842 | fi | |
4843 | ||
4844 | else | |
4845 | ||
4846 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${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_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
4854 | ||
4855 | fi; | |
4856 | ||
4857 | eval "$ac_cv_use_cmdline" | |
4858 | if test "$no_cache" != 1; then | |
4859 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
4860 | fi | |
4861 | ||
4862 | if test "$wxUSE_CMDLINE_PARSER" = 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}-datetime" >&5 | |
4873 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
4874 | no_cache=0 | |
4875 | # Check whether --enable-datetime or --disable-datetime was given. | |
4876 | if test "${enable_datetime+set}" = set; then | |
4877 | enableval="$enable_datetime" | |
4878 | ||
4879 | if test "$enableval" = yes; then | |
4880 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
4881 | else | |
4882 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
4883 | fi | |
4884 | ||
4885 | else | |
4886 | ||
4887 | LINE=`grep "wxUSE_DATETIME" ${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_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
4895 | ||
4896 | fi; | |
4897 | ||
4898 | eval "$ac_cv_use_datetime" | |
4899 | if test "$no_cache" != 1; then | |
4900 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
4901 | fi | |
4902 | ||
4903 | if test "$wxUSE_DATETIME" = 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 | ||
36b6448c VZ |
4912 | enablestring= |
4913 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5 | |
4914 | echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6 | |
4915 | no_cache=0 | |
4916 | # Check whether --enable-debugreport or --disable-debugreport was given. | |
4917 | if test "${enable_debugreport+set}" = set; then | |
4918 | enableval="$enable_debugreport" | |
4919 | ||
4920 | if test "$enableval" = yes; then | |
4921 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes' | |
4922 | else | |
4923 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no' | |
4924 | fi | |
4925 | ||
4926 | else | |
4927 | ||
4928 | LINE=`grep "wxUSE_DEBUGREPORT" ${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_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT | |
4936 | ||
4937 | fi; | |
4938 | ||
4939 | eval "$ac_cv_use_debugreport" | |
4940 | if test "$no_cache" != 1; then | |
4941 | echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp | |
4942 | fi | |
4943 | ||
4944 | if test "$wxUSE_DEBUGREPORT" = 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 | ||
a848cd7e SC |
4953 | enablestring= |
4954 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 | |
4955 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
4956 | no_cache=0 | |
4957 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
4958 | if test "${enable_dialupman+set}" = set; then | |
4959 | enableval="$enable_dialupman" | |
4960 | ||
4961 | if test "$enableval" = yes; then | |
4962 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
4963 | else | |
4964 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
4965 | fi | |
4966 | ||
4967 | else | |
4968 | ||
4969 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${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_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
4977 | ||
4978 | fi; | |
4979 | ||
4980 | eval "$ac_cv_use_dialupman" | |
4981 | if test "$no_cache" != 1; then | |
4982 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
4983 | fi | |
4984 | ||
4985 | if test "$wxUSE_DIALUP_MANAGER" = 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}-dynlib" >&5 | |
4996 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
4997 | no_cache=0 | |
4998 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
4999 | if test "${enable_dynlib+set}" = set; then | |
5000 | enableval="$enable_dynlib" | |
5001 | ||
5002 | if test "$enableval" = yes; then | |
5003 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
5004 | else | |
5005 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
5006 | fi | |
5007 | ||
5008 | else | |
5009 | ||
5010 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${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_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
5018 | ||
5019 | fi; | |
5020 | ||
5021 | eval "$ac_cv_use_dynlib" | |
5022 | if test "$no_cache" != 1; then | |
5023 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
5024 | fi | |
5025 | ||
5026 | if test "$wxUSE_DYNLIB_CLASS" = 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}-dynamicloader" >&5 | |
5037 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
5038 | no_cache=0 | |
5039 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
5040 | if test "${enable_dynamicloader+set}" = set; then | |
5041 | enableval="$enable_dynamicloader" | |
5042 | ||
5043 | if test "$enableval" = yes; then | |
5044 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
5045 | else | |
5046 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
5047 | fi | |
5048 | ||
5049 | else | |
5050 | ||
5051 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${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_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
5059 | ||
5060 | fi; | |
5061 | ||
5062 | eval "$ac_cv_use_dynamicloader" | |
5063 | if test "$no_cache" != 1; then | |
5064 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
5065 | fi | |
5066 | ||
5067 | if test "$wxUSE_DYNAMIC_LOADER" = 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}-exceptions" >&5 | |
5078 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
5079 | no_cache=0 | |
5080 | # Check whether --enable-exceptions or --disable-exceptions was given. | |
5081 | if test "${enable_exceptions+set}" = set; then | |
5082 | enableval="$enable_exceptions" | |
5083 | ||
5084 | if test "$enableval" = yes; then | |
5085 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' | |
5086 | else | |
5087 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' | |
5088 | fi | |
5089 | ||
5090 | else | |
5091 | ||
5092 | LINE=`grep "wxUSE_EXCEPTIONS" ${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_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS | |
5100 | ||
5101 | fi; | |
5102 | ||
5103 | eval "$ac_cv_use_exceptions" | |
5104 | if test "$no_cache" != 1; then | |
5105 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp | |
5106 | fi | |
5107 | ||
5108 | if test "$wxUSE_EXCEPTIONS" = 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}-ffile" >&5 | |
5119 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
5120 | no_cache=0 | |
5121 | # Check whether --enable-ffile or --disable-ffile was given. | |
5122 | if test "${enable_ffile+set}" = set; then | |
5123 | enableval="$enable_ffile" | |
5124 | ||
5125 | if test "$enableval" = yes; then | |
5126 | ac_cv_use_ffile='wxUSE_FFILE=yes' | |
5127 | else | |
5128 | ac_cv_use_ffile='wxUSE_FFILE=no' | |
5129 | fi | |
5130 | ||
5131 | else | |
5132 | ||
5133 | LINE=`grep "wxUSE_FFILE" ${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_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE | |
5141 | ||
5142 | fi; | |
5143 | ||
5144 | eval "$ac_cv_use_ffile" | |
5145 | if test "$no_cache" != 1; then | |
5146 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp | |
5147 | fi | |
5148 | ||
5149 | if test "$wxUSE_FFILE" = 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}-file" >&5 | |
5160 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
5161 | no_cache=0 | |
5162 | # Check whether --enable-file or --disable-file was given. | |
5163 | if test "${enable_file+set}" = set; then | |
5164 | enableval="$enable_file" | |
5165 | ||
5166 | if test "$enableval" = yes; then | |
5167 | ac_cv_use_file='wxUSE_FILE=yes' | |
5168 | else | |
5169 | ac_cv_use_file='wxUSE_FILE=no' | |
5170 | fi | |
5171 | ||
5172 | else | |
5173 | ||
5174 | LINE=`grep "wxUSE_FILE" ${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_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
5182 | ||
5183 | fi; | |
5184 | ||
5185 | eval "$ac_cv_use_file" | |
5186 | if test "$no_cache" != 1; then | |
5187 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
5188 | fi | |
5189 | ||
5190 | if test "$wxUSE_FILE" = 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}-filesystem" >&5 | |
5201 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
5202 | no_cache=0 | |
5203 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
5204 | if test "${enable_filesystem+set}" = set; then | |
5205 | enableval="$enable_filesystem" | |
5206 | ||
5207 | if test "$enableval" = yes; then | |
5208 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
5209 | else | |
5210 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
5211 | fi | |
5212 | ||
5213 | else | |
5214 | ||
5215 | LINE=`grep "wxUSE_FILESYSTEM" ${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_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
5223 | ||
5224 | fi; | |
5225 | ||
5226 | eval "$ac_cv_use_filesystem" | |
5227 | if test "$no_cache" != 1; then | |
5228 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
5229 | fi | |
5230 | ||
5231 | if test "$wxUSE_FILESYSTEM" = 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}-fontmap" >&5 | |
5242 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
5243 | no_cache=0 | |
5244 | # Check whether --enable-fontmap or --disable-fontmap was given. | |
5245 | if test "${enable_fontmap+set}" = set; then | |
5246 | enableval="$enable_fontmap" | |
5247 | ||
5248 | if test "$enableval" = yes; then | |
5249 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' | |
5250 | else | |
5251 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' | |
5252 | fi | |
5253 | ||
5254 | else | |
5255 | ||
5256 | LINE=`grep "wxUSE_FONTMAP" ${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_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP | |
5264 | ||
5265 | fi; | |
5266 | ||
5267 | eval "$ac_cv_use_fontmap" | |
5268 | if test "$no_cache" != 1; then | |
5269 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp | |
5270 | fi | |
5271 | ||
5272 | if test "$wxUSE_FONTMAP" = 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}-fs_inet" >&5 | |
5283 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
5284 | no_cache=0 | |
5285 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5286 | if test "${enable_fs_inet+set}" = set; then | |
5287 | enableval="$enable_fs_inet" | |
5288 | ||
5289 | if test "$enableval" = yes; then | |
5290 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5291 | else | |
5292 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5293 | fi | |
5294 | ||
5295 | else | |
5296 | ||
5297 | LINE=`grep "wxUSE_FS_INET" ${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_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
5305 | ||
5306 | fi; | |
5307 | ||
5308 | eval "$ac_cv_use_fs_inet" | |
5309 | if test "$no_cache" != 1; then | |
5310 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5311 | fi | |
5312 | ||
5313 | if test "$wxUSE_FS_INET" = 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}-fs_zip" >&5 | |
5324 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
5325 | no_cache=0 | |
5326 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5327 | if test "${enable_fs_zip+set}" = set; then | |
5328 | enableval="$enable_fs_zip" | |
5329 | ||
5330 | if test "$enableval" = yes; then | |
5331 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5332 | else | |
5333 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5334 | fi | |
5335 | ||
5336 | else | |
5337 | ||
5338 | LINE=`grep "wxUSE_FS_ZIP" ${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_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
5346 | ||
5347 | fi; | |
5348 | ||
5349 | eval "$ac_cv_use_fs_zip" | |
5350 | if test "$no_cache" != 1; then | |
5351 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5352 | fi | |
5353 | ||
5354 | if test "$wxUSE_FS_ZIP" = 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}-geometry" >&5 | |
5365 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
5366 | no_cache=0 | |
5367 | # Check whether --enable-geometry or --disable-geometry was given. | |
5368 | if test "${enable_geometry+set}" = set; then | |
5369 | enableval="$enable_geometry" | |
5370 | ||
5371 | if test "$enableval" = yes; then | |
5372 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
5373 | else | |
5374 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
5375 | fi | |
5376 | ||
5377 | else | |
5378 | ||
5379 | LINE=`grep "wxUSE_GEOMETRY" ${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_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
5387 | ||
5388 | fi; | |
5389 | ||
5390 | eval "$ac_cv_use_geometry" | |
5391 | if test "$no_cache" != 1; then | |
5392 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
5393 | fi | |
5394 | ||
5395 | if test "$wxUSE_GEOMETRY" = 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}-log" >&5 | |
5406 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
5407 | no_cache=0 | |
5408 | # Check whether --enable-log or --disable-log was given. | |
5409 | if test "${enable_log+set}" = set; then | |
5410 | enableval="$enable_log" | |
5411 | ||
5412 | if test "$enableval" = yes; then | |
5413 | ac_cv_use_log='wxUSE_LOG=yes' | |
5414 | else | |
5415 | ac_cv_use_log='wxUSE_LOG=no' | |
5416 | fi | |
5417 | ||
5418 | else | |
5419 | ||
5420 | LINE=`grep "wxUSE_LOG" ${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_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
5428 | ||
5429 | fi; | |
5430 | ||
5431 | eval "$ac_cv_use_log" | |
5432 | if test "$no_cache" != 1; then | |
5433 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
5434 | fi | |
5435 | ||
5436 | if test "$wxUSE_LOG" = 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}-longlong" >&5 | |
5447 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
5448 | no_cache=0 | |
5449 | # Check whether --enable-longlong or --disable-longlong was given. | |
5450 | if test "${enable_longlong+set}" = set; then | |
5451 | enableval="$enable_longlong" | |
5452 | ||
5453 | if test "$enableval" = yes; then | |
5454 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
5455 | else | |
5456 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
5457 | fi | |
5458 | ||
5459 | else | |
5460 | ||
5461 | LINE=`grep "wxUSE_LONGLONG" ${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_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
5469 | ||
5470 | fi; | |
5471 | ||
5472 | eval "$ac_cv_use_longlong" | |
5473 | if test "$no_cache" != 1; then | |
5474 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
5475 | fi | |
5476 | ||
5477 | if test "$wxUSE_LONGLONG" = 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}-mimetype" >&5 | |
5488 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5489 | no_cache=0 | |
5490 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5491 | if test "${enable_mimetype+set}" = set; then | |
5492 | enableval="$enable_mimetype" | |
5493 | ||
5494 | if test "$enableval" = yes; then | |
5495 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5496 | else | |
5497 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5498 | fi | |
5499 | ||
5500 | else | |
5501 | ||
5502 | LINE=`grep "wxUSE_MIMETYPE" ${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_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5510 | ||
5511 | fi; | |
5512 | ||
5513 | eval "$ac_cv_use_mimetype" | |
5514 | if test "$no_cache" != 1; then | |
5515 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5516 | fi | |
5517 | ||
5518 | if test "$wxUSE_MIMETYPE" = 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}-mslu" >&5 | |
5529 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
5530 | no_cache=0 | |
5531 | # Check whether --enable-mslu or --disable-mslu was given. | |
5532 | if test "${enable_mslu+set}" = set; then | |
5533 | enableval="$enable_mslu" | |
5534 | ||
5535 | if test "$enableval" = yes; then | |
5536 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5537 | else | |
5538 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5539 | fi | |
5540 | ||
5541 | else | |
5542 | ||
5543 | LINE=`grep "wxUSE_UNICODE_MSLU" ${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_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
5551 | ||
5552 | fi; | |
5553 | ||
5554 | eval "$ac_cv_use_mslu" | |
5555 | if test "$no_cache" != 1; then | |
5556 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5557 | fi | |
5558 | ||
5559 | if test "$wxUSE_UNICODE_MSLU" = 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}-snglinst" >&5 | |
5570 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
5571 | no_cache=0 | |
5572 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5573 | if test "${enable_snglinst+set}" = set; then | |
5574 | enableval="$enable_snglinst" | |
5575 | ||
5576 | if test "$enableval" = yes; then | |
5577 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5578 | else | |
5579 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5580 | fi | |
5581 | ||
5582 | else | |
5583 | ||
5584 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${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_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
5592 | ||
5593 | fi; | |
5594 | ||
5595 | eval "$ac_cv_use_snglinst" | |
5596 | if test "$no_cache" != 1; then | |
5597 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5598 | fi | |
5599 | ||
5600 | if test "$wxUSE_SNGLINST_CHECKER" = 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= | |
07158944 VZ |
5610 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 |
5611 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
a848cd7e | 5612 | no_cache=0 |
07158944 VZ |
5613 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. |
5614 | if test "${enable_std_iostreams+set}" = set; then | |
5615 | enableval="$enable_std_iostreams" | |
a848cd7e SC |
5616 | |
5617 | if test "$enableval" = yes; then | |
07158944 | 5618 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' |
a848cd7e | 5619 | else |
07158944 | 5620 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' |
a848cd7e SC |
5621 | fi |
5622 | ||
5623 | else | |
5624 | ||
07158944 | 5625 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
a848cd7e SC |
5626 | if test "x$LINE" != x ; then |
5627 | eval "DEFAULT_$LINE" | |
5628 | else | |
5629 | no_cache=1 | |
5630 | fi | |
5631 | ||
07158944 | 5632 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM |
a848cd7e SC |
5633 | |
5634 | fi; | |
5635 | ||
07158944 | 5636 | eval "$ac_cv_use_std_iostreams" |
a848cd7e | 5637 | if test "$no_cache" != 1; then |
07158944 | 5638 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
5639 | fi |
5640 | ||
07158944 | 5641 | if test "$wxUSE_STD_IOSTREAM" = yes; then |
a848cd7e SC |
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 | ||
59746b65 MW |
5650 | enablestring= |
5651 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5 | |
5652 | echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6 | |
5653 | no_cache=0 | |
5654 | # Check whether --enable-std_string or --disable-std_string was given. | |
5655 | if test "${enable_std_string+set}" = set; then | |
5656 | enableval="$enable_std_string" | |
5657 | ||
5658 | if test "$enableval" = yes; then | |
5659 | ac_cv_use_std_string='wxUSE_STD_STRING=yes' | |
5660 | else | |
5661 | ac_cv_use_std_string='wxUSE_STD_STRING=no' | |
5662 | fi | |
5663 | ||
5664 | else | |
5665 | ||
5666 | LINE=`grep "wxUSE_STD_STRING" ${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_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING | |
5674 | ||
5675 | fi; | |
5676 | ||
5677 | eval "$ac_cv_use_std_string" | |
5678 | if test "$no_cache" != 1; then | |
5679 | echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp | |
5680 | fi | |
5681 | ||
5682 | if test "$wxUSE_STD_STRING" = 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 | ||
a848cd7e | 5691 | enablestring= |
07158944 VZ |
5692 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5 |
5693 | echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6 | |
a848cd7e | 5694 | no_cache=0 |
07158944 VZ |
5695 | # Check whether --enable-stdpaths or --disable-stdpaths was given. |
5696 | if test "${enable_stdpaths+set}" = set; then | |
5697 | enableval="$enable_stdpaths" | |
a848cd7e SC |
5698 | |
5699 | if test "$enableval" = yes; then | |
07158944 | 5700 | ac_cv_use_stdpaths='wxUSE_STDPATHS=yes' |
a848cd7e | 5701 | else |
07158944 | 5702 | ac_cv_use_stdpaths='wxUSE_STDPATHS=no' |
a848cd7e SC |
5703 | fi |
5704 | ||
5705 | else | |
5706 | ||
07158944 | 5707 | LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}` |
a848cd7e SC |
5708 | if test "x$LINE" != x ; then |
5709 | eval "DEFAULT_$LINE" | |
5710 | else | |
5711 | no_cache=1 | |
5712 | fi | |
5713 | ||
07158944 | 5714 | ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS |
a848cd7e SC |
5715 | |
5716 | fi; | |
5717 | ||
07158944 | 5718 | eval "$ac_cv_use_stdpaths" |
a848cd7e | 5719 | if test "$no_cache" != 1; then |
07158944 | 5720 | echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
5721 | fi |
5722 | ||
07158944 | 5723 | if test "$wxUSE_STDPATHS" = yes; then |
a848cd7e SC |
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}-stopwatch" >&5 | |
5734 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
5735 | no_cache=0 | |
5736 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
5737 | if test "${enable_stopwatch+set}" = set; then | |
5738 | enableval="$enable_stopwatch" | |
5739 | ||
5740 | if test "$enableval" = yes; then | |
5741 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
5742 | else | |
5743 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
5744 | fi | |
5745 | ||
5746 | else | |
5747 | ||
5748 | LINE=`grep "wxUSE_STOPWATCH" ${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_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
5756 | ||
5757 | fi; | |
5758 | ||
5759 | eval "$ac_cv_use_stopwatch" | |
5760 | if test "$no_cache" != 1; then | |
5761 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
5762 | fi | |
5763 | ||
5764 | if test "$wxUSE_STOPWATCH" = 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 | ||
07158944 VZ |
5773 | enablestring= |
5774 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
5775 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
5776 | no_cache=0 | |
5777 | # Check whether --enable-streams or --disable-streams was given. | |
5778 | if test "${enable_streams+set}" = set; then | |
5779 | enableval="$enable_streams" | |
5780 | ||
5781 | if test "$enableval" = yes; then | |
5782 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
5783 | else | |
5784 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
5785 | fi | |
5786 | ||
5787 | else | |
5788 | ||
5789 | LINE=`grep "wxUSE_STREAMS" ${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_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
5797 | ||
5798 | fi; | |
5799 | ||
5800 | eval "$ac_cv_use_streams" | |
5801 | if test "$no_cache" != 1; then | |
5802 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
5803 | fi | |
5804 | ||
5805 | if test "$wxUSE_STREAMS" = 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 | ||
a848cd7e SC |
5814 | enablestring= |
5815 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 | |
5816 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
5817 | no_cache=0 | |
5818 | # Check whether --enable-system_options or --disable-system_options was given. | |
5819 | if test "${enable_system_options+set}" = set; then | |
5820 | enableval="$enable_system_options" | |
5821 | ||
5822 | if test "$enableval" = yes; then | |
5823 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
5824 | else | |
5825 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
5826 | fi | |
5827 | ||
5828 | else | |
5829 | ||
5830 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${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_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
5838 | ||
5839 | fi; | |
5840 | ||
5841 | eval "$ac_cv_use_system_options" | |
5842 | if test "$no_cache" != 1; then | |
5843 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
5844 | fi | |
5845 | ||
5846 | if test "$wxUSE_SYSTEM_OPTIONS" = 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 | ||
5855 | enablestring= | |
5856 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 | |
5857 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
5858 | no_cache=0 | |
5859 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
5860 | if test "${enable_textbuf+set}" = set; then | |
5861 | enableval="$enable_textbuf" | |
5862 | ||
5863 | if test "$enableval" = yes; then | |
5864 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
5865 | else | |
5866 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
5867 | fi | |
5868 | ||
5869 | else | |
5870 | ||
5871 | LINE=`grep "wxUSE_TEXTBUFFER" ${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_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
5879 | ||
5880 | fi; | |
5881 | ||
5882 | eval "$ac_cv_use_textbuf" | |
5883 | if test "$no_cache" != 1; then | |
5884 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
5885 | fi | |
5886 | ||
5887 | if test "$wxUSE_TEXTBUFFER" = 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}-textfile" >&5 | |
5898 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
5899 | no_cache=0 | |
5900 | # Check whether --enable-textfile or --disable-textfile was given. | |
5901 | if test "${enable_textfile+set}" = set; then | |
5902 | enableval="$enable_textfile" | |
5903 | ||
5904 | if test "$enableval" = yes; then | |
5905 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
5906 | else | |
5907 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
5908 | fi | |
5909 | ||
5910 | else | |
5911 | ||
5912 | LINE=`grep "wxUSE_TEXTFILE" ${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_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
5920 | ||
5921 | fi; | |
5922 | ||
5923 | eval "$ac_cv_use_textfile" | |
5924 | if test "$no_cache" != 1; then | |
5925 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
5926 | fi | |
5927 | ||
5928 | if test "$wxUSE_TEXTFILE" = 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 | ||
5937 | enablestring= | |
5938 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 | |
5939 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
5940 | no_cache=0 | |
5941 | # Check whether --enable-timer or --disable-timer was given. | |
5942 | if test "${enable_timer+set}" = set; then | |
5943 | enableval="$enable_timer" | |
5944 | ||
5945 | if test "$enableval" = yes; then | |
5946 | ac_cv_use_timer='wxUSE_TIMER=yes' | |
5947 | else | |
5948 | ac_cv_use_timer='wxUSE_TIMER=no' | |
5949 | fi | |
5950 | ||
5951 | else | |
5952 | ||
5953 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` | |
5954 | if test "x$LINE" != x ; then | |
5955 | eval "DEFAULT_$LINE" | |
5956 | else | |
5957 | no_cache=1 | |
5958 | fi | |
5959 | ||
5960 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER | |
5961 | ||
5962 | fi; | |
5963 | ||
5964 | eval "$ac_cv_use_timer" | |
5965 | if test "$no_cache" != 1; then | |
5966 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp | |
5967 | fi | |
5968 | ||
5969 | if test "$wxUSE_TIMER" = yes; then | |
5970 | echo "$as_me:$LINENO: result: yes" >&5 | |
5971 | echo "${ECHO_T}yes" >&6 | |
5972 | else | |
5973 | echo "$as_me:$LINENO: result: no" >&5 | |
5974 | echo "${ECHO_T}no" >&6 | |
5975 | fi | |
5976 | ||
5977 | ||
5978 | enablestring= | |
5979 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 | |
5980 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
5981 | no_cache=0 | |
5982 | # Check whether --enable-unicode or --disable-unicode was given. | |
5983 | if test "${enable_unicode+set}" = set; then | |
5984 | enableval="$enable_unicode" | |
5985 | ||
5986 | if test "$enableval" = yes; then | |
5987 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
5988 | else | |
5989 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
5990 | fi | |
5991 | ||
5992 | else | |
5993 | ||
5994 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
5995 | if test "x$LINE" != x ; then | |
5996 | eval "DEFAULT_$LINE" | |
5997 | else | |
5998 | no_cache=1 | |
5999 | fi | |
6000 | ||
6001 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
6002 | ||
6003 | fi; | |
6004 | ||
6005 | eval "$ac_cv_use_unicode" | |
6006 | if test "$no_cache" != 1; then | |
6007 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
6008 | fi | |
6009 | ||
6010 | if test "$wxUSE_UNICODE" = yes; then | |
6011 | echo "$as_me:$LINENO: result: yes" >&5 | |
6012 | echo "${ECHO_T}yes" >&6 | |
6013 | else | |
6014 | echo "$as_me:$LINENO: result: no" >&5 | |
6015 | echo "${ECHO_T}no" >&6 | |
6016 | fi | |
6017 | ||
6018 | ||
6019 | enablestring= | |
6020 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5 | |
6021 | echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6 | |
6022 | no_cache=0 | |
6023 | # Check whether --enable-sound or --disable-sound was given. | |
6024 | if test "${enable_sound+set}" = set; then | |
6025 | enableval="$enable_sound" | |
6026 | ||
6027 | if test "$enableval" = yes; then | |
6028 | ac_cv_use_sound='wxUSE_SOUND=yes' | |
6029 | else | |
6030 | ac_cv_use_sound='wxUSE_SOUND=no' | |
6031 | fi | |
6032 | ||
6033 | else | |
6034 | ||
6035 | LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}` | |
6036 | if test "x$LINE" != x ; then | |
6037 | eval "DEFAULT_$LINE" | |
6038 | else | |
6039 | no_cache=1 | |
6040 | fi | |
6041 | ||
6042 | ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND | |
6043 | ||
6044 | fi; | |
6045 | ||
6046 | eval "$ac_cv_use_sound" | |
6047 | if test "$no_cache" != 1; then | |
6048 | echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp | |
6049 | fi | |
6050 | ||
6051 | if test "$wxUSE_SOUND" = yes; then | |
6052 | echo "$as_me:$LINENO: result: yes" >&5 | |
6053 | echo "${ECHO_T}yes" >&6 | |
6054 | else | |
6055 | echo "$as_me:$LINENO: result: no" >&5 | |
6056 | echo "${ECHO_T}no" >&6 | |
6057 | fi | |
6058 | ||
6059 | ||
3b57de8b RL |
6060 | enablestring= |
6061 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5 | |
6062 | echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6 | |
6063 | no_cache=0 | |
6064 | # Check whether --enable-mediactrl or --disable-mediactrl was given. | |
6065 | if test "${enable_mediactrl+set}" = set; then | |
6066 | enableval="$enable_mediactrl" | |
6067 | ||
6068 | if test "$enableval" = yes; then | |
6069 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes' | |
6070 | else | |
6071 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no' | |
6072 | fi | |
6073 | ||
6074 | else | |
6075 | ||
6076 | LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}` | |
6077 | if test "x$LINE" != x ; then | |
6078 | eval "DEFAULT_$LINE" | |
6079 | else | |
6080 | no_cache=1 | |
6081 | fi | |
6082 | ||
6083 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL | |
6084 | ||
6085 | fi; | |
6086 | ||
6087 | eval "$ac_cv_use_mediactrl" | |
6088 | if test "$no_cache" != 1; then | |
6089 | echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp | |
6090 | fi | |
6091 | ||
6092 | if test "$wxUSE_MEDIACTRL" = yes; then | |
6093 | echo "$as_me:$LINENO: result: yes" >&5 | |
6094 | echo "${ECHO_T}yes" >&6 | |
6095 | else | |
6096 | echo "$as_me:$LINENO: result: no" >&5 | |
6097 | echo "${ECHO_T}no" >&6 | |
6098 | fi | |
6099 | ||
6100 | ||
a848cd7e SC |
6101 | enablestring= |
6102 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 | |
6103 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
6104 | no_cache=0 | |
6105 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
6106 | if test "${enable_wxprintfv+set}" = set; then | |
6107 | enableval="$enable_wxprintfv" | |
6108 | ||
6109 | if test "$enableval" = yes; then | |
6110 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
6111 | else | |
6112 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
6113 | fi | |
6114 | ||
6115 | else | |
6116 | ||
6117 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
6118 | if test "x$LINE" != x ; then | |
6119 | eval "DEFAULT_$LINE" | |
6120 | else | |
6121 | no_cache=1 | |
6122 | fi | |
6123 | ||
6124 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
6125 | ||
6126 | fi; | |
6127 | ||
6128 | eval "$ac_cv_use_wxprintfv" | |
6129 | if test "$no_cache" != 1; then | |
6130 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
6131 | fi | |
6132 | ||
6133 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
6134 | echo "$as_me:$LINENO: result: yes" >&5 | |
6135 | echo "${ECHO_T}yes" >&6 | |
6136 | else | |
6137 | echo "$as_me:$LINENO: result: no" >&5 | |
6138 | echo "${ECHO_T}no" >&6 | |
6139 | fi | |
6140 | ||
6141 | ||
6142 | enablestring= | |
6143 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 | |
6144 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
6145 | no_cache=0 | |
6146 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
6147 | if test "${enable_zipstream+set}" = set; then | |
6148 | enableval="$enable_zipstream" | |
6149 | ||
6150 | if test "$enableval" = yes; then | |
6151 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
6152 | else | |
6153 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
6154 | fi | |
6155 | ||
6156 | else | |
6157 | ||
6158 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
6159 | if test "x$LINE" != x ; then | |
6160 | eval "DEFAULT_$LINE" | |
6161 | else | |
6162 | no_cache=1 | |
6163 | fi | |
6164 | ||
6165 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
6166 | ||
6167 | fi; | |
6168 | ||
6169 | eval "$ac_cv_use_zipstream" | |
6170 | if test "$no_cache" != 1; then | |
6171 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
6172 | fi | |
6173 | ||
6174 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
6175 | echo "$as_me:$LINENO: result: yes" >&5 | |
6176 | echo "${ECHO_T}yes" >&6 | |
6177 | else | |
6178 | echo "$as_me:$LINENO: result: no" >&5 | |
6179 | echo "${ECHO_T}no" >&6 | |
6180 | fi | |
6181 | ||
6182 | ||
a848cd7e SC |
6183 | |
6184 | enablestring= | |
6185 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 | |
6186 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
6187 | no_cache=0 | |
6188 | # Check whether --enable-url or --disable-url was given. | |
6189 | if test "${enable_url+set}" = set; then | |
6190 | enableval="$enable_url" | |
6191 | ||
6192 | if test "$enableval" = yes; then | |
6193 | ac_cv_use_url='wxUSE_URL=yes' | |
6194 | else | |
6195 | ac_cv_use_url='wxUSE_URL=no' | |
6196 | fi | |
6197 | ||
6198 | else | |
6199 | ||
6200 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
6201 | if test "x$LINE" != x ; then | |
6202 | eval "DEFAULT_$LINE" | |
6203 | else | |
6204 | no_cache=1 | |
6205 | fi | |
6206 | ||
6207 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
6208 | ||
6209 | fi; | |
6210 | ||
6211 | eval "$ac_cv_use_url" | |
6212 | if test "$no_cache" != 1; then | |
6213 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
6214 | fi | |
6215 | ||
6216 | if test "$wxUSE_URL" = yes; then | |
6217 | echo "$as_me:$LINENO: result: yes" >&5 | |
6218 | echo "${ECHO_T}yes" >&6 | |
6219 | else | |
6220 | echo "$as_me:$LINENO: result: no" >&5 | |
6221 | echo "${ECHO_T}no" >&6 | |
6222 | fi | |
6223 | ||
6224 | ||
6225 | enablestring= | |
6226 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 | |
6227 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
6228 | no_cache=0 | |
6229 | # Check whether --enable-protocol or --disable-protocol was given. | |
6230 | if test "${enable_protocol+set}" = set; then | |
6231 | enableval="$enable_protocol" | |
6232 | ||
6233 | if test "$enableval" = yes; then | |
6234 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
6235 | else | |
6236 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
6237 | fi | |
6238 | ||
6239 | else | |
6240 | ||
6241 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
6242 | if test "x$LINE" != x ; then | |
6243 | eval "DEFAULT_$LINE" | |
6244 | else | |
6245 | no_cache=1 | |
6246 | fi | |
6247 | ||
6248 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
6249 | ||
6250 | fi; | |
6251 | ||
6252 | eval "$ac_cv_use_protocol" | |
6253 | if test "$no_cache" != 1; then | |
6254 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
6255 | fi | |
6256 | ||
6257 | if test "$wxUSE_PROTOCOL" = yes; then | |
6258 | echo "$as_me:$LINENO: result: yes" >&5 | |
6259 | echo "${ECHO_T}yes" >&6 | |
6260 | else | |
6261 | echo "$as_me:$LINENO: result: no" >&5 | |
6262 | echo "${ECHO_T}no" >&6 | |
6263 | fi | |
6264 | ||
6265 | ||
6266 | enablestring= | |
6267 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 | |
6268 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
6269 | no_cache=0 | |
6270 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
6271 | if test "${enable_protocol_http+set}" = set; then | |
6272 | enableval="$enable_protocol_http" | |
6273 | ||
6274 | if test "$enableval" = yes; then | |
6275 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
6276 | else | |
6277 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
6278 | fi | |
6279 | ||
6280 | else | |
6281 | ||
6282 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
6283 | if test "x$LINE" != x ; then | |
6284 | eval "DEFAULT_$LINE" | |
6285 | else | |
6286 | no_cache=1 | |
6287 | fi | |
6288 | ||
6289 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
6290 | ||
6291 | fi; | |
6292 | ||
6293 | eval "$ac_cv_use_protocol_http" | |
6294 | if test "$no_cache" != 1; then | |
6295 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
6296 | fi | |
6297 | ||
6298 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
6299 | echo "$as_me:$LINENO: result: yes" >&5 | |
6300 | echo "${ECHO_T}yes" >&6 | |
6301 | else | |
6302 | echo "$as_me:$LINENO: result: no" >&5 | |
6303 | echo "${ECHO_T}no" >&6 | |
6304 | fi | |
6305 | ||
6306 | ||
6307 | enablestring= | |
6308 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 | |
6309 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
6310 | no_cache=0 | |
6311 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
6312 | if test "${enable_protocol_ftp+set}" = set; then | |
6313 | enableval="$enable_protocol_ftp" | |
6314 | ||
6315 | if test "$enableval" = yes; then | |
6316 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
6317 | else | |
6318 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
6319 | fi | |
6320 | ||
6321 | else | |
6322 | ||
6323 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
6324 | if test "x$LINE" != x ; then | |
6325 | eval "DEFAULT_$LINE" | |
6326 | else | |
6327 | no_cache=1 | |
6328 | fi | |
6329 | ||
6330 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
6331 | ||
6332 | fi; | |
6333 | ||
6334 | eval "$ac_cv_use_protocol_ftp" | |
6335 | if test "$no_cache" != 1; then | |
6336 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
6337 | fi | |
6338 | ||
6339 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
6340 | echo "$as_me:$LINENO: result: yes" >&5 | |
6341 | echo "${ECHO_T}yes" >&6 | |
6342 | else | |
6343 | echo "$as_me:$LINENO: result: no" >&5 | |
6344 | echo "${ECHO_T}no" >&6 | |
6345 | fi | |
6346 | ||
6347 | ||
6348 | enablestring= | |
6349 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 | |
6350 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
6351 | no_cache=0 | |
6352 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
6353 | if test "${enable_protocol_file+set}" = set; then | |
6354 | enableval="$enable_protocol_file" | |
6355 | ||
6356 | if test "$enableval" = yes; then | |
6357 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
6358 | else | |
6359 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
6360 | fi | |
6361 | ||
6362 | else | |
6363 | ||
6364 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
6365 | if test "x$LINE" != x ; then | |
6366 | eval "DEFAULT_$LINE" | |
6367 | else | |
6368 | no_cache=1 | |
6369 | fi | |
6370 | ||
6371 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
6372 | ||
6373 | fi; | |
6374 | ||
6375 | eval "$ac_cv_use_protocol_file" | |
6376 | if test "$no_cache" != 1; then | |
6377 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
6378 | fi | |
6379 | ||
6380 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
6381 | echo "$as_me:$LINENO: result: yes" >&5 | |
6382 | echo "${ECHO_T}yes" >&6 | |
6383 | else | |
6384 | echo "$as_me:$LINENO: result: no" >&5 | |
6385 | echo "${ECHO_T}no" >&6 | |
6386 | fi | |
6387 | ||
6388 | ||
6389 | ||
6390 | ||
6391 | ||
6392 | enablestring= | |
6393 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 | |
6394 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
6395 | no_cache=0 | |
6396 | # Check whether --enable-threads or --disable-threads was given. | |
6397 | if test "${enable_threads+set}" = set; then | |
6398 | enableval="$enable_threads" | |
6399 | ||
6400 | if test "$enableval" = yes; then | |
6401 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
6402 | else | |
6403 | ac_cv_use_threads='wxUSE_THREADS=no' | |
6404 | fi | |
6405 | ||
6406 | else | |
6407 | ||
6408 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
6409 | if test "x$LINE" != x ; then | |
6410 | eval "DEFAULT_$LINE" | |
6411 | else | |
6412 | no_cache=1 | |
6413 | fi | |
6414 | ||
6415 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
6416 | ||
6417 | fi; | |
6418 | ||
6419 | eval "$ac_cv_use_threads" | |
6420 | if test "$no_cache" != 1; then | |
6421 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
6422 | fi | |
6423 | ||
6424 | if test "$wxUSE_THREADS" = yes; then | |
6425 | echo "$as_me:$LINENO: result: yes" >&5 | |
6426 | echo "${ECHO_T}yes" >&6 | |
6427 | else | |
6428 | echo "$as_me:$LINENO: result: no" >&5 | |
6429 | echo "${ECHO_T}no" >&6 | |
6430 | fi | |
6431 | ||
6432 | ||
6433 | if test "$wxUSE_GUI" = "yes"; then | |
6434 | ||
6435 | ||
6436 | ||
6437 | enablestring= | |
6438 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 | |
6439 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
6440 | no_cache=0 | |
6441 | # Check whether --enable-docview or --disable-docview was given. | |
6442 | if test "${enable_docview+set}" = set; then | |
6443 | enableval="$enable_docview" | |
6444 | ||
6445 | if test "$enableval" = yes; then | |
6446 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
6447 | else | |
6448 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
6449 | fi | |
6450 | ||
6451 | else | |
6452 | ||
6453 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${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_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
6461 | ||
6462 | fi; | |
6463 | ||
6464 | eval "$ac_cv_use_docview" | |
6465 | if test "$no_cache" != 1; then | |
6466 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
6467 | fi | |
6468 | ||
6469 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = 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}-help" >&5 | |
6480 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
6481 | no_cache=0 | |
6482 | # Check whether --enable-help or --disable-help was given. | |
6483 | if test "${enable_help+set}" = set; then | |
6484 | enableval="$enable_help" | |
6485 | ||
6486 | if test "$enableval" = yes; then | |
6487 | ac_cv_use_help='wxUSE_HELP=yes' | |
6488 | else | |
6489 | ac_cv_use_help='wxUSE_HELP=no' | |
6490 | fi | |
6491 | ||
6492 | else | |
6493 | ||
6494 | LINE=`grep "wxUSE_HELP" ${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_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
6502 | ||
6503 | fi; | |
6504 | ||
6505 | eval "$ac_cv_use_help" | |
6506 | if test "$no_cache" != 1; then | |
6507 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
6508 | fi | |
6509 | ||
6510 | if test "$wxUSE_HELP" = 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}-mshtmlhelp" >&5 | |
6521 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
6522 | no_cache=0 | |
6523 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
6524 | if test "${enable_mshtmlhelp+set}" = set; then | |
6525 | enableval="$enable_mshtmlhelp" | |
6526 | ||
6527 | if test "$enableval" = yes; then | |
6528 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
6529 | else | |
6530 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
6531 | fi | |
6532 | ||
6533 | else | |
6534 | ||
6535 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
6536 | if test "x$LINE" != x ; then | |
6537 | eval "DEFAULT_$LINE" | |
6538 | else | |
6539 | no_cache=1 | |
6540 | fi | |
6541 | ||
6542 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
6543 | ||
6544 | fi; | |
6545 | ||
6546 | eval "$ac_cv_use_mshtmlhelp" | |
6547 | if test "$no_cache" != 1; then | |
6548 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
6549 | fi | |
6550 | ||
6551 | if test "$wxUSE_MS_HTML_HELP" = 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}-html" >&5 | |
6562 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
6563 | no_cache=0 | |
6564 | # Check whether --enable-html or --disable-html was given. | |
6565 | if test "${enable_html+set}" = set; then | |
6566 | enableval="$enable_html" | |
6567 | ||
6568 | if test "$enableval" = yes; then | |
6569 | ac_cv_use_html='wxUSE_HTML=yes' | |
6570 | else | |
6571 | ac_cv_use_html='wxUSE_HTML=no' | |
6572 | fi | |
6573 | ||
6574 | else | |
6575 | ||
6576 | LINE=`grep "wxUSE_HTML" ${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_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
6584 | ||
6585 | fi; | |
6586 | ||
6587 | eval "$ac_cv_use_html" | |
6588 | if test "$no_cache" != 1; then | |
6589 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6590 | fi | |
6591 | ||
6592 | if test "$wxUSE_HTML" = 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}-htmlhelp" >&5 | |
6603 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
6604 | no_cache=0 | |
6605 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
6606 | if test "${enable_htmlhelp+set}" = set; then | |
6607 | enableval="$enable_htmlhelp" | |
6608 | ||
6609 | if test "$enableval" = yes; then | |
6610 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
6611 | else | |
6612 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
6613 | fi | |
6614 | ||
6615 | else | |
6616 | ||
6617 | LINE=`grep "wxUSE_WXHTML_HELP" ${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_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
6625 | ||
6626 | fi; | |
6627 | ||
6628 | eval "$ac_cv_use_htmlhelp" | |
6629 | if test "$no_cache" != 1; then | |
6630 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
6631 | fi | |
6632 | ||
6633 | if test "$wxUSE_WXHTML_HELP" = 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 | ||
9a8f0513 VS |
6642 | enablestring= |
6643 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5 | |
6644 | echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6 | |
6645 | no_cache=0 | |
6646 | # Check whether --enable-xrc or --disable-xrc was given. | |
6647 | if test "${enable_xrc+set}" = set; then | |
6648 | enableval="$enable_xrc" | |
6649 | ||
6650 | if test "$enableval" = yes; then | |
6651 | ac_cv_use_xrc='wxUSE_XRC=yes' | |
6652 | else | |
6653 | ac_cv_use_xrc='wxUSE_XRC=no' | |
6654 | fi | |
6655 | ||
6656 | else | |
6657 | ||
6658 | LINE=`grep "wxUSE_XRC" ${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_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC | |
6666 | ||
6667 | fi; | |
6668 | ||
6669 | eval "$ac_cv_use_xrc" | |
6670 | if test "$no_cache" != 1; then | |
6671 | echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp | |
6672 | fi | |
6673 | ||
6674 | if test "$wxUSE_XRC" = 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 | ||
a848cd7e SC |
6683 | enablestring= |
6684 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 | |
6685 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
6686 | no_cache=0 | |
6687 | # Check whether --enable-constraints or --disable-constraints was given. | |
6688 | if test "${enable_constraints+set}" = set; then | |
6689 | enableval="$enable_constraints" | |
6690 | ||
6691 | if test "$enableval" = yes; then | |
6692 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
6693 | else | |
6694 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
6695 | fi | |
6696 | ||
6697 | else | |
6698 | ||
6699 | LINE=`grep "wxUSE_CONSTRAINTS" ${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_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
6707 | ||
6708 | fi; | |
6709 | ||
6710 | eval "$ac_cv_use_constraints" | |
6711 | if test "$no_cache" != 1; then | |
6712 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
6713 | fi | |
6714 | ||
6715 | if test "$wxUSE_CONSTRAINTS" = 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 | ||
6724 | enablestring= | |
6725 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 | |
6726 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
6727 | no_cache=0 | |
6728 | # Check whether --enable-printarch or --disable-printarch was given. | |
6729 | if test "${enable_printarch+set}" = set; then | |
6730 | enableval="$enable_printarch" | |
6731 | ||
6732 | if test "$enableval" = yes; then | |
6733 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
6734 | else | |
6735 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
6736 | fi | |
6737 | ||
6738 | else | |
6739 | ||
6740 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${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_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
6748 | ||
6749 | fi; | |
6750 | ||
6751 | eval "$ac_cv_use_printarch" | |
6752 | if test "$no_cache" != 1; then | |
6753 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
6754 | fi | |
6755 | ||
6756 | if test "$wxUSE_PRINTING_ARCHITECTURE" = 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 | ||
6765 | enablestring= | |
6766 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 | |
6767 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
6768 | no_cache=0 | |
6769 | # Check whether --enable-mdi or --disable-mdi was given. | |
6770 | if test "${enable_mdi+set}" = set; then | |
6771 | enableval="$enable_mdi" | |
6772 | ||
6773 | if test "$enableval" = yes; then | |
8a7b1113 | 6774 | ac_cv_use_mdi='wxUSE_MDI=yes' |
a848cd7e | 6775 | else |
8a7b1113 | 6776 | ac_cv_use_mdi='wxUSE_MDI=no' |
a848cd7e SC |
6777 | fi |
6778 | ||
6779 | else | |
6780 | ||
8a7b1113 | 6781 | LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}` |
a848cd7e SC |
6782 | if test "x$LINE" != x ; then |
6783 | eval "DEFAULT_$LINE" | |
6784 | else | |
6785 | no_cache=1 | |
6786 | fi | |
6787 | ||
8a7b1113 | 6788 | ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI |
a848cd7e SC |
6789 | |
6790 | fi; | |
6791 | ||
6792 | eval "$ac_cv_use_mdi" | |
6793 | if test "$no_cache" != 1; then | |
6794 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6795 | fi | |
6796 | ||
8a7b1113 VZ |
6797 | if test "$wxUSE_MDI" = yes; then |
6798 | echo "$as_me:$LINENO: result: yes" >&5 | |
6799 | echo "${ECHO_T}yes" >&6 | |
6800 | else | |
6801 | echo "$as_me:$LINENO: result: no" >&5 | |
6802 | echo "${ECHO_T}no" >&6 | |
6803 | fi | |
6804 | ||
6805 | ||
6806 | enablestring= | |
6807 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5 | |
6808 | echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6 | |
6809 | no_cache=0 | |
6810 | # Check whether --enable-mdidoc or --disable-mdidoc was given. | |
6811 | if test "${enable_mdidoc+set}" = set; then | |
6812 | enableval="$enable_mdidoc" | |
6813 | ||
6814 | if test "$enableval" = yes; then | |
6815 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes' | |
6816 | else | |
6817 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no' | |
6818 | fi | |
6819 | ||
6820 | else | |
6821 | ||
6822 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
6823 | if test "x$LINE" != x ; then | |
6824 | eval "DEFAULT_$LINE" | |
6825 | else | |
6826 | no_cache=1 | |
6827 | fi | |
6828 | ||
6829 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
6830 | ||
6831 | fi; | |
6832 | ||
6833 | eval "$ac_cv_use_mdidoc" | |
6834 | if test "$no_cache" != 1; then | |
6835 | echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp | |
6836 | fi | |
6837 | ||
a848cd7e SC |
6838 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then |
6839 | echo "$as_me:$LINENO: result: yes" >&5 | |
6840 | echo "${ECHO_T}yes" >&6 | |
6841 | else | |
6842 | echo "$as_me:$LINENO: result: no" >&5 | |
6843 | echo "${ECHO_T}no" >&6 | |
6844 | fi | |
6845 | ||
6846 | ||
6847 | enablestring= | |
6848 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 | |
6849 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
6850 | no_cache=0 | |
6851 | # Check whether --enable-loggui or --disable-loggui was given. | |
6852 | if test "${enable_loggui+set}" = set; then | |
6853 | enableval="$enable_loggui" | |
6854 | ||
6855 | if test "$enableval" = yes; then | |
6856 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6857 | else | |
6858 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6859 | fi | |
6860 | ||
6861 | else | |
6862 | ||
6863 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
6864 | if test "x$LINE" != x ; then | |
6865 | eval "DEFAULT_$LINE" | |
6866 | else | |
6867 | no_cache=1 | |
6868 | fi | |
6869 | ||
6870 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
6871 | ||
6872 | fi; | |
6873 | ||
6874 | eval "$ac_cv_use_loggui" | |
6875 | if test "$no_cache" != 1; then | |
6876 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6877 | fi | |
6878 | ||
6879 | if test "$wxUSE_LOGGUI" = yes; then | |
6880 | echo "$as_me:$LINENO: result: yes" >&5 | |
6881 | echo "${ECHO_T}yes" >&6 | |
6882 | else | |
6883 | echo "$as_me:$LINENO: result: no" >&5 | |
6884 | echo "${ECHO_T}no" >&6 | |
6885 | fi | |
6886 | ||
6887 | ||
6888 | enablestring= | |
6889 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 | |
6890 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
6891 | no_cache=0 | |
6892 | # Check whether --enable-logwin or --disable-logwin was given. | |
6893 | if test "${enable_logwin+set}" = set; then | |
6894 | enableval="$enable_logwin" | |
6895 | ||
6896 | if test "$enableval" = yes; then | |
6897 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6898 | else | |
6899 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6900 | fi | |
6901 | ||
6902 | else | |
6903 | ||
6904 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
6905 | if test "x$LINE" != x ; then | |
6906 | eval "DEFAULT_$LINE" | |
6907 | else | |
6908 | no_cache=1 | |
6909 | fi | |
6910 | ||
6911 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
6912 | ||
6913 | fi; | |
6914 | ||
6915 | eval "$ac_cv_use_logwin" | |
6916 | if test "$no_cache" != 1; then | |
6917 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6918 | fi | |
6919 | ||
6920 | if test "$wxUSE_LOGWINDOW" = yes; then | |
6921 | echo "$as_me:$LINENO: result: yes" >&5 | |
6922 | echo "${ECHO_T}yes" >&6 | |
6923 | else | |
6924 | echo "$as_me:$LINENO: result: no" >&5 | |
6925 | echo "${ECHO_T}no" >&6 | |
6926 | fi | |
6927 | ||
6928 | ||
6929 | enablestring= | |
6930 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 | |
6931 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
6932 | no_cache=0 | |
6933 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6934 | if test "${enable_logdialog+set}" = set; then | |
6935 | enableval="$enable_logdialog" | |
6936 | ||
6937 | if test "$enableval" = yes; then | |
6938 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6939 | else | |
6940 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6941 | fi | |
6942 | ||
6943 | else | |
6944 | ||
6945 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
6946 | if test "x$LINE" != x ; then | |
6947 | eval "DEFAULT_$LINE" | |
6948 | else | |
6949 | no_cache=1 | |
6950 | fi | |
6951 | ||
6952 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
6953 | ||
6954 | fi; | |
6955 | ||
6956 | eval "$ac_cv_use_logdialog" | |
6957 | if test "$no_cache" != 1; then | |
6958 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
6959 | fi | |
6960 | ||
6961 | if test "$wxUSE_LOGDIALOG" = yes; then | |
6962 | echo "$as_me:$LINENO: result: yes" >&5 | |
6963 | echo "${ECHO_T}yes" >&6 | |
6964 | else | |
6965 | echo "$as_me:$LINENO: result: no" >&5 | |
6966 | echo "${ECHO_T}no" >&6 | |
6967 | fi | |
6968 | ||
6969 | ||
646b6ec1 VS |
6970 | enablestring= |
6971 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5 | |
6972 | echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6 | |
6973 | no_cache=0 | |
6974 | # Check whether --enable-webkit or --disable-webkit was given. | |
6975 | if test "${enable_webkit+set}" = set; then | |
6976 | enableval="$enable_webkit" | |
6977 | ||
6978 | if test "$enableval" = yes; then | |
6979 | ac_cv_use_webkit='wxUSE_WEBKIT=yes' | |
6980 | else | |
6981 | ac_cv_use_webkit='wxUSE_WEBKIT=no' | |
6982 | fi | |
6983 | ||
6984 | else | |
6985 | ||
6986 | LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}` | |
6987 | if test "x$LINE" != x ; then | |
6988 | eval "DEFAULT_$LINE" | |
6989 | else | |
6990 | no_cache=1 | |
6991 | fi | |
6992 | ||
6993 | ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT | |
6994 | ||
6995 | fi; | |
6996 | ||
6997 | eval "$ac_cv_use_webkit" | |
6998 | if test "$no_cache" != 1; then | |
6999 | echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp | |
7000 | fi | |
7001 | ||
7002 | if test "$wxUSE_WEBKIT" = yes; then | |
7003 | echo "$as_me:$LINENO: result: yes" >&5 | |
7004 | echo "${ECHO_T}yes" >&6 | |
7005 | else | |
7006 | echo "$as_me:$LINENO: result: no" >&5 | |
7007 | echo "${ECHO_T}no" >&6 | |
7008 | fi | |
7009 | ||
7010 | ||
a848cd7e SC |
7011 | |
7012 | enablestring= | |
7013 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 | |
7014 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
7015 | no_cache=0 | |
7016 | # Check whether --enable-postscript or --disable-postscript was given. | |
7017 | if test "${enable_postscript+set}" = set; then | |
7018 | enableval="$enable_postscript" | |
7019 | ||
7020 | if test "$enableval" = yes; then | |
7021 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
7022 | else | |
7023 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
7024 | fi | |
7025 | ||
7026 | else | |
7027 | ||
7028 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
7029 | if test "x$LINE" != x ; then | |
7030 | eval "DEFAULT_$LINE" | |
7031 | else | |
7032 | no_cache=1 | |
7033 | fi | |
7034 | ||
7035 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
7036 | ||
7037 | fi; | |
7038 | ||
7039 | eval "$ac_cv_use_postscript" | |
7040 | if test "$no_cache" != 1; then | |
7041 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
7042 | fi | |
7043 | ||
7044 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
7045 | echo "$as_me:$LINENO: result: yes" >&5 | |
7046 | echo "${ECHO_T}yes" >&6 | |
7047 | else | |
7048 | echo "$as_me:$LINENO: result: no" >&5 | |
7049 | echo "${ECHO_T}no" >&6 | |
7050 | fi | |
7051 | ||
7052 | ||
7053 | ||
7054 | ||
7055 | ||
7056 | enablestring= | |
7057 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 | |
7058 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
7059 | no_cache=0 | |
7060 | # Check whether --enable-prologio or --disable-prologio was given. | |
7061 | if test "${enable_prologio+set}" = set; then | |
7062 | enableval="$enable_prologio" | |
7063 | ||
7064 | if test "$enableval" = yes; then | |
7065 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
7066 | else | |
7067 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
7068 | fi | |
7069 | ||
7070 | else | |
7071 | ||
7072 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
7073 | if test "x$LINE" != x ; then | |
7074 | eval "DEFAULT_$LINE" | |
7075 | else | |
7076 | no_cache=1 | |
7077 | fi | |
7078 | ||
7079 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
7080 | ||
7081 | fi; | |
7082 | ||
7083 | eval "$ac_cv_use_prologio" | |
7084 | if test "$no_cache" != 1; then | |
7085 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
7086 | fi | |
7087 | ||
7088 | if test "$wxUSE_PROLOGIO" = yes; then | |
7089 | echo "$as_me:$LINENO: result: yes" >&5 | |
7090 | echo "${ECHO_T}yes" >&6 | |
7091 | else | |
7092 | echo "$as_me:$LINENO: result: no" >&5 | |
7093 | echo "${ECHO_T}no" >&6 | |
7094 | fi | |
7095 | ||
7096 | ||
7097 | enablestring= | |
7098 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 | |
7099 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
7100 | no_cache=0 | |
7101 | # Check whether --enable-resources or --disable-resources was given. | |
7102 | if test "${enable_resources+set}" = set; then | |
7103 | enableval="$enable_resources" | |
7104 | ||
7105 | if test "$enableval" = yes; then | |
7106 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
7107 | else | |
7108 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
7109 | fi | |
7110 | ||
7111 | else | |
7112 | ||
7113 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
7114 | if test "x$LINE" != x ; then | |
7115 | eval "DEFAULT_$LINE" | |
7116 | else | |
7117 | no_cache=1 | |
7118 | fi | |
7119 | ||
7120 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
7121 | ||
7122 | fi; | |
7123 | ||
7124 | eval "$ac_cv_use_resources" | |
7125 | if test "$no_cache" != 1; then | |
7126 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
7127 | fi | |
7128 | ||
7129 | if test "$wxUSE_RESOURCES" = yes; then | |
7130 | echo "$as_me:$LINENO: result: yes" >&5 | |
7131 | echo "${ECHO_T}yes" >&6 | |
7132 | else | |
7133 | echo "$as_me:$LINENO: result: no" >&5 | |
7134 | echo "${ECHO_T}no" >&6 | |
7135 | fi | |
7136 | ||
7137 | ||
7138 | ||
7139 | ||
7140 | enablestring= | |
7141 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 | |
7142 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
7143 | no_cache=0 | |
7144 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
7145 | if test "${enable_clipboard+set}" = set; then | |
7146 | enableval="$enable_clipboard" | |
7147 | ||
7148 | if test "$enableval" = yes; then | |
7149 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
7150 | else | |
7151 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
7152 | fi | |
7153 | ||
7154 | else | |
7155 | ||
7156 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
7157 | if test "x$LINE" != x ; then | |
7158 | eval "DEFAULT_$LINE" | |
7159 | else | |
7160 | no_cache=1 | |
7161 | fi | |
7162 | ||
7163 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
7164 | ||
7165 | fi; | |
7166 | ||
7167 | eval "$ac_cv_use_clipboard" | |
7168 | if test "$no_cache" != 1; then | |
7169 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
7170 | fi | |
7171 | ||
7172 | if test "$wxUSE_CLIPBOARD" = yes; then | |
7173 | echo "$as_me:$LINENO: result: yes" >&5 | |
7174 | echo "${ECHO_T}yes" >&6 | |
7175 | else | |
7176 | echo "$as_me:$LINENO: result: no" >&5 | |
7177 | echo "${ECHO_T}no" >&6 | |
7178 | fi | |
7179 | ||
7180 | ||
7181 | enablestring= | |
7182 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 | |
7183 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
7184 | no_cache=0 | |
7185 | # Check whether --enable-dnd or --disable-dnd was given. | |
7186 | if test "${enable_dnd+set}" = set; then | |
7187 | enableval="$enable_dnd" | |
7188 | ||
7189 | if test "$enableval" = yes; then | |
7190 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
7191 | else | |
7192 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
7193 | fi | |
7194 | ||
7195 | else | |
7196 | ||
7197 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
7198 | if test "x$LINE" != x ; then | |
7199 | eval "DEFAULT_$LINE" | |
7200 | else | |
7201 | no_cache=1 | |
7202 | fi | |
7203 | ||
7204 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
7205 | ||
7206 | fi; | |
7207 | ||
7208 | eval "$ac_cv_use_dnd" | |
7209 | if test "$no_cache" != 1; then | |
7210 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
7211 | fi | |
7212 | ||
7213 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
7214 | echo "$as_me:$LINENO: result: yes" >&5 | |
7215 | echo "${ECHO_T}yes" >&6 | |
7216 | else | |
7217 | echo "$as_me:$LINENO: result: no" >&5 | |
7218 | echo "${ECHO_T}no" >&6 | |
7219 | fi | |
7220 | ||
7221 | ||
7222 | enablestring= | |
7223 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
7224 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
7225 | no_cache=0 | |
7226 | # Check whether --enable-metafile or --disable-metafile was given. | |
7227 | if test "${enable_metafile+set}" = set; then | |
7228 | enableval="$enable_metafile" | |
7229 | ||
7230 | if test "$enableval" = yes; then | |
7231 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7232 | else | |
7233 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7234 | fi | |
7235 | ||
7236 | else | |
7237 | ||
7238 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7239 | if test "x$LINE" != x ; then | |
7240 | eval "DEFAULT_$LINE" | |
7241 | else | |
7242 | no_cache=1 | |
7243 | fi | |
7244 | ||
7245 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7246 | ||
7247 | fi; | |
7248 | ||
7249 | eval "$ac_cv_use_metafile" | |
7250 | if test "$no_cache" != 1; then | |
7251 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7252 | fi | |
7253 | ||
7254 | if test "$wxUSE_METAFILE" = yes; then | |
7255 | echo "$as_me:$LINENO: result: yes" >&5 | |
7256 | echo "${ECHO_T}yes" >&6 | |
7257 | else | |
7258 | echo "$as_me:$LINENO: result: no" >&5 | |
7259 | echo "${ECHO_T}no" >&6 | |
7260 | fi | |
7261 | ||
7262 | ||
7263 | ||
7264 | ||
7265 | ||
7266 | enablestring= | |
7267 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 | |
7268 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
7269 | no_cache=0 | |
7270 | # Check whether --enable-controls or --disable-controls was given. | |
7271 | if test "${enable_controls+set}" = set; then | |
7272 | enableval="$enable_controls" | |
7273 | ||
7274 | if test "$enableval" = yes; then | |
7275 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
7276 | else | |
7277 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
7278 | fi | |
7279 | ||
7280 | else | |
7281 | ||
7282 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
7283 | if test "x$LINE" != x ; then | |
7284 | eval "DEFAULT_$LINE" | |
7285 | else | |
7286 | no_cache=1 | |
7287 | fi | |
7288 | ||
7289 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
7290 | ||
7291 | fi; | |
7292 | ||
7293 | eval "$ac_cv_use_controls" | |
7294 | if test "$no_cache" != 1; then | |
7295 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
7296 | fi | |
7297 | ||
7298 | if test "$wxUSE_CONTROLS" = yes; then | |
7299 | echo "$as_me:$LINENO: result: yes" >&5 | |
7300 | echo "${ECHO_T}yes" >&6 | |
7301 | else | |
7302 | echo "$as_me:$LINENO: result: no" >&5 | |
7303 | echo "${ECHO_T}no" >&6 | |
7304 | fi | |
7305 | ||
7306 | ||
7307 | if test "$wxUSE_CONTROLS" = "yes"; then | |
7308 | DEFAULT_wxUSE_ACCEL=yes | |
7309 | DEFAULT_wxUSE_BMPBUTTON=yes | |
7310 | DEFAULT_wxUSE_BUTTON=yes | |
da98e9be | 7311 | DEFAULT_wxUSE_CALCTRL=yes |
a848cd7e SC |
7312 | DEFAULT_wxUSE_CARET=yes |
7313 | DEFAULT_wxUSE_COMBOBOX=yes | |
7314 | DEFAULT_wxUSE_CHECKBOX=yes | |
7315 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
7316 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 7317 | DEFAULT_wxUSE_CHOICEBOOK=yes |
da98e9be | 7318 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
a848cd7e SC |
7319 | DEFAULT_wxUSE_GAUGE=yes |
7320 | DEFAULT_wxUSE_GRID=yes | |
7321 | DEFAULT_wxUSE_IMAGLIST=yes | |
7322 | DEFAULT_wxUSE_LISTBOOK=yes | |
7323 | DEFAULT_wxUSE_LISTBOX=yes | |
7324 | DEFAULT_wxUSE_LISTCTRL=yes | |
7325 | DEFAULT_wxUSE_NOTEBOOK=yes | |
7326 | DEFAULT_wxUSE_RADIOBOX=yes | |
7327 | DEFAULT_wxUSE_RADIOBTN=yes | |
7328 | DEFAULT_wxUSE_SASH=yes | |
7329 | DEFAULT_wxUSE_SCROLLBAR=yes | |
7330 | DEFAULT_wxUSE_SLIDER=yes | |
7331 | DEFAULT_wxUSE_SPINBTN=yes | |
7332 | DEFAULT_wxUSE_SPINCTRL=yes | |
7333 | DEFAULT_wxUSE_SPLITTER=yes | |
7334 | DEFAULT_wxUSE_STATBMP=yes | |
7335 | DEFAULT_wxUSE_STATBOX=yes | |
7336 | DEFAULT_wxUSE_STATLINE=yes | |
7337 | DEFAULT_wxUSE_STATUSBAR=yes | |
7338 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
7339 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
7340 | DEFAULT_wxUSE_TOOLBAR=yes | |
7341 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
7342 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
7343 | DEFAULT_wxUSE_TOOLTIPS=yes | |
0093c2fc | 7344 | DEFAULT_wxUSE_TREEBOOK=yes |
a848cd7e SC |
7345 | DEFAULT_wxUSE_TREECTRL=yes |
7346 | DEFAULT_wxUSE_POPUPWIN=yes | |
7347 | DEFAULT_wxUSE_TIPWINDOW=yes | |
7348 | elif test "$wxUSE_CONTROLS" = "no"; then | |
7349 | DEFAULT_wxUSE_ACCEL=no | |
7350 | DEFAULT_wxUSE_BMPBUTTON=no | |
7351 | DEFAULT_wxUSE_BUTTON=no | |
7352 | DEFAULT_wxUSE_CALCTRL=no | |
7353 | DEFAULT_wxUSE_CARET=no | |
7354 | DEFAULT_wxUSE_COMBOBOX=no | |
7355 | DEFAULT_wxUSE_CHECKBOX=no | |
7356 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
7357 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 7358 | DEFAULT_wxUSE_CHOICEBOOK=no |
da98e9be | 7359 | DEFAULT_wxUSE_DATEPICKCTRL=no |
a848cd7e SC |
7360 | DEFAULT_wxUSE_GAUGE=no |
7361 | DEFAULT_wxUSE_GRID=no | |
7362 | DEFAULT_wxUSE_IMAGLIST=no | |
7363 | DEFAULT_wxUSE_LISTBOOK=no | |
7364 | DEFAULT_wxUSE_LISTBOX=no | |
7365 | DEFAULT_wxUSE_LISTCTRL=no | |
7366 | DEFAULT_wxUSE_NOTEBOOK=no | |
7367 | DEFAULT_wxUSE_RADIOBOX=no | |
7368 | DEFAULT_wxUSE_RADIOBTN=no | |
7369 | DEFAULT_wxUSE_SASH=no | |
7370 | DEFAULT_wxUSE_SCROLLBAR=no | |
7371 | DEFAULT_wxUSE_SLIDER=no | |
7372 | DEFAULT_wxUSE_SPINBTN=no | |
7373 | DEFAULT_wxUSE_SPINCTRL=no | |
7374 | DEFAULT_wxUSE_SPLITTER=no | |
7375 | DEFAULT_wxUSE_STATBMP=no | |
7376 | DEFAULT_wxUSE_STATBOX=no | |
7377 | DEFAULT_wxUSE_STATLINE=no | |
7378 | DEFAULT_wxUSE_STATUSBAR=no | |
7379 | DEFAULT_wxUSE_TAB_DIALOG=no | |
7380 | DEFAULT_wxUSE_TOGGLEBTN=no | |
7381 | DEFAULT_wxUSE_TOOLBAR=no | |
7382 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
7383 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
7384 | DEFAULT_wxUSE_TOOLTIPS=no | |
0093c2fc | 7385 | DEFAULT_wxUSE_TREEBOOK=no |
a848cd7e SC |
7386 | DEFAULT_wxUSE_TREECTRL=no |
7387 | DEFAULT_wxUSE_POPUPWIN=no | |
7388 | DEFAULT_wxUSE_TIPWINDOW=no | |
7389 | fi | |
7390 | ||
a848cd7e SC |
7391 | |
7392 | enablestring= | |
7393 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 | |
7394 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
7395 | no_cache=0 | |
7396 | # Check whether --enable-accel or --disable-accel was given. | |
7397 | if test "${enable_accel+set}" = set; then | |
7398 | enableval="$enable_accel" | |
7399 | ||
7400 | if test "$enableval" = yes; then | |
7401 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
7402 | else | |
7403 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
7404 | fi | |
7405 | ||
7406 | else | |
7407 | ||
7408 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
7409 | if test "x$LINE" != x ; then | |
7410 | eval "DEFAULT_$LINE" | |
7411 | else | |
7412 | no_cache=1 | |
7413 | fi | |
7414 | ||
7415 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
7416 | ||
7417 | fi; | |
7418 | ||
7419 | eval "$ac_cv_use_accel" | |
7420 | if test "$no_cache" != 1; then | |
7421 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
7422 | fi | |
7423 | ||
7424 | if test "$wxUSE_ACCEL" = yes; then | |
7425 | echo "$as_me:$LINENO: result: yes" >&5 | |
7426 | echo "${ECHO_T}yes" >&6 | |
7427 | else | |
7428 | echo "$as_me:$LINENO: result: no" >&5 | |
7429 | echo "${ECHO_T}no" >&6 | |
7430 | fi | |
7431 | ||
7432 | ||
7433 | enablestring= | |
7434 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 | |
7435 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
7436 | no_cache=0 | |
7437 | # Check whether --enable-button or --disable-button was given. | |
7438 | if test "${enable_button+set}" = set; then | |
7439 | enableval="$enable_button" | |
7440 | ||
7441 | if test "$enableval" = yes; then | |
7442 | ac_cv_use_button='wxUSE_BUTTON=yes' | |
7443 | else | |
7444 | ac_cv_use_button='wxUSE_BUTTON=no' | |
7445 | fi | |
7446 | ||
7447 | else | |
7448 | ||
7449 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` | |
7450 | if test "x$LINE" != x ; then | |
7451 | eval "DEFAULT_$LINE" | |
7452 | else | |
7453 | no_cache=1 | |
7454 | fi | |
7455 | ||
7456 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON | |
7457 | ||
7458 | fi; | |
7459 | ||
7460 | eval "$ac_cv_use_button" | |
7461 | if test "$no_cache" != 1; then | |
7462 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp | |
7463 | fi | |
7464 | ||
7465 | if test "$wxUSE_BUTTON" = yes; then | |
7466 | echo "$as_me:$LINENO: result: yes" >&5 | |
7467 | echo "${ECHO_T}yes" >&6 | |
7468 | else | |
7469 | echo "$as_me:$LINENO: result: no" >&5 | |
7470 | echo "${ECHO_T}no" >&6 | |
7471 | fi | |
7472 | ||
7473 | ||
7474 | enablestring= | |
7475 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 | |
7476 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
7477 | no_cache=0 | |
7478 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
7479 | if test "${enable_bmpbutton+set}" = set; then | |
7480 | enableval="$enable_bmpbutton" | |
7481 | ||
7482 | if test "$enableval" = yes; then | |
7483 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
7484 | else | |
7485 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
7486 | fi | |
7487 | ||
7488 | else | |
7489 | ||
7490 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
7491 | if test "x$LINE" != x ; then | |
7492 | eval "DEFAULT_$LINE" | |
7493 | else | |
7494 | no_cache=1 | |
7495 | fi | |
7496 | ||
7497 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
7498 | ||
7499 | fi; | |
7500 | ||
7501 | eval "$ac_cv_use_bmpbutton" | |
7502 | if test "$no_cache" != 1; then | |
7503 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
7504 | fi | |
7505 | ||
7506 | if test "$wxUSE_BMPBUTTON" = yes; then | |
7507 | echo "$as_me:$LINENO: result: yes" >&5 | |
7508 | echo "${ECHO_T}yes" >&6 | |
7509 | else | |
7510 | echo "$as_me:$LINENO: result: no" >&5 | |
7511 | echo "${ECHO_T}no" >&6 | |
7512 | fi | |
7513 | ||
7514 | ||
7515 | enablestring= | |
7516 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 | |
7517 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
7518 | no_cache=0 | |
7519 | # Check whether --enable-calendar or --disable-calendar was given. | |
7520 | if test "${enable_calendar+set}" = set; then | |
7521 | enableval="$enable_calendar" | |
7522 | ||
7523 | if test "$enableval" = yes; then | |
7524 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
7525 | else | |
7526 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
7527 | fi | |
7528 | ||
7529 | else | |
7530 | ||
7531 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
7532 | if test "x$LINE" != x ; then | |
7533 | eval "DEFAULT_$LINE" | |
7534 | else | |
7535 | no_cache=1 | |
7536 | fi | |
7537 | ||
7538 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
7539 | ||
7540 | fi; | |
7541 | ||
7542 | eval "$ac_cv_use_calendar" | |
7543 | if test "$no_cache" != 1; then | |
7544 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
7545 | fi | |
7546 | ||
7547 | if test "$wxUSE_CALCTRL" = yes; then | |
7548 | echo "$as_me:$LINENO: result: yes" >&5 | |
7549 | echo "${ECHO_T}yes" >&6 | |
7550 | else | |
7551 | echo "$as_me:$LINENO: result: no" >&5 | |
7552 | echo "${ECHO_T}no" >&6 | |
7553 | fi | |
7554 | ||
7555 | ||
7556 | enablestring= | |
7557 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 | |
7558 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
7559 | no_cache=0 | |
7560 | # Check whether --enable-caret or --disable-caret was given. | |
7561 | if test "${enable_caret+set}" = set; then | |
7562 | enableval="$enable_caret" | |
7563 | ||
7564 | if test "$enableval" = yes; then | |
7565 | ac_cv_use_caret='wxUSE_CARET=yes' | |
7566 | else | |
7567 | ac_cv_use_caret='wxUSE_CARET=no' | |
7568 | fi | |
7569 | ||
7570 | else | |
7571 | ||
7572 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
7573 | if test "x$LINE" != x ; then | |
7574 | eval "DEFAULT_$LINE" | |
7575 | else | |
7576 | no_cache=1 | |
7577 | fi | |
7578 | ||
7579 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
7580 | ||
7581 | fi; | |
7582 | ||
7583 | eval "$ac_cv_use_caret" | |
7584 | if test "$no_cache" != 1; then | |
7585 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
7586 | fi | |
7587 | ||
7588 | if test "$wxUSE_CARET" = yes; then | |
7589 | echo "$as_me:$LINENO: result: yes" >&5 | |
7590 | echo "${ECHO_T}yes" >&6 | |
7591 | else | |
7592 | echo "$as_me:$LINENO: result: no" >&5 | |
7593 | echo "${ECHO_T}no" >&6 | |
7594 | fi | |
7595 | ||
7596 | ||
7597 | enablestring= | |
7598 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 | |
7599 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
7600 | no_cache=0 | |
7601 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
7602 | if test "${enable_checkbox+set}" = set; then | |
7603 | enableval="$enable_checkbox" | |
7604 | ||
7605 | if test "$enableval" = yes; then | |
7606 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
7607 | else | |
7608 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
7609 | fi | |
7610 | ||
7611 | else | |
7612 | ||
7613 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
7614 | if test "x$LINE" != x ; then | |
7615 | eval "DEFAULT_$LINE" | |
7616 | else | |
7617 | no_cache=1 | |
7618 | fi | |
7619 | ||
7620 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
7621 | ||
7622 | fi; | |
7623 | ||
7624 | eval "$ac_cv_use_checkbox" | |
7625 | if test "$no_cache" != 1; then | |
7626 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
7627 | fi | |
7628 | ||
7629 | if test "$wxUSE_CHECKBOX" = yes; then | |
7630 | echo "$as_me:$LINENO: result: yes" >&5 | |
7631 | echo "${ECHO_T}yes" >&6 | |
7632 | else | |
7633 | echo "$as_me:$LINENO: result: no" >&5 | |
7634 | echo "${ECHO_T}no" >&6 | |
7635 | fi | |
7636 | ||
7637 | ||
7638 | enablestring= | |
7639 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 | |
7640 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
7641 | no_cache=0 | |
7642 | # Check whether --enable-checklst or --disable-checklst was given. | |
7643 | if test "${enable_checklst+set}" = set; then | |
7644 | enableval="$enable_checklst" | |
7645 | ||
7646 | if test "$enableval" = yes; then | |
7647 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
7648 | else | |
7649 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
7650 | fi | |
7651 | ||
7652 | else | |
7653 | ||
7654 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
7655 | if test "x$LINE" != x ; then | |
7656 | eval "DEFAULT_$LINE" | |
7657 | else | |
7658 | no_cache=1 | |
7659 | fi | |
7660 | ||
7661 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
7662 | ||
7663 | fi; | |
7664 | ||
7665 | eval "$ac_cv_use_checklst" | |
7666 | if test "$no_cache" != 1; then | |
7667 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
7668 | fi | |
7669 | ||
7670 | if test "$wxUSE_CHECKLST" = yes; then | |
7671 | echo "$as_me:$LINENO: result: yes" >&5 | |
7672 | echo "${ECHO_T}yes" >&6 | |
7673 | else | |
7674 | echo "$as_me:$LINENO: result: no" >&5 | |
7675 | echo "${ECHO_T}no" >&6 | |
7676 | fi | |
7677 | ||
7678 | ||
7679 | enablestring= | |
7680 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 | |
7681 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
7682 | no_cache=0 | |
7683 | # Check whether --enable-choice or --disable-choice was given. | |
7684 | if test "${enable_choice+set}" = set; then | |
7685 | enableval="$enable_choice" | |
7686 | ||
7687 | if test "$enableval" = yes; then | |
7688 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
7689 | else | |
7690 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
7691 | fi | |
7692 | ||
7693 | else | |
7694 | ||
7695 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
7696 | if test "x$LINE" != x ; then | |
7697 | eval "DEFAULT_$LINE" | |
7698 | else | |
7699 | no_cache=1 | |
7700 | fi | |
7701 | ||
7702 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
7703 | ||
7704 | fi; | |
7705 | ||
7706 | eval "$ac_cv_use_choice" | |
7707 | if test "$no_cache" != 1; then | |
7708 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
7709 | fi | |
7710 | ||
7711 | if test "$wxUSE_CHOICE" = yes; then | |
7712 | echo "$as_me:$LINENO: result: yes" >&5 | |
7713 | echo "${ECHO_T}yes" >&6 | |
7714 | else | |
7715 | echo "$as_me:$LINENO: result: no" >&5 | |
7716 | echo "${ECHO_T}no" >&6 | |
7717 | fi | |
7718 | ||
7719 | ||
92bbdbcd WS |
7720 | enablestring= |
7721 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5 | |
7722 | echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6 | |
7723 | no_cache=0 | |
7724 | # Check whether --enable-choicebook or --disable-choicebook was given. | |
7725 | if test "${enable_choicebook+set}" = set; then | |
7726 | enableval="$enable_choicebook" | |
7727 | ||
7728 | if test "$enableval" = yes; then | |
7729 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes' | |
7730 | else | |
7731 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no' | |
7732 | fi | |
7733 | ||
7734 | else | |
7735 | ||
7736 | LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}` | |
7737 | if test "x$LINE" != x ; then | |
7738 | eval "DEFAULT_$LINE" | |
7739 | else | |
7740 | no_cache=1 | |
7741 | fi | |
7742 | ||
7743 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK | |
7744 | ||
7745 | fi; | |
7746 | ||
7747 | eval "$ac_cv_use_choicebook" | |
7748 | if test "$no_cache" != 1; then | |
7749 | echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp | |
7750 | fi | |
7751 | ||
7752 | if test "$wxUSE_CHOICEBOOK" = yes; then | |
7753 | echo "$as_me:$LINENO: result: yes" >&5 | |
7754 | echo "${ECHO_T}yes" >&6 | |
7755 | else | |
7756 | echo "$as_me:$LINENO: result: no" >&5 | |
7757 | echo "${ECHO_T}no" >&6 | |
7758 | fi | |
7759 | ||
7760 | ||
a848cd7e SC |
7761 | enablestring= |
7762 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 | |
7763 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
7764 | no_cache=0 | |
7765 | # Check whether --enable-combobox or --disable-combobox was given. | |
7766 | if test "${enable_combobox+set}" = set; then | |
7767 | enableval="$enable_combobox" | |
7768 | ||
7769 | if test "$enableval" = yes; then | |
7770 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
7771 | else | |
7772 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
7773 | fi | |
7774 | ||
7775 | else | |
7776 | ||
7777 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
7778 | if test "x$LINE" != x ; then | |
7779 | eval "DEFAULT_$LINE" | |
7780 | else | |
7781 | no_cache=1 | |
7782 | fi | |
7783 | ||
7784 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
7785 | ||
7786 | fi; | |
7787 | ||
7788 | eval "$ac_cv_use_combobox" | |
7789 | if test "$no_cache" != 1; then | |
7790 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
7791 | fi | |
7792 | ||
7793 | if test "$wxUSE_COMBOBOX" = yes; then | |
7794 | echo "$as_me:$LINENO: result: yes" >&5 | |
7795 | echo "${ECHO_T}yes" >&6 | |
7796 | else | |
7797 | echo "$as_me:$LINENO: result: no" >&5 | |
7798 | echo "${ECHO_T}no" >&6 | |
7799 | fi | |
7800 | ||
7801 | ||
da98e9be VZ |
7802 | enablestring= |
7803 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5 | |
7804 | echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6 | |
7805 | no_cache=0 | |
7806 | # Check whether --enable-datepick or --disable-datepick was given. | |
7807 | if test "${enable_datepick+set}" = set; then | |
7808 | enableval="$enable_datepick" | |
7809 | ||
7810 | if test "$enableval" = yes; then | |
7811 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes' | |
7812 | else | |
7813 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no' | |
7814 | fi | |
7815 | ||
7816 | else | |
7817 | ||
7818 | LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}` | |
7819 | if test "x$LINE" != x ; then | |
7820 | eval "DEFAULT_$LINE" | |
7821 | else | |
7822 | no_cache=1 | |
7823 | fi | |
7824 | ||
7825 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL | |
7826 | ||
7827 | fi; | |
7828 | ||
7829 | eval "$ac_cv_use_datepick" | |
7830 | if test "$no_cache" != 1; then | |
7831 | echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp | |
7832 | fi | |
7833 | ||
7834 | if test "$wxUSE_DATEPICKCTRL" = yes; then | |
7835 | echo "$as_me:$LINENO: result: yes" >&5 | |
7836 | echo "${ECHO_T}yes" >&6 | |
7837 | else | |
7838 | echo "$as_me:$LINENO: result: no" >&5 | |
7839 | echo "${ECHO_T}no" >&6 | |
7840 | fi | |
7841 | ||
7842 | ||
a848cd7e SC |
7843 | enablestring= |
7844 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 | |
7845 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
7846 | no_cache=0 | |
7847 | # Check whether --enable-display or --disable-display was given. | |
7848 | if test "${enable_display+set}" = set; then | |
7849 | enableval="$enable_display" | |
7850 | ||
7851 | if test "$enableval" = yes; then | |
7852 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
7853 | else | |
7854 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
7855 | fi | |
7856 | ||
7857 | else | |
7858 | ||
7859 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
7860 | if test "x$LINE" != x ; then | |
7861 | eval "DEFAULT_$LINE" | |
7862 | else | |
7863 | no_cache=1 | |
7864 | fi | |
7865 | ||
7866 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
7867 | ||
7868 | fi; | |
7869 | ||
7870 | eval "$ac_cv_use_display" | |
7871 | if test "$no_cache" != 1; then | |
7872 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
7873 | fi | |
7874 | ||
7875 | if test "$wxUSE_DISPLAY" = yes; then | |
7876 | echo "$as_me:$LINENO: result: yes" >&5 | |
7877 | echo "${ECHO_T}yes" >&6 | |
7878 | else | |
7879 | echo "$as_me:$LINENO: result: no" >&5 | |
7880 | echo "${ECHO_T}no" >&6 | |
7881 | fi | |
7882 | ||
7883 | ||
7884 | enablestring= | |
7885 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 | |
7886 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
7887 | no_cache=0 | |
7888 | # Check whether --enable-gauge or --disable-gauge was given. | |
7889 | if test "${enable_gauge+set}" = set; then | |
7890 | enableval="$enable_gauge" | |
7891 | ||
7892 | if test "$enableval" = yes; then | |
7893 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
7894 | else | |
7895 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
7896 | fi | |
7897 | ||
7898 | else | |
7899 | ||
7900 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
7901 | if test "x$LINE" != x ; then | |
7902 | eval "DEFAULT_$LINE" | |
7903 | else | |
7904 | no_cache=1 | |
7905 | fi | |
7906 | ||
7907 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
7908 | ||
7909 | fi; | |
7910 | ||
7911 | eval "$ac_cv_use_gauge" | |
7912 | if test "$no_cache" != 1; then | |
7913 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
7914 | fi | |
7915 | ||
7916 | if test "$wxUSE_GAUGE" = yes; then | |
7917 | echo "$as_me:$LINENO: result: yes" >&5 | |
7918 | echo "${ECHO_T}yes" >&6 | |
7919 | else | |
7920 | echo "$as_me:$LINENO: result: no" >&5 | |
7921 | echo "${ECHO_T}no" >&6 | |
7922 | fi | |
7923 | ||
7924 | ||
7925 | enablestring= | |
7926 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 | |
7927 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
7928 | no_cache=0 | |
7929 | # Check whether --enable-grid or --disable-grid was given. | |
7930 | if test "${enable_grid+set}" = set; then | |
7931 | enableval="$enable_grid" | |
7932 | ||
7933 | if test "$enableval" = yes; then | |
7934 | ac_cv_use_grid='wxUSE_GRID=yes' | |
7935 | else | |
7936 | ac_cv_use_grid='wxUSE_GRID=no' | |
7937 | fi | |
7938 | ||
7939 | else | |
7940 | ||
7941 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
7942 | if test "x$LINE" != x ; then | |
7943 | eval "DEFAULT_$LINE" | |
7944 | else | |
7945 | no_cache=1 | |
7946 | fi | |
7947 | ||
7948 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
7949 | ||
7950 | fi; | |
7951 | ||
7952 | eval "$ac_cv_use_grid" | |
7953 | if test "$no_cache" != 1; then | |
7954 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
7955 | fi | |
7956 | ||
7957 | if test "$wxUSE_GRID" = yes; then | |
7958 | echo "$as_me:$LINENO: result: yes" >&5 | |
7959 | echo "${ECHO_T}yes" >&6 | |
7960 | else | |
7961 | echo "$as_me:$LINENO: result: no" >&5 | |
7962 | echo "${ECHO_T}no" >&6 | |
7963 | fi | |
7964 | ||
7965 | ||
7966 | enablestring= | |
7967 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 | |
7968 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
7969 | no_cache=0 | |
7970 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
7971 | if test "${enable_imaglist+set}" = set; then | |
7972 | enableval="$enable_imaglist" | |
7973 | ||
7974 | if test "$enableval" = yes; then | |
7975 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
7976 | else | |
7977 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
7978 | fi | |
7979 | ||
7980 | else | |
7981 | ||
7982 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
7983 | if test "x$LINE" != x ; then | |
7984 | eval "DEFAULT_$LINE" | |
7985 | else | |
7986 | no_cache=1 | |
7987 | fi | |
7988 | ||
7989 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
7990 | ||
7991 | fi; | |
7992 | ||
7993 | eval "$ac_cv_use_imaglist" | |
7994 | if test "$no_cache" != 1; then | |
7995 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
7996 | fi | |
7997 | ||
7998 | if test "$wxUSE_IMAGLIST" = yes; then | |
7999 | echo "$as_me:$LINENO: result: yes" >&5 | |
8000 | echo "${ECHO_T}yes" >&6 | |
8001 | else | |
8002 | echo "$as_me:$LINENO: result: no" >&5 | |
8003 | echo "${ECHO_T}no" >&6 | |
8004 | fi | |
8005 | ||
8006 | ||
8007 | enablestring= | |
8008 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
8009 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
8010 | no_cache=0 | |
8011 | # Check whether --enable-listbook or --disable-listbook was given. | |
8012 | if test "${enable_listbook+set}" = set; then | |
8013 | enableval="$enable_listbook" | |
8014 | ||
8015 | if test "$enableval" = yes; then | |
8016 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
8017 | else | |
8018 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
8019 | fi | |
8020 | ||
8021 | else | |
8022 | ||
8023 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
8024 | if test "x$LINE" != x ; then | |
8025 | eval "DEFAULT_$LINE" | |
8026 | else | |
8027 | no_cache=1 | |
8028 | fi | |
8029 | ||
8030 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
8031 | ||
8032 | fi; | |
8033 | ||
8034 | eval "$ac_cv_use_listbook" | |
8035 | if test "$no_cache" != 1; then | |
8036 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
8037 | fi | |
8038 | ||
8039 | if test "$wxUSE_LISTBOOK" = yes; then | |
8040 | echo "$as_me:$LINENO: result: yes" >&5 | |
8041 | echo "${ECHO_T}yes" >&6 | |
8042 | else | |
8043 | echo "$as_me:$LINENO: result: no" >&5 | |
8044 | echo "${ECHO_T}no" >&6 | |
8045 | fi | |
8046 | ||
8047 | ||
8048 | enablestring= | |
8049 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 | |
8050 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
8051 | no_cache=0 | |
8052 | # Check whether --enable-listbox or --disable-listbox was given. | |
8053 | if test "${enable_listbox+set}" = set; then | |
8054 | enableval="$enable_listbox" | |
8055 | ||
8056 | if test "$enableval" = yes; then | |
8057 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
8058 | else | |
8059 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
8060 | fi | |
8061 | ||
8062 | else | |
8063 | ||
8064 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
8065 | if test "x$LINE" != x ; then | |
8066 | eval "DEFAULT_$LINE" | |
8067 | else | |
8068 | no_cache=1 | |
8069 | fi | |
8070 | ||
8071 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
8072 | ||
8073 | fi; | |
8074 | ||
8075 | eval "$ac_cv_use_listbox" | |
8076 | if test "$no_cache" != 1; then | |
8077 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
8078 | fi | |
8079 | ||
8080 | if test "$wxUSE_LISTBOX" = yes; then | |
8081 | echo "$as_me:$LINENO: result: yes" >&5 | |
8082 | echo "${ECHO_T}yes" >&6 | |
8083 | else | |
8084 | echo "$as_me:$LINENO: result: no" >&5 | |
8085 | echo "${ECHO_T}no" >&6 | |
8086 | fi | |
8087 | ||
8088 | ||
8089 | enablestring= | |
8090 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 | |
8091 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
8092 | no_cache=0 | |
8093 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
8094 | if test "${enable_listctrl+set}" = set; then | |
8095 | enableval="$enable_listctrl" | |
8096 | ||
8097 | if test "$enableval" = yes; then | |
8098 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
8099 | else | |
8100 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
8101 | fi | |
8102 | ||
8103 | else | |
8104 | ||
8105 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
8106 | if test "x$LINE" != x ; then | |
8107 | eval "DEFAULT_$LINE" | |
8108 | else | |
8109 | no_cache=1 | |
8110 | fi | |
8111 | ||
8112 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
8113 | ||
8114 | fi; | |
8115 | ||
8116 | eval "$ac_cv_use_listctrl" | |
8117 | if test "$no_cache" != 1; then | |
8118 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
8119 | fi | |
8120 | ||
8121 | if test "$wxUSE_LISTCTRL" = yes; then | |
8122 | echo "$as_me:$LINENO: result: yes" >&5 | |
8123 | echo "${ECHO_T}yes" >&6 | |
8124 | else | |
8125 | echo "$as_me:$LINENO: result: no" >&5 | |
8126 | echo "${ECHO_T}no" >&6 | |
8127 | fi | |
8128 | ||
8129 | ||
8130 | enablestring= | |
8131 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 | |
8132 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
8133 | no_cache=0 | |
8134 | # Check whether --enable-notebook or --disable-notebook was given. | |
8135 | if test "${enable_notebook+set}" = set; then | |
8136 | enableval="$enable_notebook" | |
8137 | ||
8138 | if test "$enableval" = yes; then | |
8139 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
8140 | else | |
8141 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
8142 | fi | |
8143 | ||
8144 | else | |
8145 | ||
8146 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
8147 | if test "x$LINE" != x ; then | |
8148 | eval "DEFAULT_$LINE" | |
8149 | else | |
8150 | no_cache=1 | |
8151 | fi | |
8152 | ||
8153 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
8154 | ||
8155 | fi; | |
8156 | ||
8157 | eval "$ac_cv_use_notebook" | |
8158 | if test "$no_cache" != 1; then | |
8159 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
8160 | fi | |
8161 | ||
8162 | if test "$wxUSE_NOTEBOOK" = yes; then | |
8163 | echo "$as_me:$LINENO: result: yes" >&5 | |
8164 | echo "${ECHO_T}yes" >&6 | |
8165 | else | |
8166 | echo "$as_me:$LINENO: result: no" >&5 | |
8167 | echo "${ECHO_T}no" >&6 | |
8168 | fi | |
8169 | ||
8170 | ||
8171 | enablestring= | |
8172 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 | |
8173 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
8174 | no_cache=0 | |
8175 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
8176 | if test "${enable_radiobox+set}" = set; then | |
8177 | enableval="$enable_radiobox" | |
8178 | ||
8179 | if test "$enableval" = yes; then | |
8180 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
8181 | else | |
8182 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
8183 | fi | |
8184 | ||
8185 | else | |
8186 | ||
8187 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
8188 | if test "x$LINE" != x ; then | |
8189 | eval "DEFAULT_$LINE" | |
8190 | else | |
8191 | no_cache=1 | |
8192 | fi | |
8193 | ||
8194 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
8195 | ||
8196 | fi; | |
8197 | ||
8198 | eval "$ac_cv_use_radiobox" | |
8199 | if test "$no_cache" != 1; then | |
8200 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
8201 | fi | |
8202 | ||
8203 | if test "$wxUSE_RADIOBOX" = yes; then | |
8204 | echo "$as_me:$LINENO: result: yes" >&5 | |
8205 | echo "${ECHO_T}yes" >&6 | |
8206 | else | |
8207 | echo "$as_me:$LINENO: result: no" >&5 | |
8208 | echo "${ECHO_T}no" >&6 | |
8209 | fi | |
8210 | ||
8211 | ||
8212 | enablestring= | |
8213 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 | |
8214 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
8215 | no_cache=0 | |
8216 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
8217 | if test "${enable_radiobtn+set}" = set; then | |
8218 | enableval="$enable_radiobtn" | |
8219 | ||
8220 | if test "$enableval" = yes; then | |
8221 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
8222 | else | |
8223 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
8224 | fi | |
8225 | ||
8226 | else | |
8227 | ||
8228 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
8229 | if test "x$LINE" != x ; then | |
8230 | eval "DEFAULT_$LINE" | |
8231 | else | |
8232 | no_cache=1 | |
8233 | fi | |
8234 | ||
8235 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
8236 | ||
8237 | fi; | |
8238 | ||
8239 | eval "$ac_cv_use_radiobtn" | |
8240 | if test "$no_cache" != 1; then | |
8241 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
8242 | fi | |
8243 | ||
8244 | if test "$wxUSE_RADIOBTN" = yes; then | |
8245 | echo "$as_me:$LINENO: result: yes" >&5 | |
8246 | echo "${ECHO_T}yes" >&6 | |
8247 | else | |
8248 | echo "$as_me:$LINENO: result: no" >&5 | |
8249 | echo "${ECHO_T}no" >&6 | |
8250 | fi | |
8251 | ||
8252 | ||
8253 | enablestring= | |
8254 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 | |
8255 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
8256 | no_cache=0 | |
8257 | # Check whether --enable-sash or --disable-sash was given. | |
8258 | if test "${enable_sash+set}" = set; then | |
8259 | enableval="$enable_sash" | |
8260 | ||
8261 | if test "$enableval" = yes; then | |
8262 | ac_cv_use_sash='wxUSE_SASH=yes' | |
8263 | else | |
8264 | ac_cv_use_sash='wxUSE_SASH=no' | |
8265 | fi | |
8266 | ||
8267 | else | |
8268 | ||
8269 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
8270 | if test "x$LINE" != x ; then | |
8271 | eval "DEFAULT_$LINE" | |
8272 | else | |
8273 | no_cache=1 | |
8274 | fi | |
8275 | ||
8276 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
8277 | ||
8278 | fi; | |
8279 | ||
8280 | eval "$ac_cv_use_sash" | |
8281 | if test "$no_cache" != 1; then | |
8282 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
8283 | fi | |
8284 | ||
8285 | if test "$wxUSE_SASH" = yes; then | |
8286 | echo "$as_me:$LINENO: result: yes" >&5 | |
8287 | echo "${ECHO_T}yes" >&6 | |
8288 | else | |
8289 | echo "$as_me:$LINENO: result: no" >&5 | |
8290 | echo "${ECHO_T}no" >&6 | |
8291 | fi | |
8292 | ||
8293 | ||
8294 | enablestring= | |
8295 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 | |
8296 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
8297 | no_cache=0 | |
8298 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
8299 | if test "${enable_scrollbar+set}" = set; then | |
8300 | enableval="$enable_scrollbar" | |
8301 | ||
8302 | if test "$enableval" = yes; then | |
8303 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
8304 | else | |
8305 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
8306 | fi | |
8307 | ||
8308 | else | |
8309 | ||
8310 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
8311 | if test "x$LINE" != x ; then | |
8312 | eval "DEFAULT_$LINE" | |
8313 | else | |
8314 | no_cache=1 | |
8315 | fi | |
8316 | ||
8317 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
8318 | ||
8319 | fi; | |
8320 | ||
8321 | eval "$ac_cv_use_scrollbar" | |
8322 | if test "$no_cache" != 1; then | |
8323 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
8324 | fi | |
8325 | ||
8326 | if test "$wxUSE_SCROLLBAR" = yes; then | |
8327 | echo "$as_me:$LINENO: result: yes" >&5 | |
8328 | echo "${ECHO_T}yes" >&6 | |
8329 | else | |
8330 | echo "$as_me:$LINENO: result: no" >&5 | |
8331 | echo "${ECHO_T}no" >&6 | |
8332 | fi | |
8333 | ||
8334 | ||
8335 | enablestring= | |
8336 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 | |
8337 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
8338 | no_cache=0 | |
8339 | # Check whether --enable-slider or --disable-slider was given. | |
8340 | if test "${enable_slider+set}" = set; then | |
8341 | enableval="$enable_slider" | |
8342 | ||
8343 | if test "$enableval" = yes; then | |
8344 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
8345 | else | |
8346 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
8347 | fi | |
8348 | ||
8349 | else | |
8350 | ||
8351 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
8352 | if test "x$LINE" != x ; then | |
8353 | eval "DEFAULT_$LINE" | |
8354 | else | |
8355 | no_cache=1 | |
8356 | fi | |
8357 | ||
8358 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
8359 | ||
8360 | fi; | |
8361 | ||
8362 | eval "$ac_cv_use_slider" | |
8363 | if test "$no_cache" != 1; then | |
8364 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
8365 | fi | |
8366 | ||
8367 | if test "$wxUSE_SLIDER" = yes; then | |
8368 | echo "$as_me:$LINENO: result: yes" >&5 | |
8369 | echo "${ECHO_T}yes" >&6 | |
8370 | else | |
8371 | echo "$as_me:$LINENO: result: no" >&5 | |
8372 | echo "${ECHO_T}no" >&6 | |
8373 | fi | |
8374 | ||
8375 | ||
8376 | enablestring= | |
8377 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 | |
8378 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
8379 | no_cache=0 | |
8380 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
8381 | if test "${enable_spinbtn+set}" = set; then | |
8382 | enableval="$enable_spinbtn" | |
8383 | ||
8384 | if test "$enableval" = yes; then | |
8385 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
8386 | else | |
8387 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
8388 | fi | |
8389 | ||
8390 | else | |
8391 | ||
8392 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
8393 | if test "x$LINE" != x ; then | |
8394 | eval "DEFAULT_$LINE" | |
8395 | else | |
8396 | no_cache=1 | |
8397 | fi | |
8398 | ||
8399 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
8400 | ||
8401 | fi; | |
8402 | ||
8403 | eval "$ac_cv_use_spinbtn" | |
8404 | if test "$no_cache" != 1; then | |
8405 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
8406 | fi | |
8407 | ||
8408 | if test "$wxUSE_SPINBTN" = yes; then | |
8409 | echo "$as_me:$LINENO: result: yes" >&5 | |
8410 | echo "${ECHO_T}yes" >&6 | |
8411 | else | |
8412 | echo "$as_me:$LINENO: result: no" >&5 | |
8413 | echo "${ECHO_T}no" >&6 | |
8414 | fi | |
8415 | ||
8416 | ||
8417 | enablestring= | |
8418 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 | |
8419 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
8420 | no_cache=0 | |
8421 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
8422 | if test "${enable_spinctrl+set}" = set; then | |
8423 | enableval="$enable_spinctrl" | |
8424 | ||
8425 | if test "$enableval" = yes; then | |
8426 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
8427 | else | |
8428 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
8429 | fi | |
8430 | ||
8431 | else | |
8432 | ||
8433 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
8434 | if test "x$LINE" != x ; then | |
8435 | eval "DEFAULT_$LINE" | |
8436 | else | |
8437 | no_cache=1 | |
8438 | fi | |
8439 | ||
8440 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
8441 | ||
8442 | fi; | |
8443 | ||
8444 | eval "$ac_cv_use_spinctrl" | |
8445 | if test "$no_cache" != 1; then | |
8446 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
8447 | fi | |
8448 | ||
8449 | if test "$wxUSE_SPINCTRL" = yes; then | |
8450 | echo "$as_me:$LINENO: result: yes" >&5 | |
8451 | echo "${ECHO_T}yes" >&6 | |
8452 | else | |
8453 | echo "$as_me:$LINENO: result: no" >&5 | |
8454 | echo "${ECHO_T}no" >&6 | |
8455 | fi | |
8456 | ||
8457 | ||
8458 | enablestring= | |
8459 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 | |
8460 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
8461 | no_cache=0 | |
8462 | # Check whether --enable-splitter or --disable-splitter was given. | |
8463 | if test "${enable_splitter+set}" = set; then | |
8464 | enableval="$enable_splitter" | |
8465 | ||
8466 | if test "$enableval" = yes; then | |
8467 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
8468 | else | |
8469 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
8470 | fi | |
8471 | ||
8472 | else | |
8473 | ||
8474 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
8475 | if test "x$LINE" != x ; then | |
8476 | eval "DEFAULT_$LINE" | |
8477 | else | |
8478 | no_cache=1 | |
8479 | fi | |
8480 | ||
8481 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
8482 | ||
8483 | fi; | |
8484 | ||
8485 | eval "$ac_cv_use_splitter" | |
8486 | if test "$no_cache" != 1; then | |
8487 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
8488 | fi | |
8489 | ||
8490 | if test "$wxUSE_SPLITTER" = yes; then | |
8491 | echo "$as_me:$LINENO: result: yes" >&5 | |
8492 | echo "${ECHO_T}yes" >&6 | |
8493 | else | |
8494 | echo "$as_me:$LINENO: result: no" >&5 | |
8495 | echo "${ECHO_T}no" >&6 | |
8496 | fi | |
8497 | ||
8498 | ||
8499 | enablestring= | |
8500 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 | |
8501 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
8502 | no_cache=0 | |
8503 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
8504 | if test "${enable_statbmp+set}" = set; then | |
8505 | enableval="$enable_statbmp" | |
8506 | ||
8507 | if test "$enableval" = yes; then | |
8508 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
8509 | else | |
8510 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
8511 | fi | |
8512 | ||
8513 | else | |
8514 | ||
8515 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
8516 | if test "x$LINE" != x ; then | |
8517 | eval "DEFAULT_$LINE" | |
8518 | else | |
8519 | no_cache=1 | |
8520 | fi | |
8521 | ||
8522 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
8523 | ||
8524 | fi; | |
8525 | ||
8526 | eval "$ac_cv_use_statbmp" | |
8527 | if test "$no_cache" != 1; then | |
8528 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
8529 | fi | |
8530 | ||
8531 | if test "$wxUSE_STATBMP" = yes; then | |
8532 | echo "$as_me:$LINENO: result: yes" >&5 | |
8533 | echo "${ECHO_T}yes" >&6 | |
8534 | else | |
8535 | echo "$as_me:$LINENO: result: no" >&5 | |
8536 | echo "${ECHO_T}no" >&6 | |
8537 | fi | |
8538 | ||
8539 | ||
8540 | enablestring= | |
8541 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 | |
8542 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
8543 | no_cache=0 | |
8544 | # Check whether --enable-statbox or --disable-statbox was given. | |
8545 | if test "${enable_statbox+set}" = set; then | |
8546 | enableval="$enable_statbox" | |
8547 | ||
8548 | if test "$enableval" = yes; then | |
8549 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
8550 | else | |
8551 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
8552 | fi | |
8553 | ||
8554 | else | |
8555 | ||
8556 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
8557 | if test "x$LINE" != x ; then | |
8558 | eval "DEFAULT_$LINE" | |
8559 | else | |
8560 | no_cache=1 | |
8561 | fi | |
8562 | ||
8563 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
8564 | ||
8565 | fi; | |
8566 | ||
8567 | eval "$ac_cv_use_statbox" | |
8568 | if test "$no_cache" != 1; then | |
8569 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
8570 | fi | |
8571 | ||
8572 | if test "$wxUSE_STATBOX" = yes; then | |
8573 | echo "$as_me:$LINENO: result: yes" >&5 | |
8574 | echo "${ECHO_T}yes" >&6 | |
8575 | else | |
8576 | echo "$as_me:$LINENO: result: no" >&5 | |
8577 | echo "${ECHO_T}no" >&6 | |
8578 | fi | |
8579 | ||
8580 | ||
8581 | enablestring= | |
8582 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 | |
8583 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
8584 | no_cache=0 | |
8585 | # Check whether --enable-statline or --disable-statline was given. | |
8586 | if test "${enable_statline+set}" = set; then | |
8587 | enableval="$enable_statline" | |
8588 | ||
8589 | if test "$enableval" = yes; then | |
8590 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
8591 | else | |
8592 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
8593 | fi | |
8594 | ||
8595 | else | |
8596 | ||
8597 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
8598 | if test "x$LINE" != x ; then | |
8599 | eval "DEFAULT_$LINE" | |
8600 | else | |
8601 | no_cache=1 | |
8602 | fi | |
8603 | ||
8604 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
8605 | ||
8606 | fi; | |
8607 | ||
8608 | eval "$ac_cv_use_statline" | |
8609 | if test "$no_cache" != 1; then | |
8610 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
8611 | fi | |
8612 | ||
8613 | if test "$wxUSE_STATLINE" = yes; then | |
8614 | echo "$as_me:$LINENO: result: yes" >&5 | |
8615 | echo "${ECHO_T}yes" >&6 | |
8616 | else | |
8617 | echo "$as_me:$LINENO: result: no" >&5 | |
8618 | echo "${ECHO_T}no" >&6 | |
8619 | fi | |
8620 | ||
8621 | ||
8622 | enablestring= | |
8623 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 | |
8624 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
8625 | no_cache=0 | |
8626 | # Check whether --enable-stattext or --disable-stattext was given. | |
8627 | if test "${enable_stattext+set}" = set; then | |
8628 | enableval="$enable_stattext" | |
8629 | ||
8630 | if test "$enableval" = yes; then | |
8631 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
8632 | else | |
8633 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
8634 | fi | |
8635 | ||
8636 | else | |
8637 | ||
8638 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
8639 | if test "x$LINE" != x ; then | |
8640 | eval "DEFAULT_$LINE" | |
8641 | else | |
8642 | no_cache=1 | |
8643 | fi | |
8644 | ||
8645 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
8646 | ||
8647 | fi; | |
8648 | ||
8649 | eval "$ac_cv_use_stattext" | |
8650 | if test "$no_cache" != 1; then | |
8651 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
8652 | fi | |
8653 | ||
8654 | if test "$wxUSE_STATTEXT" = yes; then | |
8655 | echo "$as_me:$LINENO: result: yes" >&5 | |
8656 | echo "${ECHO_T}yes" >&6 | |
8657 | else | |
8658 | echo "$as_me:$LINENO: result: no" >&5 | |
8659 | echo "${ECHO_T}no" >&6 | |
8660 | fi | |
8661 | ||
8662 | ||
8663 | enablestring= | |
8664 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 | |
8665 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
8666 | no_cache=0 | |
8667 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
8668 | if test "${enable_statusbar+set}" = set; then | |
8669 | enableval="$enable_statusbar" | |
8670 | ||
8671 | if test "$enableval" = yes; then | |
8672 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
8673 | else | |
8674 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
8675 | fi | |
8676 | ||
8677 | else | |
8678 | ||
8679 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
8680 | if test "x$LINE" != x ; then | |
8681 | eval "DEFAULT_$LINE" | |
8682 | else | |
8683 | no_cache=1 | |
8684 | fi | |
8685 | ||
8686 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
8687 | ||
8688 | fi; | |
8689 | ||
8690 | eval "$ac_cv_use_statusbar" | |
8691 | if test "$no_cache" != 1; then | |
8692 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
8693 | fi | |
8694 | ||
8695 | if test "$wxUSE_STATUSBAR" = yes; then | |
8696 | echo "$as_me:$LINENO: result: yes" >&5 | |
8697 | echo "${ECHO_T}yes" >&6 | |
8698 | else | |
8699 | echo "$as_me:$LINENO: result: no" >&5 | |
8700 | echo "${ECHO_T}no" >&6 | |
8701 | fi | |
8702 | ||
8703 | ||
8704 | enablestring= | |
8705 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 | |
8706 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
8707 | no_cache=0 | |
8708 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
8709 | if test "${enable_tabdialog+set}" = set; then | |
8710 | enableval="$enable_tabdialog" | |
8711 | ||
8712 | if test "$enableval" = yes; then | |
8713 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
8714 | else | |
8715 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
8716 | fi | |
8717 | ||
8718 | else | |
8719 | ||
8720 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
8721 | if test "x$LINE" != x ; then | |
8722 | eval "DEFAULT_$LINE" | |
8723 | else | |
8724 | no_cache=1 | |
8725 | fi | |
8726 | ||
8727 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
8728 | ||
8729 | fi; | |
8730 | ||
8731 | eval "$ac_cv_use_tabdialog" | |
8732 | if test "$no_cache" != 1; then | |
8733 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
8734 | fi | |
8735 | ||
8736 | if test "$wxUSE_TABDIALOG" = yes; then | |
8737 | echo "$as_me:$LINENO: result: yes" >&5 | |
8738 | echo "${ECHO_T}yes" >&6 | |
8739 | else | |
8740 | echo "$as_me:$LINENO: result: no" >&5 | |
8741 | echo "${ECHO_T}no" >&6 | |
8742 | fi | |
8743 | ||
8744 | ||
8745 | enablestring= | |
8746 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 | |
8747 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
8748 | no_cache=0 | |
8749 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
8750 | if test "${enable_textctrl+set}" = set; then | |
8751 | enableval="$enable_textctrl" | |
8752 | ||
8753 | if test "$enableval" = yes; then | |
8754 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
8755 | else | |
8756 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
8757 | fi | |
8758 | ||
8759 | else | |
8760 | ||
8761 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
8762 | if test "x$LINE" != x ; then | |
8763 | eval "DEFAULT_$LINE" | |
8764 | else | |
8765 | no_cache=1 | |
8766 | fi | |
8767 | ||
8768 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
8769 | ||
8770 | fi; | |
8771 | ||
8772 | eval "$ac_cv_use_textctrl" | |
8773 | if test "$no_cache" != 1; then | |
8774 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
8775 | fi | |
8776 | ||
8777 | if test "$wxUSE_TEXTCTRL" = yes; then | |
8778 | echo "$as_me:$LINENO: result: yes" >&5 | |
8779 | echo "${ECHO_T}yes" >&6 | |
8780 | else | |
8781 | echo "$as_me:$LINENO: result: no" >&5 | |
8782 | echo "${ECHO_T}no" >&6 | |
8783 | fi | |
8784 | ||
8785 | ||
8786 | enablestring= | |
8787 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 | |
8788 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
8789 | no_cache=0 | |
8790 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
8791 | if test "${enable_togglebtn+set}" = set; then | |
8792 | enableval="$enable_togglebtn" | |
8793 | ||
8794 | if test "$enableval" = yes; then | |
8795 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
8796 | else | |
8797 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
8798 | fi | |
8799 | ||
8800 | else | |
8801 | ||
8802 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
8803 | if test "x$LINE" != x ; then | |
8804 | eval "DEFAULT_$LINE" | |
8805 | else | |
8806 | no_cache=1 | |
8807 | fi | |
8808 | ||
8809 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
8810 | ||
8811 | fi; | |
8812 | ||
8813 | eval "$ac_cv_use_togglebtn" | |
8814 | if test "$no_cache" != 1; then | |
8815 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
8816 | fi | |
8817 | ||
8818 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
8819 | echo "$as_me:$LINENO: result: yes" >&5 | |
8820 | echo "${ECHO_T}yes" >&6 | |
8821 | else | |
8822 | echo "$as_me:$LINENO: result: no" >&5 | |
8823 | echo "${ECHO_T}no" >&6 | |
8824 | fi | |
8825 | ||
8826 | ||
8827 | enablestring= | |
8828 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 | |
8829 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
8830 | no_cache=0 | |
8831 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
8832 | if test "${enable_toolbar+set}" = set; then | |
8833 | enableval="$enable_toolbar" | |
8834 | ||
8835 | if test "$enableval" = yes; then | |
8836 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
8837 | else | |
8838 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
8839 | fi | |
8840 | ||
8841 | else | |
8842 | ||
8843 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
8844 | if test "x$LINE" != x ; then | |
8845 | eval "DEFAULT_$LINE" | |
8846 | else | |
8847 | no_cache=1 | |
8848 | fi | |
8849 | ||
8850 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
8851 | ||
8852 | fi; | |
8853 | ||
8854 | eval "$ac_cv_use_toolbar" | |
8855 | if test "$no_cache" != 1; then | |
8856 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
8857 | fi | |
8858 | ||
8859 | if test "$wxUSE_TOOLBAR" = yes; then | |
8860 | echo "$as_me:$LINENO: result: yes" >&5 | |
8861 | echo "${ECHO_T}yes" >&6 | |
8862 | else | |
8863 | echo "$as_me:$LINENO: result: no" >&5 | |
8864 | echo "${ECHO_T}no" >&6 | |
8865 | fi | |
8866 | ||
8867 | ||
8868 | enablestring= | |
8869 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 | |
8870 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
8871 | no_cache=0 | |
8872 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
8873 | if test "${enable_tbarnative+set}" = set; then | |
8874 | enableval="$enable_tbarnative" | |
8875 | ||
8876 | if test "$enableval" = yes; then | |
8877 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
8878 | else | |
8879 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
8880 | fi | |
8881 | ||
8882 | else | |
8883 | ||
8884 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
8885 | if test "x$LINE" != x ; then | |
8886 | eval "DEFAULT_$LINE" | |
8887 | else | |
8888 | no_cache=1 | |
8889 | fi | |
8890 | ||
8891 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
8892 | ||
8893 | fi; | |
8894 | ||
8895 | eval "$ac_cv_use_tbarnative" | |
8896 | if test "$no_cache" != 1; then | |
8897 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
8898 | fi | |
8899 | ||
8900 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
8901 | echo "$as_me:$LINENO: result: yes" >&5 | |
8902 | echo "${ECHO_T}yes" >&6 | |
8903 | else | |
8904 | echo "$as_me:$LINENO: result: no" >&5 | |
8905 | echo "${ECHO_T}no" >&6 | |
8906 | fi | |
8907 | ||
8908 | ||
8909 | enablestring= | |
8910 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 | |
8911 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
8912 | no_cache=0 | |
8913 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
8914 | if test "${enable_tbarsmpl+set}" = set; then | |
8915 | enableval="$enable_tbarsmpl" | |
8916 | ||
8917 | if test "$enableval" = yes; then | |
8918 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
8919 | else | |
8920 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
8921 | fi | |
8922 | ||
8923 | else | |
8924 | ||
8925 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
8926 | if test "x$LINE" != x ; then | |
8927 | eval "DEFAULT_$LINE" | |
8928 | else | |
8929 | no_cache=1 | |
8930 | fi | |
8931 | ||
8932 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
8933 | ||
8934 | fi; | |
8935 | ||
8936 | eval "$ac_cv_use_tbarsmpl" | |
8937 | if test "$no_cache" != 1; then | |
8938 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
8939 | fi | |
8940 | ||
8941 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
8942 | echo "$as_me:$LINENO: result: yes" >&5 | |
8943 | echo "${ECHO_T}yes" >&6 | |
8944 | else | |
8945 | echo "$as_me:$LINENO: result: no" >&5 | |
8946 | echo "${ECHO_T}no" >&6 | |
8947 | fi | |
8948 | ||
8949 | ||
0093c2fc VZ |
8950 | enablestring= |
8951 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5 | |
8952 | echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6 | |
8953 | no_cache=0 | |
8954 | # Check whether --enable-treebook or --disable-treebook was given. | |
8955 | if test "${enable_treebook+set}" = set; then | |
8956 | enableval="$enable_treebook" | |
8957 | ||
8958 | if test "$enableval" = yes; then | |
8959 | ac_cv_use_treebook='wxUSE_TREEBOOK=yes' | |
8960 | else | |
8961 | ac_cv_use_treebook='wxUSE_TREEBOOK=no' | |
8962 | fi | |
8963 | ||
8964 | else | |
8965 | ||
8966 | LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}` | |
8967 | if test "x$LINE" != x ; then | |
8968 | eval "DEFAULT_$LINE" | |
8969 | else | |
8970 | no_cache=1 | |
8971 | fi | |
8972 | ||
8973 | ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK | |
8974 | ||
8975 | fi; | |
8976 | ||
8977 | eval "$ac_cv_use_treebook" | |
8978 | if test "$no_cache" != 1; then | |
8979 | echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp | |
8980 | fi | |
8981 | ||
8982 | if test "$wxUSE_TREEBOOK" = yes; then | |
8983 | echo "$as_me:$LINENO: result: yes" >&5 | |
8984 | echo "${ECHO_T}yes" >&6 | |
8985 | else | |
8986 | echo "$as_me:$LINENO: result: no" >&5 | |
8987 | echo "${ECHO_T}no" >&6 | |
8988 | fi | |
8989 | ||
8990 | ||
a848cd7e SC |
8991 | enablestring= |
8992 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 | |
8993 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
8994 | no_cache=0 | |
8995 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
8996 | if test "${enable_treectrl+set}" = set; then | |
8997 | enableval="$enable_treectrl" | |
8998 | ||
8999 | if test "$enableval" = yes; then | |
9000 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
9001 | else | |
9002 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
9003 | fi | |
9004 | ||
9005 | else | |
9006 | ||
9007 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
9008 | if test "x$LINE" != x ; then | |
9009 | eval "DEFAULT_$LINE" | |
9010 | else | |
9011 | no_cache=1 | |
9012 | fi | |
9013 | ||
9014 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
9015 | ||
9016 | fi; | |
9017 | ||
9018 | eval "$ac_cv_use_treectrl" | |
9019 | if test "$no_cache" != 1; then | |
9020 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
9021 | fi | |
9022 | ||
9023 | if test "$wxUSE_TREECTRL" = yes; then | |
9024 | echo "$as_me:$LINENO: result: yes" >&5 | |
9025 | echo "${ECHO_T}yes" >&6 | |
9026 | else | |
9027 | echo "$as_me:$LINENO: result: no" >&5 | |
9028 | echo "${ECHO_T}no" >&6 | |
9029 | fi | |
9030 | ||
9031 | ||
9032 | enablestring= | |
9033 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 | |
9034 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
9035 | no_cache=0 | |
9036 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
9037 | if test "${enable_tipwindow+set}" = set; then | |
9038 | enableval="$enable_tipwindow" | |
9039 | ||
9040 | if test "$enableval" = yes; then | |
9041 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
9042 | else | |
9043 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
9044 | fi | |
9045 | ||
9046 | else | |
9047 | ||
9048 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
9049 | if test "x$LINE" != x ; then | |
9050 | eval "DEFAULT_$LINE" | |
9051 | else | |
9052 | no_cache=1 | |
9053 | fi | |
9054 | ||
9055 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
9056 | ||
9057 | fi; | |
9058 | ||
9059 | eval "$ac_cv_use_tipwindow" | |
9060 | if test "$no_cache" != 1; then | |
9061 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
9062 | fi | |
9063 | ||
9064 | if test "$wxUSE_TIPWINDOW" = yes; then | |
9065 | echo "$as_me:$LINENO: result: yes" >&5 | |
9066 | echo "${ECHO_T}yes" >&6 | |
9067 | else | |
9068 | echo "$as_me:$LINENO: result: no" >&5 | |
9069 | echo "${ECHO_T}no" >&6 | |
9070 | fi | |
9071 | ||
9072 | ||
9073 | enablestring= | |
9074 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 | |
9075 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
9076 | no_cache=0 | |
9077 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
9078 | if test "${enable_popupwin+set}" = set; then | |
9079 | enableval="$enable_popupwin" | |
9080 | ||
9081 | if test "$enableval" = yes; then | |
9082 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
9083 | else | |
9084 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
9085 | fi | |
9086 | ||
9087 | else | |
9088 | ||
9089 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
9090 | if test "x$LINE" != x ; then | |
9091 | eval "DEFAULT_$LINE" | |
9092 | else | |
9093 | no_cache=1 | |
9094 | fi | |
9095 | ||
9096 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
9097 | ||
9098 | fi; | |
9099 | ||
9100 | eval "$ac_cv_use_popupwin" | |
9101 | if test "$no_cache" != 1; then | |
9102 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
9103 | fi | |
9104 | ||
9105 | if test "$wxUSE_POPUPWIN" = yes; then | |
9106 | echo "$as_me:$LINENO: result: yes" >&5 | |
9107 | echo "${ECHO_T}yes" >&6 | |
9108 | else | |
9109 | echo "$as_me:$LINENO: result: no" >&5 | |
9110 | echo "${ECHO_T}no" >&6 | |
9111 | fi | |
9112 | ||
9113 | ||
9114 | ||
9115 | ||
9116 | enablestring= | |
9117 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 | |
9118 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
9119 | no_cache=0 | |
9120 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
9121 | if test "${enable_commondlg+set}" = set; then | |
9122 | enableval="$enable_commondlg" | |
9123 | ||
9124 | if test "$enableval" = yes; then | |
9125 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
9126 | else | |
9127 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
9128 | fi | |
9129 | ||
9130 | else | |
9131 | ||
9132 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
9133 | if test "x$LINE" != x ; then | |
9134 | eval "DEFAULT_$LINE" | |
9135 | else | |
9136 | no_cache=1 | |
9137 | fi | |
9138 | ||
9139 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
9140 | ||
9141 | fi; | |
9142 | ||
9143 | eval "$ac_cv_use_commondlg" | |
9144 | if test "$no_cache" != 1; then | |
9145 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
9146 | fi | |
9147 | ||
9148 | if test "$wxUSE_COMMONDLGS" = yes; then | |
9149 | echo "$as_me:$LINENO: result: yes" >&5 | |
9150 | echo "${ECHO_T}yes" >&6 | |
9151 | else | |
9152 | echo "$as_me:$LINENO: result: no" >&5 | |
9153 | echo "${ECHO_T}no" >&6 | |
9154 | fi | |
9155 | ||
9156 | ||
9157 | enablestring= | |
9158 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 | |
9159 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
9160 | no_cache=0 | |
9161 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
9162 | if test "${enable_choicedlg+set}" = set; then | |
9163 | enableval="$enable_choicedlg" | |
9164 | ||
9165 | if test "$enableval" = yes; then | |
9166 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
9167 | else | |
9168 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
9169 | fi | |
9170 | ||
9171 | else | |
9172 | ||
9173 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
9174 | if test "x$LINE" != x ; then | |
9175 | eval "DEFAULT_$LINE" | |
9176 | else | |
9177 | no_cache=1 | |
9178 | fi | |
9179 | ||
9180 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
9181 | ||
9182 | fi; | |
9183 | ||
9184 | eval "$ac_cv_use_choicedlg" | |
9185 | if test "$no_cache" != 1; then | |
9186 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
9187 | fi | |
9188 | ||
9189 | if test "$wxUSE_CHOICEDLG" = yes; then | |
9190 | echo "$as_me:$LINENO: result: yes" >&5 | |
9191 | echo "${ECHO_T}yes" >&6 | |
9192 | else | |
9193 | echo "$as_me:$LINENO: result: no" >&5 | |
9194 | echo "${ECHO_T}no" >&6 | |
9195 | fi | |
9196 | ||
9197 | ||
9198 | enablestring= | |
9199 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 | |
9200 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
9201 | no_cache=0 | |
9202 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
9203 | if test "${enable_coldlg+set}" = set; then | |
9204 | enableval="$enable_coldlg" | |
9205 | ||
9206 | if test "$enableval" = yes; then | |
9207 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
9208 | else | |
9209 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
9210 | fi | |
9211 | ||
9212 | else | |
9213 | ||
9214 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
9215 | if test "x$LINE" != x ; then | |
9216 | eval "DEFAULT_$LINE" | |
9217 | else | |
9218 | no_cache=1 | |
9219 | fi | |
9220 | ||
9221 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
9222 | ||
9223 | fi; | |
9224 | ||
9225 | eval "$ac_cv_use_coldlg" | |
9226 | if test "$no_cache" != 1; then | |
9227 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
9228 | fi | |
9229 | ||
9230 | if test "$wxUSE_COLOURDLG" = yes; then | |
9231 | echo "$as_me:$LINENO: result: yes" >&5 | |
9232 | echo "${ECHO_T}yes" >&6 | |
9233 | else | |
9234 | echo "$as_me:$LINENO: result: no" >&5 | |
9235 | echo "${ECHO_T}no" >&6 | |
9236 | fi | |
9237 | ||
9238 | ||
9239 | enablestring= | |
9240 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 | |
9241 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
9242 | no_cache=0 | |
9243 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
9244 | if test "${enable_filedlg+set}" = set; then | |
9245 | enableval="$enable_filedlg" | |
9246 | ||
9247 | if test "$enableval" = yes; then | |
9248 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
9249 | else | |
9250 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
9251 | fi | |
9252 | ||
9253 | else | |
9254 | ||
9255 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
9256 | if test "x$LINE" != x ; then | |
9257 | eval "DEFAULT_$LINE" | |
9258 | else | |
9259 | no_cache=1 | |
9260 | fi | |
9261 | ||
9262 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
9263 | ||
9264 | fi; | |
9265 | ||
9266 | eval "$ac_cv_use_filedlg" | |
9267 | if test "$no_cache" != 1; then | |
9268 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
9269 | fi | |
9270 | ||
9271 | if test "$wxUSE_FILEDLG" = yes; then | |
9272 | echo "$as_me:$LINENO: result: yes" >&5 | |
9273 | echo "${ECHO_T}yes" >&6 | |
9274 | else | |
9275 | echo "$as_me:$LINENO: result: no" >&5 | |
9276 | echo "${ECHO_T}no" >&6 | |
9277 | fi | |
9278 | ||
9279 | ||
9280 | enablestring= | |
9281 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 | |
9282 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
9283 | no_cache=0 | |
9284 | # Check whether --enable-finddlg or --disable-finddlg was given. | |
9285 | if test "${enable_finddlg+set}" = set; then | |
9286 | enableval="$enable_finddlg" | |
9287 | ||
9288 | if test "$enableval" = yes; then | |
9289 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' | |
9290 | else | |
9291 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' | |
9292 | fi | |
9293 | ||
9294 | else | |
9295 | ||
9296 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
9297 | if test "x$LINE" != x ; then | |
9298 | eval "DEFAULT_$LINE" | |
9299 | else | |
9300 | no_cache=1 | |
9301 | fi | |
9302 | ||
9303 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
9304 | ||
9305 | fi; | |
9306 | ||
9307 | eval "$ac_cv_use_finddlg" | |
9308 | if test "$no_cache" != 1; then | |
9309 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp | |
9310 | fi | |
9311 | ||
9312 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
9313 | echo "$as_me:$LINENO: result: yes" >&5 | |
9314 | echo "${ECHO_T}yes" >&6 | |
9315 | else | |
9316 | echo "$as_me:$LINENO: result: no" >&5 | |
9317 | echo "${ECHO_T}no" >&6 | |
9318 | fi | |
9319 | ||
9320 | ||
9321 | enablestring= | |
9322 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 | |
9323 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
9324 | no_cache=0 | |
9325 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
9326 | if test "${enable_fontdlg+set}" = set; then | |
9327 | enableval="$enable_fontdlg" | |
9328 | ||
9329 | if test "$enableval" = yes; then | |
9330 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
9331 | else | |
9332 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
9333 | fi | |
9334 | ||
9335 | else | |
9336 | ||
9337 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
9338 | if test "x$LINE" != x ; then | |
9339 | eval "DEFAULT_$LINE" | |
9340 | else | |
9341 | no_cache=1 | |
9342 | fi | |
9343 | ||
9344 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
9345 | ||
9346 | fi; | |
9347 | ||
9348 | eval "$ac_cv_use_fontdlg" | |
9349 | if test "$no_cache" != 1; then | |
9350 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
9351 | fi | |
9352 | ||
9353 | if test "$wxUSE_FONTDLG" = yes; then | |
9354 | echo "$as_me:$LINENO: result: yes" >&5 | |
9355 | echo "${ECHO_T}yes" >&6 | |
9356 | else | |
9357 | echo "$as_me:$LINENO: result: no" >&5 | |
9358 | echo "${ECHO_T}no" >&6 | |
9359 | fi | |
9360 | ||
9361 | ||
9362 | enablestring= | |
9363 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 | |
9364 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
9365 | no_cache=0 | |
9366 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
9367 | if test "${enable_dirdlg+set}" = set; then | |
9368 | enableval="$enable_dirdlg" | |
9369 | ||
9370 | if test "$enableval" = yes; then | |
9371 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
9372 | else | |
9373 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
9374 | fi | |
9375 | ||
9376 | else | |
9377 | ||
9378 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
9379 | if test "x$LINE" != x ; then | |
9380 | eval "DEFAULT_$LINE" | |
9381 | else | |
9382 | no_cache=1 | |
9383 | fi | |
9384 | ||
9385 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
9386 | ||
9387 | fi; | |
9388 | ||
9389 | eval "$ac_cv_use_dirdlg" | |
9390 | if test "$no_cache" != 1; then | |
9391 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
9392 | fi | |
9393 | ||
9394 | if test "$wxUSE_DIRDLG" = yes; then | |
9395 | echo "$as_me:$LINENO: result: yes" >&5 | |
9396 | echo "${ECHO_T}yes" >&6 | |
9397 | else | |
9398 | echo "$as_me:$LINENO: result: no" >&5 | |
9399 | echo "${ECHO_T}no" >&6 | |
9400 | fi | |
9401 | ||
9402 | ||
9403 | enablestring= | |
9404 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 | |
9405 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
9406 | no_cache=0 | |
9407 | # Check whether --enable-msgdlg or --disable-msgdlg was given. | |
9408 | if test "${enable_msgdlg+set}" = set; then | |
9409 | enableval="$enable_msgdlg" | |
9410 | ||
9411 | if test "$enableval" = yes; then | |
9412 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
9413 | else | |
9414 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
9415 | fi | |
9416 | ||
9417 | else | |
9418 | ||
9419 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` | |
9420 | if test "x$LINE" != x ; then | |
9421 | eval "DEFAULT_$LINE" | |
9422 | else | |
9423 | no_cache=1 | |
9424 | fi | |
9425 | ||
9426 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG | |
9427 | ||
9428 | fi; | |
9429 | ||
9430 | eval "$ac_cv_use_msgdlg" | |
9431 | if test "$no_cache" != 1; then | |
9432 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp | |
9433 | fi | |
9434 | ||
9435 | if test "$wxUSE_MSGDLG" = yes; then | |
9436 | echo "$as_me:$LINENO: result: yes" >&5 | |
9437 | echo "${ECHO_T}yes" >&6 | |
9438 | else | |
9439 | echo "$as_me:$LINENO: result: no" >&5 | |
9440 | echo "${ECHO_T}no" >&6 | |
9441 | fi | |
9442 | ||
9443 | ||
9444 | enablestring= | |
9445 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 | |
9446 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
9447 | no_cache=0 | |
9448 | # Check whether --enable-numberdlg or --disable-numberdlg was given. | |
9449 | if test "${enable_numberdlg+set}" = set; then | |
9450 | enableval="$enable_numberdlg" | |
9451 | ||
9452 | if test "$enableval" = yes; then | |
9453 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
9454 | else | |
9455 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
9456 | fi | |
9457 | ||
9458 | else | |
9459 | ||
9460 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` | |
9461 | if test "x$LINE" != x ; then | |
9462 | eval "DEFAULT_$LINE" | |
9463 | else | |
9464 | no_cache=1 | |
9465 | fi | |
9466 | ||
9467 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG | |
9468 | ||
9469 | fi; | |
9470 | ||
9471 | eval "$ac_cv_use_numberdlg" | |
9472 | if test "$no_cache" != 1; then | |
9473 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp | |
9474 | fi | |
9475 | ||
9476 | if test "$wxUSE_NUMBERDLG" = yes; then | |
9477 | echo "$as_me:$LINENO: result: yes" >&5 | |
9478 | echo "${ECHO_T}yes" >&6 | |
9479 | else | |
9480 | echo "$as_me:$LINENO: result: no" >&5 | |
9481 | echo "${ECHO_T}no" >&6 | |
9482 | fi | |
9483 | ||
9484 | ||
9485 | enablestring= | |
9486 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 | |
9487 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
9488 | no_cache=0 | |
9489 | # Check whether --enable-splash or --disable-splash was given. | |
9490 | if test "${enable_splash+set}" = set; then | |
9491 | enableval="$enable_splash" | |
9492 | ||
9493 | if test "$enableval" = yes; then | |
9494 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
9495 | else | |
9496 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
9497 | fi | |
9498 | ||
9499 | else | |
9500 | ||
9501 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
9502 | if test "x$LINE" != x ; then | |
9503 | eval "DEFAULT_$LINE" | |
9504 | else | |
9505 | no_cache=1 | |
9506 | fi | |
9507 | ||
9508 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
9509 | ||
9510 | fi; | |
9511 | ||
9512 | eval "$ac_cv_use_splash" | |
9513 | if test "$no_cache" != 1; then | |
9514 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
9515 | fi | |
9516 | ||
9517 | if test "$wxUSE_SPLASH" = yes; then | |
9518 | echo "$as_me:$LINENO: result: yes" >&5 | |
9519 | echo "${ECHO_T}yes" >&6 | |
9520 | else | |
9521 | echo "$as_me:$LINENO: result: no" >&5 | |
9522 | echo "${ECHO_T}no" >&6 | |
9523 | fi | |
9524 | ||
9525 | ||
9526 | enablestring= | |
9527 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 | |
9528 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
9529 | no_cache=0 | |
9530 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
9531 | if test "${enable_textdlg+set}" = set; then | |
9532 | enableval="$enable_textdlg" | |
9533 | ||
9534 | if test "$enableval" = yes; then | |
9535 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
9536 | else | |
9537 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
9538 | fi | |
9539 | ||
9540 | else | |
9541 | ||
9542 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
9543 | if test "x$LINE" != x ; then | |
9544 | eval "DEFAULT_$LINE" | |
9545 | else | |
9546 | no_cache=1 | |
9547 | fi | |
9548 | ||
9549 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
9550 | ||
9551 | fi; | |
9552 | ||
9553 | eval "$ac_cv_use_textdlg" | |
9554 | if test "$no_cache" != 1; then | |
9555 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
9556 | fi | |
9557 | ||
9558 | if test "$wxUSE_TEXTDLG" = yes; then | |
9559 | echo "$as_me:$LINENO: result: yes" >&5 | |
9560 | echo "${ECHO_T}yes" >&6 | |
9561 | else | |
9562 | echo "$as_me:$LINENO: result: no" >&5 | |
9563 | echo "${ECHO_T}no" >&6 | |
9564 | fi | |
9565 | ||
9566 | ||
9567 | enablestring= | |
9568 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 | |
9569 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
9570 | no_cache=0 | |
9571 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
9572 | if test "${enable_tipdlg+set}" = set; then | |
9573 | enableval="$enable_tipdlg" | |
9574 | ||
9575 | if test "$enableval" = yes; then | |
9576 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
9577 | else | |
9578 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
9579 | fi | |
9580 | ||
9581 | else | |
9582 | ||
9583 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
9584 | if test "x$LINE" != x ; then | |
9585 | eval "DEFAULT_$LINE" | |
9586 | else | |
9587 | no_cache=1 | |
9588 | fi | |
9589 | ||
9590 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
9591 | ||
9592 | fi; | |
9593 | ||
9594 | eval "$ac_cv_use_tipdlg" | |
9595 | if test "$no_cache" != 1; then | |
9596 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
9597 | fi | |
9598 | ||
9599 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
9600 | echo "$as_me:$LINENO: result: yes" >&5 | |
9601 | echo "${ECHO_T}yes" >&6 | |
9602 | else | |
9603 | echo "$as_me:$LINENO: result: no" >&5 | |
9604 | echo "${ECHO_T}no" >&6 | |
9605 | fi | |
9606 | ||
9607 | ||
9608 | enablestring= | |
9609 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 | |
9610 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
9611 | no_cache=0 | |
9612 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
9613 | if test "${enable_progressdlg+set}" = set; then | |
9614 | enableval="$enable_progressdlg" | |
9615 | ||
9616 | if test "$enableval" = yes; then | |
9617 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
9618 | else | |
9619 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
9620 | fi | |
9621 | ||
9622 | else | |
9623 | ||
9624 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
9625 | if test "x$LINE" != x ; then | |
9626 | eval "DEFAULT_$LINE" | |
9627 | else | |
9628 | no_cache=1 | |
9629 | fi | |
9630 | ||
9631 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
9632 | ||
9633 | fi; | |
9634 | ||
9635 | eval "$ac_cv_use_progressdlg" | |
9636 | if test "$no_cache" != 1; then | |
9637 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
9638 | fi | |
9639 | ||
9640 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
9641 | echo "$as_me:$LINENO: result: yes" >&5 | |
9642 | echo "${ECHO_T}yes" >&6 | |
9643 | else | |
9644 | echo "$as_me:$LINENO: result: no" >&5 | |
9645 | echo "${ECHO_T}no" >&6 | |
9646 | fi | |
9647 | ||
9648 | ||
9649 | enablestring= | |
9650 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 | |
9651 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
9652 | no_cache=0 | |
9653 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
9654 | if test "${enable_wizarddlg+set}" = set; then | |
9655 | enableval="$enable_wizarddlg" | |
9656 | ||
9657 | if test "$enableval" = yes; then | |
9658 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
9659 | else | |
9660 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
9661 | fi | |
9662 | ||
9663 | else | |
9664 | ||
9665 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
9666 | if test "x$LINE" != x ; then | |
9667 | eval "DEFAULT_$LINE" | |
9668 | else | |
9669 | no_cache=1 | |
9670 | fi | |
9671 | ||
9672 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
9673 | ||
9674 | fi; | |
9675 | ||
9676 | eval "$ac_cv_use_wizarddlg" | |
9677 | if test "$no_cache" != 1; then | |
9678 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
9679 | fi | |
9680 | ||
9681 | if test "$wxUSE_WIZARDDLG" = yes; then | |
9682 | echo "$as_me:$LINENO: result: yes" >&5 | |
9683 | echo "${ECHO_T}yes" >&6 | |
9684 | else | |
9685 | echo "$as_me:$LINENO: result: no" >&5 | |
9686 | echo "${ECHO_T}no" >&6 | |
9687 | fi | |
9688 | ||
9689 | ||
9690 | ||
9691 | ||
9692 | enablestring= | |
9693 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 | |
9694 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
9695 | no_cache=0 | |
9696 | # Check whether --enable-menus or --disable-menus was given. | |
9697 | if test "${enable_menus+set}" = set; then | |
9698 | enableval="$enable_menus" | |
9699 | ||
9700 | if test "$enableval" = yes; then | |
9701 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
9702 | else | |
9703 | ac_cv_use_menus='wxUSE_MENUS=no' | |
9704 | fi | |
9705 | ||
9706 | else | |
9707 | ||
9708 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
9709 | if test "x$LINE" != x ; then | |
9710 | eval "DEFAULT_$LINE" | |
9711 | else | |
9712 | no_cache=1 | |
9713 | fi | |
9714 | ||
9715 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
9716 | ||
9717 | fi; | |
9718 | ||
9719 | eval "$ac_cv_use_menus" | |
9720 | if test "$no_cache" != 1; then | |
9721 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
9722 | fi | |
9723 | ||
9724 | if test "$wxUSE_MENUS" = yes; then | |
9725 | echo "$as_me:$LINENO: result: yes" >&5 | |
9726 | echo "${ECHO_T}yes" >&6 | |
9727 | else | |
9728 | echo "$as_me:$LINENO: result: no" >&5 | |
9729 | echo "${ECHO_T}no" >&6 | |
9730 | fi | |
9731 | ||
9732 | ||
9733 | enablestring= | |
9734 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 | |
9735 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
9736 | no_cache=0 | |
9737 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
9738 | if test "${enable_miniframe+set}" = set; then | |
9739 | enableval="$enable_miniframe" | |
9740 | ||
9741 | if test "$enableval" = yes; then | |
9742 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
9743 | else | |
9744 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
9745 | fi | |
9746 | ||
9747 | else | |
9748 | ||
9749 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
9750 | if test "x$LINE" != x ; then | |
9751 | eval "DEFAULT_$LINE" | |
9752 | else | |
9753 | no_cache=1 | |
9754 | fi | |
9755 | ||
9756 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
9757 | ||
9758 | fi; | |
9759 | ||
9760 | eval "$ac_cv_use_miniframe" | |
9761 | if test "$no_cache" != 1; then | |
9762 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
9763 | fi | |
9764 | ||
9765 | if test "$wxUSE_MINIFRAME" = yes; then | |
9766 | echo "$as_me:$LINENO: result: yes" >&5 | |
9767 | echo "${ECHO_T}yes" >&6 | |
9768 | else | |
9769 | echo "$as_me:$LINENO: result: no" >&5 | |
9770 | echo "${ECHO_T}no" >&6 | |
9771 | fi | |
9772 | ||
9773 | ||
9774 | enablestring= | |
9775 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 | |
9776 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
9777 | no_cache=0 | |
9778 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
9779 | if test "${enable_tooltips+set}" = set; then | |
9780 | enableval="$enable_tooltips" | |
9781 | ||
9782 | if test "$enableval" = yes; then | |
9783 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
9784 | else | |
9785 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
9786 | fi | |
9787 | ||
9788 | else | |
9789 | ||
9790 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
9791 | if test "x$LINE" != x ; then | |
9792 | eval "DEFAULT_$LINE" | |
9793 | else | |
9794 | no_cache=1 | |
9795 | fi | |
9796 | ||
9797 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
9798 | ||
9799 | fi; | |
9800 | ||
9801 | eval "$ac_cv_use_tooltips" | |
9802 | if test "$no_cache" != 1; then | |
9803 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
9804 | fi | |
9805 | ||
9806 | if test "$wxUSE_TOOLTIPS" = yes; then | |
9807 | echo "$as_me:$LINENO: result: yes" >&5 | |
9808 | echo "${ECHO_T}yes" >&6 | |
9809 | else | |
9810 | echo "$as_me:$LINENO: result: no" >&5 | |
9811 | echo "${ECHO_T}no" >&6 | |
9812 | fi | |
9813 | ||
9814 | ||
9815 | enablestring= | |
9816 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 | |
9817 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
9818 | no_cache=0 | |
9819 | # Check whether --enable-splines or --disable-splines was given. | |
9820 | if test "${enable_splines+set}" = set; then | |
9821 | enableval="$enable_splines" | |
9822 | ||
9823 | if test "$enableval" = yes; then | |
9824 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
9825 | else | |
9826 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
9827 | fi | |
9828 | ||
9829 | else | |
9830 | ||
9831 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
9832 | if test "x$LINE" != x ; then | |
9833 | eval "DEFAULT_$LINE" | |
9834 | else | |
9835 | no_cache=1 | |
9836 | fi | |
9837 | ||
9838 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
9839 | ||
9840 | fi; | |
9841 | ||
9842 | eval "$ac_cv_use_splines" | |
9843 | if test "$no_cache" != 1; then | |
9844 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
9845 | fi | |
9846 | ||
9847 | if test "$wxUSE_SPLINES" = yes; then | |
9848 | echo "$as_me:$LINENO: result: yes" >&5 | |
9849 | echo "${ECHO_T}yes" >&6 | |
9850 | else | |
9851 | echo "$as_me:$LINENO: result: no" >&5 | |
9852 | echo "${ECHO_T}no" >&6 | |
9853 | fi | |
9854 | ||
9855 | ||
fbe2ca43 SN |
9856 | enablestring= |
9857 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5 | |
9858 | echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6 | |
9859 | no_cache=0 | |
9860 | # Check whether --enable-mousewheel or --disable-mousewheel was given. | |
9861 | if test "${enable_mousewheel+set}" = set; then | |
9862 | enableval="$enable_mousewheel" | |
9863 | ||
9864 | if test "$enableval" = yes; then | |
9865 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes' | |
9866 | else | |
9867 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no' | |
9868 | fi | |
9869 | ||
9870 | else | |
9871 | ||
9872 | LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}` | |
9873 | if test "x$LINE" != x ; then | |
9874 | eval "DEFAULT_$LINE" | |
9875 | else | |
9876 | no_cache=1 | |
9877 | fi | |
9878 | ||
9879 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL | |
9880 | ||
9881 | fi; | |
9882 | ||
9883 | eval "$ac_cv_use_mousewheel" | |
9884 | if test "$no_cache" != 1; then | |
9885 | echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp | |
9886 | fi | |
9887 | ||
9888 | if test "$wxUSE_MOUSEWHEEL" = yes; then | |
9889 | echo "$as_me:$LINENO: result: yes" >&5 | |
9890 | echo "${ECHO_T}yes" >&6 | |
9891 | else | |
9892 | echo "$as_me:$LINENO: result: no" >&5 | |
9893 | echo "${ECHO_T}no" >&6 | |
9894 | fi | |
9895 | ||
9896 | ||
a848cd7e SC |
9897 | enablestring= |
9898 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 | |
9899 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
9900 | no_cache=0 | |
9901 | # Check whether --enable-validators or --disable-validators was given. | |
9902 | if test "${enable_validators+set}" = set; then | |
9903 | enableval="$enable_validators" | |
9904 | ||
9905 | if test "$enableval" = yes; then | |
9906 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
9907 | else | |
9908 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
9909 | fi | |
9910 | ||
9911 | else | |
9912 | ||
9913 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
9914 | if test "x$LINE" != x ; then | |
9915 | eval "DEFAULT_$LINE" | |
9916 | else | |
9917 | no_cache=1 | |
9918 | fi | |
9919 | ||
9920 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
9921 | ||
9922 | fi; | |
9923 | ||
9924 | eval "$ac_cv_use_validators" | |
9925 | if test "$no_cache" != 1; then | |
9926 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
9927 | fi | |
9928 | ||
9929 | if test "$wxUSE_VALIDATORS" = yes; then | |
9930 | echo "$as_me:$LINENO: result: yes" >&5 | |
9931 | echo "${ECHO_T}yes" >&6 | |
9932 | else | |
9933 | echo "$as_me:$LINENO: result: no" >&5 | |
9934 | echo "${ECHO_T}no" >&6 | |
9935 | fi | |
9936 | ||
9937 | ||
9938 | enablestring= | |
9939 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 | |
9940 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
9941 | no_cache=0 | |
9942 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
9943 | if test "${enable_busyinfo+set}" = set; then | |
9944 | enableval="$enable_busyinfo" | |
9945 | ||
9946 | if test "$enableval" = yes; then | |
9947 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
9948 | else | |
9949 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
9950 | fi | |
9951 | ||
9952 | else | |
9953 | ||
9954 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
9955 | if test "x$LINE" != x ; then | |
9956 | eval "DEFAULT_$LINE" | |
9957 | else | |
9958 | no_cache=1 | |
9959 | fi | |
9960 | ||
9961 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
9962 | ||
9963 | fi; | |
9964 | ||
9965 | eval "$ac_cv_use_busyinfo" | |
9966 | if test "$no_cache" != 1; then | |
9967 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
9968 | fi | |
9969 | ||
9970 | if test "$wxUSE_BUSYINFO" = yes; then | |
9971 | echo "$as_me:$LINENO: result: yes" >&5 | |
9972 | echo "${ECHO_T}yes" >&6 | |
9973 | else | |
9974 | echo "$as_me:$LINENO: result: no" >&5 | |
9975 | echo "${ECHO_T}no" >&6 | |
9976 | fi | |
9977 | ||
9978 | ||
9979 | enablestring= | |
9980 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 | |
9981 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
9982 | no_cache=0 | |
9983 | # Check whether --enable-joystick or --disable-joystick was given. | |
9984 | if test "${enable_joystick+set}" = set; then | |
9985 | enableval="$enable_joystick" | |
9986 | ||
9987 | if test "$enableval" = yes; then | |
9988 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
9989 | else | |
9990 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
9991 | fi | |
9992 | ||
9993 | else | |
9994 | ||
9995 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
9996 | if test "x$LINE" != x ; then | |
9997 | eval "DEFAULT_$LINE" | |
9998 | else | |
9999 | no_cache=1 | |
10000 | fi | |
10001 | ||
10002 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
10003 | ||
10004 | fi; | |
10005 | ||
10006 | eval "$ac_cv_use_joystick" | |
10007 | if test "$no_cache" != 1; then | |
10008 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
10009 | fi | |
10010 | ||
10011 | if test "$wxUSE_JOYSTICK" = yes; then | |
10012 | echo "$as_me:$LINENO: result: yes" >&5 | |
10013 | echo "${ECHO_T}yes" >&6 | |
10014 | else | |
10015 | echo "$as_me:$LINENO: result: no" >&5 | |
10016 | echo "${ECHO_T}no" >&6 | |
10017 | fi | |
10018 | ||
10019 | ||
10020 | enablestring= | |
10021 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
10022 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
10023 | no_cache=0 | |
10024 | # Check whether --enable-metafile or --disable-metafile was given. | |
10025 | if test "${enable_metafile+set}" = set; then | |
10026 | enableval="$enable_metafile" | |
10027 | ||
10028 | if test "$enableval" = yes; then | |
10029 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
10030 | else | |
10031 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
10032 | fi | |
10033 | ||
10034 | else | |
10035 | ||
10036 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
10037 | if test "x$LINE" != x ; then | |
10038 | eval "DEFAULT_$LINE" | |
10039 | else | |
10040 | no_cache=1 | |
10041 | fi | |
10042 | ||
10043 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
10044 | ||
10045 | fi; | |
10046 | ||
10047 | eval "$ac_cv_use_metafile" | |
10048 | if test "$no_cache" != 1; then | |
10049 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
10050 | fi | |
10051 | ||
10052 | if test "$wxUSE_METAFILE" = yes; then | |
10053 | echo "$as_me:$LINENO: result: yes" >&5 | |
10054 | echo "${ECHO_T}yes" >&6 | |
10055 | else | |
10056 | echo "$as_me:$LINENO: result: no" >&5 | |
10057 | echo "${ECHO_T}no" >&6 | |
10058 | fi | |
10059 | ||
10060 | ||
10061 | enablestring= | |
10062 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 | |
10063 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
10064 | no_cache=0 | |
10065 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
10066 | if test "${enable_dragimage+set}" = set; then | |
10067 | enableval="$enable_dragimage" | |
10068 | ||
10069 | if test "$enableval" = yes; then | |
10070 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
10071 | else | |
10072 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
10073 | fi | |
10074 | ||
10075 | else | |
10076 | ||
10077 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
10078 | if test "x$LINE" != x ; then | |
10079 | eval "DEFAULT_$LINE" | |
10080 | else | |
10081 | no_cache=1 | |
10082 | fi | |
10083 | ||
10084 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
10085 | ||
10086 | fi; | |
10087 | ||
10088 | eval "$ac_cv_use_dragimage" | |
10089 | if test "$no_cache" != 1; then | |
10090 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
10091 | fi | |
10092 | ||
10093 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
10094 | echo "$as_me:$LINENO: result: yes" >&5 | |
10095 | echo "${ECHO_T}yes" >&6 | |
10096 | else | |
10097 | echo "$as_me:$LINENO: result: no" >&5 | |
10098 | echo "${ECHO_T}no" >&6 | |
10099 | fi | |
10100 | ||
10101 | ||
10102 | enablestring= | |
10103 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 | |
10104 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
10105 | no_cache=0 | |
10106 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
10107 | if test "${enable_accessibility+set}" = set; then | |
10108 | enableval="$enable_accessibility" | |
10109 | ||
10110 | if test "$enableval" = yes; then | |
10111 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
10112 | else | |
10113 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
10114 | fi | |
10115 | ||
10116 | else | |
10117 | ||
10118 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` | |
10119 | if test "x$LINE" != x ; then | |
10120 | eval "DEFAULT_$LINE" | |
10121 | else | |
10122 | no_cache=1 | |
10123 | fi | |
10124 | ||
10125 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
10126 | ||
10127 | fi; | |
10128 | ||
10129 | eval "$ac_cv_use_accessibility" | |
10130 | if test "$no_cache" != 1; then | |
10131 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
10132 | fi | |
10133 | ||
10134 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
10135 | echo "$as_me:$LINENO: result: yes" >&5 | |
10136 | echo "${ECHO_T}yes" >&6 | |
10137 | else | |
10138 | echo "$as_me:$LINENO: result: no" >&5 | |
10139 | echo "${ECHO_T}no" >&6 | |
10140 | fi | |
10141 | ||
10142 | ||
38b4a946 VZ |
10143 | if test "$wxUSE_MSW" = "1"; then |
10144 | ||
10145 | enablestring= | |
10146 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5 | |
10147 | echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6 | |
10148 | no_cache=0 | |
10149 | # Check whether --enable-dccache or --disable-dccache was given. | |
10150 | if test "${enable_dccache+set}" = set; then | |
10151 | enableval="$enable_dccache" | |
10152 | ||
10153 | if test "$enableval" = yes; then | |
10154 | ac_cv_use_dccache='wxUSE_DC_CACHEING=yes' | |
10155 | else | |
10156 | ac_cv_use_dccache='wxUSE_DC_CACHEING=no' | |
10157 | fi | |
10158 | ||
10159 | else | |
10160 | ||
10161 | LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}` | |
10162 | if test "x$LINE" != x ; then | |
10163 | eval "DEFAULT_$LINE" | |
10164 | else | |
10165 | no_cache=1 | |
10166 | fi | |
10167 | ||
10168 | ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING | |
10169 | ||
10170 | fi; | |
10171 | ||
10172 | eval "$ac_cv_use_dccache" | |
10173 | if test "$no_cache" != 1; then | |
10174 | echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp | |
10175 | fi | |
10176 | ||
10177 | if test "$wxUSE_DC_CACHEING" = yes; then | |
10178 | echo "$as_me:$LINENO: result: yes" >&5 | |
10179 | echo "${ECHO_T}yes" >&6 | |
10180 | else | |
10181 | echo "$as_me:$LINENO: result: no" >&5 | |
10182 | echo "${ECHO_T}no" >&6 | |
10183 | fi | |
10184 | ||
10185 | fi | |
10186 | ||
a848cd7e SC |
10187 | |
10188 | ||
10189 | enablestring= | |
10190 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 | |
10191 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
10192 | no_cache=0 | |
10193 | # Check whether --enable-palette or --disable-palette was given. | |
10194 | if test "${enable_palette+set}" = set; then | |
10195 | enableval="$enable_palette" | |
10196 | ||
10197 | if test "$enableval" = yes; then | |
10198 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
10199 | else | |
10200 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
10201 | fi | |
10202 | ||
10203 | else | |
10204 | ||
10205 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
10206 | if test "x$LINE" != x ; then | |
10207 | eval "DEFAULT_$LINE" | |
10208 | else | |
10209 | no_cache=1 | |
10210 | fi | |
10211 | ||
10212 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
10213 | ||
10214 | fi; | |
10215 | ||
10216 | eval "$ac_cv_use_palette" | |
10217 | if test "$no_cache" != 1; then | |
10218 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
10219 | fi | |
10220 | ||
10221 | if test "$wxUSE_PALETTE" = yes; then | |
10222 | echo "$as_me:$LINENO: result: yes" >&5 | |
10223 | echo "${ECHO_T}yes" >&6 | |
10224 | else | |
10225 | echo "$as_me:$LINENO: result: no" >&5 | |
10226 | echo "${ECHO_T}no" >&6 | |
10227 | fi | |
10228 | ||
10229 | ||
10230 | enablestring= | |
10231 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 | |
10232 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
10233 | no_cache=0 | |
10234 | # Check whether --enable-image or --disable-image was given. | |
10235 | if test "${enable_image+set}" = set; then | |
10236 | enableval="$enable_image" | |
10237 | ||
10238 | if test "$enableval" = yes; then | |
10239 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
10240 | else | |
10241 | ac_cv_use_image='wxUSE_IMAGE=no' | |
10242 | fi | |
10243 | ||
10244 | else | |
10245 | ||
10246 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
10247 | if test "x$LINE" != x ; then | |
10248 | eval "DEFAULT_$LINE" | |
10249 | else | |
10250 | no_cache=1 | |
10251 | fi | |
10252 | ||
10253 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
10254 | ||
10255 | fi; | |
10256 | ||
10257 | eval "$ac_cv_use_image" | |
10258 | if test "$no_cache" != 1; then | |
10259 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
10260 | fi | |
10261 | ||
10262 | if test "$wxUSE_IMAGE" = yes; then | |
10263 | echo "$as_me:$LINENO: result: yes" >&5 | |
10264 | echo "${ECHO_T}yes" >&6 | |
10265 | else | |
10266 | echo "$as_me:$LINENO: result: no" >&5 | |
10267 | echo "${ECHO_T}no" >&6 | |
10268 | fi | |
10269 | ||
10270 | ||
10271 | enablestring= | |
10272 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 | |
10273 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
10274 | no_cache=0 | |
10275 | # Check whether --enable-gif or --disable-gif was given. | |
10276 | if test "${enable_gif+set}" = set; then | |
10277 | enableval="$enable_gif" | |
10278 | ||
10279 | if test "$enableval" = yes; then | |
10280 | ac_cv_use_gif='wxUSE_GIF=yes' | |
10281 | else | |
10282 | ac_cv_use_gif='wxUSE_GIF=no' | |
10283 | fi | |
10284 | ||
10285 | else | |
10286 | ||
10287 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
10288 | if test "x$LINE" != x ; then | |
10289 | eval "DEFAULT_$LINE" | |
10290 | else | |
10291 | no_cache=1 | |
10292 | fi | |
10293 | ||
10294 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
10295 | ||
10296 | fi; | |
10297 | ||
10298 | eval "$ac_cv_use_gif" | |
10299 | if test "$no_cache" != 1; then | |
10300 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
10301 | fi | |
10302 | ||
10303 | if test "$wxUSE_GIF" = yes; then | |
10304 | echo "$as_me:$LINENO: result: yes" >&5 | |
10305 | echo "${ECHO_T}yes" >&6 | |
10306 | else | |
10307 | echo "$as_me:$LINENO: result: no" >&5 | |
10308 | echo "${ECHO_T}no" >&6 | |
10309 | fi | |
10310 | ||
10311 | ||
10312 | enablestring= | |
10313 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 | |
10314 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
10315 | no_cache=0 | |
10316 | # Check whether --enable-pcx or --disable-pcx was given. | |
10317 | if test "${enable_pcx+set}" = set; then | |
10318 | enableval="$enable_pcx" | |
10319 | ||
10320 | if test "$enableval" = yes; then | |
10321 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
10322 | else | |
10323 | ac_cv_use_pcx='wxUSE_PCX=no' | |
10324 | fi | |
10325 | ||
10326 | else | |
10327 | ||
10328 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
10329 | if test "x$LINE" != x ; then | |
10330 | eval "DEFAULT_$LINE" | |
10331 | else | |
10332 | no_cache=1 | |
10333 | fi | |
10334 | ||
10335 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
10336 | ||
10337 | fi; | |
10338 | ||
10339 | eval "$ac_cv_use_pcx" | |
10340 | if test "$no_cache" != 1; then | |
10341 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
10342 | fi | |
10343 | ||
10344 | if test "$wxUSE_PCX" = yes; then | |
10345 | echo "$as_me:$LINENO: result: yes" >&5 | |
10346 | echo "${ECHO_T}yes" >&6 | |
10347 | else | |
10348 | echo "$as_me:$LINENO: result: no" >&5 | |
10349 | echo "${ECHO_T}no" >&6 | |
10350 | fi | |
10351 | ||
10352 | ||
10353 | enablestring= | |
10354 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 | |
10355 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
10356 | no_cache=0 | |
10357 | # Check whether --enable-iff or --disable-iff was given. | |
10358 | if test "${enable_iff+set}" = set; then | |
10359 | enableval="$enable_iff" | |
10360 | ||
10361 | if test "$enableval" = yes; then | |
10362 | ac_cv_use_iff='wxUSE_IFF=yes' | |
10363 | else | |
10364 | ac_cv_use_iff='wxUSE_IFF=no' | |
10365 | fi | |
10366 | ||
10367 | else | |
10368 | ||
10369 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
10370 | if test "x$LINE" != x ; then | |
10371 | eval "DEFAULT_$LINE" | |
10372 | else | |
10373 | no_cache=1 | |
10374 | fi | |
10375 | ||
10376 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
10377 | ||
10378 | fi; | |
10379 | ||
10380 | eval "$ac_cv_use_iff" | |
10381 | if test "$no_cache" != 1; then | |
10382 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
10383 | fi | |
10384 | ||
10385 | if test "$wxUSE_IFF" = yes; then | |
10386 | echo "$as_me:$LINENO: result: yes" >&5 | |
10387 | echo "${ECHO_T}yes" >&6 | |
10388 | else | |
10389 | echo "$as_me:$LINENO: result: no" >&5 | |
10390 | echo "${ECHO_T}no" >&6 | |
10391 | fi | |
10392 | ||
10393 | ||
10394 | enablestring= | |
10395 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 | |
10396 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
10397 | no_cache=0 | |
10398 | # Check whether --enable-pnm or --disable-pnm was given. | |
10399 | if test "${enable_pnm+set}" = set; then | |
10400 | enableval="$enable_pnm" | |
10401 | ||
10402 | if test "$enableval" = yes; then | |
10403 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
10404 | else | |
10405 | ac_cv_use_pnm='wxUSE_PNM=no' | |
10406 | fi | |
10407 | ||
10408 | else | |
10409 | ||
10410 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
10411 | if test "x$LINE" != x ; then | |
10412 | eval "DEFAULT_$LINE" | |
10413 | else | |
10414 | no_cache=1 | |
10415 | fi | |
10416 | ||
10417 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
10418 | ||
10419 | fi; | |
10420 | ||
10421 | eval "$ac_cv_use_pnm" | |
10422 | if test "$no_cache" != 1; then | |
10423 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
10424 | fi | |
10425 | ||
10426 | if test "$wxUSE_PNM" = yes; then | |
10427 | echo "$as_me:$LINENO: result: yes" >&5 | |
10428 | echo "${ECHO_T}yes" >&6 | |
10429 | else | |
10430 | echo "$as_me:$LINENO: result: no" >&5 | |
10431 | echo "${ECHO_T}no" >&6 | |
10432 | fi | |
10433 | ||
10434 | ||
10435 | enablestring= | |
10436 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 | |
10437 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
10438 | no_cache=0 | |
10439 | # Check whether --enable-xpm or --disable-xpm was given. | |
10440 | if test "${enable_xpm+set}" = set; then | |
10441 | enableval="$enable_xpm" | |
10442 | ||
10443 | if test "$enableval" = yes; then | |
10444 | ac_cv_use_xpm='wxUSE_XPM=yes' | |
10445 | else | |
10446 | ac_cv_use_xpm='wxUSE_XPM=no' | |
10447 | fi | |
10448 | ||
10449 | else | |
10450 | ||
10451 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` | |
10452 | if test "x$LINE" != x ; then | |
10453 | eval "DEFAULT_$LINE" | |
10454 | else | |
10455 | no_cache=1 | |
10456 | fi | |
10457 | ||
10458 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
10459 | ||
10460 | fi; | |
10461 | ||
10462 | eval "$ac_cv_use_xpm" | |
10463 | if test "$no_cache" != 1; then | |
10464 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp | |
10465 | fi | |
10466 | ||
10467 | if test "$wxUSE_XPM" = yes; then | |
10468 | echo "$as_me:$LINENO: result: yes" >&5 | |
10469 | echo "${ECHO_T}yes" >&6 | |
10470 | else | |
10471 | echo "$as_me:$LINENO: result: no" >&5 | |
10472 | echo "${ECHO_T}no" >&6 | |
10473 | fi | |
10474 | ||
10475 | ||
10476 | enablestring= | |
10477 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 | |
10478 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
10479 | no_cache=0 | |
10480 | # Check whether --enable-ico_cur or --disable-ico_cur was given. | |
10481 | if test "${enable_ico_cur+set}" = set; then | |
10482 | enableval="$enable_ico_cur" | |
10483 | ||
10484 | if test "$enableval" = yes; then | |
10485 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' | |
10486 | else | |
10487 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' | |
10488 | fi | |
10489 | ||
10490 | else | |
10491 | ||
10492 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
10493 | if test "x$LINE" != x ; then | |
10494 | eval "DEFAULT_$LINE" | |
10495 | else | |
10496 | no_cache=1 | |
10497 | fi | |
10498 | ||
10499 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR | |
10500 | ||
10501 | fi; | |
10502 | ||
10503 | eval "$ac_cv_use_ico_cur" | |
10504 | if test "$no_cache" != 1; then | |
10505 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp | |
10506 | fi | |
10507 | ||
10508 | if test "$wxUSE_ICO_CUR" = yes; then | |
10509 | echo "$as_me:$LINENO: result: yes" >&5 | |
10510 | echo "${ECHO_T}yes" >&6 | |
10511 | else | |
10512 | echo "$as_me:$LINENO: result: no" >&5 | |
10513 | echo "${ECHO_T}no" >&6 | |
10514 | fi | |
10515 | ||
10516 | ||
10517 | fi | |
10518 | ||
10519 | ||
10520 | ||
ceec2216 RL |
10521 | # Check whether --with-flavour or --without-flavour was given. |
10522 | if test "${with_flavour+set}" = set; then | |
10523 | withval="$with_flavour" | |
10524 | WX_FLAVOUR="$withval" | |
10525 | fi; | |
10526 | ||
10527 | ||
10528 | ||
a848cd7e SC |
10529 | enablestring= |
10530 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
10531 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
10532 | no_cache=0 | |
10533 | # Check whether --enable-official_build or --disable-official_build was given. | |
10534 | if test "${enable_official_build+set}" = set; then | |
10535 | enableval="$enable_official_build" | |
10536 | ||
10537 | if test "$enableval" = yes; then | |
10538 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
10539 | else | |
10540 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
10541 | fi | |
10542 | ||
10543 | else | |
10544 | ||
10545 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
10546 | if test "x$LINE" != x ; then | |
10547 | eval "DEFAULT_$LINE" | |
10548 | else | |
10549 | no_cache=1 | |
10550 | fi | |
10551 | ||
10552 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
10553 | ||
10554 | fi; | |
10555 | ||
10556 | eval "$ac_cv_use_official_build" | |
10557 | if test "$no_cache" != 1; then | |
10558 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
10559 | fi | |
10560 | ||
10561 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
10562 | echo "$as_me:$LINENO: result: yes" >&5 | |
10563 | echo "${ECHO_T}yes" >&6 | |
10564 | else | |
10565 | echo "$as_me:$LINENO: result: no" >&5 | |
10566 | echo "${ECHO_T}no" >&6 | |
10567 | fi | |
10568 | ||
10569 | # Check whether --enable-vendor or --disable-vendor was given. | |
10570 | if test "${enable_vendor+set}" = set; then | |
10571 | enableval="$enable_vendor" | |
10572 | VENDOR="$enableval" | |
10573 | fi; | |
10574 | if test "x$VENDOR" = "x"; then | |
10575 | VENDOR="custom" | |
10576 | fi | |
10577 | ||
a848cd7e SC |
10578 | |
10579 | ||
10580 | ||
10581 | echo "saving argument cache $wx_arg_cache_file" | |
10582 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
10583 | ||
10584 | ||
10585 | ||
10586 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
10587 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
10588 | ||
10589 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
10590 | if test "$wxUSE_WINE" = "yes"; then | |
10591 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
10592 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
10593 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
10594 | wxUSE_SHARED=no | |
10595 | fi | |
10596 | ||
f597b41c | 10597 | |
a848cd7e SC |
10598 | if test "$wxUSE_GUI" = "yes"; then |
10599 | ||
10600 | if test "$USE_BEOS" = 1; then | |
10601 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 | |
10602 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
10603 | { (exit 1); exit 1; }; } | |
10604 | fi | |
10605 | ||
10606 | if test "$TOOLKIT_GIVEN" = 1; then | |
10607 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10608 | var=wxUSE_$toolkit | |
10609 | eval "value=\$${var}" | |
f34ca037 MW |
10610 | if test "x$value" = "xno"; then |
10611 | eval "$var=0" | |
10612 | elif test "x$value" != "x"; then | |
10613 | eval "$var=1" | |
10614 | fi | |
10615 | ||
10616 | if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then | |
10617 | eval "wx${toolkit}_VERSION=$value" | |
10618 | fi | |
a848cd7e SC |
10619 | done |
10620 | else | |
10621 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10622 | if test "$has_toolkit_in_cache" != 1; then | |
10623 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
10624 | else | |
10625 | var=DEFAULT_wxUSE_$toolkit | |
f34ca037 MW |
10626 | |
10627 | eval "version=\$DEFAULT_wx${toolkit}_VERSION" | |
10628 | if test "x$version" != "x"; then | |
10629 | eval "wx${toolkit}_VERSION=$version" | |
10630 | fi | |
a848cd7e SC |
10631 | fi |
10632 | eval "wxUSE_$toolkit=\$${var}" | |
10633 | done | |
10634 | fi | |
10635 | ||
10636 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ | |
10637 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
10638 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10639 | ||
10640 | case "${host}" in | |
10641 | *-pc-os2_emx | *-pc-os2-emx ) | |
10642 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
10643 | esac | |
10644 | ||
10645 | case "$NUM_TOOLKITS" in | |
10646 | 1) | |
10647 | ;; | |
10648 | 0) | |
10649 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 | |
10650 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
10651 | { (exit 1); exit 1; }; } | |
10652 | ;; | |
10653 | *) | |
10654 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 | |
10655 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
10656 | { (exit 1); exit 1; }; } | |
10657 | esac | |
10658 | ||
f34ca037 MW |
10659 | # to be removed when --disable-gtk2 isn't needed |
10660 | if test "x$wxUSE_GTK2" = "xyes"; then | |
10661 | wxGTK_VERSION=2 | |
10662 | elif test "x$wxUSE_GTK2" = "xno"; then | |
10663 | wxGTK_VERSION=1 | |
10664 | fi | |
10665 | ||
a848cd7e SC |
10666 | for toolkit in `echo $ALL_TOOLKITS`; do |
10667 | var=wxUSE_$toolkit | |
10668 | eval "value=\$${var}" | |
10669 | if test "x$value" != x; then | |
10670 | cache_var=CACHE_$toolkit | |
10671 | eval "cache=\$${cache_var}" | |
10672 | if test "$cache" = 1; then | |
10673 | echo "$var=$value" >> ${wx_arg_cache_file} | |
f34ca037 MW |
10674 | eval "version=\$wx${toolkit}_VERSION" |
10675 | if test "x$version" != "x"; then | |
10676 | echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file} | |
10677 | fi | |
a848cd7e SC |
10678 | fi |
10679 | if test "$value" = 1; then | |
10680 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` | |
10681 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 | |
10682 | echo "${ECHO_T}$toolkit_echo" >&6 | |
10683 | fi | |
10684 | fi | |
10685 | done | |
10686 | else | |
10687 | if test "x$host_alias" != "x"; then | |
10688 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
10689 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 | |
10690 | else | |
10691 | echo "$as_me:$LINENO: result: base only" >&5 | |
10692 | echo "${ECHO_T}base only" >&6 | |
10693 | fi | |
10694 | fi | |
10695 | ||
10696 | wants_win32=0 | |
10697 | doesnt_want_win32=0 | |
10698 | case "${host}" in | |
10699 | *-*-cygwin*) | |
10700 | if test "$wxUSE_MSW" = 1 ; then | |
10701 | wants_win32=1 | |
7275146d | 10702 | BAKEFILE_FORCE_PLATFORM=win32 |
a848cd7e SC |
10703 | else |
10704 | doesnt_want_win32=1 | |
10705 | fi | |
10706 | ;; | |
10707 | *-*-mingw*) | |
10708 | wants_win32=1 | |
10709 | ;; | |
10710 | esac | |
10711 | ||
10712 | if test "$wxUSE_WINE" = "yes"; then | |
10713 | wants_win32=1 | |
10714 | CC=winegcc | |
10715 | CXX=wineg++ | |
a848cd7e SC |
10716 | LDFLAGS_GUI="-mwindows" |
10717 | fi | |
10718 | ||
10719 | if test "$wants_win32" = 1 ; then | |
10720 | USE_UNIX=0 | |
10721 | USE_WIN32=1 | |
10722 | cat >>confdefs.h <<\_ACEOF | |
10723 | #define __WIN32__ 1 | |
10724 | _ACEOF | |
10725 | ||
10726 | cat >>confdefs.h <<\_ACEOF | |
10727 | #define __WIN95__ 1 | |
10728 | _ACEOF | |
10729 | ||
10730 | cat >>confdefs.h <<\_ACEOF | |
10731 | #define __WINDOWS__ 1 | |
10732 | _ACEOF | |
10733 | ||
10734 | cat >>confdefs.h <<\_ACEOF | |
10735 | #define __GNUWIN32__ 1 | |
10736 | _ACEOF | |
10737 | ||
10738 | cat >>confdefs.h <<\_ACEOF | |
10739 | #define STRICT 1 | |
10740 | _ACEOF | |
10741 | ||
10742 | cat >>confdefs.h <<\_ACEOF | |
10743 | #define WINVER 0x0400 | |
10744 | _ACEOF | |
10745 | ||
10746 | fi | |
10747 | if test "$doesnt_want_win32" = 1 ; then | |
10748 | USE_UNIX=1 | |
10749 | USE_WIN32=0 | |
10750 | fi | |
10751 | ||
10752 | if test "$USE_UNIX" = 1 ; then | |
10753 | wxUSE_UNIX=yes | |
10754 | cat >>confdefs.h <<\_ACEOF | |
10755 | #define __UNIX__ 1 | |
10756 | _ACEOF | |
10757 | ||
10758 | fi | |
10759 | ||
10760 | ||
10761 | cat >confcache <<\_ACEOF | |
10762 | # This file is a shell script that caches the results of configure | |
10763 | # tests run on this system so they can be shared between configure | |
10764 | # scripts and configure runs, see configure's option --config-cache. | |
10765 | # It is not useful on other systems. If it contains results you don't | |
10766 | # want to keep, you may remove or edit it. | |
10767 | # | |
10768 | # config.status only pays attention to the cache file if you give it | |
10769 | # the --recheck option to rerun configure. | |
10770 | # | |
10771 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
10772 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10773 | # following values. | |
10774 | ||
10775 | _ACEOF | |
10776 | ||
10777 | # The following way of writing the cache mishandles newlines in values, | |
10778 | # but we know of no workaround that is simple, portable, and efficient. | |
10779 | # So, don't put newlines in cache variables' values. | |
10780 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10781 | # and sets the high bit in the cache file unless we assign to the vars. | |
10782 | { | |
10783 | (set) 2>&1 | | |
10784 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10785 | *ac_space=\ *) | |
10786 | # `set' does not quote correctly, so add quotes (double-quote | |
10787 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
10788 | sed -n \ | |
ac1cb8d3 VS |
10789 | "s/'/'\\\\''/g; |
10790 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
10791 | ;; |
10792 | *) | |
10793 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10794 | sed -n \ | |
ac1cb8d3 | 10795 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
10796 | ;; |
10797 | esac; | |
10798 | } | | |
10799 | sed ' | |
10800 | t clear | |
10801 | : clear | |
10802 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
10803 | t end | |
10804 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
10805 | : end' >>confcache | |
10806 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10807 | if test -w $cache_file; then | |
10808 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
10809 | cat confcache >$cache_file | |
10810 | else | |
10811 | echo "not updating unwritable cache $cache_file" | |
10812 | fi | |
10813 | fi | |
10814 | rm -f confcache | |
10815 | ||
a848cd7e | 10816 | CFLAGS=${CFLAGS:=} |
6dcfc289 DE |
10817 | |
10818 | ||
3006edc0 | 10819 | |
6dcfc289 | 10820 | ac_ext=c |
a848cd7e SC |
10821 | ac_cpp='$CPP $CPPFLAGS' |
10822 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10823 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10824 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10825 | if test -n "$ac_tool_prefix"; then | |
10826 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
10827 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
10828 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10829 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10830 | if test "${ac_cv_prog_CC+set}" = set; then | |
10831 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10832 | else | |
10833 | if test -n "$CC"; then | |
10834 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10835 | else | |
10836 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10837 | for as_dir in $PATH | |
10838 | do | |
10839 | IFS=$as_save_IFS | |
10840 | test -z "$as_dir" && as_dir=. | |
10841 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10842 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10843 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
10844 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10845 | break 2 | |
10846 | fi | |
10847 | done | |
10848 | done | |
10849 | ||
10850 | fi | |
10851 | fi | |
10852 | CC=$ac_cv_prog_CC | |
10853 | if test -n "$CC"; then | |
10854 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10855 | echo "${ECHO_T}$CC" >&6 | |
10856 | else | |
10857 | echo "$as_me:$LINENO: result: no" >&5 | |
10858 | echo "${ECHO_T}no" >&6 | |
10859 | fi | |
10860 | ||
10861 | fi | |
10862 | if test -z "$ac_cv_prog_CC"; then | |
10863 | ac_ct_CC=$CC | |
10864 | # Extract the first word of "gcc", so it can be a program name with args. | |
10865 | set dummy gcc; ac_word=$2 | |
10866 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10867 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10868 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10869 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10870 | else | |
10871 | if test -n "$ac_ct_CC"; then | |
10872 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10873 | else | |
10874 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10875 | for as_dir in $PATH | |
10876 | do | |
10877 | IFS=$as_save_IFS | |
10878 | test -z "$as_dir" && as_dir=. | |
10879 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10880 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10881 | ac_cv_prog_ac_ct_CC="gcc" | |
10882 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10883 | break 2 | |
10884 | fi | |
10885 | done | |
10886 | done | |
10887 | ||
10888 | fi | |
10889 | fi | |
10890 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10891 | if test -n "$ac_ct_CC"; then | |
10892 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10893 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10894 | else | |
10895 | echo "$as_me:$LINENO: result: no" >&5 | |
10896 | echo "${ECHO_T}no" >&6 | |
10897 | fi | |
10898 | ||
10899 | CC=$ac_ct_CC | |
10900 | else | |
10901 | CC="$ac_cv_prog_CC" | |
10902 | fi | |
10903 | ||
10904 | if test -z "$CC"; then | |
10905 | if test -n "$ac_tool_prefix"; then | |
10906 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
10907 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
10908 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10909 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10910 | if test "${ac_cv_prog_CC+set}" = set; then | |
10911 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10912 | else | |
10913 | if test -n "$CC"; then | |
10914 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10915 | else | |
10916 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10917 | for as_dir in $PATH | |
10918 | do | |
10919 | IFS=$as_save_IFS | |
10920 | test -z "$as_dir" && as_dir=. | |
10921 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10922 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10923 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
10924 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10925 | break 2 | |
10926 | fi | |
10927 | done | |
10928 | done | |
10929 | ||
10930 | fi | |
10931 | fi | |
10932 | CC=$ac_cv_prog_CC | |
10933 | if test -n "$CC"; then | |
10934 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10935 | echo "${ECHO_T}$CC" >&6 | |
10936 | else | |
10937 | echo "$as_me:$LINENO: result: no" >&5 | |
10938 | echo "${ECHO_T}no" >&6 | |
10939 | fi | |
10940 | ||
10941 | fi | |
10942 | if test -z "$ac_cv_prog_CC"; then | |
10943 | ac_ct_CC=$CC | |
10944 | # Extract the first word of "cc", so it can be a program name with args. | |
10945 | set dummy cc; ac_word=$2 | |
10946 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10947 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10948 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10949 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10950 | else | |
10951 | if test -n "$ac_ct_CC"; then | |
10952 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10953 | else | |
10954 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10955 | for as_dir in $PATH | |
10956 | do | |
10957 | IFS=$as_save_IFS | |
10958 | test -z "$as_dir" && as_dir=. | |
10959 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10960 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10961 | ac_cv_prog_ac_ct_CC="cc" | |
10962 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10963 | break 2 | |
10964 | fi | |
10965 | done | |
10966 | done | |
10967 | ||
10968 | fi | |
10969 | fi | |
10970 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10971 | if test -n "$ac_ct_CC"; then | |
10972 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10973 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10974 | else | |
10975 | echo "$as_me:$LINENO: result: no" >&5 | |
10976 | echo "${ECHO_T}no" >&6 | |
10977 | fi | |
10978 | ||
10979 | CC=$ac_ct_CC | |
10980 | else | |
10981 | CC="$ac_cv_prog_CC" | |
10982 | fi | |
10983 | ||
10984 | fi | |
10985 | if test -z "$CC"; then | |
10986 | # Extract the first word of "cc", so it can be a program name with args. | |
10987 | set dummy cc; ac_word=$2 | |
10988 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10989 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10990 | if test "${ac_cv_prog_CC+set}" = set; then | |
10991 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10992 | else | |
10993 | if test -n "$CC"; then | |
10994 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10995 | else | |
10996 | ac_prog_rejected=no | |
10997 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10998 | for as_dir in $PATH | |
10999 | do | |
11000 | IFS=$as_save_IFS | |
11001 | test -z "$as_dir" && as_dir=. | |
11002 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11003 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11004 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
11005 | ac_prog_rejected=yes | |
11006 | continue | |
11007 | fi | |
11008 | ac_cv_prog_CC="cc" | |
11009 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11010 | break 2 | |
11011 | fi | |
11012 | done | |
11013 | done | |
11014 | ||
11015 | if test $ac_prog_rejected = yes; then | |
11016 | # We found a bogon in the path, so make sure we never use it. | |
11017 | set dummy $ac_cv_prog_CC | |
11018 | shift | |
11019 | if test $# != 0; then | |
11020 | # We chose a different compiler from the bogus one. | |
11021 | # However, it has the same basename, so the bogon will be chosen | |
11022 | # first if we set CC to just the basename; use the full file name. | |
11023 | shift | |
11024 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
11025 | fi | |
11026 | fi | |
11027 | fi | |
11028 | fi | |
11029 | CC=$ac_cv_prog_CC | |
11030 | if test -n "$CC"; then | |
11031 | echo "$as_me:$LINENO: result: $CC" >&5 | |
11032 | echo "${ECHO_T}$CC" >&6 | |
11033 | else | |
11034 | echo "$as_me:$LINENO: result: no" >&5 | |
11035 | echo "${ECHO_T}no" >&6 | |
11036 | fi | |
11037 | ||
11038 | fi | |
11039 | if test -z "$CC"; then | |
11040 | if test -n "$ac_tool_prefix"; then | |
11041 | for ac_prog in cl | |
11042 | do | |
11043 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
11044 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
11045 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11046 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11047 | if test "${ac_cv_prog_CC+set}" = set; then | |
11048 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11049 | else | |
11050 | if test -n "$CC"; then | |
11051 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
11052 | else | |
11053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11054 | for as_dir in $PATH | |
11055 | do | |
11056 | IFS=$as_save_IFS | |
11057 | test -z "$as_dir" && as_dir=. | |
11058 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11059 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11060 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
11061 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11062 | break 2 | |
11063 | fi | |
11064 | done | |
11065 | done | |
11066 | ||
11067 | fi | |
11068 | fi | |
11069 | CC=$ac_cv_prog_CC | |
11070 | if test -n "$CC"; then | |
11071 | echo "$as_me:$LINENO: result: $CC" >&5 | |
11072 | echo "${ECHO_T}$CC" >&6 | |
11073 | else | |
11074 | echo "$as_me:$LINENO: result: no" >&5 | |
11075 | echo "${ECHO_T}no" >&6 | |
11076 | fi | |
11077 | ||
11078 | test -n "$CC" && break | |
11079 | done | |
11080 | fi | |
11081 | if test -z "$CC"; then | |
11082 | ac_ct_CC=$CC | |
11083 | for ac_prog in cl | |
11084 | do | |
11085 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11086 | set dummy $ac_prog; ac_word=$2 | |
11087 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11088 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11089 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
11090 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11091 | else | |
11092 | if test -n "$ac_ct_CC"; then | |
11093 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
11094 | else | |
11095 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11096 | for as_dir in $PATH | |
11097 | do | |
11098 | IFS=$as_save_IFS | |
11099 | test -z "$as_dir" && as_dir=. | |
11100 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11101 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11102 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
11103 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11104 | break 2 | |
11105 | fi | |
11106 | done | |
11107 | done | |
11108 | ||
11109 | fi | |
11110 | fi | |
11111 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
11112 | if test -n "$ac_ct_CC"; then | |
11113 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
11114 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
11115 | else | |
11116 | echo "$as_me:$LINENO: result: no" >&5 | |
11117 | echo "${ECHO_T}no" >&6 | |
11118 | fi | |
11119 | ||
11120 | test -n "$ac_ct_CC" && break | |
11121 | done | |
11122 | ||
11123 | CC=$ac_ct_CC | |
11124 | fi | |
11125 | ||
11126 | fi | |
11127 | ||
11128 | ||
11129 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
11130 | See \`config.log' for more details." >&5 | |
11131 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
11132 | See \`config.log' for more details." >&2;} | |
11133 | { (exit 1); exit 1; }; } | |
11134 | ||
11135 | # Provide some information about the compiler. | |
11136 | echo "$as_me:$LINENO:" \ | |
11137 | "checking for C compiler version" >&5 | |
11138 | ac_compiler=`set X $ac_compile; echo $2` | |
11139 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11140 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11141 | ac_status=$? | |
11142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11143 | (exit $ac_status); } | |
11144 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11145 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11146 | ac_status=$? | |
11147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11148 | (exit $ac_status); } | |
11149 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11150 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11151 | ac_status=$? | |
11152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11153 | (exit $ac_status); } | |
11154 | ||
11155 | cat >conftest.$ac_ext <<_ACEOF | |
11156 | /* confdefs.h. */ | |
11157 | _ACEOF | |
11158 | cat confdefs.h >>conftest.$ac_ext | |
11159 | cat >>conftest.$ac_ext <<_ACEOF | |
11160 | /* end confdefs.h. */ | |
11161 | ||
11162 | int | |
11163 | main () | |
11164 | { | |
11165 | ||
11166 | ; | |
11167 | return 0; | |
11168 | } | |
11169 | _ACEOF | |
11170 | ac_clean_files_save=$ac_clean_files | |
11171 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
11172 | # Try to create an executable without -o first, disregard a.out. | |
11173 | # It will help us diagnose broken compilers, and finding out an intuition | |
11174 | # of exeext. | |
ac1cb8d3 VS |
11175 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
11176 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
a848cd7e SC |
11177 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
11178 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
11179 | (eval $ac_link_default) 2>&5 | |
11180 | ac_status=$? | |
11181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11182 | (exit $ac_status); }; then | |
11183 | # Find the output, starting from the most likely. This scheme is | |
11184 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
11185 | # resort. | |
11186 | ||
11187 | # Be careful to initialize this variable, since it used to be cached. | |
11188 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
11189 | ac_cv_exeext= | |
11190 | # b.out is created by i960 compilers. | |
11191 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
11192 | do | |
11193 | test -f "$ac_file" || continue | |
11194 | case $ac_file in | |
11195 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
ac1cb8d3 | 11196 | ;; |
a848cd7e | 11197 | conftest.$ac_ext ) |
ac1cb8d3 VS |
11198 | # This is the source file. |
11199 | ;; | |
a848cd7e | 11200 | [ab].out ) |
ac1cb8d3 VS |
11201 | # We found the default executable, but exeext='' is most |
11202 | # certainly right. | |
11203 | break;; | |
a848cd7e | 11204 | *.* ) |
ac1cb8d3 VS |
11205 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
11206 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
11207 | # but it would be cool to find out if it's true. Does anybody | |
11208 | # maintain Libtool? --akim. | |
11209 | export ac_cv_exeext | |
11210 | break;; | |
a848cd7e | 11211 | * ) |
ac1cb8d3 | 11212 | break;; |
a848cd7e SC |
11213 | esac |
11214 | done | |
11215 | else | |
11216 | echo "$as_me: failed program was:" >&5 | |
11217 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11218 | ||
11219 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
11220 | See \`config.log' for more details." >&5 | |
11221 | echo "$as_me: error: C compiler cannot create executables | |
11222 | See \`config.log' for more details." >&2;} | |
11223 | { (exit 77); exit 77; }; } | |
11224 | fi | |
11225 | ||
11226 | ac_exeext=$ac_cv_exeext | |
11227 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
11228 | echo "${ECHO_T}$ac_file" >&6 | |
11229 | ||
11230 | # Check the compiler produces executables we can run. If not, either | |
11231 | # the compiler is broken, or we cross compile. | |
11232 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
11233 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
11234 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
11235 | # If not cross compiling, check that we can run a simple program. | |
11236 | if test "$cross_compiling" != yes; then | |
11237 | if { ac_try='./$ac_file' | |
11238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11239 | (eval $ac_try) 2>&5 | |
11240 | ac_status=$? | |
11241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11242 | (exit $ac_status); }; }; then | |
11243 | cross_compiling=no | |
11244 | else | |
11245 | if test "$cross_compiling" = maybe; then | |
11246 | cross_compiling=yes | |
11247 | else | |
11248 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
11249 | If you meant to cross compile, use \`--host'. | |
11250 | See \`config.log' for more details." >&5 | |
11251 | echo "$as_me: error: cannot run C compiled programs. | |
11252 | If you meant to cross compile, use \`--host'. | |
11253 | See \`config.log' for more details." >&2;} | |
11254 | { (exit 1); exit 1; }; } | |
11255 | fi | |
11256 | fi | |
11257 | fi | |
11258 | echo "$as_me:$LINENO: result: yes" >&5 | |
11259 | echo "${ECHO_T}yes" >&6 | |
11260 | ||
11261 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
11262 | ac_clean_files=$ac_clean_files_save | |
11263 | # Check the compiler produces executables we can run. If not, either | |
11264 | # the compiler is broken, or we cross compile. | |
11265 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
11266 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
11267 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
11268 | echo "${ECHO_T}$cross_compiling" >&6 | |
11269 | ||
11270 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
11271 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
11272 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11273 | (eval $ac_link) 2>&5 | |
11274 | ac_status=$? | |
11275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11276 | (exit $ac_status); }; then | |
11277 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
11278 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
11279 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
11280 | # `rm'. | |
11281 | for ac_file in conftest.exe conftest conftest.*; do | |
11282 | test -f "$ac_file" || continue | |
11283 | case $ac_file in | |
11284 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
11285 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
ac1cb8d3 VS |
11286 | export ac_cv_exeext |
11287 | break;; | |
a848cd7e SC |
11288 | * ) break;; |
11289 | esac | |
11290 | done | |
11291 | else | |
11292 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
11293 | See \`config.log' for more details." >&5 | |
11294 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
11295 | See \`config.log' for more details." >&2;} | |
11296 | { (exit 1); exit 1; }; } | |
11297 | fi | |
11298 | ||
11299 | rm -f conftest$ac_cv_exeext | |
11300 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
11301 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
11302 | ||
11303 | rm -f conftest.$ac_ext | |
11304 | EXEEXT=$ac_cv_exeext | |
11305 | ac_exeext=$EXEEXT | |
11306 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
11307 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
11308 | if test "${ac_cv_objext+set}" = set; then | |
11309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11310 | else | |
11311 | cat >conftest.$ac_ext <<_ACEOF | |
11312 | /* confdefs.h. */ | |
11313 | _ACEOF | |
11314 | cat confdefs.h >>conftest.$ac_ext | |
11315 | cat >>conftest.$ac_ext <<_ACEOF | |
11316 | /* end confdefs.h. */ | |
11317 | ||
11318 | int | |
11319 | main () | |
11320 | { | |
11321 | ||
11322 | ; | |
11323 | return 0; | |
11324 | } | |
11325 | _ACEOF | |
11326 | rm -f conftest.o conftest.obj | |
11327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11328 | (eval $ac_compile) 2>&5 | |
11329 | ac_status=$? | |
11330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11331 | (exit $ac_status); }; then | |
11332 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
11333 | case $ac_file in | |
11334 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
11335 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
11336 | break;; | |
11337 | esac | |
11338 | done | |
11339 | else | |
11340 | echo "$as_me: failed program was:" >&5 | |
11341 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11342 | ||
11343 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
11344 | See \`config.log' for more details." >&5 | |
11345 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
11346 | See \`config.log' for more details." >&2;} | |
11347 | { (exit 1); exit 1; }; } | |
11348 | fi | |
11349 | ||
11350 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
11351 | fi | |
11352 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
11353 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
11354 | OBJEXT=$ac_cv_objext | |
11355 | ac_objext=$OBJEXT | |
11356 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
11357 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
11358 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
11359 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11360 | else | |
11361 | cat >conftest.$ac_ext <<_ACEOF | |
11362 | /* confdefs.h. */ | |
11363 | _ACEOF | |
11364 | cat confdefs.h >>conftest.$ac_ext | |
11365 | cat >>conftest.$ac_ext <<_ACEOF | |
11366 | /* end confdefs.h. */ | |
11367 | ||
11368 | int | |
11369 | main () | |
11370 | { | |
11371 | #ifndef __GNUC__ | |
11372 | choke me | |
11373 | #endif | |
11374 | ||
11375 | ; | |
11376 | return 0; | |
11377 | } | |
11378 | _ACEOF | |
11379 | rm -f conftest.$ac_objext | |
11380 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11381 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11382 | ac_status=$? |
ac1cb8d3 VS |
11383 | grep -v '^ *+' conftest.er1 >conftest.err |
11384 | rm -f conftest.er1 | |
11385 | cat conftest.err >&5 | |
a848cd7e SC |
11386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11387 | (exit $ac_status); } && | |
0093c2fc | 11388 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11390 | (eval $ac_try) 2>&5 | |
11391 | ac_status=$? | |
11392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11393 | (exit $ac_status); }; } && | |
11394 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11396 | (eval $ac_try) 2>&5 | |
11397 | ac_status=$? | |
11398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11399 | (exit $ac_status); }; }; then | |
11400 | ac_compiler_gnu=yes | |
11401 | else | |
11402 | echo "$as_me: failed program was:" >&5 | |
11403 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11404 | ||
11405 | ac_compiler_gnu=no | |
11406 | fi | |
ac1cb8d3 | 11407 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11408 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
11409 | ||
11410 | fi | |
11411 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
11412 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
11413 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
11414 | ac_test_CFLAGS=${CFLAGS+set} | |
11415 | ac_save_CFLAGS=$CFLAGS | |
1c14217d | 11416 | CFLAGS="-g" |
a848cd7e SC |
11417 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
11418 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
11419 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
11420 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11421 | else | |
11422 | cat >conftest.$ac_ext <<_ACEOF | |
11423 | /* confdefs.h. */ | |
11424 | _ACEOF | |
11425 | cat confdefs.h >>conftest.$ac_ext | |
11426 | cat >>conftest.$ac_ext <<_ACEOF | |
11427 | /* end confdefs.h. */ | |
11428 | ||
11429 | int | |
11430 | main () | |
11431 | { | |
11432 | ||
11433 | ; | |
11434 | return 0; | |
11435 | } | |
11436 | _ACEOF | |
11437 | rm -f conftest.$ac_objext | |
11438 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11439 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11440 | ac_status=$? |
ac1cb8d3 VS |
11441 | grep -v '^ *+' conftest.er1 >conftest.err |
11442 | rm -f conftest.er1 | |
11443 | cat conftest.err >&5 | |
a848cd7e SC |
11444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11445 | (exit $ac_status); } && | |
0093c2fc | 11446 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11448 | (eval $ac_try) 2>&5 | |
11449 | ac_status=$? | |
11450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11451 | (exit $ac_status); }; } && | |
11452 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11454 | (eval $ac_try) 2>&5 | |
11455 | ac_status=$? | |
11456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11457 | (exit $ac_status); }; }; then | |
11458 | ac_cv_prog_cc_g=yes | |
11459 | else | |
11460 | echo "$as_me: failed program was:" >&5 | |
11461 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11462 | ||
11463 | ac_cv_prog_cc_g=no | |
11464 | fi | |
ac1cb8d3 | 11465 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11466 | fi |
11467 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
11468 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
11469 | if test "$ac_test_CFLAGS" = set; then | |
11470 | CFLAGS=$ac_save_CFLAGS | |
11471 | elif test $ac_cv_prog_cc_g = yes; then | |
11472 | if test "$GCC" = yes; then | |
11473 | CFLAGS="-g -O2" | |
11474 | else | |
11475 | CFLAGS="-g" | |
11476 | fi | |
11477 | else | |
11478 | if test "$GCC" = yes; then | |
11479 | CFLAGS="-O2" | |
11480 | else | |
11481 | CFLAGS= | |
11482 | fi | |
11483 | fi | |
11484 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
11485 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
11486 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
11487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11488 | else | |
11489 | ac_cv_prog_cc_stdc=no | |
11490 | ac_save_CC=$CC | |
11491 | cat >conftest.$ac_ext <<_ACEOF | |
11492 | /* confdefs.h. */ | |
11493 | _ACEOF | |
11494 | cat confdefs.h >>conftest.$ac_ext | |
11495 | cat >>conftest.$ac_ext <<_ACEOF | |
11496 | /* end confdefs.h. */ | |
11497 | #include <stdarg.h> | |
11498 | #include <stdio.h> | |
11499 | #include <sys/types.h> | |
11500 | #include <sys/stat.h> | |
11501 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
11502 | struct buf { int x; }; | |
11503 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
11504 | static char *e (p, i) | |
11505 | char **p; | |
11506 | int i; | |
11507 | { | |
11508 | return p[i]; | |
11509 | } | |
11510 | static char *f (char * (*g) (char **, int), char **p, ...) | |
11511 | { | |
11512 | char *s; | |
11513 | va_list v; | |
11514 | va_start (v,p); | |
11515 | s = g (p, va_arg (v,int)); | |
11516 | va_end (v); | |
11517 | return s; | |
11518 | } | |
ac1cb8d3 VS |
11519 | |
11520 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
11521 | function prototypes and stuff, but not '\xHH' hex character constants. | |
11522 | These don't provoke an error unfortunately, instead are silently treated | |
11523 | as 'x'. The following induces an error, until -std1 is added to get | |
11524 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
11525 | array size at least. It's necessary to write '\x00'==0 to get something | |
11526 | that's true only with -std1. */ | |
11527 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
11528 | ||
a848cd7e SC |
11529 | int test (int i, double x); |
11530 | struct s1 {int (*f) (int a);}; | |
11531 | struct s2 {int (*f) (double a);}; | |
11532 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
11533 | int argc; | |
11534 | char **argv; | |
11535 | int | |
11536 | main () | |
11537 | { | |
11538 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
11539 | ; | |
11540 | return 0; | |
11541 | } | |
11542 | _ACEOF | |
11543 | # Don't try gcc -ansi; that turns off useful extensions and | |
11544 | # breaks some systems' header files. | |
11545 | # AIX -qlanglvl=ansi | |
11546 | # Ultrix and OSF/1 -std1 | |
11547 | # HP-UX 10.20 and later -Ae | |
11548 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
11549 | # SVR4 -Xc -D__EXTENSIONS__ | |
11550 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
11551 | do | |
11552 | CC="$ac_save_CC $ac_arg" | |
11553 | rm -f conftest.$ac_objext | |
11554 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11555 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11556 | ac_status=$? |
ac1cb8d3 VS |
11557 | grep -v '^ *+' conftest.er1 >conftest.err |
11558 | rm -f conftest.er1 | |
11559 | cat conftest.err >&5 | |
a848cd7e SC |
11560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11561 | (exit $ac_status); } && | |
0093c2fc | 11562 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11564 | (eval $ac_try) 2>&5 | |
11565 | ac_status=$? | |
11566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11567 | (exit $ac_status); }; } && | |
11568 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11570 | (eval $ac_try) 2>&5 | |
11571 | ac_status=$? | |
11572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11573 | (exit $ac_status); }; }; then | |
11574 | ac_cv_prog_cc_stdc=$ac_arg | |
11575 | break | |
11576 | else | |
11577 | echo "$as_me: failed program was:" >&5 | |
11578 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11579 | ||
11580 | fi | |
ac1cb8d3 | 11581 | rm -f conftest.err conftest.$ac_objext |
a848cd7e SC |
11582 | done |
11583 | rm -f conftest.$ac_ext conftest.$ac_objext | |
11584 | CC=$ac_save_CC | |
11585 | ||
11586 | fi | |
11587 | ||
11588 | case "x$ac_cv_prog_cc_stdc" in | |
11589 | x|xno) | |
11590 | echo "$as_me:$LINENO: result: none needed" >&5 | |
11591 | echo "${ECHO_T}none needed" >&6 ;; | |
11592 | *) | |
11593 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
11594 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
11595 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
11596 | esac | |
11597 | ||
11598 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
11599 | # in C++ we need to declare it. In case someone uses the same compiler | |
11600 | # for both compiling C and C++ we need to have the C++ compiler decide | |
11601 | # the declaration of exit, since it's the most demanding environment. | |
11602 | cat >conftest.$ac_ext <<_ACEOF | |
11603 | #ifndef __cplusplus | |
11604 | choke me | |
11605 | #endif | |
11606 | _ACEOF | |
11607 | rm -f conftest.$ac_objext | |
11608 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11609 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11610 | ac_status=$? |
ac1cb8d3 VS |
11611 | grep -v '^ *+' conftest.er1 >conftest.err |
11612 | rm -f conftest.er1 | |
11613 | cat conftest.err >&5 | |
a848cd7e SC |
11614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11615 | (exit $ac_status); } && | |
0093c2fc | 11616 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11618 | (eval $ac_try) 2>&5 | |
11619 | ac_status=$? | |
11620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11621 | (exit $ac_status); }; } && | |
11622 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11624 | (eval $ac_try) 2>&5 | |
11625 | ac_status=$? | |
11626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11627 | (exit $ac_status); }; }; then | |
11628 | for ac_declaration in \ | |
ac1cb8d3 | 11629 | '' \ |
a848cd7e SC |
11630 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11631 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11632 | 'extern "C" void exit (int) throw ();' \ | |
11633 | 'extern "C" void exit (int);' \ | |
11634 | 'void exit (int);' | |
11635 | do | |
11636 | cat >conftest.$ac_ext <<_ACEOF | |
11637 | /* confdefs.h. */ | |
11638 | _ACEOF | |
11639 | cat confdefs.h >>conftest.$ac_ext | |
11640 | cat >>conftest.$ac_ext <<_ACEOF | |
11641 | /* end confdefs.h. */ | |
de59c161 | 11642 | $ac_declaration |
ac1cb8d3 | 11643 | #include <stdlib.h> |
a848cd7e SC |
11644 | int |
11645 | main () | |
11646 | { | |
11647 | exit (42); | |
11648 | ; | |
11649 | return 0; | |
11650 | } | |
11651 | _ACEOF | |
11652 | rm -f conftest.$ac_objext | |
11653 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11654 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11655 | ac_status=$? |
ac1cb8d3 VS |
11656 | grep -v '^ *+' conftest.er1 >conftest.err |
11657 | rm -f conftest.er1 | |
11658 | cat conftest.err >&5 | |
a848cd7e SC |
11659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11660 | (exit $ac_status); } && | |
0093c2fc | 11661 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11663 | (eval $ac_try) 2>&5 | |
11664 | ac_status=$? | |
11665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11666 | (exit $ac_status); }; } && | |
11667 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11669 | (eval $ac_try) 2>&5 | |
11670 | ac_status=$? | |
11671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11672 | (exit $ac_status); }; }; then | |
11673 | : | |
11674 | else | |
11675 | echo "$as_me: failed program was:" >&5 | |
11676 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11677 | ||
11678 | continue | |
11679 | fi | |
ac1cb8d3 | 11680 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11681 | cat >conftest.$ac_ext <<_ACEOF |
11682 | /* confdefs.h. */ | |
11683 | _ACEOF | |
11684 | cat confdefs.h >>conftest.$ac_ext | |
11685 | cat >>conftest.$ac_ext <<_ACEOF | |
11686 | /* end confdefs.h. */ | |
11687 | $ac_declaration | |
11688 | int | |
11689 | main () | |
11690 | { | |
11691 | exit (42); | |
11692 | ; | |
11693 | return 0; | |
11694 | } | |
11695 | _ACEOF | |
11696 | rm -f conftest.$ac_objext | |
11697 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11698 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11699 | ac_status=$? |
ac1cb8d3 VS |
11700 | grep -v '^ *+' conftest.er1 >conftest.err |
11701 | rm -f conftest.er1 | |
11702 | cat conftest.err >&5 | |
a848cd7e SC |
11703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11704 | (exit $ac_status); } && | |
0093c2fc | 11705 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11707 | (eval $ac_try) 2>&5 | |
11708 | ac_status=$? | |
11709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11710 | (exit $ac_status); }; } && | |
11711 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11713 | (eval $ac_try) 2>&5 | |
11714 | ac_status=$? | |
11715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11716 | (exit $ac_status); }; }; then | |
11717 | break | |
11718 | else | |
11719 | echo "$as_me: failed program was:" >&5 | |
11720 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11721 | ||
11722 | fi | |
ac1cb8d3 | 11723 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11724 | done |
11725 | rm -f conftest* | |
11726 | if test -n "$ac_declaration"; then | |
11727 | echo '#ifdef __cplusplus' >>confdefs.h | |
11728 | echo $ac_declaration >>confdefs.h | |
11729 | echo '#endif' >>confdefs.h | |
11730 | fi | |
11731 | ||
11732 | else | |
11733 | echo "$as_me: failed program was:" >&5 | |
11734 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11735 | ||
11736 | fi | |
ac1cb8d3 | 11737 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11738 | ac_ext=c |
11739 | ac_cpp='$CPP $CPPFLAGS' | |
11740 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11741 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11742 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11743 | ||
ab0ad5f1 VZ |
11744 | |
11745 | ||
11746 | ac_ext=c | |
11747 | ac_cpp='$CPP $CPPFLAGS' | |
11748 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11749 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11750 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11751 | ||
11752 | echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5 | |
11753 | echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6 | |
11754 | if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then | |
11755 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11756 | else | |
11757 | cat >conftest.$ac_ext <<_ACEOF | |
11758 | /* confdefs.h. */ | |
11759 | _ACEOF | |
11760 | cat confdefs.h >>conftest.$ac_ext | |
11761 | cat >>conftest.$ac_ext <<_ACEOF | |
11762 | /* end confdefs.h. */ | |
11763 | ||
11764 | int | |
11765 | main () | |
11766 | { | |
11767 | ||
11768 | #ifndef __INTEL_COMPILER | |
11769 | choke me | |
11770 | #endif | |
11771 | ||
11772 | ; | |
11773 | return 0; | |
11774 | } | |
11775 | _ACEOF | |
11776 | rm -f conftest.$ac_objext | |
11777 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11778 | (eval $ac_compile) 2>conftest.er1 | |
11779 | ac_status=$? | |
11780 | grep -v '^ *+' conftest.er1 >conftest.err | |
11781 | rm -f conftest.er1 | |
11782 | cat conftest.err >&5 | |
11783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11784 | (exit $ac_status); } && | |
0093c2fc | 11785 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ab0ad5f1 VZ |
11786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11787 | (eval $ac_try) 2>&5 | |
11788 | ac_status=$? | |
11789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11790 | (exit $ac_status); }; } && | |
11791 | { ac_try='test -s conftest.$ac_objext' | |
11792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11793 | (eval $ac_try) 2>&5 | |
11794 | ac_status=$? | |
11795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11796 | (exit $ac_status); }; }; then | |
11797 | bakefile_cv_c_compiler___INTEL_COMPILER=yes | |
11798 | else | |
11799 | echo "$as_me: failed program was:" >&5 | |
11800 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11801 | ||
11802 | bakefile_cv_c_compiler___INTEL_COMPILER=no | |
11803 | ||
11804 | fi | |
11805 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11806 | ||
11807 | ||
11808 | fi | |
11809 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5 | |
11810 | echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6 | |
11811 | ac_ext=c | |
11812 | ac_cpp='$CPP $CPPFLAGS' | |
11813 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11814 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11815 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11816 | ||
11817 | if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then | |
11818 | :; INTELCC=yes | |
11819 | else | |
11820 | :; | |
11821 | fi | |
11822 | ||
11823 | ||
11824 | if test "x$GCC" != "xyes"; then | |
3006edc0 VZ |
11825 | if test "xCC" = "xC"; then |
11826 | echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5 | |
480ccd21 | 11827 | echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6 |
0093c2fc | 11828 | if test "${bakefile_cv_c_exto+set}" = set; then |
480ccd21 DE |
11829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11830 | else | |
11831 | cat >conftest.$ac_ext <<_ACEOF | |
11832 | /* confdefs.h. */ | |
11833 | _ACEOF | |
11834 | cat confdefs.h >>conftest.$ac_ext | |
11835 | cat >>conftest.$ac_ext <<_ACEOF | |
11836 | /* end confdefs.h. */ | |
11837 | ||
11838 | int | |
11839 | main () | |
11840 | { | |
11841 | ||
11842 | ; | |
11843 | return 0; | |
11844 | } | |
11845 | _ACEOF | |
11846 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
11847 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11848 | (eval $ac_compile) 2>&5 | |
11849 | ac_status=$? | |
11850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11851 | (exit $ac_status); }; then | |
11852 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
11853 | case $ac_file in | |
11854 | conftest.$ac_ext.o) | |
0093c2fc | 11855 | bakefile_cv_c_exto="-ext o" |
480ccd21 DE |
11856 | ;; |
11857 | *) | |
11858 | ;; | |
11859 | esac | |
11860 | done | |
11861 | else | |
11862 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
11863 | See \`config.log' for more details." >&5 | |
11864 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
11865 | See \`config.log' for more details." >&2;} | |
11866 | { (exit 1); exit 1; }; } | |
11867 | ||
11868 | fi | |
11869 | ||
11870 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
11871 | ||
11872 | fi | |
0093c2fc VZ |
11873 | echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5 |
11874 | echo "${ECHO_T}$bakefile_cv_c_exto" >&6 | |
11875 | if test "x$bakefile_cv_c_exto" '!=' "x"; then | |
480ccd21 | 11876 | if test "c" = "c"; then |
0093c2fc | 11877 | CFLAGS="$bakefile_cv_c_exto $CFLAGS" |
480ccd21 DE |
11878 | fi |
11879 | if test "c" = "cxx"; then | |
0093c2fc | 11880 | CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS" |
480ccd21 DE |
11881 | fi |
11882 | fi | |
11883 | ||
0093c2fc | 11884 | if test "x$bakefile_cv_c_exto" '!=' "x"; then |
3006edc0 VZ |
11885 | unset ac_cv_prog_cc_g |
11886 | ac_test_CFLAGS=${CFLAGS+set} | |
480ccd21 | 11887 | ac_save_CFLAGS=$CFLAGS |
1c14217d | 11888 | CFLAGS="-g" |
480ccd21 DE |
11889 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
11890 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
11891 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
11892 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11893 | else | |
11894 | cat >conftest.$ac_ext <<_ACEOF | |
11895 | /* confdefs.h. */ | |
11896 | _ACEOF | |
11897 | cat confdefs.h >>conftest.$ac_ext | |
11898 | cat >>conftest.$ac_ext <<_ACEOF | |
11899 | /* end confdefs.h. */ | |
11900 | ||
11901 | int | |
11902 | main () | |
11903 | { | |
11904 | ||
11905 | ; | |
11906 | return 0; | |
11907 | } | |
11908 | _ACEOF | |
11909 | rm -f conftest.$ac_objext | |
11910 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11911 | (eval $ac_compile) 2>conftest.er1 | |
11912 | ac_status=$? | |
11913 | grep -v '^ *+' conftest.er1 >conftest.err | |
11914 | rm -f conftest.er1 | |
11915 | cat conftest.err >&5 | |
11916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11917 | (exit $ac_status); } && | |
0093c2fc | 11918 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
480ccd21 DE |
11919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11920 | (eval $ac_try) 2>&5 | |
11921 | ac_status=$? | |
11922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11923 | (exit $ac_status); }; } && | |
11924 | { ac_try='test -s conftest.$ac_objext' | |
11925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11926 | (eval $ac_try) 2>&5 | |
11927 | ac_status=$? | |
11928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11929 | (exit $ac_status); }; }; then | |
11930 | ac_cv_prog_cc_g=yes | |
11931 | else | |
11932 | echo "$as_me: failed program was:" >&5 | |
11933 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11934 | ||
11935 | ac_cv_prog_cc_g=no | |
11936 | fi | |
11937 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11938 | fi | |
11939 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
11940 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
11941 | if test "$ac_test_CFLAGS" = set; then | |
11942 | CFLAGS=$ac_save_CFLAGS | |
11943 | elif test $ac_cv_prog_cc_g = yes; then | |
11944 | if test "$GCC" = yes; then | |
11945 | CFLAGS="-g -O2" | |
11946 | else | |
11947 | CFLAGS="-g" | |
11948 | fi | |
11949 | else | |
11950 | if test "$GCC" = yes; then | |
11951 | CFLAGS="-O2" | |
11952 | else | |
11953 | CFLAGS= | |
11954 | fi | |
11955 | fi | |
3006edc0 | 11956 | fi |
ab0ad5f1 | 11957 | fi |
3006edc0 VZ |
11958 | |
11959 | case `uname -s` in | |
11960 | AIX*) | |
11961 | ac_ext=c | |
11962 | ac_cpp='$CPP $CPPFLAGS' | |
11963 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11964 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11965 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11966 | ||
11967 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5 | |
11968 | echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6 | |
0093c2fc | 11969 | if test "${bakefile_cv_c_compiler_xlc+set}" = set; then |
3006edc0 VZ |
11970 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11971 | else | |
11972 | cat >conftest.$ac_ext <<_ACEOF | |
11973 | /* confdefs.h. */ | |
11974 | _ACEOF | |
11975 | cat confdefs.h >>conftest.$ac_ext | |
11976 | cat >>conftest.$ac_ext <<_ACEOF | |
11977 | /* end confdefs.h. */ | |
11978 | ||
11979 | int | |
11980 | main () | |
11981 | { | |
11982 | #ifndef __xlC__ | |
11983 | choke me | |
11984 | #endif | |
11985 | ||
11986 | ; | |
11987 | return 0; | |
11988 | } | |
11989 | _ACEOF | |
11990 | rm -f conftest.$ac_objext | |
11991 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11992 | (eval $ac_compile) 2>conftest.er1 | |
11993 | ac_status=$? | |
11994 | grep -v '^ *+' conftest.er1 >conftest.err | |
11995 | rm -f conftest.er1 | |
11996 | cat conftest.err >&5 | |
11997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11998 | (exit $ac_status); } && | |
0093c2fc | 11999 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3006edc0 VZ |
12000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12001 | (eval $ac_try) 2>&5 | |
12002 | ac_status=$? | |
12003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12004 | (exit $ac_status); }; } && | |
12005 | { ac_try='test -s conftest.$ac_objext' | |
12006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12007 | (eval $ac_try) 2>&5 | |
12008 | ac_status=$? | |
12009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12010 | (exit $ac_status); }; }; then | |
0093c2fc | 12011 | bakefile_compiler_xlc=yes |
3006edc0 VZ |
12012 | else |
12013 | echo "$as_me: failed program was:" >&5 | |
12014 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12015 | ||
0093c2fc | 12016 | bakefile_compiler_xlc=no |
3006edc0 VZ |
12017 | fi |
12018 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 12019 | bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc |
3006edc0 VZ |
12020 | |
12021 | fi | |
0093c2fc VZ |
12022 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5 |
12023 | echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6 | |
3006edc0 | 12024 | |
0093c2fc | 12025 | XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes` |
3006edc0 VZ |
12026 | ac_ext=c |
12027 | ac_cpp='$CPP $CPPFLAGS' | |
12028 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12029 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12030 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12031 | ||
12032 | ||
12033 | ;; | |
12034 | ||
12035 | Darwin) | |
12036 | ac_ext=c | |
95986553 DE |
12037 | ac_cpp='$CPP $CPPFLAGS' |
12038 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12039 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12040 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12041 | ||
12042 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5 | |
12043 | echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6 | |
12044 | if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then | |
12045 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12046 | else | |
12047 | cat >conftest.$ac_ext <<_ACEOF | |
12048 | /* confdefs.h. */ | |
12049 | _ACEOF | |
12050 | cat confdefs.h >>conftest.$ac_ext | |
12051 | cat >>conftest.$ac_ext <<_ACEOF | |
12052 | /* end confdefs.h. */ | |
12053 | ||
12054 | int | |
12055 | main () | |
12056 | { | |
12057 | #ifndef __MWERKS__ | |
12058 | choke me | |
12059 | #endif | |
12060 | ||
12061 | ; | |
12062 | return 0; | |
12063 | } | |
12064 | _ACEOF | |
12065 | rm -f conftest.$ac_objext | |
12066 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12067 | (eval $ac_compile) 2>conftest.er1 | |
12068 | ac_status=$? | |
12069 | grep -v '^ *+' conftest.er1 >conftest.err | |
12070 | rm -f conftest.er1 | |
12071 | cat conftest.err >&5 | |
12072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12073 | (exit $ac_status); } && | |
0093c2fc | 12074 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
95986553 DE |
12075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12076 | (eval $ac_try) 2>&5 | |
12077 | ac_status=$? | |
12078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12079 | (exit $ac_status); }; } && | |
12080 | { ac_try='test -s conftest.$ac_objext' | |
12081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12082 | (eval $ac_try) 2>&5 | |
12083 | ac_status=$? | |
12084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12085 | (exit $ac_status); }; }; then | |
12086 | bakefile_compiler_mwerks=yes | |
12087 | else | |
12088 | echo "$as_me: failed program was:" >&5 | |
12089 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12090 | ||
12091 | bakefile_compiler_mwerks=no | |
12092 | fi | |
12093 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12094 | bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks | |
12095 | ||
12096 | fi | |
12097 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5 | |
12098 | echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6 | |
12099 | ||
0e6fa1d9 | 12100 | MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes` |
95986553 DE |
12101 | ac_ext=c |
12102 | ac_cpp='$CPP $CPPFLAGS' | |
12103 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12104 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12105 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12106 | ||
12107 | ||
3006edc0 | 12108 | ac_ext=c |
9273ffba DE |
12109 | ac_cpp='$CPP $CPPFLAGS' |
12110 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12111 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12112 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12113 | ||
12114 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5 | |
12115 | echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6 | |
0093c2fc | 12116 | if test "${bakefile_cv_c_compiler_xlc+set}" = set; then |
9273ffba DE |
12117 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12118 | else | |
12119 | cat >conftest.$ac_ext <<_ACEOF | |
12120 | /* confdefs.h. */ | |
12121 | _ACEOF | |
12122 | cat confdefs.h >>conftest.$ac_ext | |
12123 | cat >>conftest.$ac_ext <<_ACEOF | |
12124 | /* end confdefs.h. */ | |
12125 | ||
12126 | int | |
12127 | main () | |
12128 | { | |
12129 | #ifndef __xlC__ | |
12130 | choke me | |
12131 | #endif | |
12132 | ||
12133 | ; | |
12134 | return 0; | |
12135 | } | |
12136 | _ACEOF | |
12137 | rm -f conftest.$ac_objext | |
12138 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12139 | (eval $ac_compile) 2>conftest.er1 | |
12140 | ac_status=$? | |
12141 | grep -v '^ *+' conftest.er1 >conftest.err | |
12142 | rm -f conftest.er1 | |
12143 | cat conftest.err >&5 | |
12144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12145 | (exit $ac_status); } && | |
0093c2fc | 12146 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9273ffba DE |
12147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12148 | (eval $ac_try) 2>&5 | |
12149 | ac_status=$? | |
12150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12151 | (exit $ac_status); }; } && | |
12152 | { ac_try='test -s conftest.$ac_objext' | |
12153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12154 | (eval $ac_try) 2>&5 | |
12155 | ac_status=$? | |
12156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12157 | (exit $ac_status); }; }; then | |
0093c2fc | 12158 | bakefile_compiler_xlc=yes |
9273ffba DE |
12159 | else |
12160 | echo "$as_me: failed program was:" >&5 | |
12161 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12162 | ||
0093c2fc | 12163 | bakefile_compiler_xlc=no |
9273ffba DE |
12164 | fi |
12165 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 12166 | bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc |
9273ffba DE |
12167 | |
12168 | fi | |
0093c2fc VZ |
12169 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5 |
12170 | echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6 | |
9273ffba | 12171 | |
0093c2fc | 12172 | XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes` |
9273ffba DE |
12173 | ac_ext=c |
12174 | ac_cpp='$CPP $CPPFLAGS' | |
12175 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12176 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12177 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12178 | ||
12179 | ||
3006edc0 VZ |
12180 | ;; |
12181 | ||
12182 | IRIX*) | |
a848cd7e | 12183 | |
6dcfc289 | 12184 | |
0ad5d837 VZ |
12185 | ac_ext=c |
12186 | ac_cpp='$CPP $CPPFLAGS' | |
12187 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12188 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12189 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12190 | ||
12191 | echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5 | |
12192 | echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6 | |
12193 | if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then | |
12194 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12195 | else | |
12196 | cat >conftest.$ac_ext <<_ACEOF | |
12197 | /* confdefs.h. */ | |
12198 | _ACEOF | |
12199 | cat confdefs.h >>conftest.$ac_ext | |
12200 | cat >>conftest.$ac_ext <<_ACEOF | |
12201 | /* end confdefs.h. */ | |
12202 | ||
12203 | int | |
12204 | main () | |
12205 | { | |
12206 | ||
12207 | #ifndef _SGI_COMPILER_VERSION | |
12208 | choke me | |
12209 | #endif | |
12210 | ||
12211 | ; | |
12212 | return 0; | |
12213 | } | |
12214 | _ACEOF | |
12215 | rm -f conftest.$ac_objext | |
12216 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12217 | (eval $ac_compile) 2>conftest.er1 | |
12218 | ac_status=$? | |
12219 | grep -v '^ *+' conftest.er1 >conftest.err | |
12220 | rm -f conftest.er1 | |
12221 | cat conftest.err >&5 | |
12222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12223 | (exit $ac_status); } && | |
0093c2fc | 12224 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
0ad5d837 VZ |
12225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12226 | (eval $ac_try) 2>&5 | |
12227 | ac_status=$? | |
12228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12229 | (exit $ac_status); }; } && | |
12230 | { ac_try='test -s conftest.$ac_objext' | |
12231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12232 | (eval $ac_try) 2>&5 | |
12233 | ac_status=$? | |
12234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12235 | (exit $ac_status); }; }; then | |
12236 | bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes | |
12237 | else | |
12238 | echo "$as_me: failed program was:" >&5 | |
12239 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12240 | ||
12241 | bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no | |
12242 | ||
12243 | fi | |
12244 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12245 | ||
12246 | ||
12247 | fi | |
12248 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5 | |
12249 | echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6 | |
12250 | ac_ext=c | |
12251 | ac_cpp='$CPP $CPPFLAGS' | |
12252 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12253 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12254 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12255 | ||
12256 | if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then | |
12257 | :; SGICC=yes | |
12258 | else | |
12259 | :; | |
12260 | fi | |
12261 | ||
12262 | ||
3006edc0 VZ |
12263 | ;; |
12264 | ||
0093c2fc | 12265 | HP-UX*) |
3006edc0 VZ |
12266 | |
12267 | ||
12268 | ac_ext=c | |
12269 | ac_cpp='$CPP $CPPFLAGS' | |
12270 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12271 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12272 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12273 | ||
0093c2fc VZ |
12274 | echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5 |
12275 | echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6 | |
12276 | if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then | |
3006edc0 VZ |
12277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12278 | else | |
12279 | cat >conftest.$ac_ext <<_ACEOF | |
12280 | /* confdefs.h. */ | |
12281 | _ACEOF | |
12282 | cat confdefs.h >>conftest.$ac_ext | |
12283 | cat >>conftest.$ac_ext <<_ACEOF | |
12284 | /* end confdefs.h. */ | |
12285 | ||
12286 | int | |
12287 | main () | |
12288 | { | |
12289 | ||
0093c2fc | 12290 | #ifndef __HP_cc |
3006edc0 VZ |
12291 | choke me |
12292 | #endif | |
12293 | ||
12294 | ; | |
12295 | return 0; | |
12296 | } | |
12297 | _ACEOF | |
12298 | rm -f conftest.$ac_objext | |
12299 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12300 | (eval $ac_compile) 2>conftest.er1 | |
12301 | ac_status=$? | |
12302 | grep -v '^ *+' conftest.er1 >conftest.err | |
12303 | rm -f conftest.er1 | |
12304 | cat conftest.err >&5 | |
12305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12306 | (exit $ac_status); } && | |
0093c2fc | 12307 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3006edc0 VZ |
12308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12309 | (eval $ac_try) 2>&5 | |
12310 | ac_status=$? | |
12311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12312 | (exit $ac_status); }; } && | |
12313 | { ac_try='test -s conftest.$ac_objext' | |
12314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12315 | (eval $ac_try) 2>&5 | |
12316 | ac_status=$? | |
12317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12318 | (exit $ac_status); }; }; then | |
0093c2fc | 12319 | bakefile_cv_c_compiler___HP_cc=yes |
3006edc0 VZ |
12320 | else |
12321 | echo "$as_me: failed program was:" >&5 | |
12322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12323 | ||
0093c2fc | 12324 | bakefile_cv_c_compiler___HP_cc=no |
3006edc0 VZ |
12325 | |
12326 | fi | |
12327 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12328 | ||
12329 | ||
12330 | fi | |
0093c2fc VZ |
12331 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5 |
12332 | echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6 | |
3006edc0 VZ |
12333 | ac_ext=c |
12334 | ac_cpp='$CPP $CPPFLAGS' | |
12335 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12336 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12337 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12338 | ||
0093c2fc VZ |
12339 | if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then |
12340 | :; HPCC=yes | |
a1aa0349 VZ |
12341 | else |
12342 | :; | |
12343 | fi | |
12344 | ||
12345 | ||
12346 | ;; | |
12347 | ||
0093c2fc | 12348 | OSF1) |
a1aa0349 VZ |
12349 | |
12350 | ||
12351 | ac_ext=c | |
12352 | ac_cpp='$CPP $CPPFLAGS' | |
12353 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12354 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12355 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12356 | ||
0093c2fc VZ |
12357 | echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5 |
12358 | echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6 | |
12359 | if test "${bakefile_cv_c_compiler___DECC+set}" = set; then | |
a1aa0349 VZ |
12360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12361 | else | |
12362 | cat >conftest.$ac_ext <<_ACEOF | |
12363 | /* confdefs.h. */ | |
12364 | _ACEOF | |
12365 | cat confdefs.h >>conftest.$ac_ext | |
12366 | cat >>conftest.$ac_ext <<_ACEOF | |
12367 | /* end confdefs.h. */ | |
12368 | ||
12369 | int | |
12370 | main () | |
12371 | { | |
12372 | ||
0093c2fc | 12373 | #ifndef __DECC |
a1aa0349 VZ |
12374 | choke me |
12375 | #endif | |
12376 | ||
12377 | ; | |
12378 | return 0; | |
12379 | } | |
12380 | _ACEOF | |
12381 | rm -f conftest.$ac_objext | |
12382 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12383 | (eval $ac_compile) 2>conftest.er1 | |
12384 | ac_status=$? | |
12385 | grep -v '^ *+' conftest.er1 >conftest.err | |
12386 | rm -f conftest.er1 | |
12387 | cat conftest.err >&5 | |
12388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12389 | (exit $ac_status); } && | |
0093c2fc | 12390 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
a1aa0349 VZ |
12391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12392 | (eval $ac_try) 2>&5 | |
12393 | ac_status=$? | |
12394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12395 | (exit $ac_status); }; } && | |
12396 | { ac_try='test -s conftest.$ac_objext' | |
12397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12398 | (eval $ac_try) 2>&5 | |
12399 | ac_status=$? | |
12400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12401 | (exit $ac_status); }; }; then | |
0093c2fc | 12402 | bakefile_cv_c_compiler___DECC=yes |
a1aa0349 VZ |
12403 | else |
12404 | echo "$as_me: failed program was:" >&5 | |
12405 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12406 | ||
0093c2fc | 12407 | bakefile_cv_c_compiler___DECC=no |
a1aa0349 VZ |
12408 | |
12409 | fi | |
12410 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12411 | ||
12412 | ||
12413 | fi | |
0093c2fc VZ |
12414 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5 |
12415 | echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6 | |
a1aa0349 VZ |
12416 | ac_ext=c |
12417 | ac_cpp='$CPP $CPPFLAGS' | |
12418 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12419 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12420 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12421 | ||
0093c2fc VZ |
12422 | if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then |
12423 | :; COMPAQCC=yes | |
12424 | else | |
12425 | :; | |
12426 | fi | |
12427 | ||
12428 | ||
12429 | ;; | |
12430 | ||
12431 | SunOS) | |
12432 | ||
12433 | ||
12434 | ac_ext=c | |
12435 | ac_cpp='$CPP $CPPFLAGS' | |
12436 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12437 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12438 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12439 | ||
12440 | echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5 | |
12441 | echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6 | |
12442 | if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then | |
12443 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12444 | else | |
12445 | cat >conftest.$ac_ext <<_ACEOF | |
12446 | /* confdefs.h. */ | |
12447 | _ACEOF | |
12448 | cat confdefs.h >>conftest.$ac_ext | |
12449 | cat >>conftest.$ac_ext <<_ACEOF | |
12450 | /* end confdefs.h. */ | |
12451 | ||
12452 | int | |
12453 | main () | |
12454 | { | |
12455 | ||
12456 | #ifndef __SUNPRO_C | |
12457 | choke me | |
12458 | #endif | |
12459 | ||
12460 | ; | |
12461 | return 0; | |
12462 | } | |
12463 | _ACEOF | |
12464 | rm -f conftest.$ac_objext | |
12465 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12466 | (eval $ac_compile) 2>conftest.er1 | |
12467 | ac_status=$? | |
12468 | grep -v '^ *+' conftest.er1 >conftest.err | |
12469 | rm -f conftest.er1 | |
12470 | cat conftest.err >&5 | |
12471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12472 | (exit $ac_status); } && | |
12473 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
12474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12475 | (eval $ac_try) 2>&5 | |
12476 | ac_status=$? | |
12477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12478 | (exit $ac_status); }; } && | |
12479 | { ac_try='test -s conftest.$ac_objext' | |
12480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12481 | (eval $ac_try) 2>&5 | |
12482 | ac_status=$? | |
12483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12484 | (exit $ac_status); }; }; then | |
12485 | bakefile_cv_c_compiler___SUNPRO_C=yes | |
12486 | else | |
12487 | echo "$as_me: failed program was:" >&5 | |
12488 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12489 | ||
12490 | bakefile_cv_c_compiler___SUNPRO_C=no | |
12491 | ||
12492 | fi | |
12493 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12494 | ||
12495 | ||
12496 | fi | |
12497 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5 | |
12498 | echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6 | |
12499 | ac_ext=c | |
12500 | ac_cpp='$CPP $CPPFLAGS' | |
12501 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12502 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12503 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12504 | ||
12505 | if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then | |
12506 | :; SUNCC=yes | |
3006edc0 VZ |
12507 | else |
12508 | :; | |
12509 | fi | |
12510 | ||
12511 | ||
12512 | ;; | |
12513 | esac | |
ab0ad5f1 | 12514 | fi |
a9e5b1f0 MW |
12515 | |
12516 | ||
3006edc0 | 12517 | |
a848cd7e SC |
12518 | ac_ext=c |
12519 | ac_cpp='$CPP $CPPFLAGS' | |
12520 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12521 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12522 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12523 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
12524 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
12525 | # On Suns, sometimes $CPP names a directory. | |
12526 | if test -n "$CPP" && test -d "$CPP"; then | |
12527 | CPP= | |
12528 | fi | |
12529 | if test -z "$CPP"; then | |
12530 | if test "${ac_cv_prog_CPP+set}" = set; then | |
12531 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12532 | else | |
12533 | # Double quotes because CPP needs to be expanded | |
12534 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
12535 | do | |
12536 | ac_preproc_ok=false | |
12537 | for ac_c_preproc_warn_flag in '' yes | |
12538 | do | |
12539 | # Use a header file that comes with gcc, so configuring glibc | |
12540 | # with a fresh cross-compiler works. | |
12541 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12542 | # <limits.h> exists even on freestanding compilers. | |
12543 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12544 | # not just through cpp. "Syntax error" is here to catch this case. | |
12545 | cat >conftest.$ac_ext <<_ACEOF | |
12546 | /* confdefs.h. */ | |
12547 | _ACEOF | |
12548 | cat confdefs.h >>conftest.$ac_ext | |
12549 | cat >>conftest.$ac_ext <<_ACEOF | |
12550 | /* end confdefs.h. */ | |
12551 | #ifdef __STDC__ | |
12552 | # include <limits.h> | |
12553 | #else | |
12554 | # include <assert.h> | |
12555 | #endif | |
ac1cb8d3 | 12556 | Syntax error |
a848cd7e SC |
12557 | _ACEOF |
12558 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12559 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12560 | ac_status=$? | |
12561 | grep -v '^ *+' conftest.er1 >conftest.err | |
12562 | rm -f conftest.er1 | |
12563 | cat conftest.err >&5 | |
12564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12565 | (exit $ac_status); } >/dev/null; then | |
12566 | if test -s conftest.err; then | |
12567 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12568 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12569 | else |
12570 | ac_cpp_err= | |
12571 | fi | |
12572 | else | |
12573 | ac_cpp_err=yes | |
12574 | fi | |
12575 | if test -z "$ac_cpp_err"; then | |
12576 | : | |
12577 | else | |
12578 | echo "$as_me: failed program was:" >&5 | |
12579 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12580 | ||
12581 | # Broken: fails on valid input. | |
12582 | continue | |
12583 | fi | |
12584 | rm -f conftest.err conftest.$ac_ext | |
12585 | ||
12586 | # OK, works on sane cases. Now check whether non-existent headers | |
12587 | # can be detected and how. | |
12588 | cat >conftest.$ac_ext <<_ACEOF | |
12589 | /* confdefs.h. */ | |
12590 | _ACEOF | |
12591 | cat confdefs.h >>conftest.$ac_ext | |
12592 | cat >>conftest.$ac_ext <<_ACEOF | |
12593 | /* end confdefs.h. */ | |
12594 | #include <ac_nonexistent.h> | |
12595 | _ACEOF | |
12596 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12597 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12598 | ac_status=$? | |
12599 | grep -v '^ *+' conftest.er1 >conftest.err | |
12600 | rm -f conftest.er1 | |
12601 | cat conftest.err >&5 | |
12602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12603 | (exit $ac_status); } >/dev/null; then | |
12604 | if test -s conftest.err; then | |
12605 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12606 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12607 | else |
12608 | ac_cpp_err= | |
12609 | fi | |
12610 | else | |
12611 | ac_cpp_err=yes | |
12612 | fi | |
12613 | if test -z "$ac_cpp_err"; then | |
12614 | # Broken: success on invalid input. | |
12615 | continue | |
12616 | else | |
12617 | echo "$as_me: failed program was:" >&5 | |
12618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12619 | ||
12620 | # Passes both tests. | |
12621 | ac_preproc_ok=: | |
12622 | break | |
12623 | fi | |
12624 | rm -f conftest.err conftest.$ac_ext | |
12625 | ||
12626 | done | |
12627 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12628 | rm -f conftest.err conftest.$ac_ext | |
12629 | if $ac_preproc_ok; then | |
12630 | break | |
12631 | fi | |
12632 | ||
12633 | done | |
12634 | ac_cv_prog_CPP=$CPP | |
12635 | ||
12636 | fi | |
12637 | CPP=$ac_cv_prog_CPP | |
12638 | else | |
12639 | ac_cv_prog_CPP=$CPP | |
12640 | fi | |
12641 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
12642 | echo "${ECHO_T}$CPP" >&6 | |
12643 | ac_preproc_ok=false | |
12644 | for ac_c_preproc_warn_flag in '' yes | |
12645 | do | |
12646 | # Use a header file that comes with gcc, so configuring glibc | |
12647 | # with a fresh cross-compiler works. | |
12648 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12649 | # <limits.h> exists even on freestanding compilers. | |
12650 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12651 | # not just through cpp. "Syntax error" is here to catch this case. | |
12652 | cat >conftest.$ac_ext <<_ACEOF | |
12653 | /* confdefs.h. */ | |
12654 | _ACEOF | |
12655 | cat confdefs.h >>conftest.$ac_ext | |
12656 | cat >>conftest.$ac_ext <<_ACEOF | |
12657 | /* end confdefs.h. */ | |
12658 | #ifdef __STDC__ | |
12659 | # include <limits.h> | |
12660 | #else | |
12661 | # include <assert.h> | |
12662 | #endif | |
ac1cb8d3 | 12663 | Syntax error |
a848cd7e SC |
12664 | _ACEOF |
12665 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12666 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12667 | ac_status=$? | |
12668 | grep -v '^ *+' conftest.er1 >conftest.err | |
12669 | rm -f conftest.er1 | |
12670 | cat conftest.err >&5 | |
12671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12672 | (exit $ac_status); } >/dev/null; then | |
12673 | if test -s conftest.err; then | |
12674 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12675 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12676 | else |
12677 | ac_cpp_err= | |
12678 | fi | |
12679 | else | |
12680 | ac_cpp_err=yes | |
12681 | fi | |
12682 | if test -z "$ac_cpp_err"; then | |
12683 | : | |
12684 | else | |
12685 | echo "$as_me: failed program was:" >&5 | |
12686 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12687 | ||
12688 | # Broken: fails on valid input. | |
12689 | continue | |
12690 | fi | |
12691 | rm -f conftest.err conftest.$ac_ext | |
12692 | ||
12693 | # OK, works on sane cases. Now check whether non-existent headers | |
12694 | # can be detected and how. | |
12695 | cat >conftest.$ac_ext <<_ACEOF | |
12696 | /* confdefs.h. */ | |
12697 | _ACEOF | |
12698 | cat confdefs.h >>conftest.$ac_ext | |
12699 | cat >>conftest.$ac_ext <<_ACEOF | |
12700 | /* end confdefs.h. */ | |
12701 | #include <ac_nonexistent.h> | |
12702 | _ACEOF | |
12703 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12704 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12705 | ac_status=$? | |
12706 | grep -v '^ *+' conftest.er1 >conftest.err | |
12707 | rm -f conftest.er1 | |
12708 | cat conftest.err >&5 | |
12709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12710 | (exit $ac_status); } >/dev/null; then | |
12711 | if test -s conftest.err; then | |
12712 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12713 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12714 | else |
12715 | ac_cpp_err= | |
12716 | fi | |
12717 | else | |
12718 | ac_cpp_err=yes | |
12719 | fi | |
12720 | if test -z "$ac_cpp_err"; then | |
12721 | # Broken: success on invalid input. | |
12722 | continue | |
12723 | else | |
12724 | echo "$as_me: failed program was:" >&5 | |
12725 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12726 | ||
12727 | # Passes both tests. | |
12728 | ac_preproc_ok=: | |
12729 | break | |
12730 | fi | |
12731 | rm -f conftest.err conftest.$ac_ext | |
12732 | ||
12733 | done | |
12734 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12735 | rm -f conftest.err conftest.$ac_ext | |
12736 | if $ac_preproc_ok; then | |
12737 | : | |
12738 | else | |
12739 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
12740 | See \`config.log' for more details." >&5 | |
12741 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
12742 | See \`config.log' for more details." >&2;} | |
12743 | { (exit 1); exit 1; }; } | |
12744 | fi | |
12745 | ||
12746 | ac_ext=c | |
12747 | ac_cpp='$CPP $CPPFLAGS' | |
12748 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12749 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12750 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12751 | ||
12752 | ||
12753 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
12754 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
12755 | if test "${ac_cv_prog_egrep+set}" = set; then | |
12756 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12757 | else | |
12758 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
12759 | then ac_cv_prog_egrep='grep -E' | |
12760 | else ac_cv_prog_egrep='egrep' | |
12761 | fi | |
12762 | fi | |
12763 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
12764 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
12765 | EGREP=$ac_cv_prog_egrep | |
12766 | ||
12767 | ||
12768 | if test $ac_cv_c_compiler_gnu = yes; then | |
12769 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
12770 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
12771 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
12772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12773 | else | |
12774 | ac_pattern="Autoconf.*'x'" | |
12775 | cat >conftest.$ac_ext <<_ACEOF | |
12776 | /* confdefs.h. */ | |
12777 | _ACEOF | |
12778 | cat confdefs.h >>conftest.$ac_ext | |
12779 | cat >>conftest.$ac_ext <<_ACEOF | |
12780 | /* end confdefs.h. */ | |
12781 | #include <sgtty.h> | |
12782 | Autoconf TIOCGETP | |
12783 | _ACEOF | |
12784 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12785 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
12786 | ac_cv_prog_gcc_traditional=yes | |
12787 | else | |
12788 | ac_cv_prog_gcc_traditional=no | |
12789 | fi | |
12790 | rm -f conftest* | |
12791 | ||
12792 | ||
12793 | if test $ac_cv_prog_gcc_traditional = no; then | |
12794 | cat >conftest.$ac_ext <<_ACEOF | |
12795 | /* confdefs.h. */ | |
12796 | _ACEOF | |
12797 | cat confdefs.h >>conftest.$ac_ext | |
12798 | cat >>conftest.$ac_ext <<_ACEOF | |
12799 | /* end confdefs.h. */ | |
12800 | #include <termio.h> | |
12801 | Autoconf TCGETA | |
12802 | _ACEOF | |
12803 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12804 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
12805 | ac_cv_prog_gcc_traditional=yes | |
12806 | fi | |
12807 | rm -f conftest* | |
12808 | ||
12809 | fi | |
12810 | fi | |
12811 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
12812 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
12813 | if test $ac_cv_prog_gcc_traditional = yes; then | |
12814 | CC="$CC -traditional" | |
12815 | fi | |
12816 | fi | |
12817 | ||
12818 | ||
12819 | ||
12820 | ||
12821 | ac_ext=cc | |
12822 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12823 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12824 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12825 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12826 | ||
12827 | ||
12828 | CXXFLAGS=${CXXFLAGS:=} | |
6dcfc289 DE |
12829 | |
12830 | ||
3006edc0 | 12831 | |
6dcfc289 | 12832 | ac_ext=cc |
a848cd7e SC |
12833 | ac_cpp='$CXXCPP $CPPFLAGS' |
12834 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12835 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12836 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12837 | if test -n "$ac_tool_prefix"; then | |
12838 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
12839 | do | |
12840 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
12841 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
12842 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12843 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12844 | if test "${ac_cv_prog_CXX+set}" = set; then | |
12845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12846 | else | |
12847 | if test -n "$CXX"; then | |
12848 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
12849 | else | |
12850 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12851 | for as_dir in $PATH | |
12852 | do | |
12853 | IFS=$as_save_IFS | |
12854 | test -z "$as_dir" && as_dir=. | |
12855 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12856 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12857 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
12858 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12859 | break 2 | |
12860 | fi | |
12861 | done | |
12862 | done | |
12863 | ||
12864 | fi | |
12865 | fi | |
12866 | CXX=$ac_cv_prog_CXX | |
12867 | if test -n "$CXX"; then | |
12868 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
12869 | echo "${ECHO_T}$CXX" >&6 | |
12870 | else | |
12871 | echo "$as_me:$LINENO: result: no" >&5 | |
12872 | echo "${ECHO_T}no" >&6 | |
12873 | fi | |
12874 | ||
12875 | test -n "$CXX" && break | |
12876 | done | |
12877 | fi | |
12878 | if test -z "$CXX"; then | |
12879 | ac_ct_CXX=$CXX | |
12880 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
12881 | do | |
12882 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
12883 | set dummy $ac_prog; ac_word=$2 | |
12884 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12885 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12886 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
12887 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12888 | else | |
12889 | if test -n "$ac_ct_CXX"; then | |
12890 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
12891 | else | |
12892 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12893 | for as_dir in $PATH | |
12894 | do | |
12895 | IFS=$as_save_IFS | |
12896 | test -z "$as_dir" && as_dir=. | |
12897 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12898 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12899 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
12900 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12901 | break 2 | |
12902 | fi | |
12903 | done | |
12904 | done | |
12905 | ||
12906 | fi | |
12907 | fi | |
12908 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
12909 | if test -n "$ac_ct_CXX"; then | |
12910 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
12911 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
12912 | else | |
12913 | echo "$as_me:$LINENO: result: no" >&5 | |
12914 | echo "${ECHO_T}no" >&6 | |
12915 | fi | |
12916 | ||
12917 | test -n "$ac_ct_CXX" && break | |
12918 | done | |
12919 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
12920 | ||
12921 | CXX=$ac_ct_CXX | |
12922 | fi | |
12923 | ||
12924 | ||
12925 | # Provide some information about the compiler. | |
12926 | echo "$as_me:$LINENO:" \ | |
12927 | "checking for C++ compiler version" >&5 | |
12928 | ac_compiler=`set X $ac_compile; echo $2` | |
12929 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
12930 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
12931 | ac_status=$? | |
12932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12933 | (exit $ac_status); } | |
12934 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
12935 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
12936 | ac_status=$? | |
12937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12938 | (exit $ac_status); } | |
12939 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
12940 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
12941 | ac_status=$? | |
12942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12943 | (exit $ac_status); } | |
12944 | ||
12945 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
12946 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
12947 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
12948 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12949 | else | |
12950 | cat >conftest.$ac_ext <<_ACEOF | |
12951 | /* confdefs.h. */ | |
12952 | _ACEOF | |
12953 | cat confdefs.h >>conftest.$ac_ext | |
12954 | cat >>conftest.$ac_ext <<_ACEOF | |
12955 | /* end confdefs.h. */ | |
12956 | ||
12957 | int | |
12958 | main () | |
12959 | { | |
12960 | #ifndef __GNUC__ | |
12961 | choke me | |
12962 | #endif | |
12963 | ||
12964 | ; | |
12965 | return 0; | |
12966 | } | |
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); } && | |
0093c2fc | 12977 | { ac_try='test -z "$ac_cxx_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_compiler_gnu=yes | |
12990 | else | |
12991 | echo "$as_me: failed program was:" >&5 | |
12992 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12993 | ||
12994 | ac_compiler_gnu=no | |
12995 | fi | |
ac1cb8d3 | 12996 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12997 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
12998 | ||
12999 | fi | |
13000 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
13001 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
13002 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
13003 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
13004 | ac_save_CXXFLAGS=$CXXFLAGS | |
13005 | CXXFLAGS="-g" | |
13006 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
13007 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
13008 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
13009 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13010 | else | |
13011 | cat >conftest.$ac_ext <<_ACEOF | |
13012 | /* confdefs.h. */ | |
13013 | _ACEOF | |
13014 | cat confdefs.h >>conftest.$ac_ext | |
13015 | cat >>conftest.$ac_ext <<_ACEOF | |
13016 | /* end confdefs.h. */ | |
13017 | ||
13018 | int | |
13019 | main () | |
13020 | { | |
13021 | ||
13022 | ; | |
13023 | return 0; | |
13024 | } | |
13025 | _ACEOF | |
13026 | rm -f conftest.$ac_objext | |
13027 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13028 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13029 | ac_status=$? |
ac1cb8d3 VS |
13030 | grep -v '^ *+' conftest.er1 >conftest.err |
13031 | rm -f conftest.er1 | |
13032 | cat conftest.err >&5 | |
a848cd7e SC |
13033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13034 | (exit $ac_status); } && | |
0093c2fc | 13035 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13037 | (eval $ac_try) 2>&5 | |
13038 | ac_status=$? | |
13039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13040 | (exit $ac_status); }; } && | |
13041 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13043 | (eval $ac_try) 2>&5 | |
13044 | ac_status=$? | |
13045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13046 | (exit $ac_status); }; }; then | |
13047 | ac_cv_prog_cxx_g=yes | |
13048 | else | |
13049 | echo "$as_me: failed program was:" >&5 | |
13050 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13051 | ||
13052 | ac_cv_prog_cxx_g=no | |
13053 | fi | |
ac1cb8d3 | 13054 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13055 | fi |
13056 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
13057 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
13058 | if test "$ac_test_CXXFLAGS" = set; then | |
13059 | CXXFLAGS=$ac_save_CXXFLAGS | |
13060 | elif test $ac_cv_prog_cxx_g = yes; then | |
13061 | if test "$GXX" = yes; then | |
1c14217d | 13062 | CXXFLAGS="-g -O2" |
a848cd7e | 13063 | else |
1c14217d | 13064 | CXXFLAGS="-g" |
a848cd7e SC |
13065 | fi |
13066 | else | |
13067 | if test "$GXX" = yes; then | |
13068 | CXXFLAGS="-O2" | |
13069 | else | |
13070 | CXXFLAGS= | |
13071 | fi | |
13072 | fi | |
13073 | for ac_declaration in \ | |
ac1cb8d3 | 13074 | '' \ |
a848cd7e SC |
13075 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
13076 | 'extern "C" void std::exit (int); using std::exit;' \ | |
13077 | 'extern "C" void exit (int) throw ();' \ | |
13078 | 'extern "C" void exit (int);' \ | |
13079 | 'void exit (int);' | |
13080 | do | |
13081 | cat >conftest.$ac_ext <<_ACEOF | |
13082 | /* confdefs.h. */ | |
13083 | _ACEOF | |
13084 | cat confdefs.h >>conftest.$ac_ext | |
13085 | cat >>conftest.$ac_ext <<_ACEOF | |
13086 | /* end confdefs.h. */ | |
de59c161 | 13087 | $ac_declaration |
ac1cb8d3 | 13088 | #include <stdlib.h> |
a848cd7e SC |
13089 | int |
13090 | main () | |
13091 | { | |
13092 | exit (42); | |
13093 | ; | |
13094 | return 0; | |
13095 | } | |
13096 | _ACEOF | |
13097 | rm -f conftest.$ac_objext | |
13098 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13099 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13100 | ac_status=$? |
ac1cb8d3 VS |
13101 | grep -v '^ *+' conftest.er1 >conftest.err |
13102 | rm -f conftest.er1 | |
13103 | cat conftest.err >&5 | |
a848cd7e SC |
13104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13105 | (exit $ac_status); } && | |
0093c2fc | 13106 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13108 | (eval $ac_try) 2>&5 | |
13109 | ac_status=$? | |
13110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13111 | (exit $ac_status); }; } && | |
13112 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13114 | (eval $ac_try) 2>&5 | |
13115 | ac_status=$? | |
13116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13117 | (exit $ac_status); }; }; then | |
13118 | : | |
13119 | else | |
13120 | echo "$as_me: failed program was:" >&5 | |
13121 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13122 | ||
13123 | continue | |
13124 | fi | |
ac1cb8d3 | 13125 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13126 | cat >conftest.$ac_ext <<_ACEOF |
13127 | /* confdefs.h. */ | |
13128 | _ACEOF | |
13129 | cat confdefs.h >>conftest.$ac_ext | |
13130 | cat >>conftest.$ac_ext <<_ACEOF | |
13131 | /* end confdefs.h. */ | |
13132 | $ac_declaration | |
13133 | int | |
13134 | main () | |
13135 | { | |
13136 | exit (42); | |
13137 | ; | |
13138 | return 0; | |
13139 | } | |
13140 | _ACEOF | |
13141 | rm -f conftest.$ac_objext | |
13142 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13143 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13144 | ac_status=$? |
ac1cb8d3 VS |
13145 | grep -v '^ *+' conftest.er1 >conftest.err |
13146 | rm -f conftest.er1 | |
13147 | cat conftest.err >&5 | |
a848cd7e SC |
13148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13149 | (exit $ac_status); } && | |
0093c2fc | 13150 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13152 | (eval $ac_try) 2>&5 | |
13153 | ac_status=$? | |
13154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13155 | (exit $ac_status); }; } && | |
13156 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13158 | (eval $ac_try) 2>&5 | |
13159 | ac_status=$? | |
13160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13161 | (exit $ac_status); }; }; then | |
13162 | break | |
13163 | else | |
13164 | echo "$as_me: failed program was:" >&5 | |
13165 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13166 | ||
13167 | fi | |
ac1cb8d3 | 13168 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13169 | done |
13170 | rm -f conftest* | |
13171 | if test -n "$ac_declaration"; then | |
13172 | echo '#ifdef __cplusplus' >>confdefs.h | |
13173 | echo $ac_declaration >>confdefs.h | |
13174 | echo '#endif' >>confdefs.h | |
13175 | fi | |
13176 | ||
13177 | ac_ext=cc | |
13178 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13179 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13180 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13181 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13182 | ||
ab0ad5f1 VZ |
13183 | |
13184 | ||
13185 | ac_ext=cc | |
13186 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13187 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13188 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13189 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13190 | ||
13191 | echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5 | |
13192 | echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6 | |
13193 | if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then | |
13194 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13195 | else | |
13196 | cat >conftest.$ac_ext <<_ACEOF | |
13197 | /* confdefs.h. */ | |
13198 | _ACEOF | |
13199 | cat confdefs.h >>conftest.$ac_ext | |
13200 | cat >>conftest.$ac_ext <<_ACEOF | |
13201 | /* end confdefs.h. */ | |
13202 | ||
13203 | int | |
13204 | main () | |
13205 | { | |
13206 | ||
13207 | #ifndef __INTEL_COMPILER | |
13208 | choke me | |
13209 | #endif | |
13210 | ||
13211 | ; | |
13212 | return 0; | |
13213 | } | |
13214 | _ACEOF | |
13215 | rm -f conftest.$ac_objext | |
13216 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13217 | (eval $ac_compile) 2>conftest.er1 | |
13218 | ac_status=$? | |
13219 | grep -v '^ *+' conftest.er1 >conftest.err | |
13220 | rm -f conftest.er1 | |
13221 | cat conftest.err >&5 | |
13222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13223 | (exit $ac_status); } && | |
0093c2fc | 13224 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ab0ad5f1 VZ |
13225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13226 | (eval $ac_try) 2>&5 | |
13227 | ac_status=$? | |
13228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13229 | (exit $ac_status); }; } && | |
13230 | { ac_try='test -s conftest.$ac_objext' | |
13231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13232 | (eval $ac_try) 2>&5 | |
13233 | ac_status=$? | |
13234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13235 | (exit $ac_status); }; }; then | |
13236 | bakefile_cv_cxx_compiler___INTEL_COMPILER=yes | |
13237 | else | |
13238 | echo "$as_me: failed program was:" >&5 | |
13239 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13240 | ||
13241 | bakefile_cv_cxx_compiler___INTEL_COMPILER=no | |
13242 | ||
13243 | fi | |
13244 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13245 | ||
13246 | ||
13247 | fi | |
13248 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5 | |
13249 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6 | |
13250 | ac_ext=cc | |
13251 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13252 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13253 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13254 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13255 | ||
13256 | if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then | |
13257 | :; INTELCXX=yes | |
13258 | else | |
13259 | :; | |
13260 | fi | |
13261 | ||
13262 | ||
3006edc0 VZ |
13263 | if test "x$GCXX" != "xyes"; then |
13264 | if test "xCXX" = "xC"; then | |
13265 | echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5 | |
480ccd21 | 13266 | echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6 |
0093c2fc | 13267 | if test "${bakefile_cv_cxx_exto+set}" = set; then |
480ccd21 DE |
13268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13269 | else | |
13270 | cat >conftest.$ac_ext <<_ACEOF | |
13271 | /* confdefs.h. */ | |
13272 | _ACEOF | |
13273 | cat confdefs.h >>conftest.$ac_ext | |
13274 | cat >>conftest.$ac_ext <<_ACEOF | |
13275 | /* end confdefs.h. */ | |
13276 | ||
13277 | int | |
13278 | main () | |
13279 | { | |
13280 | ||
13281 | ; | |
13282 | return 0; | |
13283 | } | |
13284 | _ACEOF | |
13285 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
13286 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13287 | (eval $ac_compile) 2>&5 | |
13288 | ac_status=$? | |
13289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13290 | (exit $ac_status); }; then | |
13291 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
13292 | case $ac_file in | |
13293 | conftest.$ac_ext.o) | |
0093c2fc | 13294 | bakefile_cv_cxx_exto="-ext o" |
480ccd21 DE |
13295 | ;; |
13296 | *) | |
13297 | ;; | |
13298 | esac | |
13299 | done | |
13300 | else | |
13301 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
13302 | See \`config.log' for more details." >&5 | |
13303 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
13304 | See \`config.log' for more details." >&2;} | |
13305 | { (exit 1); exit 1; }; } | |
13306 | ||
13307 | fi | |
13308 | ||
13309 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
13310 | ||
13311 | fi | |
0093c2fc VZ |
13312 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5 |
13313 | echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6 | |
13314 | if test "x$bakefile_cv_cxx_exto" '!=' "x"; then | |
480ccd21 | 13315 | if test "cxx" = "c"; then |
0093c2fc | 13316 | CFLAGS="$bakefile_cv_cxx_exto $CFLAGS" |
480ccd21 DE |
13317 | fi |
13318 | if test "cxx" = "cxx"; then | |
0093c2fc | 13319 | CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS" |
480ccd21 DE |
13320 | fi |
13321 | fi | |
13322 | ||
0093c2fc | 13323 | if test "x$bakefile_cv_c_exto" '!=' "x"; then |
3006edc0 VZ |
13324 | unset ac_cv_prog_cc_g |
13325 | ac_test_CFLAGS=${CFLAGS+set} | |
13326 | ac_save_CFLAGS=$CFLAGS | |
13327 | CFLAGS="-g" | |
13328 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
13329 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
13330 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
480ccd21 DE |
13331 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13332 | else | |
13333 | cat >conftest.$ac_ext <<_ACEOF | |
13334 | /* confdefs.h. */ | |
13335 | _ACEOF | |
13336 | cat confdefs.h >>conftest.$ac_ext | |
13337 | cat >>conftest.$ac_ext <<_ACEOF | |
13338 | /* end confdefs.h. */ | |
13339 | ||
13340 | int | |
13341 | main () | |
13342 | { | |
13343 | ||
13344 | ; | |
13345 | return 0; | |
13346 | } | |
13347 | _ACEOF | |
13348 | rm -f conftest.$ac_objext | |
13349 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13350 | (eval $ac_compile) 2>conftest.er1 | |
13351 | ac_status=$? | |
13352 | grep -v '^ *+' conftest.er1 >conftest.err | |
13353 | rm -f conftest.er1 | |
13354 | cat conftest.err >&5 | |
13355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13356 | (exit $ac_status); } && | |
0093c2fc | 13357 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
480ccd21 DE |
13358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13359 | (eval $ac_try) 2>&5 | |
13360 | ac_status=$? | |
13361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13362 | (exit $ac_status); }; } && | |
13363 | { ac_try='test -s conftest.$ac_objext' | |
13364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13365 | (eval $ac_try) 2>&5 | |
13366 | ac_status=$? | |
13367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13368 | (exit $ac_status); }; }; then | |
3006edc0 | 13369 | ac_cv_prog_cc_g=yes |
480ccd21 DE |
13370 | else |
13371 | echo "$as_me: failed program was:" >&5 | |
13372 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13373 | ||
3006edc0 | 13374 | ac_cv_prog_cc_g=no |
480ccd21 DE |
13375 | fi |
13376 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13377 | fi | |
3006edc0 VZ |
13378 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
13379 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
13380 | if test "$ac_test_CFLAGS" = set; then | |
13381 | CFLAGS=$ac_save_CFLAGS | |
13382 | elif test $ac_cv_prog_cc_g = yes; then | |
13383 | if test "$GCC" = yes; then | |
13384 | CFLAGS="-g -O2" | |
480ccd21 | 13385 | else |
3006edc0 | 13386 | CFLAGS="-g" |
480ccd21 DE |
13387 | fi |
13388 | else | |
3006edc0 VZ |
13389 | if test "$GCC" = yes; then |
13390 | CFLAGS="-O2" | |
480ccd21 | 13391 | else |
3006edc0 | 13392 | CFLAGS= |
480ccd21 DE |
13393 | fi |
13394 | fi | |
3006edc0 | 13395 | fi |
ab0ad5f1 | 13396 | fi |
3006edc0 VZ |
13397 | |
13398 | case `uname -s` in | |
13399 | AIX*) | |
13400 | ac_ext=cc | |
13401 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13402 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13403 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13404 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13405 | ||
13406 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5 | |
13407 | echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6 | |
0093c2fc | 13408 | if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then |
3006edc0 VZ |
13409 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13410 | else | |
13411 | cat >conftest.$ac_ext <<_ACEOF | |
13412 | /* confdefs.h. */ | |
13413 | _ACEOF | |
13414 | cat confdefs.h >>conftest.$ac_ext | |
13415 | cat >>conftest.$ac_ext <<_ACEOF | |
13416 | /* end confdefs.h. */ | |
13417 | ||
13418 | int | |
13419 | main () | |
13420 | { | |
13421 | #ifndef __xlC__ | |
13422 | choke me | |
13423 | #endif | |
13424 | ||
13425 | ; | |
13426 | return 0; | |
13427 | } | |
13428 | _ACEOF | |
13429 | rm -f conftest.$ac_objext | |
13430 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13431 | (eval $ac_compile) 2>conftest.er1 | |
13432 | ac_status=$? | |
13433 | grep -v '^ *+' conftest.er1 >conftest.err | |
13434 | rm -f conftest.er1 | |
13435 | cat conftest.err >&5 | |
13436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13437 | (exit $ac_status); } && | |
0093c2fc | 13438 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
3006edc0 VZ |
13439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13440 | (eval $ac_try) 2>&5 | |
13441 | ac_status=$? | |
13442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13443 | (exit $ac_status); }; } && | |
13444 | { ac_try='test -s conftest.$ac_objext' | |
13445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13446 | (eval $ac_try) 2>&5 | |
13447 | ac_status=$? | |
13448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13449 | (exit $ac_status); }; }; then | |
0093c2fc | 13450 | bakefile_compiler_xlc=yes |
3006edc0 VZ |
13451 | else |
13452 | echo "$as_me: failed program was:" >&5 | |
13453 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13454 | ||
0093c2fc | 13455 | bakefile_compiler_xlc=no |
3006edc0 VZ |
13456 | fi |
13457 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 13458 | bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc |
3006edc0 VZ |
13459 | |
13460 | fi | |
0093c2fc VZ |
13461 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5 |
13462 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6 | |
3006edc0 | 13463 | |
0093c2fc | 13464 | XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes` |
3006edc0 VZ |
13465 | ac_ext=cc |
13466 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13467 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13468 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13469 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13470 | ||
13471 | ||
13472 | ;; | |
13473 | ||
13474 | Darwin) | |
13475 | ac_ext=cc | |
95986553 DE |
13476 | ac_cpp='$CXXCPP $CPPFLAGS' |
13477 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13478 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13479 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13480 | ||
13481 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5 | |
13482 | echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6 | |
13483 | if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then | |
13484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13485 | else | |
13486 | cat >conftest.$ac_ext <<_ACEOF | |
13487 | /* confdefs.h. */ | |
13488 | _ACEOF | |
13489 | cat confdefs.h >>conftest.$ac_ext | |
13490 | cat >>conftest.$ac_ext <<_ACEOF | |
13491 | /* end confdefs.h. */ | |
13492 | ||
13493 | int | |
13494 | main () | |
13495 | { | |
13496 | #ifndef __MWERKS__ | |
13497 | choke me | |
13498 | #endif | |
13499 | ||
13500 | ; | |
13501 | return 0; | |
13502 | } | |
13503 | _ACEOF | |
13504 | rm -f conftest.$ac_objext | |
13505 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13506 | (eval $ac_compile) 2>conftest.er1 | |
13507 | ac_status=$? | |
13508 | grep -v '^ *+' conftest.er1 >conftest.err | |
13509 | rm -f conftest.er1 | |
13510 | cat conftest.err >&5 | |
13511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13512 | (exit $ac_status); } && | |
0093c2fc | 13513 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
95986553 DE |
13514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13515 | (eval $ac_try) 2>&5 | |
13516 | ac_status=$? | |
13517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13518 | (exit $ac_status); }; } && | |
13519 | { ac_try='test -s conftest.$ac_objext' | |
13520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13521 | (eval $ac_try) 2>&5 | |
13522 | ac_status=$? | |
13523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13524 | (exit $ac_status); }; }; then | |
13525 | bakefile_compiler_mwerks=yes | |
13526 | else | |
13527 | echo "$as_me: failed program was:" >&5 | |
13528 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13529 | ||
13530 | bakefile_compiler_mwerks=no | |
13531 | fi | |
13532 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13533 | bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks | |
13534 | ||
13535 | fi | |
13536 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5 | |
13537 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6 | |
13538 | ||
0e6fa1d9 | 13539 | MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes` |
95986553 DE |
13540 | ac_ext=cc |
13541 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13542 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13543 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13544 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13545 | ||
13546 | ||
3006edc0 | 13547 | ac_ext=cc |
9273ffba DE |
13548 | ac_cpp='$CXXCPP $CPPFLAGS' |
13549 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13550 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13551 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13552 | ||
13553 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5 | |
13554 | echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6 | |
0093c2fc | 13555 | if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then |
9273ffba DE |
13556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13557 | else | |
13558 | cat >conftest.$ac_ext <<_ACEOF | |
13559 | /* confdefs.h. */ | |
13560 | _ACEOF | |
13561 | cat confdefs.h >>conftest.$ac_ext | |
13562 | cat >>conftest.$ac_ext <<_ACEOF | |
13563 | /* end confdefs.h. */ | |
13564 | ||
13565 | int | |
13566 | main () | |
13567 | { | |
13568 | #ifndef __xlC__ | |
13569 | choke me | |
13570 | #endif | |
13571 | ||
13572 | ; | |
13573 | return 0; | |
13574 | } | |
13575 | _ACEOF | |
13576 | rm -f conftest.$ac_objext | |
13577 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13578 | (eval $ac_compile) 2>conftest.er1 | |
13579 | ac_status=$? | |
13580 | grep -v '^ *+' conftest.er1 >conftest.err | |
13581 | rm -f conftest.er1 | |
13582 | cat conftest.err >&5 | |
13583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13584 | (exit $ac_status); } && | |
0093c2fc | 13585 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
9273ffba DE |
13586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13587 | (eval $ac_try) 2>&5 | |
13588 | ac_status=$? | |
13589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13590 | (exit $ac_status); }; } && | |
13591 | { ac_try='test -s conftest.$ac_objext' | |
13592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13593 | (eval $ac_try) 2>&5 | |
13594 | ac_status=$? | |
13595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13596 | (exit $ac_status); }; }; then | |
0093c2fc | 13597 | bakefile_compiler_xlc=yes |
9273ffba DE |
13598 | else |
13599 | echo "$as_me: failed program was:" >&5 | |
13600 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13601 | ||
0093c2fc | 13602 | bakefile_compiler_xlc=no |
9273ffba DE |
13603 | fi |
13604 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 13605 | bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc |
9273ffba DE |
13606 | |
13607 | fi | |
0093c2fc VZ |
13608 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5 |
13609 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6 | |
9273ffba | 13610 | |
0093c2fc | 13611 | XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes` |
9273ffba DE |
13612 | ac_ext=cc |
13613 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13614 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13615 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13616 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13617 | ||
13618 | ||
3006edc0 VZ |
13619 | ;; |
13620 | ||
13621 | IRIX*) | |
95986553 | 13622 | |
6dcfc289 | 13623 | |
0ad5d837 VZ |
13624 | ac_ext=cc |
13625 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13626 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13627 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13628 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13629 | ||
13630 | echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5 | |
13631 | echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6 | |
13632 | if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then | |
13633 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13634 | else | |
13635 | cat >conftest.$ac_ext <<_ACEOF | |
13636 | /* confdefs.h. */ | |
13637 | _ACEOF | |
13638 | cat confdefs.h >>conftest.$ac_ext | |
13639 | cat >>conftest.$ac_ext <<_ACEOF | |
13640 | /* end confdefs.h. */ | |
13641 | ||
13642 | int | |
13643 | main () | |
13644 | { | |
13645 | ||
13646 | #ifndef _SGI_COMPILER_VERSION | |
13647 | choke me | |
13648 | #endif | |
13649 | ||
13650 | ; | |
13651 | return 0; | |
13652 | } | |
13653 | _ACEOF | |
13654 | rm -f conftest.$ac_objext | |
13655 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13656 | (eval $ac_compile) 2>conftest.er1 | |
13657 | ac_status=$? | |
13658 | grep -v '^ *+' conftest.er1 >conftest.err | |
13659 | rm -f conftest.er1 | |
13660 | cat conftest.err >&5 | |
13661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13662 | (exit $ac_status); } && | |
0093c2fc | 13663 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
0ad5d837 VZ |
13664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13665 | (eval $ac_try) 2>&5 | |
13666 | ac_status=$? | |
13667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13668 | (exit $ac_status); }; } && | |
13669 | { ac_try='test -s conftest.$ac_objext' | |
13670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13671 | (eval $ac_try) 2>&5 | |
13672 | ac_status=$? | |
13673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13674 | (exit $ac_status); }; }; then | |
13675 | bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes | |
13676 | else | |
13677 | echo "$as_me: failed program was:" >&5 | |
13678 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13679 | ||
13680 | bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no | |
13681 | ||
13682 | fi | |
13683 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13684 | ||
13685 | ||
13686 | fi | |
13687 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5 | |
13688 | echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6 | |
13689 | ac_ext=cc | |
13690 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13691 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13692 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13693 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13694 | ||
13695 | if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then | |
13696 | :; SGICXX=yes | |
13697 | else | |
13698 | :; | |
13699 | fi | |
13700 | ||
13701 | ||
3006edc0 VZ |
13702 | ;; |
13703 | ||
0093c2fc | 13704 | HP-UX*) |
3006edc0 VZ |
13705 | |
13706 | ||
13707 | ac_ext=cc | |
13708 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13709 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13710 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13711 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13712 | ||
0093c2fc VZ |
13713 | echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5 |
13714 | echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6 | |
13715 | if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then | |
3006edc0 VZ |
13716 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13717 | else | |
13718 | cat >conftest.$ac_ext <<_ACEOF | |
13719 | /* confdefs.h. */ | |
13720 | _ACEOF | |
13721 | cat confdefs.h >>conftest.$ac_ext | |
13722 | cat >>conftest.$ac_ext <<_ACEOF | |
13723 | /* end confdefs.h. */ | |
13724 | ||
13725 | int | |
13726 | main () | |
13727 | { | |
13728 | ||
0093c2fc | 13729 | #ifndef __HP_aCC |
3006edc0 VZ |
13730 | choke me |
13731 | #endif | |
13732 | ||
13733 | ; | |
13734 | return 0; | |
13735 | } | |
13736 | _ACEOF | |
13737 | rm -f conftest.$ac_objext | |
13738 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13739 | (eval $ac_compile) 2>conftest.er1 | |
13740 | ac_status=$? | |
13741 | grep -v '^ *+' conftest.er1 >conftest.err | |
13742 | rm -f conftest.er1 | |
13743 | cat conftest.err >&5 | |
13744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13745 | (exit $ac_status); } && | |
0093c2fc | 13746 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
3006edc0 VZ |
13747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13748 | (eval $ac_try) 2>&5 | |
13749 | ac_status=$? | |
13750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13751 | (exit $ac_status); }; } && | |
13752 | { ac_try='test -s conftest.$ac_objext' | |
13753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13754 | (eval $ac_try) 2>&5 | |
13755 | ac_status=$? | |
13756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13757 | (exit $ac_status); }; }; then | |
0093c2fc | 13758 | bakefile_cv_cxx_compiler___HP_aCC=yes |
3006edc0 VZ |
13759 | else |
13760 | echo "$as_me: failed program was:" >&5 | |
13761 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13762 | ||
0093c2fc | 13763 | bakefile_cv_cxx_compiler___HP_aCC=no |
3006edc0 VZ |
13764 | |
13765 | fi | |
13766 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13767 | ||
13768 | ||
13769 | fi | |
0093c2fc VZ |
13770 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5 |
13771 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6 | |
3006edc0 VZ |
13772 | ac_ext=cc |
13773 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13774 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13775 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13776 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13777 | ||
0093c2fc VZ |
13778 | if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then |
13779 | :; HPCXX=yes | |
a1aa0349 VZ |
13780 | else |
13781 | :; | |
13782 | fi | |
13783 | ||
13784 | ||
13785 | ;; | |
13786 | ||
0093c2fc | 13787 | OSF1) |
a1aa0349 VZ |
13788 | |
13789 | ||
13790 | ac_ext=cc | |
13791 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13792 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13793 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13794 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13795 | ||
0093c2fc VZ |
13796 | echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5 |
13797 | echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6 | |
13798 | if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then | |
a1aa0349 VZ |
13799 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13800 | else | |
13801 | cat >conftest.$ac_ext <<_ACEOF | |
13802 | /* confdefs.h. */ | |
13803 | _ACEOF | |
13804 | cat confdefs.h >>conftest.$ac_ext | |
13805 | cat >>conftest.$ac_ext <<_ACEOF | |
13806 | /* end confdefs.h. */ | |
13807 | ||
13808 | int | |
13809 | main () | |
13810 | { | |
13811 | ||
0093c2fc | 13812 | #ifndef __DECCXX |
a1aa0349 VZ |
13813 | choke me |
13814 | #endif | |
13815 | ||
13816 | ; | |
13817 | return 0; | |
13818 | } | |
13819 | _ACEOF | |
13820 | rm -f conftest.$ac_objext | |
13821 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13822 | (eval $ac_compile) 2>conftest.er1 | |
13823 | ac_status=$? | |
13824 | grep -v '^ *+' conftest.er1 >conftest.err | |
13825 | rm -f conftest.er1 | |
13826 | cat conftest.err >&5 | |
13827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13828 | (exit $ac_status); } && | |
0093c2fc | 13829 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
a1aa0349 VZ |
13830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13831 | (eval $ac_try) 2>&5 | |
13832 | ac_status=$? | |
13833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13834 | (exit $ac_status); }; } && | |
13835 | { ac_try='test -s conftest.$ac_objext' | |
13836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13837 | (eval $ac_try) 2>&5 | |
13838 | ac_status=$? | |
13839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13840 | (exit $ac_status); }; }; then | |
0093c2fc | 13841 | bakefile_cv_cxx_compiler___DECCXX=yes |
a1aa0349 VZ |
13842 | else |
13843 | echo "$as_me: failed program was:" >&5 | |
13844 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13845 | ||
0093c2fc | 13846 | bakefile_cv_cxx_compiler___DECCXX=no |
a1aa0349 VZ |
13847 | |
13848 | fi | |
13849 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13850 | ||
13851 | ||
13852 | fi | |
0093c2fc VZ |
13853 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5 |
13854 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6 | |
a1aa0349 VZ |
13855 | ac_ext=cc |
13856 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13857 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13858 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13859 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13860 | ||
0093c2fc VZ |
13861 | if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then |
13862 | :; COMPAQCXX=yes | |
13863 | else | |
13864 | :; | |
13865 | fi | |
13866 | ||
13867 | ||
13868 | ;; | |
13869 | ||
13870 | SunOS) | |
13871 | ||
13872 | ||
13873 | ac_ext=cc | |
13874 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13875 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13876 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13877 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13878 | ||
13879 | echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5 | |
13880 | echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6 | |
13881 | if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then | |
13882 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13883 | else | |
13884 | cat >conftest.$ac_ext <<_ACEOF | |
13885 | /* confdefs.h. */ | |
13886 | _ACEOF | |
13887 | cat confdefs.h >>conftest.$ac_ext | |
13888 | cat >>conftest.$ac_ext <<_ACEOF | |
13889 | /* end confdefs.h. */ | |
13890 | ||
13891 | int | |
13892 | main () | |
13893 | { | |
13894 | ||
13895 | #ifndef __SUNPRO_CC | |
13896 | choke me | |
13897 | #endif | |
13898 | ||
13899 | ; | |
13900 | return 0; | |
13901 | } | |
13902 | _ACEOF | |
13903 | rm -f conftest.$ac_objext | |
13904 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13905 | (eval $ac_compile) 2>conftest.er1 | |
13906 | ac_status=$? | |
13907 | grep -v '^ *+' conftest.er1 >conftest.err | |
13908 | rm -f conftest.er1 | |
13909 | cat conftest.err >&5 | |
13910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13911 | (exit $ac_status); } && | |
13912 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
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_objext' | |
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 | bakefile_cv_cxx_compiler___SUNPRO_CC=yes | |
13925 | else | |
13926 | echo "$as_me: failed program was:" >&5 | |
13927 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13928 | ||
13929 | bakefile_cv_cxx_compiler___SUNPRO_CC=no | |
13930 | ||
13931 | fi | |
13932 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13933 | ||
13934 | ||
13935 | fi | |
13936 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5 | |
13937 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6 | |
13938 | ac_ext=cc | |
13939 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13940 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13941 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13942 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13943 | ||
13944 | if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then | |
13945 | :; SUNCXX=yes | |
3006edc0 VZ |
13946 | else |
13947 | :; | |
ab0ad5f1 | 13948 | fi |
a9e5b1f0 MW |
13949 | |
13950 | ||
3006edc0 VZ |
13951 | ;; |
13952 | esac | |
13953 | fi | |
13954 | ||
13955 | ||
13956 | ||
a848cd7e SC |
13957 | ac_ext=c |
13958 | ac_cpp='$CPP $CPPFLAGS' | |
13959 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13960 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13961 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13962 | ||
13963 | ||
a848cd7e SC |
13964 | if test -n "$ac_tool_prefix"; then |
13965 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
13966 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
13967 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13968 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13969 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
13970 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13971 | else | |
13972 | if test -n "$RANLIB"; then | |
13973 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
13974 | else | |
13975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13976 | for as_dir in $PATH | |
13977 | do | |
13978 | IFS=$as_save_IFS | |
13979 | test -z "$as_dir" && as_dir=. | |
13980 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13981 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13982 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
13983 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13984 | break 2 | |
13985 | fi | |
13986 | done | |
13987 | done | |
13988 | ||
13989 | fi | |
13990 | fi | |
13991 | RANLIB=$ac_cv_prog_RANLIB | |
13992 | if test -n "$RANLIB"; then | |
13993 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
13994 | echo "${ECHO_T}$RANLIB" >&6 | |
13995 | else | |
13996 | echo "$as_me:$LINENO: result: no" >&5 | |
13997 | echo "${ECHO_T}no" >&6 | |
13998 | fi | |
13999 | ||
14000 | fi | |
14001 | if test -z "$ac_cv_prog_RANLIB"; then | |
14002 | ac_ct_RANLIB=$RANLIB | |
14003 | # Extract the first word of "ranlib", so it can be a program name with args. | |
14004 | set dummy ranlib; ac_word=$2 | |
14005 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14006 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14007 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
14008 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14009 | else | |
14010 | if test -n "$ac_ct_RANLIB"; then | |
14011 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
14012 | else | |
14013 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14014 | for as_dir in $PATH | |
14015 | do | |
14016 | IFS=$as_save_IFS | |
14017 | test -z "$as_dir" && as_dir=. | |
14018 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14019 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14020 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
14021 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14022 | break 2 | |
14023 | fi | |
14024 | done | |
14025 | done | |
14026 | ||
14027 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
14028 | fi | |
14029 | fi | |
14030 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
14031 | if test -n "$ac_ct_RANLIB"; then | |
14032 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
14033 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
14034 | else | |
14035 | echo "$as_me:$LINENO: result: no" >&5 | |
14036 | echo "${ECHO_T}no" >&6 | |
14037 | fi | |
14038 | ||
14039 | RANLIB=$ac_ct_RANLIB | |
14040 | else | |
14041 | RANLIB="$ac_cv_prog_RANLIB" | |
14042 | fi | |
14043 | ||
14044 | ||
8c80d384 DE |
14045 | if test -n "$ac_tool_prefix"; then |
14046 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
14047 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
a848cd7e SC |
14048 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14049 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14050 | if test "${ac_cv_prog_AR+set}" = set; then | |
14051 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14052 | else | |
14053 | if test -n "$AR"; then | |
14054 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
14055 | else | |
14056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14057 | for as_dir in $PATH | |
14058 | do | |
14059 | IFS=$as_save_IFS | |
14060 | test -z "$as_dir" && as_dir=. | |
14061 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14062 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8c80d384 | 14063 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
a848cd7e SC |
14064 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14065 | break 2 | |
14066 | fi | |
14067 | done | |
14068 | done | |
14069 | ||
14070 | fi | |
14071 | fi | |
14072 | AR=$ac_cv_prog_AR | |
14073 | if test -n "$AR"; then | |
14074 | echo "$as_me:$LINENO: result: $AR" >&5 | |
14075 | echo "${ECHO_T}$AR" >&6 | |
14076 | else | |
14077 | echo "$as_me:$LINENO: result: no" >&5 | |
14078 | echo "${ECHO_T}no" >&6 | |
14079 | fi | |
14080 | ||
8c80d384 DE |
14081 | fi |
14082 | if test -z "$ac_cv_prog_AR"; then | |
14083 | ac_ct_AR=$AR | |
14084 | # Extract the first word of "ar", so it can be a program name with args. | |
14085 | set dummy ar; ac_word=$2 | |
14086 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14087 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14088 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
14089 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14090 | else | |
14091 | if test -n "$ac_ct_AR"; then | |
14092 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
14093 | else | |
14094 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14095 | for as_dir in $PATH | |
14096 | do | |
14097 | IFS=$as_save_IFS | |
14098 | test -z "$as_dir" && as_dir=. | |
14099 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14100 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14101 | ac_cv_prog_ac_ct_AR="ar" | |
14102 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14103 | break 2 | |
14104 | fi | |
14105 | done | |
14106 | done | |
14107 | ||
14108 | fi | |
14109 | fi | |
14110 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
14111 | if test -n "$ac_ct_AR"; then | |
14112 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
14113 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
14114 | else | |
14115 | echo "$as_me:$LINENO: result: no" >&5 | |
14116 | echo "${ECHO_T}no" >&6 | |
14117 | fi | |
14118 | ||
14119 | AR=$ac_ct_AR | |
14120 | else | |
14121 | AR="$ac_cv_prog_AR" | |
14122 | fi | |
14123 | ||
a848cd7e | 14124 | if test "x$AR" = "x" ; then |
77ffb593 JS |
14125 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5 |
14126 | echo "$as_me: error: ar is needed to build wxWidgets" >&2;} | |
a848cd7e SC |
14127 | { (exit 1); exit 1; }; } |
14128 | fi | |
14129 | ||
14130 | # Find a good install program. We prefer a C program (faster), | |
14131 | # so one script is as good as another. But avoid the broken or | |
14132 | # incompatible versions: | |
14133 | # SysV /etc/install, /usr/sbin/install | |
14134 | # SunOS /usr/etc/install | |
14135 | # IRIX /sbin/install | |
14136 | # AIX /bin/install | |
14137 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
14138 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
14139 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
14140 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 14141 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
14142 | # ./install, which can be erroneously created by make from ./install.sh. |
14143 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
14144 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
14145 | if test -z "$INSTALL"; then | |
14146 | if test "${ac_cv_path_install+set}" = set; then | |
14147 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14148 | else | |
14149 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14150 | for as_dir in $PATH | |
14151 | do | |
14152 | IFS=$as_save_IFS | |
14153 | test -z "$as_dir" && as_dir=. | |
14154 | # Account for people who put trailing slashes in PATH elements. | |
14155 | case $as_dir/ in | |
14156 | ./ | .// | /cC/* | \ | |
14157 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 14158 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
14159 | /usr/ucb/* ) ;; |
14160 | *) | |
14161 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
14162 | # Don't use installbsd from OSF since it installs stuff as root | |
14163 | # by default. | |
14164 | for ac_prog in ginstall scoinst install; do | |
14165 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
14166 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
14167 | if test $ac_prog = install && | |
14168 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
14169 | # AIX install. It has an incompatible calling convention. | |
14170 | : | |
14171 | elif test $ac_prog = install && | |
14172 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
14173 | # program-specific install script used by HP pwplus--don't use. | |
14174 | : | |
14175 | else | |
14176 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
14177 | break 3 | |
14178 | fi | |
14179 | fi | |
a848cd7e SC |
14180 | done |
14181 | done | |
14182 | ;; | |
14183 | esac | |
14184 | done | |
14185 | ||
14186 | ||
14187 | fi | |
14188 | if test "${ac_cv_path_install+set}" = set; then | |
14189 | INSTALL=$ac_cv_path_install | |
14190 | else | |
14191 | # As a last resort, use the slow shell script. We don't cache a | |
14192 | # path for INSTALL within a source directory, because that will | |
14193 | # break other packages using the cache if that directory is | |
14194 | # removed, or if the path is relative. | |
14195 | INSTALL=$ac_install_sh | |
14196 | fi | |
14197 | fi | |
14198 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
14199 | echo "${ECHO_T}$INSTALL" >&6 | |
14200 | ||
14201 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
14202 | # It thinks the first close brace ends the variable substitution. | |
14203 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
14204 | ||
14205 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
14206 | ||
14207 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
14208 | ||
14209 | ||
14210 | case ${INSTALL} in | |
14211 | /* ) # Absolute | |
14212 | ;; | |
14213 | ?:* ) # Drive letter, considered as absolute. | |
14214 | ;; | |
14215 | *) | |
14216 | INSTALL=`pwd`/${INSTALL} ;; | |
14217 | esac | |
14218 | ||
a848cd7e SC |
14219 | |
14220 | case "${host}" in | |
14221 | ||
cfda0ea8 | 14222 | *-*-darwin* ) |
a848cd7e SC |
14223 | INSTALL_PROGRAM="cp -fp" |
14224 | INSTALL_DATA="cp -fp" | |
14225 | ;; | |
14226 | *) | |
14227 | ;; | |
14228 | esac | |
14229 | ||
8c80d384 DE |
14230 | if test -n "$ac_tool_prefix"; then |
14231 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
14232 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
a848cd7e SC |
14233 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14234 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14235 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
14236 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14237 | else | |
14238 | if test -n "$STRIP"; then | |
14239 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
14240 | else | |
14241 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14242 | for as_dir in $PATH | |
14243 | do | |
14244 | IFS=$as_save_IFS | |
14245 | test -z "$as_dir" && as_dir=. | |
14246 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14247 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8c80d384 | 14248 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
a848cd7e SC |
14249 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14250 | break 2 | |
14251 | fi | |
14252 | done | |
14253 | done | |
14254 | ||
a848cd7e SC |
14255 | fi |
14256 | fi | |
14257 | STRIP=$ac_cv_prog_STRIP | |
14258 | if test -n "$STRIP"; then | |
14259 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
14260 | echo "${ECHO_T}$STRIP" >&6 | |
14261 | else | |
14262 | echo "$as_me:$LINENO: result: no" >&5 | |
14263 | echo "${ECHO_T}no" >&6 | |
14264 | fi | |
14265 | ||
8c80d384 DE |
14266 | fi |
14267 | if test -z "$ac_cv_prog_STRIP"; then | |
14268 | ac_ct_STRIP=$STRIP | |
14269 | # Extract the first word of "strip", so it can be a program name with args. | |
14270 | set dummy strip; ac_word=$2 | |
14271 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14272 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14273 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
14274 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14275 | else | |
14276 | if test -n "$ac_ct_STRIP"; then | |
14277 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
14278 | else | |
14279 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14280 | for as_dir in $PATH | |
14281 | do | |
14282 | IFS=$as_save_IFS | |
14283 | test -z "$as_dir" && as_dir=. | |
14284 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14285 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14286 | ac_cv_prog_ac_ct_STRIP="strip" | |
14287 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14288 | break 2 | |
14289 | fi | |
14290 | done | |
14291 | done | |
14292 | ||
14293 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true" | |
14294 | fi | |
14295 | fi | |
14296 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
14297 | if test -n "$ac_ct_STRIP"; then | |
14298 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
14299 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
14300 | else | |
14301 | echo "$as_me:$LINENO: result: no" >&5 | |
14302 | echo "${ECHO_T}no" >&6 | |
14303 | fi | |
14304 | ||
14305 | STRIP=$ac_ct_STRIP | |
14306 | else | |
14307 | STRIP="$ac_cv_prog_STRIP" | |
14308 | fi | |
14309 | ||
14310 | ||
14311 | if test "$wxUSE_WINE" = "yes"; then | |
14312 | if test -n "$ac_tool_prefix"; then | |
14313 | # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args. | |
14314 | set dummy ${ac_tool_prefix}wrc; ac_word=$2 | |
14315 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14316 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14317 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
14318 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14319 | else | |
14320 | if test -n "$RESCOMP"; then | |
14321 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
14322 | else | |
14323 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14324 | for as_dir in $PATH | |
14325 | do | |
14326 | IFS=$as_save_IFS | |
14327 | test -z "$as_dir" && as_dir=. | |
14328 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14329 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14330 | ac_cv_prog_RESCOMP="${ac_tool_prefix}wrc" | |
14331 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14332 | break 2 | |
14333 | fi | |
14334 | done | |
14335 | done | |
14336 | ||
14337 | fi | |
14338 | fi | |
14339 | RESCOMP=$ac_cv_prog_RESCOMP | |
14340 | if test -n "$RESCOMP"; then | |
14341 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
14342 | echo "${ECHO_T}$RESCOMP" >&6 | |
14343 | else | |
14344 | echo "$as_me:$LINENO: result: no" >&5 | |
14345 | echo "${ECHO_T}no" >&6 | |
14346 | fi | |
14347 | ||
14348 | fi | |
14349 | if test -z "$ac_cv_prog_RESCOMP"; then | |
14350 | ac_ct_RESCOMP=$RESCOMP | |
14351 | # Extract the first word of "wrc", so it can be a program name with args. | |
14352 | set dummy wrc; ac_word=$2 | |
14353 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14354 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14355 | if test "${ac_cv_prog_ac_ct_RESCOMP+set}" = set; then | |
14356 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14357 | else | |
14358 | if test -n "$ac_ct_RESCOMP"; then | |
14359 | ac_cv_prog_ac_ct_RESCOMP="$ac_ct_RESCOMP" # Let the user override the test. | |
14360 | else | |
14361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14362 | for as_dir in $PATH | |
14363 | do | |
14364 | IFS=$as_save_IFS | |
14365 | test -z "$as_dir" && as_dir=. | |
14366 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14367 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14368 | ac_cv_prog_ac_ct_RESCOMP="wrc" | |
14369 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14370 | break 2 | |
14371 | fi | |
14372 | done | |
14373 | done | |
14374 | ||
14375 | fi | |
14376 | fi | |
14377 | ac_ct_RESCOMP=$ac_cv_prog_ac_ct_RESCOMP | |
14378 | if test -n "$ac_ct_RESCOMP"; then | |
14379 | echo "$as_me:$LINENO: result: $ac_ct_RESCOMP" >&5 | |
14380 | echo "${ECHO_T}$ac_ct_RESCOMP" >&6 | |
14381 | else | |
14382 | echo "$as_me:$LINENO: result: no" >&5 | |
14383 | echo "${ECHO_T}no" >&6 | |
14384 | fi | |
14385 | ||
14386 | RESCOMP=$ac_ct_RESCOMP | |
14387 | else | |
14388 | RESCOMP="$ac_cv_prog_RESCOMP" | |
14389 | fi | |
14390 | ||
14391 | else | |
14392 | case "${host}" in | |
14393 | *-*-cygwin* | *-*-mingw32* ) | |
14394 | if test -n "$ac_tool_prefix"; then | |
14395 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
14396 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
14397 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14398 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14399 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
14400 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14401 | else | |
14402 | if test -n "$RESCOMP"; then | |
14403 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
14404 | else | |
14405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14406 | for as_dir in $PATH | |
14407 | do | |
14408 | IFS=$as_save_IFS | |
14409 | test -z "$as_dir" && as_dir=. | |
14410 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14411 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14412 | ac_cv_prog_RESCOMP="${ac_tool_prefix}windres" | |
14413 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14414 | break 2 | |
14415 | fi | |
14416 | done | |
14417 | done | |
14418 | ||
14419 | fi | |
14420 | fi | |
14421 | RESCOMP=$ac_cv_prog_RESCOMP | |
14422 | if test -n "$RESCOMP"; then | |
14423 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
14424 | echo "${ECHO_T}$RESCOMP" >&6 | |
14425 | else | |
14426 | echo "$as_me:$LINENO: result: no" >&5 | |
14427 | echo "${ECHO_T}no" >&6 | |
14428 | fi | |
14429 | ||
14430 | fi | |
14431 | if test -z "$ac_cv_prog_RESCOMP"; then | |
14432 | ac_ct_RESCOMP=$RESCOMP | |
14433 | # Extract the first word of "windres", so it can be a program name with args. | |
14434 | set dummy windres; ac_word=$2 | |
14435 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14436 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14437 | if test "${ac_cv_prog_ac_ct_RESCOMP+set}" = set; then | |
14438 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14439 | else | |
14440 | if test -n "$ac_ct_RESCOMP"; then | |
14441 | ac_cv_prog_ac_ct_RESCOMP="$ac_ct_RESCOMP" # Let the user override the test. | |
14442 | else | |
14443 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14444 | for as_dir in $PATH | |
14445 | do | |
14446 | IFS=$as_save_IFS | |
14447 | test -z "$as_dir" && as_dir=. | |
14448 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14449 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14450 | ac_cv_prog_ac_ct_RESCOMP="windres" | |
14451 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14452 | break 2 | |
14453 | fi | |
14454 | done | |
14455 | done | |
14456 | ||
14457 | fi | |
14458 | fi | |
14459 | ac_ct_RESCOMP=$ac_cv_prog_ac_ct_RESCOMP | |
14460 | if test -n "$ac_ct_RESCOMP"; then | |
14461 | echo "$as_me:$LINENO: result: $ac_ct_RESCOMP" >&5 | |
14462 | echo "${ECHO_T}$ac_ct_RESCOMP" >&6 | |
14463 | else | |
14464 | echo "$as_me:$LINENO: result: no" >&5 | |
14465 | echo "${ECHO_T}no" >&6 | |
14466 | fi | |
14467 | ||
14468 | RESCOMP=$ac_ct_RESCOMP | |
14469 | else | |
14470 | RESCOMP="$ac_cv_prog_RESCOMP" | |
14471 | fi | |
14472 | ||
14473 | if test -n "$ac_tool_prefix"; then | |
14474 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
14475 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
14476 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14477 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14478 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then | |
14479 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14480 | else | |
14481 | if test -n "$DLLTOOL"; then | |
14482 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
14483 | else | |
14484 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14485 | for as_dir in $PATH | |
14486 | do | |
14487 | IFS=$as_save_IFS | |
14488 | test -z "$as_dir" && as_dir=. | |
14489 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14490 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14491 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
14492 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14493 | break 2 | |
14494 | fi | |
14495 | done | |
14496 | done | |
14497 | ||
14498 | fi | |
14499 | fi | |
14500 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
14501 | if test -n "$DLLTOOL"; then | |
14502 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 | |
14503 | echo "${ECHO_T}$DLLTOOL" >&6 | |
14504 | else | |
14505 | echo "$as_me:$LINENO: result: no" >&5 | |
14506 | echo "${ECHO_T}no" >&6 | |
14507 | fi | |
14508 | ||
14509 | fi | |
14510 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
14511 | ac_ct_DLLTOOL=$DLLTOOL | |
14512 | # Extract the first word of "dlltool", so it can be a program name with args. | |
14513 | set dummy dlltool; ac_word=$2 | |
14514 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14515 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14516 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then | |
14517 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14518 | else | |
14519 | if test -n "$ac_ct_DLLTOOL"; then | |
14520 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
14521 | else | |
14522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14523 | for as_dir in $PATH | |
14524 | do | |
14525 | IFS=$as_save_IFS | |
14526 | test -z "$as_dir" && as_dir=. | |
14527 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14528 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14529 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
14530 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14531 | break 2 | |
14532 | fi | |
14533 | done | |
14534 | done | |
14535 | ||
14536 | fi | |
14537 | fi | |
14538 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
14539 | if test -n "$ac_ct_DLLTOOL"; then | |
14540 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 | |
14541 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 | |
14542 | else | |
14543 | echo "$as_me:$LINENO: result: no" >&5 | |
14544 | echo "${ECHO_T}no" >&6 | |
14545 | fi | |
14546 | ||
14547 | DLLTOOL=$ac_ct_DLLTOOL | |
14548 | else | |
14549 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
14550 | fi | |
14551 | ||
14552 | ;; | |
14553 | esac | |
14554 | fi | |
a848cd7e SC |
14555 | |
14556 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
14557 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
14558 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
14559 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14560 | else | |
14561 | ||
14562 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
14563 | egrep -s GNU > /dev/null); then | |
14564 | wx_cv_prog_makeisgnu="yes" | |
14565 | else | |
14566 | wx_cv_prog_makeisgnu="no" | |
14567 | fi | |
14568 | ||
14569 | fi | |
14570 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 | |
14571 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
14572 | ||
14573 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
14574 | IF_GNU_MAKE="" | |
14575 | else | |
14576 | IF_GNU_MAKE="#" | |
14577 | fi | |
14578 | ||
14579 | ||
14580 | ||
14581 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
14582 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 | |
14583 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
14584 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
14585 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14586 | else | |
14587 | ||
14588 | cat - << EOF > confMake | |
14589 | check : file | |
14590 | cp \$? \$@ | |
14591 | cp \$? final_file | |
14592 | EOF | |
14593 | ||
14594 | if test ! -d sub ; then | |
14595 | mkdir sub | |
14596 | fi | |
14597 | echo dummy > sub/file | |
14598 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
14599 | RESULT=$? | |
14600 | rm -f sub/file check final_file confMake | |
14601 | rmdir sub | |
14602 | if test "$RESULT" = 0; then | |
14603 | wx_cv_prog_makevpath="yes" | |
14604 | else | |
14605 | wx_cv_prog_makevpath="no" | |
14606 | fi | |
14607 | ||
14608 | fi | |
14609 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 | |
14610 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
14611 | ||
14612 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
14613 | { { echo "$as_me:$LINENO: error: | |
14614 | You need a make-utility that is able to use the variable | |
14615 | VPATH correctly. | |
14616 | If your version of make does not support VPATH correctly, | |
14617 | please install GNU-make (possibly as gmake), and start | |
14618 | configure with the following command: | |
14619 | export MAKE=gmake; ./configure for sh-type shells | |
14620 | setenv MAKE gmake; ./configure for csh-type shells | |
14621 | Also please do remember to use gmake in this case every time | |
14622 | you are trying to compile. | |
14623 | " >&5 | |
14624 | echo "$as_me: error: | |
14625 | You need a make-utility that is able to use the variable | |
14626 | VPATH correctly. | |
14627 | If your version of make does not support VPATH correctly, | |
14628 | please install GNU-make (possibly as gmake), and start | |
14629 | configure with the following command: | |
14630 | export MAKE=gmake; ./configure for sh-type shells | |
14631 | setenv MAKE gmake; ./configure for csh-type shells | |
14632 | Also please do remember to use gmake in this case every time | |
14633 | you are trying to compile. | |
14634 | " >&2;} | |
14635 | { (exit 1); exit 1; }; } | |
14636 | fi fi | |
14637 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
14638 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
14639 | LN_S=$as_ln_s | |
14640 | if test "$LN_S" = "ln -s"; then | |
14641 | echo "$as_me:$LINENO: result: yes" >&5 | |
14642 | echo "${ECHO_T}yes" >&6 | |
14643 | else | |
14644 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
14645 | echo "${ECHO_T}no, using $LN_S" >&6 | |
14646 | fi | |
14647 | ||
14648 | ||
bcaab0f9 MW |
14649 | CP_PR='cp -pR' |
14650 | for ac_prog in lndir | |
14651 | do | |
14652 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
14653 | set dummy $ac_prog; ac_word=$2 | |
14654 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14655 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14656 | if test "${ac_cv_prog_LNDIR+set}" = set; then | |
14657 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14658 | else | |
14659 | if test -n "$LNDIR"; then | |
14660 | ac_cv_prog_LNDIR="$LNDIR" # Let the user override the test. | |
14661 | else | |
14662 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14663 | for as_dir in $PATH | |
14664 | do | |
14665 | IFS=$as_save_IFS | |
14666 | test -z "$as_dir" && as_dir=. | |
14667 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14668 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14669 | ac_cv_prog_LNDIR="$ac_prog" | |
14670 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14671 | break 2 | |
14672 | fi | |
14673 | done | |
14674 | done | |
14675 | ||
14676 | fi | |
14677 | fi | |
14678 | LNDIR=$ac_cv_prog_LNDIR | |
14679 | if test -n "$LNDIR"; then | |
14680 | echo "$as_me:$LINENO: result: $LNDIR" >&5 | |
14681 | echo "${ECHO_T}$LNDIR" >&6 | |
14682 | else | |
14683 | echo "$as_me:$LINENO: result: no" >&5 | |
14684 | echo "${ECHO_T}no" >&6 | |
14685 | fi | |
14686 | ||
14687 | test -n "$LNDIR" && break | |
14688 | done | |
14689 | test -n "$LNDIR" || LNDIR="$CP_PR" | |
14690 | ||
14691 | ||
14692 | ||
14693 | ||
a848cd7e | 14694 | |
2113bc77 | 14695 | if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then |
9273ffba DE |
14696 | CXXFLAGS="$CXXFLAGS -qunique" |
14697 | fi | |
14698 | ||
4d7ec9f1 DE |
14699 | case "${host}" in |
14700 | powerpc-*-darwin* ) | |
14701 | echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5 | |
14702 | echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6 | |
14703 | cat >conftest.$ac_ext <<_ACEOF | |
14704 | /* confdefs.h. */ | |
14705 | _ACEOF | |
14706 | cat confdefs.h >>conftest.$ac_ext | |
14707 | cat >>conftest.$ac_ext <<_ACEOF | |
14708 | /* end confdefs.h. */ | |
14709 | ||
14710 | int | |
14711 | main () | |
14712 | { | |
14713 | #ifndef __POWERPC__ | |
14714 | choke me for lack of PowerPC | |
14715 | #endif | |
14716 | ||
14717 | ; | |
14718 | return 0; | |
14719 | } | |
14720 | _ACEOF | |
14721 | rm -f conftest.$ac_objext | |
14722 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14723 | (eval $ac_compile) 2>conftest.er1 | |
14724 | ac_status=$? | |
14725 | grep -v '^ *+' conftest.er1 >conftest.err | |
14726 | rm -f conftest.er1 | |
14727 | cat conftest.err >&5 | |
14728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14729 | (exit $ac_status); } && | |
0093c2fc | 14730 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
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' | |
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 | echo "$as_me:$LINENO: result: yes" >&5 | |
14743 | echo "${ECHO_T}yes" >&6 | |
14744 | else | |
14745 | echo "$as_me: failed program was:" >&5 | |
14746 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14747 | ||
14748 | echo "$as_me:$LINENO: result: no" >&5 | |
14749 | echo "${ECHO_T}no" >&6 | |
14750 | cat >>confdefs.h <<\_ACEOF | |
14751 | #define __POWERPC__ 1 | |
14752 | _ACEOF | |
14753 | ||
14754 | ||
14755 | fi | |
14756 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
cfda0ea8 DE |
14757 | ;; |
14758 | esac | |
14759 | ||
14760 | case "${host}" in | |
14761 | *-*-darwin* ) | |
4d7ec9f1 DE |
14762 | echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5 |
14763 | echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6 | |
14764 | cat >conftest.$ac_ext <<_ACEOF | |
14765 | /* confdefs.h. */ | |
14766 | _ACEOF | |
14767 | cat confdefs.h >>conftest.$ac_ext | |
14768 | cat >>conftest.$ac_ext <<_ACEOF | |
14769 | /* end confdefs.h. */ | |
14770 | #include <CoreFoundation/CFBase.h> | |
14771 | ||
14772 | int | |
14773 | main () | |
14774 | { | |
14775 | ||
14776 | ; | |
14777 | return 0; | |
14778 | } | |
14779 | _ACEOF | |
14780 | rm -f conftest.$ac_objext | |
14781 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14782 | (eval $ac_compile) 2>conftest.er1 | |
14783 | ac_status=$? | |
14784 | grep -v '^ *+' conftest.er1 >conftest.err | |
14785 | rm -f conftest.er1 | |
14786 | cat conftest.err >&5 | |
14787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14788 | (exit $ac_status); } && | |
0093c2fc | 14789 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
14790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14791 | (eval $ac_try) 2>&5 | |
14792 | ac_status=$? | |
14793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14794 | (exit $ac_status); }; } && | |
14795 | { ac_try='test -s conftest.$ac_objext' | |
14796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14797 | (eval $ac_try) 2>&5 | |
14798 | ac_status=$? | |
14799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14800 | (exit $ac_status); }; }; then | |
14801 | echo "$as_me:$LINENO: result: yes" >&5 | |
14802 | echo "${ECHO_T}yes" >&6 | |
14803 | else | |
14804 | echo "$as_me: failed program was:" >&5 | |
14805 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14806 | ||
14807 | echo "$as_me:$LINENO: result: no" >&5 | |
14808 | echo "${ECHO_T}no" >&6 | |
14809 | echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5 | |
14810 | echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6 | |
14811 | cat >conftest.$ac_ext <<_ACEOF | |
14812 | /* confdefs.h. */ | |
14813 | _ACEOF | |
14814 | cat confdefs.h >>conftest.$ac_ext | |
14815 | cat >>conftest.$ac_ext <<_ACEOF | |
14816 | /* end confdefs.h. */ | |
14817 | #define __CF_USE_FRAMEWORK_INCLUDES__ | |
14818 | #include <CoreFoundation/CFBase.h> | |
14819 | ||
14820 | int | |
14821 | main () | |
14822 | { | |
14823 | ||
14824 | ; | |
14825 | return 0; | |
14826 | } | |
14827 | _ACEOF | |
14828 | rm -f conftest.$ac_objext | |
14829 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14830 | (eval $ac_compile) 2>conftest.er1 | |
14831 | ac_status=$? | |
14832 | grep -v '^ *+' conftest.er1 >conftest.err | |
14833 | rm -f conftest.er1 | |
14834 | cat conftest.err >&5 | |
14835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14836 | (exit $ac_status); } && | |
0093c2fc | 14837 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
14838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14839 | (eval $ac_try) 2>&5 | |
14840 | ac_status=$? | |
14841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14842 | (exit $ac_status); }; } && | |
14843 | { ac_try='test -s conftest.$ac_objext' | |
14844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14845 | (eval $ac_try) 2>&5 | |
14846 | ac_status=$? | |
14847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14848 | (exit $ac_status); }; }; then | |
14849 | echo "$as_me:$LINENO: result: yes" >&5 | |
14850 | echo "${ECHO_T}yes" >&6 | |
14851 | CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__" | |
14852 | else | |
14853 | echo "$as_me: failed program was:" >&5 | |
14854 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14855 | ||
14856 | { { echo "$as_me:$LINENO: error: no. CoreFoundation not available. | |
14857 | See \`config.log' for more details." >&5 | |
14858 | echo "$as_me: error: no. CoreFoundation not available. | |
14859 | See \`config.log' for more details." >&2;} | |
14860 | { (exit 1); exit 1; }; } | |
14861 | ||
14862 | fi | |
14863 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14864 | ||
14865 | ||
14866 | fi | |
14867 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14868 | ;; | |
14869 | esac | |
14870 | ||
a848cd7e SC |
14871 | case "${host}" in |
14872 | *-pc-os2_emx | *-pc-os2-emx ) | |
14873 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
14874 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 | |
14875 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
14876 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
14877 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14878 | else | |
14879 | ac_check_lib_save_LIBS=$LIBS | |
14880 | LIBS="-lcExt $LIBS" | |
14881 | cat >conftest.$ac_ext <<_ACEOF | |
14882 | /* confdefs.h. */ | |
14883 | _ACEOF | |
14884 | cat confdefs.h >>conftest.$ac_ext | |
14885 | cat >>conftest.$ac_ext <<_ACEOF | |
14886 | /* end confdefs.h. */ | |
14887 | ||
14888 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14889 | #ifdef __cplusplus | |
14890 | extern "C" | |
14891 | #endif | |
14892 | /* We use char because int might match the return type of a gcc2 | |
14893 | builtin and then its argument prototype would still apply. */ | |
14894 | char drand48 (); | |
14895 | int | |
14896 | main () | |
14897 | { | |
14898 | drand48 (); | |
14899 | ; | |
14900 | return 0; | |
14901 | } | |
14902 | _ACEOF | |
14903 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14904 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 14905 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 14906 | ac_status=$? |
ac1cb8d3 VS |
14907 | grep -v '^ *+' conftest.er1 >conftest.err |
14908 | rm -f conftest.er1 | |
14909 | cat conftest.err >&5 | |
a848cd7e SC |
14910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14911 | (exit $ac_status); } && | |
0093c2fc | 14912 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
14913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14914 | (eval $ac_try) 2>&5 | |
14915 | ac_status=$? | |
14916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14917 | (exit $ac_status); }; } && | |
14918 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
14919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14920 | (eval $ac_try) 2>&5 | |
14921 | ac_status=$? | |
14922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14923 | (exit $ac_status); }; }; then | |
14924 | ac_cv_lib_cExt_drand48=yes | |
14925 | else | |
14926 | echo "$as_me: failed program was:" >&5 | |
14927 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14928 | ||
14929 | ac_cv_lib_cExt_drand48=no | |
14930 | fi | |
ac1cb8d3 VS |
14931 | rm -f conftest.err conftest.$ac_objext \ |
14932 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
14933 | LIBS=$ac_check_lib_save_LIBS |
14934 | fi | |
14935 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
14936 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
14937 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
14938 | LIBS="$LIBS -lcExt" | |
14939 | fi | |
14940 | ||
14941 | else | |
14942 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
14943 | fi | |
69120ee4 VZ |
14944 | echo "$as_me:$LINENO: checking for gcc/libc version" >&5 |
14945 | echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6 | |
a848cd7e SC |
14946 | if test "${wx_cv_gccversion+set}" = set; then |
14947 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14948 | else | |
14949 | ||
391a765e VS |
14950 | if test "$cross_compiling" = yes; then |
14951 | wx_cv_gccversion="EMX2" | |
14952 | ||
14953 | else | |
14954 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
14955 | /* confdefs.h. */ |
14956 | _ACEOF | |
14957 | cat confdefs.h >>conftest.$ac_ext | |
14958 | cat >>conftest.$ac_ext <<_ACEOF | |
14959 | /* end confdefs.h. */ | |
14960 | ||
391a765e | 14961 | #include <stdio.h> |
a848cd7e | 14962 | |
391a765e VS |
14963 | int main() |
14964 | { | |
14965 | FILE *f=fopen("conftestval", "w"); | |
14966 | if (!f) exit(1); | |
14967 | fprintf(f, | |
a848cd7e | 14968 | #if (__GNUC__ < 3) |
391a765e VS |
14969 | "EMX2" |
14970 | #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
14971 | "EMX3" | |
14972 | #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2) | |
14973 | "Innotek5" | |
14974 | #else | |
14975 | "Innotek6" | |
a848cd7e | 14976 | #endif |
391a765e VS |
14977 | ); |
14978 | exit(0); | |
14979 | } | |
a848cd7e | 14980 | |
a848cd7e | 14981 | _ACEOF |
391a765e VS |
14982 | rm -f conftest$ac_exeext |
14983 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14984 | (eval $ac_link) 2>&5 | |
ac1cb8d3 VS |
14985 | ac_status=$? |
14986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
391a765e | 14987 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a848cd7e SC |
14988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14989 | (eval $ac_try) 2>&5 | |
14990 | ac_status=$? | |
14991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14992 | (exit $ac_status); }; }; then | |
391a765e | 14993 | wx_cv_gccversion=`cat conftestval` |
a848cd7e | 14994 | else |
391a765e VS |
14995 | echo "$as_me: program exited with status $ac_status" >&5 |
14996 | echo "$as_me: failed program was:" >&5 | |
a848cd7e SC |
14997 | sed 's/^/| /' conftest.$ac_ext >&5 |
14998 | ||
391a765e VS |
14999 | ( exit $ac_status ) |
15000 | wx_cv_gccversion="EMX2" | |
a848cd7e | 15001 | fi |
391a765e | 15002 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15003 | fi |
a848cd7e SC |
15004 | |
15005 | fi | |
15006 | echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5 | |
15007 | echo "${ECHO_T}$wx_cv_gccversion" >&6 | |
391a765e | 15008 | if test "$wx_cv_gccversion" = "EMX2"; then |
a848cd7e SC |
15009 | LIBS="$LIBS -lstdcpp" |
15010 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
15011 | else | |
391a765e | 15012 | if test "$wx_cv_gccversion" = "EMX3"; then |
ddd14b14 | 15013 | LIBS="$LIBS -lstdcxx -lgcc" |
a848cd7e SC |
15014 | LDFLAGS="$LDFLAGS -Zsysv-signals" |
15015 | else | |
15016 | LIBS="$LIBS -lstdc++" | |
15017 | fi | |
15018 | fi | |
94acd38e DE |
15019 | if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then |
15020 | { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5 | |
15021 | echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;} | |
15022 | wxUSE_OMF=yes | |
2da0c077 | 15023 | enable_omf=yes |
a848cd7e SC |
15024 | fi |
15025 | ;; | |
15026 | *) | |
15027 | ||
15028 | ||
15029 | ||
15030 | ac_ext=cc | |
15031 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15032 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15033 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15034 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
15035 | ||
15036 | ||
95986553 | 15037 | echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 |
a848cd7e SC |
15038 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6 |
15039 | if test "${ac_cv_string_strcasecmp+set}" = set; then | |
15040 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15041 | else | |
15042 | ||
15043 | cat >conftest.$ac_ext <<_ACEOF | |
15044 | /* confdefs.h. */ | |
15045 | _ACEOF | |
15046 | cat confdefs.h >>conftest.$ac_ext | |
15047 | cat >>conftest.$ac_ext <<_ACEOF | |
15048 | /* end confdefs.h. */ | |
15049 | ||
15050 | #include <string.h> | |
15051 | ||
15052 | int | |
15053 | main () | |
15054 | { | |
15055 | ||
15056 | strcasecmp("foo", "bar"); | |
15057 | ||
15058 | ; | |
15059 | return 0; | |
15060 | } | |
15061 | _ACEOF | |
15062 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15063 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 15064 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 15065 | ac_status=$? |
ac1cb8d3 VS |
15066 | grep -v '^ *+' conftest.er1 >conftest.err |
15067 | rm -f conftest.er1 | |
15068 | cat conftest.err >&5 | |
a848cd7e SC |
15069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15070 | (exit $ac_status); } && | |
0093c2fc | 15071 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15073 | (eval $ac_try) 2>&5 | |
15074 | ac_status=$? | |
15075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15076 | (exit $ac_status); }; } && | |
15077 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
15078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15079 | (eval $ac_try) 2>&5 | |
15080 | ac_status=$? | |
15081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15082 | (exit $ac_status); }; }; then | |
15083 | ac_cv_string_strcasecmp=yes | |
15084 | else | |
15085 | echo "$as_me: failed program was:" >&5 | |
15086 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15087 | ||
15088 | ac_cv_string_strcasecmp=no | |
15089 | ||
15090 | fi | |
ac1cb8d3 VS |
15091 | rm -f conftest.err conftest.$ac_objext \ |
15092 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
15093 | |
15094 | fi | |
15095 | echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 | |
15096 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6 | |
15097 | ||
15098 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
15099 | cat >>confdefs.h <<\_ACEOF | |
15100 | #define HAVE_STRCASECMP_IN_STRING_H 1 | |
15101 | _ACEOF | |
15102 | ||
15103 | else | |
15104 | echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 | |
15105 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6 | |
15106 | if test "${ac_cv_strings_strcasecmp+set}" = set; then | |
15107 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15108 | else | |
15109 | ||
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 | ||
15117 | #include <strings.h> | |
15118 | ||
15119 | int | |
15120 | main () | |
15121 | { | |
15122 | ||
15123 | strcasecmp("foo", "bar"); | |
15124 | ||
15125 | ; | |
15126 | return 0; | |
15127 | } | |
15128 | _ACEOF | |
15129 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15130 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 15131 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 15132 | ac_status=$? |
ac1cb8d3 VS |
15133 | grep -v '^ *+' conftest.er1 >conftest.err |
15134 | rm -f conftest.er1 | |
15135 | cat conftest.err >&5 | |
a848cd7e SC |
15136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15137 | (exit $ac_status); } && | |
0093c2fc | 15138 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15140 | (eval $ac_try) 2>&5 | |
15141 | ac_status=$? | |
15142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15143 | (exit $ac_status); }; } && | |
15144 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
15145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15146 | (eval $ac_try) 2>&5 | |
15147 | ac_status=$? | |
15148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15149 | (exit $ac_status); }; }; then | |
15150 | ac_cv_strings_strcasecmp=yes | |
15151 | else | |
15152 | echo "$as_me: failed program was:" >&5 | |
15153 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15154 | ||
15155 | ac_cv_strings_strcasecmp=no | |
15156 | ||
15157 | fi | |
ac1cb8d3 VS |
15158 | rm -f conftest.err conftest.$ac_objext \ |
15159 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
15160 | |
15161 | fi | |
15162 | echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 | |
15163 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6 | |
15164 | ||
0c3c69fc | 15165 | if test x"$ac_cv_strings_strcasecmp" = "xyes"; then |
a848cd7e SC |
15166 | cat >>confdefs.h <<\_ACEOF |
15167 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 | |
15168 | _ACEOF | |
15169 | ||
15170 | else | |
15171 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 | |
15172 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} | |
15173 | { (exit 1); exit 1; }; } | |
15174 | fi | |
15175 | fi | |
15176 | ||
15177 | ac_ext=c | |
15178 | ac_cpp='$CPP $CPPFLAGS' | |
15179 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15180 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15181 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15182 | ||
15183 | ;; | |
15184 | esac | |
15185 | ||
15186 | ||
15187 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
15188 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
15189 | if test "${ac_cv_header_stdc+set}" = set; then | |
15190 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15191 | else | |
15192 | cat >conftest.$ac_ext <<_ACEOF | |
15193 | /* confdefs.h. */ | |
15194 | _ACEOF | |
15195 | cat confdefs.h >>conftest.$ac_ext | |
15196 | cat >>conftest.$ac_ext <<_ACEOF | |
15197 | /* end confdefs.h. */ | |
15198 | #include <stdlib.h> | |
15199 | #include <stdarg.h> | |
15200 | #include <string.h> | |
15201 | #include <float.h> | |
15202 | ||
15203 | int | |
15204 | main () | |
15205 | { | |
15206 | ||
15207 | ; | |
15208 | return 0; | |
15209 | } | |
15210 | _ACEOF | |
15211 | rm -f conftest.$ac_objext | |
15212 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15213 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15214 | ac_status=$? |
ac1cb8d3 VS |
15215 | grep -v '^ *+' conftest.er1 >conftest.err |
15216 | rm -f conftest.er1 | |
15217 | cat conftest.err >&5 | |
a848cd7e SC |
15218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15219 | (exit $ac_status); } && | |
0093c2fc | 15220 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15222 | (eval $ac_try) 2>&5 | |
15223 | ac_status=$? | |
15224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15225 | (exit $ac_status); }; } && | |
15226 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15228 | (eval $ac_try) 2>&5 | |
15229 | ac_status=$? | |
15230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15231 | (exit $ac_status); }; }; then | |
15232 | ac_cv_header_stdc=yes | |
15233 | else | |
15234 | echo "$as_me: failed program was:" >&5 | |
15235 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15236 | ||
15237 | ac_cv_header_stdc=no | |
15238 | fi | |
ac1cb8d3 | 15239 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15240 | |
15241 | if test $ac_cv_header_stdc = yes; then | |
15242 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
15243 | cat >conftest.$ac_ext <<_ACEOF | |
15244 | /* confdefs.h. */ | |
15245 | _ACEOF | |
15246 | cat confdefs.h >>conftest.$ac_ext | |
15247 | cat >>conftest.$ac_ext <<_ACEOF | |
15248 | /* end confdefs.h. */ | |
15249 | #include <string.h> | |
15250 | ||
15251 | _ACEOF | |
15252 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15253 | $EGREP "memchr" >/dev/null 2>&1; then | |
15254 | : | |
15255 | else | |
15256 | ac_cv_header_stdc=no | |
15257 | fi | |
15258 | rm -f conftest* | |
15259 | ||
15260 | fi | |
15261 | ||
15262 | if test $ac_cv_header_stdc = yes; then | |
15263 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
15264 | cat >conftest.$ac_ext <<_ACEOF | |
15265 | /* confdefs.h. */ | |
15266 | _ACEOF | |
15267 | cat confdefs.h >>conftest.$ac_ext | |
15268 | cat >>conftest.$ac_ext <<_ACEOF | |
15269 | /* end confdefs.h. */ | |
15270 | #include <stdlib.h> | |
15271 | ||
15272 | _ACEOF | |
15273 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15274 | $EGREP "free" >/dev/null 2>&1; then | |
15275 | : | |
15276 | else | |
15277 | ac_cv_header_stdc=no | |
15278 | fi | |
15279 | rm -f conftest* | |
15280 | ||
15281 | fi | |
15282 | ||
15283 | if test $ac_cv_header_stdc = yes; then | |
15284 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
15285 | if test "$cross_compiling" = yes; then | |
15286 | : | |
15287 | else | |
15288 | cat >conftest.$ac_ext <<_ACEOF | |
15289 | /* confdefs.h. */ | |
15290 | _ACEOF | |
15291 | cat confdefs.h >>conftest.$ac_ext | |
15292 | cat >>conftest.$ac_ext <<_ACEOF | |
15293 | /* end confdefs.h. */ | |
15294 | #include <ctype.h> | |
15295 | #if ((' ' & 0x0FF) == 0x020) | |
15296 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
15297 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
15298 | #else | |
15299 | # define ISLOWER(c) \ | |
ac1cb8d3 VS |
15300 | (('a' <= (c) && (c) <= 'i') \ |
15301 | || ('j' <= (c) && (c) <= 'r') \ | |
15302 | || ('s' <= (c) && (c) <= 'z')) | |
a848cd7e SC |
15303 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
15304 | #endif | |
15305 | ||
15306 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
15307 | int | |
15308 | main () | |
15309 | { | |
15310 | int i; | |
15311 | for (i = 0; i < 256; i++) | |
15312 | if (XOR (islower (i), ISLOWER (i)) | |
ac1cb8d3 | 15313 | || toupper (i) != TOUPPER (i)) |
a848cd7e SC |
15314 | exit(2); |
15315 | exit (0); | |
15316 | } | |
15317 | _ACEOF | |
15318 | rm -f conftest$ac_exeext | |
15319 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15320 | (eval $ac_link) 2>&5 | |
15321 | ac_status=$? | |
15322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15323 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15325 | (eval $ac_try) 2>&5 | |
15326 | ac_status=$? | |
15327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15328 | (exit $ac_status); }; }; then | |
15329 | : | |
15330 | else | |
15331 | echo "$as_me: program exited with status $ac_status" >&5 | |
15332 | echo "$as_me: failed program was:" >&5 | |
15333 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15334 | ||
15335 | ( exit $ac_status ) | |
15336 | ac_cv_header_stdc=no | |
15337 | fi | |
ac1cb8d3 | 15338 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15339 | fi |
15340 | fi | |
15341 | fi | |
15342 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
15343 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
15344 | if test $ac_cv_header_stdc = yes; then | |
15345 | ||
15346 | cat >>confdefs.h <<\_ACEOF | |
15347 | #define STDC_HEADERS 1 | |
15348 | _ACEOF | |
15349 | ||
15350 | fi | |
15351 | ||
15352 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
15353 | ||
15354 | ||
15355 | ||
15356 | ||
15357 | ||
15358 | ||
15359 | ||
15360 | ||
15361 | ||
15362 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
ac1cb8d3 | 15363 | inttypes.h stdint.h unistd.h |
a848cd7e SC |
15364 | do |
15365 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15366 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15367 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15368 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15369 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15370 | else | |
15371 | cat >conftest.$ac_ext <<_ACEOF | |
15372 | /* confdefs.h. */ | |
15373 | _ACEOF | |
15374 | cat confdefs.h >>conftest.$ac_ext | |
15375 | cat >>conftest.$ac_ext <<_ACEOF | |
15376 | /* end confdefs.h. */ | |
15377 | $ac_includes_default | |
15378 | ||
15379 | #include <$ac_header> | |
15380 | _ACEOF | |
15381 | rm -f conftest.$ac_objext | |
15382 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15383 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15384 | ac_status=$? |
ac1cb8d3 VS |
15385 | grep -v '^ *+' conftest.er1 >conftest.err |
15386 | rm -f conftest.er1 | |
15387 | cat conftest.err >&5 | |
a848cd7e SC |
15388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15389 | (exit $ac_status); } && | |
0093c2fc | 15390 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15392 | (eval $ac_try) 2>&5 | |
15393 | ac_status=$? | |
15394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15395 | (exit $ac_status); }; } && | |
15396 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15398 | (eval $ac_try) 2>&5 | |
15399 | ac_status=$? | |
15400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15401 | (exit $ac_status); }; }; then | |
15402 | eval "$as_ac_Header=yes" | |
15403 | else | |
15404 | echo "$as_me: failed program was:" >&5 | |
15405 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15406 | ||
15407 | eval "$as_ac_Header=no" | |
15408 | fi | |
ac1cb8d3 | 15409 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15410 | fi |
15411 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15412 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15413 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15414 | cat >>confdefs.h <<_ACEOF | |
15415 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15416 | _ACEOF | |
15417 | ||
15418 | fi | |
15419 | ||
15420 | done | |
15421 | ||
15422 | ||
15423 | ||
15424 | for ac_header in stdlib.h | |
15425 | do | |
15426 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15427 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15428 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15429 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15430 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15431 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15432 | fi | |
15433 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15434 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15435 | else | |
15436 | # Is the header compilable? | |
15437 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15438 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15439 | cat >conftest.$ac_ext <<_ACEOF | |
15440 | /* confdefs.h. */ | |
15441 | _ACEOF | |
15442 | cat confdefs.h >>conftest.$ac_ext | |
15443 | cat >>conftest.$ac_ext <<_ACEOF | |
15444 | /* end confdefs.h. */ | |
15445 | $ac_includes_default | |
15446 | #include <$ac_header> | |
15447 | _ACEOF | |
15448 | rm -f conftest.$ac_objext | |
15449 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15450 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15451 | ac_status=$? |
ac1cb8d3 VS |
15452 | grep -v '^ *+' conftest.er1 >conftest.err |
15453 | rm -f conftest.er1 | |
15454 | cat conftest.err >&5 | |
a848cd7e SC |
15455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15456 | (exit $ac_status); } && | |
0093c2fc | 15457 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15459 | (eval $ac_try) 2>&5 | |
15460 | ac_status=$? | |
15461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15462 | (exit $ac_status); }; } && | |
15463 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15465 | (eval $ac_try) 2>&5 | |
15466 | ac_status=$? | |
15467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15468 | (exit $ac_status); }; }; then | |
15469 | ac_header_compiler=yes | |
15470 | else | |
15471 | echo "$as_me: failed program was:" >&5 | |
15472 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15473 | ||
15474 | ac_header_compiler=no | |
15475 | fi | |
ac1cb8d3 | 15476 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15477 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15478 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15479 | ||
15480 | # Is the header present? | |
15481 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15482 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15483 | cat >conftest.$ac_ext <<_ACEOF | |
15484 | /* confdefs.h. */ | |
15485 | _ACEOF | |
15486 | cat confdefs.h >>conftest.$ac_ext | |
15487 | cat >>conftest.$ac_ext <<_ACEOF | |
15488 | /* end confdefs.h. */ | |
15489 | #include <$ac_header> | |
15490 | _ACEOF | |
15491 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15492 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15493 | ac_status=$? | |
15494 | grep -v '^ *+' conftest.er1 >conftest.err | |
15495 | rm -f conftest.er1 | |
15496 | cat conftest.err >&5 | |
15497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15498 | (exit $ac_status); } >/dev/null; then | |
15499 | if test -s conftest.err; then | |
15500 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15501 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15502 | else |
15503 | ac_cpp_err= | |
15504 | fi | |
15505 | else | |
15506 | ac_cpp_err=yes | |
15507 | fi | |
15508 | if test -z "$ac_cpp_err"; then | |
15509 | ac_header_preproc=yes | |
15510 | else | |
15511 | echo "$as_me: failed program was:" >&5 | |
15512 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15513 | ||
15514 | ac_header_preproc=no | |
15515 | fi | |
15516 | rm -f conftest.err conftest.$ac_ext | |
15517 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15518 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15519 | ||
15520 | # So? What about this header? | |
ac1cb8d3 VS |
15521 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15522 | yes:no: ) | |
a848cd7e SC |
15523 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15524 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15525 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15526 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15527 | ac_header_preproc=yes | |
a848cd7e | 15528 | ;; |
ac1cb8d3 | 15529 | no:yes:* ) |
a848cd7e SC |
15530 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15531 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15532 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15533 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15534 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15535 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15536 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15537 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15538 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15539 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15540 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15541 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15542 | ( |
15543 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15544 | ## ----------------------------------------- ## |
15545 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15546 | ## ----------------------------------------- ## | |
a848cd7e SC |
15547 | _ASBOX |
15548 | ) | | |
15549 | sed "s/^/$as_me: WARNING: /" >&2 | |
15550 | ;; | |
15551 | esac | |
15552 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15553 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15554 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15556 | else | |
ac1cb8d3 | 15557 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15558 | fi |
15559 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15560 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15561 | ||
15562 | fi | |
15563 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15564 | cat >>confdefs.h <<_ACEOF | |
15565 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15566 | _ACEOF | |
15567 | ||
15568 | fi | |
15569 | ||
15570 | done | |
15571 | ||
15572 | ||
15573 | for ac_header in malloc.h | |
15574 | do | |
15575 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15576 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15577 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15578 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15579 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15580 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15581 | fi | |
15582 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15583 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15584 | else | |
15585 | # Is the header compilable? | |
15586 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15587 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15588 | cat >conftest.$ac_ext <<_ACEOF | |
15589 | /* confdefs.h. */ | |
15590 | _ACEOF | |
15591 | cat confdefs.h >>conftest.$ac_ext | |
15592 | cat >>conftest.$ac_ext <<_ACEOF | |
15593 | /* end confdefs.h. */ | |
15594 | $ac_includes_default | |
15595 | #include <$ac_header> | |
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); } && | |
0093c2fc | 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_header_compiler=yes | |
15619 | else | |
15620 | echo "$as_me: failed program was:" >&5 | |
15621 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15622 | ||
15623 | ac_header_compiler=no | |
15624 | fi | |
ac1cb8d3 | 15625 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15626 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15627 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15628 | ||
15629 | # Is the header present? | |
15630 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15631 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15632 | cat >conftest.$ac_ext <<_ACEOF | |
15633 | /* confdefs.h. */ | |
15634 | _ACEOF | |
15635 | cat confdefs.h >>conftest.$ac_ext | |
15636 | cat >>conftest.$ac_ext <<_ACEOF | |
15637 | /* end confdefs.h. */ | |
15638 | #include <$ac_header> | |
15639 | _ACEOF | |
15640 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15641 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15642 | ac_status=$? | |
15643 | grep -v '^ *+' conftest.er1 >conftest.err | |
15644 | rm -f conftest.er1 | |
15645 | cat conftest.err >&5 | |
15646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15647 | (exit $ac_status); } >/dev/null; then | |
15648 | if test -s conftest.err; then | |
15649 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15650 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15651 | else |
15652 | ac_cpp_err= | |
15653 | fi | |
15654 | else | |
15655 | ac_cpp_err=yes | |
15656 | fi | |
15657 | if test -z "$ac_cpp_err"; then | |
15658 | ac_header_preproc=yes | |
15659 | else | |
15660 | echo "$as_me: failed program was:" >&5 | |
15661 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15662 | ||
15663 | ac_header_preproc=no | |
15664 | fi | |
15665 | rm -f conftest.err conftest.$ac_ext | |
15666 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15667 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15668 | ||
15669 | # So? What about this header? | |
ac1cb8d3 VS |
15670 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15671 | yes:no: ) | |
a848cd7e SC |
15672 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15673 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15674 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15675 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15676 | ac_header_preproc=yes | |
a848cd7e | 15677 | ;; |
ac1cb8d3 | 15678 | no:yes:* ) |
a848cd7e SC |
15679 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15680 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15681 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15682 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15683 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15684 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15685 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15686 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15687 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15688 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15689 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15690 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15691 | ( |
15692 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15693 | ## ----------------------------------------- ## |
15694 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15695 | ## ----------------------------------------- ## | |
a848cd7e SC |
15696 | _ASBOX |
15697 | ) | | |
15698 | sed "s/^/$as_me: WARNING: /" >&2 | |
15699 | ;; | |
15700 | esac | |
15701 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15702 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15703 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15705 | else | |
ac1cb8d3 | 15706 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15707 | fi |
15708 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15709 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15710 | ||
15711 | fi | |
15712 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15713 | cat >>confdefs.h <<_ACEOF | |
15714 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15715 | _ACEOF | |
15716 | ||
15717 | fi | |
15718 | ||
15719 | done | |
15720 | ||
15721 | ||
15722 | for ac_header in unistd.h | |
15723 | do | |
15724 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15725 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15726 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15727 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15728 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15729 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15730 | fi | |
15731 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15732 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15733 | else | |
15734 | # Is the header compilable? | |
15735 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15736 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15737 | cat >conftest.$ac_ext <<_ACEOF | |
15738 | /* confdefs.h. */ | |
15739 | _ACEOF | |
15740 | cat confdefs.h >>conftest.$ac_ext | |
15741 | cat >>conftest.$ac_ext <<_ACEOF | |
15742 | /* end confdefs.h. */ | |
15743 | $ac_includes_default | |
15744 | #include <$ac_header> | |
15745 | _ACEOF | |
15746 | rm -f conftest.$ac_objext | |
15747 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15748 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15749 | ac_status=$? |
ac1cb8d3 VS |
15750 | grep -v '^ *+' conftest.er1 >conftest.err |
15751 | rm -f conftest.er1 | |
15752 | cat conftest.err >&5 | |
a848cd7e SC |
15753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15754 | (exit $ac_status); } && | |
0093c2fc | 15755 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15757 | (eval $ac_try) 2>&5 | |
15758 | ac_status=$? | |
15759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15760 | (exit $ac_status); }; } && | |
15761 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15763 | (eval $ac_try) 2>&5 | |
15764 | ac_status=$? | |
15765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15766 | (exit $ac_status); }; }; then | |
15767 | ac_header_compiler=yes | |
15768 | else | |
15769 | echo "$as_me: failed program was:" >&5 | |
15770 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15771 | ||
15772 | ac_header_compiler=no | |
15773 | fi | |
ac1cb8d3 | 15774 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15775 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15776 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15777 | ||
15778 | # Is the header present? | |
15779 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15780 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15781 | cat >conftest.$ac_ext <<_ACEOF | |
15782 | /* confdefs.h. */ | |
15783 | _ACEOF | |
15784 | cat confdefs.h >>conftest.$ac_ext | |
15785 | cat >>conftest.$ac_ext <<_ACEOF | |
15786 | /* end confdefs.h. */ | |
15787 | #include <$ac_header> | |
15788 | _ACEOF | |
15789 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15790 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15791 | ac_status=$? | |
15792 | grep -v '^ *+' conftest.er1 >conftest.err | |
15793 | rm -f conftest.er1 | |
15794 | cat conftest.err >&5 | |
15795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15796 | (exit $ac_status); } >/dev/null; then | |
15797 | if test -s conftest.err; then | |
15798 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15799 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15800 | else |
15801 | ac_cpp_err= | |
15802 | fi | |
15803 | else | |
15804 | ac_cpp_err=yes | |
15805 | fi | |
15806 | if test -z "$ac_cpp_err"; then | |
15807 | ac_header_preproc=yes | |
15808 | else | |
15809 | echo "$as_me: failed program was:" >&5 | |
15810 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15811 | ||
15812 | ac_header_preproc=no | |
15813 | fi | |
15814 | rm -f conftest.err conftest.$ac_ext | |
15815 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15816 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15817 | ||
15818 | # So? What about this header? | |
ac1cb8d3 VS |
15819 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15820 | yes:no: ) | |
a848cd7e SC |
15821 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15822 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15823 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15824 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15825 | ac_header_preproc=yes | |
a848cd7e | 15826 | ;; |
ac1cb8d3 | 15827 | no:yes:* ) |
a848cd7e SC |
15828 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15829 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15830 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15831 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15832 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15833 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15834 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15835 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15836 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15837 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15838 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15839 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15840 | ( |
15841 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15842 | ## ----------------------------------------- ## |
15843 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15844 | ## ----------------------------------------- ## | |
a848cd7e SC |
15845 | _ASBOX |
15846 | ) | | |
15847 | sed "s/^/$as_me: WARNING: /" >&2 | |
15848 | ;; | |
15849 | esac | |
15850 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15851 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15852 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15853 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15854 | else | |
ac1cb8d3 | 15855 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15856 | fi |
15857 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15858 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15859 | ||
15860 | fi | |
15861 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15862 | cat >>confdefs.h <<_ACEOF | |
15863 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15864 | _ACEOF | |
15865 | ||
15866 | fi | |
15867 | ||
15868 | done | |
15869 | ||
15870 | ||
15871 | for ac_header in wchar.h | |
15872 | do | |
15873 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15874 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15875 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15876 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15877 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15879 | fi | |
15880 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15881 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15882 | else | |
15883 | # Is the header compilable? | |
15884 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15885 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15886 | cat >conftest.$ac_ext <<_ACEOF | |
15887 | /* confdefs.h. */ | |
15888 | _ACEOF | |
15889 | cat confdefs.h >>conftest.$ac_ext | |
15890 | cat >>conftest.$ac_ext <<_ACEOF | |
15891 | /* end confdefs.h. */ | |
15892 | $ac_includes_default | |
15893 | #include <$ac_header> | |
15894 | _ACEOF | |
15895 | rm -f conftest.$ac_objext | |
15896 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15897 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15898 | ac_status=$? |
ac1cb8d3 VS |
15899 | grep -v '^ *+' conftest.er1 >conftest.err |
15900 | rm -f conftest.er1 | |
15901 | cat conftest.err >&5 | |
a848cd7e SC |
15902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15903 | (exit $ac_status); } && | |
0093c2fc | 15904 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15906 | (eval $ac_try) 2>&5 | |
15907 | ac_status=$? | |
15908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15909 | (exit $ac_status); }; } && | |
15910 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15912 | (eval $ac_try) 2>&5 | |
15913 | ac_status=$? | |
15914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15915 | (exit $ac_status); }; }; then | |
15916 | ac_header_compiler=yes | |
15917 | else | |
15918 | echo "$as_me: failed program was:" >&5 | |
15919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15920 | ||
15921 | ac_header_compiler=no | |
15922 | fi | |
ac1cb8d3 | 15923 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15924 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15925 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15926 | ||
15927 | # Is the header present? | |
15928 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15929 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15930 | cat >conftest.$ac_ext <<_ACEOF | |
15931 | /* confdefs.h. */ | |
15932 | _ACEOF | |
15933 | cat confdefs.h >>conftest.$ac_ext | |
15934 | cat >>conftest.$ac_ext <<_ACEOF | |
15935 | /* end confdefs.h. */ | |
15936 | #include <$ac_header> | |
15937 | _ACEOF | |
15938 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15939 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15940 | ac_status=$? | |
15941 | grep -v '^ *+' conftest.er1 >conftest.err | |
15942 | rm -f conftest.er1 | |
15943 | cat conftest.err >&5 | |
15944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15945 | (exit $ac_status); } >/dev/null; then | |
15946 | if test -s conftest.err; then | |
15947 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15948 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15949 | else |
15950 | ac_cpp_err= | |
15951 | fi | |
15952 | else | |
15953 | ac_cpp_err=yes | |
15954 | fi | |
15955 | if test -z "$ac_cpp_err"; then | |
15956 | ac_header_preproc=yes | |
15957 | else | |
15958 | echo "$as_me: failed program was:" >&5 | |
15959 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15960 | ||
15961 | ac_header_preproc=no | |
15962 | fi | |
15963 | rm -f conftest.err conftest.$ac_ext | |
15964 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15965 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15966 | ||
15967 | # So? What about this header? | |
ac1cb8d3 VS |
15968 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15969 | yes:no: ) | |
a848cd7e SC |
15970 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15971 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15972 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15973 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15974 | ac_header_preproc=yes | |
a848cd7e | 15975 | ;; |
ac1cb8d3 | 15976 | no:yes:* ) |
a848cd7e SC |
15977 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15978 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15979 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15980 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15981 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15982 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15983 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15984 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15985 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15986 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15987 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15988 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15989 | ( |
15990 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15991 | ## ----------------------------------------- ## |
15992 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15993 | ## ----------------------------------------- ## | |
a848cd7e SC |
15994 | _ASBOX |
15995 | ) | | |
15996 | sed "s/^/$as_me: WARNING: /" >&2 | |
15997 | ;; | |
15998 | esac | |
15999 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16000 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16001 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16003 | else | |
ac1cb8d3 | 16004 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16005 | fi |
16006 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16007 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16008 | ||
16009 | fi | |
16010 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16011 | cat >>confdefs.h <<_ACEOF | |
16012 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16013 | _ACEOF | |
16014 | ||
16015 | fi | |
16016 | ||
16017 | done | |
16018 | ||
16019 | ||
16020 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
16021 | ||
16022 | for ac_header in wcstr.h | |
16023 | do | |
16024 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16025 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16026 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16027 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16028 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16029 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16030 | fi | |
16031 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16032 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16033 | else | |
16034 | # Is the header compilable? | |
16035 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16036 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16037 | cat >conftest.$ac_ext <<_ACEOF | |
16038 | /* confdefs.h. */ | |
16039 | _ACEOF | |
16040 | cat confdefs.h >>conftest.$ac_ext | |
16041 | cat >>conftest.$ac_ext <<_ACEOF | |
16042 | /* end confdefs.h. */ | |
16043 | $ac_includes_default | |
16044 | #include <$ac_header> | |
16045 | _ACEOF | |
16046 | rm -f conftest.$ac_objext | |
16047 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16048 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16049 | ac_status=$? |
ac1cb8d3 VS |
16050 | grep -v '^ *+' conftest.er1 >conftest.err |
16051 | rm -f conftest.er1 | |
16052 | cat conftest.err >&5 | |
a848cd7e SC |
16053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16054 | (exit $ac_status); } && | |
0093c2fc | 16055 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16057 | (eval $ac_try) 2>&5 | |
16058 | ac_status=$? | |
16059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16060 | (exit $ac_status); }; } && | |
16061 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16063 | (eval $ac_try) 2>&5 | |
16064 | ac_status=$? | |
16065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16066 | (exit $ac_status); }; }; then | |
16067 | ac_header_compiler=yes | |
16068 | else | |
16069 | echo "$as_me: failed program was:" >&5 | |
16070 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16071 | ||
16072 | ac_header_compiler=no | |
16073 | fi | |
ac1cb8d3 | 16074 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16075 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16076 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16077 | ||
16078 | # Is the header present? | |
16079 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16080 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16081 | cat >conftest.$ac_ext <<_ACEOF | |
16082 | /* confdefs.h. */ | |
16083 | _ACEOF | |
16084 | cat confdefs.h >>conftest.$ac_ext | |
16085 | cat >>conftest.$ac_ext <<_ACEOF | |
16086 | /* end confdefs.h. */ | |
16087 | #include <$ac_header> | |
16088 | _ACEOF | |
16089 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16090 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16091 | ac_status=$? | |
16092 | grep -v '^ *+' conftest.er1 >conftest.err | |
16093 | rm -f conftest.er1 | |
16094 | cat conftest.err >&5 | |
16095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16096 | (exit $ac_status); } >/dev/null; then | |
16097 | if test -s conftest.err; then | |
16098 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 16099 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
16100 | else |
16101 | ac_cpp_err= | |
16102 | fi | |
16103 | else | |
16104 | ac_cpp_err=yes | |
16105 | fi | |
16106 | if test -z "$ac_cpp_err"; then | |
16107 | ac_header_preproc=yes | |
16108 | else | |
16109 | echo "$as_me: failed program was:" >&5 | |
16110 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16111 | ||
16112 | ac_header_preproc=no | |
16113 | fi | |
16114 | rm -f conftest.err conftest.$ac_ext | |
16115 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16116 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16117 | ||
16118 | # So? What about this header? | |
ac1cb8d3 VS |
16119 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16120 | yes:no: ) | |
a848cd7e SC |
16121 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16122 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16123 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16124 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16125 | ac_header_preproc=yes | |
a848cd7e | 16126 | ;; |
ac1cb8d3 | 16127 | no:yes:* ) |
a848cd7e SC |
16128 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16129 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16130 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16131 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16132 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16133 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16134 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16135 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16136 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16137 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16138 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16139 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16140 | ( |
16141 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16142 | ## ----------------------------------------- ## |
16143 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16144 | ## ----------------------------------------- ## | |
a848cd7e SC |
16145 | _ASBOX |
16146 | ) | | |
16147 | sed "s/^/$as_me: WARNING: /" >&2 | |
16148 | ;; | |
16149 | esac | |
16150 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16151 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16152 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16153 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16154 | else | |
ac1cb8d3 | 16155 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16156 | fi |
16157 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16158 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16159 | ||
16160 | fi | |
16161 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16162 | cat >>confdefs.h <<_ACEOF | |
16163 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16164 | _ACEOF | |
16165 | ||
16166 | fi | |
16167 | ||
16168 | done | |
16169 | ||
16170 | fi | |
16171 | ||
16172 | ||
16173 | for ac_header in fnmatch.h | |
16174 | do | |
16175 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16176 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16177 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16178 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16179 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16180 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16181 | fi | |
16182 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16183 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16184 | else | |
16185 | # Is the header compilable? | |
16186 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16187 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16188 | cat >conftest.$ac_ext <<_ACEOF | |
16189 | /* confdefs.h. */ | |
16190 | _ACEOF | |
16191 | cat confdefs.h >>conftest.$ac_ext | |
16192 | cat >>conftest.$ac_ext <<_ACEOF | |
16193 | /* end confdefs.h. */ | |
16194 | $ac_includes_default | |
16195 | #include <$ac_header> | |
16196 | _ACEOF | |
16197 | rm -f conftest.$ac_objext | |
16198 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16199 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16200 | ac_status=$? |
ac1cb8d3 VS |
16201 | grep -v '^ *+' conftest.er1 >conftest.err |
16202 | rm -f conftest.er1 | |
16203 | cat conftest.err >&5 | |
a848cd7e SC |
16204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16205 | (exit $ac_status); } && | |
0093c2fc | 16206 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16208 | (eval $ac_try) 2>&5 | |
16209 | ac_status=$? | |
16210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16211 | (exit $ac_status); }; } && | |
16212 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16214 | (eval $ac_try) 2>&5 | |
16215 | ac_status=$? | |
16216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16217 | (exit $ac_status); }; }; then | |
16218 | ac_header_compiler=yes | |
16219 | else | |
16220 | echo "$as_me: failed program was:" >&5 | |
16221 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16222 | ||
16223 | ac_header_compiler=no | |
16224 | fi | |
ac1cb8d3 | 16225 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16226 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16227 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16228 | ||
16229 | # Is the header present? | |
16230 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16231 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
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 | #include <$ac_header> | |
16239 | _ACEOF | |
16240 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16241 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16242 | ac_status=$? | |
16243 | grep -v '^ *+' conftest.er1 >conftest.err | |
16244 | rm -f conftest.er1 | |
16245 | cat conftest.err >&5 | |
16246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16247 | (exit $ac_status); } >/dev/null; then | |
16248 | if test -s conftest.err; then | |
16249 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 16250 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
16251 | else |
16252 | ac_cpp_err= | |
16253 | fi | |
16254 | else | |
16255 | ac_cpp_err=yes | |
16256 | fi | |
16257 | if test -z "$ac_cpp_err"; then | |
16258 | ac_header_preproc=yes | |
16259 | else | |
16260 | echo "$as_me: failed program was:" >&5 | |
16261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16262 | ||
16263 | ac_header_preproc=no | |
16264 | fi | |
16265 | rm -f conftest.err conftest.$ac_ext | |
16266 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16267 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16268 | ||
16269 | # So? What about this header? | |
ac1cb8d3 VS |
16270 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16271 | yes:no: ) | |
a848cd7e SC |
16272 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16273 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16274 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16275 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16276 | ac_header_preproc=yes | |
a848cd7e | 16277 | ;; |
ac1cb8d3 | 16278 | no:yes:* ) |
a848cd7e SC |
16279 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16280 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16281 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16282 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16283 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16284 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16285 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16286 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16287 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16288 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16289 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16290 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16291 | ( |
16292 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16293 | ## ----------------------------------------- ## |
16294 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16295 | ## ----------------------------------------- ## | |
a848cd7e SC |
16296 | _ASBOX |
16297 | ) | | |
16298 | sed "s/^/$as_me: WARNING: /" >&2 | |
16299 | ;; | |
16300 | esac | |
16301 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16302 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16303 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16305 | else | |
ac1cb8d3 | 16306 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16307 | fi |
16308 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16309 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16310 | ||
16311 | fi | |
16312 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16313 | cat >>confdefs.h <<_ACEOF | |
16314 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16315 | _ACEOF | |
16316 | ||
16317 | fi | |
16318 | ||
16319 | done | |
16320 | ||
16321 | ||
a848cd7e SC |
16322 | |
16323 | for ac_header in langinfo.h | |
16324 | do | |
16325 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16326 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16327 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16328 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16329 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16330 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16331 | fi | |
16332 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16333 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16334 | else | |
16335 | # Is the header compilable? | |
16336 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16337 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16338 | cat >conftest.$ac_ext <<_ACEOF | |
16339 | /* confdefs.h. */ | |
16340 | _ACEOF | |
16341 | cat confdefs.h >>conftest.$ac_ext | |
16342 | cat >>conftest.$ac_ext <<_ACEOF | |
16343 | /* end confdefs.h. */ | |
16344 | $ac_includes_default | |
16345 | #include <$ac_header> | |
16346 | _ACEOF | |
16347 | rm -f conftest.$ac_objext | |
16348 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16349 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16350 | ac_status=$? |
ac1cb8d3 VS |
16351 | grep -v '^ *+' conftest.er1 >conftest.err |
16352 | rm -f conftest.er1 | |
16353 | cat conftest.err >&5 | |
a848cd7e SC |
16354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16355 | (exit $ac_status); } && | |
0093c2fc | 16356 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16358 | (eval $ac_try) 2>&5 | |
16359 | ac_status=$? | |
16360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16361 | (exit $ac_status); }; } && | |
16362 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16364 | (eval $ac_try) 2>&5 | |
16365 | ac_status=$? | |
16366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16367 | (exit $ac_status); }; }; then | |
16368 | ac_header_compiler=yes | |
16369 | else | |
16370 | echo "$as_me: failed program was:" >&5 | |
16371 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16372 | ||
16373 | ac_header_compiler=no | |
16374 | fi | |
ac1cb8d3 | 16375 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16376 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16377 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16378 | ||
16379 | # Is the header present? | |
16380 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16381 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16382 | cat >conftest.$ac_ext <<_ACEOF | |
16383 | /* confdefs.h. */ | |
16384 | _ACEOF | |
16385 | cat confdefs.h >>conftest.$ac_ext | |
16386 | cat >>conftest.$ac_ext <<_ACEOF | |
16387 | /* end confdefs.h. */ | |
16388 | #include <$ac_header> | |
16389 | _ACEOF | |
16390 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16391 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16392 | ac_status=$? | |
16393 | grep -v '^ *+' conftest.er1 >conftest.err | |
16394 | rm -f conftest.er1 | |
16395 | cat conftest.err >&5 | |
16396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16397 | (exit $ac_status); } >/dev/null; then | |
16398 | if test -s conftest.err; then | |
16399 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 16400 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
16401 | else |
16402 | ac_cpp_err= | |
16403 | fi | |
16404 | else | |
16405 | ac_cpp_err=yes | |
16406 | fi | |
16407 | if test -z "$ac_cpp_err"; then | |
16408 | ac_header_preproc=yes | |
16409 | else | |
16410 | echo "$as_me: failed program was:" >&5 | |
16411 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16412 | ||
16413 | ac_header_preproc=no | |
16414 | fi | |
16415 | rm -f conftest.err conftest.$ac_ext | |
16416 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16417 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16418 | ||
16419 | # So? What about this header? | |
ac1cb8d3 VS |
16420 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16421 | yes:no: ) | |
a848cd7e SC |
16422 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16423 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16424 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16425 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16426 | ac_header_preproc=yes | |
a848cd7e | 16427 | ;; |
ac1cb8d3 | 16428 | no:yes:* ) |
a848cd7e SC |
16429 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16430 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16431 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16432 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16433 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16434 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16435 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16436 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16437 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16438 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16439 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16440 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16441 | ( |
16442 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16443 | ## ----------------------------------------- ## |
16444 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16445 | ## ----------------------------------------- ## | |
a848cd7e SC |
16446 | _ASBOX |
16447 | ) | | |
16448 | sed "s/^/$as_me: WARNING: /" >&2 | |
16449 | ;; | |
16450 | esac | |
16451 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16452 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16453 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16454 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16455 | else | |
ac1cb8d3 | 16456 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16457 | fi |
16458 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16459 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16460 | ||
16461 | fi | |
16462 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16463 | cat >>confdefs.h <<_ACEOF | |
16464 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16465 | _ACEOF | |
16466 | ||
16467 | fi | |
16468 | ||
16469 | done | |
16470 | ||
16471 | ||
16472 | case "${host}" in | |
16473 | *-pc-os2_emx | *-pc-os2-emx ) | |
391a765e VS |
16474 | if test $ac_cv_header_langinfo_h = "yes" \ |
16475 | -a \( "$wx_cv_gccversion" = "EMX2" \ | |
16476 | -o "$wx_cv_gccversion" = "EMX3" \ | |
16477 | -o "$wx_cv_gccversion" = "Innotek5" \); then | |
a848cd7e SC |
16478 | LIBS="$LIBS -lintl" |
16479 | fi | |
16480 | ;; | |
16481 | esac | |
16482 | ||
a848cd7e SC |
16483 | |
16484 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
16485 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
16486 | if test "${ac_cv_c_const+set}" = set; then | |
16487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16488 | else | |
16489 | cat >conftest.$ac_ext <<_ACEOF | |
16490 | /* confdefs.h. */ | |
16491 | _ACEOF | |
16492 | cat confdefs.h >>conftest.$ac_ext | |
16493 | cat >>conftest.$ac_ext <<_ACEOF | |
16494 | /* end confdefs.h. */ | |
16495 | ||
16496 | int | |
16497 | main () | |
16498 | { | |
16499 | /* FIXME: Include the comments suggested by Paul. */ | |
16500 | #ifndef __cplusplus | |
16501 | /* Ultrix mips cc rejects this. */ | |
16502 | typedef int charset[2]; | |
16503 | const charset x; | |
16504 | /* SunOS 4.1.1 cc rejects this. */ | |
16505 | char const *const *ccp; | |
16506 | char **p; | |
16507 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
16508 | struct point {int x, y;}; | |
16509 | static struct point const zero = {0,0}; | |
16510 | /* AIX XL C 1.02.0.0 rejects this. | |
16511 | It does not let you subtract one const X* pointer from another in | |
16512 | an arm of an if-expression whose if-part is not a constant | |
16513 | expression */ | |
16514 | const char *g = "string"; | |
16515 | ccp = &g + (g ? g-g : 0); | |
16516 | /* HPUX 7.0 cc rejects these. */ | |
16517 | ++ccp; | |
16518 | p = (char**) ccp; | |
16519 | ccp = (char const *const *) p; | |
16520 | { /* SCO 3.2v4 cc rejects this. */ | |
16521 | char *t; | |
16522 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
16523 | ||
16524 | *t++ = 0; | |
16525 | } | |
16526 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
16527 | int x[] = {25, 17}; | |
16528 | const int *foo = &x[0]; | |
16529 | ++foo; | |
16530 | } | |
16531 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
16532 | typedef const int *iptr; | |
16533 | iptr p = 0; | |
16534 | ++p; | |
16535 | } | |
16536 | { /* AIX XL C 1.02.0.0 rejects this saying | |
16537 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
16538 | struct s { int j; const int *ap[3]; }; | |
16539 | struct s *b; b->j = 5; | |
16540 | } | |
16541 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
16542 | const int foo = 10; | |
16543 | } | |
16544 | #endif | |
16545 | ||
16546 | ; | |
16547 | return 0; | |
16548 | } | |
16549 | _ACEOF | |
16550 | rm -f conftest.$ac_objext | |
16551 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16552 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16553 | ac_status=$? |
ac1cb8d3 VS |
16554 | grep -v '^ *+' conftest.er1 >conftest.err |
16555 | rm -f conftest.er1 | |
16556 | cat conftest.err >&5 | |
a848cd7e SC |
16557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16558 | (exit $ac_status); } && | |
0093c2fc | 16559 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16561 | (eval $ac_try) 2>&5 | |
16562 | ac_status=$? | |
16563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16564 | (exit $ac_status); }; } && | |
16565 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16567 | (eval $ac_try) 2>&5 | |
16568 | ac_status=$? | |
16569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16570 | (exit $ac_status); }; }; then | |
16571 | ac_cv_c_const=yes | |
16572 | else | |
16573 | echo "$as_me: failed program was:" >&5 | |
16574 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16575 | ||
16576 | ac_cv_c_const=no | |
16577 | fi | |
ac1cb8d3 | 16578 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16579 | fi |
16580 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
16581 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
16582 | if test $ac_cv_c_const = no; then | |
16583 | ||
16584 | cat >>confdefs.h <<\_ACEOF | |
16585 | #define const | |
16586 | _ACEOF | |
16587 | ||
16588 | fi | |
16589 | ||
16590 | echo "$as_me:$LINENO: checking for inline" >&5 | |
16591 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
16592 | if test "${ac_cv_c_inline+set}" = set; then | |
16593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16594 | else | |
16595 | ac_cv_c_inline=no | |
16596 | for ac_kw in inline __inline__ __inline; do | |
16597 | cat >conftest.$ac_ext <<_ACEOF | |
16598 | /* confdefs.h. */ | |
16599 | _ACEOF | |
16600 | cat confdefs.h >>conftest.$ac_ext | |
16601 | cat >>conftest.$ac_ext <<_ACEOF | |
16602 | /* end confdefs.h. */ | |
16603 | #ifndef __cplusplus | |
16604 | typedef int foo_t; | |
16605 | static $ac_kw foo_t static_foo () {return 0; } | |
16606 | $ac_kw foo_t foo () {return 0; } | |
16607 | #endif | |
16608 | ||
16609 | _ACEOF | |
16610 | rm -f conftest.$ac_objext | |
16611 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16612 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16613 | ac_status=$? |
ac1cb8d3 VS |
16614 | grep -v '^ *+' conftest.er1 >conftest.err |
16615 | rm -f conftest.er1 | |
16616 | cat conftest.err >&5 | |
a848cd7e SC |
16617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16618 | (exit $ac_status); } && | |
0093c2fc | 16619 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16621 | (eval $ac_try) 2>&5 | |
16622 | ac_status=$? | |
16623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16624 | (exit $ac_status); }; } && | |
16625 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16627 | (eval $ac_try) 2>&5 | |
16628 | ac_status=$? | |
16629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16630 | (exit $ac_status); }; }; then | |
16631 | ac_cv_c_inline=$ac_kw; break | |
16632 | else | |
16633 | echo "$as_me: failed program was:" >&5 | |
16634 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16635 | ||
16636 | fi | |
ac1cb8d3 | 16637 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16638 | done |
16639 | ||
16640 | fi | |
16641 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
16642 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
ac1cb8d3 VS |
16643 | |
16644 | ||
a848cd7e SC |
16645 | case $ac_cv_c_inline in |
16646 | inline | yes) ;; | |
ac1cb8d3 VS |
16647 | *) |
16648 | case $ac_cv_c_inline in | |
16649 | no) ac_val=;; | |
16650 | *) ac_val=$ac_cv_c_inline;; | |
16651 | esac | |
16652 | cat >>confdefs.h <<_ACEOF | |
16653 | #ifndef __cplusplus | |
16654 | #define inline $ac_val | |
16655 | #endif | |
de59c161 | 16656 | _ACEOF |
ac1cb8d3 | 16657 | ;; |
a848cd7e SC |
16658 | esac |
16659 | ||
16660 | ||
16661 | echo "$as_me:$LINENO: checking for char" >&5 | |
16662 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
16663 | if test "${ac_cv_type_char+set}" = set; then | |
16664 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16665 | else | |
16666 | cat >conftest.$ac_ext <<_ACEOF | |
16667 | /* confdefs.h. */ | |
16668 | _ACEOF | |
16669 | cat confdefs.h >>conftest.$ac_ext | |
16670 | cat >>conftest.$ac_ext <<_ACEOF | |
16671 | /* end confdefs.h. */ | |
16672 | $ac_includes_default | |
16673 | int | |
16674 | main () | |
16675 | { | |
16676 | if ((char *) 0) | |
16677 | return 0; | |
16678 | if (sizeof (char)) | |
16679 | return 0; | |
16680 | ; | |
16681 | return 0; | |
16682 | } | |
16683 | _ACEOF | |
16684 | rm -f conftest.$ac_objext | |
16685 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16686 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16687 | ac_status=$? |
ac1cb8d3 VS |
16688 | grep -v '^ *+' conftest.er1 >conftest.err |
16689 | rm -f conftest.er1 | |
16690 | cat conftest.err >&5 | |
a848cd7e SC |
16691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16692 | (exit $ac_status); } && | |
0093c2fc | 16693 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16695 | (eval $ac_try) 2>&5 | |
16696 | ac_status=$? | |
16697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16698 | (exit $ac_status); }; } && | |
16699 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16701 | (eval $ac_try) 2>&5 | |
16702 | ac_status=$? | |
16703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16704 | (exit $ac_status); }; }; then | |
16705 | ac_cv_type_char=yes | |
16706 | else | |
16707 | echo "$as_me: failed program was:" >&5 | |
16708 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16709 | ||
16710 | ac_cv_type_char=no | |
16711 | fi | |
ac1cb8d3 | 16712 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16713 | fi |
16714 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
16715 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
16716 | ||
16717 | echo "$as_me:$LINENO: checking size of char" >&5 | |
16718 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
16719 | if test "${ac_cv_sizeof_char+set}" = set; then | |
16720 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16721 | else | |
16722 | if test "$ac_cv_type_char" = yes; then | |
16723 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16724 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16725 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16726 | # This bug is HP SR number 8606223364. | |
16727 | if test "$cross_compiling" = yes; then | |
16728 | # Depending upon the size, compute the lo and hi bounds. | |
16729 | cat >conftest.$ac_ext <<_ACEOF | |
16730 | /* confdefs.h. */ | |
16731 | _ACEOF | |
16732 | cat confdefs.h >>conftest.$ac_ext | |
16733 | cat >>conftest.$ac_ext <<_ACEOF | |
16734 | /* end confdefs.h. */ | |
16735 | $ac_includes_default | |
16736 | int | |
16737 | main () | |
16738 | { | |
16739 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
16740 | test_array [0] = 0 | |
16741 | ||
16742 | ; | |
16743 | return 0; | |
16744 | } | |
16745 | _ACEOF | |
16746 | rm -f conftest.$ac_objext | |
16747 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16748 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16749 | ac_status=$? |
ac1cb8d3 VS |
16750 | grep -v '^ *+' conftest.er1 >conftest.err |
16751 | rm -f conftest.er1 | |
16752 | cat conftest.err >&5 | |
a848cd7e SC |
16753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16754 | (exit $ac_status); } && | |
0093c2fc | 16755 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16757 | (eval $ac_try) 2>&5 | |
16758 | ac_status=$? | |
16759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16760 | (exit $ac_status); }; } && | |
16761 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16763 | (eval $ac_try) 2>&5 | |
16764 | ac_status=$? | |
16765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16766 | (exit $ac_status); }; }; then | |
16767 | ac_lo=0 ac_mid=0 | |
16768 | while :; do | |
16769 | cat >conftest.$ac_ext <<_ACEOF | |
16770 | /* confdefs.h. */ | |
16771 | _ACEOF | |
16772 | cat confdefs.h >>conftest.$ac_ext | |
16773 | cat >>conftest.$ac_ext <<_ACEOF | |
16774 | /* end confdefs.h. */ | |
16775 | $ac_includes_default | |
16776 | int | |
16777 | main () | |
16778 | { | |
16779 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
16780 | test_array [0] = 0 | |
16781 | ||
16782 | ; | |
16783 | return 0; | |
16784 | } | |
16785 | _ACEOF | |
16786 | rm -f conftest.$ac_objext | |
16787 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16788 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16789 | ac_status=$? |
ac1cb8d3 VS |
16790 | grep -v '^ *+' conftest.er1 >conftest.err |
16791 | rm -f conftest.er1 | |
16792 | cat conftest.err >&5 | |
a848cd7e SC |
16793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16794 | (exit $ac_status); } && | |
0093c2fc | 16795 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16797 | (eval $ac_try) 2>&5 | |
16798 | ac_status=$? | |
16799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16800 | (exit $ac_status); }; } && | |
16801 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16803 | (eval $ac_try) 2>&5 | |
16804 | ac_status=$? | |
16805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16806 | (exit $ac_status); }; }; then | |
16807 | ac_hi=$ac_mid; break | |
16808 | else | |
16809 | echo "$as_me: failed program was:" >&5 | |
16810 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16811 | ||
16812 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
16813 | if test $ac_lo -le $ac_mid; then |
16814 | ac_lo= ac_hi= | |
16815 | break | |
16816 | fi | |
16817 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16818 | fi |
ac1cb8d3 | 16819 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16820 | done |
16821 | else | |
16822 | echo "$as_me: failed program was:" >&5 | |
16823 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16824 | ||
16825 | cat >conftest.$ac_ext <<_ACEOF | |
16826 | /* confdefs.h. */ | |
16827 | _ACEOF | |
16828 | cat confdefs.h >>conftest.$ac_ext | |
16829 | cat >>conftest.$ac_ext <<_ACEOF | |
16830 | /* end confdefs.h. */ | |
16831 | $ac_includes_default | |
16832 | int | |
16833 | main () | |
16834 | { | |
16835 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
16836 | test_array [0] = 0 | |
16837 | ||
16838 | ; | |
16839 | return 0; | |
16840 | } | |
16841 | _ACEOF | |
16842 | rm -f conftest.$ac_objext | |
16843 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16844 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16845 | ac_status=$? |
ac1cb8d3 VS |
16846 | grep -v '^ *+' conftest.er1 >conftest.err |
16847 | rm -f conftest.er1 | |
16848 | cat conftest.err >&5 | |
a848cd7e SC |
16849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16850 | (exit $ac_status); } && | |
0093c2fc | 16851 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16853 | (eval $ac_try) 2>&5 | |
16854 | ac_status=$? | |
16855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16856 | (exit $ac_status); }; } && | |
16857 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16859 | (eval $ac_try) 2>&5 | |
16860 | ac_status=$? | |
16861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16862 | (exit $ac_status); }; }; then | |
16863 | ac_hi=-1 ac_mid=-1 | |
16864 | while :; do | |
16865 | cat >conftest.$ac_ext <<_ACEOF | |
16866 | /* confdefs.h. */ | |
16867 | _ACEOF | |
16868 | cat confdefs.h >>conftest.$ac_ext | |
16869 | cat >>conftest.$ac_ext <<_ACEOF | |
16870 | /* end confdefs.h. */ | |
16871 | $ac_includes_default | |
16872 | int | |
16873 | main () | |
16874 | { | |
16875 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
16876 | test_array [0] = 0 | |
16877 | ||
16878 | ; | |
16879 | return 0; | |
16880 | } | |
16881 | _ACEOF | |
16882 | rm -f conftest.$ac_objext | |
16883 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16884 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16885 | ac_status=$? |
ac1cb8d3 VS |
16886 | grep -v '^ *+' conftest.er1 >conftest.err |
16887 | rm -f conftest.er1 | |
16888 | cat conftest.err >&5 | |
a848cd7e SC |
16889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16890 | (exit $ac_status); } && | |
0093c2fc | 16891 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16893 | (eval $ac_try) 2>&5 | |
16894 | ac_status=$? | |
16895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16896 | (exit $ac_status); }; } && | |
16897 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16899 | (eval $ac_try) 2>&5 | |
16900 | ac_status=$? | |
16901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16902 | (exit $ac_status); }; }; then | |
16903 | ac_lo=$ac_mid; break | |
16904 | else | |
16905 | echo "$as_me: failed program was:" >&5 | |
16906 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16907 | ||
16908 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
16909 | if test $ac_mid -le $ac_hi; then |
16910 | ac_lo= ac_hi= | |
16911 | break | |
16912 | fi | |
16913 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16914 | fi |
ac1cb8d3 | 16915 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16916 | done |
16917 | else | |
16918 | echo "$as_me: failed program was:" >&5 | |
16919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16920 | ||
16921 | ac_lo= ac_hi= | |
16922 | fi | |
ac1cb8d3 | 16923 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16924 | fi |
ac1cb8d3 | 16925 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16926 | # Binary search between lo and hi bounds. |
16927 | while test "x$ac_lo" != "x$ac_hi"; do | |
16928 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16929 | cat >conftest.$ac_ext <<_ACEOF | |
16930 | /* confdefs.h. */ | |
16931 | _ACEOF | |
16932 | cat confdefs.h >>conftest.$ac_ext | |
16933 | cat >>conftest.$ac_ext <<_ACEOF | |
16934 | /* end confdefs.h. */ | |
16935 | $ac_includes_default | |
16936 | int | |
16937 | main () | |
16938 | { | |
16939 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
16940 | test_array [0] = 0 | |
16941 | ||
16942 | ; | |
16943 | return 0; | |
16944 | } | |
16945 | _ACEOF | |
16946 | rm -f conftest.$ac_objext | |
16947 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16948 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16949 | ac_status=$? |
ac1cb8d3 VS |
16950 | grep -v '^ *+' conftest.er1 >conftest.err |
16951 | rm -f conftest.er1 | |
16952 | cat conftest.err >&5 | |
a848cd7e SC |
16953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16954 | (exit $ac_status); } && | |
0093c2fc | 16955 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16957 | (eval $ac_try) 2>&5 | |
16958 | ac_status=$? | |
16959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16960 | (exit $ac_status); }; } && | |
16961 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16963 | (eval $ac_try) 2>&5 | |
16964 | ac_status=$? | |
16965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16966 | (exit $ac_status); }; }; then | |
16967 | ac_hi=$ac_mid | |
16968 | else | |
16969 | echo "$as_me: failed program was:" >&5 | |
16970 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16971 | ||
16972 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16973 | fi | |
ac1cb8d3 | 16974 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16975 | done |
16976 | case $ac_lo in | |
16977 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
16978 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
16979 | See \`config.log' for more details." >&5 | |
16980 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
16981 | See \`config.log' for more details." >&2;} | |
16982 | { (exit 1); exit 1; }; } ;; | |
16983 | esac | |
16984 | else | |
16985 | if test "$cross_compiling" = yes; then | |
0093c2fc VZ |
16986 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
16987 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
16988 | { (exit 1); exit 1; }; } |
16989 | else | |
16990 | cat >conftest.$ac_ext <<_ACEOF | |
16991 | /* confdefs.h. */ | |
16992 | _ACEOF | |
16993 | cat confdefs.h >>conftest.$ac_ext | |
16994 | cat >>conftest.$ac_ext <<_ACEOF | |
16995 | /* end confdefs.h. */ | |
16996 | $ac_includes_default | |
16997 | long longval () { return (long) (sizeof (char)); } | |
16998 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
16999 | #include <stdio.h> | |
17000 | #include <stdlib.h> | |
17001 | int | |
17002 | main () | |
17003 | { | |
17004 | ||
17005 | FILE *f = fopen ("conftest.val", "w"); | |
17006 | if (! f) | |
17007 | exit (1); | |
17008 | if (((long) (sizeof (char))) < 0) | |
17009 | { | |
17010 | long i = longval (); | |
17011 | if (i != ((long) (sizeof (char)))) | |
17012 | exit (1); | |
17013 | fprintf (f, "%ld\n", i); | |
17014 | } | |
17015 | else | |
17016 | { | |
17017 | unsigned long i = ulongval (); | |
17018 | if (i != ((long) (sizeof (char)))) | |
17019 | exit (1); | |
17020 | fprintf (f, "%lu\n", i); | |
17021 | } | |
17022 | exit (ferror (f) || fclose (f) != 0); | |
17023 | ||
17024 | ; | |
17025 | return 0; | |
17026 | } | |
17027 | _ACEOF | |
17028 | rm -f conftest$ac_exeext | |
17029 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17030 | (eval $ac_link) 2>&5 | |
17031 | ac_status=$? | |
17032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17033 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
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); }; }; then | |
17039 | ac_cv_sizeof_char=`cat conftest.val` | |
17040 | else | |
17041 | echo "$as_me: program exited with status $ac_status" >&5 | |
17042 | echo "$as_me: failed program was:" >&5 | |
17043 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17044 | ||
17045 | ( exit $ac_status ) | |
17046 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
17047 | See \`config.log' for more details." >&5 | |
17048 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
17049 | See \`config.log' for more details." >&2;} | |
17050 | { (exit 1); exit 1; }; } | |
17051 | fi | |
ac1cb8d3 | 17052 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17053 | fi |
17054 | fi | |
17055 | rm -f conftest.val | |
17056 | else | |
17057 | ac_cv_sizeof_char=0 | |
17058 | fi | |
17059 | fi | |
17060 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
17061 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
17062 | cat >>confdefs.h <<_ACEOF | |
17063 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
17064 | _ACEOF | |
17065 | ||
17066 | ||
17067 | echo "$as_me:$LINENO: checking for short" >&5 | |
17068 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
17069 | if test "${ac_cv_type_short+set}" = set; then | |
17070 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17071 | else | |
17072 | cat >conftest.$ac_ext <<_ACEOF | |
17073 | /* confdefs.h. */ | |
17074 | _ACEOF | |
17075 | cat confdefs.h >>conftest.$ac_ext | |
17076 | cat >>conftest.$ac_ext <<_ACEOF | |
17077 | /* end confdefs.h. */ | |
17078 | $ac_includes_default | |
17079 | int | |
17080 | main () | |
17081 | { | |
17082 | if ((short *) 0) | |
17083 | return 0; | |
17084 | if (sizeof (short)) | |
17085 | return 0; | |
17086 | ; | |
17087 | return 0; | |
17088 | } | |
17089 | _ACEOF | |
17090 | rm -f conftest.$ac_objext | |
17091 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17092 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17093 | ac_status=$? |
ac1cb8d3 VS |
17094 | grep -v '^ *+' conftest.er1 >conftest.err |
17095 | rm -f conftest.er1 | |
17096 | cat conftest.err >&5 | |
a848cd7e SC |
17097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17098 | (exit $ac_status); } && | |
0093c2fc | 17099 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17101 | (eval $ac_try) 2>&5 | |
17102 | ac_status=$? | |
17103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17104 | (exit $ac_status); }; } && | |
17105 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17107 | (eval $ac_try) 2>&5 | |
17108 | ac_status=$? | |
17109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17110 | (exit $ac_status); }; }; then | |
17111 | ac_cv_type_short=yes | |
17112 | else | |
17113 | echo "$as_me: failed program was:" >&5 | |
17114 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17115 | ||
17116 | ac_cv_type_short=no | |
17117 | fi | |
ac1cb8d3 | 17118 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17119 | fi |
17120 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
17121 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
17122 | ||
17123 | echo "$as_me:$LINENO: checking size of short" >&5 | |
17124 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
17125 | if test "${ac_cv_sizeof_short+set}" = set; then | |
17126 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17127 | else | |
17128 | if test "$ac_cv_type_short" = yes; then | |
17129 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17130 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17131 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17132 | # This bug is HP SR number 8606223364. | |
17133 | if test "$cross_compiling" = yes; then | |
17134 | # Depending upon the size, compute the lo and hi bounds. | |
17135 | cat >conftest.$ac_ext <<_ACEOF | |
17136 | /* confdefs.h. */ | |
17137 | _ACEOF | |
17138 | cat confdefs.h >>conftest.$ac_ext | |
17139 | cat >>conftest.$ac_ext <<_ACEOF | |
17140 | /* end confdefs.h. */ | |
17141 | $ac_includes_default | |
17142 | int | |
17143 | main () | |
17144 | { | |
17145 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
17146 | test_array [0] = 0 | |
17147 | ||
17148 | ; | |
17149 | return 0; | |
17150 | } | |
17151 | _ACEOF | |
17152 | rm -f conftest.$ac_objext | |
17153 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17154 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17155 | ac_status=$? |
ac1cb8d3 VS |
17156 | grep -v '^ *+' conftest.er1 >conftest.err |
17157 | rm -f conftest.er1 | |
17158 | cat conftest.err >&5 | |
a848cd7e SC |
17159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17160 | (exit $ac_status); } && | |
0093c2fc | 17161 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17163 | (eval $ac_try) 2>&5 | |
17164 | ac_status=$? | |
17165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17166 | (exit $ac_status); }; } && | |
17167 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17169 | (eval $ac_try) 2>&5 | |
17170 | ac_status=$? | |
17171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17172 | (exit $ac_status); }; }; then | |
17173 | ac_lo=0 ac_mid=0 | |
17174 | while :; do | |
17175 | cat >conftest.$ac_ext <<_ACEOF | |
17176 | /* confdefs.h. */ | |
17177 | _ACEOF | |
17178 | cat confdefs.h >>conftest.$ac_ext | |
17179 | cat >>conftest.$ac_ext <<_ACEOF | |
17180 | /* end confdefs.h. */ | |
17181 | $ac_includes_default | |
17182 | int | |
17183 | main () | |
17184 | { | |
17185 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
17186 | test_array [0] = 0 | |
17187 | ||
17188 | ; | |
17189 | return 0; | |
17190 | } | |
17191 | _ACEOF | |
17192 | rm -f conftest.$ac_objext | |
17193 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17194 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17195 | ac_status=$? |
ac1cb8d3 VS |
17196 | grep -v '^ *+' conftest.er1 >conftest.err |
17197 | rm -f conftest.er1 | |
17198 | cat conftest.err >&5 | |
a848cd7e SC |
17199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17200 | (exit $ac_status); } && | |
0093c2fc | 17201 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17203 | (eval $ac_try) 2>&5 | |
17204 | ac_status=$? | |
17205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17206 | (exit $ac_status); }; } && | |
17207 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17209 | (eval $ac_try) 2>&5 | |
17210 | ac_status=$? | |
17211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17212 | (exit $ac_status); }; }; then | |
17213 | ac_hi=$ac_mid; break | |
17214 | else | |
17215 | echo "$as_me: failed program was:" >&5 | |
17216 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17217 | ||
17218 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17219 | if test $ac_lo -le $ac_mid; then |
17220 | ac_lo= ac_hi= | |
17221 | break | |
17222 | fi | |
17223 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17224 | fi |
ac1cb8d3 | 17225 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17226 | done |
17227 | else | |
17228 | echo "$as_me: failed program was:" >&5 | |
17229 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17230 | ||
17231 | cat >conftest.$ac_ext <<_ACEOF | |
17232 | /* confdefs.h. */ | |
17233 | _ACEOF | |
17234 | cat confdefs.h >>conftest.$ac_ext | |
17235 | cat >>conftest.$ac_ext <<_ACEOF | |
17236 | /* end confdefs.h. */ | |
17237 | $ac_includes_default | |
17238 | int | |
17239 | main () | |
17240 | { | |
17241 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
17242 | test_array [0] = 0 | |
17243 | ||
17244 | ; | |
17245 | return 0; | |
17246 | } | |
17247 | _ACEOF | |
17248 | rm -f conftest.$ac_objext | |
17249 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17250 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17251 | ac_status=$? |
ac1cb8d3 VS |
17252 | grep -v '^ *+' conftest.er1 >conftest.err |
17253 | rm -f conftest.er1 | |
17254 | cat conftest.err >&5 | |
a848cd7e SC |
17255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17256 | (exit $ac_status); } && | |
0093c2fc | 17257 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17259 | (eval $ac_try) 2>&5 | |
17260 | ac_status=$? | |
17261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17262 | (exit $ac_status); }; } && | |
17263 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17265 | (eval $ac_try) 2>&5 | |
17266 | ac_status=$? | |
17267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17268 | (exit $ac_status); }; }; then | |
17269 | ac_hi=-1 ac_mid=-1 | |
17270 | while :; do | |
17271 | cat >conftest.$ac_ext <<_ACEOF | |
17272 | /* confdefs.h. */ | |
17273 | _ACEOF | |
17274 | cat confdefs.h >>conftest.$ac_ext | |
17275 | cat >>conftest.$ac_ext <<_ACEOF | |
17276 | /* end confdefs.h. */ | |
17277 | $ac_includes_default | |
17278 | int | |
17279 | main () | |
17280 | { | |
17281 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
17282 | test_array [0] = 0 | |
17283 | ||
17284 | ; | |
17285 | return 0; | |
17286 | } | |
17287 | _ACEOF | |
17288 | rm -f conftest.$ac_objext | |
17289 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17290 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17291 | ac_status=$? |
ac1cb8d3 VS |
17292 | grep -v '^ *+' conftest.er1 >conftest.err |
17293 | rm -f conftest.er1 | |
17294 | cat conftest.err >&5 | |
a848cd7e SC |
17295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17296 | (exit $ac_status); } && | |
0093c2fc | 17297 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17299 | (eval $ac_try) 2>&5 | |
17300 | ac_status=$? | |
17301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17302 | (exit $ac_status); }; } && | |
17303 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17305 | (eval $ac_try) 2>&5 | |
17306 | ac_status=$? | |
17307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17308 | (exit $ac_status); }; }; then | |
17309 | ac_lo=$ac_mid; break | |
17310 | else | |
17311 | echo "$as_me: failed program was:" >&5 | |
17312 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17313 | ||
17314 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17315 | if test $ac_mid -le $ac_hi; then |
17316 | ac_lo= ac_hi= | |
17317 | break | |
17318 | fi | |
17319 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17320 | fi |
ac1cb8d3 | 17321 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17322 | done |
17323 | else | |
17324 | echo "$as_me: failed program was:" >&5 | |
17325 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17326 | ||
17327 | ac_lo= ac_hi= | |
17328 | fi | |
ac1cb8d3 | 17329 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17330 | fi |
ac1cb8d3 | 17331 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17332 | # Binary search between lo and hi bounds. |
17333 | while test "x$ac_lo" != "x$ac_hi"; do | |
17334 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17335 | cat >conftest.$ac_ext <<_ACEOF | |
17336 | /* confdefs.h. */ | |
17337 | _ACEOF | |
17338 | cat confdefs.h >>conftest.$ac_ext | |
17339 | cat >>conftest.$ac_ext <<_ACEOF | |
17340 | /* end confdefs.h. */ | |
17341 | $ac_includes_default | |
17342 | int | |
17343 | main () | |
17344 | { | |
17345 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
17346 | test_array [0] = 0 | |
17347 | ||
17348 | ; | |
17349 | return 0; | |
17350 | } | |
17351 | _ACEOF | |
17352 | rm -f conftest.$ac_objext | |
17353 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17354 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17355 | ac_status=$? |
ac1cb8d3 VS |
17356 | grep -v '^ *+' conftest.er1 >conftest.err |
17357 | rm -f conftest.er1 | |
17358 | cat conftest.err >&5 | |
a848cd7e SC |
17359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17360 | (exit $ac_status); } && | |
0093c2fc | 17361 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17363 | (eval $ac_try) 2>&5 | |
17364 | ac_status=$? | |
17365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17366 | (exit $ac_status); }; } && | |
17367 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17369 | (eval $ac_try) 2>&5 | |
17370 | ac_status=$? | |
17371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17372 | (exit $ac_status); }; }; then | |
17373 | ac_hi=$ac_mid | |
17374 | else | |
17375 | echo "$as_me: failed program was:" >&5 | |
17376 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17377 | ||
17378 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17379 | fi | |
ac1cb8d3 | 17380 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17381 | done |
17382 | case $ac_lo in | |
17383 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
17384 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
17385 | See \`config.log' for more details." >&5 | |
17386 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
17387 | See \`config.log' for more details." >&2;} | |
17388 | { (exit 1); exit 1; }; } ;; | |
17389 | esac | |
17390 | else | |
17391 | if test "$cross_compiling" = yes; then | |
0093c2fc VZ |
17392 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17393 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
17394 | { (exit 1); exit 1; }; } |
17395 | else | |
17396 | cat >conftest.$ac_ext <<_ACEOF | |
17397 | /* confdefs.h. */ | |
17398 | _ACEOF | |
17399 | cat confdefs.h >>conftest.$ac_ext | |
17400 | cat >>conftest.$ac_ext <<_ACEOF | |
17401 | /* end confdefs.h. */ | |
17402 | $ac_includes_default | |
17403 | long longval () { return (long) (sizeof (short)); } | |
17404 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
17405 | #include <stdio.h> | |
17406 | #include <stdlib.h> | |
17407 | int | |
17408 | main () | |
17409 | { | |
17410 | ||
17411 | FILE *f = fopen ("conftest.val", "w"); | |
17412 | if (! f) | |
17413 | exit (1); | |
17414 | if (((long) (sizeof (short))) < 0) | |
17415 | { | |
17416 | long i = longval (); | |
17417 | if (i != ((long) (sizeof (short)))) | |
17418 | exit (1); | |
17419 | fprintf (f, "%ld\n", i); | |
17420 | } | |
17421 | else | |
17422 | { | |
17423 | unsigned long i = ulongval (); | |
17424 | if (i != ((long) (sizeof (short)))) | |
17425 | exit (1); | |
17426 | fprintf (f, "%lu\n", i); | |
17427 | } | |
17428 | exit (ferror (f) || fclose (f) != 0); | |
17429 | ||
17430 | ; | |
17431 | return 0; | |
17432 | } | |
17433 | _ACEOF | |
17434 | rm -f conftest$ac_exeext | |
17435 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17436 | (eval $ac_link) 2>&5 | |
17437 | ac_status=$? | |
17438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17439 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17441 | (eval $ac_try) 2>&5 | |
17442 | ac_status=$? | |
17443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17444 | (exit $ac_status); }; }; then | |
17445 | ac_cv_sizeof_short=`cat conftest.val` | |
17446 | else | |
17447 | echo "$as_me: program exited with status $ac_status" >&5 | |
17448 | echo "$as_me: failed program was:" >&5 | |
17449 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17450 | ||
17451 | ( exit $ac_status ) | |
17452 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
17453 | See \`config.log' for more details." >&5 | |
17454 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
17455 | See \`config.log' for more details." >&2;} | |
17456 | { (exit 1); exit 1; }; } | |
17457 | fi | |
ac1cb8d3 | 17458 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17459 | fi |
17460 | fi | |
17461 | rm -f conftest.val | |
17462 | else | |
17463 | ac_cv_sizeof_short=0 | |
17464 | fi | |
17465 | fi | |
17466 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
17467 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
17468 | cat >>confdefs.h <<_ACEOF | |
17469 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
17470 | _ACEOF | |
17471 | ||
17472 | ||
17473 | echo "$as_me:$LINENO: checking for void *" >&5 | |
17474 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
17475 | if test "${ac_cv_type_void_p+set}" = set; then | |
17476 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17477 | else | |
17478 | cat >conftest.$ac_ext <<_ACEOF | |
17479 | /* confdefs.h. */ | |
17480 | _ACEOF | |
17481 | cat confdefs.h >>conftest.$ac_ext | |
17482 | cat >>conftest.$ac_ext <<_ACEOF | |
17483 | /* end confdefs.h. */ | |
17484 | $ac_includes_default | |
17485 | int | |
17486 | main () | |
17487 | { | |
17488 | if ((void * *) 0) | |
17489 | return 0; | |
17490 | if (sizeof (void *)) | |
17491 | return 0; | |
17492 | ; | |
17493 | return 0; | |
17494 | } | |
17495 | _ACEOF | |
17496 | rm -f conftest.$ac_objext | |
17497 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17498 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17499 | ac_status=$? |
ac1cb8d3 VS |
17500 | grep -v '^ *+' conftest.er1 >conftest.err |
17501 | rm -f conftest.er1 | |
17502 | cat conftest.err >&5 | |
a848cd7e SC |
17503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17504 | (exit $ac_status); } && | |
0093c2fc | 17505 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17507 | (eval $ac_try) 2>&5 | |
17508 | ac_status=$? | |
17509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17510 | (exit $ac_status); }; } && | |
17511 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17513 | (eval $ac_try) 2>&5 | |
17514 | ac_status=$? | |
17515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17516 | (exit $ac_status); }; }; then | |
17517 | ac_cv_type_void_p=yes | |
17518 | else | |
17519 | echo "$as_me: failed program was:" >&5 | |
17520 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17521 | ||
17522 | ac_cv_type_void_p=no | |
17523 | fi | |
ac1cb8d3 | 17524 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17525 | fi |
17526 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
17527 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
17528 | ||
17529 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
17530 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
17531 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
17532 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17533 | else | |
17534 | if test "$ac_cv_type_void_p" = yes; then | |
17535 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17536 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17537 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17538 | # This bug is HP SR number 8606223364. | |
17539 | if test "$cross_compiling" = yes; then | |
17540 | # Depending upon the size, compute the lo and hi bounds. | |
17541 | cat >conftest.$ac_ext <<_ACEOF | |
17542 | /* confdefs.h. */ | |
17543 | _ACEOF | |
17544 | cat confdefs.h >>conftest.$ac_ext | |
17545 | cat >>conftest.$ac_ext <<_ACEOF | |
17546 | /* end confdefs.h. */ | |
17547 | $ac_includes_default | |
17548 | int | |
17549 | main () | |
17550 | { | |
17551 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
17552 | test_array [0] = 0 | |
17553 | ||
17554 | ; | |
17555 | return 0; | |
17556 | } | |
17557 | _ACEOF | |
17558 | rm -f conftest.$ac_objext | |
17559 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17560 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17561 | ac_status=$? |
ac1cb8d3 VS |
17562 | grep -v '^ *+' conftest.er1 >conftest.err |
17563 | rm -f conftest.er1 | |
17564 | cat conftest.err >&5 | |
a848cd7e SC |
17565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17566 | (exit $ac_status); } && | |
0093c2fc | 17567 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17569 | (eval $ac_try) 2>&5 | |
17570 | ac_status=$? | |
17571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17572 | (exit $ac_status); }; } && | |
17573 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17575 | (eval $ac_try) 2>&5 | |
17576 | ac_status=$? | |
17577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17578 | (exit $ac_status); }; }; then | |
17579 | ac_lo=0 ac_mid=0 | |
17580 | while :; do | |
17581 | cat >conftest.$ac_ext <<_ACEOF | |
17582 | /* confdefs.h. */ | |
17583 | _ACEOF | |
17584 | cat confdefs.h >>conftest.$ac_ext | |
17585 | cat >>conftest.$ac_ext <<_ACEOF | |
17586 | /* end confdefs.h. */ | |
17587 | $ac_includes_default | |
17588 | int | |
17589 | main () | |
17590 | { | |
17591 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
17592 | test_array [0] = 0 | |
17593 | ||
17594 | ; | |
17595 | return 0; | |
17596 | } | |
17597 | _ACEOF | |
17598 | rm -f conftest.$ac_objext | |
17599 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17600 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17601 | ac_status=$? |
ac1cb8d3 VS |
17602 | grep -v '^ *+' conftest.er1 >conftest.err |
17603 | rm -f conftest.er1 | |
17604 | cat conftest.err >&5 | |
a848cd7e SC |
17605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17606 | (exit $ac_status); } && | |
0093c2fc | 17607 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17609 | (eval $ac_try) 2>&5 | |
17610 | ac_status=$? | |
17611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17612 | (exit $ac_status); }; } && | |
17613 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17615 | (eval $ac_try) 2>&5 | |
17616 | ac_status=$? | |
17617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17618 | (exit $ac_status); }; }; then | |
17619 | ac_hi=$ac_mid; break | |
17620 | else | |
17621 | echo "$as_me: failed program was:" >&5 | |
17622 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17623 | ||
17624 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17625 | if test $ac_lo -le $ac_mid; then |
17626 | ac_lo= ac_hi= | |
17627 | break | |
17628 | fi | |
17629 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17630 | fi |
ac1cb8d3 | 17631 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17632 | done |
17633 | else | |
17634 | echo "$as_me: failed program was:" >&5 | |
17635 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17636 | ||
17637 | cat >conftest.$ac_ext <<_ACEOF | |
17638 | /* confdefs.h. */ | |
17639 | _ACEOF | |
17640 | cat confdefs.h >>conftest.$ac_ext | |
17641 | cat >>conftest.$ac_ext <<_ACEOF | |
17642 | /* end confdefs.h. */ | |
17643 | $ac_includes_default | |
17644 | int | |
17645 | main () | |
17646 | { | |
17647 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
17648 | test_array [0] = 0 | |
17649 | ||
17650 | ; | |
17651 | return 0; | |
17652 | } | |
17653 | _ACEOF | |
17654 | rm -f conftest.$ac_objext | |
17655 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17656 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17657 | ac_status=$? |
ac1cb8d3 VS |
17658 | grep -v '^ *+' conftest.er1 >conftest.err |
17659 | rm -f conftest.er1 | |
17660 | cat conftest.err >&5 | |
a848cd7e SC |
17661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17662 | (exit $ac_status); } && | |
0093c2fc | 17663 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17665 | (eval $ac_try) 2>&5 | |
17666 | ac_status=$? | |
17667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17668 | (exit $ac_status); }; } && | |
17669 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17671 | (eval $ac_try) 2>&5 | |
17672 | ac_status=$? | |
17673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17674 | (exit $ac_status); }; }; then | |
17675 | ac_hi=-1 ac_mid=-1 | |
17676 | while :; do | |
17677 | cat >conftest.$ac_ext <<_ACEOF | |
17678 | /* confdefs.h. */ | |
17679 | _ACEOF | |
17680 | cat confdefs.h >>conftest.$ac_ext | |
17681 | cat >>conftest.$ac_ext <<_ACEOF | |
17682 | /* end confdefs.h. */ | |
17683 | $ac_includes_default | |
17684 | int | |
17685 | main () | |
17686 | { | |
17687 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
17688 | test_array [0] = 0 | |
17689 | ||
17690 | ; | |
17691 | return 0; | |
17692 | } | |
17693 | _ACEOF | |
17694 | rm -f conftest.$ac_objext | |
17695 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17696 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17697 | ac_status=$? |
ac1cb8d3 VS |
17698 | grep -v '^ *+' conftest.er1 >conftest.err |
17699 | rm -f conftest.er1 | |
17700 | cat conftest.err >&5 | |
a848cd7e SC |
17701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17702 | (exit $ac_status); } && | |
0093c2fc | 17703 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17705 | (eval $ac_try) 2>&5 | |
17706 | ac_status=$? | |
17707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17708 | (exit $ac_status); }; } && | |
17709 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17711 | (eval $ac_try) 2>&5 | |
17712 | ac_status=$? | |
17713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17714 | (exit $ac_status); }; }; then | |
17715 | ac_lo=$ac_mid; break | |
17716 | else | |
17717 | echo "$as_me: failed program was:" >&5 | |
17718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17719 | ||
17720 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17721 | if test $ac_mid -le $ac_hi; then |
17722 | ac_lo= ac_hi= | |
17723 | break | |
17724 | fi | |
17725 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17726 | fi |
ac1cb8d3 | 17727 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17728 | done |
17729 | else | |
17730 | echo "$as_me: failed program was:" >&5 | |
17731 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17732 | ||
17733 | ac_lo= ac_hi= | |
17734 | fi | |
ac1cb8d3 | 17735 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17736 | fi |
ac1cb8d3 | 17737 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17738 | # Binary search between lo and hi bounds. |
17739 | while test "x$ac_lo" != "x$ac_hi"; do | |
17740 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17741 | cat >conftest.$ac_ext <<_ACEOF | |
17742 | /* confdefs.h. */ | |
17743 | _ACEOF | |
17744 | cat confdefs.h >>conftest.$ac_ext | |
17745 | cat >>conftest.$ac_ext <<_ACEOF | |
17746 | /* end confdefs.h. */ | |
17747 | $ac_includes_default | |
17748 | int | |
17749 | main () | |
17750 | { | |
17751 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
17752 | test_array [0] = 0 | |
17753 | ||
17754 | ; | |
17755 | return 0; | |
17756 | } | |
17757 | _ACEOF | |
17758 | rm -f conftest.$ac_objext | |
17759 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17760 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17761 | ac_status=$? |
ac1cb8d3 VS |
17762 | grep -v '^ *+' conftest.er1 >conftest.err |
17763 | rm -f conftest.er1 | |
17764 | cat conftest.err >&5 | |
a848cd7e SC |
17765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17766 | (exit $ac_status); } && | |
0093c2fc | 17767 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17769 | (eval $ac_try) 2>&5 | |
17770 | ac_status=$? | |
17771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17772 | (exit $ac_status); }; } && | |
17773 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17775 | (eval $ac_try) 2>&5 | |
17776 | ac_status=$? | |
17777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17778 | (exit $ac_status); }; }; then | |
17779 | ac_hi=$ac_mid | |
17780 | else | |
17781 | echo "$as_me: failed program was:" >&5 | |
17782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17783 | ||
17784 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17785 | fi | |
ac1cb8d3 | 17786 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17787 | done |
17788 | case $ac_lo in | |
17789 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
17790 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
17791 | See \`config.log' for more details." >&5 | |
17792 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
17793 | See \`config.log' for more details." >&2;} | |
17794 | { (exit 1); exit 1; }; } ;; | |
17795 | esac | |
17796 | else | |
17797 | if test "$cross_compiling" = yes; then | |
0093c2fc VZ |
17798 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17799 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
17800 | { (exit 1); exit 1; }; } |
17801 | else | |
17802 | cat >conftest.$ac_ext <<_ACEOF | |
17803 | /* confdefs.h. */ | |
17804 | _ACEOF | |
17805 | cat confdefs.h >>conftest.$ac_ext | |
17806 | cat >>conftest.$ac_ext <<_ACEOF | |
17807 | /* end confdefs.h. */ | |
17808 | $ac_includes_default | |
17809 | long longval () { return (long) (sizeof (void *)); } | |
17810 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
17811 | #include <stdio.h> | |
17812 | #include <stdlib.h> | |
17813 | int | |
17814 | main () | |
17815 | { | |
17816 | ||
17817 | FILE *f = fopen ("conftest.val", "w"); | |
17818 | if (! f) | |
17819 | exit (1); | |
17820 | if (((long) (sizeof (void *))) < 0) | |
17821 | { | |
17822 | long i = longval (); | |
17823 | if (i != ((long) (sizeof (void *)))) | |
17824 | exit (1); | |
17825 | fprintf (f, "%ld\n", i); | |
17826 | } | |
17827 | else | |
17828 | { | |
17829 | unsigned long i = ulongval (); | |
17830 | if (i != ((long) (sizeof (void *)))) | |
17831 | exit (1); | |
17832 | fprintf (f, "%lu\n", i); | |
17833 | } | |
17834 | exit (ferror (f) || fclose (f) != 0); | |
17835 | ||
17836 | ; | |
17837 | return 0; | |
17838 | } | |
17839 | _ACEOF | |
17840 | rm -f conftest$ac_exeext | |
17841 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17842 | (eval $ac_link) 2>&5 | |
17843 | ac_status=$? | |
17844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17845 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17847 | (eval $ac_try) 2>&5 | |
17848 | ac_status=$? | |
17849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17850 | (exit $ac_status); }; }; then | |
17851 | ac_cv_sizeof_void_p=`cat conftest.val` | |
17852 | else | |
17853 | echo "$as_me: program exited with status $ac_status" >&5 | |
17854 | echo "$as_me: failed program was:" >&5 | |
17855 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17856 | ||
17857 | ( exit $ac_status ) | |
17858 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
17859 | See \`config.log' for more details." >&5 | |
17860 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
17861 | See \`config.log' for more details." >&2;} | |
17862 | { (exit 1); exit 1; }; } | |
17863 | fi | |
ac1cb8d3 | 17864 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17865 | fi |
17866 | fi | |
17867 | rm -f conftest.val | |
17868 | else | |
17869 | ac_cv_sizeof_void_p=0 | |
17870 | fi | |
17871 | fi | |
17872 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
17873 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
17874 | cat >>confdefs.h <<_ACEOF | |
17875 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
17876 | _ACEOF | |
17877 | ||
17878 | ||
17879 | echo "$as_me:$LINENO: checking for int" >&5 | |
17880 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
17881 | if test "${ac_cv_type_int+set}" = set; then | |
17882 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17883 | else | |
17884 | cat >conftest.$ac_ext <<_ACEOF | |
17885 | /* confdefs.h. */ | |
17886 | _ACEOF | |
17887 | cat confdefs.h >>conftest.$ac_ext | |
17888 | cat >>conftest.$ac_ext <<_ACEOF | |
17889 | /* end confdefs.h. */ | |
17890 | $ac_includes_default | |
17891 | int | |
17892 | main () | |
17893 | { | |
17894 | if ((int *) 0) | |
17895 | return 0; | |
17896 | if (sizeof (int)) | |
17897 | return 0; | |
17898 | ; | |
17899 | return 0; | |
17900 | } | |
17901 | _ACEOF | |
17902 | rm -f conftest.$ac_objext | |
17903 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17904 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17905 | ac_status=$? |
ac1cb8d3 VS |
17906 | grep -v '^ *+' conftest.er1 >conftest.err |
17907 | rm -f conftest.er1 | |
17908 | cat conftest.err >&5 | |
a848cd7e SC |
17909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17910 | (exit $ac_status); } && | |
0093c2fc | 17911 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17913 | (eval $ac_try) 2>&5 | |
17914 | ac_status=$? | |
17915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17916 | (exit $ac_status); }; } && | |
17917 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17919 | (eval $ac_try) 2>&5 | |
17920 | ac_status=$? | |
17921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17922 | (exit $ac_status); }; }; then | |
17923 | ac_cv_type_int=yes | |
17924 | else | |
17925 | echo "$as_me: failed program was:" >&5 | |
17926 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17927 | ||
17928 | ac_cv_type_int=no | |
17929 | fi | |
ac1cb8d3 | 17930 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17931 | fi |
17932 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
17933 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
17934 | ||
17935 | echo "$as_me:$LINENO: checking size of int" >&5 | |
17936 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
17937 | if test "${ac_cv_sizeof_int+set}" = set; then | |
17938 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17939 | else | |
17940 | if test "$ac_cv_type_int" = yes; then | |
17941 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17942 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17943 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17944 | # This bug is HP SR number 8606223364. | |
17945 | if test "$cross_compiling" = yes; then | |
17946 | # Depending upon the size, compute the lo and hi bounds. | |
17947 | cat >conftest.$ac_ext <<_ACEOF | |
17948 | /* confdefs.h. */ | |
17949 | _ACEOF | |
17950 | cat confdefs.h >>conftest.$ac_ext | |
17951 | cat >>conftest.$ac_ext <<_ACEOF | |
17952 | /* end confdefs.h. */ | |
17953 | $ac_includes_default | |
17954 | int | |
17955 | main () | |
17956 | { | |
17957 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
17958 | test_array [0] = 0 | |
17959 | ||
17960 | ; | |
17961 | return 0; | |
17962 | } | |
17963 | _ACEOF | |
17964 | rm -f conftest.$ac_objext | |
17965 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17966 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17967 | ac_status=$? |
ac1cb8d3 VS |
17968 | grep -v '^ *+' conftest.er1 >conftest.err |
17969 | rm -f conftest.er1 | |
17970 | cat conftest.err >&5 | |
a848cd7e SC |
17971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17972 | (exit $ac_status); } && | |
0093c2fc | 17973 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17975 | (eval $ac_try) 2>&5 | |
17976 | ac_status=$? | |
17977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17978 | (exit $ac_status); }; } && | |
17979 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17981 | (eval $ac_try) 2>&5 | |
17982 | ac_status=$? | |
17983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17984 | (exit $ac_status); }; }; then | |
17985 | ac_lo=0 ac_mid=0 | |
17986 | while :; do | |
17987 | cat >conftest.$ac_ext <<_ACEOF | |
17988 | /* confdefs.h. */ | |
17989 | _ACEOF | |
17990 | cat confdefs.h >>conftest.$ac_ext | |
17991 | cat >>conftest.$ac_ext <<_ACEOF | |
17992 | /* end confdefs.h. */ | |
17993 | $ac_includes_default | |
17994 | int | |
17995 | main () | |
17996 | { | |
17997 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
17998 | test_array [0] = 0 | |
17999 | ||
18000 | ; | |
18001 | return 0; | |
18002 | } | |
18003 | _ACEOF | |
18004 | rm -f conftest.$ac_objext | |
18005 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18006 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18007 | ac_status=$? |
ac1cb8d3 VS |
18008 | grep -v '^ *+' conftest.er1 >conftest.err |
18009 | rm -f conftest.er1 | |
18010 | cat conftest.err >&5 | |
a848cd7e SC |
18011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18012 | (exit $ac_status); } && | |
0093c2fc | 18013 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18015 | (eval $ac_try) 2>&5 | |
18016 | ac_status=$? | |
18017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18018 | (exit $ac_status); }; } && | |
18019 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18021 | (eval $ac_try) 2>&5 | |
18022 | ac_status=$? | |
18023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18024 | (exit $ac_status); }; }; then | |
18025 | ac_hi=$ac_mid; break | |
18026 | else | |
18027 | echo "$as_me: failed program was:" >&5 | |
18028 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18029 | ||
18030 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18031 | if test $ac_lo -le $ac_mid; then |
18032 | ac_lo= ac_hi= | |
18033 | break | |
18034 | fi | |
18035 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18036 | fi |
ac1cb8d3 | 18037 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18038 | done |
18039 | else | |
18040 | echo "$as_me: failed program was:" >&5 | |
18041 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18042 | ||
18043 | cat >conftest.$ac_ext <<_ACEOF | |
18044 | /* confdefs.h. */ | |
18045 | _ACEOF | |
18046 | cat confdefs.h >>conftest.$ac_ext | |
18047 | cat >>conftest.$ac_ext <<_ACEOF | |
18048 | /* end confdefs.h. */ | |
18049 | $ac_includes_default | |
18050 | int | |
18051 | main () | |
18052 | { | |
18053 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
18054 | test_array [0] = 0 | |
18055 | ||
18056 | ; | |
18057 | return 0; | |
18058 | } | |
18059 | _ACEOF | |
18060 | rm -f conftest.$ac_objext | |
18061 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18062 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18063 | ac_status=$? |
ac1cb8d3 VS |
18064 | grep -v '^ *+' conftest.er1 >conftest.err |
18065 | rm -f conftest.er1 | |
18066 | cat conftest.err >&5 | |
a848cd7e SC |
18067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18068 | (exit $ac_status); } && | |
0093c2fc | 18069 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18071 | (eval $ac_try) 2>&5 | |
18072 | ac_status=$? | |
18073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18074 | (exit $ac_status); }; } && | |
18075 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18077 | (eval $ac_try) 2>&5 | |
18078 | ac_status=$? | |
18079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18080 | (exit $ac_status); }; }; then | |
18081 | ac_hi=-1 ac_mid=-1 | |
18082 | while :; do | |
18083 | cat >conftest.$ac_ext <<_ACEOF | |
18084 | /* confdefs.h. */ | |
18085 | _ACEOF | |
18086 | cat confdefs.h >>conftest.$ac_ext | |
18087 | cat >>conftest.$ac_ext <<_ACEOF | |
18088 | /* end confdefs.h. */ | |
18089 | $ac_includes_default | |
18090 | int | |
18091 | main () | |
18092 | { | |
18093 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
18094 | test_array [0] = 0 | |
18095 | ||
18096 | ; | |
18097 | return 0; | |
18098 | } | |
18099 | _ACEOF | |
18100 | rm -f conftest.$ac_objext | |
18101 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18102 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18103 | ac_status=$? |
ac1cb8d3 VS |
18104 | grep -v '^ *+' conftest.er1 >conftest.err |
18105 | rm -f conftest.er1 | |
18106 | cat conftest.err >&5 | |
a848cd7e SC |
18107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18108 | (exit $ac_status); } && | |
0093c2fc | 18109 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18111 | (eval $ac_try) 2>&5 | |
18112 | ac_status=$? | |
18113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18114 | (exit $ac_status); }; } && | |
18115 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18117 | (eval $ac_try) 2>&5 | |
18118 | ac_status=$? | |
18119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18120 | (exit $ac_status); }; }; then | |
18121 | ac_lo=$ac_mid; break | |
18122 | else | |
18123 | echo "$as_me: failed program was:" >&5 | |
18124 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18125 | ||
18126 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18127 | if test $ac_mid -le $ac_hi; then |
18128 | ac_lo= ac_hi= | |
18129 | break | |
18130 | fi | |
18131 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18132 | fi |
ac1cb8d3 | 18133 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18134 | done |
18135 | else | |
18136 | echo "$as_me: failed program was:" >&5 | |
18137 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18138 | ||
18139 | ac_lo= ac_hi= | |
18140 | fi | |
ac1cb8d3 | 18141 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18142 | fi |
ac1cb8d3 | 18143 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18144 | # Binary search between lo and hi bounds. |
18145 | while test "x$ac_lo" != "x$ac_hi"; do | |
18146 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18147 | cat >conftest.$ac_ext <<_ACEOF | |
18148 | /* confdefs.h. */ | |
18149 | _ACEOF | |
18150 | cat confdefs.h >>conftest.$ac_ext | |
18151 | cat >>conftest.$ac_ext <<_ACEOF | |
18152 | /* end confdefs.h. */ | |
18153 | $ac_includes_default | |
18154 | int | |
18155 | main () | |
18156 | { | |
18157 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
18158 | test_array [0] = 0 | |
18159 | ||
18160 | ; | |
18161 | return 0; | |
18162 | } | |
18163 | _ACEOF | |
18164 | rm -f conftest.$ac_objext | |
18165 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18166 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18167 | ac_status=$? |
ac1cb8d3 VS |
18168 | grep -v '^ *+' conftest.er1 >conftest.err |
18169 | rm -f conftest.er1 | |
18170 | cat conftest.err >&5 | |
a848cd7e SC |
18171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18172 | (exit $ac_status); } && | |
0093c2fc | 18173 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18175 | (eval $ac_try) 2>&5 | |
18176 | ac_status=$? | |
18177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18178 | (exit $ac_status); }; } && | |
18179 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18181 | (eval $ac_try) 2>&5 | |
18182 | ac_status=$? | |
18183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18184 | (exit $ac_status); }; }; then | |
18185 | ac_hi=$ac_mid | |
18186 | else | |
18187 | echo "$as_me: failed program was:" >&5 | |
18188 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18189 | ||
18190 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18191 | fi | |
ac1cb8d3 | 18192 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18193 | done |
18194 | case $ac_lo in | |
18195 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
18196 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
18197 | See \`config.log' for more details." >&5 | |
18198 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
18199 | See \`config.log' for more details." >&2;} | |
18200 | { (exit 1); exit 1; }; } ;; | |
18201 | esac | |
18202 | else | |
18203 | if test "$cross_compiling" = yes; then | |
0093c2fc VZ |
18204 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
18205 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
18206 | { (exit 1); exit 1; }; } |
18207 | else | |
18208 | cat >conftest.$ac_ext <<_ACEOF | |
18209 | /* confdefs.h. */ | |
18210 | _ACEOF | |
18211 | cat confdefs.h >>conftest.$ac_ext | |
18212 | cat >>conftest.$ac_ext <<_ACEOF | |
18213 | /* end confdefs.h. */ | |
18214 | $ac_includes_default | |
18215 | long longval () { return (long) (sizeof (int)); } | |
18216 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
18217 | #include <stdio.h> | |
18218 | #include <stdlib.h> | |
18219 | int | |
18220 | main () | |
18221 | { | |
18222 | ||
18223 | FILE *f = fopen ("conftest.val", "w"); | |
18224 | if (! f) | |
18225 | exit (1); | |
18226 | if (((long) (sizeof (int))) < 0) | |
18227 | { | |
18228 | long i = longval (); | |
18229 | if (i != ((long) (sizeof (int)))) | |
18230 | exit (1); | |
18231 | fprintf (f, "%ld\n", i); | |
18232 | } | |
18233 | else | |
18234 | { | |
18235 | unsigned long i = ulongval (); | |
18236 | if (i != ((long) (sizeof (int)))) | |
18237 | exit (1); | |
18238 | fprintf (f, "%lu\n", i); | |
18239 | } | |
18240 | exit (ferror (f) || fclose (f) != 0); | |
18241 | ||
18242 | ; | |
18243 | return 0; | |
18244 | } | |
18245 | _ACEOF | |
18246 | rm -f conftest$ac_exeext | |
18247 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18248 | (eval $ac_link) 2>&5 | |
18249 | ac_status=$? | |
18250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18251 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18253 | (eval $ac_try) 2>&5 | |
18254 | ac_status=$? | |
18255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18256 | (exit $ac_status); }; }; then | |
18257 | ac_cv_sizeof_int=`cat conftest.val` | |
18258 | else | |
18259 | echo "$as_me: program exited with status $ac_status" >&5 | |
18260 | echo "$as_me: failed program was:" >&5 | |
18261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18262 | ||
18263 | ( exit $ac_status ) | |
18264 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
18265 | See \`config.log' for more details." >&5 | |
18266 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
18267 | See \`config.log' for more details." >&2;} | |
18268 | { (exit 1); exit 1; }; } | |
18269 | fi | |
ac1cb8d3 | 18270 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18271 | fi |
18272 | fi | |
18273 | rm -f conftest.val | |
18274 | else | |
18275 | ac_cv_sizeof_int=0 | |
18276 | fi | |
18277 | fi | |
18278 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
18279 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
18280 | cat >>confdefs.h <<_ACEOF | |
18281 | #define SIZEOF_INT $ac_cv_sizeof_int | |
18282 | _ACEOF | |
18283 | ||
18284 | ||
18285 | echo "$as_me:$LINENO: checking for long" >&5 | |
18286 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
18287 | if test "${ac_cv_type_long+set}" = set; then | |
18288 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18289 | else | |
18290 | cat >conftest.$ac_ext <<_ACEOF | |
18291 | /* confdefs.h. */ | |
18292 | _ACEOF | |
18293 | cat confdefs.h >>conftest.$ac_ext | |
18294 | cat >>conftest.$ac_ext <<_ACEOF | |
18295 | /* end confdefs.h. */ | |
18296 | $ac_includes_default | |
18297 | int | |
18298 | main () | |
18299 | { | |
18300 | if ((long *) 0) | |
18301 | return 0; | |
18302 | if (sizeof (long)) | |
18303 | return 0; | |
18304 | ; | |
18305 | return 0; | |
18306 | } | |
18307 | _ACEOF | |
18308 | rm -f conftest.$ac_objext | |
18309 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18310 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18311 | ac_status=$? |
ac1cb8d3 VS |
18312 | grep -v '^ *+' conftest.er1 >conftest.err |
18313 | rm -f conftest.er1 | |
18314 | cat conftest.err >&5 | |
a848cd7e SC |
18315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18316 | (exit $ac_status); } && | |
0093c2fc | 18317 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18319 | (eval $ac_try) 2>&5 | |
18320 | ac_status=$? | |
18321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18322 | (exit $ac_status); }; } && | |
18323 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18325 | (eval $ac_try) 2>&5 | |
18326 | ac_status=$? | |
18327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18328 | (exit $ac_status); }; }; then | |
18329 | ac_cv_type_long=yes | |
18330 | else | |
18331 | echo "$as_me: failed program was:" >&5 | |
18332 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18333 | ||
18334 | ac_cv_type_long=no | |
18335 | fi | |
ac1cb8d3 | 18336 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18337 | fi |
18338 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
18339 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
18340 | ||
18341 | echo "$as_me:$LINENO: checking size of long" >&5 | |
18342 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
18343 | if test "${ac_cv_sizeof_long+set}" = set; then | |
18344 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18345 | else | |
18346 | if test "$ac_cv_type_long" = yes; then | |
18347 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18348 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18349 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18350 | # This bug is HP SR number 8606223364. | |
18351 | if test "$cross_compiling" = yes; then | |
18352 | # Depending upon the size, compute the lo and hi bounds. | |
18353 | cat >conftest.$ac_ext <<_ACEOF | |
18354 | /* confdefs.h. */ | |
18355 | _ACEOF | |
18356 | cat confdefs.h >>conftest.$ac_ext | |
18357 | cat >>conftest.$ac_ext <<_ACEOF | |
18358 | /* end confdefs.h. */ | |
18359 | $ac_includes_default | |
18360 | int | |
18361 | main () | |
18362 | { | |
18363 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
18364 | test_array [0] = 0 | |
18365 | ||
18366 | ; | |
18367 | return 0; | |
18368 | } | |
18369 | _ACEOF | |
18370 | rm -f conftest.$ac_objext | |
18371 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18372 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18373 | ac_status=$? |
ac1cb8d3 VS |
18374 | grep -v '^ *+' conftest.er1 >conftest.err |
18375 | rm -f conftest.er1 | |
18376 | cat conftest.err >&5 | |
a848cd7e SC |
18377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18378 | (exit $ac_status); } && | |
0093c2fc | 18379 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18381 | (eval $ac_try) 2>&5 | |
18382 | ac_status=$? | |
18383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18384 | (exit $ac_status); }; } && | |
18385 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18387 | (eval $ac_try) 2>&5 | |
18388 | ac_status=$? | |
18389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18390 | (exit $ac_status); }; }; then | |
18391 | ac_lo=0 ac_mid=0 | |
18392 | while :; do | |
18393 | cat >conftest.$ac_ext <<_ACEOF | |
18394 | /* confdefs.h. */ | |
18395 | _ACEOF | |
18396 | cat confdefs.h >>conftest.$ac_ext | |
18397 | cat >>conftest.$ac_ext <<_ACEOF | |
18398 | /* end confdefs.h. */ | |
18399 | $ac_includes_default | |
18400 | int | |
18401 | main () | |
18402 | { | |
18403 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
18404 | test_array [0] = 0 | |
18405 | ||
18406 | ; | |
18407 | return 0; | |
18408 | } | |
18409 | _ACEOF | |
18410 | rm -f conftest.$ac_objext | |
18411 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18412 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18413 | ac_status=$? |
ac1cb8d3 VS |
18414 | grep -v '^ *+' conftest.er1 >conftest.err |
18415 | rm -f conftest.er1 | |
18416 | cat conftest.err >&5 | |
a848cd7e SC |
18417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18418 | (exit $ac_status); } && | |
0093c2fc | 18419 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18421 | (eval $ac_try) 2>&5 | |
18422 | ac_status=$? | |
18423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18424 | (exit $ac_status); }; } && | |
18425 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18427 | (eval $ac_try) 2>&5 | |
18428 | ac_status=$? | |
18429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18430 | (exit $ac_status); }; }; then | |
18431 | ac_hi=$ac_mid; break | |
18432 | else | |
18433 | echo "$as_me: failed program was:" >&5 | |
18434 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18435 | ||
18436 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18437 | if test $ac_lo -le $ac_mid; then |
18438 | ac_lo= ac_hi= | |
18439 | break | |
18440 | fi | |
18441 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18442 | fi |
ac1cb8d3 | 18443 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18444 | done |
18445 | else | |
18446 | echo "$as_me: failed program was:" >&5 | |
18447 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18448 | ||
18449 | cat >conftest.$ac_ext <<_ACEOF | |
18450 | /* confdefs.h. */ | |
18451 | _ACEOF | |
18452 | cat confdefs.h >>conftest.$ac_ext | |
18453 | cat >>conftest.$ac_ext <<_ACEOF | |
18454 | /* end confdefs.h. */ | |
18455 | $ac_includes_default | |
18456 | int | |
18457 | main () | |
18458 | { | |
18459 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
18460 | test_array [0] = 0 | |
18461 | ||
18462 | ; | |
18463 | return 0; | |
18464 | } | |
18465 | _ACEOF | |
18466 | rm -f conftest.$ac_objext | |
18467 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18468 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18469 | ac_status=$? |
ac1cb8d3 VS |
18470 | grep -v '^ *+' conftest.er1 >conftest.err |
18471 | rm -f conftest.er1 | |
18472 | cat conftest.err >&5 | |
a848cd7e SC |
18473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18474 | (exit $ac_status); } && | |
0093c2fc | 18475 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18477 | (eval $ac_try) 2>&5 | |
18478 | ac_status=$? | |
18479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18480 | (exit $ac_status); }; } && | |
18481 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18483 | (eval $ac_try) 2>&5 | |
18484 | ac_status=$? | |
18485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18486 | (exit $ac_status); }; }; then | |
18487 | ac_hi=-1 ac_mid=-1 | |
18488 | while :; do | |
18489 | cat >conftest.$ac_ext <<_ACEOF | |
18490 | /* confdefs.h. */ | |
18491 | _ACEOF | |
18492 | cat confdefs.h >>conftest.$ac_ext | |
18493 | cat >>conftest.$ac_ext <<_ACEOF | |
18494 | /* end confdefs.h. */ | |
18495 | $ac_includes_default | |
18496 | int | |
18497 | main () | |
18498 | { | |
18499 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
18500 | test_array [0] = 0 | |
18501 | ||
18502 | ; | |
18503 | return 0; | |
18504 | } | |
18505 | _ACEOF | |
18506 | rm -f conftest.$ac_objext | |
18507 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18508 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18509 | ac_status=$? |
ac1cb8d3 VS |
18510 | grep -v '^ *+' conftest.er1 >conftest.err |
18511 | rm -f conftest.er1 | |
18512 | cat conftest.err >&5 | |
a848cd7e SC |
18513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18514 | (exit $ac_status); } && | |
0093c2fc | 18515 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18517 | (eval $ac_try) 2>&5 | |
18518 | ac_status=$? | |
18519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18520 | (exit $ac_status); }; } && | |
18521 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18523 | (eval $ac_try) 2>&5 | |
18524 | ac_status=$? | |
18525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18526 | (exit $ac_status); }; }; then | |
18527 | ac_lo=$ac_mid; break | |
18528 | else | |
18529 | echo "$as_me: failed program was:" >&5 | |
18530 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18531 | ||
18532 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18533 | if test $ac_mid -le $ac_hi; then |
18534 | ac_lo= ac_hi= | |
18535 | break | |
18536 | fi | |
18537 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18538 | fi |
ac1cb8d3 | 18539 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18540 | done |
18541 | else | |
18542 | echo "$as_me: failed program was:" >&5 | |
18543 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18544 | ||
18545 | ac_lo= ac_hi= | |
18546 | fi | |
ac1cb8d3 | 18547 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18548 | fi |
ac1cb8d3 | 18549 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18550 | # Binary search between lo and hi bounds. |
18551 | while test "x$ac_lo" != "x$ac_hi"; do | |
18552 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18553 | cat >conftest.$ac_ext <<_ACEOF | |
18554 | /* confdefs.h. */ | |
18555 | _ACEOF | |
18556 | cat confdefs.h >>conftest.$ac_ext | |
18557 | cat >>conftest.$ac_ext <<_ACEOF | |
18558 | /* end confdefs.h. */ | |
18559 | $ac_includes_default | |
18560 | int | |
18561 | main () | |
18562 | { | |
18563 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
18564 | test_array [0] = 0 | |
18565 | ||
18566 | ; | |
18567 | return 0; | |
18568 | } | |
18569 | _ACEOF | |
18570 | rm -f conftest.$ac_objext | |
18571 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18572 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18573 | ac_status=$? |
ac1cb8d3 VS |
18574 | grep -v '^ *+' conftest.er1 >conftest.err |
18575 | rm -f conftest.er1 | |
18576 | cat conftest.err >&5 | |
a848cd7e SC |
18577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18578 | (exit $ac_status); } && | |
0093c2fc | 18579 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18581 | (eval $ac_try) 2>&5 | |
18582 | ac_status=$? | |
18583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18584 | (exit $ac_status); }; } && | |
18585 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18587 | (eval $ac_try) 2>&5 | |
18588 | ac_status=$? | |
18589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18590 | (exit $ac_status); }; }; then | |
18591 | ac_hi=$ac_mid | |
18592 | else | |
18593 | echo "$as_me: failed program was:" >&5 | |
18594 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18595 | ||
18596 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18597 | fi | |
ac1cb8d3 | 18598 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18599 | done |
18600 | case $ac_lo in | |
18601 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
18602 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
18603 | See \`config.log' for more details." >&5 | |
18604 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
18605 | See \`config.log' for more details." >&2;} | |
18606 | { (exit 1); exit 1; }; } ;; | |
18607 | esac | |
18608 | else | |
18609 | if test "$cross_compiling" = yes; then | |
0093c2fc VZ |
18610 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
18611 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
18612 | { (exit 1); exit 1; }; } |
18613 | else | |
18614 | cat >conftest.$ac_ext <<_ACEOF | |
18615 | /* confdefs.h. */ | |
18616 | _ACEOF | |
18617 | cat confdefs.h >>conftest.$ac_ext | |
18618 | cat >>conftest.$ac_ext <<_ACEOF | |
18619 | /* end confdefs.h. */ | |
18620 | $ac_includes_default | |
18621 | long longval () { return (long) (sizeof (long)); } | |
18622 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
18623 | #include <stdio.h> | |
18624 | #include <stdlib.h> | |
18625 | int | |
18626 | main () | |
18627 | { | |
18628 | ||
18629 | FILE *f = fopen ("conftest.val", "w"); | |
18630 | if (! f) | |
18631 | exit (1); | |
18632 | if (((long) (sizeof (long))) < 0) | |
18633 | { | |
18634 | long i = longval (); | |
18635 | if (i != ((long) (sizeof (long)))) | |
18636 | exit (1); | |
18637 | fprintf (f, "%ld\n", i); | |
18638 | } | |
18639 | else | |
18640 | { | |
18641 | unsigned long i = ulongval (); | |
18642 | if (i != ((long) (sizeof (long)))) | |
18643 | exit (1); | |
18644 | fprintf (f, "%lu\n", i); | |
18645 | } | |
18646 | exit (ferror (f) || fclose (f) != 0); | |
18647 | ||
18648 | ; | |
18649 | return 0; | |
18650 | } | |
18651 | _ACEOF | |
18652 | rm -f conftest$ac_exeext | |
18653 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18654 | (eval $ac_link) 2>&5 | |
18655 | ac_status=$? | |
18656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18657 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18659 | (eval $ac_try) 2>&5 | |
18660 | ac_status=$? | |
18661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18662 | (exit $ac_status); }; }; then | |
18663 | ac_cv_sizeof_long=`cat conftest.val` | |
18664 | else | |
18665 | echo "$as_me: program exited with status $ac_status" >&5 | |
18666 | echo "$as_me: failed program was:" >&5 | |
18667 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18668 | ||
18669 | ( exit $ac_status ) | |
18670 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
18671 | See \`config.log' for more details." >&5 | |
18672 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
18673 | See \`config.log' for more details." >&2;} | |
18674 | { (exit 1); exit 1; }; } | |
18675 | fi | |
ac1cb8d3 | 18676 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18677 | fi |
18678 | fi | |
18679 | rm -f conftest.val | |
18680 | else | |
18681 | ac_cv_sizeof_long=0 | |
18682 | fi | |
18683 | fi | |
18684 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
18685 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
18686 | cat >>confdefs.h <<_ACEOF | |
18687 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
18688 | _ACEOF | |
18689 | ||
18690 | ||
18691 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
18692 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
18693 | if test "${ac_cv_type_size_t+set}" = set; then | |
18694 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18695 | else | |
18696 | cat >conftest.$ac_ext <<_ACEOF | |
18697 | /* confdefs.h. */ | |
18698 | _ACEOF | |
18699 | cat confdefs.h >>conftest.$ac_ext | |
18700 | cat >>conftest.$ac_ext <<_ACEOF | |
18701 | /* end confdefs.h. */ | |
18702 | $ac_includes_default | |
18703 | int | |
18704 | main () | |
18705 | { | |
18706 | if ((size_t *) 0) | |
18707 | return 0; | |
18708 | if (sizeof (size_t)) | |
18709 | return 0; | |
18710 | ; | |
18711 | return 0; | |
18712 | } | |
18713 | _ACEOF | |
18714 | rm -f conftest.$ac_objext | |
18715 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18716 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18717 | ac_status=$? |
ac1cb8d3 VS |
18718 | grep -v '^ *+' conftest.er1 >conftest.err |
18719 | rm -f conftest.er1 | |
18720 | cat conftest.err >&5 | |
a848cd7e SC |
18721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18722 | (exit $ac_status); } && | |
0093c2fc | 18723 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18725 | (eval $ac_try) 2>&5 | |
18726 | ac_status=$? | |
18727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18728 | (exit $ac_status); }; } && | |
18729 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18731 | (eval $ac_try) 2>&5 | |
18732 | ac_status=$? | |
18733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18734 | (exit $ac_status); }; }; then | |
18735 | ac_cv_type_size_t=yes | |
18736 | else | |
18737 | echo "$as_me: failed program was:" >&5 | |
18738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18739 | ||
18740 | ac_cv_type_size_t=no | |
18741 | fi | |
ac1cb8d3 | 18742 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18743 | fi |
18744 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
18745 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
18746 | ||
18747 | echo "$as_me:$LINENO: checking size of size_t" >&5 | |
18748 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
18749 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
18750 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18751 | else | |
18752 | if test "$ac_cv_type_size_t" = yes; then | |
18753 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18754 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18755 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18756 | # This bug is HP SR number 8606223364. | |
18757 | if test "$cross_compiling" = yes; then | |
18758 | # Depending upon the size, compute the lo and hi bounds. | |
18759 | cat >conftest.$ac_ext <<_ACEOF | |
18760 | /* confdefs.h. */ | |
18761 | _ACEOF | |
18762 | cat confdefs.h >>conftest.$ac_ext | |
18763 | cat >>conftest.$ac_ext <<_ACEOF | |
18764 | /* end confdefs.h. */ | |
18765 | $ac_includes_default | |
18766 | int | |
18767 | main () | |
18768 | { | |
18769 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
18770 | test_array [0] = 0 | |
18771 | ||
18772 | ; | |
18773 | return 0; | |
18774 | } | |
18775 | _ACEOF | |
18776 | rm -f conftest.$ac_objext | |
18777 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18778 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18779 | ac_status=$? |
ac1cb8d3 VS |
18780 | grep -v '^ *+' conftest.er1 >conftest.err |
18781 | rm -f conftest.er1 | |
18782 | cat conftest.err >&5 | |
a848cd7e SC |
18783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18784 | (exit $ac_status); } && | |
0093c2fc | 18785 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18787 | (eval $ac_try) 2>&5 | |
18788 | ac_status=$? | |
18789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18790 | (exit $ac_status); }; } && | |
18791 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18793 | (eval $ac_try) 2>&5 | |
18794 | ac_status=$? | |
18795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18796 | (exit $ac_status); }; }; then | |
18797 | ac_lo=0 ac_mid=0 | |
18798 | while :; do | |
18799 | cat >conftest.$ac_ext <<_ACEOF | |
18800 | /* confdefs.h. */ | |
18801 | _ACEOF | |
18802 | cat confdefs.h >>conftest.$ac_ext | |
18803 | cat >>conftest.$ac_ext <<_ACEOF | |
18804 | /* end confdefs.h. */ | |
18805 | $ac_includes_default | |
18806 | int | |
18807 | main () | |
18808 | { | |
18809 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
18810 | test_array [0] = 0 | |
18811 | ||
18812 | ; | |
18813 | return 0; | |
18814 | } | |
18815 | _ACEOF | |
18816 | rm -f conftest.$ac_objext | |
18817 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18818 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18819 | ac_status=$? |
ac1cb8d3 VS |
18820 | grep -v '^ *+' conftest.er1 >conftest.err |
18821 | rm -f conftest.er1 | |
18822 | cat conftest.err >&5 | |
a848cd7e SC |
18823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18824 | (exit $ac_status); } && | |
0093c2fc | 18825 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18827 | (eval $ac_try) 2>&5 | |
18828 | ac_status=$? | |
18829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18830 | (exit $ac_status); }; } && | |
18831 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18833 | (eval $ac_try) 2>&5 | |
18834 | ac_status=$? | |
18835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18836 | (exit $ac_status); }; }; then | |
18837 | ac_hi=$ac_mid; break | |
18838 | else | |
18839 | echo "$as_me: failed program was:" >&5 | |
18840 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18841 | ||
18842 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18843 | if test $ac_lo -le $ac_mid; then |
18844 | ac_lo= ac_hi= | |
18845 | break | |
18846 | fi | |
18847 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18848 | fi |
ac1cb8d3 | 18849 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18850 | done |
18851 | else | |
18852 | echo "$as_me: failed program was:" >&5 | |
18853 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18854 | ||
18855 | cat >conftest.$ac_ext <<_ACEOF | |
18856 | /* confdefs.h. */ | |
18857 | _ACEOF | |
18858 | cat confdefs.h >>conftest.$ac_ext | |
18859 | cat >>conftest.$ac_ext <<_ACEOF | |
18860 | /* end confdefs.h. */ | |
18861 | $ac_includes_default | |
18862 | int | |
18863 | main () | |
18864 | { | |
18865 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; | |
18866 | test_array [0] = 0 | |
18867 | ||
18868 | ; | |
18869 | return 0; | |
18870 | } | |
18871 | _ACEOF | |
18872 | rm -f conftest.$ac_objext | |
18873 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18874 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18875 | ac_status=$? |
ac1cb8d3 VS |
18876 | grep -v '^ *+' conftest.er1 >conftest.err |
18877 | rm -f conftest.er1 | |
18878 | cat conftest.err >&5 | |
a848cd7e SC |
18879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18880 | (exit $ac_status); } && | |
0093c2fc | 18881 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18883 | (eval $ac_try) 2>&5 | |
18884 | ac_status=$? | |
18885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18886 | (exit $ac_status); }; } && | |
18887 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18889 | (eval $ac_try) 2>&5 | |
18890 | ac_status=$? | |
18891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18892 | (exit $ac_status); }; }; then | |
18893 | ac_hi=-1 ac_mid=-1 | |
18894 | while :; do | |
18895 | cat >conftest.$ac_ext <<_ACEOF | |
18896 | /* confdefs.h. */ | |
18897 | _ACEOF | |
18898 | cat confdefs.h >>conftest.$ac_ext | |
18899 | cat >>conftest.$ac_ext <<_ACEOF | |
18900 | /* end confdefs.h. */ | |
18901 | $ac_includes_default | |
18902 | int | |
18903 | main () | |
18904 | { | |
18905 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
18906 | test_array [0] = 0 | |
18907 | ||
18908 | ; | |
18909 | return 0; | |
18910 | } | |
18911 | _ACEOF | |
18912 | rm -f conftest.$ac_objext | |
18913 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18914 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18915 | ac_status=$? |
ac1cb8d3 VS |
18916 | grep -v '^ *+' conftest.er1 >conftest.err |
18917 | rm -f conftest.er1 | |
18918 | cat conftest.err >&5 | |
a848cd7e SC |
18919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18920 | (exit $ac_status); } && | |
0093c2fc | 18921 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18923 | (eval $ac_try) 2>&5 | |
18924 | ac_status=$? | |
18925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18926 | (exit $ac_status); }; } && | |
18927 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18929 | (eval $ac_try) 2>&5 | |
18930 | ac_status=$? | |
18931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18932 | (exit $ac_status); }; }; then | |
18933 | ac_lo=$ac_mid; break | |
18934 | else | |
18935 | echo "$as_me: failed program was:" >&5 | |
18936 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18937 | ||
18938 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18939 | if test $ac_mid -le $ac_hi; then |
18940 | ac_lo= ac_hi= | |
18941 | break | |
18942 | fi | |
18943 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18944 | fi |
ac1cb8d3 | 18945 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18946 | done |
18947 | else | |
18948 | echo "$as_me: failed program was:" >&5 | |
18949 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18950 | ||
18951 | ac_lo= ac_hi= | |
18952 | fi | |
ac1cb8d3 | 18953 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18954 | fi |
ac1cb8d3 | 18955 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18956 | # Binary search between lo and hi bounds. |
18957 | while test "x$ac_lo" != "x$ac_hi"; do | |
18958 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18959 | cat >conftest.$ac_ext <<_ACEOF | |
18960 | /* confdefs.h. */ | |
18961 | _ACEOF | |
18962 | cat confdefs.h >>conftest.$ac_ext | |
18963 | cat >>conftest.$ac_ext <<_ACEOF | |
18964 | /* end confdefs.h. */ | |
18965 | $ac_includes_default | |
18966 | int | |
18967 | main () | |
18968 | { | |
18969 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
18970 | test_array [0] = 0 | |
18971 | ||
18972 | ; | |
18973 | return 0; | |
18974 | } | |
18975 | _ACEOF | |
18976 | rm -f conftest.$ac_objext | |
18977 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18978 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18979 | ac_status=$? |
ac1cb8d3 VS |
18980 | grep -v '^ *+' conftest.er1 >conftest.err |
18981 | rm -f conftest.er1 | |
18982 | cat conftest.err >&5 | |
a848cd7e SC |
18983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18984 | (exit $ac_status); } && | |
0093c2fc | 18985 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18987 | (eval $ac_try) 2>&5 | |
18988 | ac_status=$? | |
18989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18990 | (exit $ac_status); }; } && | |
18991 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18993 | (eval $ac_try) 2>&5 | |
18994 | ac_status=$? | |
18995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18996 | (exit $ac_status); }; }; then | |
18997 | ac_hi=$ac_mid | |
18998 | else | |
18999 | echo "$as_me: failed program was:" >&5 | |
19000 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19001 | ||
19002 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19003 | fi | |
ac1cb8d3 | 19004 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19005 | done |
19006 | case $ac_lo in | |
19007 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
19008 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
19009 | See \`config.log' for more details." >&5 | |
19010 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
19011 | See \`config.log' for more details." >&2;} | |
19012 | { (exit 1); exit 1; }; } ;; | |
19013 | esac | |
19014 | else | |
19015 | if test "$cross_compiling" = yes; then | |
0093c2fc VZ |
19016 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
19017 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
19018 | { (exit 1); exit 1; }; } |
19019 | else | |
19020 | cat >conftest.$ac_ext <<_ACEOF | |
19021 | /* confdefs.h. */ | |
19022 | _ACEOF | |
19023 | cat confdefs.h >>conftest.$ac_ext | |
19024 | cat >>conftest.$ac_ext <<_ACEOF | |
19025 | /* end confdefs.h. */ | |
19026 | $ac_includes_default | |
19027 | long longval () { return (long) (sizeof (size_t)); } | |
19028 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
19029 | #include <stdio.h> | |
19030 | #include <stdlib.h> | |
19031 | int | |
19032 | main () | |
19033 | { | |
19034 | ||
19035 | FILE *f = fopen ("conftest.val", "w"); | |
19036 | if (! f) | |
19037 | exit (1); | |
19038 | if (((long) (sizeof (size_t))) < 0) | |
19039 | { | |
19040 | long i = longval (); | |
19041 | if (i != ((long) (sizeof (size_t)))) | |
19042 | exit (1); | |
19043 | fprintf (f, "%ld\n", i); | |
19044 | } | |
19045 | else | |
19046 | { | |
19047 | unsigned long i = ulongval (); | |
19048 | if (i != ((long) (sizeof (size_t)))) | |
19049 | exit (1); | |
19050 | fprintf (f, "%lu\n", i); | |
19051 | } | |
19052 | exit (ferror (f) || fclose (f) != 0); | |
19053 | ||
19054 | ; | |
19055 | return 0; | |
19056 | } | |
19057 | _ACEOF | |
19058 | rm -f conftest$ac_exeext | |
19059 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19060 | (eval $ac_link) 2>&5 | |
19061 | ac_status=$? | |
19062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19063 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19065 | (eval $ac_try) 2>&5 | |
19066 | ac_status=$? | |
19067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19068 | (exit $ac_status); }; }; then | |
19069 | ac_cv_sizeof_size_t=`cat conftest.val` | |
19070 | else | |
19071 | echo "$as_me: program exited with status $ac_status" >&5 | |
19072 | echo "$as_me: failed program was:" >&5 | |
19073 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19074 | ||
19075 | ( exit $ac_status ) | |
19076 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
19077 | See \`config.log' for more details." >&5 | |
19078 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
19079 | See \`config.log' for more details." >&2;} | |
19080 | { (exit 1); exit 1; }; } | |
19081 | fi | |
ac1cb8d3 | 19082 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19083 | fi |
19084 | fi | |
19085 | rm -f conftest.val | |
19086 | else | |
19087 | ac_cv_sizeof_size_t=0 | |
19088 | fi | |
19089 | fi | |
19090 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 | |
19091 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
19092 | cat >>confdefs.h <<_ACEOF | |
19093 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
19094 | _ACEOF | |
19095 | ||
19096 | ||
19097 | ||
19098 | case "${host}" in | |
19099 | arm-*-linux* ) | |
19100 | echo "$as_me:$LINENO: checking for long long" >&5 | |
19101 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
19102 | if test "${ac_cv_type_long_long+set}" = set; then | |
19103 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19104 | else | |
19105 | cat >conftest.$ac_ext <<_ACEOF | |
19106 | /* confdefs.h. */ | |
19107 | _ACEOF | |
19108 | cat confdefs.h >>conftest.$ac_ext | |
19109 | cat >>conftest.$ac_ext <<_ACEOF | |
19110 | /* end confdefs.h. */ | |
19111 | $ac_includes_default | |
19112 | int | |
19113 | main () | |
19114 | { | |
19115 | if ((long long *) 0) | |
19116 | return 0; | |
19117 | if (sizeof (long long)) | |
19118 | return 0; | |
19119 | ; | |
19120 | return 0; | |
19121 | } | |
19122 | _ACEOF | |
19123 | rm -f conftest.$ac_objext | |
19124 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19125 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19126 | ac_status=$? |
ac1cb8d3 VS |
19127 | grep -v '^ *+' conftest.er1 >conftest.err |
19128 | rm -f conftest.er1 | |
19129 | cat conftest.err >&5 | |
a848cd7e SC |
19130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19131 | (exit $ac_status); } && | |
0093c2fc | 19132 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19134 | (eval $ac_try) 2>&5 | |
19135 | ac_status=$? | |
19136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19137 | (exit $ac_status); }; } && | |
19138 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19140 | (eval $ac_try) 2>&5 | |
19141 | ac_status=$? | |
19142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19143 | (exit $ac_status); }; }; then | |
19144 | ac_cv_type_long_long=yes | |
19145 | else | |
19146 | echo "$as_me: failed program was:" >&5 | |
19147 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19148 | ||
19149 | ac_cv_type_long_long=no | |
19150 | fi | |
ac1cb8d3 | 19151 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19152 | fi |
19153 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
19154 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
19155 | ||
19156 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
19157 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
19158 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
19159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19160 | else | |
19161 | if test "$ac_cv_type_long_long" = yes; then | |
19162 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19163 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19164 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19165 | # This bug is HP SR number 8606223364. | |
19166 | if test "$cross_compiling" = yes; then | |
19167 | # Depending upon the size, compute the lo and hi bounds. | |
19168 | cat >conftest.$ac_ext <<_ACEOF | |
19169 | /* confdefs.h. */ | |
19170 | _ACEOF | |
19171 | cat confdefs.h >>conftest.$ac_ext | |
19172 | cat >>conftest.$ac_ext <<_ACEOF | |
19173 | /* end confdefs.h. */ | |
19174 | $ac_includes_default | |
19175 | int | |
19176 | main () | |
19177 | { | |
19178 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
19179 | test_array [0] = 0 | |
19180 | ||
19181 | ; | |
19182 | return 0; | |
19183 | } | |
19184 | _ACEOF | |
19185 | rm -f conftest.$ac_objext | |
19186 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19187 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19188 | ac_status=$? |
ac1cb8d3 VS |
19189 | grep -v '^ *+' conftest.er1 >conftest.err |
19190 | rm -f conftest.er1 | |
19191 | cat conftest.err >&5 | |
a848cd7e SC |
19192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19193 | (exit $ac_status); } && | |
0093c2fc | 19194 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19196 | (eval $ac_try) 2>&5 | |
19197 | ac_status=$? | |
19198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19199 | (exit $ac_status); }; } && | |
19200 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19202 | (eval $ac_try) 2>&5 | |
19203 | ac_status=$? | |
19204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19205 | (exit $ac_status); }; }; then | |
19206 | ac_lo=0 ac_mid=0 | |
19207 | while :; do | |
19208 | cat >conftest.$ac_ext <<_ACEOF | |
19209 | /* confdefs.h. */ | |
19210 | _ACEOF | |
19211 | cat confdefs.h >>conftest.$ac_ext | |
19212 | cat >>conftest.$ac_ext <<_ACEOF | |
19213 | /* end confdefs.h. */ | |
19214 | $ac_includes_default | |
19215 | int | |
19216 | main () | |
19217 | { | |
19218 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
19219 | test_array [0] = 0 | |
19220 | ||
19221 | ; | |
19222 | return 0; | |
19223 | } | |
19224 | _ACEOF | |
19225 | rm -f conftest.$ac_objext | |
19226 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19227 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19228 | ac_status=$? |
ac1cb8d3 VS |
19229 | grep -v '^ *+' conftest.er1 >conftest.err |
19230 | rm -f conftest.er1 | |
19231 | cat conftest.err >&5 | |
a848cd7e SC |
19232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19233 | (exit $ac_status); } && | |
0093c2fc | 19234 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19236 | (eval $ac_try) 2>&5 | |
19237 | ac_status=$? | |
19238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19239 | (exit $ac_status); }; } && | |
19240 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19242 | (eval $ac_try) 2>&5 | |
19243 | ac_status=$? | |
19244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19245 | (exit $ac_status); }; }; then | |
19246 | ac_hi=$ac_mid; break | |
19247 | else | |
19248 | echo "$as_me: failed program was:" >&5 | |
19249 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19250 | ||
19251 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
19252 | if test $ac_lo -le $ac_mid; then |
19253 | ac_lo= ac_hi= | |
19254 | break | |
19255 | fi | |
19256 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 19257 | fi |
ac1cb8d3 | 19258 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19259 | done |
19260 | else | |
19261 | echo "$as_me: failed program was:" >&5 | |
19262 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19263 | ||
19264 | cat >conftest.$ac_ext <<_ACEOF | |
19265 | /* confdefs.h. */ | |
19266 | _ACEOF | |
19267 | cat confdefs.h >>conftest.$ac_ext | |
19268 | cat >>conftest.$ac_ext <<_ACEOF | |
19269 | /* end confdefs.h. */ | |
19270 | $ac_includes_default | |
19271 | int | |
19272 | main () | |
19273 | { | |
19274 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
19275 | test_array [0] = 0 | |
19276 | ||
19277 | ; | |
19278 | return 0; | |
19279 | } | |
19280 | _ACEOF | |
19281 | rm -f conftest.$ac_objext | |
19282 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19283 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19284 | ac_status=$? |
ac1cb8d3 VS |
19285 | grep -v '^ *+' conftest.er1 >conftest.err |
19286 | rm -f conftest.er1 | |
19287 | cat conftest.err >&5 | |
a848cd7e SC |
19288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19289 | (exit $ac_status); } && | |
0093c2fc | 19290 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19292 | (eval $ac_try) 2>&5 | |
19293 | ac_status=$? | |
19294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19295 | (exit $ac_status); }; } && | |
19296 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19298 | (eval $ac_try) 2>&5 | |
19299 | ac_status=$? | |
19300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19301 | (exit $ac_status); }; }; then | |
19302 | ac_hi=-1 ac_mid=-1 | |
19303 | while :; do | |
19304 | cat >conftest.$ac_ext <<_ACEOF | |
19305 | /* confdefs.h. */ | |
19306 | _ACEOF | |
19307 | cat confdefs.h >>conftest.$ac_ext | |
19308 | cat >>conftest.$ac_ext <<_ACEOF | |
19309 | /* end confdefs.h. */ | |
19310 | $ac_includes_default | |
19311 | int | |
19312 | main () | |
19313 | { | |
19314 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
19315 | test_array [0] = 0 | |
19316 | ||
19317 | ; | |
19318 | return 0; | |
19319 | } | |
19320 | _ACEOF | |
19321 | rm -f conftest.$ac_objext | |
19322 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19323 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19324 | ac_status=$? |
ac1cb8d3 VS |
19325 | grep -v '^ *+' conftest.er1 >conftest.err |
19326 | rm -f conftest.er1 | |
19327 | cat conftest.err >&5 | |
a848cd7e SC |
19328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19329 | (exit $ac_status); } && | |
0093c2fc | 19330 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19332 | (eval $ac_try) 2>&5 | |
19333 | ac_status=$? | |
19334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19335 | (exit $ac_status); }; } && | |
19336 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19338 | (eval $ac_try) 2>&5 | |
19339 | ac_status=$? | |
19340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19341 | (exit $ac_status); }; }; then | |
19342 | ac_lo=$ac_mid; break | |
19343 | else | |
19344 | echo "$as_me: failed program was:" >&5 | |
19345 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19346 | ||
19347 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
19348 | if test $ac_mid -le $ac_hi; then |
19349 | ac_lo= ac_hi= | |
19350 | break | |
19351 | fi | |
19352 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 19353 | fi |
ac1cb8d3 | 19354 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19355 | done |
19356 | else | |
19357 | echo "$as_me: failed program was:" >&5 | |
19358 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19359 | ||
19360 | ac_lo= ac_hi= | |
19361 | fi | |
ac1cb8d3 | 19362 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19363 | fi |
ac1cb8d3 | 19364 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19365 | # Binary search between lo and hi bounds. |
19366 | while test "x$ac_lo" != "x$ac_hi"; do | |
19367 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19368 | cat >conftest.$ac_ext <<_ACEOF | |
19369 | /* confdefs.h. */ | |
19370 | _ACEOF | |
19371 | cat confdefs.h >>conftest.$ac_ext | |
19372 | cat >>conftest.$ac_ext <<_ACEOF | |
19373 | /* end confdefs.h. */ | |
19374 | $ac_includes_default | |
19375 | int | |
19376 | main () | |
19377 | { | |
19378 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
19379 | test_array [0] = 0 | |
19380 | ||
19381 | ; | |
19382 | return 0; | |
19383 | } | |
19384 | _ACEOF | |
19385 | rm -f conftest.$ac_objext | |
19386 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19387 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19388 | ac_status=$? |
ac1cb8d3 VS |
19389 | grep -v '^ *+' conftest.er1 >conftest.err |
19390 | rm -f conftest.er1 | |
19391 | cat conftest.err >&5 | |
a848cd7e SC |
19392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19393 | (exit $ac_status); } && | |
0093c2fc | 19394 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19396 | (eval $ac_try) 2>&5 | |
19397 | ac_status=$? | |
19398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19399 | (exit $ac_status); }; } && | |
19400 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19402 | (eval $ac_try) 2>&5 | |
19403 | ac_status=$? | |
19404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19405 | (exit $ac_status); }; }; then | |
19406 | ac_hi=$ac_mid | |
19407 | else | |
19408 | echo "$as_me: failed program was:" >&5 | |
19409 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19410 | ||
19411 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19412 | fi | |
ac1cb8d3 | 19413 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19414 | done |
19415 | case $ac_lo in | |
19416 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
19417 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
19418 | See \`config.log' for more details." >&5 | |
19419 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
19420 | See \`config.log' for more details." >&2;} | |
19421 | { (exit 1); exit 1; }; } ;; | |
19422 | esac | |
19423 | else | |
19424 | if test "$cross_compiling" = yes; then | |
0093c2fc VZ |
19425 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
19426 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
19427 | { (exit 1); exit 1; }; } |
19428 | else | |
19429 | cat >conftest.$ac_ext <<_ACEOF | |
19430 | /* confdefs.h. */ | |
19431 | _ACEOF | |
19432 | cat confdefs.h >>conftest.$ac_ext | |
19433 | cat >>conftest.$ac_ext <<_ACEOF | |
19434 | /* end confdefs.h. */ | |
19435 | $ac_includes_default | |
19436 | long longval () { return (long) (sizeof (long long)); } | |
19437 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
19438 | #include <stdio.h> | |
19439 | #include <stdlib.h> | |
19440 | int | |
19441 | main () | |
19442 | { | |
19443 | ||
19444 | FILE *f = fopen ("conftest.val", "w"); | |
19445 | if (! f) | |
19446 | exit (1); | |
19447 | if (((long) (sizeof (long long))) < 0) | |
19448 | { | |
19449 | long i = longval (); | |
19450 | if (i != ((long) (sizeof (long long)))) | |
19451 | exit (1); | |
19452 | fprintf (f, "%ld\n", i); | |
19453 | } | |
19454 | else | |
19455 | { | |
19456 | unsigned long i = ulongval (); | |
19457 | if (i != ((long) (sizeof (long long)))) | |
19458 | exit (1); | |
19459 | fprintf (f, "%lu\n", i); | |
19460 | } | |
19461 | exit (ferror (f) || fclose (f) != 0); | |
19462 | ||
19463 | ; | |
19464 | return 0; | |
19465 | } | |
19466 | _ACEOF | |
19467 | rm -f conftest$ac_exeext | |
19468 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19469 | (eval $ac_link) 2>&5 | |
19470 | ac_status=$? | |
19471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19472 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19474 | (eval $ac_try) 2>&5 | |
19475 | ac_status=$? | |
19476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19477 | (exit $ac_status); }; }; then | |
19478 | ac_cv_sizeof_long_long=`cat conftest.val` | |
19479 | else | |
19480 | echo "$as_me: program exited with status $ac_status" >&5 | |
19481 | echo "$as_me: failed program was:" >&5 | |
19482 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19483 | ||
19484 | ( exit $ac_status ) | |
19485 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
19486 | See \`config.log' for more details." >&5 | |
19487 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
19488 | See \`config.log' for more details." >&2;} | |
19489 | { (exit 1); exit 1; }; } | |
19490 | fi | |
ac1cb8d3 | 19491 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19492 | fi |
19493 | fi | |
19494 | rm -f conftest.val | |
19495 | else | |
19496 | ac_cv_sizeof_long_long=0 | |
19497 | fi | |
19498 | fi | |
19499 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
19500 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
19501 | cat >>confdefs.h <<_ACEOF | |
19502 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
19503 | _ACEOF | |
19504 | ||
19505 | ||
19506 | ;; | |
19507 | *-hp-hpux* ) | |
19508 | echo "$as_me:$LINENO: checking for long long" >&5 | |
19509 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
19510 | if test "${ac_cv_type_long_long+set}" = set; then | |
19511 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19512 | else | |
19513 | cat >conftest.$ac_ext <<_ACEOF | |
19514 | /* confdefs.h. */ | |
19515 | _ACEOF | |
19516 | cat confdefs.h >>conftest.$ac_ext | |
19517 | cat >>conftest.$ac_ext <<_ACEOF | |
19518 | /* end confdefs.h. */ | |
19519 | $ac_includes_default | |
19520 | int | |
19521 | main () | |
19522 | { | |
19523 | if ((long long *) 0) | |
19524 | return 0; | |
19525 | if (sizeof (long long)) | |
19526 | return 0; | |
19527 | ; | |
19528 | return 0; | |
19529 | } | |
19530 | _ACEOF | |
19531 | rm -f conftest.$ac_objext | |
19532 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19533 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19534 | ac_status=$? |
ac1cb8d3 VS |
19535 | grep -v '^ *+' conftest.er1 >conftest.err |
19536 | rm -f conftest.er1 | |
19537 | cat conftest.err >&5 | |
a848cd7e SC |
19538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19539 | (exit $ac_status); } && | |
0093c2fc | 19540 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19542 | (eval $ac_try) 2>&5 | |
19543 | ac_status=$? | |
19544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19545 | (exit $ac_status); }; } && | |
19546 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19548 | (eval $ac_try) 2>&5 | |
19549 | ac_status=$? | |
19550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19551 | (exit $ac_status); }; }; then | |
19552 | ac_cv_type_long_long=yes | |
19553 | else | |
19554 | echo "$as_me: failed program was:" >&5 | |
19555 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19556 | ||
19557 | ac_cv_type_long_long=no | |
19558 | fi | |
ac1cb8d3 | 19559 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19560 | fi |
19561 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
19562 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
19563 | ||
19564 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
19565 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
19566 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
19567 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19568 | else | |
19569 | if test "$ac_cv_type_long_long" = yes; then | |
19570 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19571 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19572 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19573 | # This bug is HP SR number 8606223364. | |
19574 | if test "$cross_compiling" = yes; then | |
19575 | # Depending upon the size, compute the lo and hi bounds. | |
19576 | cat >conftest.$ac_ext <<_ACEOF | |
19577 | /* confdefs.h. */ | |
19578 | _ACEOF | |
19579 | cat confdefs.h >>conftest.$ac_ext | |
19580 | cat >>conftest.$ac_ext <<_ACEOF | |
19581 | /* end confdefs.h. */ | |
19582 | $ac_includes_default | |
19583 | int | |
19584 | main () | |
19585 | { | |
19586 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
19587 | test_array [0] = 0 | |
19588 | ||
19589 | ; | |
19590 | return 0; | |
19591 | } | |
19592 | _ACEOF | |
19593 | rm -f conftest.$ac_objext | |
19594 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19595 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19596 | ac_status=$? |
ac1cb8d3 VS |
19597 | grep -v '^ *+' conftest.er1 >conftest.err |
19598 | rm -f conftest.er1 | |
19599 | cat conftest.err >&5 | |
a848cd7e SC |
19600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19601 | (exit $ac_status); } && | |
0093c2fc | 19602 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19604 | (eval $ac_try) 2>&5 | |
19605 | ac_status=$? | |
19606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19607 | (exit $ac_status); }; } && | |
19608 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19610 | (eval $ac_try) 2>&5 | |
19611 | ac_status=$? | |
19612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19613 | (exit $ac_status); }; }; then | |
19614 | ac_lo=0 ac_mid=0 | |
19615 | while :; do | |
19616 | cat >conftest.$ac_ext <<_ACEOF | |
19617 | /* confdefs.h. */ | |
19618 | _ACEOF | |
19619 | cat confdefs.h >>conftest.$ac_ext | |
19620 | cat >>conftest.$ac_ext <<_ACEOF | |
19621 | /* end confdefs.h. */ | |
19622 | $ac_includes_default | |
19623 | int | |
19624 | main () | |
19625 | { | |
19626 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
19627 | test_array [0] = 0 | |
19628 | ||
19629 | ; | |
19630 | return 0; | |
19631 | } | |
19632 | _ACEOF | |
19633 | rm -f conftest.$ac_objext | |
19634 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19635 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19636 | ac_status=$? |
ac1cb8d3 VS |
19637 | grep -v '^ *+' conftest.er1 >conftest.err |
19638 | rm -f conftest.er1 | |
19639 | cat conftest.err >&5 | |
a848cd7e SC |
19640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19641 | (exit $ac_status); } && | |
0093c2fc | 19642 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
19648 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19650 | (eval $ac_try) 2>&5 | |
19651 | ac_status=$? | |
19652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19653 | (exit $ac_status); }; }; then | |
19654 | ac_hi=$ac_mid; break | |
19655 | else | |
19656 | echo "$as_me: failed program was:" >&5 | |
19657 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19658 | ||
19659 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
19660 | if test $ac_lo -le $ac_mid; then |
19661 | ac_lo= ac_hi= | |
19662 | break | |
19663 | fi | |
19664 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 19665 | fi |
ac1cb8d3 | 19666 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19667 | done |
19668 | else | |
19669 | echo "$as_me: failed program was:" >&5 | |
19670 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19671 | ||
19672 | cat >conftest.$ac_ext <<_ACEOF | |
19673 | /* confdefs.h. */ | |
19674 | _ACEOF | |
19675 | cat confdefs.h >>conftest.$ac_ext | |
19676 | cat >>conftest.$ac_ext <<_ACEOF | |
19677 | /* end confdefs.h. */ | |
19678 | $ac_includes_default | |
19679 | int | |
19680 | main () | |
19681 | { | |
19682 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
19683 | test_array [0] = 0 | |
19684 | ||
19685 | ; | |
19686 | return 0; | |
19687 | } | |
19688 | _ACEOF | |
19689 | rm -f conftest.$ac_objext | |
19690 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19691 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19692 | ac_status=$? |
ac1cb8d3 VS |
19693 | grep -v '^ *+' conftest.er1 >conftest.err |
19694 | rm -f conftest.er1 | |
19695 | cat conftest.err >&5 | |
a848cd7e SC |
19696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19697 | (exit $ac_status); } && | |
0093c2fc | 19698 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19700 | (eval $ac_try) 2>&5 | |
19701 | ac_status=$? | |
19702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19703 | (exit $ac_status); }; } && | |
19704 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19706 | (eval $ac_try) 2>&5 | |
19707 | ac_status=$? | |
19708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19709 | (exit $ac_status); }; }; then | |
19710 | ac_hi=-1 ac_mid=-1 | |
19711 | while :; do | |
19712 | cat >conftest.$ac_ext <<_ACEOF | |
19713 | /* confdefs.h. */ | |
19714 | _ACEOF | |
19715 | cat confdefs.h >>conftest.$ac_ext | |
19716 | cat >>conftest.$ac_ext <<_ACEOF | |
19717 | /* end confdefs.h. */ | |
19718 | $ac_includes_default | |
19719 | int | |
19720 | main () | |
19721 | { | |
19722 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
19723 | test_array [0] = 0 | |
19724 | ||
19725 | ; | |
19726 | return 0; | |
19727 | } | |
19728 | _ACEOF | |
19729 | rm -f conftest.$ac_objext | |
19730 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19731 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19732 | ac_status=$? |
ac1cb8d3 VS |
19733 | grep -v '^ *+' conftest.er1 >conftest.err |
19734 | rm -f conftest.er1 | |
19735 | cat conftest.err >&5 | |
a848cd7e SC |
19736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19737 | (exit $ac_status); } && | |
0093c2fc | 19738 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19740 | (eval $ac_try) 2>&5 | |
19741 | ac_status=$? | |
19742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19743 | (exit $ac_status); }; } && | |
19744 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19746 | (eval $ac_try) 2>&5 | |
19747 | ac_status=$? | |
19748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19749 | (exit $ac_status); }; }; then | |
19750 | ac_lo=$ac_mid; break | |
19751 | else | |
19752 | echo "$as_me: failed program was:" >&5 | |
19753 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19754 | ||
19755 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
19756 | if test $ac_mid -le $ac_hi; then |
19757 | ac_lo= ac_hi= | |
19758 | break | |
19759 | fi | |
19760 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 19761 | fi |
ac1cb8d3 | 19762 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19763 | done |
19764 | else | |
19765 | echo "$as_me: failed program was:" >&5 | |
19766 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19767 | ||
19768 | ac_lo= ac_hi= | |
19769 | fi | |
ac1cb8d3 | 19770 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19771 | fi |
ac1cb8d3 | 19772 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19773 | # Binary search between lo and hi bounds. |
19774 | while test "x$ac_lo" != "x$ac_hi"; do | |
19775 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19776 | cat >conftest.$ac_ext <<_ACEOF | |
19777 | /* confdefs.h. */ | |
19778 | _ACEOF | |
19779 | cat confdefs.h >>conftest.$ac_ext | |
19780 | cat >>conftest.$ac_ext <<_ACEOF | |
19781 | /* end confdefs.h. */ | |
19782 | $ac_includes_default | |
19783 | int | |
19784 | main () | |
19785 | { | |
19786 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
19787 | test_array [0] = 0 | |
19788 | ||
19789 | ; | |
19790 | return 0; | |
19791 | } | |
19792 | _ACEOF | |
19793 | rm -f conftest.$ac_objext | |
19794 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19795 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19796 | ac_status=$? |
ac1cb8d3 VS |
19797 | grep -v '^ *+' conftest.er1 >conftest.err |
19798 | rm -f conftest.er1 | |
19799 | cat conftest.err >&5 | |
a848cd7e SC |
19800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19801 | (exit $ac_status); } && | |
0093c2fc | 19802 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19804 | (eval $ac_try) 2>&5 | |
19805 | ac_status=$? | |
19806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19807 | (exit $ac_status); }; } && | |
19808 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19810 | (eval $ac_try) 2>&5 | |
19811 | ac_status=$? | |
19812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19813 | (exit $ac_status); }; }; then | |
19814 | ac_hi=$ac_mid | |
19815 | else | |
19816 | echo "$as_me: failed program was:" >&5 | |
19817 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19818 | ||
19819 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19820 | fi | |
ac1cb8d3 | 19821 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19822 | done |
19823 | case $ac_lo in | |
19824 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
19825 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
19826 | See \`config.log' for more details." >&5 | |
19827 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
19828 | See \`config.log' for more details." >&2;} | |
19829 | { (exit 1); exit 1; }; } ;; | |
19830 | esac | |
19831 | else | |
19832 | if test "$cross_compiling" = yes; then | |
0093c2fc VZ |
19833 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
19834 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
19835 | { (exit 1); exit 1; }; } |
19836 | else | |
19837 | cat >conftest.$ac_ext <<_ACEOF | |
19838 | /* confdefs.h. */ | |
19839 | _ACEOF | |
19840 | cat confdefs.h >>conftest.$ac_ext | |
19841 | cat >>conftest.$ac_ext <<_ACEOF | |
19842 | /* end confdefs.h. */ | |
19843 | $ac_includes_default | |
19844 | long longval () { return (long) (sizeof (long long)); } | |
19845 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
19846 | #include <stdio.h> | |
19847 | #include <stdlib.h> | |
19848 | int | |
19849 | main () | |
19850 | { | |
19851 | ||
19852 | FILE *f = fopen ("conftest.val", "w"); | |
19853 | if (! f) | |
19854 | exit (1); | |
19855 | if (((long) (sizeof (long long))) < 0) | |
19856 | { | |
19857 | long i = longval (); | |
19858 | if (i != ((long) (sizeof (long long)))) | |
19859 | exit (1); | |
19860 | fprintf (f, "%ld\n", i); | |
19861 | } | |
19862 | else | |
19863 | { | |
19864 | unsigned long i = ulongval (); | |
19865 | if (i != ((long) (sizeof (long long)))) | |
19866 | exit (1); | |
19867 | fprintf (f, "%lu\n", i); | |
19868 | } | |
19869 | exit (ferror (f) || fclose (f) != 0); | |
19870 | ||
19871 | ; | |
19872 | return 0; | |
19873 | } | |
19874 | _ACEOF | |
19875 | rm -f conftest$ac_exeext | |
19876 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19877 | (eval $ac_link) 2>&5 | |
19878 | ac_status=$? | |
19879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19880 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19882 | (eval $ac_try) 2>&5 | |
19883 | ac_status=$? | |
19884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19885 | (exit $ac_status); }; }; then | |
19886 | ac_cv_sizeof_long_long=`cat conftest.val` | |
19887 | else | |
19888 | echo "$as_me: program exited with status $ac_status" >&5 | |
19889 | echo "$as_me: failed program was:" >&5 | |
19890 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19891 | ||
19892 | ( exit $ac_status ) | |
19893 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
19894 | See \`config.log' for more details." >&5 | |
19895 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
19896 | See \`config.log' for more details." >&2;} | |
19897 | { (exit 1); exit 1; }; } | |
19898 | fi | |
ac1cb8d3 | 19899 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19900 | fi |
19901 | fi | |
19902 | rm -f conftest.val | |
19903 | else | |
19904 | ac_cv_sizeof_long_long=0 | |
19905 | fi | |
19906 | fi | |
19907 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
19908 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
19909 | cat >>confdefs.h <<_ACEOF | |
19910 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
19911 | _ACEOF | |
19912 | ||
19913 | ||
19914 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
19915 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
19916 | fi | |
19917 | ;; | |
19918 | * ) | |
19919 | echo "$as_me:$LINENO: checking for long long" >&5 | |
19920 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
19921 | if test "${ac_cv_type_long_long+set}" = set; then | |
19922 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19923 | else | |
19924 | cat >conftest.$ac_ext <<_ACEOF | |
19925 | /* confdefs.h. */ | |
19926 | _ACEOF | |
19927 | cat confdefs.h >>conftest.$ac_ext | |
19928 | cat >>conftest.$ac_ext <<_ACEOF | |
19929 | /* end confdefs.h. */ | |
19930 | $ac_includes_default | |
19931 | int | |
19932 | main () | |
19933 | { | |
19934 | if ((long long *) 0) | |
19935 | return 0; | |
19936 | if (sizeof (long long)) | |
19937 | return 0; | |
19938 | ; | |
19939 | return 0; | |
19940 | } | |
19941 | _ACEOF | |
19942 | rm -f conftest.$ac_objext | |
19943 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19944 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19945 | ac_status=$? |
ac1cb8d3 VS |
19946 | grep -v '^ *+' conftest.er1 >conftest.err |
19947 | rm -f conftest.er1 | |
19948 | cat conftest.err >&5 | |
a848cd7e SC |
19949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19950 | (exit $ac_status); } && | |
0093c2fc | 19951 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19953 | (eval $ac_try) 2>&5 | |
19954 | ac_status=$? | |
19955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19956 | (exit $ac_status); }; } && | |
19957 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19959 | (eval $ac_try) 2>&5 | |
19960 | ac_status=$? | |
19961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19962 | (exit $ac_status); }; }; then | |
19963 | ac_cv_type_long_long=yes | |
19964 | else | |
19965 | echo "$as_me: failed program was:" >&5 | |
19966 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19967 | ||
19968 | ac_cv_type_long_long=no | |
19969 | fi | |
ac1cb8d3 | 19970 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19971 | fi |
19972 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
19973 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
19974 | ||
19975 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
19976 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
19977 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
19978 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19979 | else | |
19980 | if test "$ac_cv_type_long_long" = yes; then | |
19981 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19982 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19983 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19984 | # This bug is HP SR number 8606223364. | |
19985 | if test "$cross_compiling" = yes; then | |
19986 | # Depending upon the size, compute the lo and hi bounds. | |
19987 | cat >conftest.$ac_ext <<_ACEOF | |
19988 | /* confdefs.h. */ | |
19989 | _ACEOF | |
19990 | cat confdefs.h >>conftest.$ac_ext | |
19991 | cat >>conftest.$ac_ext <<_ACEOF | |
19992 | /* end confdefs.h. */ | |
19993 | $ac_includes_default | |
19994 | int | |
19995 | main () | |
19996 | { | |
19997 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
19998 | test_array [0] = 0 | |
19999 | ||
20000 | ; | |
20001 | return 0; | |
20002 | } | |
20003 | _ACEOF | |
20004 | rm -f conftest.$ac_objext | |
20005 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20006 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20007 | ac_status=$? |
ac1cb8d3 VS |
20008 | grep -v '^ *+' conftest.er1 >conftest.err |
20009 | rm -f conftest.er1 | |
20010 | cat conftest.err >&5 | |
a848cd7e SC |
20011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20012 | (exit $ac_status); } && | |
0093c2fc | 20013 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20015 | (eval $ac_try) 2>&5 | |
20016 | ac_status=$? | |
20017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20018 | (exit $ac_status); }; } && | |
20019 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20021 | (eval $ac_try) 2>&5 | |
20022 | ac_status=$? | |
20023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20024 | (exit $ac_status); }; }; then | |
20025 | ac_lo=0 ac_mid=0 | |
20026 | while :; do | |
20027 | cat >conftest.$ac_ext <<_ACEOF | |
20028 | /* confdefs.h. */ | |
20029 | _ACEOF | |
20030 | cat confdefs.h >>conftest.$ac_ext | |
20031 | cat >>conftest.$ac_ext <<_ACEOF | |
20032 | /* end confdefs.h. */ | |
20033 | $ac_includes_default | |
20034 | int | |
20035 | main () | |
20036 | { | |
20037 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20038 | test_array [0] = 0 | |
20039 | ||
20040 | ; | |
20041 | return 0; | |
20042 | } | |
20043 | _ACEOF | |
20044 | rm -f conftest.$ac_objext | |
20045 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20046 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20047 | ac_status=$? |
ac1cb8d3 VS |
20048 | grep -v '^ *+' conftest.er1 >conftest.err |
20049 | rm -f conftest.er1 | |
20050 | cat conftest.err >&5 | |
a848cd7e SC |
20051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20052 | (exit $ac_status); } && | |
0093c2fc | 20053 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20055 | (eval $ac_try) 2>&5 | |
20056 | ac_status=$? | |
20057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20058 | (exit $ac_status); }; } && | |
20059 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20061 | (eval $ac_try) 2>&5 | |
20062 | ac_status=$? | |
20063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20064 | (exit $ac_status); }; }; then | |
20065 | ac_hi=$ac_mid; break | |
20066 | else | |
20067 | echo "$as_me: failed program was:" >&5 | |
20068 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20069 | ||
20070 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
20071 | if test $ac_lo -le $ac_mid; then |
20072 | ac_lo= ac_hi= | |
20073 | break | |
20074 | fi | |
20075 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 20076 | fi |
ac1cb8d3 | 20077 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20078 | done |
20079 | else | |
20080 | echo "$as_me: failed program was:" >&5 | |
20081 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20082 | ||
20083 | cat >conftest.$ac_ext <<_ACEOF | |
20084 | /* confdefs.h. */ | |
20085 | _ACEOF | |
20086 | cat confdefs.h >>conftest.$ac_ext | |
20087 | cat >>conftest.$ac_ext <<_ACEOF | |
20088 | /* end confdefs.h. */ | |
20089 | $ac_includes_default | |
20090 | int | |
20091 | main () | |
20092 | { | |
20093 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
20094 | test_array [0] = 0 | |
20095 | ||
20096 | ; | |
20097 | return 0; | |
20098 | } | |
20099 | _ACEOF | |
20100 | rm -f conftest.$ac_objext | |
20101 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20102 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20103 | ac_status=$? |
ac1cb8d3 VS |
20104 | grep -v '^ *+' conftest.er1 >conftest.err |
20105 | rm -f conftest.er1 | |
20106 | cat conftest.err >&5 | |
a848cd7e SC |
20107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20108 | (exit $ac_status); } && | |
0093c2fc | 20109 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20111 | (eval $ac_try) 2>&5 | |
20112 | ac_status=$? | |
20113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20114 | (exit $ac_status); }; } && | |
20115 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20117 | (eval $ac_try) 2>&5 | |
20118 | ac_status=$? | |
20119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20120 | (exit $ac_status); }; }; then | |
20121 | ac_hi=-1 ac_mid=-1 | |
20122 | while :; do | |
20123 | cat >conftest.$ac_ext <<_ACEOF | |
20124 | /* confdefs.h. */ | |
20125 | _ACEOF | |
20126 | cat confdefs.h >>conftest.$ac_ext | |
20127 | cat >>conftest.$ac_ext <<_ACEOF | |
20128 | /* end confdefs.h. */ | |
20129 | $ac_includes_default | |
20130 | int | |
20131 | main () | |
20132 | { | |
20133 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
20134 | test_array [0] = 0 | |
20135 | ||
20136 | ; | |
20137 | return 0; | |
20138 | } | |
20139 | _ACEOF | |
20140 | rm -f conftest.$ac_objext | |
20141 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20142 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20143 | ac_status=$? |
ac1cb8d3 VS |
20144 | grep -v '^ *+' conftest.er1 >conftest.err |
20145 | rm -f conftest.er1 | |
20146 | cat conftest.err >&5 | |
a848cd7e SC |
20147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20148 | (exit $ac_status); } && | |
0093c2fc | 20149 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20151 | (eval $ac_try) 2>&5 | |
20152 | ac_status=$? | |
20153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20154 | (exit $ac_status); }; } && | |
20155 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20157 | (eval $ac_try) 2>&5 | |
20158 | ac_status=$? | |
20159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20160 | (exit $ac_status); }; }; then | |
20161 | ac_lo=$ac_mid; break | |
20162 | else | |
20163 | echo "$as_me: failed program was:" >&5 | |
20164 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20165 | ||
20166 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
20167 | if test $ac_mid -le $ac_hi; then |
20168 | ac_lo= ac_hi= | |
20169 | break | |
20170 | fi | |
20171 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 20172 | fi |
ac1cb8d3 | 20173 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20174 | done |
20175 | else | |
20176 | echo "$as_me: failed program was:" >&5 | |
20177 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20178 | ||
20179 | ac_lo= ac_hi= | |
20180 | fi | |
ac1cb8d3 | 20181 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 20182 | fi |
ac1cb8d3 | 20183 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20184 | # Binary search between lo and hi bounds. |
20185 | while test "x$ac_lo" != "x$ac_hi"; do | |
20186 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20187 | cat >conftest.$ac_ext <<_ACEOF | |
20188 | /* confdefs.h. */ | |
20189 | _ACEOF | |
20190 | cat confdefs.h >>conftest.$ac_ext | |
20191 | cat >>conftest.$ac_ext <<_ACEOF | |
20192 | /* end confdefs.h. */ | |
20193 | $ac_includes_default | |
20194 | int | |
20195 | main () | |
20196 | { | |
20197 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20198 | test_array [0] = 0 | |
20199 | ||
20200 | ; | |
20201 | return 0; | |
20202 | } | |
20203 | _ACEOF | |
20204 | rm -f conftest.$ac_objext | |
20205 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20206 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20207 | ac_status=$? |
ac1cb8d3 VS |
20208 | grep -v '^ *+' conftest.er1 >conftest.err |
20209 | rm -f conftest.er1 | |
20210 | cat conftest.err >&5 | |
a848cd7e SC |
20211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20212 | (exit $ac_status); } && | |
0093c2fc | 20213 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20215 | (eval $ac_try) 2>&5 | |
20216 | ac_status=$? | |
20217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20218 | (exit $ac_status); }; } && | |
20219 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20221 | (eval $ac_try) 2>&5 | |
20222 | ac_status=$? | |
20223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20224 | (exit $ac_status); }; }; then | |
20225 | ac_hi=$ac_mid | |
20226 | else | |
20227 | echo "$as_me: failed program was:" >&5 | |
20228 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20229 | ||
20230 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
20231 | fi | |
ac1cb8d3 | 20232 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20233 | done |
20234 | case $ac_lo in | |
20235 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
20236 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20237 | See \`config.log' for more details." >&5 | |
20238 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20239 | See \`config.log' for more details." >&2;} | |
20240 | { (exit 1); exit 1; }; } ;; | |
20241 | esac | |
20242 | else | |
20243 | if test "$cross_compiling" = yes; then | |
0093c2fc VZ |
20244 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
20245 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
20246 | { (exit 1); exit 1; }; } |
20247 | else | |
20248 | cat >conftest.$ac_ext <<_ACEOF | |
20249 | /* confdefs.h. */ | |
20250 | _ACEOF | |
20251 | cat confdefs.h >>conftest.$ac_ext | |
20252 | cat >>conftest.$ac_ext <<_ACEOF | |
20253 | /* end confdefs.h. */ | |
20254 | $ac_includes_default | |
20255 | long longval () { return (long) (sizeof (long long)); } | |
20256 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
20257 | #include <stdio.h> | |
20258 | #include <stdlib.h> | |
20259 | int | |
20260 | main () | |
20261 | { | |
20262 | ||
20263 | FILE *f = fopen ("conftest.val", "w"); | |
20264 | if (! f) | |
20265 | exit (1); | |
20266 | if (((long) (sizeof (long long))) < 0) | |
20267 | { | |
20268 | long i = longval (); | |
20269 | if (i != ((long) (sizeof (long long)))) | |
20270 | exit (1); | |
20271 | fprintf (f, "%ld\n", i); | |
20272 | } | |
20273 | else | |
20274 | { | |
20275 | unsigned long i = ulongval (); | |
20276 | if (i != ((long) (sizeof (long long)))) | |
20277 | exit (1); | |
20278 | fprintf (f, "%lu\n", i); | |
20279 | } | |
20280 | exit (ferror (f) || fclose (f) != 0); | |
20281 | ||
20282 | ; | |
20283 | return 0; | |
20284 | } | |
20285 | _ACEOF | |
20286 | rm -f conftest$ac_exeext | |
20287 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20288 | (eval $ac_link) 2>&5 | |
20289 | ac_status=$? | |
20290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20291 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20293 | (eval $ac_try) 2>&5 | |
20294 | ac_status=$? | |
20295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20296 | (exit $ac_status); }; }; then | |
20297 | ac_cv_sizeof_long_long=`cat conftest.val` | |
20298 | else | |
20299 | echo "$as_me: program exited with status $ac_status" >&5 | |
20300 | echo "$as_me: failed program was:" >&5 | |
20301 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20302 | ||
20303 | ( exit $ac_status ) | |
20304 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20305 | See \`config.log' for more details." >&5 | |
20306 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20307 | See \`config.log' for more details." >&2;} | |
20308 | { (exit 1); exit 1; }; } | |
20309 | fi | |
ac1cb8d3 | 20310 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20311 | fi |
20312 | fi | |
20313 | rm -f conftest.val | |
20314 | else | |
20315 | ac_cv_sizeof_long_long=0 | |
20316 | fi | |
20317 | fi | |
20318 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
20319 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
20320 | cat >>confdefs.h <<_ACEOF | |
20321 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
20322 | _ACEOF | |
20323 | ||
20324 | ||
20325 | esac | |
20326 | ||
238ecede MW |
20327 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
20328 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 | |
20329 | if test "${ac_cv_type_wchar_t+set}" = set; then | |
20330 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20331 | else | |
20332 | cat >conftest.$ac_ext <<_ACEOF | |
20333 | /* confdefs.h. */ | |
20334 | _ACEOF | |
20335 | cat confdefs.h >>conftest.$ac_ext | |
20336 | cat >>conftest.$ac_ext <<_ACEOF | |
20337 | /* end confdefs.h. */ | |
20338 | ||
83d8eb47 MW |
20339 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20340 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20341 | # error "fake wchar_t" |
20342 | #endif | |
20343 | #ifdef HAVE_WCHAR_H | |
20344 | # ifdef __CYGWIN__ | |
20345 | # include <stddef.h> | |
20346 | # endif | |
20347 | # include <wchar.h> | |
20348 | #endif | |
20349 | #ifdef HAVE_STDLIB_H | |
20350 | # include <stdlib.h> | |
20351 | #endif | |
20352 | #include <stdio.h> | |
20353 | ||
20354 | ||
20355 | ||
20356 | int | |
20357 | main () | |
20358 | { | |
20359 | if ((wchar_t *) 0) | |
20360 | return 0; | |
20361 | if (sizeof (wchar_t)) | |
20362 | return 0; | |
20363 | ; | |
20364 | return 0; | |
20365 | } | |
20366 | _ACEOF | |
20367 | rm -f conftest.$ac_objext | |
20368 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20369 | (eval $ac_compile) 2>conftest.er1 | |
20370 | ac_status=$? | |
20371 | grep -v '^ *+' conftest.er1 >conftest.err | |
20372 | rm -f conftest.er1 | |
20373 | cat conftest.err >&5 | |
20374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20375 | (exit $ac_status); } && | |
0093c2fc | 20376 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
20377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20378 | (eval $ac_try) 2>&5 | |
20379 | ac_status=$? | |
20380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20381 | (exit $ac_status); }; } && | |
20382 | { ac_try='test -s conftest.$ac_objext' | |
20383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20384 | (eval $ac_try) 2>&5 | |
20385 | ac_status=$? | |
20386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20387 | (exit $ac_status); }; }; then | |
20388 | ac_cv_type_wchar_t=yes | |
20389 | else | |
20390 | echo "$as_me: failed program was:" >&5 | |
20391 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20392 | ||
20393 | ac_cv_type_wchar_t=no | |
20394 | fi | |
20395 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20396 | fi | |
20397 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 | |
20398 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 | |
20399 | ||
a848cd7e SC |
20400 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
20401 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
238ecede | 20402 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
a848cd7e SC |
20403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20404 | else | |
238ecede MW |
20405 | if test "$ac_cv_type_wchar_t" = yes; then |
20406 | # The cast to unsigned long works around a bug in the HP C Compiler | |
20407 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20408 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20409 | # This bug is HP SR number 8606223364. | |
20410 | if test "$cross_compiling" = yes; then | |
20411 | # Depending upon the size, compute the lo and hi bounds. | |
20412 | cat >conftest.$ac_ext <<_ACEOF | |
20413 | /* confdefs.h. */ | |
20414 | _ACEOF | |
20415 | cat confdefs.h >>conftest.$ac_ext | |
20416 | cat >>conftest.$ac_ext <<_ACEOF | |
20417 | /* end confdefs.h. */ | |
20418 | ||
83d8eb47 MW |
20419 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20420 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20421 | # error "fake wchar_t" |
20422 | #endif | |
20423 | #ifdef HAVE_WCHAR_H | |
20424 | # ifdef __CYGWIN__ | |
20425 | # include <stddef.h> | |
20426 | # endif | |
20427 | # include <wchar.h> | |
20428 | #endif | |
20429 | #ifdef HAVE_STDLIB_H | |
20430 | # include <stdlib.h> | |
20431 | #endif | |
20432 | #include <stdio.h> | |
20433 | ||
20434 | ||
20435 | ||
20436 | int | |
20437 | main () | |
20438 | { | |
20439 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; | |
20440 | test_array [0] = 0 | |
20441 | ||
20442 | ; | |
20443 | return 0; | |
20444 | } | |
20445 | _ACEOF | |
20446 | rm -f conftest.$ac_objext | |
20447 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20448 | (eval $ac_compile) 2>conftest.er1 | |
20449 | ac_status=$? | |
20450 | grep -v '^ *+' conftest.er1 >conftest.err | |
20451 | rm -f conftest.er1 | |
20452 | cat conftest.err >&5 | |
20453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20454 | (exit $ac_status); } && | |
0093c2fc | 20455 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
20456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20457 | (eval $ac_try) 2>&5 | |
20458 | ac_status=$? | |
20459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20460 | (exit $ac_status); }; } && | |
20461 | { ac_try='test -s conftest.$ac_objext' | |
20462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20463 | (eval $ac_try) 2>&5 | |
20464 | ac_status=$? | |
20465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20466 | (exit $ac_status); }; }; then | |
20467 | ac_lo=0 ac_mid=0 | |
20468 | while :; do | |
20469 | cat >conftest.$ac_ext <<_ACEOF | |
20470 | /* confdefs.h. */ | |
20471 | _ACEOF | |
20472 | cat confdefs.h >>conftest.$ac_ext | |
20473 | cat >>conftest.$ac_ext <<_ACEOF | |
20474 | /* end confdefs.h. */ | |
20475 | ||
83d8eb47 MW |
20476 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20477 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20478 | # error "fake wchar_t" |
20479 | #endif | |
20480 | #ifdef HAVE_WCHAR_H | |
20481 | # ifdef __CYGWIN__ | |
20482 | # include <stddef.h> | |
20483 | # endif | |
20484 | # include <wchar.h> | |
20485 | #endif | |
20486 | #ifdef HAVE_STDLIB_H | |
20487 | # include <stdlib.h> | |
20488 | #endif | |
20489 | #include <stdio.h> | |
20490 | ||
20491 | ||
20492 | ||
20493 | int | |
20494 | main () | |
20495 | { | |
20496 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
20497 | test_array [0] = 0 | |
20498 | ||
20499 | ; | |
20500 | return 0; | |
20501 | } | |
20502 | _ACEOF | |
20503 | rm -f conftest.$ac_objext | |
20504 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20505 | (eval $ac_compile) 2>conftest.er1 | |
20506 | ac_status=$? | |
20507 | grep -v '^ *+' conftest.er1 >conftest.err | |
20508 | rm -f conftest.er1 | |
20509 | cat conftest.err >&5 | |
20510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20511 | (exit $ac_status); } && | |
0093c2fc | 20512 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
20513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20514 | (eval $ac_try) 2>&5 | |
20515 | ac_status=$? | |
20516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20517 | (exit $ac_status); }; } && | |
20518 | { ac_try='test -s conftest.$ac_objext' | |
20519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20520 | (eval $ac_try) 2>&5 | |
20521 | ac_status=$? | |
20522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20523 | (exit $ac_status); }; }; then | |
20524 | ac_hi=$ac_mid; break | |
20525 | else | |
20526 | echo "$as_me: failed program was:" >&5 | |
20527 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20528 | ||
20529 | ac_lo=`expr $ac_mid + 1` | |
20530 | if test $ac_lo -le $ac_mid; then | |
20531 | ac_lo= ac_hi= | |
20532 | break | |
20533 | fi | |
20534 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
20535 | fi | |
20536 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20537 | done | |
20538 | else | |
20539 | echo "$as_me: failed program was:" >&5 | |
20540 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20541 | ||
20542 | cat >conftest.$ac_ext <<_ACEOF | |
20543 | /* confdefs.h. */ | |
20544 | _ACEOF | |
20545 | cat confdefs.h >>conftest.$ac_ext | |
20546 | cat >>conftest.$ac_ext <<_ACEOF | |
20547 | /* end confdefs.h. */ | |
20548 | ||
83d8eb47 MW |
20549 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20550 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20551 | # error "fake wchar_t" |
20552 | #endif | |
20553 | #ifdef HAVE_WCHAR_H | |
20554 | # ifdef __CYGWIN__ | |
20555 | # include <stddef.h> | |
20556 | # endif | |
20557 | # include <wchar.h> | |
20558 | #endif | |
20559 | #ifdef HAVE_STDLIB_H | |
20560 | # include <stdlib.h> | |
20561 | #endif | |
20562 | #include <stdio.h> | |
20563 | ||
20564 | ||
20565 | ||
20566 | int | |
20567 | main () | |
20568 | { | |
20569 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; | |
20570 | test_array [0] = 0 | |
20571 | ||
20572 | ; | |
20573 | return 0; | |
20574 | } | |
20575 | _ACEOF | |
20576 | rm -f conftest.$ac_objext | |
20577 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20578 | (eval $ac_compile) 2>conftest.er1 | |
20579 | ac_status=$? | |
20580 | grep -v '^ *+' conftest.er1 >conftest.err | |
20581 | rm -f conftest.er1 | |
20582 | cat conftest.err >&5 | |
20583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20584 | (exit $ac_status); } && | |
0093c2fc | 20585 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
20586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20587 | (eval $ac_try) 2>&5 | |
20588 | ac_status=$? | |
20589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20590 | (exit $ac_status); }; } && | |
20591 | { ac_try='test -s conftest.$ac_objext' | |
20592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20593 | (eval $ac_try) 2>&5 | |
20594 | ac_status=$? | |
20595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20596 | (exit $ac_status); }; }; then | |
20597 | ac_hi=-1 ac_mid=-1 | |
20598 | while :; do | |
20599 | cat >conftest.$ac_ext <<_ACEOF | |
20600 | /* confdefs.h. */ | |
20601 | _ACEOF | |
20602 | cat confdefs.h >>conftest.$ac_ext | |
20603 | cat >>conftest.$ac_ext <<_ACEOF | |
20604 | /* end confdefs.h. */ | |
20605 | ||
83d8eb47 MW |
20606 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20607 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20608 | # error "fake wchar_t" |
20609 | #endif | |
20610 | #ifdef HAVE_WCHAR_H | |
20611 | # ifdef __CYGWIN__ | |
20612 | # include <stddef.h> | |
20613 | # endif | |
20614 | # include <wchar.h> | |
20615 | #endif | |
20616 | #ifdef HAVE_STDLIB_H | |
20617 | # include <stdlib.h> | |
20618 | #endif | |
20619 | #include <stdio.h> | |
20620 | ||
20621 | ||
20622 | ||
20623 | int | |
20624 | main () | |
20625 | { | |
20626 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; | |
20627 | test_array [0] = 0 | |
20628 | ||
20629 | ; | |
20630 | return 0; | |
20631 | } | |
20632 | _ACEOF | |
20633 | rm -f conftest.$ac_objext | |
20634 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20635 | (eval $ac_compile) 2>conftest.er1 | |
20636 | ac_status=$? | |
20637 | grep -v '^ *+' conftest.er1 >conftest.err | |
20638 | rm -f conftest.er1 | |
20639 | cat conftest.err >&5 | |
20640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20641 | (exit $ac_status); } && | |
0093c2fc | 20642 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
20643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20644 | (eval $ac_try) 2>&5 | |
20645 | ac_status=$? | |
20646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20647 | (exit $ac_status); }; } && | |
20648 | { ac_try='test -s conftest.$ac_objext' | |
20649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20650 | (eval $ac_try) 2>&5 | |
20651 | ac_status=$? | |
20652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20653 | (exit $ac_status); }; }; then | |
20654 | ac_lo=$ac_mid; break | |
20655 | else | |
20656 | echo "$as_me: failed program was:" >&5 | |
20657 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20658 | ||
20659 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
20660 | if test $ac_mid -le $ac_hi; then | |
20661 | ac_lo= ac_hi= | |
20662 | break | |
20663 | fi | |
20664 | ac_mid=`expr 2 '*' $ac_mid` | |
20665 | fi | |
20666 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20667 | done | |
20668 | else | |
20669 | echo "$as_me: failed program was:" >&5 | |
20670 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20671 | ||
20672 | ac_lo= ac_hi= | |
20673 | fi | |
20674 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20675 | fi | |
20676 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20677 | # Binary search between lo and hi bounds. | |
20678 | while test "x$ac_lo" != "x$ac_hi"; do | |
20679 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20680 | cat >conftest.$ac_ext <<_ACEOF | |
20681 | /* confdefs.h. */ | |
20682 | _ACEOF | |
20683 | cat confdefs.h >>conftest.$ac_ext | |
20684 | cat >>conftest.$ac_ext <<_ACEOF | |
20685 | /* end confdefs.h. */ | |
20686 | ||
83d8eb47 MW |
20687 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20688 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20689 | # error "fake wchar_t" |
20690 | #endif | |
20691 | #ifdef HAVE_WCHAR_H | |
20692 | # ifdef __CYGWIN__ | |
20693 | # include <stddef.h> | |
20694 | # endif | |
20695 | # include <wchar.h> | |
20696 | #endif | |
20697 | #ifdef HAVE_STDLIB_H | |
20698 | # include <stdlib.h> | |
20699 | #endif | |
20700 | #include <stdio.h> | |
a848cd7e | 20701 | |
a848cd7e | 20702 | |
a848cd7e | 20703 | |
238ecede MW |
20704 | int |
20705 | main () | |
20706 | { | |
20707 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
20708 | test_array [0] = 0 | |
a848cd7e | 20709 | |
238ecede MW |
20710 | ; |
20711 | return 0; | |
20712 | } | |
20713 | _ACEOF | |
20714 | rm -f conftest.$ac_objext | |
20715 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20716 | (eval $ac_compile) 2>conftest.er1 | |
20717 | ac_status=$? | |
20718 | grep -v '^ *+' conftest.er1 >conftest.err | |
20719 | rm -f conftest.er1 | |
20720 | cat conftest.err >&5 | |
20721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20722 | (exit $ac_status); } && | |
0093c2fc | 20723 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
238ecede MW |
20724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20725 | (eval $ac_try) 2>&5 | |
20726 | ac_status=$? | |
20727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20728 | (exit $ac_status); }; } && | |
20729 | { ac_try='test -s conftest.$ac_objext' | |
20730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20731 | (eval $ac_try) 2>&5 | |
20732 | ac_status=$? | |
20733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20734 | (exit $ac_status); }; }; then | |
20735 | ac_hi=$ac_mid | |
20736 | else | |
20737 | echo "$as_me: failed program was:" >&5 | |
20738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20739 | ||
20740 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
20741 | fi | |
20742 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20743 | done | |
20744 | case $ac_lo in | |
20745 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; | |
20746 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 | |
20747 | See \`config.log' for more details." >&5 | |
20748 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
20749 | See \`config.log' for more details." >&2;} | |
20750 | { (exit 1); exit 1; }; } ;; | |
20751 | esac | |
20752 | else | |
20753 | if test "$cross_compiling" = yes; then | |
0093c2fc VZ |
20754 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
20755 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
238ecede | 20756 | { (exit 1); exit 1; }; } |
a848cd7e SC |
20757 | else |
20758 | cat >conftest.$ac_ext <<_ACEOF | |
20759 | /* confdefs.h. */ | |
20760 | _ACEOF | |
20761 | cat confdefs.h >>conftest.$ac_ext | |
20762 | cat >>conftest.$ac_ext <<_ACEOF | |
20763 | /* end confdefs.h. */ | |
20764 | ||
83d8eb47 MW |
20765 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20766 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20767 | # error "fake wchar_t" |
20768 | #endif | |
20769 | #ifdef HAVE_WCHAR_H | |
20770 | # ifdef __CYGWIN__ | |
20771 | # include <stddef.h> | |
20772 | # endif | |
20773 | # include <wchar.h> | |
20774 | #endif | |
20775 | #ifdef HAVE_STDLIB_H | |
20776 | # include <stdlib.h> | |
20777 | #endif | |
20778 | #include <stdio.h> | |
20779 | ||
20780 | ||
20781 | ||
20782 | long longval () { return (long) (sizeof (wchar_t)); } | |
20783 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } | |
20784 | #include <stdio.h> | |
20785 | #include <stdlib.h> | |
20786 | int | |
20787 | main () | |
20788 | { | |
a848cd7e | 20789 | |
238ecede MW |
20790 | FILE *f = fopen ("conftest.val", "w"); |
20791 | if (! f) | |
20792 | exit (1); | |
20793 | if (((long) (sizeof (wchar_t))) < 0) | |
20794 | { | |
20795 | long i = longval (); | |
20796 | if (i != ((long) (sizeof (wchar_t)))) | |
20797 | exit (1); | |
20798 | fprintf (f, "%ld\n", i); | |
20799 | } | |
20800 | else | |
20801 | { | |
20802 | unsigned long i = ulongval (); | |
20803 | if (i != ((long) (sizeof (wchar_t)))) | |
20804 | exit (1); | |
20805 | fprintf (f, "%lu\n", i); | |
20806 | } | |
20807 | exit (ferror (f) || fclose (f) != 0); | |
20808 | ||
20809 | ; | |
20810 | return 0; | |
20811 | } | |
a848cd7e SC |
20812 | _ACEOF |
20813 | rm -f conftest$ac_exeext | |
20814 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20815 | (eval $ac_link) 2>&5 | |
20816 | ac_status=$? | |
20817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20818 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20820 | (eval $ac_try) 2>&5 | |
20821 | ac_status=$? | |
20822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20823 | (exit $ac_status); }; }; then | |
238ecede | 20824 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
a848cd7e SC |
20825 | else |
20826 | echo "$as_me: program exited with status $ac_status" >&5 | |
20827 | echo "$as_me: failed program was:" >&5 | |
20828 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20829 | ||
20830 | ( exit $ac_status ) | |
238ecede MW |
20831 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
20832 | See \`config.log' for more details." >&5 | |
20833 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
20834 | See \`config.log' for more details." >&2;} | |
20835 | { (exit 1); exit 1; }; } | |
a848cd7e | 20836 | fi |
ac1cb8d3 | 20837 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 20838 | fi |
a848cd7e | 20839 | fi |
238ecede MW |
20840 | rm -f conftest.val |
20841 | else | |
20842 | ac_cv_sizeof_wchar_t=0 | |
20843 | fi | |
20844 | fi | |
20845 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 | |
20846 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 | |
a848cd7e | 20847 | cat >>confdefs.h <<_ACEOF |
238ecede | 20848 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
a848cd7e SC |
20849 | _ACEOF |
20850 | ||
20851 | ||
47a7e797 MW |
20852 | if test "$ac_cv_sizeof_wchar_t" != "0"; then |
20853 | wxUSE_WCHAR_T=yes | |
20854 | else | |
20855 | wxUSE_WCHAR_T=no | |
20856 | fi | |
238ecede | 20857 | |
ba3d13e1 VZ |
20858 | echo "$as_me:$LINENO: checking for va_copy" >&5 |
20859 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6 | |
20860 | if test "${wx_cv_func_va_copy+set}" = set; then | |
20861 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20862 | else | |
20863 | ||
20864 | cat >conftest.$ac_ext <<_ACEOF | |
20865 | ||
20866 | #include <stdarg.h> | |
20867 | void foo(char *f, ...) | |
20868 | { | |
20869 | va_list ap1, ap2; | |
20870 | va_start(ap1, f); | |
20871 | va_copy(ap2, ap1); | |
20872 | va_end(ap2); | |
20873 | va_end(ap1); | |
20874 | } | |
5886b072 VZ |
20875 | int main() |
20876 | { | |
b902e639 VZ |
20877 | foo("hi", 17); |
20878 | return 0; | |
5886b072 | 20879 | } |
ba3d13e1 VZ |
20880 | _ACEOF |
20881 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20882 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20883 | (eval $ac_link) 2>conftest.er1 | |
20884 | ac_status=$? | |
20885 | grep -v '^ *+' conftest.er1 >conftest.err | |
20886 | rm -f conftest.er1 | |
20887 | cat conftest.err >&5 | |
20888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20889 | (exit $ac_status); } && | |
0093c2fc | 20890 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ba3d13e1 VZ |
20891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20892 | (eval $ac_try) 2>&5 | |
20893 | ac_status=$? | |
20894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20895 | (exit $ac_status); }; } && | |
20896 | { ac_try='test -s conftest$ac_exeext' | |
20897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20898 | (eval $ac_try) 2>&5 | |
20899 | ac_status=$? | |
20900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20901 | (exit $ac_status); }; }; then | |
20902 | wx_cv_func_va_copy=yes | |
20903 | else | |
20904 | echo "$as_me: failed program was:" >&5 | |
20905 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20906 | ||
20907 | wx_cv_func_va_copy=no | |
20908 | ||
20909 | fi | |
20910 | rm -f conftest.err conftest.$ac_objext \ | |
20911 | conftest$ac_exeext conftest.$ac_ext | |
20912 | ||
20913 | ||
20914 | fi | |
20915 | echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5 | |
20916 | echo "${ECHO_T}$wx_cv_func_va_copy" >&6 | |
20917 | ||
20918 | if test $wx_cv_func_va_copy = "yes"; then | |
20919 | cat >>confdefs.h <<\_ACEOF | |
20920 | #define HAVE_VA_COPY 1 | |
20921 | _ACEOF | |
20922 | ||
20923 | else | |
20924 | echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5 | |
20925 | echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6 | |
20926 | if test "${wx_cv_type_va_list_lvalue+set}" = set; then | |
20927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20928 | else | |
20929 | ||
20930 | if test "$cross_compiling" = yes; then | |
20931 | wx_cv_type_va_list_lvalue=yes | |
20932 | ||
20933 | else | |
20934 | cat >conftest.$ac_ext <<_ACEOF | |
20935 | ||
20936 | #include <stdarg.h> | |
20937 | int foo(char *f, ...) | |
20938 | { | |
20939 | va_list ap1, ap2; | |
20940 | va_start(ap1, f); | |
20941 | ap2 = ap1; | |
20942 | if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 ) | |
20943 | return 1; | |
20944 | va_end(ap2); | |
20945 | va_end(ap1); | |
20946 | return 0; | |
20947 | } | |
20948 | int main() | |
20949 | { | |
20950 | return foo("hi", 17); | |
20951 | } | |
20952 | _ACEOF | |
20953 | rm -f conftest$ac_exeext | |
20954 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20955 | (eval $ac_link) 2>&5 | |
20956 | ac_status=$? | |
20957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20958 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20960 | (eval $ac_try) 2>&5 | |
20961 | ac_status=$? | |
20962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20963 | (exit $ac_status); }; }; then | |
20964 | wx_cv_type_va_list_lvalue=yes | |
20965 | else | |
20966 | echo "$as_me: program exited with status $ac_status" >&5 | |
20967 | echo "$as_me: failed program was:" >&5 | |
20968 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20969 | ||
20970 | ( exit $ac_status ) | |
20971 | wx_cv_type_va_list_lvalue=no | |
20972 | fi | |
20973 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
20974 | fi | |
20975 | ||
20976 | ||
20977 | fi | |
20978 | echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5 | |
20979 | echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6 | |
20980 | ||
20981 | if test $wx_cv_type_va_list_lvalue != "yes"; then | |
20982 | cat >>confdefs.h <<\_ACEOF | |
20983 | #define VA_LIST_IS_ARRAY 1 | |
20984 | _ACEOF | |
20985 | ||
20986 | fi | |
20987 | fi | |
20988 | ||
a848cd7e SC |
20989 | # Check whether --enable-largefile or --disable-largefile was given. |
20990 | if test "${enable_largefile+set}" = set; then | |
20991 | enableval="$enable_largefile" | |
20992 | ||
20993 | fi; | |
20994 | if test "$enable_largefile" != no; then | |
20995 | wx_largefile=no | |
20996 | ||
20997 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
20998 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
20999 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
21000 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21001 | else | |
21002 | ||
21003 | cat >conftest.$ac_ext <<_ACEOF | |
21004 | /* confdefs.h. */ | |
21005 | _ACEOF | |
21006 | cat confdefs.h >>conftest.$ac_ext | |
21007 | cat >>conftest.$ac_ext <<_ACEOF | |
21008 | /* end confdefs.h. */ | |
21009 | #define _FILE_OFFSET_BITS 64 | |
21010 | #include <sys/types.h> | |
21011 | int | |
21012 | main () | |
21013 | { | |
21014 | typedef struct { | |
21015 | unsigned int field: sizeof(off_t) == 8; | |
21016 | } wxlf; | |
21017 | ||
21018 | ; | |
21019 | return 0; | |
21020 | } | |
21021 | _ACEOF | |
21022 | rm -f conftest.$ac_objext | |
21023 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21024 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21025 | ac_status=$? |
ac1cb8d3 VS |
21026 | grep -v '^ *+' conftest.er1 >conftest.err |
21027 | rm -f conftest.er1 | |
21028 | cat conftest.err >&5 | |
a848cd7e SC |
21029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21030 | (exit $ac_status); } && | |
0093c2fc | 21031 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21033 | (eval $ac_try) 2>&5 | |
21034 | ac_status=$? | |
21035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21036 | (exit $ac_status); }; } && | |
21037 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21039 | (eval $ac_try) 2>&5 | |
21040 | ac_status=$? | |
21041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21042 | (exit $ac_status); }; }; then | |
21043 | ac_cv_sys_file_offset_bits=64 | |
21044 | else | |
21045 | echo "$as_me: failed program was:" >&5 | |
21046 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21047 | ||
21048 | ac_cv_sys_file_offset_bits=no | |
21049 | fi | |
ac1cb8d3 | 21050 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21051 | |
21052 | ||
21053 | fi | |
21054 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
21055 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
21056 | ||
21057 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
21058 | wx_largefile=yes | |
21059 | cat >>confdefs.h <<_ACEOF | |
21060 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
21061 | _ACEOF | |
21062 | ||
21063 | fi | |
21064 | ||
21065 | if test "x$wx_largefile" != "xyes"; then | |
21066 | ||
21067 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
21068 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
21069 | if test "${ac_cv_sys_large_files+set}" = set; then | |
21070 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21071 | else | |
21072 | ||
21073 | cat >conftest.$ac_ext <<_ACEOF | |
21074 | /* confdefs.h. */ | |
21075 | _ACEOF | |
21076 | cat confdefs.h >>conftest.$ac_ext | |
21077 | cat >>conftest.$ac_ext <<_ACEOF | |
21078 | /* end confdefs.h. */ | |
21079 | #define _LARGE_FILES 1 | |
21080 | #include <sys/types.h> | |
21081 | int | |
21082 | main () | |
21083 | { | |
21084 | typedef struct { | |
21085 | unsigned int field: sizeof(off_t) == 8; | |
21086 | } wxlf; | |
21087 | ||
21088 | ; | |
21089 | return 0; | |
21090 | } | |
21091 | _ACEOF | |
21092 | rm -f conftest.$ac_objext | |
21093 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21094 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21095 | ac_status=$? |
ac1cb8d3 VS |
21096 | grep -v '^ *+' conftest.er1 >conftest.err |
21097 | rm -f conftest.er1 | |
21098 | cat conftest.err >&5 | |
a848cd7e SC |
21099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21100 | (exit $ac_status); } && | |
0093c2fc | 21101 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21103 | (eval $ac_try) 2>&5 | |
21104 | ac_status=$? | |
21105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21106 | (exit $ac_status); }; } && | |
21107 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21109 | (eval $ac_try) 2>&5 | |
21110 | ac_status=$? | |
21111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21112 | (exit $ac_status); }; }; then | |
21113 | ac_cv_sys_large_files=1 | |
21114 | else | |
21115 | echo "$as_me: failed program was:" >&5 | |
21116 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21117 | ||
21118 | ac_cv_sys_large_files=no | |
21119 | fi | |
ac1cb8d3 | 21120 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21121 | |
21122 | ||
21123 | fi | |
21124 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
21125 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
21126 | ||
21127 | if test "$ac_cv_sys_large_files" != no; then | |
21128 | wx_largefile=yes | |
21129 | cat >>confdefs.h <<_ACEOF | |
21130 | #define _LARGE_FILES $ac_cv_sys_large_files | |
21131 | _ACEOF | |
21132 | ||
21133 | fi | |
21134 | ||
21135 | fi | |
21136 | ||
21137 | echo "$as_me:$LINENO: checking if large file support is available" >&5 | |
21138 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
21139 | if test "x$wx_largefile" = "xyes"; then | |
21140 | cat >>confdefs.h <<\_ACEOF | |
21141 | #define HAVE_LARGEFILE_SUPPORT 1 | |
21142 | _ACEOF | |
21143 | ||
21144 | fi | |
21145 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 | |
21146 | echo "${ECHO_T}$wx_largefile" >&6 | |
21147 | fi | |
21148 | ||
5b674b9d DE |
21149 | |
21150 | if test "x$wx_largefile" = "xyes"; then | |
21151 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then | |
21152 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
00421666 MW |
21153 | |
21154 | if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then | |
21155 | echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5 | |
21156 | echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6 | |
21157 | if test "${wx_cv_STDC_EXT_required+set}" = set; then | |
21158 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21159 | else | |
21160 | ||
21161 | ||
21162 | ||
21163 | ac_ext=cc | |
21164 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21165 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21166 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21167 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21168 | ||
21169 | cat >conftest.$ac_ext <<_ACEOF | |
21170 | /* confdefs.h. */ | |
21171 | _ACEOF | |
21172 | cat confdefs.h >>conftest.$ac_ext | |
21173 | cat >>conftest.$ac_ext <<_ACEOF | |
21174 | /* end confdefs.h. */ | |
21175 | ||
21176 | int | |
21177 | main () | |
21178 | { | |
21179 | ||
21180 | #ifndef __STDC_EXT__ | |
21181 | choke me | |
21182 | #endif | |
21183 | ||
21184 | ; | |
21185 | return 0; | |
21186 | } | |
21187 | _ACEOF | |
21188 | rm -f conftest.$ac_objext | |
21189 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21190 | (eval $ac_compile) 2>conftest.er1 | |
21191 | ac_status=$? | |
21192 | grep -v '^ *+' conftest.er1 >conftest.err | |
21193 | rm -f conftest.er1 | |
21194 | cat conftest.err >&5 | |
21195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21196 | (exit $ac_status); } && | |
0093c2fc | 21197 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
00421666 MW |
21198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21199 | (eval $ac_try) 2>&5 | |
21200 | ac_status=$? | |
21201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21202 | (exit $ac_status); }; } && | |
21203 | { ac_try='test -s conftest.$ac_objext' | |
21204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21205 | (eval $ac_try) 2>&5 | |
21206 | ac_status=$? | |
21207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21208 | (exit $ac_status); }; }; then | |
21209 | wx_cv_STDC_EXT_required=no | |
21210 | else | |
21211 | echo "$as_me: failed program was:" >&5 | |
21212 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21213 | ||
21214 | wx_cv_STDC_EXT_required=yes | |
21215 | ||
21216 | fi | |
21217 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21218 | ac_ext=c | |
21219 | ac_cpp='$CPP $CPPFLAGS' | |
21220 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21221 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21222 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21223 | ||
21224 | ||
21225 | ||
21226 | fi | |
21227 | echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5 | |
21228 | echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6 | |
21229 | if test "x$wx_cv_STDC_EXT_required" = "xyes"; then | |
21230 | CXXFLAGS="$CXXFLAGS -D__STDC_EXT__" | |
21231 | fi | |
21232 | fi | |
5b674b9d DE |
21233 | else |
21234 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" | |
21235 | fi | |
21236 | echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | |
5294a27e VZ |
21237 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
21238 | if test "${ac_cv_sys_largefile_source+set}" = set; then | |
21239 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21240 | else | |
21241 | while :; do | |
21242 | ac_cv_sys_largefile_source=no | |
21243 | cat >conftest.$ac_ext <<_ACEOF | |
21244 | /* confdefs.h. */ | |
21245 | _ACEOF | |
21246 | cat confdefs.h >>conftest.$ac_ext | |
21247 | cat >>conftest.$ac_ext <<_ACEOF | |
21248 | /* end confdefs.h. */ | |
21249 | #include <stdio.h> | |
21250 | int | |
21251 | main () | |
21252 | { | |
21253 | return !fseeko; | |
21254 | ; | |
21255 | return 0; | |
21256 | } | |
21257 | _ACEOF | |
21258 | rm -f conftest.$ac_objext | |
21259 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21260 | (eval $ac_compile) 2>conftest.er1 | |
21261 | ac_status=$? | |
21262 | grep -v '^ *+' conftest.er1 >conftest.err | |
21263 | rm -f conftest.er1 | |
21264 | cat conftest.err >&5 | |
21265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21266 | (exit $ac_status); } && | |
0093c2fc | 21267 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
21268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21269 | (eval $ac_try) 2>&5 | |
21270 | ac_status=$? | |
21271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21272 | (exit $ac_status); }; } && | |
21273 | { ac_try='test -s conftest.$ac_objext' | |
21274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21275 | (eval $ac_try) 2>&5 | |
21276 | ac_status=$? | |
21277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21278 | (exit $ac_status); }; }; then | |
21279 | break | |
21280 | else | |
21281 | echo "$as_me: failed program was:" >&5 | |
21282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21283 | ||
21284 | fi | |
21285 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21286 | cat >conftest.$ac_ext <<_ACEOF | |
21287 | /* confdefs.h. */ | |
21288 | _ACEOF | |
21289 | cat confdefs.h >>conftest.$ac_ext | |
21290 | cat >>conftest.$ac_ext <<_ACEOF | |
21291 | /* end confdefs.h. */ | |
21292 | #define _LARGEFILE_SOURCE 1 | |
21293 | #include <stdio.h> | |
21294 | int | |
21295 | main () | |
21296 | { | |
21297 | return !fseeko; | |
21298 | ; | |
21299 | return 0; | |
21300 | } | |
21301 | _ACEOF | |
21302 | rm -f conftest.$ac_objext | |
21303 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21304 | (eval $ac_compile) 2>conftest.er1 | |
21305 | ac_status=$? | |
21306 | grep -v '^ *+' conftest.er1 >conftest.err | |
21307 | rm -f conftest.er1 | |
21308 | cat conftest.err >&5 | |
21309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21310 | (exit $ac_status); } && | |
0093c2fc | 21311 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
21312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21313 | (eval $ac_try) 2>&5 | |
21314 | ac_status=$? | |
21315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21316 | (exit $ac_status); }; } && | |
21317 | { ac_try='test -s conftest.$ac_objext' | |
21318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21319 | (eval $ac_try) 2>&5 | |
21320 | ac_status=$? | |
21321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21322 | (exit $ac_status); }; }; then | |
21323 | ac_cv_sys_largefile_source=1; break | |
21324 | else | |
21325 | echo "$as_me: failed program was:" >&5 | |
21326 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21327 | ||
21328 | fi | |
21329 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21330 | break | |
21331 | done | |
21332 | fi | |
21333 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 | |
21334 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 | |
21335 | if test "$ac_cv_sys_largefile_source" != no; then | |
21336 | ||
21337 | cat >>confdefs.h <<_ACEOF | |
21338 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
21339 | _ACEOF | |
21340 | ||
21341 | fi | |
21342 | rm -f conftest* | |
21343 | ||
21344 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | |
21345 | # in glibc 2.1.3, but that breaks too many other things. | |
21346 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
21347 | echo "$as_me:$LINENO: checking for fseeko" >&5 | |
21348 | echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 | |
21349 | if test "${ac_cv_func_fseeko+set}" = set; then | |
21350 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21351 | else | |
21352 | cat >conftest.$ac_ext <<_ACEOF | |
21353 | /* confdefs.h. */ | |
21354 | _ACEOF | |
21355 | cat confdefs.h >>conftest.$ac_ext | |
21356 | cat >>conftest.$ac_ext <<_ACEOF | |
21357 | /* end confdefs.h. */ | |
21358 | #include <stdio.h> | |
21359 | int | |
21360 | main () | |
21361 | { | |
21362 | return fseeko && fseeko (stdin, 0, 0); | |
21363 | ; | |
21364 | return 0; | |
21365 | } | |
21366 | _ACEOF | |
21367 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21368 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21369 | (eval $ac_link) 2>conftest.er1 | |
21370 | ac_status=$? | |
21371 | grep -v '^ *+' conftest.er1 >conftest.err | |
21372 | rm -f conftest.er1 | |
21373 | cat conftest.err >&5 | |
21374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21375 | (exit $ac_status); } && | |
0093c2fc | 21376 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
21377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21378 | (eval $ac_try) 2>&5 | |
21379 | ac_status=$? | |
21380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21381 | (exit $ac_status); }; } && | |
21382 | { ac_try='test -s conftest$ac_exeext' | |
21383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21384 | (eval $ac_try) 2>&5 | |
21385 | ac_status=$? | |
21386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21387 | (exit $ac_status); }; }; then | |
21388 | ac_cv_func_fseeko=yes | |
21389 | else | |
21390 | echo "$as_me: failed program was:" >&5 | |
21391 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21392 | ||
21393 | ac_cv_func_fseeko=no | |
21394 | fi | |
21395 | rm -f conftest.err conftest.$ac_objext \ | |
21396 | conftest$ac_exeext conftest.$ac_ext | |
21397 | fi | |
21398 | echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 | |
21399 | echo "${ECHO_T}$ac_cv_func_fseeko" >&6 | |
21400 | if test $ac_cv_func_fseeko = yes; then | |
21401 | ||
21402 | cat >>confdefs.h <<\_ACEOF | |
21403 | #define HAVE_FSEEKO 1 | |
21404 | _ACEOF | |
21405 | ||
21406 | fi | |
21407 | ||
5b674b9d DE |
21408 | if test "$ac_cv_sys_largefile_source" != no; then |
21409 | WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source" | |
a848cd7e SC |
21410 | fi |
21411 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" | |
21412 | fi | |
21413 | ||
21414 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
21415 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
21416 | if test "${ac_cv_c_bigendian+set}" = set; then | |
21417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21418 | else | |
21419 | ac_cv_c_bigendian=unknown | |
21420 | # See if sys/param.h defines the BYTE_ORDER macro. | |
21421 | cat >conftest.$ac_ext <<_ACEOF | |
21422 | /* confdefs.h. */ | |
21423 | _ACEOF | |
21424 | cat confdefs.h >>conftest.$ac_ext | |
21425 | cat >>conftest.$ac_ext <<_ACEOF | |
21426 | /* end confdefs.h. */ | |
21427 | #include <sys/types.h> | |
21428 | #include <sys/param.h> | |
21429 | int | |
21430 | main () | |
21431 | { | |
21432 | ||
21433 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
21434 | bogus endian macros | |
21435 | #endif | |
21436 | ; | |
21437 | return 0; | |
21438 | } | |
21439 | _ACEOF | |
21440 | rm -f conftest.$ac_objext | |
21441 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21442 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21443 | ac_status=$? |
ac1cb8d3 VS |
21444 | grep -v '^ *+' conftest.er1 >conftest.err |
21445 | rm -f conftest.er1 | |
21446 | cat conftest.err >&5 | |
a848cd7e SC |
21447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21448 | (exit $ac_status); } && | |
0093c2fc | 21449 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21451 | (eval $ac_try) 2>&5 | |
21452 | ac_status=$? | |
21453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21454 | (exit $ac_status); }; } && | |
21455 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21457 | (eval $ac_try) 2>&5 | |
21458 | ac_status=$? | |
21459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21460 | (exit $ac_status); }; }; then | |
21461 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
21462 | cat >conftest.$ac_ext <<_ACEOF | |
21463 | /* confdefs.h. */ | |
21464 | _ACEOF | |
21465 | cat confdefs.h >>conftest.$ac_ext | |
21466 | cat >>conftest.$ac_ext <<_ACEOF | |
21467 | /* end confdefs.h. */ | |
21468 | #include <sys/types.h> | |
21469 | #include <sys/param.h> | |
21470 | int | |
21471 | main () | |
21472 | { | |
21473 | ||
21474 | #if BYTE_ORDER != BIG_ENDIAN | |
21475 | not big endian | |
21476 | #endif | |
21477 | ; | |
21478 | return 0; | |
21479 | } | |
21480 | _ACEOF | |
21481 | rm -f conftest.$ac_objext | |
21482 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21483 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21484 | ac_status=$? |
ac1cb8d3 VS |
21485 | grep -v '^ *+' conftest.er1 >conftest.err |
21486 | rm -f conftest.er1 | |
21487 | cat conftest.err >&5 | |
a848cd7e SC |
21488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21489 | (exit $ac_status); } && | |
0093c2fc | 21490 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21492 | (eval $ac_try) 2>&5 | |
21493 | ac_status=$? | |
21494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21495 | (exit $ac_status); }; } && | |
21496 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21498 | (eval $ac_try) 2>&5 | |
21499 | ac_status=$? | |
21500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21501 | (exit $ac_status); }; }; then | |
21502 | ac_cv_c_bigendian=yes | |
21503 | else | |
21504 | echo "$as_me: failed program was:" >&5 | |
21505 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21506 | ||
21507 | ac_cv_c_bigendian=no | |
21508 | fi | |
ac1cb8d3 | 21509 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21510 | else |
21511 | echo "$as_me: failed program was:" >&5 | |
21512 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21513 | ||
21514 | fi | |
ac1cb8d3 | 21515 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21516 | if test $ac_cv_c_bigendian = unknown; then |
21517 | if test "$cross_compiling" = yes; then | |
21518 | ac_cv_c_bigendian=unknown | |
21519 | else | |
21520 | cat >conftest.$ac_ext <<_ACEOF | |
21521 | /* confdefs.h. */ | |
21522 | _ACEOF | |
21523 | cat confdefs.h >>conftest.$ac_ext | |
21524 | cat >>conftest.$ac_ext <<_ACEOF | |
21525 | /* end confdefs.h. */ | |
21526 | main () { | |
21527 | /* Are we little or big endian? From Harbison&Steele. */ | |
21528 | union | |
21529 | { | |
21530 | long l; | |
21531 | char c[sizeof (long)]; | |
21532 | } u; | |
21533 | u.l = 1; | |
21534 | exit (u.c[sizeof (long) - 1] == 1); | |
21535 | } | |
21536 | _ACEOF | |
21537 | rm -f conftest$ac_exeext | |
21538 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21539 | (eval $ac_link) 2>&5 | |
21540 | ac_status=$? | |
21541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21542 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21544 | (eval $ac_try) 2>&5 | |
21545 | ac_status=$? | |
21546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21547 | (exit $ac_status); }; }; then | |
21548 | ac_cv_c_bigendian=no | |
21549 | else | |
21550 | echo "$as_me: program exited with status $ac_status" >&5 | |
21551 | echo "$as_me: failed program was:" >&5 | |
21552 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21553 | ||
21554 | ( exit $ac_status ) | |
21555 | ac_cv_c_bigendian=yes | |
21556 | fi | |
ac1cb8d3 | 21557 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21558 | fi |
21559 | fi | |
21560 | fi | |
21561 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
21562 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
21563 | if test $ac_cv_c_bigendian = unknown; then | |
21564 | { 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 | |
21565 | 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;} | |
21566 | fi | |
21567 | if test $ac_cv_c_bigendian = yes; then | |
21568 | cat >>confdefs.h <<\_ACEOF | |
21569 | #define WORDS_BIGENDIAN 1 | |
21570 | _ACEOF | |
21571 | ||
21572 | fi | |
21573 | ||
21574 | ||
21575 | ac_ext=cc | |
21576 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21577 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21578 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21579 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21580 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
21581 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
21582 | if test -z "$CXXCPP"; then | |
21583 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
21584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21585 | else | |
21586 | # Double quotes because CXXCPP needs to be expanded | |
21587 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
21588 | do | |
21589 | ac_preproc_ok=false | |
21590 | for ac_cxx_preproc_warn_flag in '' yes | |
21591 | do | |
21592 | # Use a header file that comes with gcc, so configuring glibc | |
21593 | # with a fresh cross-compiler works. | |
21594 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21595 | # <limits.h> exists even on freestanding compilers. | |
21596 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
21597 | # not just through cpp. "Syntax error" is here to catch this case. | |
21598 | cat >conftest.$ac_ext <<_ACEOF | |
21599 | /* confdefs.h. */ | |
21600 | _ACEOF | |
21601 | cat confdefs.h >>conftest.$ac_ext | |
21602 | cat >>conftest.$ac_ext <<_ACEOF | |
21603 | /* end confdefs.h. */ | |
21604 | #ifdef __STDC__ | |
21605 | # include <limits.h> | |
21606 | #else | |
21607 | # include <assert.h> | |
21608 | #endif | |
ac1cb8d3 | 21609 | Syntax error |
a848cd7e SC |
21610 | _ACEOF |
21611 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21612 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21613 | ac_status=$? | |
21614 | grep -v '^ *+' conftest.er1 >conftest.err | |
21615 | rm -f conftest.er1 | |
21616 | cat conftest.err >&5 | |
21617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21618 | (exit $ac_status); } >/dev/null; then | |
21619 | if test -s conftest.err; then | |
21620 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 21621 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
21622 | else |
21623 | ac_cpp_err= | |
21624 | fi | |
21625 | else | |
21626 | ac_cpp_err=yes | |
21627 | fi | |
21628 | if test -z "$ac_cpp_err"; then | |
21629 | : | |
21630 | else | |
21631 | echo "$as_me: failed program was:" >&5 | |
21632 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21633 | ||
21634 | # Broken: fails on valid input. | |
21635 | continue | |
21636 | fi | |
21637 | rm -f conftest.err conftest.$ac_ext | |
21638 | ||
21639 | # OK, works on sane cases. Now check whether non-existent headers | |
21640 | # can be detected and how. | |
21641 | cat >conftest.$ac_ext <<_ACEOF | |
21642 | /* confdefs.h. */ | |
21643 | _ACEOF | |
21644 | cat confdefs.h >>conftest.$ac_ext | |
21645 | cat >>conftest.$ac_ext <<_ACEOF | |
21646 | /* end confdefs.h. */ | |
21647 | #include <ac_nonexistent.h> | |
21648 | _ACEOF | |
21649 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21650 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21651 | ac_status=$? | |
21652 | grep -v '^ *+' conftest.er1 >conftest.err | |
21653 | rm -f conftest.er1 | |
21654 | cat conftest.err >&5 | |
21655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21656 | (exit $ac_status); } >/dev/null; then | |
21657 | if test -s conftest.err; then | |
21658 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 21659 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
21660 | else |
21661 | ac_cpp_err= | |
21662 | fi | |
21663 | else | |
21664 | ac_cpp_err=yes | |
21665 | fi | |
21666 | if test -z "$ac_cpp_err"; then | |
21667 | # Broken: success on invalid input. | |
21668 | continue | |
21669 | else | |
21670 | echo "$as_me: failed program was:" >&5 | |
21671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21672 | ||
21673 | # Passes both tests. | |
21674 | ac_preproc_ok=: | |
21675 | break | |
21676 | fi | |
21677 | rm -f conftest.err conftest.$ac_ext | |
21678 | ||
21679 | done | |
21680 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
21681 | rm -f conftest.err conftest.$ac_ext | |
21682 | if $ac_preproc_ok; then | |
21683 | break | |
21684 | fi | |
21685 | ||
21686 | done | |
21687 | ac_cv_prog_CXXCPP=$CXXCPP | |
21688 | ||
21689 | fi | |
21690 | CXXCPP=$ac_cv_prog_CXXCPP | |
21691 | else | |
21692 | ac_cv_prog_CXXCPP=$CXXCPP | |
21693 | fi | |
21694 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
21695 | echo "${ECHO_T}$CXXCPP" >&6 | |
21696 | ac_preproc_ok=false | |
21697 | for ac_cxx_preproc_warn_flag in '' yes | |
21698 | do | |
21699 | # Use a header file that comes with gcc, so configuring glibc | |
21700 | # with a fresh cross-compiler works. | |
21701 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21702 | # <limits.h> exists even on freestanding compilers. | |
21703 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
21704 | # not just through cpp. "Syntax error" is here to catch this case. | |
21705 | cat >conftest.$ac_ext <<_ACEOF | |
21706 | /* confdefs.h. */ | |
21707 | _ACEOF | |
21708 | cat confdefs.h >>conftest.$ac_ext | |
21709 | cat >>conftest.$ac_ext <<_ACEOF | |
21710 | /* end confdefs.h. */ | |
21711 | #ifdef __STDC__ | |
21712 | # include <limits.h> | |
21713 | #else | |
21714 | # include <assert.h> | |
21715 | #endif | |
ac1cb8d3 | 21716 | Syntax error |
a848cd7e SC |
21717 | _ACEOF |
21718 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21719 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21720 | ac_status=$? | |
21721 | grep -v '^ *+' conftest.er1 >conftest.err | |
21722 | rm -f conftest.er1 | |
21723 | cat conftest.err >&5 | |
21724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21725 | (exit $ac_status); } >/dev/null; then | |
21726 | if test -s conftest.err; then | |
21727 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 21728 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
21729 | else |
21730 | ac_cpp_err= | |
21731 | fi | |
21732 | else | |
21733 | ac_cpp_err=yes | |
21734 | fi | |
21735 | if test -z "$ac_cpp_err"; then | |
21736 | : | |
21737 | else | |
21738 | echo "$as_me: failed program was:" >&5 | |
21739 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21740 | ||
21741 | # Broken: fails on valid input. | |
21742 | continue | |
21743 | fi | |
21744 | rm -f conftest.err conftest.$ac_ext | |
21745 | ||
21746 | # OK, works on sane cases. Now check whether non-existent headers | |
21747 | # can be detected and how. | |
21748 | cat >conftest.$ac_ext <<_ACEOF | |
21749 | /* confdefs.h. */ | |
21750 | _ACEOF | |
21751 | cat confdefs.h >>conftest.$ac_ext | |
21752 | cat >>conftest.$ac_ext <<_ACEOF | |
21753 | /* end confdefs.h. */ | |
21754 | #include <ac_nonexistent.h> | |
21755 | _ACEOF | |
21756 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21757 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21758 | ac_status=$? | |
21759 | grep -v '^ *+' conftest.er1 >conftest.err | |
21760 | rm -f conftest.er1 | |
21761 | cat conftest.err >&5 | |
21762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21763 | (exit $ac_status); } >/dev/null; then | |
21764 | if test -s conftest.err; then | |
21765 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 21766 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
21767 | else |
21768 | ac_cpp_err= | |
21769 | fi | |
21770 | else | |
21771 | ac_cpp_err=yes | |
21772 | fi | |
21773 | if test -z "$ac_cpp_err"; then | |
21774 | # Broken: success on invalid input. | |
21775 | continue | |
21776 | else | |
21777 | echo "$as_me: failed program was:" >&5 | |
21778 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21779 | ||
21780 | # Passes both tests. | |
21781 | ac_preproc_ok=: | |
21782 | break | |
21783 | fi | |
21784 | rm -f conftest.err conftest.$ac_ext | |
21785 | ||
21786 | done | |
21787 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
21788 | rm -f conftest.err conftest.$ac_ext | |
21789 | if $ac_preproc_ok; then | |
21790 | : | |
21791 | else | |
21792 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
21793 | See \`config.log' for more details." >&5 | |
21794 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
21795 | See \`config.log' for more details." >&2;} | |
21796 | { (exit 1); exit 1; }; } | |
21797 | fi | |
21798 | ||
21799 | ac_ext=cc | |
21800 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21801 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21802 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21803 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21804 | ||
21805 | ||
21806 | ||
21807 | ||
21808 | ||
21809 | ac_ext=cc | |
21810 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21811 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21812 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21813 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21814 | ||
21815 | ||
21816 | ||
21817 | for ac_header in iostream | |
21818 | do | |
21819 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
21820 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
21821 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21822 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
21823 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
21824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21825 | fi | |
21826 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
21827 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
21828 | else | |
21829 | # Is the header compilable? | |
21830 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
21831 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
21832 | cat >conftest.$ac_ext <<_ACEOF | |
21833 | /* confdefs.h. */ | |
21834 | _ACEOF | |
21835 | cat confdefs.h >>conftest.$ac_ext | |
21836 | cat >>conftest.$ac_ext <<_ACEOF | |
21837 | /* end confdefs.h. */ | |
21838 | $ac_includes_default | |
21839 | #include <$ac_header> | |
21840 | _ACEOF | |
21841 | rm -f conftest.$ac_objext | |
21842 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21843 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21844 | ac_status=$? |
ac1cb8d3 VS |
21845 | grep -v '^ *+' conftest.er1 >conftest.err |
21846 | rm -f conftest.er1 | |
21847 | cat conftest.err >&5 | |
a848cd7e SC |
21848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21849 | (exit $ac_status); } && | |
0093c2fc | 21850 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21852 | (eval $ac_try) 2>&5 | |
21853 | ac_status=$? | |
21854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21855 | (exit $ac_status); }; } && | |
21856 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21858 | (eval $ac_try) 2>&5 | |
21859 | ac_status=$? | |
21860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21861 | (exit $ac_status); }; }; then | |
21862 | ac_header_compiler=yes | |
21863 | else | |
21864 | echo "$as_me: failed program was:" >&5 | |
21865 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21866 | ||
21867 | ac_header_compiler=no | |
21868 | fi | |
ac1cb8d3 | 21869 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21870 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21871 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21872 | ||
21873 | # Is the header present? | |
21874 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
21875 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
21876 | cat >conftest.$ac_ext <<_ACEOF | |
21877 | /* confdefs.h. */ | |
21878 | _ACEOF | |
21879 | cat confdefs.h >>conftest.$ac_ext | |
21880 | cat >>conftest.$ac_ext <<_ACEOF | |
21881 | /* end confdefs.h. */ | |
21882 | #include <$ac_header> | |
21883 | _ACEOF | |
21884 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21885 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21886 | ac_status=$? | |
21887 | grep -v '^ *+' conftest.er1 >conftest.err | |
21888 | rm -f conftest.er1 | |
21889 | cat conftest.err >&5 | |
21890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21891 | (exit $ac_status); } >/dev/null; then | |
21892 | if test -s conftest.err; then | |
21893 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 21894 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
21895 | else |
21896 | ac_cpp_err= | |
21897 | fi | |
21898 | else | |
21899 | ac_cpp_err=yes | |
21900 | fi | |
21901 | if test -z "$ac_cpp_err"; then | |
21902 | ac_header_preproc=yes | |
21903 | else | |
21904 | echo "$as_me: failed program was:" >&5 | |
21905 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21906 | ||
21907 | ac_header_preproc=no | |
21908 | fi | |
21909 | rm -f conftest.err conftest.$ac_ext | |
21910 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21911 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21912 | ||
21913 | # So? What about this header? | |
ac1cb8d3 VS |
21914 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
21915 | yes:no: ) | |
a848cd7e SC |
21916 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
21917 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
21918 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
21919 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
21920 | ac_header_preproc=yes | |
a848cd7e | 21921 | ;; |
ac1cb8d3 | 21922 | no:yes:* ) |
a848cd7e SC |
21923 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
21924 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
21925 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
21926 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
21927 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
21928 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
21929 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
21930 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
21931 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
21932 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
21933 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
21934 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
21935 | ( |
21936 | cat <<\_ASBOX | |
ac1cb8d3 VS |
21937 | ## ----------------------------------------- ## |
21938 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
21939 | ## ----------------------------------------- ## | |
a848cd7e SC |
21940 | _ASBOX |
21941 | ) | | |
21942 | sed "s/^/$as_me: WARNING: /" >&2 | |
21943 | ;; | |
21944 | esac | |
21945 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21946 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
21947 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
21948 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21949 | else | |
ac1cb8d3 | 21950 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
21951 | fi |
21952 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
21953 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
21954 | ||
21955 | fi | |
21956 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
21957 | cat >>confdefs.h <<_ACEOF | |
21958 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
21959 | _ACEOF | |
21960 | ||
21961 | fi | |
21962 | ||
21963 | done | |
21964 | ||
21965 | ||
21966 | if test "$ac_cv_header_iostream" = "yes" ; then | |
21967 | : | |
21968 | else | |
21969 | cat >>confdefs.h <<\_ACEOF | |
21970 | #define wxUSE_IOSTREAMH 1 | |
21971 | _ACEOF | |
21972 | ||
21973 | fi | |
21974 | ||
21975 | ac_ext=c | |
21976 | ac_cpp='$CPP $CPPFLAGS' | |
21977 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21978 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21979 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21980 | ||
21981 | ||
21982 | ||
21983 | ||
21984 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 | |
21985 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
21986 | if test "${wx_cv_cpp_bool+set}" = set; then | |
21987 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21988 | else | |
21989 | ||
21990 | ||
21991 | ||
21992 | ac_ext=cc | |
21993 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21994 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21995 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21996 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21997 | ||
21998 | ||
21999 | cat >conftest.$ac_ext <<_ACEOF | |
22000 | /* confdefs.h. */ | |
22001 | _ACEOF | |
22002 | cat confdefs.h >>conftest.$ac_ext | |
22003 | cat >>conftest.$ac_ext <<_ACEOF | |
22004 | /* end confdefs.h. */ | |
22005 | ||
22006 | ||
22007 | int | |
22008 | main () | |
22009 | { | |
22010 | ||
22011 | bool b = true; | |
22012 | ||
22013 | return 0; | |
22014 | ||
22015 | ; | |
22016 | return 0; | |
22017 | } | |
22018 | _ACEOF | |
22019 | rm -f conftest.$ac_objext | |
22020 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22021 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22022 | ac_status=$? |
ac1cb8d3 VS |
22023 | grep -v '^ *+' conftest.er1 >conftest.err |
22024 | rm -f conftest.er1 | |
22025 | cat conftest.err >&5 | |
a848cd7e SC |
22026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22027 | (exit $ac_status); } && | |
0093c2fc | 22028 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22030 | (eval $ac_try) 2>&5 | |
22031 | ac_status=$? | |
22032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22033 | (exit $ac_status); }; } && | |
22034 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22036 | (eval $ac_try) 2>&5 | |
22037 | ac_status=$? | |
22038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22039 | (exit $ac_status); }; }; then | |
22040 | ||
22041 | wx_cv_cpp_bool=yes | |
22042 | ||
22043 | else | |
22044 | echo "$as_me: failed program was:" >&5 | |
22045 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22046 | ||
22047 | ||
22048 | wx_cv_cpp_bool=no | |
22049 | ||
22050 | ||
22051 | fi | |
ac1cb8d3 | 22052 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22053 | |
22054 | ac_ext=c | |
22055 | ac_cpp='$CPP $CPPFLAGS' | |
22056 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22057 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22058 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22059 | ||
22060 | ||
22061 | fi | |
22062 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
22063 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
22064 | ||
22065 | if test "$wx_cv_cpp_bool" = "yes"; then | |
22066 | cat >>confdefs.h <<\_ACEOF | |
22067 | #define HAVE_BOOL 1 | |
22068 | _ACEOF | |
22069 | ||
22070 | fi | |
22071 | ||
22072 | ||
22073 | ||
22074 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 | |
22075 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
22076 | if test "${wx_cv_explicit+set}" = set; then | |
22077 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22078 | else | |
22079 | ||
22080 | ||
22081 | ||
22082 | ac_ext=cc | |
22083 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22084 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22085 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22086 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22087 | ||
22088 | ||
22089 | cat >conftest.$ac_ext <<_ACEOF | |
22090 | /* confdefs.h. */ | |
22091 | _ACEOF | |
22092 | cat confdefs.h >>conftest.$ac_ext | |
22093 | cat >>conftest.$ac_ext <<_ACEOF | |
22094 | /* end confdefs.h. */ | |
22095 | ||
22096 | class Foo { public: explicit Foo(int) {} }; | |
22097 | ||
22098 | int | |
22099 | main () | |
22100 | { | |
22101 | ||
22102 | return 0; | |
22103 | ||
22104 | ; | |
22105 | return 0; | |
22106 | } | |
22107 | _ACEOF | |
22108 | rm -f conftest.$ac_objext | |
22109 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22110 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22111 | ac_status=$? |
ac1cb8d3 VS |
22112 | grep -v '^ *+' conftest.er1 >conftest.err |
22113 | rm -f conftest.er1 | |
22114 | cat conftest.err >&5 | |
a848cd7e SC |
22115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22116 | (exit $ac_status); } && | |
0093c2fc | 22117 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22119 | (eval $ac_try) 2>&5 | |
22120 | ac_status=$? | |
22121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22122 | (exit $ac_status); }; } && | |
22123 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22125 | (eval $ac_try) 2>&5 | |
22126 | ac_status=$? | |
22127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22128 | (exit $ac_status); }; }; then | |
22129 | ||
22130 | cat >conftest.$ac_ext <<_ACEOF | |
22131 | /* confdefs.h. */ | |
22132 | _ACEOF | |
22133 | cat confdefs.h >>conftest.$ac_ext | |
22134 | cat >>conftest.$ac_ext <<_ACEOF | |
22135 | /* end confdefs.h. */ | |
22136 | ||
22137 | class Foo { public: explicit Foo(int) {} }; | |
22138 | static void TakeFoo(const Foo& foo) { } | |
22139 | ||
22140 | int | |
22141 | main () | |
22142 | { | |
22143 | ||
22144 | TakeFoo(17); | |
22145 | return 0; | |
22146 | ||
22147 | ; | |
22148 | return 0; | |
22149 | } | |
22150 | _ACEOF | |
22151 | rm -f conftest.$ac_objext | |
22152 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22153 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22154 | ac_status=$? |
ac1cb8d3 VS |
22155 | grep -v '^ *+' conftest.er1 >conftest.err |
22156 | rm -f conftest.er1 | |
22157 | cat conftest.err >&5 | |
a848cd7e SC |
22158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22159 | (exit $ac_status); } && | |
0093c2fc | 22160 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22162 | (eval $ac_try) 2>&5 | |
22163 | ac_status=$? | |
22164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22165 | (exit $ac_status); }; } && | |
22166 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22168 | (eval $ac_try) 2>&5 | |
22169 | ac_status=$? | |
22170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22171 | (exit $ac_status); }; }; then | |
22172 | wx_cv_explicit=no | |
22173 | else | |
22174 | echo "$as_me: failed program was:" >&5 | |
22175 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22176 | ||
22177 | wx_cv_explicit=yes | |
22178 | ||
22179 | fi | |
ac1cb8d3 | 22180 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22181 | |
22182 | else | |
22183 | echo "$as_me: failed program was:" >&5 | |
22184 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22185 | ||
22186 | wx_cv_explicit=no | |
22187 | ||
22188 | fi | |
ac1cb8d3 | 22189 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22190 | |
22191 | ac_ext=c | |
22192 | ac_cpp='$CPP $CPPFLAGS' | |
22193 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22194 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22195 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22196 | ||
22197 | ||
22198 | fi | |
22199 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
22200 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
22201 | ||
22202 | if test "$wx_cv_explicit" = "yes"; then | |
22203 | cat >>confdefs.h <<\_ACEOF | |
22204 | #define HAVE_EXPLICIT 1 | |
22205 | _ACEOF | |
22206 | ||
22207 | fi | |
22208 | ||
22209 | ||
22210 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 | |
22211 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
22212 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
22213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22214 | else | |
22215 | ||
22216 | ||
22217 | ac_ext=cc | |
22218 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22219 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22220 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22221 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22222 | ||
22223 | cat >conftest.$ac_ext <<_ACEOF | |
22224 | /* confdefs.h. */ | |
22225 | _ACEOF | |
22226 | cat confdefs.h >>conftest.$ac_ext | |
22227 | cat >>conftest.$ac_ext <<_ACEOF | |
22228 | /* end confdefs.h. */ | |
22229 | ||
22230 | int | |
22231 | main () | |
22232 | { | |
22233 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
22234 | ; | |
22235 | return 0; | |
22236 | } | |
22237 | _ACEOF | |
22238 | rm -f conftest.$ac_objext | |
22239 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22240 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22241 | ac_status=$? |
ac1cb8d3 VS |
22242 | grep -v '^ *+' conftest.er1 >conftest.err |
22243 | rm -f conftest.er1 | |
22244 | cat conftest.err >&5 | |
a848cd7e SC |
22245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22246 | (exit $ac_status); } && | |
0093c2fc | 22247 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22249 | (eval $ac_try) 2>&5 | |
22250 | ac_status=$? | |
22251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22252 | (exit $ac_status); }; } && | |
22253 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22255 | (eval $ac_try) 2>&5 | |
22256 | ac_status=$? | |
22257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22258 | (exit $ac_status); }; }; then | |
22259 | ac_cv_cxx_const_cast=yes | |
22260 | else | |
22261 | echo "$as_me: failed program was:" >&5 | |
22262 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22263 | ||
22264 | ac_cv_cxx_const_cast=no | |
22265 | fi | |
ac1cb8d3 | 22266 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22267 | ac_ext=c |
22268 | ac_cpp='$CPP $CPPFLAGS' | |
22269 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22270 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22271 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22272 | ||
22273 | ||
22274 | fi | |
22275 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 | |
22276 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
22277 | if test "$ac_cv_cxx_const_cast" = yes; then | |
22278 | ||
22279 | cat >>confdefs.h <<\_ACEOF | |
22280 | #define HAVE_CONST_CAST | |
22281 | _ACEOF | |
22282 | ||
22283 | fi | |
22284 | ||
7714864e RL |
22285 | echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5 |
22286 | echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6 | |
22287 | if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then | |
22288 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22289 | else | |
22290 | ||
22291 | ||
22292 | ac_ext=cc | |
22293 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22294 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22295 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22296 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22297 | ||
22298 | cat >conftest.$ac_ext <<_ACEOF | |
22299 | /* confdefs.h. */ | |
22300 | _ACEOF | |
22301 | cat confdefs.h >>conftest.$ac_ext | |
22302 | cat >>conftest.$ac_ext <<_ACEOF | |
22303 | /* end confdefs.h. */ | |
22304 | #include <typeinfo> | |
22305 | class Base { public : Base () {} virtual void f () = 0;}; | |
22306 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
22307 | class Unrelated { public : Unrelated () {} }; | |
22308 | int g (Unrelated&) { return 0; } | |
22309 | int | |
22310 | main () | |
22311 | { | |
22312 | ||
22313 | Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e); | |
22314 | ; | |
22315 | return 0; | |
22316 | } | |
22317 | _ACEOF | |
22318 | rm -f conftest.$ac_objext | |
22319 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22320 | (eval $ac_compile) 2>conftest.er1 | |
22321 | ac_status=$? | |
22322 | grep -v '^ *+' conftest.er1 >conftest.err | |
22323 | rm -f conftest.er1 | |
22324 | cat conftest.err >&5 | |
22325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22326 | (exit $ac_status); } && | |
0093c2fc | 22327 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
7714864e RL |
22328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22329 | (eval $ac_try) 2>&5 | |
22330 | ac_status=$? | |
22331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22332 | (exit $ac_status); }; } && | |
22333 | { ac_try='test -s conftest.$ac_objext' | |
22334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22335 | (eval $ac_try) 2>&5 | |
22336 | ac_status=$? | |
22337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22338 | (exit $ac_status); }; }; then | |
22339 | ac_cv_cxx_reinterpret_cast=yes | |
22340 | else | |
22341 | echo "$as_me: failed program was:" >&5 | |
22342 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22343 | ||
22344 | ac_cv_cxx_reinterpret_cast=no | |
22345 | fi | |
22346 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22347 | ac_ext=c | |
22348 | ac_cpp='$CPP $CPPFLAGS' | |
22349 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22350 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22351 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22352 | ||
22353 | ||
22354 | fi | |
22355 | echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5 | |
22356 | echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6 | |
22357 | if test "$ac_cv_cxx_reinterpret_cast" = yes; then | |
22358 | ||
22359 | cat >>confdefs.h <<\_ACEOF | |
22360 | #define HAVE_REINTERPRET_CAST | |
22361 | _ACEOF | |
22362 | ||
22363 | fi | |
22364 | ||
a848cd7e SC |
22365 | echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5 |
22366 | echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6 | |
22367 | if test "${ac_cv_cxx_static_cast+set}" = set; then | |
22368 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22369 | else | |
22370 | ||
22371 | ||
22372 | ac_ext=cc | |
22373 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22374 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22375 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22376 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22377 | ||
22378 | cat >conftest.$ac_ext <<_ACEOF | |
22379 | /* confdefs.h. */ | |
22380 | _ACEOF | |
22381 | cat confdefs.h >>conftest.$ac_ext | |
22382 | cat >>conftest.$ac_ext <<_ACEOF | |
22383 | /* end confdefs.h. */ | |
22384 | #include <typeinfo> | |
22385 | class Base { public : Base () {} virtual void f () = 0; }; | |
22386 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
22387 | int g (Derived&) { return 0; } | |
22388 | int | |
22389 | main () | |
22390 | { | |
22391 | ||
22392 | Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); | |
22393 | ; | |
22394 | return 0; | |
22395 | } | |
22396 | _ACEOF | |
22397 | rm -f conftest.$ac_objext | |
22398 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22399 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22400 | ac_status=$? |
ac1cb8d3 VS |
22401 | grep -v '^ *+' conftest.er1 >conftest.err |
22402 | rm -f conftest.er1 | |
22403 | cat conftest.err >&5 | |
a848cd7e SC |
22404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22405 | (exit $ac_status); } && | |
0093c2fc | 22406 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22408 | (eval $ac_try) 2>&5 | |
22409 | ac_status=$? | |
22410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22411 | (exit $ac_status); }; } && | |
22412 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22414 | (eval $ac_try) 2>&5 | |
22415 | ac_status=$? | |
22416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22417 | (exit $ac_status); }; }; then | |
22418 | ac_cv_cxx_static_cast=yes | |
22419 | else | |
22420 | echo "$as_me: failed program was:" >&5 | |
22421 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22422 | ||
22423 | ac_cv_cxx_static_cast=no | |
22424 | fi | |
ac1cb8d3 | 22425 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22426 | ac_ext=c |
22427 | ac_cpp='$CPP $CPPFLAGS' | |
22428 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22429 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22430 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22431 | ||
22432 | ||
22433 | fi | |
22434 | echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5 | |
22435 | echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6 | |
22436 | if test "$ac_cv_cxx_static_cast" = yes; then | |
22437 | ||
22438 | cat >>confdefs.h <<\_ACEOF | |
22439 | #define HAVE_STATIC_CAST | |
22440 | _ACEOF | |
22441 | ||
22442 | fi | |
22443 | ||
22444 | ||
3c28b7cb MW |
22445 | if test "x$SUNCXX" = xyes; then |
22446 | CXXFLAGS="$CXXFLAGS -features=tmplife" | |
22447 | fi | |
22448 | ||
9122d155 VZ |
22449 | if test "x$SUNCC" = xyes; then |
22450 | CFLAGS="$CFLAGS -erroff=E_NO_EXPLICIT_TYPE_GIVEN" | |
22451 | fi | |
22452 | ||
0ad5d837 VZ |
22453 | if test "x$SGICC" = "xyes"; then |
22454 | CFLAGS="$CFLAGS -woff 3970" | |
22455 | fi | |
22456 | if test "x$SGICXX" = "xyes"; then | |
22457 | CXXFLAGS="$CXXFLAGS -woff 3970" | |
22458 | fi | |
22459 | ||
2eef8513 VZ |
22460 | if test "x$HPCC" = "xyes"; then |
22461 | CFLAGS="$CFLAGS +W 2011,2450" | |
22462 | fi | |
22463 | if test "x$HPCXX" = "xyes"; then | |
22464 | CXXFLAGS="$CXXFLAGS +W 2340" | |
22465 | fi | |
22466 | ||
22467 | if test "x$COMPAQCXX" = "xyes"; then | |
22468 | CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit" | |
22469 | fi | |
22470 | ||
f56c22b4 | 22471 | if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then |
a848cd7e SC |
22472 | ac_ext=cc |
22473 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22474 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22475 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22476 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22477 | ||
22478 | ||
f56c22b4 MW |
22479 | if test "$wxUSE_UNICODE" = "yes"; then |
22480 | std_string="std::wstring" | |
22481 | char_type="wchar_t" | |
22482 | else | |
22483 | std_string="std::string" | |
22484 | char_type="char" | |
22485 | fi | |
22486 | ||
22487 | echo "$as_me:$LINENO: checking for $std_string in <string>" >&5 | |
22488 | echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6 | |
a848cd7e SC |
22489 | cat >conftest.$ac_ext <<_ACEOF |
22490 | /* confdefs.h. */ | |
22491 | _ACEOF | |
22492 | cat confdefs.h >>conftest.$ac_ext | |
22493 | cat >>conftest.$ac_ext <<_ACEOF | |
22494 | /* end confdefs.h. */ | |
22495 | #include <string> | |
a848cd7e SC |
22496 | int |
22497 | main () | |
22498 | { | |
f56c22b4 | 22499 | $std_string foo; |
a848cd7e SC |
22500 | ; |
22501 | return 0; | |
22502 | } | |
22503 | _ACEOF | |
22504 | rm -f conftest.$ac_objext | |
22505 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22506 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22507 | ac_status=$? |
ac1cb8d3 VS |
22508 | grep -v '^ *+' conftest.er1 >conftest.err |
22509 | rm -f conftest.er1 | |
22510 | cat conftest.err >&5 | |
a848cd7e SC |
22511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22512 | (exit $ac_status); } && | |
0093c2fc | 22513 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22515 | (eval $ac_try) 2>&5 | |
22516 | ac_status=$? | |
22517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22518 | (exit $ac_status); }; } && | |
22519 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22521 | (eval $ac_try) 2>&5 | |
22522 | ac_status=$? | |
22523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22524 | (exit $ac_status); }; }; then | |
22525 | echo "$as_me:$LINENO: result: yes" >&5 | |
22526 | echo "${ECHO_T}yes" >&6 | |
0a08f02a MB |
22527 | cat >>confdefs.h <<\_ACEOF |
22528 | #define HAVE_STD_WSTRING 1 | |
22529 | _ACEOF | |
22530 | ||
a848cd7e SC |
22531 | else |
22532 | echo "$as_me: failed program was:" >&5 | |
22533 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22534 | ||
22535 | echo "$as_me:$LINENO: result: no" >&5 | |
22536 | echo "${ECHO_T}no" >&6 | |
f56c22b4 MW |
22537 | echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5 |
22538 | echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6 | |
0a08f02a MB |
22539 | cat >conftest.$ac_ext <<_ACEOF |
22540 | /* confdefs.h. */ | |
22541 | _ACEOF | |
22542 | cat confdefs.h >>conftest.$ac_ext | |
22543 | cat >>conftest.$ac_ext <<_ACEOF | |
22544 | /* end confdefs.h. */ | |
22545 | ||
22546 | #ifdef HAVE_WCHAR_H | |
22547 | # ifdef __CYGWIN__ | |
22548 | # include <stddef.h> | |
22549 | # endif | |
22550 | # include <wchar.h> | |
22551 | #endif | |
22552 | #ifdef HAVE_STDLIB_H | |
22553 | # include <stdlib.h> | |
22554 | #endif | |
22555 | #include <stdio.h> | |
22556 | #include <string> | |
22557 | ||
22558 | int | |
22559 | main () | |
22560 | { | |
f56c22b4 MW |
22561 | std::basic_string<$char_type> foo; |
22562 | const $char_type* dummy = foo.c_str(); | |
0a08f02a MB |
22563 | ; |
22564 | return 0; | |
22565 | } | |
22566 | _ACEOF | |
22567 | rm -f conftest.$ac_objext | |
22568 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22569 | (eval $ac_compile) 2>conftest.er1 | |
22570 | ac_status=$? | |
22571 | grep -v '^ *+' conftest.er1 >conftest.err | |
22572 | rm -f conftest.er1 | |
22573 | cat conftest.err >&5 | |
22574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22575 | (exit $ac_status); } && | |
0093c2fc | 22576 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
0a08f02a MB |
22577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22578 | (eval $ac_try) 2>&5 | |
22579 | ac_status=$? | |
22580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22581 | (exit $ac_status); }; } && | |
22582 | { ac_try='test -s conftest.$ac_objext' | |
22583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22584 | (eval $ac_try) 2>&5 | |
22585 | ac_status=$? | |
22586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22587 | (exit $ac_status); }; }; then | |
22588 | echo "$as_me:$LINENO: result: yes" >&5 | |
22589 | echo "${ECHO_T}yes" >&6 | |
22590 | else | |
22591 | echo "$as_me: failed program was:" >&5 | |
22592 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22593 | ||
22594 | echo "$as_me:$LINENO: result: no" >&5 | |
22595 | echo "${ECHO_T}no" >&6 | |
f56c22b4 | 22596 | if test "$wxUSE_STL" = "yes"; then |
4b9918c5 MW |
22597 | { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5 |
22598 | echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;} | |
22599 | { (exit 1); exit 1; }; } | |
22600 | elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then | |
22601 | { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5 | |
22602 | echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;} | |
a848cd7e | 22603 | { (exit 1); exit 1; }; } |
f56c22b4 MW |
22604 | else |
22605 | { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5 | |
22606 | echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;} | |
22607 | wxUSE_STD_STRING=no | |
22608 | fi | |
22609 | ||
0a08f02a | 22610 | |
a848cd7e | 22611 | fi |
ac1cb8d3 | 22612 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 22613 | |
0a08f02a MB |
22614 | fi |
22615 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22616 | ||
22617 | ac_ext=c | |
22618 | ac_cpp='$CPP $CPPFLAGS' | |
22619 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22620 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
f56c22b4 MW |
22621 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
22622 | ||
22623 | fi | |
22624 | ||
22625 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
22626 | ac_ext=cc | |
22627 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22628 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22629 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22630 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22631 | ||
22632 | ||
22633 | echo "$as_me:$LINENO: checking for std::istream" >&5 | |
22634 | echo $ECHO_N "checking for std::istream... $ECHO_C" >&6 | |
22635 | if test "${ac_cv_type_std__istream+set}" = set; then | |
22636 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22637 | else | |
22638 | cat >conftest.$ac_ext <<_ACEOF | |
22639 | /* confdefs.h. */ | |
22640 | _ACEOF | |
22641 | cat confdefs.h >>conftest.$ac_ext | |
22642 | cat >>conftest.$ac_ext <<_ACEOF | |
22643 | /* end confdefs.h. */ | |
22644 | #include <iostream> | |
22645 | ||
22646 | int | |
22647 | main () | |
22648 | { | |
22649 | if ((std::istream *) 0) | |
22650 | return 0; | |
22651 | if (sizeof (std::istream)) | |
22652 | return 0; | |
22653 | ; | |
22654 | return 0; | |
22655 | } | |
22656 | _ACEOF | |
22657 | rm -f conftest.$ac_objext | |
22658 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22659 | (eval $ac_compile) 2>conftest.er1 | |
22660 | ac_status=$? | |
22661 | grep -v '^ *+' conftest.er1 >conftest.err | |
22662 | rm -f conftest.er1 | |
22663 | cat conftest.err >&5 | |
22664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22665 | (exit $ac_status); } && | |
0093c2fc | 22666 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
f56c22b4 MW |
22667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22668 | (eval $ac_try) 2>&5 | |
22669 | ac_status=$? | |
22670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22671 | (exit $ac_status); }; } && | |
22672 | { ac_try='test -s conftest.$ac_objext' | |
22673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22674 | (eval $ac_try) 2>&5 | |
22675 | ac_status=$? | |
22676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22677 | (exit $ac_status); }; }; then | |
22678 | ac_cv_type_std__istream=yes | |
22679 | else | |
22680 | echo "$as_me: failed program was:" >&5 | |
22681 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22682 | ||
22683 | ac_cv_type_std__istream=no | |
22684 | fi | |
22685 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22686 | fi | |
22687 | echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5 | |
22688 | echo "${ECHO_T}$ac_cv_type_std__istream" >&6 | |
22689 | if test $ac_cv_type_std__istream = yes; then | |
22690 | ||
22691 | cat >>confdefs.h <<_ACEOF | |
22692 | #define HAVE_STD__ISTREAM 1 | |
22693 | _ACEOF | |
22694 | ||
22695 | ||
22696 | else | |
22697 | wxUSE_STD_IOSTREAM=no | |
22698 | fi | |
22699 | echo "$as_me:$LINENO: checking for std::ostream" >&5 | |
22700 | echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6 | |
22701 | if test "${ac_cv_type_std__ostream+set}" = set; then | |
22702 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22703 | else | |
22704 | cat >conftest.$ac_ext <<_ACEOF | |
22705 | /* confdefs.h. */ | |
22706 | _ACEOF | |
22707 | cat confdefs.h >>conftest.$ac_ext | |
22708 | cat >>conftest.$ac_ext <<_ACEOF | |
22709 | /* end confdefs.h. */ | |
22710 | #include <iostream> | |
22711 | ||
22712 | int | |
22713 | main () | |
22714 | { | |
22715 | if ((std::ostream *) 0) | |
22716 | return 0; | |
22717 | if (sizeof (std::ostream)) | |
22718 | return 0; | |
22719 | ; | |
22720 | return 0; | |
22721 | } | |
22722 | _ACEOF | |
22723 | rm -f conftest.$ac_objext | |
22724 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22725 | (eval $ac_compile) 2>conftest.er1 | |
22726 | ac_status=$? | |
22727 | grep -v '^ *+' conftest.er1 >conftest.err | |
22728 | rm -f conftest.er1 | |
22729 | cat conftest.err >&5 | |
22730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22731 | (exit $ac_status); } && | |
0093c2fc | 22732 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
f56c22b4 MW |
22733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22734 | (eval $ac_try) 2>&5 | |
22735 | ac_status=$? | |
22736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22737 | (exit $ac_status); }; } && | |
22738 | { ac_try='test -s conftest.$ac_objext' | |
22739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22740 | (eval $ac_try) 2>&5 | |
22741 | ac_status=$? | |
22742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22743 | (exit $ac_status); }; }; then | |
22744 | ac_cv_type_std__ostream=yes | |
22745 | else | |
22746 | echo "$as_me: failed program was:" >&5 | |
22747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22748 | ||
22749 | ac_cv_type_std__ostream=no | |
22750 | fi | |
22751 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22752 | fi | |
22753 | echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5 | |
22754 | echo "${ECHO_T}$ac_cv_type_std__ostream" >&6 | |
22755 | if test $ac_cv_type_std__ostream = yes; then | |
22756 | ||
22757 | cat >>confdefs.h <<_ACEOF | |
22758 | #define HAVE_STD__OSTREAM 1 | |
22759 | _ACEOF | |
22760 | ||
22761 | ||
22762 | else | |
22763 | wxUSE_STD_IOSTREAM=no | |
22764 | fi | |
22765 | ||
22766 | ||
22767 | if test "$wxUSE_STD_IOSTREAM" != "yes"; then | |
4b9918c5 MW |
22768 | if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then |
22769 | { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5 | |
22770 | echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;} | |
22771 | { (exit 1); exit 1; }; } | |
22772 | else | |
22773 | { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5 | |
f56c22b4 | 22774 | echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;} |
4b9918c5 | 22775 | fi |
f56c22b4 MW |
22776 | fi |
22777 | ||
22778 | ac_ext=c | |
22779 | ac_cpp='$CPP $CPPFLAGS' | |
22780 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22781 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
0a08f02a MB |
22782 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
22783 | ||
22784 | fi | |
22785 | ||
22786 | if test "$wxUSE_STL" = "yes"; then | |
22787 | ac_ext=cc | |
22788 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22789 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22790 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22791 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22792 | ||
22793 | ||
22794 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 | |
22795 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
a848cd7e SC |
22796 | cat >conftest.$ac_ext <<_ACEOF |
22797 | /* confdefs.h. */ | |
22798 | _ACEOF | |
22799 | cat confdefs.h >>conftest.$ac_ext | |
22800 | cat >>conftest.$ac_ext <<_ACEOF | |
22801 | /* end confdefs.h. */ | |
22802 | #include <string> | |
0a08f02a MB |
22803 | #include <functional> |
22804 | #include <algorithm> | |
22805 | #include <vector> | |
22806 | #include <list> | |
a848cd7e SC |
22807 | int |
22808 | main () | |
22809 | { | |
0a08f02a MB |
22810 | std::vector<int> moo; |
22811 | std::list<int> foo; | |
22812 | std::vector<int>::iterator it = | |
22813 | std::find_if(moo.begin(), moo.end(), | |
22814 | std::bind2nd(std::less<int>(), 3)); | |
a848cd7e SC |
22815 | ; |
22816 | return 0; | |
22817 | } | |
22818 | _ACEOF | |
22819 | rm -f conftest.$ac_objext | |
22820 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22821 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22822 | ac_status=$? |
ac1cb8d3 VS |
22823 | grep -v '^ *+' conftest.er1 >conftest.err |
22824 | rm -f conftest.er1 | |
22825 | cat conftest.err >&5 | |
a848cd7e SC |
22826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22827 | (exit $ac_status); } && | |
0093c2fc | 22828 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22830 | (eval $ac_try) 2>&5 | |
22831 | ac_status=$? | |
22832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22833 | (exit $ac_status); }; } && | |
22834 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22836 | (eval $ac_try) 2>&5 | |
22837 | ac_status=$? | |
22838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22839 | (exit $ac_status); }; }; then | |
22840 | echo "$as_me:$LINENO: result: yes" >&5 | |
22841 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
22842 | else |
22843 | echo "$as_me: failed program was:" >&5 | |
22844 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22845 | ||
22846 | echo "$as_me:$LINENO: result: no" >&5 | |
22847 | echo "${ECHO_T}no" >&6 | |
0a08f02a MB |
22848 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 |
22849 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
22850 | { (exit 1); exit 1; }; } | |
a848cd7e | 22851 | fi |
ac1cb8d3 | 22852 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22853 | |
22854 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
22855 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
22856 | cat >conftest.$ac_ext <<_ACEOF | |
22857 | /* confdefs.h. */ | |
22858 | _ACEOF | |
22859 | cat confdefs.h >>conftest.$ac_ext | |
22860 | cat >>conftest.$ac_ext <<_ACEOF | |
22861 | /* end confdefs.h. */ | |
22862 | #include <string> | |
22863 | int | |
22864 | main () | |
22865 | { | |
22866 | std::string foo, bar; | |
22867 | foo.compare(bar); | |
22868 | foo.compare(1, 1, bar); | |
22869 | foo.compare(1, 1, bar, 1, 1); | |
22870 | foo.compare(""); | |
22871 | foo.compare(1, 1, ""); | |
22872 | foo.compare(1, 1, "", 2); | |
22873 | ; | |
22874 | return 0; | |
22875 | } | |
22876 | _ACEOF | |
22877 | rm -f conftest.$ac_objext | |
22878 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22879 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22880 | ac_status=$? |
ac1cb8d3 VS |
22881 | grep -v '^ *+' conftest.er1 >conftest.err |
22882 | rm -f conftest.er1 | |
22883 | cat conftest.err >&5 | |
a848cd7e SC |
22884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22885 | (exit $ac_status); } && | |
0093c2fc | 22886 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22888 | (eval $ac_try) 2>&5 | |
22889 | ac_status=$? | |
22890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22891 | (exit $ac_status); }; } && | |
22892 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22894 | (eval $ac_try) 2>&5 | |
22895 | ac_status=$? | |
22896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22897 | (exit $ac_status); }; }; then | |
22898 | echo "$as_me:$LINENO: result: yes" >&5 | |
22899 | echo "${ECHO_T}yes" >&6 | |
22900 | cat >>confdefs.h <<\_ACEOF | |
22901 | #define HAVE_STD_STRING_COMPARE 1 | |
22902 | _ACEOF | |
22903 | ||
22904 | else | |
22905 | echo "$as_me: failed program was:" >&5 | |
22906 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22907 | ||
22908 | echo "$as_me:$LINENO: result: no" >&5 | |
22909 | echo "${ECHO_T}no" >&6 | |
22910 | fi | |
ac1cb8d3 | 22911 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
22912 | |
22913 | if test "${ac_cv_header_hash_map+set}" = set; then | |
22914 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
22915 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
22916 | if test "${ac_cv_header_hash_map+set}" = set; then | |
22917 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22918 | fi | |
22919 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
22920 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
22921 | else | |
22922 | # Is the header compilable? | |
22923 | echo "$as_me:$LINENO: checking hash_map usability" >&5 | |
22924 | echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6 | |
22925 | cat >conftest.$ac_ext <<_ACEOF | |
22926 | /* confdefs.h. */ | |
22927 | _ACEOF | |
22928 | cat confdefs.h >>conftest.$ac_ext | |
22929 | cat >>conftest.$ac_ext <<_ACEOF | |
22930 | /* end confdefs.h. */ | |
22931 | $ac_includes_default | |
22932 | #include <hash_map> | |
22933 | _ACEOF | |
22934 | rm -f conftest.$ac_objext | |
22935 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22936 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 22937 | ac_status=$? |
ac1cb8d3 VS |
22938 | grep -v '^ *+' conftest.er1 >conftest.err |
22939 | rm -f conftest.er1 | |
22940 | cat conftest.err >&5 | |
bdcade0a MB |
22941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22942 | (exit $ac_status); } && | |
0093c2fc | 22943 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22945 | (eval $ac_try) 2>&5 | |
22946 | ac_status=$? | |
22947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22948 | (exit $ac_status); }; } && | |
22949 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
22950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22951 | (eval $ac_try) 2>&5 | |
22952 | ac_status=$? | |
22953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22954 | (exit $ac_status); }; }; then | |
22955 | ac_header_compiler=yes | |
22956 | else | |
22957 | echo "$as_me: failed program was:" >&5 | |
22958 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22959 | ||
22960 | ac_header_compiler=no | |
22961 | fi | |
ac1cb8d3 | 22962 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
22963 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22964 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22965 | ||
22966 | # Is the header present? | |
22967 | echo "$as_me:$LINENO: checking hash_map presence" >&5 | |
22968 | echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6 | |
22969 | cat >conftest.$ac_ext <<_ACEOF | |
22970 | /* confdefs.h. */ | |
22971 | _ACEOF | |
22972 | cat confdefs.h >>conftest.$ac_ext | |
22973 | cat >>conftest.$ac_ext <<_ACEOF | |
22974 | /* end confdefs.h. */ | |
22975 | #include <hash_map> | |
22976 | _ACEOF | |
22977 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22978 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22979 | ac_status=$? | |
22980 | grep -v '^ *+' conftest.er1 >conftest.err | |
22981 | rm -f conftest.er1 | |
22982 | cat conftest.err >&5 | |
22983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22984 | (exit $ac_status); } >/dev/null; then | |
22985 | if test -s conftest.err; then | |
22986 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 22987 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
22988 | else |
22989 | ac_cpp_err= | |
22990 | fi | |
22991 | else | |
22992 | ac_cpp_err=yes | |
22993 | fi | |
22994 | if test -z "$ac_cpp_err"; then | |
22995 | ac_header_preproc=yes | |
22996 | else | |
22997 | echo "$as_me: failed program was:" >&5 | |
22998 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22999 | ||
23000 | ac_header_preproc=no | |
23001 | fi | |
23002 | rm -f conftest.err conftest.$ac_ext | |
23003 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23004 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23005 | ||
23006 | # So? What about this header? | |
ac1cb8d3 VS |
23007 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
23008 | yes:no: ) | |
bdcade0a MB |
23009 | { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
23010 | echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23011 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5 |
23012 | echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;} | |
23013 | ac_header_preproc=yes | |
bdcade0a | 23014 | ;; |
ac1cb8d3 | 23015 | no:yes:* ) |
bdcade0a MB |
23016 | { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5 |
23017 | echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23018 | { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5 |
23019 | echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;} | |
23020 | { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5 | |
23021 | echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;} | |
23022 | { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
23023 | echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
23024 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5 |
23025 | echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23026 | { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5 |
23027 | echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
23028 | ( |
23029 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23030 | ## ----------------------------------------- ## |
23031 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23032 | ## ----------------------------------------- ## | |
bdcade0a MB |
23033 | _ASBOX |
23034 | ) | | |
23035 | sed "s/^/$as_me: WARNING: /" >&2 | |
23036 | ;; | |
23037 | esac | |
23038 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
23039 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
23040 | if test "${ac_cv_header_hash_map+set}" = set; then | |
23041 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23042 | else | |
23043 | ac_cv_header_hash_map=$ac_header_preproc | |
23044 | fi | |
23045 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
23046 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
23047 | ||
23048 | fi | |
23049 | if test $ac_cv_header_hash_map = yes; then | |
23050 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
23051 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
23052 | cat >conftest.$ac_ext <<_ACEOF | |
23053 | /* confdefs.h. */ | |
23054 | _ACEOF | |
23055 | cat confdefs.h >>conftest.$ac_ext | |
23056 | cat >>conftest.$ac_ext <<_ACEOF | |
23057 | /* end confdefs.h. */ | |
23058 | #include <hash_map> | |
23059 | #include <hash_set> | |
23060 | int | |
23061 | main () | |
23062 | { | |
23063 | std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1; | |
23064 | std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2; | |
23065 | ; | |
23066 | return 0; | |
23067 | } | |
23068 | _ACEOF | |
23069 | rm -f conftest.$ac_objext | |
23070 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23071 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 23072 | ac_status=$? |
ac1cb8d3 VS |
23073 | grep -v '^ *+' conftest.er1 >conftest.err |
23074 | rm -f conftest.er1 | |
23075 | cat conftest.err >&5 | |
bdcade0a MB |
23076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23077 | (exit $ac_status); } && | |
0093c2fc | 23078 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23080 | (eval $ac_try) 2>&5 | |
23081 | ac_status=$? | |
23082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23083 | (exit $ac_status); }; } && | |
23084 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
23085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23086 | (eval $ac_try) 2>&5 | |
23087 | ac_status=$? | |
23088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23089 | (exit $ac_status); }; }; then | |
23090 | echo "$as_me:$LINENO: result: yes" >&5 | |
23091 | echo "${ECHO_T}yes" >&6 | |
23092 | cat >>confdefs.h <<\_ACEOF | |
23093 | #define HAVE_HASH_MAP 1 | |
23094 | _ACEOF | |
23095 | ||
23096 | cat >>confdefs.h <<\_ACEOF | |
23097 | #define HAVE_STD_HASH_MAP 1 | |
23098 | _ACEOF | |
23099 | ||
23100 | else | |
23101 | echo "$as_me: failed program was:" >&5 | |
23102 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23103 | ||
23104 | echo "$as_me:$LINENO: result: no" >&5 | |
23105 | echo "${ECHO_T}no" >&6 | |
23106 | fi | |
ac1cb8d3 | 23107 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23108 | |
23109 | fi | |
23110 | ||
23111 | ||
23112 | ||
23113 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
23114 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
23115 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
23116 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
23117 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23118 | fi | |
23119 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
23120 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
23121 | else | |
23122 | # Is the header compilable? | |
23123 | echo "$as_me:$LINENO: checking ext/hash_map usability" >&5 | |
23124 | echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6 | |
23125 | cat >conftest.$ac_ext <<_ACEOF | |
23126 | /* confdefs.h. */ | |
23127 | _ACEOF | |
23128 | cat confdefs.h >>conftest.$ac_ext | |
23129 | cat >>conftest.$ac_ext <<_ACEOF | |
23130 | /* end confdefs.h. */ | |
23131 | $ac_includes_default | |
23132 | #include <ext/hash_map> | |
23133 | _ACEOF | |
23134 | rm -f conftest.$ac_objext | |
23135 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23136 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 23137 | ac_status=$? |
ac1cb8d3 VS |
23138 | grep -v '^ *+' conftest.er1 >conftest.err |
23139 | rm -f conftest.er1 | |
23140 | cat conftest.err >&5 | |
bdcade0a MB |
23141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23142 | (exit $ac_status); } && | |
0093c2fc | 23143 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23145 | (eval $ac_try) 2>&5 | |
23146 | ac_status=$? | |
23147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23148 | (exit $ac_status); }; } && | |
23149 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
23150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23151 | (eval $ac_try) 2>&5 | |
23152 | ac_status=$? | |
23153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23154 | (exit $ac_status); }; }; then | |
23155 | ac_header_compiler=yes | |
23156 | else | |
23157 | echo "$as_me: failed program was:" >&5 | |
23158 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23159 | ||
23160 | ac_header_compiler=no | |
23161 | fi | |
ac1cb8d3 | 23162 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23163 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23164 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23165 | ||
23166 | # Is the header present? | |
23167 | echo "$as_me:$LINENO: checking ext/hash_map presence" >&5 | |
23168 | echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6 | |
23169 | cat >conftest.$ac_ext <<_ACEOF | |
23170 | /* confdefs.h. */ | |
23171 | _ACEOF | |
23172 | cat confdefs.h >>conftest.$ac_ext | |
23173 | cat >>conftest.$ac_ext <<_ACEOF | |
23174 | /* end confdefs.h. */ | |
23175 | #include <ext/hash_map> | |
23176 | _ACEOF | |
23177 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23178 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23179 | ac_status=$? | |
23180 | grep -v '^ *+' conftest.er1 >conftest.err | |
23181 | rm -f conftest.er1 | |
23182 | cat conftest.err >&5 | |
23183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23184 | (exit $ac_status); } >/dev/null; then | |
23185 | if test -s conftest.err; then | |
23186 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 23187 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
23188 | else |
23189 | ac_cpp_err= | |
23190 | fi | |
23191 | else | |
23192 | ac_cpp_err=yes | |
23193 | fi | |
23194 | if test -z "$ac_cpp_err"; then | |
23195 | ac_header_preproc=yes | |
23196 | else | |
23197 | echo "$as_me: failed program was:" >&5 | |
23198 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23199 | ||
23200 | ac_header_preproc=no | |
23201 | fi | |
23202 | rm -f conftest.err conftest.$ac_ext | |
23203 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23204 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23205 | ||
23206 | # So? What about this header? | |
ac1cb8d3 VS |
23207 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
23208 | yes:no: ) | |
bdcade0a MB |
23209 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
23210 | echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23211 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5 |
23212 | echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;} | |
23213 | ac_header_preproc=yes | |
bdcade0a | 23214 | ;; |
ac1cb8d3 | 23215 | no:yes:* ) |
bdcade0a MB |
23216 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5 |
23217 | echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23218 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5 |
23219 | echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;} | |
23220 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5 | |
23221 | echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;} | |
23222 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
23223 | echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
23224 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5 |
23225 | echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23226 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5 |
23227 | echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
23228 | ( |
23229 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23230 | ## ----------------------------------------- ## |
23231 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23232 | ## ----------------------------------------- ## | |
bdcade0a MB |
23233 | _ASBOX |
23234 | ) | | |
23235 | sed "s/^/$as_me: WARNING: /" >&2 | |
23236 | ;; | |
23237 | esac | |
23238 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
23239 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
23240 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
23241 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23242 | else | |
23243 | ac_cv_header_ext_hash_map=$ac_header_preproc | |
23244 | fi | |
23245 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
23246 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
23247 | ||
23248 | fi | |
23249 | if test $ac_cv_header_ext_hash_map = yes; then | |
23250 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
23251 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
23252 | cat >conftest.$ac_ext <<_ACEOF | |
23253 | /* confdefs.h. */ | |
23254 | _ACEOF | |
23255 | cat confdefs.h >>conftest.$ac_ext | |
23256 | cat >>conftest.$ac_ext <<_ACEOF | |
23257 | /* end confdefs.h. */ | |
23258 | #include <ext/hash_map> | |
23259 | #include <ext/hash_set> | |
23260 | int | |
23261 | main () | |
23262 | { | |
23263 | __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1; | |
23264 | __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2; | |
23265 | ; | |
23266 | return 0; | |
23267 | } | |
23268 | _ACEOF | |
23269 | rm -f conftest.$ac_objext | |
23270 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23271 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 23272 | ac_status=$? |
ac1cb8d3 VS |
23273 | grep -v '^ *+' conftest.er1 >conftest.err |
23274 | rm -f conftest.er1 | |
23275 | cat conftest.err >&5 | |
bdcade0a MB |
23276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23277 | (exit $ac_status); } && | |
0093c2fc | 23278 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23280 | (eval $ac_try) 2>&5 | |
23281 | ac_status=$? | |
23282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23283 | (exit $ac_status); }; } && | |
23284 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
23285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23286 | (eval $ac_try) 2>&5 | |
23287 | ac_status=$? | |
23288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23289 | (exit $ac_status); }; }; then | |
23290 | echo "$as_me:$LINENO: result: yes" >&5 | |
23291 | echo "${ECHO_T}yes" >&6 | |
23292 | cat >>confdefs.h <<\_ACEOF | |
23293 | #define HAVE_EXT_HASH_MAP 1 | |
23294 | _ACEOF | |
23295 | ||
23296 | cat >>confdefs.h <<\_ACEOF | |
23297 | #define HAVE_GNU_CXX_HASH_MAP 1 | |
23298 | _ACEOF | |
23299 | ||
23300 | else | |
23301 | echo "$as_me: failed program was:" >&5 | |
23302 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23303 | ||
23304 | echo "$as_me:$LINENO: result: no" >&5 | |
23305 | echo "${ECHO_T}no" >&6 | |
23306 | fi | |
ac1cb8d3 | 23307 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23308 | |
23309 | fi | |
23310 | ||
23311 | ||
a848cd7e SC |
23312 | |
23313 | ac_ext=c | |
23314 | ac_cpp='$CPP $CPPFLAGS' | |
23315 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23316 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23317 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
23318 | ||
23319 | fi | |
23320 | ||
23321 | ||
23322 | SEARCH_INCLUDE="\ | |
23323 | /usr/local/include \ | |
23324 | \ | |
23325 | /usr/Motif-2.1/include \ | |
23326 | /usr/Motif-1.2/include \ | |
23327 | /usr/include/Motif1.2 \ | |
a848cd7e SC |
23328 | \ |
23329 | /usr/dt/include \ | |
23330 | /usr/openwin/include \ | |
23331 | \ | |
23332 | /usr/include/Xm \ | |
23333 | \ | |
23334 | /usr/X11R6/include \ | |
23335 | /usr/X11R6.4/include \ | |
23336 | /usr/X11R5/include \ | |
23337 | /usr/X11R4/include \ | |
23338 | \ | |
23339 | /usr/include/X11R6 \ | |
23340 | /usr/include/X11R5 \ | |
23341 | /usr/include/X11R4 \ | |
23342 | \ | |
23343 | /usr/local/X11R6/include \ | |
23344 | /usr/local/X11R5/include \ | |
23345 | /usr/local/X11R4/include \ | |
23346 | \ | |
23347 | /usr/local/include/X11R6 \ | |
23348 | /usr/local/include/X11R5 \ | |
23349 | /usr/local/include/X11R4 \ | |
23350 | \ | |
23351 | /usr/X11/include \ | |
23352 | /usr/include/X11 \ | |
23353 | /usr/local/X11/include \ | |
23354 | /usr/local/include/X11 \ | |
23355 | \ | |
a848cd7e | 23356 | /usr/XFree86/include/X11 \ |
e051b34e MW |
23357 | /usr/pkg/include \ |
23358 | \ | |
a848cd7e SC |
23359 | /usr/openwin/share/include" |
23360 | ||
6f9cf1e6 | 23361 | echo "$as_me:$LINENO: checking for libraries directory" >&5 |
0ad5d837 | 23362 | echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6 |
6f9cf1e6 MW |
23363 | |
23364 | case "${host}" in | |
23365 | *-*-irix6* ) | |
23366 | if test "${wx_cv_std_libpath+set}" = set; then | |
0ad5d837 VZ |
23367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23368 | else | |
23369 | ||
c687b303 VZ |
23370 | for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do |
23371 | for e in a so sl dylib dll.a; do | |
23372 | libc="$d/libc.$e" | |
23373 | if test -f $libc; then | |
23374 | save_LIBS="$LIBS" | |
23375 | LIBS="$libc" | |
23376 | cat >conftest.$ac_ext <<_ACEOF | |
0ad5d837 VZ |
23377 | int main() { return 0; } |
23378 | _ACEOF | |
23379 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23380 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23381 | (eval $ac_link) 2>conftest.er1 | |
23382 | ac_status=$? | |
23383 | grep -v '^ *+' conftest.er1 >conftest.err | |
23384 | rm -f conftest.er1 | |
23385 | cat conftest.err >&5 | |
23386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23387 | (exit $ac_status); } && | |
0093c2fc | 23388 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
0ad5d837 VZ |
23389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23390 | (eval $ac_try) 2>&5 | |
23391 | ac_status=$? | |
23392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23393 | (exit $ac_status); }; } && | |
23394 | { ac_try='test -s conftest$ac_exeext' | |
23395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23396 | (eval $ac_try) 2>&5 | |
23397 | ac_status=$? | |
23398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23399 | (exit $ac_status); }; }; then | |
23400 | wx_cv_std_libpath=`echo $d | sed s@/usr/@@` | |
23401 | else | |
23402 | echo "$as_me: failed program was:" >&5 | |
23403 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23404 | ||
23405 | fi | |
23406 | rm -f conftest.err conftest.$ac_objext \ | |
23407 | conftest$ac_exeext conftest.$ac_ext | |
c687b303 VZ |
23408 | LIBS="$save_LIBS" |
23409 | if test "x$wx_cv_std_libpath" != "x"; then | |
23410 | break 2 | |
23411 | fi | |
23412 | fi | |
23413 | done | |
23414 | done | |
23415 | if test "x$wx_cv_std_libpath" = "x"; then | |
23416 | wx_cv_std_libpath="lib" | |
0ad5d837 | 23417 | fi |
0ad5d837 VZ |
23418 | |
23419 | ||
23420 | fi | |
6f9cf1e6 MW |
23421 | |
23422 | ;; | |
23423 | ||
23424 | *-*-solaris2* ) | |
23425 | if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then | |
23426 | wx_cv_std_libpath="lib/64" | |
23427 | else | |
23428 | wx_cv_std_libpath="lib" | |
23429 | fi | |
23430 | ;; | |
23431 | ||
23432 | *-*-linux* ) | |
23433 | if test "$ac_cv_sizeof_void_p" = 8 -a \ | |
23434 | -d "/usr/lib64" -a ! -h "/usr/lib64"; then | |
23435 | wx_cv_std_libpath="lib64" | |
23436 | else | |
23437 | wx_cv_std_libpath="lib" | |
23438 | fi | |
c687b303 VZ |
23439 | ;; |
23440 | ||
23441 | *) | |
23442 | wx_cv_std_libpath="lib"; | |
23443 | ;; | |
23444 | esac | |
0ad5d837 | 23445 | |
6f9cf1e6 MW |
23446 | echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5 |
23447 | echo "${ECHO_T}$wx_cv_std_libpath" >&6 | |
23448 | ||
23449 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath" | |
a848cd7e | 23450 | |
3eca31dc MW |
23451 | if test "$build" != "$host" -a "$GCC" = yes; then |
23452 | if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then | |
23453 | cross_root=`dirname $cross_root` | |
23454 | cross_root=`dirname $cross_root` | |
23455 | ||
23456 | SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"` | |
23457 | SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"` | |
23458 | ||
23459 | if test -z "$PKG_CONFIG_PATH"; then | |
23460 | PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig" | |
23461 | export PKG_CONFIG_PATH | |
23462 | fi | |
23463 | ||
23464 | if test -z "$x_includes" -o "$x_includes" = NONE; then | |
23465 | ||
23466 | ac_find_includes= | |
23467 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
23468 | do | |
23469 | if test -f "$ac_dir/X11/Intrinsic.h"; then | |
23470 | ac_find_includes=$ac_dir | |
23471 | break | |
23472 | fi | |
23473 | done | |
23474 | ||
23475 | x_includes=$ac_find_includes | |
23476 | fi | |
23477 | if test -z "$x_libraries" -o "$x_libraries" = NONE; then | |
23478 | ||
0ad5d837 VZ |
23479 | ac_find_libraries= |
23480 | for ac_dir in $SEARCH_LIB; | |
3eca31dc MW |
23481 | do |
23482 | for ac_extension in a so sl dylib dll.a; do | |
23483 | if test -f "$ac_dir/libXt.$ac_extension"; then | |
23484 | ac_find_libraries=$ac_dir | |
23485 | break 2 | |
23486 | fi | |
23487 | done | |
23488 | done | |
23489 | ||
23490 | x_libraries=$ac_find_libraries | |
23491 | fi | |
23492 | fi | |
23493 | fi | |
23494 | ||
a848cd7e SC |
23495 | |
23496 | cat >confcache <<\_ACEOF | |
23497 | # This file is a shell script that caches the results of configure | |
23498 | # tests run on this system so they can be shared between configure | |
23499 | # scripts and configure runs, see configure's option --config-cache. | |
23500 | # It is not useful on other systems. If it contains results you don't | |
23501 | # want to keep, you may remove or edit it. | |
23502 | # | |
23503 | # config.status only pays attention to the cache file if you give it | |
23504 | # the --recheck option to rerun configure. | |
23505 | # | |
23506 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
23507 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
23508 | # following values. | |
23509 | ||
23510 | _ACEOF | |
23511 | ||
23512 | # The following way of writing the cache mishandles newlines in values, | |
23513 | # but we know of no workaround that is simple, portable, and efficient. | |
23514 | # So, don't put newlines in cache variables' values. | |
23515 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
23516 | # and sets the high bit in the cache file unless we assign to the vars. | |
23517 | { | |
23518 | (set) 2>&1 | | |
23519 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
23520 | *ac_space=\ *) | |
23521 | # `set' does not quote correctly, so add quotes (double-quote | |
23522 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
23523 | sed -n \ | |
ac1cb8d3 VS |
23524 | "s/'/'\\\\''/g; |
23525 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
23526 | ;; |
23527 | *) | |
23528 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
23529 | sed -n \ | |
ac1cb8d3 | 23530 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
23531 | ;; |
23532 | esac; | |
23533 | } | | |
23534 | sed ' | |
23535 | t clear | |
23536 | : clear | |
23537 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
23538 | t end | |
23539 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
23540 | : end' >>confcache | |
23541 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
23542 | if test -w $cache_file; then | |
23543 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
23544 | cat confcache >$cache_file | |
23545 | else | |
23546 | echo "not updating unwritable cache $cache_file" | |
23547 | fi | |
23548 | fi | |
23549 | rm -f confcache | |
23550 | ||
23551 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then | |
23552 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 | |
23553 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
23554 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
23555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23556 | else | |
23557 | ||
23558 | cat >conftest.$ac_ext <<_ACEOF | |
23559 | /* confdefs.h. */ | |
23560 | _ACEOF | |
23561 | cat confdefs.h >>conftest.$ac_ext | |
23562 | cat >>conftest.$ac_ext <<_ACEOF | |
23563 | /* end confdefs.h. */ | |
23564 | #include <features.h> | |
23565 | int | |
23566 | main () | |
23567 | { | |
23568 | ||
23569 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) | |
04e525a0 | 23570 | not glibc 2.1 |
a848cd7e SC |
23571 | #endif |
23572 | ||
23573 | ; | |
23574 | return 0; | |
23575 | } | |
23576 | _ACEOF | |
23577 | rm -f conftest.$ac_objext | |
23578 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23579 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23580 | ac_status=$? |
ac1cb8d3 VS |
23581 | grep -v '^ *+' conftest.er1 >conftest.err |
23582 | rm -f conftest.er1 | |
23583 | cat conftest.err >&5 | |
a848cd7e SC |
23584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23585 | (exit $ac_status); } && | |
0093c2fc | 23586 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23588 | (eval $ac_try) 2>&5 | |
23589 | ac_status=$? | |
23590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23591 | (exit $ac_status); }; } && | |
23592 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23594 | (eval $ac_try) 2>&5 | |
23595 | ac_status=$? | |
23596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23597 | (exit $ac_status); }; }; then | |
23598 | ||
23599 | wx_cv_lib_glibc21=yes | |
23600 | ||
23601 | else | |
23602 | echo "$as_me: failed program was:" >&5 | |
23603 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23604 | ||
23605 | ||
23606 | wx_cv_lib_glibc21=no | |
23607 | ||
23608 | ||
23609 | fi | |
ac1cb8d3 | 23610 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23611 | |
23612 | fi | |
23613 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
23614 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
23615 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
23616 | cat >>confdefs.h <<\_ACEOF | |
23617 | #define wxHAVE_GLIBC2 1 | |
23618 | _ACEOF | |
23619 | ||
23620 | fi | |
23621 | fi | |
23622 | ||
23623 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
23624 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
23625 | cat >>confdefs.h <<\_ACEOF | |
23626 | #define _GNU_SOURCE 1 | |
23627 | _ACEOF | |
23628 | ||
23629 | fi | |
23630 | fi | |
23631 | ||
23632 | ||
23633 | ||
23634 | if test "$wxUSE_REGEX" != "no"; then | |
23635 | cat >>confdefs.h <<\_ACEOF | |
23636 | #define wxUSE_REGEX 1 | |
23637 | _ACEOF | |
23638 | ||
23639 | ||
23640 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then | |
23641 | { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5 | |
23642 | echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;} | |
23643 | wxUSE_REGEX=builtin | |
23644 | fi | |
23645 | ||
23646 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
23647 | if test "${ac_cv_header_regex_h+set}" = set; then | |
23648 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
23649 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
23650 | if test "${ac_cv_header_regex_h+set}" = set; then | |
23651 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23652 | fi | |
23653 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
23654 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
23655 | else | |
23656 | # Is the header compilable? | |
23657 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
23658 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
23659 | cat >conftest.$ac_ext <<_ACEOF | |
23660 | /* confdefs.h. */ | |
23661 | _ACEOF | |
23662 | cat confdefs.h >>conftest.$ac_ext | |
23663 | cat >>conftest.$ac_ext <<_ACEOF | |
23664 | /* end confdefs.h. */ | |
23665 | $ac_includes_default | |
23666 | #include <regex.h> | |
23667 | _ACEOF | |
23668 | rm -f conftest.$ac_objext | |
23669 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23670 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23671 | ac_status=$? |
ac1cb8d3 VS |
23672 | grep -v '^ *+' conftest.er1 >conftest.err |
23673 | rm -f conftest.er1 | |
23674 | cat conftest.err >&5 | |
a848cd7e SC |
23675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23676 | (exit $ac_status); } && | |
0093c2fc | 23677 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23679 | (eval $ac_try) 2>&5 | |
23680 | ac_status=$? | |
23681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23682 | (exit $ac_status); }; } && | |
23683 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23685 | (eval $ac_try) 2>&5 | |
23686 | ac_status=$? | |
23687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23688 | (exit $ac_status); }; }; then | |
23689 | ac_header_compiler=yes | |
23690 | else | |
23691 | echo "$as_me: failed program was:" >&5 | |
23692 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23693 | ||
23694 | ac_header_compiler=no | |
23695 | fi | |
ac1cb8d3 | 23696 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23697 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23698 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23699 | ||
23700 | # Is the header present? | |
23701 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
23702 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
23703 | cat >conftest.$ac_ext <<_ACEOF | |
23704 | /* confdefs.h. */ | |
23705 | _ACEOF | |
23706 | cat confdefs.h >>conftest.$ac_ext | |
23707 | cat >>conftest.$ac_ext <<_ACEOF | |
23708 | /* end confdefs.h. */ | |
23709 | #include <regex.h> | |
23710 | _ACEOF | |
23711 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23712 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23713 | ac_status=$? | |
23714 | grep -v '^ *+' conftest.er1 >conftest.err | |
23715 | rm -f conftest.er1 | |
23716 | cat conftest.err >&5 | |
23717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23718 | (exit $ac_status); } >/dev/null; then | |
23719 | if test -s conftest.err; then | |
23720 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 23721 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
23722 | else |
23723 | ac_cpp_err= | |
23724 | fi | |
23725 | else | |
23726 | ac_cpp_err=yes | |
23727 | fi | |
23728 | if test -z "$ac_cpp_err"; then | |
23729 | ac_header_preproc=yes | |
23730 | else | |
23731 | echo "$as_me: failed program was:" >&5 | |
23732 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23733 | ||
23734 | ac_header_preproc=no | |
23735 | fi | |
23736 | rm -f conftest.err conftest.$ac_ext | |
23737 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23738 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23739 | ||
23740 | # So? What about this header? | |
ac1cb8d3 VS |
23741 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23742 | yes:no: ) | |
a848cd7e SC |
23743 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
23744 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23745 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5 |
23746 | echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;} | |
23747 | ac_header_preproc=yes | |
a848cd7e | 23748 | ;; |
ac1cb8d3 | 23749 | no:yes:* ) |
a848cd7e SC |
23750 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 |
23751 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23752 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 |
23753 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
23754 | { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5 | |
23755 | echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;} | |
23756 | { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23757 | echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
23758 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 |
23759 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23760 | { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5 |
23761 | echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
23762 | ( |
23763 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23764 | ## ----------------------------------------- ## |
23765 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23766 | ## ----------------------------------------- ## | |
a848cd7e SC |
23767 | _ASBOX |
23768 | ) | | |
23769 | sed "s/^/$as_me: WARNING: /" >&2 | |
23770 | ;; | |
23771 | esac | |
23772 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
23773 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
23774 | if test "${ac_cv_header_regex_h+set}" = set; then | |
23775 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23776 | else | |
23777 | ac_cv_header_regex_h=$ac_header_preproc | |
23778 | fi | |
23779 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
23780 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
23781 | ||
23782 | fi | |
23783 | if test $ac_cv_header_regex_h = yes; then | |
23784 | ||
23785 | for ac_func in regcomp | |
23786 | do | |
23787 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
23788 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23789 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
23790 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
23791 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23792 | else | |
23793 | cat >conftest.$ac_ext <<_ACEOF | |
23794 | /* confdefs.h. */ | |
23795 | _ACEOF | |
23796 | cat confdefs.h >>conftest.$ac_ext | |
23797 | cat >>conftest.$ac_ext <<_ACEOF | |
23798 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
23799 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
23800 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23801 | #define $ac_func innocuous_$ac_func | |
23802 | ||
a848cd7e SC |
23803 | /* System header to define __stub macros and hopefully few prototypes, |
23804 | which can conflict with char $ac_func (); below. | |
23805 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23806 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 23807 | |
a848cd7e SC |
23808 | #ifdef __STDC__ |
23809 | # include <limits.h> | |
23810 | #else | |
23811 | # include <assert.h> | |
23812 | #endif | |
ac1cb8d3 VS |
23813 | |
23814 | #undef $ac_func | |
23815 | ||
a848cd7e SC |
23816 | /* Override any gcc2 internal prototype to avoid an error. */ |
23817 | #ifdef __cplusplus | |
23818 | extern "C" | |
23819 | { | |
23820 | #endif | |
23821 | /* We use char because int might match the return type of a gcc2 | |
23822 | builtin and then its argument prototype would still apply. */ | |
23823 | char $ac_func (); | |
23824 | /* The GNU C library defines this for functions which it implements | |
23825 | to always fail with ENOSYS. Some functions are actually named | |
23826 | something starting with __ and the normal name is an alias. */ | |
23827 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
23828 | choke me | |
23829 | #else | |
23830 | char (*f) () = $ac_func; | |
23831 | #endif | |
23832 | #ifdef __cplusplus | |
23833 | } | |
23834 | #endif | |
23835 | ||
23836 | int | |
23837 | main () | |
23838 | { | |
23839 | return f != $ac_func; | |
23840 | ; | |
23841 | return 0; | |
23842 | } | |
23843 | _ACEOF | |
23844 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23845 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 23846 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 23847 | ac_status=$? |
ac1cb8d3 VS |
23848 | grep -v '^ *+' conftest.er1 >conftest.err |
23849 | rm -f conftest.er1 | |
23850 | cat conftest.err >&5 | |
a848cd7e SC |
23851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23852 | (exit $ac_status); } && | |
0093c2fc | 23853 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23855 | (eval $ac_try) 2>&5 | |
23856 | ac_status=$? | |
23857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23858 | (exit $ac_status); }; } && | |
23859 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
23860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23861 | (eval $ac_try) 2>&5 | |
23862 | ac_status=$? | |
23863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23864 | (exit $ac_status); }; }; then | |
23865 | eval "$as_ac_var=yes" | |
23866 | else | |
23867 | echo "$as_me: failed program was:" >&5 | |
23868 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23869 | ||
23870 | eval "$as_ac_var=no" | |
23871 | fi | |
ac1cb8d3 VS |
23872 | rm -f conftest.err conftest.$ac_objext \ |
23873 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
23874 | fi |
23875 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
23876 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
23877 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
23878 | cat >>confdefs.h <<_ACEOF | |
23879 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
23880 | _ACEOF | |
23881 | ||
23882 | fi | |
23883 | done | |
23884 | ||
23885 | fi | |
23886 | ||
23887 | ||
23888 | ||
23889 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
23890 | if test "$wxUSE_REGEX" = "sys" ; then | |
23891 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 | |
23892 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
23893 | { (exit 1); exit 1; }; } | |
23894 | else | |
23895 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 | |
23896 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
23897 | wxUSE_REGEX=builtin | |
23898 | fi | |
23899 | else | |
23900 | wxUSE_REGEX=sys | |
23901 | cat >>confdefs.h <<\_ACEOF | |
23902 | #define WX_NO_REGEX_ADVANCED 1 | |
23903 | _ACEOF | |
23904 | ||
23905 | fi | |
23906 | fi | |
23907 | fi | |
23908 | ||
23909 | ||
23910 | ZLIB_LINK= | |
23911 | if test "$wxUSE_ZLIB" != "no" ; then | |
23912 | cat >>confdefs.h <<\_ACEOF | |
23913 | #define wxUSE_ZLIB 1 | |
23914 | _ACEOF | |
23915 | ||
23916 | ||
23917 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
23918 | if test "$USE_DARWIN" = 1; then | |
23919 | system_zlib_h_ok="yes" | |
23920 | else | |
23921 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 | |
23922 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
23923 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
23924 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23925 | else | |
23926 | if test "$cross_compiling" = yes; then | |
23927 | unset ac_cv_header_zlib_h | |
23928 | ||
23929 | else | |
23930 | cat >conftest.$ac_ext <<_ACEOF | |
23931 | /* confdefs.h. */ | |
23932 | _ACEOF | |
23933 | cat confdefs.h >>conftest.$ac_ext | |
23934 | cat >>conftest.$ac_ext <<_ACEOF | |
23935 | /* end confdefs.h. */ | |
23936 | ||
23937 | #include <zlib.h> | |
23938 | #include <stdio.h> | |
23939 | ||
23940 | int main() | |
23941 | { | |
23942 | FILE *f=fopen("conftestval", "w"); | |
23943 | if (!f) exit(1); | |
23944 | fprintf(f, "%s", | |
23945 | ZLIB_VERSION[0] == '1' && | |
23946 | (ZLIB_VERSION[2] > '1' || | |
23947 | (ZLIB_VERSION[2] == '1' && | |
23948 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
23949 | exit(0); | |
23950 | } | |
23951 | ||
23952 | _ACEOF | |
23953 | rm -f conftest$ac_exeext | |
23954 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23955 | (eval $ac_link) 2>&5 | |
23956 | ac_status=$? | |
23957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23958 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
23959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23960 | (eval $ac_try) 2>&5 | |
23961 | ac_status=$? | |
23962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23963 | (exit $ac_status); }; }; then | |
23964 | ac_cv_header_zlib_h=`cat conftestval` | |
23965 | else | |
23966 | echo "$as_me: program exited with status $ac_status" >&5 | |
23967 | echo "$as_me: failed program was:" >&5 | |
23968 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23969 | ||
23970 | ( exit $ac_status ) | |
23971 | ac_cv_header_zlib_h=no | |
23972 | fi | |
ac1cb8d3 | 23973 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23974 | fi |
23975 | ||
23976 | fi | |
23977 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
23978 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
23979 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
23980 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
23981 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
23982 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
23983 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23984 | fi | |
23985 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
23986 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
23987 | else | |
23988 | # Is the header compilable? | |
23989 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
23990 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
23991 | cat >conftest.$ac_ext <<_ACEOF | |
23992 | /* confdefs.h. */ | |
23993 | _ACEOF | |
23994 | cat confdefs.h >>conftest.$ac_ext | |
23995 | cat >>conftest.$ac_ext <<_ACEOF | |
23996 | /* end confdefs.h. */ | |
23997 | $ac_includes_default | |
23998 | #include <zlib.h> | |
23999 | _ACEOF | |
24000 | rm -f conftest.$ac_objext | |
24001 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24002 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24003 | ac_status=$? |
ac1cb8d3 VS |
24004 | grep -v '^ *+' conftest.er1 >conftest.err |
24005 | rm -f conftest.er1 | |
24006 | cat conftest.err >&5 | |
a848cd7e SC |
24007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24008 | (exit $ac_status); } && | |
0093c2fc | 24009 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24011 | (eval $ac_try) 2>&5 | |
24012 | ac_status=$? | |
24013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24014 | (exit $ac_status); }; } && | |
24015 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24017 | (eval $ac_try) 2>&5 | |
24018 | ac_status=$? | |
24019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24020 | (exit $ac_status); }; }; then | |
24021 | ac_header_compiler=yes | |
24022 | else | |
24023 | echo "$as_me: failed program was:" >&5 | |
24024 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24025 | ||
24026 | ac_header_compiler=no | |
24027 | fi | |
ac1cb8d3 | 24028 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24029 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24030 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24031 | ||
24032 | # Is the header present? | |
24033 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
24034 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
24035 | cat >conftest.$ac_ext <<_ACEOF | |
24036 | /* confdefs.h. */ | |
24037 | _ACEOF | |
24038 | cat confdefs.h >>conftest.$ac_ext | |
24039 | cat >>conftest.$ac_ext <<_ACEOF | |
24040 | /* end confdefs.h. */ | |
24041 | #include <zlib.h> | |
24042 | _ACEOF | |
24043 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24044 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24045 | ac_status=$? | |
24046 | grep -v '^ *+' conftest.er1 >conftest.err | |
24047 | rm -f conftest.er1 | |
24048 | cat conftest.err >&5 | |
24049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24050 | (exit $ac_status); } >/dev/null; then | |
24051 | if test -s conftest.err; then | |
24052 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24053 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24054 | else |
24055 | ac_cpp_err= | |
24056 | fi | |
24057 | else | |
24058 | ac_cpp_err=yes | |
24059 | fi | |
24060 | if test -z "$ac_cpp_err"; then | |
24061 | ac_header_preproc=yes | |
24062 | else | |
24063 | echo "$as_me: failed program was:" >&5 | |
24064 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24065 | ||
24066 | ac_header_preproc=no | |
24067 | fi | |
24068 | rm -f conftest.err conftest.$ac_ext | |
24069 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24070 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24071 | ||
24072 | # So? What about this header? | |
ac1cb8d3 VS |
24073 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
24074 | yes:no: ) | |
a848cd7e SC |
24075 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
24076 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24077 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
24078 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
24079 | ac_header_preproc=yes | |
a848cd7e | 24080 | ;; |
ac1cb8d3 | 24081 | no:yes:* ) |
a848cd7e SC |
24082 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
24083 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24084 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
24085 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
24086 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
24087 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
24088 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24089 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
24090 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
24091 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24092 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
24093 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
24094 | ( |
24095 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24096 | ## ----------------------------------------- ## |
24097 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24098 | ## ----------------------------------------- ## | |
a848cd7e SC |
24099 | _ASBOX |
24100 | ) | | |
24101 | sed "s/^/$as_me: WARNING: /" >&2 | |
24102 | ;; | |
24103 | esac | |
24104 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
24105 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
24106 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
24107 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24108 | else | |
24109 | ac_cv_header_zlib_h=$ac_header_preproc | |
24110 | fi | |
24111 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
24112 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
24113 | ||
24114 | fi | |
24115 | ||
24116 | ||
24117 | ||
24118 | system_zlib_h_ok=$ac_cv_header_zlib_h | |
24119 | fi | |
24120 | ||
24121 | if test "$system_zlib_h_ok" = "yes"; then | |
24122 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | |
24123 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
24124 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
24125 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24126 | else | |
24127 | ac_check_lib_save_LIBS=$LIBS | |
24128 | LIBS="-lz $LIBS" | |
24129 | cat >conftest.$ac_ext <<_ACEOF | |
24130 | /* confdefs.h. */ | |
24131 | _ACEOF | |
24132 | cat confdefs.h >>conftest.$ac_ext | |
24133 | cat >>conftest.$ac_ext <<_ACEOF | |
24134 | /* end confdefs.h. */ | |
24135 | ||
24136 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24137 | #ifdef __cplusplus | |
24138 | extern "C" | |
24139 | #endif | |
24140 | /* We use char because int might match the return type of a gcc2 | |
24141 | builtin and then its argument prototype would still apply. */ | |
24142 | char deflate (); | |
24143 | int | |
24144 | main () | |
24145 | { | |
24146 | deflate (); | |
24147 | ; | |
24148 | return 0; | |
24149 | } | |
24150 | _ACEOF | |
24151 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24152 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24153 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24154 | ac_status=$? |
ac1cb8d3 VS |
24155 | grep -v '^ *+' conftest.er1 >conftest.err |
24156 | rm -f conftest.er1 | |
24157 | cat conftest.err >&5 | |
a848cd7e SC |
24158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24159 | (exit $ac_status); } && | |
0093c2fc | 24160 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24162 | (eval $ac_try) 2>&5 | |
24163 | ac_status=$? | |
24164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24165 | (exit $ac_status); }; } && | |
24166 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24168 | (eval $ac_try) 2>&5 | |
24169 | ac_status=$? | |
24170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24171 | (exit $ac_status); }; }; then | |
24172 | ac_cv_lib_z_deflate=yes | |
24173 | else | |
24174 | echo "$as_me: failed program was:" >&5 | |
24175 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24176 | ||
24177 | ac_cv_lib_z_deflate=no | |
24178 | fi | |
ac1cb8d3 VS |
24179 | rm -f conftest.err conftest.$ac_objext \ |
24180 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24181 | LIBS=$ac_check_lib_save_LIBS |
24182 | fi | |
24183 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
24184 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
24185 | if test $ac_cv_lib_z_deflate = yes; then | |
24186 | ZLIB_LINK=" -lz" | |
24187 | fi | |
24188 | ||
24189 | fi | |
24190 | ||
24191 | if test "x$ZLIB_LINK" = "x" ; then | |
24192 | if test "$wxUSE_ZLIB" = "sys" ; then | |
24193 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 | |
24194 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
24195 | { (exit 1); exit 1; }; } | |
24196 | else | |
24197 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 | |
24198 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
24199 | wxUSE_ZLIB=builtin | |
24200 | fi | |
24201 | else | |
24202 | wxUSE_ZLIB=sys | |
24203 | fi | |
24204 | fi | |
24205 | fi | |
24206 | ||
24207 | ||
24208 | PNG_LINK= | |
24209 | if test "$wxUSE_LIBPNG" != "no" ; then | |
24210 | cat >>confdefs.h <<\_ACEOF | |
24211 | #define wxUSE_LIBPNG 1 | |
24212 | _ACEOF | |
24213 | ||
24214 | ||
24215 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
24216 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 | |
24217 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
24218 | wxUSE_LIBPNG=sys | |
24219 | fi | |
24220 | ||
24221 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
24222 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 | |
24223 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
24224 | wxUSE_LIBPNG=builtin | |
24225 | fi | |
24226 | ||
24227 | if test "$wxUSE_MGL" != 1 ; then | |
24228 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
24229 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 | |
24230 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
24231 | if test "${ac_cv_header_png_h+set}" = set; then | |
24232 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24233 | else | |
24234 | if test "$cross_compiling" = yes; then | |
24235 | unset ac_cv_header_png_h | |
24236 | ||
24237 | else | |
24238 | cat >conftest.$ac_ext <<_ACEOF | |
24239 | /* confdefs.h. */ | |
24240 | _ACEOF | |
24241 | cat confdefs.h >>conftest.$ac_ext | |
24242 | cat >>conftest.$ac_ext <<_ACEOF | |
24243 | /* end confdefs.h. */ | |
24244 | ||
24245 | #include <png.h> | |
24246 | #include <stdio.h> | |
24247 | ||
24248 | int main() | |
24249 | { | |
24250 | FILE *f=fopen("conftestval", "w"); | |
24251 | if (!f) exit(1); | |
24252 | fprintf(f, "%s", | |
24253 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
24254 | exit(0); | |
24255 | } | |
24256 | ||
24257 | _ACEOF | |
24258 | rm -f conftest$ac_exeext | |
24259 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24260 | (eval $ac_link) 2>&5 | |
24261 | ac_status=$? | |
24262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24263 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
24264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24265 | (eval $ac_try) 2>&5 | |
24266 | ac_status=$? | |
24267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24268 | (exit $ac_status); }; }; then | |
24269 | ac_cv_header_png_h=`cat conftestval` | |
24270 | else | |
24271 | echo "$as_me: program exited with status $ac_status" >&5 | |
24272 | echo "$as_me: failed program was:" >&5 | |
24273 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24274 | ||
24275 | ( exit $ac_status ) | |
24276 | ac_cv_header_png_h=no | |
24277 | fi | |
ac1cb8d3 | 24278 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24279 | fi |
24280 | ||
24281 | fi | |
24282 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
24283 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
24284 | if test "${ac_cv_header_png_h+set}" = set; then | |
24285 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
24286 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
24287 | if test "${ac_cv_header_png_h+set}" = set; then | |
24288 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24289 | fi | |
24290 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
24291 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
24292 | else | |
24293 | # Is the header compilable? | |
24294 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
24295 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
24296 | cat >conftest.$ac_ext <<_ACEOF | |
24297 | /* confdefs.h. */ | |
24298 | _ACEOF | |
24299 | cat confdefs.h >>conftest.$ac_ext | |
24300 | cat >>conftest.$ac_ext <<_ACEOF | |
24301 | /* end confdefs.h. */ | |
24302 | $ac_includes_default | |
24303 | #include <png.h> | |
24304 | _ACEOF | |
24305 | rm -f conftest.$ac_objext | |
24306 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24307 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24308 | ac_status=$? |
ac1cb8d3 VS |
24309 | grep -v '^ *+' conftest.er1 >conftest.err |
24310 | rm -f conftest.er1 | |
24311 | cat conftest.err >&5 | |
a848cd7e SC |
24312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24313 | (exit $ac_status); } && | |
0093c2fc | 24314 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24316 | (eval $ac_try) 2>&5 | |
24317 | ac_status=$? | |
24318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24319 | (exit $ac_status); }; } && | |
24320 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24322 | (eval $ac_try) 2>&5 | |
24323 | ac_status=$? | |
24324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24325 | (exit $ac_status); }; }; then | |
24326 | ac_header_compiler=yes | |
24327 | else | |
24328 | echo "$as_me: failed program was:" >&5 | |
24329 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24330 | ||
24331 | ac_header_compiler=no | |
24332 | fi | |
ac1cb8d3 | 24333 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24334 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24335 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24336 | ||
24337 | # Is the header present? | |
24338 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
24339 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
24340 | cat >conftest.$ac_ext <<_ACEOF | |
24341 | /* confdefs.h. */ | |
24342 | _ACEOF | |
24343 | cat confdefs.h >>conftest.$ac_ext | |
24344 | cat >>conftest.$ac_ext <<_ACEOF | |
24345 | /* end confdefs.h. */ | |
24346 | #include <png.h> | |
24347 | _ACEOF | |
24348 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24349 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24350 | ac_status=$? | |
24351 | grep -v '^ *+' conftest.er1 >conftest.err | |
24352 | rm -f conftest.er1 | |
24353 | cat conftest.err >&5 | |
24354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24355 | (exit $ac_status); } >/dev/null; then | |
24356 | if test -s conftest.err; then | |
24357 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24358 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24359 | else |
24360 | ac_cpp_err= | |
24361 | fi | |
24362 | else | |
24363 | ac_cpp_err=yes | |
24364 | fi | |
24365 | if test -z "$ac_cpp_err"; then | |
24366 | ac_header_preproc=yes | |
24367 | else | |
24368 | echo "$as_me: failed program was:" >&5 | |
24369 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24370 | ||
24371 | ac_header_preproc=no | |
24372 | fi | |
24373 | rm -f conftest.err conftest.$ac_ext | |
24374 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24375 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24376 | ||
24377 | # So? What about this header? | |
ac1cb8d3 VS |
24378 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
24379 | yes:no: ) | |
a848cd7e SC |
24380 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
24381 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24382 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
24383 | echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} | |
24384 | ac_header_preproc=yes | |
a848cd7e | 24385 | ;; |
ac1cb8d3 | 24386 | no:yes:* ) |
a848cd7e SC |
24387 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
24388 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24389 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
24390 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
24391 | { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 | |
24392 | echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} | |
24393 | { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24394 | echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
24395 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
24396 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24397 | { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
24398 | echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
24399 | ( |
24400 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24401 | ## ----------------------------------------- ## |
24402 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24403 | ## ----------------------------------------- ## | |
a848cd7e SC |
24404 | _ASBOX |
24405 | ) | | |
24406 | sed "s/^/$as_me: WARNING: /" >&2 | |
24407 | ;; | |
24408 | esac | |
24409 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
24410 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
24411 | if test "${ac_cv_header_png_h+set}" = set; then | |
24412 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24413 | else | |
24414 | ac_cv_header_png_h=$ac_header_preproc | |
24415 | fi | |
24416 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
24417 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
24418 | ||
24419 | fi | |
24420 | ||
24421 | ||
24422 | ||
24423 | if test "$ac_cv_header_png_h" = "yes"; then | |
24424 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 | |
24425 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
24426 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
24427 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24428 | else | |
24429 | ac_check_lib_save_LIBS=$LIBS | |
24430 | LIBS="-lpng -lz -lm $LIBS" | |
24431 | cat >conftest.$ac_ext <<_ACEOF | |
24432 | /* confdefs.h. */ | |
24433 | _ACEOF | |
24434 | cat confdefs.h >>conftest.$ac_ext | |
24435 | cat >>conftest.$ac_ext <<_ACEOF | |
24436 | /* end confdefs.h. */ | |
24437 | ||
24438 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24439 | #ifdef __cplusplus | |
24440 | extern "C" | |
24441 | #endif | |
24442 | /* We use char because int might match the return type of a gcc2 | |
24443 | builtin and then its argument prototype would still apply. */ | |
24444 | char png_check_sig (); | |
24445 | int | |
24446 | main () | |
24447 | { | |
24448 | png_check_sig (); | |
24449 | ; | |
24450 | return 0; | |
24451 | } | |
24452 | _ACEOF | |
24453 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24454 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24455 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24456 | ac_status=$? |
ac1cb8d3 VS |
24457 | grep -v '^ *+' conftest.er1 >conftest.err |
24458 | rm -f conftest.er1 | |
24459 | cat conftest.err >&5 | |
a848cd7e SC |
24460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24461 | (exit $ac_status); } && | |
0093c2fc | 24462 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24464 | (eval $ac_try) 2>&5 | |
24465 | ac_status=$? | |
24466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24467 | (exit $ac_status); }; } && | |
24468 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24470 | (eval $ac_try) 2>&5 | |
24471 | ac_status=$? | |
24472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24473 | (exit $ac_status); }; }; then | |
24474 | ac_cv_lib_png_png_check_sig=yes | |
24475 | else | |
24476 | echo "$as_me: failed program was:" >&5 | |
24477 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24478 | ||
24479 | ac_cv_lib_png_png_check_sig=no | |
24480 | fi | |
ac1cb8d3 VS |
24481 | rm -f conftest.err conftest.$ac_objext \ |
24482 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24483 | LIBS=$ac_check_lib_save_LIBS |
24484 | fi | |
24485 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
24486 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
24487 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
24488 | PNG_LINK=" -lpng -lz" | |
24489 | fi | |
24490 | ||
24491 | fi | |
24492 | ||
24493 | if test "x$PNG_LINK" = "x" ; then | |
24494 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
24495 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 | |
24496 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
24497 | { (exit 1); exit 1; }; } | |
24498 | else | |
24499 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 | |
24500 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
24501 | wxUSE_LIBPNG=builtin | |
24502 | fi | |
24503 | else | |
24504 | wxUSE_LIBPNG=sys | |
24505 | fi | |
24506 | fi | |
24507 | fi | |
24508 | ||
24509 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
24510 | fi | |
24511 | ||
24512 | ||
24513 | JPEG_LINK= | |
24514 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
24515 | cat >>confdefs.h <<\_ACEOF | |
24516 | #define wxUSE_LIBJPEG 1 | |
24517 | _ACEOF | |
24518 | ||
24519 | ||
24520 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
24521 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 | |
24522 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
24523 | wxUSE_LIBJPEG=sys | |
24524 | fi | |
24525 | ||
24526 | if test "$wxUSE_MGL" != 1 ; then | |
24527 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
24528 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 | |
24529 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
24530 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
24531 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24532 | else | |
24533 | cat >conftest.$ac_ext <<_ACEOF | |
24534 | /* confdefs.h. */ | |
24535 | _ACEOF | |
24536 | cat confdefs.h >>conftest.$ac_ext | |
24537 | cat >>conftest.$ac_ext <<_ACEOF | |
24538 | /* end confdefs.h. */ | |
24539 | ||
24540 | #undef HAVE_STDLIB_H | |
24541 | #include <stdio.h> | |
24542 | #include <jpeglib.h> | |
24543 | ||
24544 | int | |
24545 | main () | |
24546 | { | |
24547 | ||
24548 | ||
24549 | ; | |
24550 | return 0; | |
24551 | } | |
24552 | _ACEOF | |
24553 | rm -f conftest.$ac_objext | |
24554 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24555 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24556 | ac_status=$? |
ac1cb8d3 VS |
24557 | grep -v '^ *+' conftest.er1 >conftest.err |
24558 | rm -f conftest.er1 | |
24559 | cat conftest.err >&5 | |
a848cd7e SC |
24560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24561 | (exit $ac_status); } && | |
0093c2fc | 24562 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24564 | (eval $ac_try) 2>&5 | |
24565 | ac_status=$? | |
24566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24567 | (exit $ac_status); }; } && | |
24568 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24570 | (eval $ac_try) 2>&5 | |
24571 | ac_status=$? | |
24572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24573 | (exit $ac_status); }; }; then | |
24574 | ac_cv_header_jpeglib_h=yes | |
24575 | else | |
24576 | echo "$as_me: failed program was:" >&5 | |
24577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24578 | ||
24579 | ac_cv_header_jpeglib_h=no | |
24580 | ||
24581 | fi | |
ac1cb8d3 | 24582 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24583 | |
24584 | fi | |
24585 | ||
24586 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 | |
24587 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
24588 | ||
24589 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
24590 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 | |
24591 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
24592 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
24593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24594 | else | |
24595 | ac_check_lib_save_LIBS=$LIBS | |
24596 | LIBS="-ljpeg $LIBS" | |
24597 | cat >conftest.$ac_ext <<_ACEOF | |
24598 | /* confdefs.h. */ | |
24599 | _ACEOF | |
24600 | cat confdefs.h >>conftest.$ac_ext | |
24601 | cat >>conftest.$ac_ext <<_ACEOF | |
24602 | /* end confdefs.h. */ | |
24603 | ||
24604 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24605 | #ifdef __cplusplus | |
24606 | extern "C" | |
24607 | #endif | |
24608 | /* We use char because int might match the return type of a gcc2 | |
24609 | builtin and then its argument prototype would still apply. */ | |
24610 | char jpeg_read_header (); | |
24611 | int | |
24612 | main () | |
24613 | { | |
24614 | jpeg_read_header (); | |
24615 | ; | |
24616 | return 0; | |
24617 | } | |
24618 | _ACEOF | |
24619 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24620 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24621 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24622 | ac_status=$? |
ac1cb8d3 VS |
24623 | grep -v '^ *+' conftest.er1 >conftest.err |
24624 | rm -f conftest.er1 | |
24625 | cat conftest.err >&5 | |
a848cd7e SC |
24626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24627 | (exit $ac_status); } && | |
0093c2fc | 24628 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24630 | (eval $ac_try) 2>&5 | |
24631 | ac_status=$? | |
24632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24633 | (exit $ac_status); }; } && | |
24634 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24636 | (eval $ac_try) 2>&5 | |
24637 | ac_status=$? | |
24638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24639 | (exit $ac_status); }; }; then | |
24640 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
24641 | else | |
24642 | echo "$as_me: failed program was:" >&5 | |
24643 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24644 | ||
24645 | ac_cv_lib_jpeg_jpeg_read_header=no | |
24646 | fi | |
ac1cb8d3 VS |
24647 | rm -f conftest.err conftest.$ac_objext \ |
24648 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24649 | LIBS=$ac_check_lib_save_LIBS |
24650 | fi | |
24651 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
24652 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
24653 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
24654 | JPEG_LINK=" -ljpeg" | |
24655 | fi | |
24656 | ||
24657 | fi | |
24658 | ||
24659 | if test "x$JPEG_LINK" = "x" ; then | |
24660 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
24661 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 | |
24662 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
24663 | { (exit 1); exit 1; }; } | |
24664 | else | |
24665 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 | |
24666 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
24667 | wxUSE_LIBJPEG=builtin | |
24668 | fi | |
24669 | else | |
24670 | wxUSE_LIBJPEG=sys | |
24671 | fi | |
24672 | fi | |
24673 | fi | |
24674 | fi | |
24675 | ||
24676 | ||
24677 | TIFF_LINK= | |
24678 | TIFF_PREREQ_LINKS=-lm | |
24679 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
24680 | cat >>confdefs.h <<\_ACEOF | |
24681 | #define wxUSE_LIBTIFF 1 | |
24682 | _ACEOF | |
24683 | ||
24684 | ||
24685 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
24686 | if test "$wxUSE_LIBJPEG" = "sys"; then | |
24687 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
24688 | fi | |
24689 | if test "$wxUSE_ZLIB" = "sys"; then | |
24690 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
24691 | fi | |
24692 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
24693 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
24694 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
24695 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
24696 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24697 | fi | |
24698 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
24699 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
24700 | else | |
24701 | # Is the header compilable? | |
24702 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
24703 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
24704 | cat >conftest.$ac_ext <<_ACEOF | |
24705 | /* confdefs.h. */ | |
24706 | _ACEOF | |
24707 | cat confdefs.h >>conftest.$ac_ext | |
24708 | cat >>conftest.$ac_ext <<_ACEOF | |
24709 | /* end confdefs.h. */ | |
24710 | $ac_includes_default | |
24711 | #include <tiffio.h> | |
24712 | _ACEOF | |
24713 | rm -f conftest.$ac_objext | |
24714 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24715 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24716 | ac_status=$? |
ac1cb8d3 VS |
24717 | grep -v '^ *+' conftest.er1 >conftest.err |
24718 | rm -f conftest.er1 | |
24719 | cat conftest.err >&5 | |
a848cd7e SC |
24720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24721 | (exit $ac_status); } && | |
0093c2fc | 24722 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24724 | (eval $ac_try) 2>&5 | |
24725 | ac_status=$? | |
24726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24727 | (exit $ac_status); }; } && | |
24728 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24730 | (eval $ac_try) 2>&5 | |
24731 | ac_status=$? | |
24732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24733 | (exit $ac_status); }; }; then | |
24734 | ac_header_compiler=yes | |
24735 | else | |
24736 | echo "$as_me: failed program was:" >&5 | |
24737 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24738 | ||
24739 | ac_header_compiler=no | |
24740 | fi | |
ac1cb8d3 | 24741 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24742 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24743 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24744 | ||
24745 | # Is the header present? | |
24746 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
24747 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
24748 | cat >conftest.$ac_ext <<_ACEOF | |
24749 | /* confdefs.h. */ | |
24750 | _ACEOF | |
24751 | cat confdefs.h >>conftest.$ac_ext | |
24752 | cat >>conftest.$ac_ext <<_ACEOF | |
24753 | /* end confdefs.h. */ | |
24754 | #include <tiffio.h> | |
24755 | _ACEOF | |
24756 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24757 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24758 | ac_status=$? | |
24759 | grep -v '^ *+' conftest.er1 >conftest.err | |
24760 | rm -f conftest.er1 | |
24761 | cat conftest.err >&5 | |
24762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24763 | (exit $ac_status); } >/dev/null; then | |
24764 | if test -s conftest.err; then | |
24765 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24766 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24767 | else |
24768 | ac_cpp_err= | |
24769 | fi | |
24770 | else | |
24771 | ac_cpp_err=yes | |
24772 | fi | |
24773 | if test -z "$ac_cpp_err"; then | |
24774 | ac_header_preproc=yes | |
24775 | else | |
24776 | echo "$as_me: failed program was:" >&5 | |
24777 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24778 | ||
24779 | ac_header_preproc=no | |
24780 | fi | |
24781 | rm -f conftest.err conftest.$ac_ext | |
24782 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24783 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24784 | ||
24785 | # So? What about this header? | |
ac1cb8d3 VS |
24786 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
24787 | yes:no: ) | |
a848cd7e SC |
24788 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
24789 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24790 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
24791 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
24792 | ac_header_preproc=yes | |
a848cd7e | 24793 | ;; |
ac1cb8d3 | 24794 | no:yes:* ) |
a848cd7e SC |
24795 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
24796 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24797 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
24798 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
24799 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
24800 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
24801 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24802 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
24803 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
24804 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24805 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
24806 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
24807 | ( |
24808 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24809 | ## ----------------------------------------- ## |
24810 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24811 | ## ----------------------------------------- ## | |
a848cd7e SC |
24812 | _ASBOX |
24813 | ) | | |
24814 | sed "s/^/$as_me: WARNING: /" >&2 | |
24815 | ;; | |
24816 | esac | |
24817 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
24818 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
24819 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
24820 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24821 | else | |
24822 | ac_cv_header_tiffio_h=$ac_header_preproc | |
24823 | fi | |
24824 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
24825 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
24826 | ||
24827 | fi | |
24828 | if test $ac_cv_header_tiffio_h = yes; then | |
24829 | ||
24830 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
24831 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
24832 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
24833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24834 | else | |
24835 | ac_check_lib_save_LIBS=$LIBS | |
24836 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" | |
24837 | cat >conftest.$ac_ext <<_ACEOF | |
24838 | /* confdefs.h. */ | |
24839 | _ACEOF | |
24840 | cat confdefs.h >>conftest.$ac_ext | |
24841 | cat >>conftest.$ac_ext <<_ACEOF | |
24842 | /* end confdefs.h. */ | |
24843 | ||
24844 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24845 | #ifdef __cplusplus | |
24846 | extern "C" | |
24847 | #endif | |
24848 | /* We use char because int might match the return type of a gcc2 | |
24849 | builtin and then its argument prototype would still apply. */ | |
24850 | char TIFFError (); | |
24851 | int | |
24852 | main () | |
24853 | { | |
24854 | TIFFError (); | |
24855 | ; | |
24856 | return 0; | |
24857 | } | |
24858 | _ACEOF | |
24859 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24860 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24861 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24862 | ac_status=$? |
ac1cb8d3 VS |
24863 | grep -v '^ *+' conftest.er1 >conftest.err |
24864 | rm -f conftest.er1 | |
24865 | cat conftest.err >&5 | |
a848cd7e SC |
24866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24867 | (exit $ac_status); } && | |
0093c2fc | 24868 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24870 | (eval $ac_try) 2>&5 | |
24871 | ac_status=$? | |
24872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24873 | (exit $ac_status); }; } && | |
24874 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24876 | (eval $ac_try) 2>&5 | |
24877 | ac_status=$? | |
24878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24879 | (exit $ac_status); }; }; then | |
24880 | ac_cv_lib_tiff_TIFFError=yes | |
24881 | else | |
24882 | echo "$as_me: failed program was:" >&5 | |
24883 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24884 | ||
24885 | ac_cv_lib_tiff_TIFFError=no | |
24886 | fi | |
ac1cb8d3 VS |
24887 | rm -f conftest.err conftest.$ac_objext \ |
24888 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24889 | LIBS=$ac_check_lib_save_LIBS |
24890 | fi | |
24891 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
24892 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
24893 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
24894 | TIFF_LINK=" -ltiff" | |
24895 | fi | |
24896 | ||
24897 | ||
24898 | ||
24899 | fi | |
24900 | ||
24901 | ||
24902 | ||
24903 | if test "x$TIFF_LINK" = "x" ; then | |
24904 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
24905 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 | |
24906 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
24907 | { (exit 1); exit 1; }; } | |
24908 | else | |
24909 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 | |
24910 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
24911 | wxUSE_LIBTIFF=builtin | |
24912 | fi | |
24913 | else | |
24914 | wxUSE_LIBTIFF=sys | |
24915 | fi | |
24916 | fi | |
24917 | fi | |
24918 | ||
24919 | ||
47a7e797 MW |
24920 | if test "$wxUSE_WCHAR_T" != "yes"; then |
24921 | if test "$wxUSE_EXPAT" != "no"; then | |
24922 | { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5 | |
24923 | echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;} | |
24924 | wxUSE_EXPAT=no | |
24925 | fi | |
24926 | if test "$wxUSE_XML" != "no"; then | |
24927 | { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5 | |
24928 | echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;} | |
24929 | wxUSE_XML=no | |
24930 | fi | |
24931 | fi | |
24932 | ||
a848cd7e SC |
24933 | if test "$wxUSE_EXPAT" != "no"; then |
24934 | wxUSE_XML=yes | |
24935 | cat >>confdefs.h <<\_ACEOF | |
24936 | #define wxUSE_EXPAT 1 | |
24937 | _ACEOF | |
24938 | ||
24939 | cat >>confdefs.h <<\_ACEOF | |
24940 | #define wxUSE_XML 1 | |
24941 | _ACEOF | |
24942 | ||
24943 | ||
24944 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
24945 | if test "${ac_cv_header_expat_h+set}" = set; then | |
24946 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
24947 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
24948 | if test "${ac_cv_header_expat_h+set}" = set; then | |
24949 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24950 | fi | |
24951 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
24952 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
24953 | else | |
24954 | # Is the header compilable? | |
24955 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
24956 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
24957 | cat >conftest.$ac_ext <<_ACEOF | |
24958 | /* confdefs.h. */ | |
24959 | _ACEOF | |
24960 | cat confdefs.h >>conftest.$ac_ext | |
24961 | cat >>conftest.$ac_ext <<_ACEOF | |
24962 | /* end confdefs.h. */ | |
24963 | $ac_includes_default | |
24964 | #include <expat.h> | |
24965 | _ACEOF | |
24966 | rm -f conftest.$ac_objext | |
24967 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24968 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24969 | ac_status=$? |
ac1cb8d3 VS |
24970 | grep -v '^ *+' conftest.er1 >conftest.err |
24971 | rm -f conftest.er1 | |
24972 | cat conftest.err >&5 | |
a848cd7e SC |
24973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24974 | (exit $ac_status); } && | |
0093c2fc | 24975 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24977 | (eval $ac_try) 2>&5 | |
24978 | ac_status=$? | |
24979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24980 | (exit $ac_status); }; } && | |
24981 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24983 | (eval $ac_try) 2>&5 | |
24984 | ac_status=$? | |
24985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24986 | (exit $ac_status); }; }; then | |
24987 | ac_header_compiler=yes | |
24988 | else | |
24989 | echo "$as_me: failed program was:" >&5 | |
24990 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24991 | ||
24992 | ac_header_compiler=no | |
24993 | fi | |
ac1cb8d3 | 24994 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24995 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24996 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24997 | ||
24998 | # Is the header present? | |
24999 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
25000 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
25001 | cat >conftest.$ac_ext <<_ACEOF | |
25002 | /* confdefs.h. */ | |
25003 | _ACEOF | |
25004 | cat confdefs.h >>conftest.$ac_ext | |
25005 | cat >>conftest.$ac_ext <<_ACEOF | |
25006 | /* end confdefs.h. */ | |
25007 | #include <expat.h> | |
25008 | _ACEOF | |
25009 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25010 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25011 | ac_status=$? | |
25012 | grep -v '^ *+' conftest.er1 >conftest.err | |
25013 | rm -f conftest.er1 | |
25014 | cat conftest.err >&5 | |
25015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25016 | (exit $ac_status); } >/dev/null; then | |
25017 | if test -s conftest.err; then | |
25018 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 25019 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
25020 | else |
25021 | ac_cpp_err= | |
25022 | fi | |
25023 | else | |
25024 | ac_cpp_err=yes | |
25025 | fi | |
25026 | if test -z "$ac_cpp_err"; then | |
25027 | ac_header_preproc=yes | |
25028 | else | |
25029 | echo "$as_me: failed program was:" >&5 | |
25030 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25031 | ||
25032 | ac_header_preproc=no | |
25033 | fi | |
25034 | rm -f conftest.err conftest.$ac_ext | |
25035 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25036 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25037 | ||
25038 | # So? What about this header? | |
ac1cb8d3 VS |
25039 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
25040 | yes:no: ) | |
a848cd7e SC |
25041 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
25042 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25043 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 |
25044 | echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} | |
25045 | ac_header_preproc=yes | |
a848cd7e | 25046 | ;; |
ac1cb8d3 | 25047 | no:yes:* ) |
a848cd7e SC |
25048 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
25049 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25050 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
25051 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
25052 | { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 | |
25053 | echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} | |
25054 | { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 | |
25055 | echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25056 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
25057 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25058 | { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 |
25059 | echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25060 | ( |
25061 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25062 | ## ----------------------------------------- ## |
25063 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25064 | ## ----------------------------------------- ## | |
a848cd7e SC |
25065 | _ASBOX |
25066 | ) | | |
25067 | sed "s/^/$as_me: WARNING: /" >&2 | |
25068 | ;; | |
25069 | esac | |
25070 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
25071 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
25072 | if test "${ac_cv_header_expat_h+set}" = set; then | |
25073 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25074 | else | |
25075 | ac_cv_header_expat_h=$ac_header_preproc | |
25076 | fi | |
25077 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
25078 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
25079 | ||
25080 | fi | |
25081 | if test $ac_cv_header_expat_h = yes; then | |
25082 | found_expat_h=1 | |
25083 | fi | |
25084 | ||
25085 | ||
25086 | if test "x$found_expat_h" = "x1"; then | |
25087 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
25088 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
25089 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
25090 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25091 | else | |
25092 | ||
25093 | ||
25094 | ||
25095 | ac_ext=cc | |
25096 | ac_cpp='$CXXCPP $CPPFLAGS' | |
25097 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
25098 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
25099 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
25100 | ||
25101 | cat >conftest.$ac_ext <<_ACEOF | |
25102 | /* confdefs.h. */ | |
25103 | _ACEOF | |
25104 | cat confdefs.h >>conftest.$ac_ext | |
25105 | cat >>conftest.$ac_ext <<_ACEOF | |
25106 | /* end confdefs.h. */ | |
25107 | #include <expat.h> | |
25108 | int | |
25109 | main () | |
25110 | { | |
25111 | ||
25112 | ; | |
25113 | return 0; | |
25114 | } | |
25115 | _ACEOF | |
25116 | rm -f conftest.$ac_objext | |
25117 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25118 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25119 | ac_status=$? |
ac1cb8d3 VS |
25120 | grep -v '^ *+' conftest.er1 >conftest.err |
25121 | rm -f conftest.er1 | |
25122 | cat conftest.err >&5 | |
a848cd7e SC |
25123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25124 | (exit $ac_status); } && | |
0093c2fc | 25125 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25127 | (eval $ac_try) 2>&5 | |
25128 | ac_status=$? | |
25129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25130 | (exit $ac_status); }; } && | |
25131 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25133 | (eval $ac_try) 2>&5 | |
25134 | ac_status=$? | |
25135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25136 | (exit $ac_status); }; }; then | |
25137 | wx_cv_expat_is_not_broken=yes | |
25138 | else | |
25139 | echo "$as_me: failed program was:" >&5 | |
25140 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25141 | ||
25142 | wx_cv_expat_is_not_broken=no | |
25143 | ||
25144 | fi | |
ac1cb8d3 | 25145 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25146 | ac_ext=c |
25147 | ac_cpp='$CPP $CPPFLAGS' | |
25148 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
25149 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
25150 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
25151 | ||
25152 | ||
25153 | ||
25154 | fi | |
25155 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
25156 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
25157 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
25158 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
25159 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 | |
25160 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
25161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25162 | else | |
25163 | ac_check_lib_save_LIBS=$LIBS | |
25164 | LIBS="-lexpat $LIBS" | |
25165 | cat >conftest.$ac_ext <<_ACEOF | |
25166 | /* confdefs.h. */ | |
25167 | _ACEOF | |
25168 | cat confdefs.h >>conftest.$ac_ext | |
25169 | cat >>conftest.$ac_ext <<_ACEOF | |
25170 | /* end confdefs.h. */ | |
25171 | ||
25172 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25173 | #ifdef __cplusplus | |
25174 | extern "C" | |
25175 | #endif | |
25176 | /* We use char because int might match the return type of a gcc2 | |
25177 | builtin and then its argument prototype would still apply. */ | |
25178 | char XML_ParserCreate (); | |
25179 | int | |
25180 | main () | |
25181 | { | |
25182 | XML_ParserCreate (); | |
25183 | ; | |
25184 | return 0; | |
25185 | } | |
25186 | _ACEOF | |
25187 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25188 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25189 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25190 | ac_status=$? |
ac1cb8d3 VS |
25191 | grep -v '^ *+' conftest.er1 >conftest.err |
25192 | rm -f conftest.er1 | |
25193 | cat conftest.err >&5 | |
a848cd7e SC |
25194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25195 | (exit $ac_status); } && | |
0093c2fc | 25196 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25198 | (eval $ac_try) 2>&5 | |
25199 | ac_status=$? | |
25200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25201 | (exit $ac_status); }; } && | |
25202 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
25208 | ac_cv_lib_expat_XML_ParserCreate=yes | |
25209 | else | |
25210 | echo "$as_me: failed program was:" >&5 | |
25211 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25212 | ||
25213 | ac_cv_lib_expat_XML_ParserCreate=no | |
25214 | fi | |
ac1cb8d3 VS |
25215 | rm -f conftest.err conftest.$ac_objext \ |
25216 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25217 | LIBS=$ac_check_lib_save_LIBS |
25218 | fi | |
25219 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
25220 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
25221 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
25222 | EXPAT_LINK=" -lexpat" | |
25223 | fi | |
25224 | ||
25225 | fi | |
25226 | fi | |
25227 | if test "x$EXPAT_LINK" = "x" ; then | |
25228 | if test "$wxUSE_EXPAT" = "sys" ; then | |
25229 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
25230 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
25231 | { (exit 1); exit 1; }; } | |
25232 | else | |
25233 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
25234 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
25235 | wxUSE_EXPAT=builtin | |
25236 | fi | |
25237 | else | |
25238 | wxUSE_EXPAT=sys | |
25239 | fi | |
25240 | fi | |
25241 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
25242 | ||
25243 | ||
25244 | subdirs="$subdirs src/expat" | |
25245 | ||
25246 | fi | |
25247 | fi | |
25248 | ||
25249 | ||
25250 | ||
25251 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
a848cd7e SC |
25252 | if test "${ac_cv_header_mspack_h+set}" = set; then |
25253 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
25254 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
25255 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
25256 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25257 | fi | |
25258 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
25259 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
25260 | else | |
25261 | # Is the header compilable? | |
25262 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
25263 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
25264 | cat >conftest.$ac_ext <<_ACEOF | |
25265 | /* confdefs.h. */ | |
25266 | _ACEOF | |
25267 | cat confdefs.h >>conftest.$ac_ext | |
25268 | cat >>conftest.$ac_ext <<_ACEOF | |
25269 | /* end confdefs.h. */ | |
25270 | $ac_includes_default | |
25271 | #include <mspack.h> | |
25272 | _ACEOF | |
25273 | rm -f conftest.$ac_objext | |
25274 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25275 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25276 | ac_status=$? |
ac1cb8d3 VS |
25277 | grep -v '^ *+' conftest.er1 >conftest.err |
25278 | rm -f conftest.er1 | |
25279 | cat conftest.err >&5 | |
a848cd7e SC |
25280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25281 | (exit $ac_status); } && | |
0093c2fc | 25282 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25284 | (eval $ac_try) 2>&5 | |
25285 | ac_status=$? | |
25286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25287 | (exit $ac_status); }; } && | |
25288 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25290 | (eval $ac_try) 2>&5 | |
25291 | ac_status=$? | |
25292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25293 | (exit $ac_status); }; }; then | |
25294 | ac_header_compiler=yes | |
25295 | else | |
25296 | echo "$as_me: failed program was:" >&5 | |
25297 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25298 | ||
25299 | ac_header_compiler=no | |
25300 | fi | |
ac1cb8d3 | 25301 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25302 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25303 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25304 | ||
25305 | # Is the header present? | |
25306 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
25307 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
25308 | cat >conftest.$ac_ext <<_ACEOF | |
25309 | /* confdefs.h. */ | |
25310 | _ACEOF | |
25311 | cat confdefs.h >>conftest.$ac_ext | |
25312 | cat >>conftest.$ac_ext <<_ACEOF | |
25313 | /* end confdefs.h. */ | |
25314 | #include <mspack.h> | |
25315 | _ACEOF | |
25316 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25317 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25318 | ac_status=$? | |
25319 | grep -v '^ *+' conftest.er1 >conftest.err | |
25320 | rm -f conftest.er1 | |
25321 | cat conftest.err >&5 | |
25322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25323 | (exit $ac_status); } >/dev/null; then | |
25324 | if test -s conftest.err; then | |
25325 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 25326 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
25327 | else |
25328 | ac_cpp_err= | |
25329 | fi | |
25330 | else | |
25331 | ac_cpp_err=yes | |
25332 | fi | |
25333 | if test -z "$ac_cpp_err"; then | |
25334 | ac_header_preproc=yes | |
25335 | else | |
25336 | echo "$as_me: failed program was:" >&5 | |
25337 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25338 | ||
25339 | ac_header_preproc=no | |
25340 | fi | |
25341 | rm -f conftest.err conftest.$ac_ext | |
25342 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25343 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25344 | ||
25345 | # So? What about this header? | |
ac1cb8d3 VS |
25346 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
25347 | yes:no: ) | |
a848cd7e SC |
25348 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
25349 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25350 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5 |
25351 | echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;} | |
25352 | ac_header_preproc=yes | |
a848cd7e | 25353 | ;; |
ac1cb8d3 | 25354 | no:yes:* ) |
a848cd7e SC |
25355 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
25356 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25357 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
25358 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
25359 | { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5 | |
25360 | echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;} | |
25361 | { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5 | |
25362 | echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25363 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
25364 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25365 | { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5 |
25366 | echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25367 | ( |
25368 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25369 | ## ----------------------------------------- ## |
25370 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25371 | ## ----------------------------------------- ## | |
a848cd7e SC |
25372 | _ASBOX |
25373 | ) | | |
25374 | sed "s/^/$as_me: WARNING: /" >&2 | |
25375 | ;; | |
25376 | esac | |
25377 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
25378 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
25379 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
25380 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25381 | else | |
25382 | ac_cv_header_mspack_h=$ac_header_preproc | |
25383 | fi | |
25384 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
25385 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
25386 | ||
25387 | fi | |
25388 | if test $ac_cv_header_mspack_h = yes; then | |
25389 | found_mspack_h=1 | |
25390 | fi | |
25391 | ||
25392 | ||
25393 | if test "x$found_mspack_h" = "x1"; then | |
25394 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
25395 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
25396 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
25397 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25398 | else | |
25399 | ac_check_lib_save_LIBS=$LIBS | |
25400 | LIBS="-lmspack $LIBS" | |
25401 | cat >conftest.$ac_ext <<_ACEOF | |
25402 | /* confdefs.h. */ | |
25403 | _ACEOF | |
25404 | cat confdefs.h >>conftest.$ac_ext | |
25405 | cat >>conftest.$ac_ext <<_ACEOF | |
25406 | /* end confdefs.h. */ | |
25407 | ||
25408 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25409 | #ifdef __cplusplus | |
25410 | extern "C" | |
25411 | #endif | |
25412 | /* We use char because int might match the return type of a gcc2 | |
25413 | builtin and then its argument prototype would still apply. */ | |
25414 | char mspack_create_chm_decompressor (); | |
25415 | int | |
25416 | main () | |
25417 | { | |
25418 | mspack_create_chm_decompressor (); | |
25419 | ; | |
25420 | return 0; | |
25421 | } | |
25422 | _ACEOF | |
25423 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25424 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25425 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25426 | ac_status=$? |
ac1cb8d3 VS |
25427 | grep -v '^ *+' conftest.er1 >conftest.err |
25428 | rm -f conftest.er1 | |
25429 | cat conftest.err >&5 | |
a848cd7e SC |
25430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25431 | (exit $ac_status); } && | |
0093c2fc | 25432 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25434 | (eval $ac_try) 2>&5 | |
25435 | ac_status=$? | |
25436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25437 | (exit $ac_status); }; } && | |
25438 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25440 | (eval $ac_try) 2>&5 | |
25441 | ac_status=$? | |
25442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25443 | (exit $ac_status); }; }; then | |
25444 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
25445 | else | |
25446 | echo "$as_me: failed program was:" >&5 | |
25447 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25448 | ||
25449 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
25450 | fi | |
ac1cb8d3 VS |
25451 | rm -f conftest.err conftest.$ac_objext \ |
25452 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25453 | LIBS=$ac_check_lib_save_LIBS |
25454 | fi | |
25455 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
25456 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
25457 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
25458 | MSPACK_LINK=" -lmspack" | |
25459 | fi | |
25460 | ||
25461 | fi | |
25462 | if test "x$MSPACK_LINK" = "x" ; then | |
25463 | wxUSE_LIBMSPACK=no | |
dd3a2d96 VZ |
25464 | fi |
25465 | fi | |
25466 | ||
25467 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
25468 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
25469 | #define wxUSE_LIBMSPACK 1 |
25470 | _ACEOF | |
25471 | ||
a848cd7e SC |
25472 | fi |
25473 | ||
25474 | ||
25475 | ||
25476 | AFMINSTALL= | |
25477 | WIN32INSTALL= | |
25478 | ||
25479 | TOOLKIT= | |
25480 | TOOLKIT_INCLUDE= | |
25481 | WIDGET_SET= | |
25482 | ||
25483 | if test "$USE_WIN32" = 1 ; then | |
25484 | ||
25485 | for ac_header in w32api.h | |
25486 | do | |
25487 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
25488 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
25489 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
25490 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
25491 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
25492 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25493 | fi | |
25494 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
25495 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
25496 | else | |
25497 | # Is the header compilable? | |
25498 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
25499 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
25500 | cat >conftest.$ac_ext <<_ACEOF | |
25501 | /* confdefs.h. */ | |
25502 | _ACEOF | |
25503 | cat confdefs.h >>conftest.$ac_ext | |
25504 | cat >>conftest.$ac_ext <<_ACEOF | |
25505 | /* end confdefs.h. */ | |
25506 | $ac_includes_default | |
25507 | #include <$ac_header> | |
25508 | _ACEOF | |
25509 | rm -f conftest.$ac_objext | |
25510 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25511 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25512 | ac_status=$? |
ac1cb8d3 VS |
25513 | grep -v '^ *+' conftest.er1 >conftest.err |
25514 | rm -f conftest.er1 | |
25515 | cat conftest.err >&5 | |
a848cd7e SC |
25516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25517 | (exit $ac_status); } && | |
0093c2fc | 25518 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25520 | (eval $ac_try) 2>&5 | |
25521 | ac_status=$? | |
25522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25523 | (exit $ac_status); }; } && | |
25524 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
25530 | ac_header_compiler=yes | |
25531 | else | |
25532 | echo "$as_me: failed program was:" >&5 | |
25533 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25534 | ||
25535 | ac_header_compiler=no | |
25536 | fi | |
ac1cb8d3 | 25537 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25538 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25539 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25540 | ||
25541 | # Is the header present? | |
25542 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
25543 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
25544 | cat >conftest.$ac_ext <<_ACEOF | |
25545 | /* confdefs.h. */ | |
25546 | _ACEOF | |
25547 | cat confdefs.h >>conftest.$ac_ext | |
25548 | cat >>conftest.$ac_ext <<_ACEOF | |
25549 | /* end confdefs.h. */ | |
25550 | #include <$ac_header> | |
25551 | _ACEOF | |
25552 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25553 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25554 | ac_status=$? | |
25555 | grep -v '^ *+' conftest.er1 >conftest.err | |
25556 | rm -f conftest.er1 | |
25557 | cat conftest.err >&5 | |
25558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25559 | (exit $ac_status); } >/dev/null; then | |
25560 | if test -s conftest.err; then | |
25561 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 25562 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
25563 | else |
25564 | ac_cpp_err= | |
25565 | fi | |
25566 | else | |
25567 | ac_cpp_err=yes | |
25568 | fi | |
25569 | if test -z "$ac_cpp_err"; then | |
25570 | ac_header_preproc=yes | |
25571 | else | |
25572 | echo "$as_me: failed program was:" >&5 | |
25573 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25574 | ||
25575 | ac_header_preproc=no | |
25576 | fi | |
25577 | rm -f conftest.err conftest.$ac_ext | |
25578 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25579 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25580 | ||
25581 | # So? What about this header? | |
ac1cb8d3 VS |
25582 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
25583 | yes:no: ) | |
a848cd7e SC |
25584 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
25585 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25586 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
25587 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
25588 | ac_header_preproc=yes | |
a848cd7e | 25589 | ;; |
ac1cb8d3 | 25590 | no:yes:* ) |
a848cd7e SC |
25591 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
25592 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25593 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
25594 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
25595 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
25596 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
25597 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
25598 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25599 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
25600 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25601 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
25602 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25603 | ( |
25604 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25605 | ## ----------------------------------------- ## |
25606 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25607 | ## ----------------------------------------- ## | |
a848cd7e SC |
25608 | _ASBOX |
25609 | ) | | |
25610 | sed "s/^/$as_me: WARNING: /" >&2 | |
25611 | ;; | |
25612 | esac | |
25613 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
25614 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
25615 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
25616 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25617 | else | |
ac1cb8d3 | 25618 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
25619 | fi |
25620 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
25621 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
25622 | ||
25623 | fi | |
25624 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
25625 | cat >>confdefs.h <<_ACEOF | |
25626 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
25627 | _ACEOF | |
25628 | ||
25629 | fi | |
25630 | ||
25631 | done | |
25632 | ||
25633 | if test "${ac_cv_header_windows_h+set}" = set; then | |
25634 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
25635 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
25636 | if test "${ac_cv_header_windows_h+set}" = set; then | |
25637 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25638 | fi | |
25639 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
25640 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
25641 | else | |
25642 | # Is the header compilable? | |
25643 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
25644 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
25645 | cat >conftest.$ac_ext <<_ACEOF | |
25646 | /* confdefs.h. */ | |
25647 | _ACEOF | |
25648 | cat confdefs.h >>conftest.$ac_ext | |
25649 | cat >>conftest.$ac_ext <<_ACEOF | |
25650 | /* end confdefs.h. */ | |
25651 | $ac_includes_default | |
25652 | #include <windows.h> | |
25653 | _ACEOF | |
25654 | rm -f conftest.$ac_objext | |
25655 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25656 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25657 | ac_status=$? |
ac1cb8d3 VS |
25658 | grep -v '^ *+' conftest.er1 >conftest.err |
25659 | rm -f conftest.er1 | |
25660 | cat conftest.err >&5 | |
a848cd7e SC |
25661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25662 | (exit $ac_status); } && | |
0093c2fc | 25663 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25665 | (eval $ac_try) 2>&5 | |
25666 | ac_status=$? | |
25667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25668 | (exit $ac_status); }; } && | |
25669 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25671 | (eval $ac_try) 2>&5 | |
25672 | ac_status=$? | |
25673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25674 | (exit $ac_status); }; }; then | |
25675 | ac_header_compiler=yes | |
25676 | else | |
25677 | echo "$as_me: failed program was:" >&5 | |
25678 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25679 | ||
25680 | ac_header_compiler=no | |
25681 | fi | |
ac1cb8d3 | 25682 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25683 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25684 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25685 | ||
25686 | # Is the header present? | |
25687 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
25688 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
25689 | cat >conftest.$ac_ext <<_ACEOF | |
25690 | /* confdefs.h. */ | |
25691 | _ACEOF | |
25692 | cat confdefs.h >>conftest.$ac_ext | |
25693 | cat >>conftest.$ac_ext <<_ACEOF | |
25694 | /* end confdefs.h. */ | |
25695 | #include <windows.h> | |
25696 | _ACEOF | |
25697 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25698 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25699 | ac_status=$? | |
25700 | grep -v '^ *+' conftest.er1 >conftest.err | |
25701 | rm -f conftest.er1 | |
25702 | cat conftest.err >&5 | |
25703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25704 | (exit $ac_status); } >/dev/null; then | |
25705 | if test -s conftest.err; then | |
25706 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 25707 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
25708 | else |
25709 | ac_cpp_err= | |
25710 | fi | |
25711 | else | |
25712 | ac_cpp_err=yes | |
25713 | fi | |
25714 | if test -z "$ac_cpp_err"; then | |
25715 | ac_header_preproc=yes | |
25716 | else | |
25717 | echo "$as_me: failed program was:" >&5 | |
25718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25719 | ||
25720 | ac_header_preproc=no | |
25721 | fi | |
25722 | rm -f conftest.err conftest.$ac_ext | |
25723 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25724 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25725 | ||
25726 | # So? What about this header? | |
ac1cb8d3 VS |
25727 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
25728 | yes:no: ) | |
a848cd7e SC |
25729 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
25730 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25731 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 |
25732 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
25733 | ac_header_preproc=yes | |
a848cd7e | 25734 | ;; |
ac1cb8d3 | 25735 | no:yes:* ) |
a848cd7e SC |
25736 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
25737 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25738 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
25739 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
25740 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
25741 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
25742 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
25743 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25744 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
25745 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25746 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 |
25747 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25748 | ( |
25749 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25750 | ## ----------------------------------------- ## |
25751 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25752 | ## ----------------------------------------- ## | |
a848cd7e SC |
25753 | _ASBOX |
25754 | ) | | |
25755 | sed "s/^/$as_me: WARNING: /" >&2 | |
25756 | ;; | |
25757 | esac | |
25758 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
25759 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
25760 | if test "${ac_cv_header_windows_h+set}" = set; then | |
25761 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25762 | else | |
25763 | ac_cv_header_windows_h=$ac_header_preproc | |
25764 | fi | |
25765 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
25766 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
25767 | ||
25768 | fi | |
25769 | if test $ac_cv_header_windows_h = yes; then | |
25770 | : | |
25771 | else | |
25772 | ||
25773 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 | |
25774 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
25775 | { (exit 1); exit 1; }; } | |
25776 | ||
25777 | fi | |
25778 | ||
25779 | ||
25780 | ||
25781 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" | |
25782 | ||
25783 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then | |
25784 | LIBS="$LIBS -loleacc" | |
25785 | fi | |
25786 | ||
25787 | case "${host}" in | |
25788 | *-*-cygwin* ) | |
25789 | LIBS="$LIBS -lkernel32 -luser32" | |
25790 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
25791 | esac | |
25792 | ||
25793 | if test "$wxUSE_ODBC" = "sys" ; then | |
25794 | wxUSE_ODBC = "yes" | |
25795 | fi | |
25796 | if test "$wxUSE_ODBC" = "yes" ; then | |
25797 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
25798 | cat >>confdefs.h <<\_ACEOF | |
25799 | #define wxUSE_ODBC 1 | |
25800 | _ACEOF | |
25801 | ||
25802 | fi | |
25803 | ||
25804 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" | |
25805 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
25806 | ||
25807 | WIN32INSTALL=win32install | |
25808 | fi | |
25809 | ||
25810 | if test "$wxUSE_GUI" = "yes"; then | |
25811 | USE_GUI=1 | |
25812 | ||
25813 | GUI_TK_LIBRARY= | |
25814 | ||
25815 | WXGTK12= | |
25816 | WXGTK127= | |
25817 | WXGTK20= | |
25818 | WXGPE= | |
25819 | ||
207bc66c RN |
25820 | if test "$wxUSE_COCOA" = 1 ; then |
25821 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then | |
25822 | { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5 | |
25823 | echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;} | |
25824 | wxUSE_PRINTING_ARCHITECTURE=no | |
25825 | fi | |
25826 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
25827 | { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5 | |
25828 | echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;} | |
25829 | wxUSE_DRAG_AND_DROP=no | |
25830 | fi | |
25831 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
25832 | { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5 | |
25833 | echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;} | |
25834 | wxUSE_DRAGIMAGE=no | |
25835 | fi | |
25836 | fi | |
25837 | ||
a848cd7e SC |
25838 | if test "$wxUSE_MSW" = 1 ; then |
25839 | TOOLKIT=MSW | |
25840 | GUIDIST=MSW_DIST | |
25841 | ||
ceec2216 | 25842 | case "${host}" in |
a848cd7e SC |
25843 | *-*-mingw32* ) |
25844 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
25845 | esac | |
25846 | fi | |
25847 | ||
25848 | if test "$wxUSE_GTK" = 1; then | |
25849 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 | |
25850 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
25851 | ||
25852 | gtk_version_cached=1 | |
25853 | if test "${wx_cv_lib_gtk+set}" = set; then | |
25854 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25855 | else | |
25856 | ||
25857 | gtk_version_cached=0 | |
25858 | echo "$as_me:$LINENO: result: " >&5 | |
25859 | echo "${ECHO_T}" >&6 | |
25860 | ||
25861 | GTK_MODULES= | |
25862 | if test "$wxUSE_THREADS" = "yes"; then | |
25863 | GTK_MODULES=gthread | |
25864 | fi | |
25865 | ||
f597b41c | 25866 | wx_cv_lib_gtk= |
5001df0d MW |
25867 | if test "x$wxGTK_VERSION" != "x1" |
25868 | then | |
25869 | case "${host}" in | |
25870 | *-*-solaris2* ) | |
25871 | if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then | |
25872 | enable_gtktest=no | |
25873 | fi | |
25874 | esac | |
25875 | ||
a848cd7e SC |
25876 | # Check whether --enable-gtktest or --disable-gtktest was given. |
25877 | if test "${enable_gtktest+set}" = set; then | |
25878 | enableval="$enable_gtktest" | |
25879 | ||
25880 | else | |
25881 | enable_gtktest=yes | |
25882 | fi; | |
25883 | ||
25884 | pkg_config_args=gtk+-2.0 | |
25885 | for module in . $GTK_MODULES | |
25886 | do | |
25887 | case "$module" in | |
25888 | gthread) | |
25889 | pkg_config_args="$pkg_config_args gthread-2.0" | |
25890 | ;; | |
25891 | esac | |
25892 | done | |
25893 | ||
25894 | no_gtk="" | |
25895 | ||
25896 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
25897 | set dummy pkg-config; ac_word=$2 | |
25898 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
25899 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25900 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
25901 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25902 | else | |
25903 | case $PKG_CONFIG in | |
25904 | [\\/]* | ?:[\\/]*) | |
25905 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
25906 | ;; | |
25907 | *) | |
25908 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
25909 | for as_dir in $PATH | |
25910 | do | |
25911 | IFS=$as_save_IFS | |
25912 | test -z "$as_dir" && as_dir=. | |
25913 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25914 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25915 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
25916 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25917 | break 2 | |
25918 | fi | |
25919 | done | |
25920 | done | |
25921 | ||
25922 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
25923 | ;; | |
25924 | esac | |
25925 | fi | |
25926 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
25927 | ||
25928 | if test -n "$PKG_CONFIG"; then | |
25929 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
25930 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
25931 | else | |
25932 | echo "$as_me:$LINENO: result: no" >&5 | |
25933 | echo "${ECHO_T}no" >&6 | |
25934 | fi | |
25935 | ||
25936 | ||
25937 | if test x$PKG_CONFIG != xno ; then | |
25938 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
25939 | : | |
25940 | else | |
c2218763 | 25941 | echo "*** pkg-config too old; version 0.7 or better required." |
a848cd7e SC |
25942 | no_gtk=yes |
25943 | PKG_CONFIG=no | |
25944 | fi | |
25945 | else | |
25946 | no_gtk=yes | |
25947 | fi | |
25948 | ||
25949 | min_gtk_version=2.0.0 | |
25950 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 | |
25951 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
25952 | ||
25953 | if test x$PKG_CONFIG != xno ; then | |
25954 | ## don't try to run the test against uninstalled libtool libs | |
25955 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
25956 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
25957 | enable_gtktest=no | |
25958 | fi | |
25959 | ||
25960 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
25961 | : | |
25962 | else | |
25963 | no_gtk=yes | |
25964 | fi | |
25965 | fi | |
25966 | ||
25967 | if test x"$no_gtk" = x ; then | |
25968 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
25969 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
25970 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
25971 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
25972 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
25973 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
25974 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
25975 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
25976 | if test "x$enable_gtktest" = "xyes" ; then | |
25977 | ac_save_CFLAGS="$CFLAGS" | |
25978 | ac_save_LIBS="$LIBS" | |
25979 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
25980 | LIBS="$GTK_LIBS $LIBS" | |
25981 | rm -f conf.gtktest | |
25982 | if test "$cross_compiling" = yes; then | |
25983 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
25984 | else | |
25985 | cat >conftest.$ac_ext <<_ACEOF | |
25986 | /* confdefs.h. */ | |
25987 | _ACEOF | |
25988 | cat confdefs.h >>conftest.$ac_ext | |
25989 | cat >>conftest.$ac_ext <<_ACEOF | |
25990 | /* end confdefs.h. */ | |
25991 | ||
25992 | #include <gtk/gtk.h> | |
25993 | #include <stdio.h> | |
25994 | #include <stdlib.h> | |
25995 | ||
25996 | int | |
25997 | main () | |
25998 | { | |
25999 | int major, minor, micro; | |
26000 | char *tmp_version; | |
26001 | ||
26002 | system ("touch conf.gtktest"); | |
26003 | ||
26004 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
26005 | tmp_version = g_strdup("$min_gtk_version"); | |
26006 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
26007 | printf("%s, bad version string\n", "$min_gtk_version"); | |
26008 | exit(1); | |
26009 | } | |
26010 | ||
26011 | if ((gtk_major_version != $gtk_config_major_version) || | |
26012 | (gtk_minor_version != $gtk_config_minor_version) || | |
26013 | (gtk_micro_version != $gtk_config_micro_version)) | |
26014 | { | |
26015 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
26016 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
26017 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26018 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
26019 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
26020 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
26021 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
26022 | printf("*** required on your system.\n"); | |
26023 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
26024 | printf("*** to point to the correct configuration files\n"); | |
26025 | } | |
26026 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
26027 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
26028 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
26029 | { | |
26030 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
26031 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
26032 | printf("*** library (version %d.%d.%d)\n", | |
26033 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26034 | } | |
26035 | else | |
26036 | { | |
26037 | if ((gtk_major_version > major) || | |
26038 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
26039 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
26040 | { | |
26041 | return 0; | |
26042 | } | |
26043 | else | |
26044 | { | |
26045 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
26046 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26047 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
26048 | major, minor, micro); | |
26049 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
26050 | printf("***\n"); | |
26051 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
26052 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
26053 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
26054 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
26055 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
26056 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
26057 | printf("*** so that the correct libraries are found at run-time))\n"); | |
26058 | } | |
26059 | } | |
26060 | return 1; | |
26061 | } | |
26062 | ||
26063 | _ACEOF | |
26064 | rm -f conftest$ac_exeext | |
26065 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26066 | (eval $ac_link) 2>&5 | |
26067 | ac_status=$? | |
26068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26069 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
26070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26071 | (eval $ac_try) 2>&5 | |
26072 | ac_status=$? | |
26073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26074 | (exit $ac_status); }; }; then | |
26075 | : | |
26076 | else | |
26077 | echo "$as_me: program exited with status $ac_status" >&5 | |
26078 | echo "$as_me: failed program was:" >&5 | |
26079 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26080 | ||
26081 | ( exit $ac_status ) | |
26082 | no_gtk=yes | |
26083 | fi | |
ac1cb8d3 | 26084 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26085 | fi |
26086 | CFLAGS="$ac_save_CFLAGS" | |
26087 | LIBS="$ac_save_LIBS" | |
26088 | fi | |
26089 | fi | |
26090 | if test "x$no_gtk" = x ; then | |
26091 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | |
26092 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
26093 | wx_cv_lib_gtk=2.0 | |
26094 | else | |
26095 | echo "$as_me:$LINENO: result: no" >&5 | |
26096 | echo "${ECHO_T}no" >&6 | |
26097 | if test "$PKG_CONFIG" = "no" ; then | |
26098 | echo "*** A new enough version of pkg-config was not found." | |
26099 | echo "*** See http://pkgconfig.sourceforge.net" | |
26100 | else | |
26101 | if test -f conf.gtktest ; then | |
26102 | : | |
26103 | else | |
26104 | echo "*** Could not run GTK+ test program, checking why..." | |
26105 | ac_save_CFLAGS="$CFLAGS" | |
26106 | ac_save_LIBS="$LIBS" | |
26107 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
26108 | LIBS="$LIBS $GTK_LIBS" | |
26109 | cat >conftest.$ac_ext <<_ACEOF | |
26110 | /* confdefs.h. */ | |
26111 | _ACEOF | |
26112 | cat confdefs.h >>conftest.$ac_ext | |
26113 | cat >>conftest.$ac_ext <<_ACEOF | |
26114 | /* end confdefs.h. */ | |
26115 | ||
26116 | #include <gtk/gtk.h> | |
26117 | #include <stdio.h> | |
26118 | ||
26119 | int | |
26120 | main () | |
26121 | { | |
26122 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
26123 | ; | |
26124 | return 0; | |
26125 | } | |
26126 | _ACEOF | |
26127 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26128 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26129 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26130 | ac_status=$? |
ac1cb8d3 VS |
26131 | grep -v '^ *+' conftest.er1 >conftest.err |
26132 | rm -f conftest.er1 | |
26133 | cat conftest.err >&5 | |
a848cd7e SC |
26134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26135 | (exit $ac_status); } && | |
0093c2fc | 26136 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26138 | (eval $ac_try) 2>&5 | |
26139 | ac_status=$? | |
26140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26141 | (exit $ac_status); }; } && | |
26142 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26144 | (eval $ac_try) 2>&5 | |
26145 | ac_status=$? | |
26146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26147 | (exit $ac_status); }; }; then | |
26148 | echo "*** The test program compiled, but did not run. This usually means" | |
26149 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
26150 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
26151 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
26152 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
26153 | echo "*** is required on your system" | |
26154 | echo "***" | |
26155 | echo "*** If you have an old version installed, it is best to remove it, although" | |
26156 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
26157 | else | |
26158 | echo "$as_me: failed program was:" >&5 | |
26159 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26160 | ||
26161 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
26162 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | |
26163 | fi | |
ac1cb8d3 VS |
26164 | rm -f conftest.err conftest.$ac_objext \ |
26165 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26166 | CFLAGS="$ac_save_CFLAGS" |
26167 | LIBS="$ac_save_LIBS" | |
26168 | fi | |
26169 | fi | |
26170 | GTK_CFLAGS="" | |
26171 | GTK_LIBS="" | |
26172 | : | |
26173 | fi | |
26174 | ||
26175 | ||
26176 | rm -f conf.gtktest | |
26177 | ||
5001df0d MW |
26178 | |
26179 | case "${host}" in | |
26180 | *-*-solaris2* ) | |
26181 | if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then | |
26182 | GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'` | |
26183 | GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'` | |
26184 | fi | |
26185 | if test "$wxUSE_SHARED" != "yes"; then | |
26186 | GTK_LIBS="$GTK_LIBS -lX11" | |
26187 | fi | |
26188 | esac | |
f597b41c MW |
26189 | fi |
26190 | ||
f34ca037 MW |
26191 | if test -z "$wx_cv_lib_gtk"; then |
26192 | if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then | |
a848cd7e SC |
26193 | |
26194 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
26195 | if test "${with_gtk_prefix+set}" = set; then | |
26196 | withval="$with_gtk_prefix" | |
26197 | gtk_config_prefix="$withval" | |
26198 | else | |
26199 | gtk_config_prefix="" | |
26200 | fi; | |
26201 | ||
26202 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
26203 | if test "${with_gtk_exec_prefix+set}" = set; then | |
26204 | withval="$with_gtk_exec_prefix" | |
26205 | gtk_config_exec_prefix="$withval" | |
26206 | else | |
26207 | gtk_config_exec_prefix="" | |
26208 | fi; | |
26209 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
26210 | if test "${enable_gtktest+set}" = set; then | |
26211 | enableval="$enable_gtktest" | |
26212 | ||
26213 | else | |
26214 | enable_gtktest=yes | |
26215 | fi; | |
26216 | ||
26217 | for module in . $GTK_MODULES | |
26218 | do | |
26219 | case "$module" in | |
26220 | gthread) | |
26221 | gtk_config_args="$gtk_config_args gthread" | |
26222 | ;; | |
26223 | esac | |
26224 | done | |
26225 | ||
26226 | if test x$gtk_config_exec_prefix != x ; then | |
26227 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
26228 | if test x${GTK_CONFIG+set} != xset ; then | |
26229 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
26230 | fi | |
26231 | fi | |
26232 | if test x$gtk_config_prefix != x ; then | |
26233 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
26234 | if test x${GTK_CONFIG+set} != xset ; then | |
26235 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
26236 | fi | |
26237 | fi | |
26238 | ||
26239 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
26240 | set dummy gtk-config; ac_word=$2 | |
26241 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
26242 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
26243 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
26244 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26245 | else | |
26246 | case $GTK_CONFIG in | |
26247 | [\\/]* | ?:[\\/]*) | |
26248 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
26249 | ;; | |
26250 | *) | |
26251 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26252 | for as_dir in $PATH | |
26253 | do | |
26254 | IFS=$as_save_IFS | |
26255 | test -z "$as_dir" && as_dir=. | |
26256 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26257 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
26258 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
26259 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
26260 | break 2 | |
26261 | fi | |
26262 | done | |
26263 | done | |
26264 | ||
26265 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
26266 | ;; | |
26267 | esac | |
26268 | fi | |
26269 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
26270 | ||
26271 | if test -n "$GTK_CONFIG"; then | |
26272 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
26273 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
26274 | else | |
26275 | echo "$as_me:$LINENO: result: no" >&5 | |
26276 | echo "${ECHO_T}no" >&6 | |
26277 | fi | |
26278 | ||
26279 | min_gtk_version=1.2.7 | |
26280 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
26281 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
26282 | no_gtk="" | |
26283 | if test "$GTK_CONFIG" = "no" ; then | |
26284 | no_gtk=yes | |
26285 | else | |
26286 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
26287 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
26288 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
26289 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
26290 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
26291 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
26292 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
26293 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
26294 | if test "x$enable_gtktest" = "xyes" ; then | |
26295 | ac_save_CFLAGS="$CFLAGS" | |
26296 | ac_save_LIBS="$LIBS" | |
26297 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
26298 | LIBS="$GTK_LIBS $LIBS" | |
26299 | rm -f conf.gtktest | |
26300 | if test "$cross_compiling" = yes; then | |
26301 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
26302 | else | |
26303 | cat >conftest.$ac_ext <<_ACEOF | |
26304 | /* confdefs.h. */ | |
26305 | _ACEOF | |
26306 | cat confdefs.h >>conftest.$ac_ext | |
26307 | cat >>conftest.$ac_ext <<_ACEOF | |
26308 | /* end confdefs.h. */ | |
26309 | ||
26310 | #include <gtk/gtk.h> | |
26311 | #include <stdio.h> | |
26312 | #include <stdlib.h> | |
26313 | ||
26314 | int | |
26315 | main () | |
26316 | { | |
26317 | int major, minor, micro; | |
26318 | char *tmp_version; | |
26319 | ||
26320 | system ("touch conf.gtktest"); | |
26321 | ||
26322 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
26323 | tmp_version = g_strdup("$min_gtk_version"); | |
26324 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
26325 | printf("%s, bad version string\n", "$min_gtk_version"); | |
26326 | exit(1); | |
26327 | } | |
26328 | ||
26329 | if ((gtk_major_version != $gtk_config_major_version) || | |
26330 | (gtk_minor_version != $gtk_config_minor_version) || | |
26331 | (gtk_micro_version != $gtk_config_micro_version)) | |
26332 | { | |
26333 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
26334 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
26335 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26336 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
26337 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
26338 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
26339 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
26340 | printf("*** required on your system.\n"); | |
26341 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
26342 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
26343 | printf("*** before re-running configure\n"); | |
26344 | } | |
26345 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
26346 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
26347 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
26348 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
26349 | { | |
26350 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
26351 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
26352 | printf("*** library (version %d.%d.%d)\n", | |
26353 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26354 | } | |
26355 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
26356 | else | |
26357 | { | |
26358 | if ((gtk_major_version > major) || | |
26359 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
26360 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
26361 | { | |
26362 | return 0; | |
26363 | } | |
26364 | else | |
26365 | { | |
26366 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
26367 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26368 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
26369 | major, minor, micro); | |
26370 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
26371 | printf("***\n"); | |
26372 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
26373 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
26374 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
26375 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
26376 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
26377 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
26378 | printf("*** so that the correct libraries are found at run-time))\n"); | |
26379 | } | |
26380 | } | |
26381 | return 1; | |
26382 | } | |
26383 | ||
26384 | _ACEOF | |
26385 | rm -f conftest$ac_exeext | |
26386 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26387 | (eval $ac_link) 2>&5 | |
26388 | ac_status=$? | |
26389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26390 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
26391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26392 | (eval $ac_try) 2>&5 | |
26393 | ac_status=$? | |
26394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26395 | (exit $ac_status); }; }; then | |
26396 | : | |
26397 | else | |
26398 | echo "$as_me: program exited with status $ac_status" >&5 | |
26399 | echo "$as_me: failed program was:" >&5 | |
26400 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26401 | ||
26402 | ( exit $ac_status ) | |
26403 | no_gtk=yes | |
26404 | fi | |
ac1cb8d3 | 26405 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26406 | fi |
26407 | CFLAGS="$ac_save_CFLAGS" | |
26408 | LIBS="$ac_save_LIBS" | |
26409 | fi | |
26410 | fi | |
26411 | if test "x$no_gtk" = x ; then | |
26412 | echo "$as_me:$LINENO: result: yes" >&5 | |
26413 | echo "${ECHO_T}yes" >&6 | |
26414 | wx_cv_lib_gtk=1.2.7 | |
26415 | else | |
26416 | echo "$as_me:$LINENO: result: no" >&5 | |
26417 | echo "${ECHO_T}no" >&6 | |
26418 | if test "$GTK_CONFIG" = "no" ; then | |
26419 | echo "*** The gtk-config script installed by GTK could not be found" | |
26420 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
26421 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
26422 | echo "*** full path to gtk-config." | |
26423 | else | |
26424 | if test -f conf.gtktest ; then | |
26425 | : | |
26426 | else | |
26427 | echo "*** Could not run GTK test program, checking why..." | |
26428 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
26429 | LIBS="$LIBS $GTK_LIBS" | |
26430 | cat >conftest.$ac_ext <<_ACEOF | |
26431 | /* confdefs.h. */ | |
26432 | _ACEOF | |
26433 | cat confdefs.h >>conftest.$ac_ext | |
26434 | cat >>conftest.$ac_ext <<_ACEOF | |
26435 | /* end confdefs.h. */ | |
26436 | ||
26437 | #include <gtk/gtk.h> | |
26438 | #include <stdio.h> | |
26439 | ||
26440 | int | |
26441 | main () | |
26442 | { | |
26443 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
26444 | ; | |
26445 | return 0; | |
26446 | } | |
26447 | _ACEOF | |
26448 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26449 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26450 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26451 | ac_status=$? |
ac1cb8d3 VS |
26452 | grep -v '^ *+' conftest.er1 >conftest.err |
26453 | rm -f conftest.er1 | |
26454 | cat conftest.err >&5 | |
a848cd7e SC |
26455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26456 | (exit $ac_status); } && | |
0093c2fc | 26457 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26459 | (eval $ac_try) 2>&5 | |
26460 | ac_status=$? | |
26461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26462 | (exit $ac_status); }; } && | |
26463 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26465 | (eval $ac_try) 2>&5 | |
26466 | ac_status=$? | |
26467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26468 | (exit $ac_status); }; }; then | |
26469 | echo "*** The test program compiled, but did not run. This usually means" | |
26470 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
26471 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
26472 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
26473 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
26474 | echo "*** is required on your system" | |
26475 | echo "***" | |
26476 | echo "*** If you have an old version installed, it is best to remove it, although" | |
26477 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
26478 | echo "***" | |
26479 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
26480 | echo "*** came with the system with the command" | |
26481 | echo "***" | |
26482 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
26483 | else | |
26484 | echo "$as_me: failed program was:" >&5 | |
26485 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26486 | ||
26487 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
26488 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
26489 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
26490 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
26491 | fi | |
ac1cb8d3 VS |
26492 | rm -f conftest.err conftest.$ac_objext \ |
26493 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26494 | CFLAGS="$ac_save_CFLAGS" |
26495 | LIBS="$ac_save_LIBS" | |
26496 | fi | |
26497 | fi | |
26498 | GTK_CFLAGS="" | |
26499 | GTK_LIBS="" | |
26500 | : | |
26501 | fi | |
26502 | ||
26503 | ||
26504 | rm -f conf.gtktest | |
26505 | ||
26506 | ||
f34ca037 | 26507 | if test -z "$wx_cv_lib_gtk"; then |
a848cd7e SC |
26508 | |
26509 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
26510 | if test "${with_gtk_prefix+set}" = set; then | |
26511 | withval="$with_gtk_prefix" | |
26512 | gtk_config_prefix="$withval" | |
26513 | else | |
26514 | gtk_config_prefix="" | |
26515 | fi; | |
26516 | ||
26517 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
26518 | if test "${with_gtk_exec_prefix+set}" = set; then | |
26519 | withval="$with_gtk_exec_prefix" | |
26520 | gtk_config_exec_prefix="$withval" | |
26521 | else | |
26522 | gtk_config_exec_prefix="" | |
26523 | fi; | |
26524 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
26525 | if test "${enable_gtktest+set}" = set; then | |
26526 | enableval="$enable_gtktest" | |
26527 | ||
26528 | else | |
26529 | enable_gtktest=yes | |
26530 | fi; | |
26531 | ||
26532 | for module in . $GTK_MODULES | |
26533 | do | |
26534 | case "$module" in | |
26535 | gthread) | |
26536 | gtk_config_args="$gtk_config_args gthread" | |
26537 | ;; | |
26538 | esac | |
26539 | done | |
26540 | ||
26541 | if test x$gtk_config_exec_prefix != x ; then | |
26542 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
26543 | if test x${GTK_CONFIG+set} != xset ; then | |
26544 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
26545 | fi | |
26546 | fi | |
26547 | if test x$gtk_config_prefix != x ; then | |
26548 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
26549 | if test x${GTK_CONFIG+set} != xset ; then | |
26550 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
26551 | fi | |
26552 | fi | |
26553 | ||
26554 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
26555 | set dummy gtk-config; ac_word=$2 | |
26556 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
26557 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
26558 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
26559 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26560 | else | |
26561 | case $GTK_CONFIG in | |
26562 | [\\/]* | ?:[\\/]*) | |
26563 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
26564 | ;; | |
26565 | *) | |
26566 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26567 | for as_dir in $PATH | |
26568 | do | |
26569 | IFS=$as_save_IFS | |
26570 | test -z "$as_dir" && as_dir=. | |
26571 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26572 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
26573 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
26574 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
26575 | break 2 | |
26576 | fi | |
26577 | done | |
26578 | done | |
26579 | ||
26580 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
26581 | ;; | |
26582 | esac | |
26583 | fi | |
26584 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
26585 | ||
26586 | if test -n "$GTK_CONFIG"; then | |
26587 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
26588 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
26589 | else | |
26590 | echo "$as_me:$LINENO: result: no" >&5 | |
26591 | echo "${ECHO_T}no" >&6 | |
26592 | fi | |
26593 | ||
26594 | min_gtk_version=1.2.3 | |
26595 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
26596 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
26597 | no_gtk="" | |
26598 | if test "$GTK_CONFIG" = "no" ; then | |
26599 | no_gtk=yes | |
26600 | else | |
26601 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
26602 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
26603 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
26604 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
26605 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
26606 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
26607 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
26608 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
26609 | if test "x$enable_gtktest" = "xyes" ; then | |
26610 | ac_save_CFLAGS="$CFLAGS" | |
26611 | ac_save_LIBS="$LIBS" | |
26612 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
26613 | LIBS="$GTK_LIBS $LIBS" | |
26614 | rm -f conf.gtktest | |
26615 | if test "$cross_compiling" = yes; then | |
26616 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
26617 | else | |
26618 | cat >conftest.$ac_ext <<_ACEOF | |
26619 | /* confdefs.h. */ | |
26620 | _ACEOF | |
26621 | cat confdefs.h >>conftest.$ac_ext | |
26622 | cat >>conftest.$ac_ext <<_ACEOF | |
26623 | /* end confdefs.h. */ | |
26624 | ||
26625 | #include <gtk/gtk.h> | |
26626 | #include <stdio.h> | |
26627 | #include <stdlib.h> | |
26628 | ||
26629 | int | |
26630 | main () | |
26631 | { | |
26632 | int major, minor, micro; | |
26633 | char *tmp_version; | |
26634 | ||
26635 | system ("touch conf.gtktest"); | |
26636 | ||
26637 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
26638 | tmp_version = g_strdup("$min_gtk_version"); | |
26639 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
26640 | printf("%s, bad version string\n", "$min_gtk_version"); | |
26641 | exit(1); | |
26642 | } | |
26643 | ||
26644 | if ((gtk_major_version != $gtk_config_major_version) || | |
26645 | (gtk_minor_version != $gtk_config_minor_version) || | |
26646 | (gtk_micro_version != $gtk_config_micro_version)) | |
26647 | { | |
26648 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
26649 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
26650 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26651 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
26652 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
26653 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
26654 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
26655 | printf("*** required on your system.\n"); | |
26656 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
26657 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
26658 | printf("*** before re-running configure\n"); | |
26659 | } | |
26660 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
26661 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
26662 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
26663 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
26664 | { | |
26665 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
26666 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
26667 | printf("*** library (version %d.%d.%d)\n", | |
26668 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26669 | } | |
26670 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
26671 | else | |
26672 | { | |
26673 | if ((gtk_major_version > major) || | |
26674 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
26675 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
26676 | { | |
26677 | return 0; | |
26678 | } | |
26679 | else | |
26680 | { | |
26681 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
26682 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26683 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
26684 | major, minor, micro); | |
26685 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
26686 | printf("***\n"); | |
26687 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
26688 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
26689 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
26690 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
26691 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
26692 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
26693 | printf("*** so that the correct libraries are found at run-time))\n"); | |
26694 | } | |
26695 | } | |
26696 | return 1; | |
26697 | } | |
26698 | ||
26699 | _ACEOF | |
26700 | rm -f conftest$ac_exeext | |
26701 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26702 | (eval $ac_link) 2>&5 | |
26703 | ac_status=$? | |
26704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26705 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
26706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26707 | (eval $ac_try) 2>&5 | |
26708 | ac_status=$? | |
26709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26710 | (exit $ac_status); }; }; then | |
26711 | : | |
26712 | else | |
26713 | echo "$as_me: program exited with status $ac_status" >&5 | |
26714 | echo "$as_me: failed program was:" >&5 | |
26715 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26716 | ||
26717 | ( exit $ac_status ) | |
26718 | no_gtk=yes | |
26719 | fi | |
ac1cb8d3 | 26720 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26721 | fi |
26722 | CFLAGS="$ac_save_CFLAGS" | |
26723 | LIBS="$ac_save_LIBS" | |
26724 | fi | |
26725 | fi | |
26726 | if test "x$no_gtk" = x ; then | |
26727 | echo "$as_me:$LINENO: result: yes" >&5 | |
26728 | echo "${ECHO_T}yes" >&6 | |
26729 | wx_cv_lib_gtk=1.2.3 | |
26730 | else | |
26731 | echo "$as_me:$LINENO: result: no" >&5 | |
26732 | echo "${ECHO_T}no" >&6 | |
26733 | if test "$GTK_CONFIG" = "no" ; then | |
26734 | echo "*** The gtk-config script installed by GTK could not be found" | |
26735 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
26736 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
26737 | echo "*** full path to gtk-config." | |
26738 | else | |
26739 | if test -f conf.gtktest ; then | |
26740 | : | |
26741 | else | |
26742 | echo "*** Could not run GTK test program, checking why..." | |
26743 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
26744 | LIBS="$LIBS $GTK_LIBS" | |
26745 | cat >conftest.$ac_ext <<_ACEOF | |
26746 | /* confdefs.h. */ | |
26747 | _ACEOF | |
26748 | cat confdefs.h >>conftest.$ac_ext | |
26749 | cat >>conftest.$ac_ext <<_ACEOF | |
26750 | /* end confdefs.h. */ | |
26751 | ||
26752 | #include <gtk/gtk.h> | |
26753 | #include <stdio.h> | |
26754 | ||
26755 | int | |
26756 | main () | |
26757 | { | |
26758 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
26759 | ; | |
26760 | return 0; | |
26761 | } | |
26762 | _ACEOF | |
26763 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26764 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26765 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26766 | ac_status=$? |
ac1cb8d3 VS |
26767 | grep -v '^ *+' conftest.er1 >conftest.err |
26768 | rm -f conftest.er1 | |
26769 | cat conftest.err >&5 | |
a848cd7e SC |
26770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26771 | (exit $ac_status); } && | |
0093c2fc | 26772 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26774 | (eval $ac_try) 2>&5 | |
26775 | ac_status=$? | |
26776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26777 | (exit $ac_status); }; } && | |
26778 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26780 | (eval $ac_try) 2>&5 | |
26781 | ac_status=$? | |
26782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26783 | (exit $ac_status); }; }; then | |
26784 | echo "*** The test program compiled, but did not run. This usually means" | |
26785 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
26786 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
26787 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
26788 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
26789 | echo "*** is required on your system" | |
26790 | echo "***" | |
26791 | echo "*** If you have an old version installed, it is best to remove it, although" | |
26792 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
26793 | echo "***" | |
26794 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
26795 | echo "*** came with the system with the command" | |
26796 | echo "***" | |
26797 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
26798 | else | |
26799 | echo "$as_me: failed program was:" >&5 | |
26800 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26801 | ||
26802 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
26803 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
26804 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
26805 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
26806 | fi | |
ac1cb8d3 VS |
26807 | rm -f conftest.err conftest.$ac_objext \ |
26808 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26809 | CFLAGS="$ac_save_CFLAGS" |
26810 | LIBS="$ac_save_LIBS" | |
26811 | fi | |
26812 | fi | |
26813 | GTK_CFLAGS="" | |
26814 | GTK_LIBS="" | |
26815 | : | |
26816 | fi | |
26817 | ||
26818 | ||
26819 | rm -f conf.gtktest | |
26820 | ||
f34ca037 | 26821 | fi |
a848cd7e SC |
26822 | fi |
26823 | fi | |
26824 | ||
26825 | if test -z "$wx_cv_lib_gtk"; then | |
26826 | wx_cv_lib_gtk=none | |
26827 | else | |
26828 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
d2822091 | 26829 | wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'` |
a848cd7e SC |
26830 | fi |
26831 | ||
26832 | ||
26833 | fi | |
26834 | ||
26835 | ||
26836 | if test "$gtk_version_cached" = 1; then | |
26837 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 | |
26838 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
26839 | fi | |
26840 | ||
26841 | case "$wx_cv_lib_gtk" in | |
26842 | 2.0) WXGTK20=1 | |
26843 | TOOLKIT_VERSION=2 | |
26844 | ;; | |
26845 | 1.2.7) WXGTK127=1 | |
26846 | WXGTK12=1 | |
26847 | ;; | |
26848 | 1.2.3) WXGTK12=1 | |
26849 | ;; | |
26850 | *) { { echo "$as_me:$LINENO: error: | |
f597b41c MW |
26851 | The development files for GTK+ were not found. For GTK+ 2, please |
26852 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
26853 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
26854 | and that the version is 1.2.3 or above. Also check that the | |
26855 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
26856 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e SC |
26857 | " >&5 |
26858 | echo "$as_me: error: | |
f597b41c MW |
26859 | The development files for GTK+ were not found. For GTK+ 2, please |
26860 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
26861 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
26862 | and that the version is 1.2.3 or above. Also check that the | |
26863 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
26864 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e SC |
26865 | " >&2;} |
26866 | { (exit 1); exit 1; }; } | |
26867 | ;; | |
26868 | esac | |
26869 | ||
26870 | if test "$WXGTK20" = 1; then | |
304205f1 VS |
26871 | save_CFLAGS="$CFLAGS" |
26872 | save_LIBS="$LIBS" | |
9d271838 | 26873 | CFLAGS="$CFLAGS $wx_cv_cflags_gtk" |
abc736fd | 26874 | LIBS="$LIBS $wx_cv_libs_gtk" |
304205f1 | 26875 | |
d12aef51 VZ |
26876 | echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5 |
26877 | echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6 | |
26878 | cat >conftest.$ac_ext <<_ACEOF | |
304205f1 VS |
26879 | /* confdefs.h. */ |
26880 | _ACEOF | |
26881 | cat confdefs.h >>conftest.$ac_ext | |
26882 | cat >>conftest.$ac_ext <<_ACEOF | |
26883 | /* end confdefs.h. */ | |
304205f1 | 26884 | |
d12aef51 | 26885 | #include <gtk/gtk.h> |
304205f1 | 26886 | |
d12aef51 VZ |
26887 | int |
26888 | main () | |
26889 | { | |
304205f1 | 26890 | |
d12aef51 | 26891 | void *f = gtk_icon_size_lookup; |
abc736fd MW |
26892 | |
26893 | ; | |
26894 | return 0; | |
26895 | } | |
26896 | _ACEOF | |
26897 | rm -f conftest.$ac_objext | |
26898 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26899 | (eval $ac_compile) 2>conftest.er1 | |
26900 | ac_status=$? | |
26901 | grep -v '^ *+' conftest.er1 >conftest.err | |
26902 | rm -f conftest.er1 | |
26903 | cat conftest.err >&5 | |
26904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26905 | (exit $ac_status); } && | |
0093c2fc | 26906 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
abc736fd MW |
26907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26908 | (eval $ac_try) 2>&5 | |
26909 | ac_status=$? | |
26910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26911 | (exit $ac_status); }; } && | |
26912 | { ac_try='test -s conftest.$ac_objext' | |
26913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26914 | (eval $ac_try) 2>&5 | |
26915 | ac_status=$? | |
26916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26917 | (exit $ac_status); }; }; then | |
26918 | ||
26919 | echo "$as_me:$LINENO: result: no" >&5 | |
26920 | echo "${ECHO_T}no" >&6 | |
26921 | ||
26922 | else | |
26923 | echo "$as_me: failed program was:" >&5 | |
26924 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26925 | ||
26926 | ||
26927 | cat >>confdefs.h <<\_ACEOF | |
26928 | #define NEED_GTK_ICON_SIZE_LOOKUP 1 | |
26929 | _ACEOF | |
26930 | ||
26931 | echo "$as_me:$LINENO: result: yes" >&5 | |
26932 | echo "${ECHO_T}yes" >&6 | |
26933 | ||
26934 | fi | |
26935 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
26936 | ||
9755e73b VS |
26937 | echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5 |
26938 | echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6 | |
26939 | cat >conftest.$ac_ext <<_ACEOF | |
26940 | /* confdefs.h. */ | |
26941 | _ACEOF | |
26942 | cat confdefs.h >>conftest.$ac_ext | |
26943 | cat >>conftest.$ac_ext <<_ACEOF | |
26944 | /* end confdefs.h. */ | |
26945 | ||
26946 | #include <gtk/gtk.h> | |
26947 | ||
26948 | int | |
26949 | main () | |
26950 | { | |
26951 | ||
26952 | #if !GTK_CHECK_VERSION(2,4,0) | |
04e525a0 | 26953 | Not GTK+ 2.4 |
9755e73b VS |
26954 | #endif |
26955 | ||
26956 | ; | |
26957 | return 0; | |
26958 | } | |
26959 | _ACEOF | |
26960 | rm -f conftest.$ac_objext | |
26961 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26962 | (eval $ac_compile) 2>conftest.er1 | |
26963 | ac_status=$? | |
26964 | grep -v '^ *+' conftest.er1 >conftest.err | |
26965 | rm -f conftest.er1 | |
26966 | cat conftest.err >&5 | |
26967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26968 | (exit $ac_status); } && | |
0093c2fc | 26969 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9755e73b VS |
26970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26971 | (eval $ac_try) 2>&5 | |
26972 | ac_status=$? | |
26973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26974 | (exit $ac_status); }; } && | |
26975 | { ac_try='test -s conftest.$ac_objext' | |
26976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26977 | (eval $ac_try) 2>&5 | |
26978 | ac_status=$? | |
26979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26980 | (exit $ac_status); }; }; then | |
26981 | ||
26982 | cat >>confdefs.h <<\_ACEOF | |
26983 | #define __WXGTK24__ 1 | |
26984 | _ACEOF | |
26985 | ||
26986 | echo "$as_me:$LINENO: result: yes" >&5 | |
26987 | echo "${ECHO_T}yes" >&6 | |
26988 | ||
26989 | else | |
26990 | echo "$as_me: failed program was:" >&5 | |
26991 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26992 | ||
26993 | ||
26994 | echo "$as_me:$LINENO: result: no" >&5 | |
26995 | echo "${ECHO_T}no" >&6 | |
26996 | ||
26997 | fi | |
26998 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
26999 | ||
304205f1 VS |
27000 | CFLAGS="$save_CFLAGS" |
27001 | LIBS="$save_LIBS" | |
a848cd7e SC |
27002 | else |
27003 | if test "$wxUSE_UNICODE" = "yes"; then | |
27004 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 | |
27005 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
27006 | wxUSE_UNICODE=no | |
27007 | fi | |
27008 | fi | |
27009 | ||
27010 | if test "$USE_DARWIN" != 1; then | |
27011 | ||
27012 | for ac_func in poll | |
27013 | do | |
27014 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
27015 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27016 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27017 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27018 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27019 | else | |
27020 | cat >conftest.$ac_ext <<_ACEOF | |
27021 | /* confdefs.h. */ | |
27022 | _ACEOF | |
27023 | cat confdefs.h >>conftest.$ac_ext | |
27024 | cat >>conftest.$ac_ext <<_ACEOF | |
27025 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
27026 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
27027 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
27028 | #define $ac_func innocuous_$ac_func | |
27029 | ||
a848cd7e SC |
27030 | /* System header to define __stub macros and hopefully few prototypes, |
27031 | which can conflict with char $ac_func (); below. | |
27032 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27033 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 27034 | |
a848cd7e SC |
27035 | #ifdef __STDC__ |
27036 | # include <limits.h> | |
27037 | #else | |
27038 | # include <assert.h> | |
27039 | #endif | |
ac1cb8d3 VS |
27040 | |
27041 | #undef $ac_func | |
27042 | ||
a848cd7e SC |
27043 | /* Override any gcc2 internal prototype to avoid an error. */ |
27044 | #ifdef __cplusplus | |
27045 | extern "C" | |
27046 | { | |
27047 | #endif | |
27048 | /* We use char because int might match the return type of a gcc2 | |
27049 | builtin and then its argument prototype would still apply. */ | |
27050 | char $ac_func (); | |
27051 | /* The GNU C library defines this for functions which it implements | |
27052 | to always fail with ENOSYS. Some functions are actually named | |
27053 | something starting with __ and the normal name is an alias. */ | |
27054 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27055 | choke me | |
27056 | #else | |
27057 | char (*f) () = $ac_func; | |
27058 | #endif | |
27059 | #ifdef __cplusplus | |
27060 | } | |
27061 | #endif | |
27062 | ||
27063 | int | |
27064 | main () | |
27065 | { | |
27066 | return f != $ac_func; | |
27067 | ; | |
27068 | return 0; | |
27069 | } | |
27070 | _ACEOF | |
27071 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27072 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27073 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27074 | ac_status=$? |
ac1cb8d3 VS |
27075 | grep -v '^ *+' conftest.er1 >conftest.err |
27076 | rm -f conftest.er1 | |
27077 | cat conftest.err >&5 | |
a848cd7e SC |
27078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27079 | (exit $ac_status); } && | |
0093c2fc | 27080 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27082 | (eval $ac_try) 2>&5 | |
27083 | ac_status=$? | |
27084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27085 | (exit $ac_status); }; } && | |
27086 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27088 | (eval $ac_try) 2>&5 | |
27089 | ac_status=$? | |
27090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27091 | (exit $ac_status); }; }; then | |
27092 | eval "$as_ac_var=yes" | |
27093 | else | |
27094 | echo "$as_me: failed program was:" >&5 | |
27095 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27096 | ||
27097 | eval "$as_ac_var=no" | |
27098 | fi | |
ac1cb8d3 VS |
27099 | rm -f conftest.err conftest.$ac_objext \ |
27100 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27101 | fi |
27102 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27103 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27104 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27105 | cat >>confdefs.h <<_ACEOF | |
27106 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27107 | _ACEOF | |
27108 | ||
27109 | fi | |
27110 | done | |
27111 | ||
27112 | fi | |
27113 | ||
27114 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
27115 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" | |
27116 | ||
27117 | AFMINSTALL=afminstall | |
27118 | TOOLKIT=GTK | |
27119 | GUIDIST=GTK_DIST | |
27120 | ||
27121 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 | |
27122 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
27123 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
27124 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27125 | else | |
27126 | ac_check_lib_save_LIBS=$LIBS | |
27127 | LIBS="-lgdk $LIBS" | |
27128 | cat >conftest.$ac_ext <<_ACEOF | |
27129 | /* confdefs.h. */ | |
27130 | _ACEOF | |
27131 | cat confdefs.h >>conftest.$ac_ext | |
27132 | cat >>conftest.$ac_ext <<_ACEOF | |
27133 | /* end confdefs.h. */ | |
27134 | ||
27135 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27136 | #ifdef __cplusplus | |
27137 | extern "C" | |
27138 | #endif | |
27139 | /* We use char because int might match the return type of a gcc2 | |
27140 | builtin and then its argument prototype would still apply. */ | |
27141 | char gdk_im_open (); | |
27142 | int | |
27143 | main () | |
27144 | { | |
27145 | gdk_im_open (); | |
27146 | ; | |
27147 | return 0; | |
27148 | } | |
27149 | _ACEOF | |
27150 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27151 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27152 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27153 | ac_status=$? |
ac1cb8d3 VS |
27154 | grep -v '^ *+' conftest.er1 >conftest.err |
27155 | rm -f conftest.er1 | |
27156 | cat conftest.err >&5 | |
a848cd7e SC |
27157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27158 | (exit $ac_status); } && | |
0093c2fc | 27159 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27161 | (eval $ac_try) 2>&5 | |
27162 | ac_status=$? | |
27163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27164 | (exit $ac_status); }; } && | |
27165 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27167 | (eval $ac_try) 2>&5 | |
27168 | ac_status=$? | |
27169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27170 | (exit $ac_status); }; }; then | |
27171 | ac_cv_lib_gdk_gdk_im_open=yes | |
27172 | else | |
27173 | echo "$as_me: failed program was:" >&5 | |
27174 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27175 | ||
27176 | ac_cv_lib_gdk_gdk_im_open=no | |
27177 | fi | |
ac1cb8d3 VS |
27178 | rm -f conftest.err conftest.$ac_objext \ |
27179 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27180 | LIBS=$ac_check_lib_save_LIBS |
27181 | fi | |
27182 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
27183 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
27184 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
27185 | cat >>confdefs.h <<\_ACEOF | |
27186 | #define HAVE_XIM 1 | |
27187 | _ACEOF | |
27188 | ||
27189 | fi | |
27190 | ||
27191 | ||
27192 | ||
27193 | if test "$wxUSE_GPE" = "yes"; then | |
27194 | echo "$as_me:$LINENO: checking for gpewidget library" >&5 | |
27195 | echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6 | |
27196 | ||
0ad5d837 VZ |
27197 | ac_find_libraries= |
27198 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 27199 | do |
3eca31dc | 27200 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
27201 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then |
27202 | ac_find_libraries=$ac_dir | |
27203 | break 2 | |
27204 | fi | |
27205 | done | |
27206 | done | |
27207 | ||
27208 | if test "$ac_find_libraries" != "" ; then | |
27209 | ||
0ad5d837 | 27210 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
27211 | ac_path_to_link="" |
27212 | else | |
0ad5d837 VZ |
27213 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
27214 | result=$? | |
27215 | if test $result = 0; then | |
27216 | ac_path_to_link="" | |
27217 | else | |
27218 | ac_path_to_link=" -L$ac_find_libraries" | |
27219 | fi | |
a848cd7e SC |
27220 | fi |
27221 | ||
27222 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
27223 | WXGPE=1 | |
0ad5d837 VZ |
27224 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 |
27225 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e SC |
27226 | else |
27227 | echo "$as_me:$LINENO: result: not found" >&5 | |
27228 | echo "${ECHO_T}not found" >&6 | |
27229 | fi | |
27230 | ||
27231 | fi | |
27232 | fi | |
27233 | ||
27234 | if test "$wxUSE_MGL" = 1; then | |
27235 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 | |
27236 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
27237 | if test "x$MGL_ROOT" = x ; then | |
27238 | echo "$as_me:$LINENO: result: not found" >&5 | |
27239 | echo "${ECHO_T}not found" >&6 | |
27240 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
27241 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
27242 | { (exit 1); exit 1; }; } | |
27243 | else | |
27244 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 | |
27245 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
27246 | fi | |
27247 | ||
27248 | echo "$as_me:$LINENO: checking for libmgl location" >&5 | |
27249 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
27250 | case "${host}" in | |
27251 | *-*-linux* ) | |
27252 | if test "x$wxUSE_SHARED" = xyes ; then | |
27253 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
27254 | else | |
27255 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" | |
27256 | fi | |
27257 | ;; | |
27258 | *-pc-msdosdjgpp ) | |
27259 | mgl_os_candidates="dos32/dj2" | |
27260 | ;; | |
27261 | *) | |
27262 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 | |
27263 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
27264 | { (exit 1); exit 1; }; } | |
27265 | esac | |
27266 | ||
27267 | mgl_lib_type="" | |
27268 | mgl_os="" | |
27269 | ||
27270 | for mgl_os_i in $mgl_os_candidates ; do | |
27271 | if test "x$mgl_os" = x ; then | |
27272 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
27273 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
27274 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
27275 | mgl_lib_type=debug | |
27276 | mgl_os=$mgl_os_i | |
27277 | fi | |
27278 | fi | |
27279 | if test "x$mgl_lib_type" = x ; then | |
27280 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
27281 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
27282 | mgl_lib_type=release | |
27283 | mgl_os=$mgl_os_i | |
27284 | fi | |
27285 | fi | |
27286 | fi | |
27287 | done | |
27288 | ||
27289 | if test "x$mgl_os" = x ; then | |
27290 | echo "$as_me:$LINENO: result: not found" >&5 | |
27291 | echo "${ECHO_T}not found" >&6 | |
27292 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
27293 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
27294 | { (exit 1); exit 1; }; } | |
27295 | fi | |
27296 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 | |
27297 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
27298 | ||
27299 | wxUSE_UNIVERSAL="yes" | |
27300 | ||
27301 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
27302 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
27303 | ||
27304 | AFMINSTALL=afminstall | |
27305 | TOOLKIT=MGL | |
27306 | GUIDIST=MGL_DIST | |
27307 | fi | |
27308 | ||
27309 | if test "$wxUSE_MICROWIN" = 1; then | |
27310 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 | |
27311 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
27312 | if test "x$MICROWINDOWS" = x ; then | |
27313 | echo "$as_me:$LINENO: result: not found" >&5 | |
27314 | echo "${ECHO_T}not found" >&6 | |
27315 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
27316 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
27317 | { (exit 1); exit 1; }; } | |
27318 | else | |
27319 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 | |
27320 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
27321 | fi | |
27322 | ||
27323 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
27324 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 | |
27325 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
27326 | else | |
27327 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 | |
27328 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
27329 | { (exit 1); exit 1; }; } | |
27330 | fi | |
27331 | ||
27332 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
27333 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
27334 | ||
27335 | wxUSE_UNIVERSAL="yes" | |
27336 | ||
27337 | AFMINSTALL=afminstall | |
27338 | TOOLKIT=MICROWIN | |
27339 | GUIDIST=MICROWIN_DIST | |
27340 | ||
27341 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
27342 | fi | |
27343 | ||
74b84332 | 27344 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
0093c2fc VZ |
27345 | |
27346 | if test "x$ac_path_x_has_been_run" != xyes; then | |
27347 | echo "$as_me:$LINENO: checking for X" >&5 | |
a848cd7e SC |
27348 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
27349 | ||
0093c2fc | 27350 | ac_path_x_has_been_run=yes |
a848cd7e SC |
27351 | |
27352 | # Check whether --with-x or --without-x was given. | |
27353 | if test "${with_x+set}" = set; then | |
27354 | withval="$with_x" | |
27355 | ||
27356 | fi; | |
27357 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
27358 | if test "x$with_x" = xno; then | |
27359 | # The user explicitly disabled X. | |
27360 | have_x=disabled | |
27361 | else | |
27362 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
27363 | # Both variables are already set. | |
27364 | have_x=yes | |
27365 | else | |
27366 | if test "${ac_cv_have_x+set}" = set; then | |
27367 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27368 | else | |
27369 | # One or both of the vars are not set, and there is no cached value. | |
27370 | ac_x_includes=no ac_x_libraries=no | |
27371 | rm -fr conftest.dir | |
27372 | if mkdir conftest.dir; then | |
27373 | cd conftest.dir | |
27374 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
27375 | cat >Imakefile <<'_ACEOF' | |
27376 | acfindx: | |
27377 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
27378 | _ACEOF | |
27379 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
27380 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
27381 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
27382 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
27383 | for ac_extension in a so sl; do | |
27384 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
ac1cb8d3 VS |
27385 | test -f $ac_im_libdir/libX11.$ac_extension; then |
27386 | ac_im_usrlibdir=$ac_im_libdir; break | |
a848cd7e SC |
27387 | fi |
27388 | done | |
27389 | # Screen out bogus values from the imake configuration. They are | |
27390 | # bogus both because they are the default anyway, and because | |
27391 | # using them would break gcc on systems where it needs fixed includes. | |
27392 | case $ac_im_incroot in | |
27393 | /usr/include) ;; | |
27394 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
27395 | esac | |
27396 | case $ac_im_usrlibdir in | |
27397 | /usr/lib | /lib) ;; | |
27398 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
27399 | esac | |
27400 | fi | |
27401 | cd .. | |
27402 | rm -fr conftest.dir | |
27403 | fi | |
27404 | ||
27405 | # Standard set of common directories for X headers. | |
27406 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
27407 | ac_x_header_dirs=' | |
27408 | /usr/X11/include | |
27409 | /usr/X11R6/include | |
27410 | /usr/X11R5/include | |
27411 | /usr/X11R4/include | |
27412 | ||
27413 | /usr/include/X11 | |
27414 | /usr/include/X11R6 | |
27415 | /usr/include/X11R5 | |
27416 | /usr/include/X11R4 | |
27417 | ||
27418 | /usr/local/X11/include | |
27419 | /usr/local/X11R6/include | |
27420 | /usr/local/X11R5/include | |
27421 | /usr/local/X11R4/include | |
27422 | ||
27423 | /usr/local/include/X11 | |
27424 | /usr/local/include/X11R6 | |
27425 | /usr/local/include/X11R5 | |
27426 | /usr/local/include/X11R4 | |
27427 | ||
27428 | /usr/X386/include | |
27429 | /usr/x386/include | |
27430 | /usr/XFree86/include/X11 | |
27431 | ||
27432 | /usr/include | |
27433 | /usr/local/include | |
27434 | /usr/unsupported/include | |
27435 | /usr/athena/include | |
27436 | /usr/local/x11r5/include | |
27437 | /usr/lpp/Xamples/include | |
27438 | ||
27439 | /usr/openwin/include | |
27440 | /usr/openwin/share/include' | |
27441 | ||
27442 | if test "$ac_x_includes" = no; then | |
0093c2fc | 27443 | # Guess where to find include files, by looking for a specified header file. |
a848cd7e SC |
27444 | # First, try using that file with no special directory specified. |
27445 | cat >conftest.$ac_ext <<_ACEOF | |
27446 | /* confdefs.h. */ | |
27447 | _ACEOF | |
27448 | cat confdefs.h >>conftest.$ac_ext | |
27449 | cat >>conftest.$ac_ext <<_ACEOF | |
27450 | /* end confdefs.h. */ | |
27451 | #include <X11/Intrinsic.h> | |
27452 | _ACEOF | |
27453 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27454 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27455 | ac_status=$? | |
27456 | grep -v '^ *+' conftest.er1 >conftest.err | |
27457 | rm -f conftest.er1 | |
27458 | cat conftest.err >&5 | |
27459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27460 | (exit $ac_status); } >/dev/null; then | |
27461 | if test -s conftest.err; then | |
27462 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 27463 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
27464 | else |
27465 | ac_cpp_err= | |
27466 | fi | |
27467 | else | |
27468 | ac_cpp_err=yes | |
27469 | fi | |
27470 | if test -z "$ac_cpp_err"; then | |
27471 | # We can compile using X headers with no special include directory. | |
27472 | ac_x_includes= | |
27473 | else | |
27474 | echo "$as_me: failed program was:" >&5 | |
27475 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27476 | ||
27477 | for ac_dir in $ac_x_header_dirs; do | |
27478 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
27479 | ac_x_includes=$ac_dir | |
27480 | break | |
27481 | fi | |
27482 | done | |
27483 | fi | |
27484 | rm -f conftest.err conftest.$ac_ext | |
27485 | fi # $ac_x_includes = no | |
27486 | ||
27487 | if test "$ac_x_libraries" = no; then | |
27488 | # Check for the libraries. | |
27489 | # See if we find them without any special options. | |
27490 | # Don't add to $LIBS permanently. | |
27491 | ac_save_LIBS=$LIBS | |
27492 | LIBS="-lXt $LIBS" | |
27493 | cat >conftest.$ac_ext <<_ACEOF | |
27494 | /* confdefs.h. */ | |
27495 | _ACEOF | |
27496 | cat confdefs.h >>conftest.$ac_ext | |
27497 | cat >>conftest.$ac_ext <<_ACEOF | |
27498 | /* end confdefs.h. */ | |
27499 | #include <X11/Intrinsic.h> | |
27500 | int | |
27501 | main () | |
27502 | { | |
27503 | XtMalloc (0) | |
27504 | ; | |
27505 | return 0; | |
27506 | } | |
27507 | _ACEOF | |
27508 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27509 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27510 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27511 | ac_status=$? |
ac1cb8d3 VS |
27512 | grep -v '^ *+' conftest.er1 >conftest.err |
27513 | rm -f conftest.er1 | |
27514 | cat conftest.err >&5 | |
a848cd7e SC |
27515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27516 | (exit $ac_status); } && | |
0093c2fc | 27517 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27519 | (eval $ac_try) 2>&5 | |
27520 | ac_status=$? | |
27521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27522 | (exit $ac_status); }; } && | |
27523 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27525 | (eval $ac_try) 2>&5 | |
27526 | ac_status=$? | |
27527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27528 | (exit $ac_status); }; }; then | |
27529 | LIBS=$ac_save_LIBS | |
27530 | # We can link X programs with no special library path. | |
27531 | ac_x_libraries= | |
27532 | else | |
27533 | echo "$as_me: failed program was:" >&5 | |
27534 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27535 | ||
27536 | LIBS=$ac_save_LIBS | |
27537 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
27538 | do | |
27539 | # Don't even attempt the hair of trying to link an X program! | |
27540 | for ac_extension in a so sl; do | |
27541 | if test -r $ac_dir/libXt.$ac_extension; then | |
27542 | ac_x_libraries=$ac_dir | |
27543 | break 2 | |
27544 | fi | |
27545 | done | |
27546 | done | |
27547 | fi | |
ac1cb8d3 VS |
27548 | rm -f conftest.err conftest.$ac_objext \ |
27549 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27550 | fi # $ac_x_libraries = no |
27551 | ||
27552 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
27553 | # Didn't find X anywhere. Cache the known absence of X. | |
27554 | ac_cv_have_x="have_x=no" | |
27555 | else | |
27556 | # Record where we found X for the cache. | |
27557 | ac_cv_have_x="have_x=yes \ | |
ac1cb8d3 | 27558 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
a848cd7e SC |
27559 | fi |
27560 | fi | |
27561 | ||
27562 | fi | |
27563 | eval "$ac_cv_have_x" | |
27564 | fi # $with_x != no | |
27565 | ||
27566 | if test "$have_x" != yes; then | |
27567 | echo "$as_me:$LINENO: result: $have_x" >&5 | |
27568 | echo "${ECHO_T}$have_x" >&6 | |
27569 | no_x=yes | |
27570 | else | |
27571 | # If each of the values was on the command line, it overrides each guess. | |
27572 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
27573 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
27574 | # Update the cache value to reflect the command line values. | |
27575 | ac_cv_have_x="have_x=yes \ | |
27576 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
0093c2fc VZ |
27577 | # It might be that x_includes is empty (headers are found in the |
27578 | # standard search path. Then output the corresponding message | |
27579 | ac_out_x_includes=$x_includes | |
27580 | test "x$x_includes" = x && ac_out_x_includes="in standard search path" | |
27581 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5 | |
27582 | echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6 | |
a848cd7e SC |
27583 | fi |
27584 | ||
0093c2fc | 27585 | fi |
a848cd7e SC |
27586 | if test "$no_x" = yes; then |
27587 | # Not all programs may use this symbol, but it does not hurt to define it. | |
27588 | ||
27589 | cat >>confdefs.h <<\_ACEOF | |
27590 | #define X_DISPLAY_MISSING 1 | |
27591 | _ACEOF | |
27592 | ||
27593 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
27594 | else | |
27595 | if test -n "$x_includes"; then | |
27596 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
27597 | fi | |
27598 | ||
27599 | # It would also be nice to do this for all -L options, not just this one. | |
27600 | if test -n "$x_libraries"; then | |
27601 | X_LIBS="$X_LIBS -L$x_libraries" | |
27602 | # For Solaris; some versions of Sun CC require a space after -R and | |
27603 | # others require no space. Words are not sufficient . . . . | |
27604 | case `(uname -sr) 2>/dev/null` in | |
27605 | "SunOS 5"*) | |
27606 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
27607 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
27608 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
27609 | cat >conftest.$ac_ext <<_ACEOF | |
27610 | /* confdefs.h. */ | |
27611 | _ACEOF | |
27612 | cat confdefs.h >>conftest.$ac_ext | |
27613 | cat >>conftest.$ac_ext <<_ACEOF | |
27614 | /* end confdefs.h. */ | |
27615 | ||
27616 | int | |
27617 | main () | |
27618 | { | |
27619 | ||
27620 | ; | |
27621 | return 0; | |
27622 | } | |
27623 | _ACEOF | |
27624 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27625 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27626 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27627 | ac_status=$? |
ac1cb8d3 VS |
27628 | grep -v '^ *+' conftest.er1 >conftest.err |
27629 | rm -f conftest.er1 | |
27630 | cat conftest.err >&5 | |
a848cd7e SC |
27631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27632 | (exit $ac_status); } && | |
0093c2fc | 27633 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27635 | (eval $ac_try) 2>&5 | |
27636 | ac_status=$? | |
27637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27638 | (exit $ac_status); }; } && | |
27639 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27641 | (eval $ac_try) 2>&5 | |
27642 | ac_status=$? | |
27643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27644 | (exit $ac_status); }; }; then | |
27645 | ac_R_nospace=yes | |
27646 | else | |
27647 | echo "$as_me: failed program was:" >&5 | |
27648 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27649 | ||
27650 | ac_R_nospace=no | |
27651 | fi | |
ac1cb8d3 VS |
27652 | rm -f conftest.err conftest.$ac_objext \ |
27653 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27654 | if test $ac_R_nospace = yes; then |
27655 | echo "$as_me:$LINENO: result: no" >&5 | |
27656 | echo "${ECHO_T}no" >&6 | |
27657 | X_LIBS="$X_LIBS -R$x_libraries" | |
27658 | else | |
27659 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
27660 | cat >conftest.$ac_ext <<_ACEOF | |
27661 | /* confdefs.h. */ | |
27662 | _ACEOF | |
27663 | cat confdefs.h >>conftest.$ac_ext | |
27664 | cat >>conftest.$ac_ext <<_ACEOF | |
27665 | /* end confdefs.h. */ | |
27666 | ||
27667 | int | |
27668 | main () | |
27669 | { | |
27670 | ||
27671 | ; | |
27672 | return 0; | |
27673 | } | |
27674 | _ACEOF | |
27675 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27676 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27677 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27678 | ac_status=$? |
ac1cb8d3 VS |
27679 | grep -v '^ *+' conftest.er1 >conftest.err |
27680 | rm -f conftest.er1 | |
27681 | cat conftest.err >&5 | |
a848cd7e SC |
27682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27683 | (exit $ac_status); } && | |
0093c2fc | 27684 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27686 | (eval $ac_try) 2>&5 | |
27687 | ac_status=$? | |
27688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27689 | (exit $ac_status); }; } && | |
27690 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27692 | (eval $ac_try) 2>&5 | |
27693 | ac_status=$? | |
27694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27695 | (exit $ac_status); }; }; then | |
27696 | ac_R_space=yes | |
27697 | else | |
27698 | echo "$as_me: failed program was:" >&5 | |
27699 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27700 | ||
27701 | ac_R_space=no | |
27702 | fi | |
ac1cb8d3 VS |
27703 | rm -f conftest.err conftest.$ac_objext \ |
27704 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27705 | if test $ac_R_space = yes; then |
27706 | echo "$as_me:$LINENO: result: yes" >&5 | |
27707 | echo "${ECHO_T}yes" >&6 | |
27708 | X_LIBS="$X_LIBS -R $x_libraries" | |
27709 | else | |
27710 | echo "$as_me:$LINENO: result: neither works" >&5 | |
27711 | echo "${ECHO_T}neither works" >&6 | |
27712 | fi | |
27713 | fi | |
27714 | LIBS=$ac_xsave_LIBS | |
27715 | esac | |
27716 | fi | |
27717 | ||
27718 | # Check for system-dependent libraries X programs must link with. | |
27719 | # Do this before checking for the system-independent R6 libraries | |
27720 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
27721 | ||
27722 | if test "$ISC" = yes; then | |
27723 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
27724 | else | |
27725 | # Martyn Johnson says this is needed for Ultrix, if the X | |
27726 | # libraries were built with DECnet support. And Karl Berry says | |
27727 | # the Alpha needs dnet_stub (dnet does not exist). | |
27728 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
27729 | cat >conftest.$ac_ext <<_ACEOF | |
27730 | /* confdefs.h. */ | |
27731 | _ACEOF | |
27732 | cat confdefs.h >>conftest.$ac_ext | |
27733 | cat >>conftest.$ac_ext <<_ACEOF | |
27734 | /* end confdefs.h. */ | |
27735 | ||
27736 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27737 | #ifdef __cplusplus | |
27738 | extern "C" | |
27739 | #endif | |
27740 | /* We use char because int might match the return type of a gcc2 | |
27741 | builtin and then its argument prototype would still apply. */ | |
27742 | char XOpenDisplay (); | |
27743 | int | |
27744 | main () | |
27745 | { | |
27746 | XOpenDisplay (); | |
27747 | ; | |
27748 | return 0; | |
27749 | } | |
27750 | _ACEOF | |
27751 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27752 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27753 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27754 | ac_status=$? |
ac1cb8d3 VS |
27755 | grep -v '^ *+' conftest.er1 >conftest.err |
27756 | rm -f conftest.er1 | |
27757 | cat conftest.err >&5 | |
a848cd7e SC |
27758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27759 | (exit $ac_status); } && | |
0093c2fc | 27760 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27762 | (eval $ac_try) 2>&5 | |
27763 | ac_status=$? | |
27764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27765 | (exit $ac_status); }; } && | |
27766 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27768 | (eval $ac_try) 2>&5 | |
27769 | ac_status=$? | |
27770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27771 | (exit $ac_status); }; }; then | |
27772 | : | |
27773 | else | |
27774 | echo "$as_me: failed program was:" >&5 | |
27775 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27776 | ||
27777 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
27778 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
27779 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
27780 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27781 | else | |
27782 | ac_check_lib_save_LIBS=$LIBS | |
27783 | LIBS="-ldnet $LIBS" | |
27784 | cat >conftest.$ac_ext <<_ACEOF | |
27785 | /* confdefs.h. */ | |
27786 | _ACEOF | |
27787 | cat confdefs.h >>conftest.$ac_ext | |
27788 | cat >>conftest.$ac_ext <<_ACEOF | |
27789 | /* end confdefs.h. */ | |
27790 | ||
27791 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27792 | #ifdef __cplusplus | |
27793 | extern "C" | |
27794 | #endif | |
27795 | /* We use char because int might match the return type of a gcc2 | |
27796 | builtin and then its argument prototype would still apply. */ | |
27797 | char dnet_ntoa (); | |
27798 | int | |
27799 | main () | |
27800 | { | |
27801 | dnet_ntoa (); | |
27802 | ; | |
27803 | return 0; | |
27804 | } | |
27805 | _ACEOF | |
27806 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27807 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27808 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27809 | ac_status=$? |
ac1cb8d3 VS |
27810 | grep -v '^ *+' conftest.er1 >conftest.err |
27811 | rm -f conftest.er1 | |
27812 | cat conftest.err >&5 | |
a848cd7e SC |
27813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27814 | (exit $ac_status); } && | |
0093c2fc | 27815 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27817 | (eval $ac_try) 2>&5 | |
27818 | ac_status=$? | |
27819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27820 | (exit $ac_status); }; } && | |
27821 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27823 | (eval $ac_try) 2>&5 | |
27824 | ac_status=$? | |
27825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27826 | (exit $ac_status); }; }; then | |
27827 | ac_cv_lib_dnet_dnet_ntoa=yes | |
27828 | else | |
27829 | echo "$as_me: failed program was:" >&5 | |
27830 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27831 | ||
27832 | ac_cv_lib_dnet_dnet_ntoa=no | |
27833 | fi | |
ac1cb8d3 VS |
27834 | rm -f conftest.err conftest.$ac_objext \ |
27835 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27836 | LIBS=$ac_check_lib_save_LIBS |
27837 | fi | |
27838 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
27839 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
27840 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
27841 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
27842 | fi | |
27843 | ||
27844 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
27845 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
27846 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
27847 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
27848 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27849 | else | |
27850 | ac_check_lib_save_LIBS=$LIBS | |
27851 | LIBS="-ldnet_stub $LIBS" | |
27852 | cat >conftest.$ac_ext <<_ACEOF | |
27853 | /* confdefs.h. */ | |
27854 | _ACEOF | |
27855 | cat confdefs.h >>conftest.$ac_ext | |
27856 | cat >>conftest.$ac_ext <<_ACEOF | |
27857 | /* end confdefs.h. */ | |
27858 | ||
27859 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27860 | #ifdef __cplusplus | |
27861 | extern "C" | |
27862 | #endif | |
27863 | /* We use char because int might match the return type of a gcc2 | |
27864 | builtin and then its argument prototype would still apply. */ | |
27865 | char dnet_ntoa (); | |
27866 | int | |
27867 | main () | |
27868 | { | |
27869 | dnet_ntoa (); | |
27870 | ; | |
27871 | return 0; | |
27872 | } | |
27873 | _ACEOF | |
27874 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27875 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27876 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27877 | ac_status=$? |
ac1cb8d3 VS |
27878 | grep -v '^ *+' conftest.er1 >conftest.err |
27879 | rm -f conftest.er1 | |
27880 | cat conftest.err >&5 | |
a848cd7e SC |
27881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27882 | (exit $ac_status); } && | |
0093c2fc | 27883 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27885 | (eval $ac_try) 2>&5 | |
27886 | ac_status=$? | |
27887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27888 | (exit $ac_status); }; } && | |
27889 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27891 | (eval $ac_try) 2>&5 | |
27892 | ac_status=$? | |
27893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27894 | (exit $ac_status); }; }; then | |
27895 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
27896 | else | |
27897 | echo "$as_me: failed program was:" >&5 | |
27898 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27899 | ||
27900 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
27901 | fi | |
ac1cb8d3 VS |
27902 | rm -f conftest.err conftest.$ac_objext \ |
27903 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27904 | LIBS=$ac_check_lib_save_LIBS |
27905 | fi | |
27906 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
27907 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
27908 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
27909 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
27910 | fi | |
27911 | ||
27912 | fi | |
27913 | fi | |
ac1cb8d3 VS |
27914 | rm -f conftest.err conftest.$ac_objext \ |
27915 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27916 | LIBS="$ac_xsave_LIBS" |
27917 | ||
27918 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
27919 | # to get the SysV transport functions. | |
27920 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
27921 | # needs -lnsl. | |
27922 | # The nsl library prevents programs from opening the X display | |
27923 | # on Irix 5.2, according to T.E. Dickey. | |
27924 | # The functions gethostbyname, getservbyname, and inet_addr are | |
27925 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
27926 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
27927 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
27928 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
27929 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27930 | else | |
27931 | cat >conftest.$ac_ext <<_ACEOF | |
27932 | /* confdefs.h. */ | |
27933 | _ACEOF | |
27934 | cat confdefs.h >>conftest.$ac_ext | |
27935 | cat >>conftest.$ac_ext <<_ACEOF | |
27936 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
27937 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
27938 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
27939 | #define gethostbyname innocuous_gethostbyname | |
27940 | ||
a848cd7e SC |
27941 | /* System header to define __stub macros and hopefully few prototypes, |
27942 | which can conflict with char gethostbyname (); below. | |
27943 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27944 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 27945 | |
a848cd7e SC |
27946 | #ifdef __STDC__ |
27947 | # include <limits.h> | |
27948 | #else | |
27949 | # include <assert.h> | |
27950 | #endif | |
ac1cb8d3 VS |
27951 | |
27952 | #undef gethostbyname | |
27953 | ||
a848cd7e SC |
27954 | /* Override any gcc2 internal prototype to avoid an error. */ |
27955 | #ifdef __cplusplus | |
27956 | extern "C" | |
27957 | { | |
27958 | #endif | |
27959 | /* We use char because int might match the return type of a gcc2 | |
27960 | builtin and then its argument prototype would still apply. */ | |
27961 | char gethostbyname (); | |
27962 | /* The GNU C library defines this for functions which it implements | |
27963 | to always fail with ENOSYS. Some functions are actually named | |
27964 | something starting with __ and the normal name is an alias. */ | |
27965 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
27966 | choke me | |
27967 | #else | |
27968 | char (*f) () = gethostbyname; | |
27969 | #endif | |
27970 | #ifdef __cplusplus | |
27971 | } | |
27972 | #endif | |
27973 | ||
27974 | int | |
27975 | main () | |
27976 | { | |
27977 | return f != gethostbyname; | |
27978 | ; | |
27979 | return 0; | |
27980 | } | |
27981 | _ACEOF | |
27982 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27983 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27984 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27985 | ac_status=$? |
ac1cb8d3 VS |
27986 | grep -v '^ *+' conftest.er1 >conftest.err |
27987 | rm -f conftest.er1 | |
27988 | cat conftest.err >&5 | |
a848cd7e SC |
27989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27990 | (exit $ac_status); } && | |
0093c2fc | 27991 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27993 | (eval $ac_try) 2>&5 | |
27994 | ac_status=$? | |
27995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27996 | (exit $ac_status); }; } && | |
27997 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27999 | (eval $ac_try) 2>&5 | |
28000 | ac_status=$? | |
28001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28002 | (exit $ac_status); }; }; then | |
28003 | ac_cv_func_gethostbyname=yes | |
28004 | else | |
28005 | echo "$as_me: failed program was:" >&5 | |
28006 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28007 | ||
28008 | ac_cv_func_gethostbyname=no | |
28009 | fi | |
ac1cb8d3 VS |
28010 | rm -f conftest.err conftest.$ac_objext \ |
28011 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28012 | fi |
28013 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
28014 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
28015 | ||
28016 | if test $ac_cv_func_gethostbyname = no; then | |
28017 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
28018 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
28019 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
28020 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28021 | else | |
28022 | ac_check_lib_save_LIBS=$LIBS | |
28023 | LIBS="-lnsl $LIBS" | |
28024 | cat >conftest.$ac_ext <<_ACEOF | |
28025 | /* confdefs.h. */ | |
28026 | _ACEOF | |
28027 | cat confdefs.h >>conftest.$ac_ext | |
28028 | cat >>conftest.$ac_ext <<_ACEOF | |
28029 | /* end confdefs.h. */ | |
28030 | ||
28031 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28032 | #ifdef __cplusplus | |
28033 | extern "C" | |
28034 | #endif | |
28035 | /* We use char because int might match the return type of a gcc2 | |
28036 | builtin and then its argument prototype would still apply. */ | |
28037 | char gethostbyname (); | |
28038 | int | |
28039 | main () | |
28040 | { | |
28041 | gethostbyname (); | |
28042 | ; | |
28043 | return 0; | |
28044 | } | |
28045 | _ACEOF | |
28046 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28047 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 VS |
28048 | (eval $ac_link) 2>conftest.er1 |
28049 | ac_status=$? | |
28050 | grep -v '^ *+' conftest.er1 >conftest.err | |
28051 | rm -f conftest.er1 | |
28052 | cat conftest.err >&5 | |
28053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28054 | (exit $ac_status); } && | |
0093c2fc | 28055 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28057 | (eval $ac_try) 2>&5 | |
28058 | ac_status=$? | |
28059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28060 | (exit $ac_status); }; } && | |
28061 | { ac_try='test -s conftest$ac_exeext' | |
28062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28063 | (eval $ac_try) 2>&5 | |
28064 | ac_status=$? | |
28065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28066 | (exit $ac_status); }; }; then | |
28067 | ac_cv_lib_nsl_gethostbyname=yes | |
28068 | else | |
28069 | echo "$as_me: failed program was:" >&5 | |
28070 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28071 | ||
28072 | ac_cv_lib_nsl_gethostbyname=no | |
28073 | fi | |
28074 | rm -f conftest.err conftest.$ac_objext \ | |
28075 | conftest$ac_exeext conftest.$ac_ext | |
28076 | LIBS=$ac_check_lib_save_LIBS | |
28077 | fi | |
28078 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
28079 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
28080 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
28081 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
28082 | fi | |
28083 | ||
28084 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
28085 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
28086 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
28087 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
28088 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28089 | else | |
28090 | ac_check_lib_save_LIBS=$LIBS | |
28091 | LIBS="-lbsd $LIBS" | |
28092 | cat >conftest.$ac_ext <<_ACEOF | |
28093 | /* confdefs.h. */ | |
28094 | _ACEOF | |
28095 | cat confdefs.h >>conftest.$ac_ext | |
28096 | cat >>conftest.$ac_ext <<_ACEOF | |
28097 | /* end confdefs.h. */ | |
28098 | ||
28099 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28100 | #ifdef __cplusplus | |
28101 | extern "C" | |
28102 | #endif | |
28103 | /* We use char because int might match the return type of a gcc2 | |
28104 | builtin and then its argument prototype would still apply. */ | |
28105 | char gethostbyname (); | |
28106 | int | |
28107 | main () | |
28108 | { | |
28109 | gethostbyname (); | |
28110 | ; | |
28111 | return 0; | |
28112 | } | |
28113 | _ACEOF | |
28114 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28115 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28116 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 28117 | ac_status=$? |
ac1cb8d3 VS |
28118 | grep -v '^ *+' conftest.er1 >conftest.err |
28119 | rm -f conftest.er1 | |
28120 | cat conftest.err >&5 | |
a848cd7e SC |
28121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28122 | (exit $ac_status); } && | |
0093c2fc | 28123 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
a848cd7e SC |
28124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28125 | (eval $ac_try) 2>&5 | |
28126 | ac_status=$? | |
28127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ac1cb8d3 VS |
28128 | (exit $ac_status); }; } && |
28129 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28131 | (eval $ac_try) 2>&5 | |
28132 | ac_status=$? | |
28133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28134 | (exit $ac_status); }; }; then | |
28135 | ac_cv_lib_bsd_gethostbyname=yes | |
28136 | else | |
28137 | echo "$as_me: failed program was:" >&5 | |
28138 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28139 | ||
28140 | ac_cv_lib_bsd_gethostbyname=no | |
28141 | fi | |
ac1cb8d3 VS |
28142 | rm -f conftest.err conftest.$ac_objext \ |
28143 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28144 | LIBS=$ac_check_lib_save_LIBS |
28145 | fi | |
28146 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
28147 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
28148 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
28149 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
28150 | fi | |
28151 | ||
28152 | fi | |
28153 | fi | |
28154 | ||
28155 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
28156 | # socket/setsockopt and other routines are undefined under SCO ODT | |
28157 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
28158 | # on later versions), says Simon Leinen: it contains gethostby* | |
28159 | # variants that don't use the name server (or something). -lsocket | |
28160 | # must be given before -lnsl if both are needed. We assume that | |
28161 | # if connect needs -lnsl, so does gethostbyname. | |
28162 | echo "$as_me:$LINENO: checking for connect" >&5 | |
28163 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
28164 | if test "${ac_cv_func_connect+set}" = set; then | |
28165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28166 | else | |
28167 | cat >conftest.$ac_ext <<_ACEOF | |
28168 | /* confdefs.h. */ | |
28169 | _ACEOF | |
28170 | cat confdefs.h >>conftest.$ac_ext | |
28171 | cat >>conftest.$ac_ext <<_ACEOF | |
28172 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28173 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
28174 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28175 | #define connect innocuous_connect | |
28176 | ||
a848cd7e SC |
28177 | /* System header to define __stub macros and hopefully few prototypes, |
28178 | which can conflict with char connect (); below. | |
28179 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28180 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28181 | |
a848cd7e SC |
28182 | #ifdef __STDC__ |
28183 | # include <limits.h> | |
28184 | #else | |
28185 | # include <assert.h> | |
28186 | #endif | |
ac1cb8d3 VS |
28187 | |
28188 | #undef connect | |
28189 | ||
a848cd7e SC |
28190 | /* Override any gcc2 internal prototype to avoid an error. */ |
28191 | #ifdef __cplusplus | |
28192 | extern "C" | |
28193 | { | |
28194 | #endif | |
28195 | /* We use char because int might match the return type of a gcc2 | |
28196 | builtin and then its argument prototype would still apply. */ | |
28197 | char connect (); | |
28198 | /* The GNU C library defines this for functions which it implements | |
28199 | to always fail with ENOSYS. Some functions are actually named | |
28200 | something starting with __ and the normal name is an alias. */ | |
28201 | #if defined (__stub_connect) || defined (__stub___connect) | |
28202 | choke me | |
28203 | #else | |
28204 | char (*f) () = connect; | |
28205 | #endif | |
28206 | #ifdef __cplusplus | |
28207 | } | |
28208 | #endif | |
28209 | ||
28210 | int | |
28211 | main () | |
28212 | { | |
28213 | return f != connect; | |
28214 | ; | |
28215 | return 0; | |
28216 | } | |
28217 | _ACEOF | |
28218 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28219 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28220 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28221 | ac_status=$? |
ac1cb8d3 VS |
28222 | grep -v '^ *+' conftest.er1 >conftest.err |
28223 | rm -f conftest.er1 | |
28224 | cat conftest.err >&5 | |
a848cd7e SC |
28225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28226 | (exit $ac_status); } && | |
0093c2fc | 28227 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28229 | (eval $ac_try) 2>&5 | |
28230 | ac_status=$? | |
28231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28232 | (exit $ac_status); }; } && | |
28233 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28235 | (eval $ac_try) 2>&5 | |
28236 | ac_status=$? | |
28237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28238 | (exit $ac_status); }; }; then | |
28239 | ac_cv_func_connect=yes | |
28240 | else | |
28241 | echo "$as_me: failed program was:" >&5 | |
28242 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28243 | ||
28244 | ac_cv_func_connect=no | |
28245 | fi | |
ac1cb8d3 VS |
28246 | rm -f conftest.err conftest.$ac_objext \ |
28247 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28248 | fi |
28249 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
28250 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
28251 | ||
28252 | if test $ac_cv_func_connect = no; then | |
28253 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
28254 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
28255 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
28256 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28257 | else | |
28258 | ac_check_lib_save_LIBS=$LIBS | |
28259 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
28260 | cat >conftest.$ac_ext <<_ACEOF | |
28261 | /* confdefs.h. */ | |
28262 | _ACEOF | |
28263 | cat confdefs.h >>conftest.$ac_ext | |
28264 | cat >>conftest.$ac_ext <<_ACEOF | |
28265 | /* end confdefs.h. */ | |
28266 | ||
28267 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28268 | #ifdef __cplusplus | |
28269 | extern "C" | |
28270 | #endif | |
28271 | /* We use char because int might match the return type of a gcc2 | |
28272 | builtin and then its argument prototype would still apply. */ | |
28273 | char connect (); | |
28274 | int | |
28275 | main () | |
28276 | { | |
28277 | connect (); | |
28278 | ; | |
28279 | return 0; | |
28280 | } | |
28281 | _ACEOF | |
28282 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28283 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28284 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28285 | ac_status=$? |
ac1cb8d3 VS |
28286 | grep -v '^ *+' conftest.er1 >conftest.err |
28287 | rm -f conftest.er1 | |
28288 | cat conftest.err >&5 | |
a848cd7e SC |
28289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28290 | (exit $ac_status); } && | |
0093c2fc | 28291 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28293 | (eval $ac_try) 2>&5 | |
28294 | ac_status=$? | |
28295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28296 | (exit $ac_status); }; } && | |
28297 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28299 | (eval $ac_try) 2>&5 | |
28300 | ac_status=$? | |
28301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28302 | (exit $ac_status); }; }; then | |
28303 | ac_cv_lib_socket_connect=yes | |
28304 | else | |
28305 | echo "$as_me: failed program was:" >&5 | |
28306 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28307 | ||
28308 | ac_cv_lib_socket_connect=no | |
28309 | fi | |
ac1cb8d3 VS |
28310 | rm -f conftest.err conftest.$ac_objext \ |
28311 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28312 | LIBS=$ac_check_lib_save_LIBS |
28313 | fi | |
28314 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
28315 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
28316 | if test $ac_cv_lib_socket_connect = yes; then | |
28317 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
28318 | fi | |
28319 | ||
28320 | fi | |
28321 | ||
28322 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
28323 | echo "$as_me:$LINENO: checking for remove" >&5 | |
28324 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
28325 | if test "${ac_cv_func_remove+set}" = set; then | |
28326 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28327 | else | |
28328 | cat >conftest.$ac_ext <<_ACEOF | |
28329 | /* confdefs.h. */ | |
28330 | _ACEOF | |
28331 | cat confdefs.h >>conftest.$ac_ext | |
28332 | cat >>conftest.$ac_ext <<_ACEOF | |
28333 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28334 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
28335 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28336 | #define remove innocuous_remove | |
28337 | ||
a848cd7e SC |
28338 | /* System header to define __stub macros and hopefully few prototypes, |
28339 | which can conflict with char remove (); below. | |
28340 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28341 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28342 | |
a848cd7e SC |
28343 | #ifdef __STDC__ |
28344 | # include <limits.h> | |
28345 | #else | |
28346 | # include <assert.h> | |
28347 | #endif | |
ac1cb8d3 VS |
28348 | |
28349 | #undef remove | |
28350 | ||
a848cd7e SC |
28351 | /* Override any gcc2 internal prototype to avoid an error. */ |
28352 | #ifdef __cplusplus | |
28353 | extern "C" | |
28354 | { | |
28355 | #endif | |
28356 | /* We use char because int might match the return type of a gcc2 | |
28357 | builtin and then its argument prototype would still apply. */ | |
28358 | char remove (); | |
28359 | /* The GNU C library defines this for functions which it implements | |
28360 | to always fail with ENOSYS. Some functions are actually named | |
28361 | something starting with __ and the normal name is an alias. */ | |
28362 | #if defined (__stub_remove) || defined (__stub___remove) | |
28363 | choke me | |
28364 | #else | |
28365 | char (*f) () = remove; | |
28366 | #endif | |
28367 | #ifdef __cplusplus | |
28368 | } | |
28369 | #endif | |
28370 | ||
28371 | int | |
28372 | main () | |
28373 | { | |
28374 | return f != remove; | |
28375 | ; | |
28376 | return 0; | |
28377 | } | |
28378 | _ACEOF | |
28379 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28380 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28381 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28382 | ac_status=$? |
ac1cb8d3 VS |
28383 | grep -v '^ *+' conftest.er1 >conftest.err |
28384 | rm -f conftest.er1 | |
28385 | cat conftest.err >&5 | |
a848cd7e SC |
28386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28387 | (exit $ac_status); } && | |
0093c2fc | 28388 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28390 | (eval $ac_try) 2>&5 | |
28391 | ac_status=$? | |
28392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28393 | (exit $ac_status); }; } && | |
28394 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28396 | (eval $ac_try) 2>&5 | |
28397 | ac_status=$? | |
28398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28399 | (exit $ac_status); }; }; then | |
28400 | ac_cv_func_remove=yes | |
28401 | else | |
28402 | echo "$as_me: failed program was:" >&5 | |
28403 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28404 | ||
28405 | ac_cv_func_remove=no | |
28406 | fi | |
ac1cb8d3 VS |
28407 | rm -f conftest.err conftest.$ac_objext \ |
28408 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28409 | fi |
28410 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
28411 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
28412 | ||
28413 | if test $ac_cv_func_remove = no; then | |
28414 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
28415 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
28416 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
28417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28418 | else | |
28419 | ac_check_lib_save_LIBS=$LIBS | |
28420 | LIBS="-lposix $LIBS" | |
28421 | cat >conftest.$ac_ext <<_ACEOF | |
28422 | /* confdefs.h. */ | |
28423 | _ACEOF | |
28424 | cat confdefs.h >>conftest.$ac_ext | |
28425 | cat >>conftest.$ac_ext <<_ACEOF | |
28426 | /* end confdefs.h. */ | |
28427 | ||
28428 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28429 | #ifdef __cplusplus | |
28430 | extern "C" | |
28431 | #endif | |
28432 | /* We use char because int might match the return type of a gcc2 | |
28433 | builtin and then its argument prototype would still apply. */ | |
28434 | char remove (); | |
28435 | int | |
28436 | main () | |
28437 | { | |
28438 | remove (); | |
28439 | ; | |
28440 | return 0; | |
28441 | } | |
28442 | _ACEOF | |
28443 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28444 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28445 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28446 | ac_status=$? |
ac1cb8d3 VS |
28447 | grep -v '^ *+' conftest.er1 >conftest.err |
28448 | rm -f conftest.er1 | |
28449 | cat conftest.err >&5 | |
a848cd7e SC |
28450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28451 | (exit $ac_status); } && | |
0093c2fc | 28452 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28454 | (eval $ac_try) 2>&5 | |
28455 | ac_status=$? | |
28456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28457 | (exit $ac_status); }; } && | |
28458 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28460 | (eval $ac_try) 2>&5 | |
28461 | ac_status=$? | |
28462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28463 | (exit $ac_status); }; }; then | |
28464 | ac_cv_lib_posix_remove=yes | |
28465 | else | |
28466 | echo "$as_me: failed program was:" >&5 | |
28467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28468 | ||
28469 | ac_cv_lib_posix_remove=no | |
28470 | fi | |
ac1cb8d3 VS |
28471 | rm -f conftest.err conftest.$ac_objext \ |
28472 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28473 | LIBS=$ac_check_lib_save_LIBS |
28474 | fi | |
28475 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
28476 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
28477 | if test $ac_cv_lib_posix_remove = yes; then | |
28478 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
28479 | fi | |
28480 | ||
28481 | fi | |
28482 | ||
28483 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
28484 | echo "$as_me:$LINENO: checking for shmat" >&5 | |
28485 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
28486 | if test "${ac_cv_func_shmat+set}" = set; then | |
28487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28488 | else | |
28489 | cat >conftest.$ac_ext <<_ACEOF | |
28490 | /* confdefs.h. */ | |
28491 | _ACEOF | |
28492 | cat confdefs.h >>conftest.$ac_ext | |
28493 | cat >>conftest.$ac_ext <<_ACEOF | |
28494 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28495 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
28496 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28497 | #define shmat innocuous_shmat | |
28498 | ||
a848cd7e SC |
28499 | /* System header to define __stub macros and hopefully few prototypes, |
28500 | which can conflict with char shmat (); below. | |
28501 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28502 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28503 | |
a848cd7e SC |
28504 | #ifdef __STDC__ |
28505 | # include <limits.h> | |
28506 | #else | |
28507 | # include <assert.h> | |
28508 | #endif | |
ac1cb8d3 VS |
28509 | |
28510 | #undef shmat | |
28511 | ||
a848cd7e SC |
28512 | /* Override any gcc2 internal prototype to avoid an error. */ |
28513 | #ifdef __cplusplus | |
28514 | extern "C" | |
28515 | { | |
28516 | #endif | |
28517 | /* We use char because int might match the return type of a gcc2 | |
28518 | builtin and then its argument prototype would still apply. */ | |
28519 | char shmat (); | |
28520 | /* The GNU C library defines this for functions which it implements | |
28521 | to always fail with ENOSYS. Some functions are actually named | |
28522 | something starting with __ and the normal name is an alias. */ | |
28523 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
28524 | choke me | |
28525 | #else | |
28526 | char (*f) () = shmat; | |
28527 | #endif | |
28528 | #ifdef __cplusplus | |
28529 | } | |
28530 | #endif | |
28531 | ||
28532 | int | |
28533 | main () | |
28534 | { | |
28535 | return f != shmat; | |
28536 | ; | |
28537 | return 0; | |
28538 | } | |
28539 | _ACEOF | |
28540 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28541 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28542 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28543 | ac_status=$? |
ac1cb8d3 VS |
28544 | grep -v '^ *+' conftest.er1 >conftest.err |
28545 | rm -f conftest.er1 | |
28546 | cat conftest.err >&5 | |
a848cd7e SC |
28547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28548 | (exit $ac_status); } && | |
0093c2fc | 28549 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28551 | (eval $ac_try) 2>&5 | |
28552 | ac_status=$? | |
28553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28554 | (exit $ac_status); }; } && | |
28555 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28557 | (eval $ac_try) 2>&5 | |
28558 | ac_status=$? | |
28559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28560 | (exit $ac_status); }; }; then | |
28561 | ac_cv_func_shmat=yes | |
28562 | else | |
28563 | echo "$as_me: failed program was:" >&5 | |
28564 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28565 | ||
28566 | ac_cv_func_shmat=no | |
28567 | fi | |
ac1cb8d3 VS |
28568 | rm -f conftest.err conftest.$ac_objext \ |
28569 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28570 | fi |
28571 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
28572 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
28573 | ||
28574 | if test $ac_cv_func_shmat = no; then | |
28575 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
28576 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
28577 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
28578 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28579 | else | |
28580 | ac_check_lib_save_LIBS=$LIBS | |
28581 | LIBS="-lipc $LIBS" | |
28582 | cat >conftest.$ac_ext <<_ACEOF | |
28583 | /* confdefs.h. */ | |
28584 | _ACEOF | |
28585 | cat confdefs.h >>conftest.$ac_ext | |
28586 | cat >>conftest.$ac_ext <<_ACEOF | |
28587 | /* end confdefs.h. */ | |
28588 | ||
28589 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28590 | #ifdef __cplusplus | |
28591 | extern "C" | |
28592 | #endif | |
28593 | /* We use char because int might match the return type of a gcc2 | |
28594 | builtin and then its argument prototype would still apply. */ | |
28595 | char shmat (); | |
28596 | int | |
28597 | main () | |
28598 | { | |
28599 | shmat (); | |
28600 | ; | |
28601 | return 0; | |
28602 | } | |
28603 | _ACEOF | |
28604 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28605 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28606 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28607 | ac_status=$? |
ac1cb8d3 VS |
28608 | grep -v '^ *+' conftest.er1 >conftest.err |
28609 | rm -f conftest.er1 | |
28610 | cat conftest.err >&5 | |
a848cd7e SC |
28611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28612 | (exit $ac_status); } && | |
0093c2fc | 28613 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28615 | (eval $ac_try) 2>&5 | |
28616 | ac_status=$? | |
28617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28618 | (exit $ac_status); }; } && | |
28619 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28621 | (eval $ac_try) 2>&5 | |
28622 | ac_status=$? | |
28623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28624 | (exit $ac_status); }; }; then | |
28625 | ac_cv_lib_ipc_shmat=yes | |
28626 | else | |
28627 | echo "$as_me: failed program was:" >&5 | |
28628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28629 | ||
28630 | ac_cv_lib_ipc_shmat=no | |
28631 | fi | |
ac1cb8d3 VS |
28632 | rm -f conftest.err conftest.$ac_objext \ |
28633 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28634 | LIBS=$ac_check_lib_save_LIBS |
28635 | fi | |
28636 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
28637 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
28638 | if test $ac_cv_lib_ipc_shmat = yes; then | |
28639 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
28640 | fi | |
28641 | ||
28642 | fi | |
28643 | fi | |
28644 | ||
28645 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
28646 | ac_save_LDFLAGS=$LDFLAGS | |
28647 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
28648 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
28649 | # check for ICE first), but we must link in the order -lSM -lICE or | |
28650 | # we get undefined symbols. So assume we have SM if we have ICE. | |
28651 | # These have to be linked with before -lX11, unlike the other | |
28652 | # libraries we check for below, so use a different variable. | |
28653 | # John Interrante, Karl Berry | |
28654 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
28655 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
28656 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
28657 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28658 | else | |
28659 | ac_check_lib_save_LIBS=$LIBS | |
28660 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
28661 | cat >conftest.$ac_ext <<_ACEOF | |
28662 | /* confdefs.h. */ | |
28663 | _ACEOF | |
28664 | cat confdefs.h >>conftest.$ac_ext | |
28665 | cat >>conftest.$ac_ext <<_ACEOF | |
28666 | /* end confdefs.h. */ | |
28667 | ||
28668 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28669 | #ifdef __cplusplus | |
28670 | extern "C" | |
28671 | #endif | |
28672 | /* We use char because int might match the return type of a gcc2 | |
28673 | builtin and then its argument prototype would still apply. */ | |
28674 | char IceConnectionNumber (); | |
28675 | int | |
28676 | main () | |
28677 | { | |
28678 | IceConnectionNumber (); | |
28679 | ; | |
28680 | return 0; | |
28681 | } | |
28682 | _ACEOF | |
28683 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28684 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28685 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28686 | ac_status=$? |
ac1cb8d3 VS |
28687 | grep -v '^ *+' conftest.er1 >conftest.err |
28688 | rm -f conftest.er1 | |
28689 | cat conftest.err >&5 | |
a848cd7e SC |
28690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28691 | (exit $ac_status); } && | |
0093c2fc | 28692 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28694 | (eval $ac_try) 2>&5 | |
28695 | ac_status=$? | |
28696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28697 | (exit $ac_status); }; } && | |
28698 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28700 | (eval $ac_try) 2>&5 | |
28701 | ac_status=$? | |
28702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28703 | (exit $ac_status); }; }; then | |
28704 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
28705 | else | |
28706 | echo "$as_me: failed program was:" >&5 | |
28707 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28708 | ||
28709 | ac_cv_lib_ICE_IceConnectionNumber=no | |
28710 | fi | |
ac1cb8d3 VS |
28711 | rm -f conftest.err conftest.$ac_objext \ |
28712 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28713 | LIBS=$ac_check_lib_save_LIBS |
28714 | fi | |
28715 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
28716 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
28717 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
28718 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
28719 | fi | |
28720 | ||
28721 | LDFLAGS=$ac_save_LDFLAGS | |
28722 | ||
28723 | fi | |
28724 | ||
28725 | ||
28726 | if test "$no_x" = "yes"; then | |
89d90d6d VZ |
28727 | { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5 |
28728 | echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;} | |
28729 | { (exit 1); exit 1; }; } | |
a848cd7e SC |
28730 | fi |
28731 | ||
74b84332 VS |
28732 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'` |
28733 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
a848cd7e SC |
28734 | AFMINSTALL=afminstall |
28735 | COMPILED_X_PROGRAM=0 | |
28736 | ||
74b84332 VS |
28737 | fi |
28738 | ||
28739 | if test "$wxUSE_X11" = 1; then | |
a848cd7e SC |
28740 | if test "$wxUSE_NANOX" = "yes"; then |
28741 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 | |
28742 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
28743 | if test "x$MICROWIN" = x ; then | |
28744 | echo "$as_me:$LINENO: result: not found" >&5 | |
28745 | echo "${ECHO_T}not found" >&6 | |
28746 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
28747 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
28748 | { (exit 1); exit 1; }; } | |
28749 | else | |
28750 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 | |
28751 | echo "${ECHO_T}$MICROWIN" >&6 | |
28752 | cat >>confdefs.h <<\_ACEOF | |
28753 | #define wxUSE_NANOX 1 | |
28754 | _ACEOF | |
28755 | ||
28756 | fi | |
28757 | fi | |
28758 | ||
28759 | if test "$wxUSE_UNICODE" = "yes"; then | |
28760 | ||
28761 | succeeded=no | |
28762 | ||
28763 | if test -z "$PKG_CONFIG"; then | |
28764 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
28765 | set dummy pkg-config; ac_word=$2 | |
28766 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
28767 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28768 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
28769 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28770 | else | |
28771 | case $PKG_CONFIG in | |
28772 | [\\/]* | ?:[\\/]*) | |
28773 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
28774 | ;; | |
28775 | *) | |
28776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28777 | for as_dir in $PATH | |
28778 | do | |
28779 | IFS=$as_save_IFS | |
28780 | test -z "$as_dir" && as_dir=. | |
28781 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28782 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
28783 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
28784 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28785 | break 2 | |
28786 | fi | |
28787 | done | |
28788 | done | |
28789 | ||
28790 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
28791 | ;; | |
28792 | esac | |
28793 | fi | |
28794 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
28795 | ||
28796 | if test -n "$PKG_CONFIG"; then | |
28797 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
28798 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
28799 | else | |
28800 | echo "$as_me:$LINENO: result: no" >&5 | |
28801 | echo "${ECHO_T}no" >&6 | |
28802 | fi | |
28803 | ||
28804 | fi | |
28805 | ||
28806 | if test "$PKG_CONFIG" = "no" ; then | |
28807 | echo "*** The pkg-config script could not be found. Make sure it is" | |
28808 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
28809 | echo "*** to the full path to pkg-config." | |
28810 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
28811 | else | |
28812 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
28813 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
28814 | echo "$as_me:$LINENO: checking for pangox" >&5 | |
28815 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
28816 | ||
28817 | if $PKG_CONFIG --exists "pangox" ; then | |
28818 | echo "$as_me:$LINENO: result: yes" >&5 | |
28819 | echo "${ECHO_T}yes" >&6 | |
28820 | succeeded=yes | |
28821 | ||
28822 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 | |
28823 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
28824 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` | |
28825 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 | |
28826 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
28827 | ||
28828 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 | |
28829 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
28830 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` | |
28831 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 | |
28832 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
28833 | else | |
28834 | PANGOX_CFLAGS="" | |
28835 | PANGOX_LIBS="" | |
28836 | ## If we have a custom action on failure, don't print errors, but | |
28837 | ## do set a variable so people can do so. | |
28838 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
28839 | ||
28840 | fi | |
28841 | ||
28842 | ||
28843 | ||
28844 | else | |
28845 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
28846 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
28847 | fi | |
28848 | fi | |
28849 | ||
28850 | if test $succeeded = yes; then | |
28851 | ||
28852 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" | |
28853 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" | |
28854 | ||
28855 | else | |
28856 | ||
28857 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
28858 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
28859 | { (exit 1); exit 1; }; } | |
28860 | ||
28861 | ||
28862 | fi | |
28863 | ||
28864 | ||
28865 | succeeded=no | |
28866 | ||
28867 | if test -z "$PKG_CONFIG"; then | |
28868 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
28869 | set dummy pkg-config; ac_word=$2 | |
28870 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
28871 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28872 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
28873 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28874 | else | |
28875 | case $PKG_CONFIG in | |
28876 | [\\/]* | ?:[\\/]*) | |
28877 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
28878 | ;; | |
28879 | *) | |
28880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28881 | for as_dir in $PATH | |
28882 | do | |
28883 | IFS=$as_save_IFS | |
28884 | test -z "$as_dir" && as_dir=. | |
28885 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28886 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
28887 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
28888 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28889 | break 2 | |
28890 | fi | |
28891 | done | |
28892 | done | |
28893 | ||
28894 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
28895 | ;; | |
28896 | esac | |
28897 | fi | |
28898 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
28899 | ||
28900 | if test -n "$PKG_CONFIG"; then | |
28901 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
28902 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
28903 | else | |
28904 | echo "$as_me:$LINENO: result: no" >&5 | |
28905 | echo "${ECHO_T}no" >&6 | |
28906 | fi | |
28907 | ||
28908 | fi | |
28909 | ||
28910 | if test "$PKG_CONFIG" = "no" ; then | |
28911 | echo "*** The pkg-config script could not be found. Make sure it is" | |
28912 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
28913 | echo "*** to the full path to pkg-config." | |
28914 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
28915 | else | |
28916 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
28917 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
28918 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
28919 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
28920 | ||
28921 | if $PKG_CONFIG --exists "pangoft2" ; then | |
28922 | echo "$as_me:$LINENO: result: yes" >&5 | |
28923 | echo "${ECHO_T}yes" >&6 | |
28924 | succeeded=yes | |
28925 | ||
28926 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
28927 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
28928 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
28929 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
28930 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
28931 | ||
28932 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
28933 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
28934 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
28935 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
28936 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
28937 | else | |
28938 | PANGOFT2_CFLAGS="" | |
28939 | PANGOFT2_LIBS="" | |
28940 | ## If we have a custom action on failure, don't print errors, but | |
28941 | ## do set a variable so people can do so. | |
28942 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
28943 | ||
28944 | fi | |
28945 | ||
28946 | ||
28947 | ||
28948 | else | |
28949 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
28950 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
28951 | fi | |
28952 | fi | |
28953 | ||
28954 | if test $succeeded = yes; then | |
28955 | ||
28956 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
28957 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" | |
28958 | ||
28959 | else | |
28960 | ||
28961 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
28962 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
28963 | wxUSE_PRINTING_ARCHITECTURE="no" | |
28964 | ||
28965 | ||
28966 | fi | |
28967 | ||
28968 | ||
28969 | succeeded=no | |
28970 | ||
28971 | if test -z "$PKG_CONFIG"; then | |
28972 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
28973 | set dummy pkg-config; ac_word=$2 | |
28974 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
28975 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
28976 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
28977 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28978 | else | |
28979 | case $PKG_CONFIG in | |
28980 | [\\/]* | ?:[\\/]*) | |
28981 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
28982 | ;; | |
28983 | *) | |
28984 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
28985 | for as_dir in $PATH | |
28986 | do | |
28987 | IFS=$as_save_IFS | |
28988 | test -z "$as_dir" && as_dir=. | |
28989 | for ac_exec_ext in '' $ac_executable_extensions; do | |
28990 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
28991 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
28992 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
28993 | break 2 | |
28994 | fi | |
28995 | done | |
28996 | done | |
28997 | ||
28998 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
28999 | ;; | |
29000 | esac | |
29001 | fi | |
29002 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
29003 | ||
29004 | if test -n "$PKG_CONFIG"; then | |
29005 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
29006 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
29007 | else | |
29008 | echo "$as_me:$LINENO: result: no" >&5 | |
29009 | echo "${ECHO_T}no" >&6 | |
29010 | fi | |
29011 | ||
29012 | fi | |
29013 | ||
29014 | if test "$PKG_CONFIG" = "no" ; then | |
29015 | echo "*** The pkg-config script could not be found. Make sure it is" | |
29016 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
29017 | echo "*** to the full path to pkg-config." | |
29018 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
29019 | else | |
29020 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
29021 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
29022 | echo "$as_me:$LINENO: checking for pangoxft" >&5 | |
29023 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
29024 | ||
29025 | if $PKG_CONFIG --exists "pangoxft" ; then | |
29026 | echo "$as_me:$LINENO: result: yes" >&5 | |
29027 | echo "${ECHO_T}yes" >&6 | |
29028 | succeeded=yes | |
29029 | ||
29030 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 | |
29031 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
29032 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` | |
29033 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 | |
29034 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
29035 | ||
29036 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 | |
29037 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
29038 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` | |
29039 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 | |
29040 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
29041 | else | |
29042 | PANGOXFT_CFLAGS="" | |
29043 | PANGOXFT_LIBS="" | |
29044 | ## If we have a custom action on failure, don't print errors, but | |
29045 | ## do set a variable so people can do so. | |
29046 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
29047 | ||
29048 | fi | |
29049 | ||
29050 | ||
29051 | ||
29052 | else | |
29053 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
29054 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
29055 | fi | |
29056 | fi | |
29057 | ||
29058 | if test $succeeded = yes; then | |
29059 | ||
4ae1af05 MB |
29060 | cat >>confdefs.h <<\_ACEOF |
29061 | #define HAVE_PANGO_XFT 1 | |
29062 | _ACEOF | |
29063 | ||
a848cd7e SC |
29064 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" |
29065 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" | |
29066 | ||
29067 | else | |
29068 | ||
29069 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
29070 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
29071 | ||
29072 | ||
29073 | fi | |
29074 | ||
304205f1 VS |
29075 | save_CFLAGS="$CFLAGS" |
29076 | save_LIBS="$LIBS" | |
29077 | CFLAGS="$CFLAGS $PANGOX_CFLAGS" | |
29078 | LIBS="$LIBS $PANGOX_LIBS" | |
29079 | ||
29080 | for ac_func in pango_font_family_is_monospace | |
29081 | do | |
29082 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29083 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29084 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29085 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29086 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29087 | else | |
29088 | cat >conftest.$ac_ext <<_ACEOF | |
29089 | /* confdefs.h. */ | |
29090 | _ACEOF | |
29091 | cat confdefs.h >>conftest.$ac_ext | |
29092 | cat >>conftest.$ac_ext <<_ACEOF | |
29093 | /* end confdefs.h. */ | |
29094 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
29095 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29096 | #define $ac_func innocuous_$ac_func | |
29097 | ||
29098 | /* System header to define __stub macros and hopefully few prototypes, | |
29099 | which can conflict with char $ac_func (); below. | |
29100 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29101 | <limits.h> exists even on freestanding compilers. */ | |
29102 | ||
29103 | #ifdef __STDC__ | |
29104 | # include <limits.h> | |
29105 | #else | |
29106 | # include <assert.h> | |
29107 | #endif | |
29108 | ||
29109 | #undef $ac_func | |
29110 | ||
29111 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29112 | #ifdef __cplusplus | |
29113 | extern "C" | |
29114 | { | |
29115 | #endif | |
29116 | /* We use char because int might match the return type of a gcc2 | |
29117 | builtin and then its argument prototype would still apply. */ | |
29118 | char $ac_func (); | |
29119 | /* The GNU C library defines this for functions which it implements | |
29120 | to always fail with ENOSYS. Some functions are actually named | |
29121 | something starting with __ and the normal name is an alias. */ | |
29122 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29123 | choke me | |
29124 | #else | |
29125 | char (*f) () = $ac_func; | |
29126 | #endif | |
29127 | #ifdef __cplusplus | |
29128 | } | |
29129 | #endif | |
29130 | ||
29131 | int | |
29132 | main () | |
29133 | { | |
29134 | return f != $ac_func; | |
29135 | ; | |
29136 | return 0; | |
29137 | } | |
29138 | _ACEOF | |
29139 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29140 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29141 | (eval $ac_link) 2>conftest.er1 | |
29142 | ac_status=$? | |
29143 | grep -v '^ *+' conftest.er1 >conftest.err | |
29144 | rm -f conftest.er1 | |
29145 | cat conftest.err >&5 | |
29146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29147 | (exit $ac_status); } && | |
0093c2fc | 29148 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
304205f1 VS |
29149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29150 | (eval $ac_try) 2>&5 | |
29151 | ac_status=$? | |
29152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29153 | (exit $ac_status); }; } && | |
29154 | { ac_try='test -s conftest$ac_exeext' | |
29155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29156 | (eval $ac_try) 2>&5 | |
29157 | ac_status=$? | |
29158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29159 | (exit $ac_status); }; }; then | |
29160 | eval "$as_ac_var=yes" | |
29161 | else | |
29162 | echo "$as_me: failed program was:" >&5 | |
29163 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29164 | ||
29165 | eval "$as_ac_var=no" | |
29166 | fi | |
29167 | rm -f conftest.err conftest.$ac_objext \ | |
29168 | conftest$ac_exeext conftest.$ac_ext | |
29169 | fi | |
29170 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29171 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29172 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29173 | cat >>confdefs.h <<_ACEOF | |
29174 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29175 | _ACEOF | |
29176 | ||
29177 | fi | |
29178 | done | |
29179 | ||
29180 | CFLAGS="$save_CFLAGS" | |
29181 | LIBS="$save_LIBS" | |
a848cd7e SC |
29182 | fi |
29183 | ||
29184 | wxUSE_UNIVERSAL="yes" | |
29185 | ||
29186 | if test "$wxUSE_NANOX" = "yes"; then | |
29187 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
29188 | 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" | |
29189 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
29190 | else | |
29191 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" | |
29192 | fi | |
29193 | ||
a848cd7e SC |
29194 | TOOLKIT=X11 |
29195 | GUIDIST=X11_DIST | |
29196 | fi | |
29197 | ||
29198 | if test "$wxUSE_MOTIF" = 1; then | |
0a08f02a MB |
29199 | if test "$wxUSE_UNICODE" = "yes"; then |
29200 | { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5 | |
29201 | echo "$as_me: error: Unicode configuration not supported with Motif" >&2;} | |
29202 | { (exit 1); exit 1; }; } | |
29203 | fi | |
29204 | ||
74b84332 VS |
29205 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
29206 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
a848cd7e | 29207 | |
74b84332 VS |
29208 | ac_find_includes= |
29209 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
29210 | do | |
29211 | if test -f "$ac_dir/Xm/Xm.h"; then | |
29212 | ac_find_includes=$ac_dir | |
29213 | break | |
29214 | fi | |
29215 | done | |
a848cd7e | 29216 | |
74b84332 VS |
29217 | if test "$ac_find_includes" != "" ; then |
29218 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
29219 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
29220 | ||
29221 | if test "x$ac_find_includes" = "x/usr/include"; then | |
29222 | ac_path_to_include="" | |
29223 | else | |
29224 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
29225 | result=$? | |
29226 | if test $result = 0; then | |
29227 | ac_path_to_include="" | |
29228 | else | |
29229 | ac_path_to_include=" -I$ac_find_includes" | |
29230 | fi | |
a848cd7e SC |
29231 | fi |
29232 | ||
74b84332 VS |
29233 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" |
29234 | else | |
e051b34e MW |
29235 | save_CFLAGS=$CFLAGS |
29236 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
29237 | ||
74b84332 | 29238 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
29239 | /* confdefs.h. */ |
29240 | _ACEOF | |
29241 | cat confdefs.h >>conftest.$ac_ext | |
29242 | cat >>conftest.$ac_ext <<_ACEOF | |
29243 | /* end confdefs.h. */ | |
29244 | ||
74b84332 VS |
29245 | #include <Xm/Xm.h> |
29246 | ||
a848cd7e SC |
29247 | int |
29248 | main () | |
29249 | { | |
29250 | ||
74b84332 VS |
29251 | int version; |
29252 | version = xmUseVersion; | |
29253 | ||
a848cd7e SC |
29254 | ; |
29255 | return 0; | |
29256 | } | |
29257 | _ACEOF | |
74b84332 VS |
29258 | rm -f conftest.$ac_objext |
29259 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29260 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 29261 | ac_status=$? |
ac1cb8d3 VS |
29262 | grep -v '^ *+' conftest.er1 >conftest.err |
29263 | rm -f conftest.er1 | |
29264 | cat conftest.err >&5 | |
a848cd7e SC |
29265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29266 | (exit $ac_status); } && | |
0093c2fc | 29267 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29269 | (eval $ac_try) 2>&5 | |
29270 | ac_status=$? | |
29271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29272 | (exit $ac_status); }; } && | |
74b84332 | 29273 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
29274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29275 | (eval $ac_try) 2>&5 | |
29276 | ac_status=$? | |
29277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29278 | (exit $ac_status); }; }; then | |
74b84332 VS |
29279 | |
29280 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
29281 | echo "${ECHO_T}found in default search path" >&6 | |
29282 | COMPILED_X_PROGRAM=1 | |
29283 | ||
a848cd7e SC |
29284 | else |
29285 | echo "$as_me: failed program was:" >&5 | |
29286 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29287 | ||
a848cd7e | 29288 | |
74b84332 VS |
29289 | echo "$as_me:$LINENO: result: no" >&5 |
29290 | echo "${ECHO_T}no" >&6 | |
e051b34e MW |
29291 | { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5 |
29292 | echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;} | |
74b84332 | 29293 | { (exit 1); exit 1; }; } |
a848cd7e | 29294 | |
a848cd7e | 29295 | |
a848cd7e | 29296 | fi |
74b84332 | 29297 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e051b34e MW |
29298 | |
29299 | CFLAGS=$save_CFLAGS | |
74b84332 VS |
29300 | fi |
29301 | ||
0ad5d837 VZ |
29302 | |
29303 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 | |
74b84332 VS |
29304 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 |
29305 | ||
0ad5d837 VZ |
29306 | ac_find_libraries= |
29307 | for ac_dir in $SEARCH_LIB; | |
74b84332 | 29308 | do |
3eca31dc | 29309 | for ac_extension in a so sl dylib dll.a; do |
74b84332 VS |
29310 | if test -f "$ac_dir/libXm.$ac_extension"; then |
29311 | ac_find_libraries=$ac_dir | |
29312 | break 2 | |
a848cd7e | 29313 | fi |
74b84332 VS |
29314 | done |
29315 | done | |
a848cd7e | 29316 | |
0ad5d837 VZ |
29317 | |
29318 | if test "x$ac_find_libraries" != "x" ; then | |
29319 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 | |
29320 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e | 29321 | |
74b84332 | 29322 | |
0ad5d837 | 29323 | if test "$ac_find_libraries" = "default location"; then |
74b84332 | 29324 | ac_path_to_link="" |
a848cd7e | 29325 | else |
0ad5d837 VZ |
29326 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
29327 | result=$? | |
29328 | if test $result = 0; then | |
29329 | ac_path_to_link="" | |
29330 | else | |
29331 | ac_path_to_link=" -L$ac_find_libraries" | |
29332 | fi | |
74b84332 VS |
29333 | fi |
29334 | ||
0ad5d837 VZ |
29335 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
29336 | else | |
29337 | save_CFLAGS=$CFLAGS | |
29338 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
6f9cf1e6 MW |
29339 | save_LIBS="$LIBS" |
29340 | LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11" | |
74b84332 | 29341 | |
0ad5d837 | 29342 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
29343 | /* confdefs.h. */ |
29344 | _ACEOF | |
29345 | cat confdefs.h >>conftest.$ac_ext | |
29346 | cat >>conftest.$ac_ext <<_ACEOF | |
29347 | /* end confdefs.h. */ | |
29348 | ||
0ad5d837 | 29349 | #include <Xm/Xm.h> |
74b84332 | 29350 | |
a848cd7e SC |
29351 | int |
29352 | main () | |
29353 | { | |
74b84332 | 29354 | |
0ad5d837 VZ |
29355 | int version; |
29356 | version = xmUseVersion; | |
74b84332 | 29357 | |
a848cd7e SC |
29358 | ; |
29359 | return 0; | |
29360 | } | |
29361 | _ACEOF | |
0ad5d837 VZ |
29362 | rm -f conftest.$ac_objext conftest$ac_exeext |
29363 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29364 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 29365 | ac_status=$? |
ac1cb8d3 VS |
29366 | grep -v '^ *+' conftest.er1 >conftest.err |
29367 | rm -f conftest.er1 | |
29368 | cat conftest.err >&5 | |
a848cd7e SC |
29369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29370 | (exit $ac_status); } && | |
0093c2fc | 29371 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29373 | (eval $ac_try) 2>&5 | |
29374 | ac_status=$? | |
29375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29376 | (exit $ac_status); }; } && | |
0ad5d837 | 29377 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
29378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29379 | (eval $ac_try) 2>&5 | |
29380 | ac_status=$? | |
29381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29382 | (exit $ac_status); }; }; then | |
74b84332 | 29383 | |
0ad5d837 | 29384 | echo "$as_me:$LINENO: result: found in default search path" >&5 |
74b84332 | 29385 | echo "${ECHO_T}found in default search path" >&6 |
0ad5d837 | 29386 | COMPILED_X_PROGRAM=1 |
74b84332 | 29387 | |
a848cd7e SC |
29388 | else |
29389 | echo "$as_me: failed program was:" >&5 | |
29390 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29391 | ||
74b84332 | 29392 | |
6f9cf1e6 | 29393 | echo "$as_me:$LINENO: result: no" >&5 |
74b84332 | 29394 | echo "${ECHO_T}no" >&6 |
6f9cf1e6 | 29395 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 |
74b84332 VS |
29396 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} |
29397 | { (exit 1); exit 1; }; } | |
29398 | ||
29399 | ||
29400 | fi | |
0ad5d837 VZ |
29401 | rm -f conftest.err conftest.$ac_objext \ |
29402 | conftest$ac_exeext conftest.$ac_ext | |
74b84332 | 29403 | |
0ad5d837 | 29404 | CFLAGS=$save_CFLAGS |
6f9cf1e6 | 29405 | LIBS="$save_LIBS" |
74b84332 VS |
29406 | fi |
29407 | ||
29408 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 | |
29409 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
29410 | libp_link="" | |
29411 | libsm_ice_link="" | |
29412 | libs_found=0 | |
29413 | for libp in "" " -lXp"; do | |
29414 | if test "$libs_found" = "0"; then | |
29415 | for libsm_ice in "" " -lSM -lICE"; do | |
29416 | if test "$libs_found" = "0"; then | |
29417 | save_LIBS="$LIBS" | |
29418 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
29419 | save_CFLAGS=$CFLAGS | |
29420 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
29421 | ||
29422 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
29423 | /* confdefs.h. */ |
29424 | _ACEOF | |
29425 | cat confdefs.h >>conftest.$ac_ext | |
29426 | cat >>conftest.$ac_ext <<_ACEOF | |
29427 | /* end confdefs.h. */ | |
29428 | ||
74b84332 VS |
29429 | #include <Xm/Xm.h> |
29430 | #include <Xm/List.h> | |
29431 | ||
a848cd7e SC |
29432 | int |
29433 | main () | |
29434 | { | |
74b84332 VS |
29435 | |
29436 | XmString string = NULL; | |
29437 | Widget w = NULL; | |
29438 | int position = 0; | |
29439 | XmListAddItem(w, string, position); | |
29440 | ||
a848cd7e SC |
29441 | ; |
29442 | return 0; | |
29443 | } | |
29444 | _ACEOF | |
29445 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29446 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29447 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29448 | ac_status=$? |
ac1cb8d3 VS |
29449 | grep -v '^ *+' conftest.er1 >conftest.err |
29450 | rm -f conftest.er1 | |
29451 | cat conftest.err >&5 | |
a848cd7e SC |
29452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29453 | (exit $ac_status); } && | |
0093c2fc | 29454 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29456 | (eval $ac_try) 2>&5 | |
29457 | ac_status=$? | |
29458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29459 | (exit $ac_status); }; } && | |
29460 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29462 | (eval $ac_try) 2>&5 | |
29463 | ac_status=$? | |
29464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29465 | (exit $ac_status); }; }; then | |
29466 | ||
29467 | libp_link="$libp" | |
29468 | libsm_ice_link="$libsm_ice" | |
29469 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 | |
29470 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
29471 | libs_found=1 | |
29472 | ||
29473 | else | |
29474 | echo "$as_me: failed program was:" >&5 | |
29475 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29476 | ||
29477 | ||
29478 | ||
29479 | fi | |
ac1cb8d3 VS |
29480 | rm -f conftest.err conftest.$ac_objext \ |
29481 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29482 | |
29483 | LIBS="$save_LIBS" | |
29484 | CFLAGS=$save_CFLAGS | |
29485 | fi | |
29486 | done | |
29487 | fi | |
29488 | done | |
29489 | ||
29490 | if test "$libs_found" = "0"; then | |
29491 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 | |
29492 | echo "${ECHO_T}can't find the right libraries" >&6 | |
29493 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
29494 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
29495 | { (exit 1); exit 1; }; } | |
29496 | fi | |
29497 | ||
62fa8b3a MW |
29498 | echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5 |
29499 | echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6 | |
29500 | if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then | |
29501 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29502 | else | |
29503 | ac_check_lib_save_LIBS=$LIBS | |
29504 | LIBS="-lSgm $LIBS" | |
29505 | cat >conftest.$ac_ext <<_ACEOF | |
29506 | /* confdefs.h. */ | |
29507 | _ACEOF | |
29508 | cat confdefs.h >>conftest.$ac_ext | |
29509 | cat >>conftest.$ac_ext <<_ACEOF | |
29510 | /* end confdefs.h. */ | |
29511 | ||
29512 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29513 | #ifdef __cplusplus | |
29514 | extern "C" | |
29515 | #endif | |
29516 | /* We use char because int might match the return type of a gcc2 | |
29517 | builtin and then its argument prototype would still apply. */ | |
29518 | char SgCreateList (); | |
29519 | int | |
29520 | main () | |
29521 | { | |
29522 | SgCreateList (); | |
29523 | ; | |
29524 | return 0; | |
29525 | } | |
29526 | _ACEOF | |
29527 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29528 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29529 | (eval $ac_link) 2>conftest.er1 | |
29530 | ac_status=$? | |
29531 | grep -v '^ *+' conftest.er1 >conftest.err | |
29532 | rm -f conftest.er1 | |
29533 | cat conftest.err >&5 | |
29534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29535 | (exit $ac_status); } && | |
0093c2fc | 29536 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
62fa8b3a MW |
29537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29538 | (eval $ac_try) 2>&5 | |
29539 | ac_status=$? | |
29540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29541 | (exit $ac_status); }; } && | |
29542 | { ac_try='test -s conftest$ac_exeext' | |
29543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29544 | (eval $ac_try) 2>&5 | |
29545 | ac_status=$? | |
29546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29547 | (exit $ac_status); }; }; then | |
29548 | ac_cv_lib_Sgm_SgCreateList=yes | |
29549 | else | |
29550 | echo "$as_me: failed program was:" >&5 | |
29551 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29552 | ||
29553 | ac_cv_lib_Sgm_SgCreateList=no | |
29554 | fi | |
29555 | rm -f conftest.err conftest.$ac_objext \ | |
29556 | conftest$ac_exeext conftest.$ac_ext | |
29557 | LIBS=$ac_check_lib_save_LIBS | |
29558 | fi | |
29559 | echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5 | |
29560 | echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6 | |
29561 | if test $ac_cv_lib_Sgm_SgCreateList = yes; then | |
29562 | libsgm_link=" -lSgm" | |
29563 | fi | |
29564 | ||
29565 | ||
a848cd7e SC |
29566 | save_CFLAGS=$CFLAGS |
29567 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
0ad5d837 | 29568 | |
a848cd7e SC |
29569 | echo "$as_me:$LINENO: checking for Motif 2" >&5 |
29570 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
0ad5d837 VZ |
29571 | if test "${wx_cv_lib_motif2+set}" = set; then |
29572 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29573 | else | |
29574 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
29575 | /* confdefs.h. */ |
29576 | _ACEOF | |
29577 | cat confdefs.h >>conftest.$ac_ext | |
29578 | cat >>conftest.$ac_ext <<_ACEOF | |
29579 | /* end confdefs.h. */ | |
29580 | ||
0ad5d837 | 29581 | #include <Xm/Xm.h> |
a848cd7e SC |
29582 | |
29583 | int | |
29584 | main () | |
29585 | { | |
29586 | ||
0ad5d837 VZ |
29587 | #if XmVersion < 2000 |
29588 | Not Motif 2 | |
29589 | #endif | |
a848cd7e SC |
29590 | |
29591 | ; | |
29592 | return 0; | |
29593 | } | |
29594 | _ACEOF | |
29595 | rm -f conftest.$ac_objext | |
29596 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29597 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29598 | ac_status=$? |
ac1cb8d3 VS |
29599 | grep -v '^ *+' conftest.er1 >conftest.err |
29600 | rm -f conftest.er1 | |
29601 | cat conftest.err >&5 | |
a848cd7e SC |
29602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29603 | (exit $ac_status); } && | |
0093c2fc | 29604 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29606 | (eval $ac_try) 2>&5 | |
29607 | ac_status=$? | |
29608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29609 | (exit $ac_status); }; } && | |
29610 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29612 | (eval $ac_try) 2>&5 | |
29613 | ac_status=$? | |
29614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29615 | (exit $ac_status); }; }; then | |
0ad5d837 | 29616 | wx_cv_lib_motif2="yes" |
a848cd7e SC |
29617 | else |
29618 | echo "$as_me: failed program was:" >&5 | |
29619 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29620 | ||
0ad5d837 VZ |
29621 | wx_cv_lib_motif2="no" |
29622 | fi | |
29623 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
29624 | fi | |
29625 | echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5 | |
29626 | echo "${ECHO_T}$wx_cv_lib_motif2" >&6 | |
29627 | if test "$wx_cv_lib_motif2" = "yes"; then | |
29628 | cat >>confdefs.h <<\_ACEOF | |
29629 | #define __WXMOTIF20__ 1 | |
29630 | _ACEOF | |
a848cd7e | 29631 | |
0ad5d837 VZ |
29632 | else |
29633 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
29634 | #define __WXMOTIF20__ 0 |
29635 | _ACEOF | |
29636 | ||
0ad5d837 | 29637 | fi |
2113bc77 MW |
29638 | |
29639 | echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5 | |
29640 | echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6 | |
0ad5d837 VZ |
29641 | if test "${wx_cv_lib_lesstif+set}" = set; then |
29642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29643 | else | |
29644 | cat >conftest.$ac_ext <<_ACEOF | |
2113bc77 MW |
29645 | /* confdefs.h. */ |
29646 | _ACEOF | |
29647 | cat confdefs.h >>conftest.$ac_ext | |
29648 | cat >>conftest.$ac_ext <<_ACEOF | |
29649 | /* end confdefs.h. */ | |
29650 | ||
0ad5d837 | 29651 | #include <Xm/Xm.h> |
2113bc77 MW |
29652 | |
29653 | int | |
29654 | main () | |
29655 | { | |
29656 | ||
0ad5d837 VZ |
29657 | #if !defined(LesstifVersion) || LesstifVersion <= 0 |
29658 | Not Lesstif | |
29659 | #endif | |
2113bc77 MW |
29660 | |
29661 | ; | |
29662 | return 0; | |
29663 | } | |
29664 | _ACEOF | |
29665 | rm -f conftest.$ac_objext | |
29666 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29667 | (eval $ac_compile) 2>conftest.er1 | |
29668 | ac_status=$? | |
29669 | grep -v '^ *+' conftest.er1 >conftest.err | |
29670 | rm -f conftest.er1 | |
29671 | cat conftest.err >&5 | |
29672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29673 | (exit $ac_status); } && | |
0093c2fc | 29674 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2113bc77 MW |
29675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29676 | (eval $ac_try) 2>&5 | |
29677 | ac_status=$? | |
29678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29679 | (exit $ac_status); }; } && | |
29680 | { ac_try='test -s conftest.$ac_objext' | |
29681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29682 | (eval $ac_try) 2>&5 | |
29683 | ac_status=$? | |
29684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29685 | (exit $ac_status); }; }; then | |
0ad5d837 | 29686 | wx_cv_lib_lesstif="yes" |
2113bc77 MW |
29687 | else |
29688 | echo "$as_me: failed program was:" >&5 | |
29689 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29690 | ||
0ad5d837 VZ |
29691 | wx_cv_lib_lesstif="no" |
29692 | fi | |
29693 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2113bc77 | 29694 | |
0ad5d837 VZ |
29695 | fi |
29696 | echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5 | |
29697 | echo "${ECHO_T}$wx_cv_lib_lesstif" >&6 | |
29698 | if test "$wx_cv_lib_lesstif" = "yes"; then | |
29699 | cat >>confdefs.h <<\_ACEOF | |
29700 | #define __WXLESSTIF__ 1 | |
29701 | _ACEOF | |
29702 | ||
29703 | else | |
29704 | cat >>confdefs.h <<\_ACEOF | |
2113bc77 MW |
29705 | #define __WXLESSTIF__ 0 |
29706 | _ACEOF | |
29707 | ||
0ad5d837 | 29708 | fi |
2113bc77 | 29709 | |
a848cd7e SC |
29710 | CFLAGS=$save_CFLAGS |
29711 | ||
62fa8b3a | 29712 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" |
a848cd7e SC |
29713 | TOOLKIT=MOTIF |
29714 | GUIDIST=MOTIF_DIST | |
29715 | fi | |
29716 | ||
74b84332 | 29717 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
a848cd7e SC |
29718 | if test "$wxUSE_LIBXPM" = "sys"; then |
29719 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
29720 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
29721 | ||
0ad5d837 VZ |
29722 | ac_find_libraries= |
29723 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 29724 | do |
3eca31dc | 29725 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
29726 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
29727 | ac_find_libraries=$ac_dir | |
29728 | break 2 | |
29729 | fi | |
29730 | done | |
29731 | done | |
29732 | ||
29733 | if test "$ac_find_libraries" != "" ; then | |
29734 | ||
0ad5d837 | 29735 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
29736 | ac_path_to_link="" |
29737 | else | |
0ad5d837 VZ |
29738 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
29739 | result=$? | |
29740 | if test $result = 0; then | |
29741 | ac_path_to_link="" | |
29742 | else | |
29743 | ac_path_to_link=" -L$ac_find_libraries" | |
29744 | fi | |
a848cd7e SC |
29745 | fi |
29746 | ||
29747 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
0ad5d837 VZ |
29748 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 |
29749 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e SC |
29750 | |
29751 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
29752 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
29753 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
29754 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29755 | else | |
29756 | ||
29757 | save_CFLAGS=$CFLAGS | |
29758 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
29759 | ||
29760 | cat >conftest.$ac_ext <<_ACEOF | |
29761 | /* confdefs.h. */ | |
29762 | _ACEOF | |
29763 | cat confdefs.h >>conftest.$ac_ext | |
29764 | cat >>conftest.$ac_ext <<_ACEOF | |
29765 | /* end confdefs.h. */ | |
29766 | ||
29767 | #include <X11/xpm.h> | |
29768 | ||
29769 | int | |
29770 | main () | |
29771 | { | |
29772 | ||
29773 | int version; | |
29774 | version = XpmLibraryVersion(); | |
29775 | ||
29776 | ; | |
29777 | return 0; | |
29778 | } | |
29779 | _ACEOF | |
29780 | rm -f conftest.$ac_objext | |
29781 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29782 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29783 | ac_status=$? |
ac1cb8d3 VS |
29784 | grep -v '^ *+' conftest.er1 >conftest.err |
29785 | rm -f conftest.er1 | |
29786 | cat conftest.err >&5 | |
a848cd7e SC |
29787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29788 | (exit $ac_status); } && | |
0093c2fc | 29789 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29791 | (eval $ac_try) 2>&5 | |
29792 | ac_status=$? | |
29793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29794 | (exit $ac_status); }; } && | |
29795 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29797 | (eval $ac_try) 2>&5 | |
29798 | ac_status=$? | |
29799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29800 | (exit $ac_status); }; }; then | |
29801 | wx_cv_x11_xpm_h=yes | |
29802 | else | |
29803 | echo "$as_me: failed program was:" >&5 | |
29804 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29805 | ||
29806 | wx_cv_x11_xpm_h=no | |
29807 | ||
29808 | fi | |
ac1cb8d3 | 29809 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29810 | |
29811 | CFLAGS=$save_CFLAGS | |
29812 | ||
29813 | ||
29814 | fi | |
29815 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
29816 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
29817 | ||
29818 | if test $wx_cv_x11_xpm_h = "yes"; then | |
29819 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" | |
29820 | cat >>confdefs.h <<\_ACEOF | |
29821 | #define wxHAVE_LIB_XPM 1 | |
29822 | _ACEOF | |
29823 | ||
29824 | else | |
29825 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
29826 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
29827 | fi | |
29828 | fi | |
29829 | ||
29830 | fi | |
29831 | ||
29832 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
29833 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
29834 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
29835 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29836 | else | |
29837 | ac_check_lib_save_LIBS=$LIBS | |
29838 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
29839 | cat >conftest.$ac_ext <<_ACEOF | |
29840 | /* confdefs.h. */ | |
29841 | _ACEOF | |
29842 | cat confdefs.h >>conftest.$ac_ext | |
29843 | cat >>conftest.$ac_ext <<_ACEOF | |
29844 | /* end confdefs.h. */ | |
29845 | ||
29846 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29847 | #ifdef __cplusplus | |
29848 | extern "C" | |
29849 | #endif | |
29850 | /* We use char because int might match the return type of a gcc2 | |
29851 | builtin and then its argument prototype would still apply. */ | |
29852 | char XShapeQueryExtension (); | |
29853 | int | |
29854 | main () | |
29855 | { | |
29856 | XShapeQueryExtension (); | |
29857 | ; | |
29858 | return 0; | |
29859 | } | |
29860 | _ACEOF | |
29861 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29862 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29863 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29864 | ac_status=$? |
ac1cb8d3 VS |
29865 | grep -v '^ *+' conftest.er1 >conftest.err |
29866 | rm -f conftest.er1 | |
29867 | cat conftest.err >&5 | |
a848cd7e SC |
29868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29869 | (exit $ac_status); } && | |
0093c2fc | 29870 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29872 | (eval $ac_try) 2>&5 | |
29873 | ac_status=$? | |
29874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29875 | (exit $ac_status); }; } && | |
29876 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29878 | (eval $ac_try) 2>&5 | |
29879 | ac_status=$? | |
29880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29881 | (exit $ac_status); }; }; then | |
29882 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
29883 | else | |
29884 | echo "$as_me: failed program was:" >&5 | |
29885 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29886 | ||
29887 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
29888 | fi | |
ac1cb8d3 VS |
29889 | rm -f conftest.err conftest.$ac_objext \ |
29890 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29891 | LIBS=$ac_check_lib_save_LIBS |
29892 | fi | |
29893 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
29894 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
29895 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
29896 | ||
29897 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
29898 | wxHAVE_XEXT_LIB=1 | |
29899 | ||
29900 | fi | |
29901 | ||
29902 | ||
29903 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
29904 | save_CFLAGS="$CFLAGS" | |
29905 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
29906 | ||
29907 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
29908 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
29909 | cat >conftest.$ac_ext <<_ACEOF | |
29910 | /* confdefs.h. */ | |
29911 | _ACEOF | |
29912 | cat confdefs.h >>conftest.$ac_ext | |
29913 | cat >>conftest.$ac_ext <<_ACEOF | |
29914 | /* end confdefs.h. */ | |
29915 | ||
29916 | #include <X11/Xlib.h> | |
29917 | #include <X11/extensions/shape.h> | |
29918 | ||
29919 | int | |
29920 | main () | |
29921 | { | |
29922 | ||
29923 | int dummy1, dummy2; | |
29924 | XShapeQueryExtension((Display*)NULL, | |
29925 | (int*)NULL, (int*)NULL); | |
29926 | ||
29927 | ; | |
29928 | return 0; | |
29929 | } | |
29930 | _ACEOF | |
29931 | rm -f conftest.$ac_objext | |
29932 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29933 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29934 | ac_status=$? |
ac1cb8d3 VS |
29935 | grep -v '^ *+' conftest.er1 >conftest.err |
29936 | rm -f conftest.er1 | |
29937 | cat conftest.err >&5 | |
a848cd7e SC |
29938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29939 | (exit $ac_status); } && | |
0093c2fc | 29940 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29942 | (eval $ac_try) 2>&5 | |
29943 | ac_status=$? | |
29944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29945 | (exit $ac_status); }; } && | |
29946 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29948 | (eval $ac_try) 2>&5 | |
29949 | ac_status=$? | |
29950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29951 | (exit $ac_status); }; }; then | |
29952 | ||
29953 | cat >>confdefs.h <<\_ACEOF | |
29954 | #define HAVE_XSHAPE 1 | |
29955 | _ACEOF | |
29956 | ||
29957 | echo "$as_me:$LINENO: result: found" >&5 | |
29958 | echo "${ECHO_T}found" >&6 | |
29959 | ||
29960 | else | |
29961 | echo "$as_me: failed program was:" >&5 | |
29962 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29963 | ||
29964 | ||
29965 | echo "$as_me:$LINENO: result: not found" >&5 | |
29966 | echo "${ECHO_T}not found" >&6 | |
29967 | ||
29968 | fi | |
ac1cb8d3 | 29969 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29970 | CFLAGS="$save_CFLAGS" |
29971 | ||
29972 | fi | |
29973 | fi | |
29974 | ||
29975 | if test "$wxUSE_MAC" = 1; then | |
29976 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 | |
29977 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
29978 | if test "$GCC" = yes; then | |
29979 | echo "$as_me:$LINENO: result: gcc" >&5 | |
29980 | echo "${ECHO_T}gcc" >&6 | |
29981 | CPPFLAGS_PASCAL="-fpascal-strings" | |
29982 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
29983 | echo "$as_me:$LINENO: result: xlc" >&5 | |
29984 | echo "${ECHO_T}xlc" >&6 | |
29985 | CPPFLAGS_PASCAL="-qmacpstr" | |
29986 | else | |
29987 | echo "$as_me:$LINENO: result: none" >&5 | |
29988 | echo "${ECHO_T}none" >&6 | |
29989 | fi | |
29990 | ||
1e9e8aba DE |
29991 | if test "x$wxUSE_UNIX" = "xyes"; then |
29992 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon" | |
29993 | else | |
29994 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON" | |
29995 | fi | |
a848cd7e | 29996 | |
a848cd7e SC |
29997 | TOOLKIT=MAC |
29998 | GUIDIST=MACX_DIST | |
dd21ced8 | 29999 | WXBASEPORT="_carbon" |
a848cd7e SC |
30000 | fi |
30001 | ||
30002 | if test "$wxUSE_COCOA" = 1; then | |
a848cd7e SC |
30003 | TOOLKIT=COCOA |
30004 | GUIDIST=COCOA_DIST | |
30005 | fi | |
30006 | ||
30007 | if test "$wxUSE_PM" = 1; then | |
30008 | TOOLKIT=PM | |
de59c161 RD |
30009 | GUIDIST=PM_DIST |
30010 | echo "$as_me:$LINENO: checking for type SPBCDATA" >&5 | |
30011 | echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6 | |
30012 | if test "${wx_cv_spbcdata+set}" = set; then | |
30013 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30014 | else | |
30015 | ||
30016 | cat >conftest.$ac_ext <<_ACEOF | |
de59c161 RD |
30017 | /* confdefs.h. */ |
30018 | _ACEOF | |
30019 | cat confdefs.h >>conftest.$ac_ext | |
30020 | cat >>conftest.$ac_ext <<_ACEOF | |
30021 | /* end confdefs.h. */ | |
30022 | ||
30023 | #define INCL_PM | |
30024 | #include <os2.h> | |
30025 | ||
30026 | int | |
30027 | main () | |
30028 | { | |
30029 | ||
30030 | SPBCDATA test; | |
30031 | ||
30032 | ; | |
30033 | return 0; | |
30034 | } | |
30035 | _ACEOF | |
30036 | rm -f conftest.$ac_objext | |
30037 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30038 | (eval $ac_compile) 2>conftest.er1 |
de59c161 | 30039 | ac_status=$? |
ac1cb8d3 VS |
30040 | grep -v '^ *+' conftest.er1 >conftest.err |
30041 | rm -f conftest.er1 | |
30042 | cat conftest.err >&5 | |
de59c161 RD |
30043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30044 | (exit $ac_status); } && | |
0093c2fc | 30045 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30047 | (eval $ac_try) 2>&5 | |
30048 | ac_status=$? | |
30049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30050 | (exit $ac_status); }; } && | |
30051 | { ac_try='test -s conftest.$ac_objext' | |
de59c161 RD |
30052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30053 | (eval $ac_try) 2>&5 | |
30054 | ac_status=$? | |
30055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30056 | (exit $ac_status); }; }; then | |
30057 | wx_cv_spbcdata=yes | |
30058 | else | |
30059 | echo "$as_me: failed program was:" >&5 | |
30060 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30061 | ||
30062 | wx_cv_spbcdata=no | |
30063 | ||
30064 | fi | |
ac1cb8d3 | 30065 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
de59c161 RD |
30066 | |
30067 | ||
30068 | fi | |
30069 | echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5 | |
30070 | echo "${ECHO_T}$wx_cv_spbcdata" >&6 | |
30071 | ||
30072 | if test $wx_cv_spbcdata = "yes"; then | |
30073 | cat >>confdefs.h <<\_ACEOF | |
30074 | #define HAVE_SPBCDATA 1 | |
30075 | _ACEOF | |
30076 | ||
30077 | fi | |
a848cd7e SC |
30078 | fi |
30079 | ||
30080 | if test "$TOOLKIT" = "PM" ; then | |
30081 | TOOLKIT_DIR="os2" | |
30082 | else | |
30083 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
30084 | fi | |
30085 | ||
a848cd7e | 30086 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
a848cd7e SC |
30087 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" |
30088 | WIDGET_SET=univ | |
a848cd7e SC |
30089 | fi |
30090 | ||
30091 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
30092 | DISTDIR="wx\$(TOOLKIT)" | |
30093 | else | |
30094 | USE_GUI=0 | |
30095 | ||
30096 | TOOLKIT_DIR="base" | |
30097 | ||
30098 | if test "$USE_WIN32" = 1 ; then | |
a848cd7e | 30099 | TOOLKIT="MSW" |
a848cd7e SC |
30100 | fi |
30101 | ||
a848cd7e SC |
30102 | GUIDIST="BASE_DIST" |
30103 | DISTDIR="wxBase" | |
30104 | fi | |
30105 | ||
30106 | ||
d12aef51 VZ |
30107 | if test "$wxUSE_GUI" = "yes"; then |
30108 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then | |
30109 | ||
30110 | for ac_header in X11/Xlib.h | |
30111 | do | |
30112 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
30113 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30114 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
30115 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
30116 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30117 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30118 | fi | |
30119 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
30120 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
30121 | else | |
30122 | # Is the header compilable? | |
30123 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
30124 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
30125 | cat >conftest.$ac_ext <<_ACEOF | |
30126 | /* confdefs.h. */ | |
30127 | _ACEOF | |
30128 | cat confdefs.h >>conftest.$ac_ext | |
30129 | cat >>conftest.$ac_ext <<_ACEOF | |
30130 | /* end confdefs.h. */ | |
30131 | $ac_includes_default | |
30132 | #include <$ac_header> | |
30133 | _ACEOF | |
30134 | rm -f conftest.$ac_objext | |
30135 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30136 | (eval $ac_compile) 2>conftest.er1 | |
30137 | ac_status=$? | |
30138 | grep -v '^ *+' conftest.er1 >conftest.err | |
30139 | rm -f conftest.er1 | |
30140 | cat conftest.err >&5 | |
30141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30142 | (exit $ac_status); } && | |
0093c2fc | 30143 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d12aef51 VZ |
30144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30145 | (eval $ac_try) 2>&5 | |
30146 | ac_status=$? | |
30147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30148 | (exit $ac_status); }; } && | |
30149 | { ac_try='test -s conftest.$ac_objext' | |
30150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30151 | (eval $ac_try) 2>&5 | |
30152 | ac_status=$? | |
30153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30154 | (exit $ac_status); }; }; then | |
30155 | ac_header_compiler=yes | |
30156 | else | |
30157 | echo "$as_me: failed program was:" >&5 | |
30158 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30159 | ||
30160 | ac_header_compiler=no | |
30161 | fi | |
30162 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30163 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
30164 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
30165 | ||
30166 | # Is the header present? | |
30167 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
30168 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
30169 | cat >conftest.$ac_ext <<_ACEOF | |
30170 | /* confdefs.h. */ | |
30171 | _ACEOF | |
30172 | cat confdefs.h >>conftest.$ac_ext | |
30173 | cat >>conftest.$ac_ext <<_ACEOF | |
30174 | /* end confdefs.h. */ | |
30175 | #include <$ac_header> | |
30176 | _ACEOF | |
30177 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
30178 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
30179 | ac_status=$? | |
30180 | grep -v '^ *+' conftest.er1 >conftest.err | |
30181 | rm -f conftest.er1 | |
30182 | cat conftest.err >&5 | |
30183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30184 | (exit $ac_status); } >/dev/null; then | |
30185 | if test -s conftest.err; then | |
30186 | ac_cpp_err=$ac_c_preproc_warn_flag | |
30187 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
30188 | else | |
30189 | ac_cpp_err= | |
30190 | fi | |
30191 | else | |
30192 | ac_cpp_err=yes | |
30193 | fi | |
30194 | if test -z "$ac_cpp_err"; then | |
30195 | ac_header_preproc=yes | |
30196 | else | |
30197 | echo "$as_me: failed program was:" >&5 | |
30198 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30199 | ||
30200 | ac_header_preproc=no | |
30201 | fi | |
30202 | rm -f conftest.err conftest.$ac_ext | |
30203 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
30204 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
30205 | ||
30206 | # So? What about this header? | |
30207 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
30208 | yes:no: ) | |
30209 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
30210 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
30211 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
30212 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
30213 | ac_header_preproc=yes | |
30214 | ;; | |
30215 | no:yes:* ) | |
30216 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
30217 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
30218 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
30219 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
30220 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
30221 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
30222 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
30223 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
30224 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
30225 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
30226 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
30227 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
30228 | ( | |
30229 | cat <<\_ASBOX | |
30230 | ## ----------------------------------------- ## | |
30231 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
30232 | ## ----------------------------------------- ## | |
30233 | _ASBOX | |
30234 | ) | | |
30235 | sed "s/^/$as_me: WARNING: /" >&2 | |
30236 | ;; | |
30237 | esac | |
30238 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
30239 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
30240 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30241 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30242 | else | |
30243 | eval "$as_ac_Header=\$ac_header_preproc" | |
30244 | fi | |
30245 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
30246 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
30247 | ||
30248 | fi | |
30249 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
30250 | cat >>confdefs.h <<_ACEOF | |
30251 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
30252 | _ACEOF | |
30253 | ||
30254 | fi | |
30255 | ||
30256 | done | |
30257 | ||
30258 | ||
30259 | for ac_header in X11/XKBlib.h | |
30260 | do | |
30261 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
30262 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
30263 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
30264 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30265 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30266 | else | |
30267 | cat >conftest.$ac_ext <<_ACEOF | |
30268 | /* confdefs.h. */ | |
30269 | _ACEOF | |
30270 | cat confdefs.h >>conftest.$ac_ext | |
30271 | cat >>conftest.$ac_ext <<_ACEOF | |
30272 | /* end confdefs.h. */ | |
30273 | ||
30274 | #if HAVE_X11_XLIB_H | |
30275 | #include <X11/Xlib.h> | |
30276 | #endif | |
30277 | ||
30278 | ||
30279 | #include <$ac_header> | |
30280 | _ACEOF | |
30281 | rm -f conftest.$ac_objext | |
30282 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30283 | (eval $ac_compile) 2>conftest.er1 | |
30284 | ac_status=$? | |
30285 | grep -v '^ *+' conftest.er1 >conftest.err | |
30286 | rm -f conftest.er1 | |
30287 | cat conftest.err >&5 | |
30288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30289 | (exit $ac_status); } && | |
0093c2fc | 30290 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d12aef51 VZ |
30291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30292 | (eval $ac_try) 2>&5 | |
30293 | ac_status=$? | |
30294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30295 | (exit $ac_status); }; } && | |
30296 | { ac_try='test -s conftest.$ac_objext' | |
30297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30298 | (eval $ac_try) 2>&5 | |
30299 | ac_status=$? | |
30300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30301 | (exit $ac_status); }; }; then | |
30302 | eval "$as_ac_Header=yes" | |
30303 | else | |
30304 | echo "$as_me: failed program was:" >&5 | |
30305 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30306 | ||
30307 | eval "$as_ac_Header=no" | |
30308 | fi | |
30309 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30310 | fi | |
30311 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
30312 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
30313 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
30314 | cat >>confdefs.h <<_ACEOF | |
30315 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
30316 | _ACEOF | |
30317 | ||
30318 | fi | |
30319 | ||
30320 | done | |
30321 | ||
30322 | fi | |
30323 | fi | |
30324 | ||
a848cd7e SC |
30325 | |
30326 | ||
30327 | IODBC_C_SRC="" | |
30328 | ||
30329 | ||
30330 | if test "$TOOLKIT" != "MSW" ; then | |
30331 | ||
30332 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then | |
30333 | ||
30334 | if test "${ac_cv_header_sql_h+set}" = set; then | |
30335 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
30336 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
30337 | if test "${ac_cv_header_sql_h+set}" = set; then | |
30338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30339 | fi | |
30340 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
30341 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
30342 | else | |
30343 | # Is the header compilable? | |
30344 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
30345 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
30346 | cat >conftest.$ac_ext <<_ACEOF | |
30347 | /* confdefs.h. */ | |
30348 | _ACEOF | |
30349 | cat confdefs.h >>conftest.$ac_ext | |
30350 | cat >>conftest.$ac_ext <<_ACEOF | |
30351 | /* end confdefs.h. */ | |
30352 | $ac_includes_default | |
30353 | #include <sql.h> | |
30354 | _ACEOF | |
30355 | rm -f conftest.$ac_objext | |
30356 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30357 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30358 | ac_status=$? |
ac1cb8d3 VS |
30359 | grep -v '^ *+' conftest.er1 >conftest.err |
30360 | rm -f conftest.er1 | |
30361 | cat conftest.err >&5 | |
a848cd7e SC |
30362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30363 | (exit $ac_status); } && | |
0093c2fc | 30364 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30366 | (eval $ac_try) 2>&5 | |
30367 | ac_status=$? | |
30368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30369 | (exit $ac_status); }; } && | |
30370 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30372 | (eval $ac_try) 2>&5 | |
30373 | ac_status=$? | |
30374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30375 | (exit $ac_status); }; }; then | |
30376 | ac_header_compiler=yes | |
30377 | else | |
30378 | echo "$as_me: failed program was:" >&5 | |
30379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30380 | ||
30381 | ac_header_compiler=no | |
30382 | fi | |
ac1cb8d3 | 30383 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30384 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
30385 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
30386 | ||
30387 | # Is the header present? | |
30388 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
30389 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
30390 | cat >conftest.$ac_ext <<_ACEOF | |
30391 | /* confdefs.h. */ | |
30392 | _ACEOF | |
30393 | cat confdefs.h >>conftest.$ac_ext | |
30394 | cat >>conftest.$ac_ext <<_ACEOF | |
30395 | /* end confdefs.h. */ | |
30396 | #include <sql.h> | |
30397 | _ACEOF | |
30398 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
30399 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
30400 | ac_status=$? | |
30401 | grep -v '^ *+' conftest.er1 >conftest.err | |
30402 | rm -f conftest.er1 | |
30403 | cat conftest.err >&5 | |
30404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30405 | (exit $ac_status); } >/dev/null; then | |
30406 | if test -s conftest.err; then | |
30407 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 30408 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
30409 | else |
30410 | ac_cpp_err= | |
30411 | fi | |
30412 | else | |
30413 | ac_cpp_err=yes | |
30414 | fi | |
30415 | if test -z "$ac_cpp_err"; then | |
30416 | ac_header_preproc=yes | |
30417 | else | |
30418 | echo "$as_me: failed program was:" >&5 | |
30419 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30420 | ||
30421 | ac_header_preproc=no | |
30422 | fi | |
30423 | rm -f conftest.err conftest.$ac_ext | |
30424 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
30425 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
30426 | ||
30427 | # So? What about this header? | |
ac1cb8d3 VS |
30428 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
30429 | yes:no: ) | |
a848cd7e SC |
30430 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
30431 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
30432 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 |
30433 | echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} | |
30434 | ac_header_preproc=yes | |
a848cd7e | 30435 | ;; |
ac1cb8d3 | 30436 | no:yes:* ) |
a848cd7e SC |
30437 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
30438 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
30439 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
30440 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
30441 | { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 | |
30442 | echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} | |
30443 | { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 | |
30444 | echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
30445 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
30446 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
30447 | { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 |
30448 | echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
30449 | ( |
30450 | cat <<\_ASBOX | |
ac1cb8d3 VS |
30451 | ## ----------------------------------------- ## |
30452 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
30453 | ## ----------------------------------------- ## | |
a848cd7e SC |
30454 | _ASBOX |
30455 | ) | | |
30456 | sed "s/^/$as_me: WARNING: /" >&2 | |
30457 | ;; | |
30458 | esac | |
30459 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
30460 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
30461 | if test "${ac_cv_header_sql_h+set}" = set; then | |
30462 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30463 | else | |
30464 | ac_cv_header_sql_h=$ac_header_preproc | |
30465 | fi | |
30466 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
30467 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
30468 | ||
30469 | fi | |
30470 | if test $ac_cv_header_sql_h = yes; then | |
30471 | found_sql_h=1 | |
30472 | fi | |
30473 | ||
30474 | ||
30475 | if test "x$found_sql_h" = "x1" ; then | |
30476 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 | |
30477 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
30478 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
30479 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30480 | else | |
30481 | ac_check_lib_save_LIBS=$LIBS | |
30482 | LIBS="-liodbc $LIBS" | |
30483 | cat >conftest.$ac_ext <<_ACEOF | |
30484 | /* confdefs.h. */ | |
30485 | _ACEOF | |
30486 | cat confdefs.h >>conftest.$ac_ext | |
30487 | cat >>conftest.$ac_ext <<_ACEOF | |
30488 | /* end confdefs.h. */ | |
30489 | ||
30490 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30491 | #ifdef __cplusplus | |
30492 | extern "C" | |
30493 | #endif | |
30494 | /* We use char because int might match the return type of a gcc2 | |
30495 | builtin and then its argument prototype would still apply. */ | |
30496 | char SQLAllocEnv (); | |
30497 | int | |
30498 | main () | |
30499 | { | |
30500 | SQLAllocEnv (); | |
30501 | ; | |
30502 | return 0; | |
30503 | } | |
30504 | _ACEOF | |
30505 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30506 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30507 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30508 | ac_status=$? |
ac1cb8d3 VS |
30509 | grep -v '^ *+' conftest.er1 >conftest.err |
30510 | rm -f conftest.er1 | |
30511 | cat conftest.err >&5 | |
a848cd7e SC |
30512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30513 | (exit $ac_status); } && | |
0093c2fc | 30514 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30516 | (eval $ac_try) 2>&5 | |
30517 | ac_status=$? | |
30518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30519 | (exit $ac_status); }; } && | |
30520 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30522 | (eval $ac_try) 2>&5 | |
30523 | ac_status=$? | |
30524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30525 | (exit $ac_status); }; }; then | |
30526 | ac_cv_lib_iodbc_SQLAllocEnv=yes | |
30527 | else | |
30528 | echo "$as_me: failed program was:" >&5 | |
30529 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30530 | ||
30531 | ac_cv_lib_iodbc_SQLAllocEnv=no | |
30532 | fi | |
ac1cb8d3 VS |
30533 | rm -f conftest.err conftest.$ac_objext \ |
30534 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30535 | LIBS=$ac_check_lib_save_LIBS |
30536 | fi | |
30537 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 | |
30538 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
30539 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
30540 | ODBC_LINK=" -liodbc" | |
30541 | else | |
30542 | ||
30543 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 | |
30544 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
30545 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
30546 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30547 | else | |
30548 | ac_check_lib_save_LIBS=$LIBS | |
30549 | LIBS="-lunixodbc $LIBS" | |
30550 | cat >conftest.$ac_ext <<_ACEOF | |
30551 | /* confdefs.h. */ | |
30552 | _ACEOF | |
30553 | cat confdefs.h >>conftest.$ac_ext | |
30554 | cat >>conftest.$ac_ext <<_ACEOF | |
30555 | /* end confdefs.h. */ | |
30556 | ||
30557 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30558 | #ifdef __cplusplus | |
30559 | extern "C" | |
30560 | #endif | |
30561 | /* We use char because int might match the return type of a gcc2 | |
30562 | builtin and then its argument prototype would still apply. */ | |
30563 | char SQLAllocEnv (); | |
30564 | int | |
30565 | main () | |
30566 | { | |
30567 | SQLAllocEnv (); | |
30568 | ; | |
30569 | return 0; | |
30570 | } | |
30571 | _ACEOF | |
30572 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30573 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30574 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30575 | ac_status=$? |
ac1cb8d3 VS |
30576 | grep -v '^ *+' conftest.er1 >conftest.err |
30577 | rm -f conftest.er1 | |
30578 | cat conftest.err >&5 | |
a848cd7e SC |
30579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30580 | (exit $ac_status); } && | |
0093c2fc | 30581 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30583 | (eval $ac_try) 2>&5 | |
30584 | ac_status=$? | |
30585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30586 | (exit $ac_status); }; } && | |
30587 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30589 | (eval $ac_try) 2>&5 | |
30590 | ac_status=$? | |
30591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30592 | (exit $ac_status); }; }; then | |
30593 | ac_cv_lib_unixodbc_SQLAllocEnv=yes | |
30594 | else | |
30595 | echo "$as_me: failed program was:" >&5 | |
30596 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30597 | ||
30598 | ac_cv_lib_unixodbc_SQLAllocEnv=no | |
30599 | fi | |
ac1cb8d3 VS |
30600 | rm -f conftest.err conftest.$ac_objext \ |
30601 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30602 | LIBS=$ac_check_lib_save_LIBS |
30603 | fi | |
30604 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 | |
30605 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
30606 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
30607 | ODBC_LINK=" -lunixodbc" | |
30608 | else | |
30609 | ||
30610 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 | |
30611 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
30612 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
30613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30614 | else | |
30615 | ac_check_lib_save_LIBS=$LIBS | |
30616 | LIBS="-lodbc $LIBS" | |
30617 | cat >conftest.$ac_ext <<_ACEOF | |
30618 | /* confdefs.h. */ | |
30619 | _ACEOF | |
30620 | cat confdefs.h >>conftest.$ac_ext | |
30621 | cat >>conftest.$ac_ext <<_ACEOF | |
30622 | /* end confdefs.h. */ | |
30623 | ||
30624 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30625 | #ifdef __cplusplus | |
30626 | extern "C" | |
30627 | #endif | |
30628 | /* We use char because int might match the return type of a gcc2 | |
30629 | builtin and then its argument prototype would still apply. */ | |
30630 | char SQLAllocEnv (); | |
30631 | int | |
30632 | main () | |
30633 | { | |
30634 | SQLAllocEnv (); | |
30635 | ; | |
30636 | return 0; | |
30637 | } | |
30638 | _ACEOF | |
30639 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30640 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30641 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30642 | ac_status=$? |
ac1cb8d3 VS |
30643 | grep -v '^ *+' conftest.er1 >conftest.err |
30644 | rm -f conftest.er1 | |
30645 | cat conftest.err >&5 | |
a848cd7e SC |
30646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30647 | (exit $ac_status); } && | |
0093c2fc | 30648 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30650 | (eval $ac_try) 2>&5 | |
30651 | ac_status=$? | |
30652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30653 | (exit $ac_status); }; } && | |
30654 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30656 | (eval $ac_try) 2>&5 | |
30657 | ac_status=$? | |
30658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30659 | (exit $ac_status); }; }; then | |
30660 | ac_cv_lib_odbc_SQLAllocEnv=yes | |
30661 | else | |
30662 | echo "$as_me: failed program was:" >&5 | |
30663 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30664 | ||
30665 | ac_cv_lib_odbc_SQLAllocEnv=no | |
30666 | fi | |
ac1cb8d3 VS |
30667 | rm -f conftest.err conftest.$ac_objext \ |
30668 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30669 | LIBS=$ac_check_lib_save_LIBS |
30670 | fi | |
30671 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 | |
30672 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
30673 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
30674 | ODBC_LINK=" -lodbc" | |
30675 | fi | |
30676 | ||
30677 | ||
30678 | fi | |
30679 | ||
30680 | ||
30681 | fi | |
30682 | ||
30683 | fi | |
30684 | if test "x$ODBC_LINK" = "x" ; then | |
30685 | if test "$wxUSE_ODBC" = "sys" ; then | |
30686 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
30687 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
30688 | { (exit 1); exit 1; }; } | |
30689 | else | |
30690 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
30691 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
30692 | wxUSE_ODBC=builtin | |
30693 | fi | |
30694 | else | |
30695 | wxUSE_ODBC=sys | |
30696 | fi | |
30697 | fi | |
a848cd7e | 30698 | |
2da0c077 RD |
30699 | if test "$wxUSE_ODBC" = "builtin" ; then |
30700 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
30701 | #define wxUSE_BUILTIN_IODBC 1 |
30702 | _ACEOF | |
30703 | ||
a848cd7e SC |
30704 | fi |
30705 | fi | |
30706 | ||
2da0c077 RD |
30707 | if test "$wxUSE_ODBC" != "no" ; then |
30708 | cat >>confdefs.h <<\_ACEOF | |
30709 | #define wxUSE_ODBC 1 | |
30710 | _ACEOF | |
30711 | ||
30712 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
30713 | ||
30714 | WXODBCFLAG="-D_IODBC_" | |
30715 | fi | |
a848cd7e | 30716 | |
01cb68df | 30717 | |
a848cd7e | 30718 | if test "$wxUSE_DISPLAY" = "yes"; then |
2a5d7a98 | 30719 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then |
a848cd7e SC |
30720 | echo "$as_me:$LINENO: checking for Xinerama" >&5 |
30721 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
30722 | ||
0ad5d837 VZ |
30723 | ac_find_libraries= |
30724 | for ac_dir in $SEARCH_LIB; | |
30725 | do | |
30726 | for ac_extension in a so sl dylib dll.a; do | |
30727 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
30728 | ac_find_libraries=$ac_dir | |
30729 | break 2 | |
30730 | fi | |
30731 | done | |
30732 | done | |
30733 | ||
a848cd7e SC |
30734 | if test "$ac_find_libraries" != "" ; then |
30735 | ||
0ad5d837 | 30736 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
30737 | ac_path_to_link="" |
30738 | else | |
0ad5d837 VZ |
30739 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
30740 | result=$? | |
30741 | if test $result = 0; then | |
30742 | ac_path_to_link="" | |
30743 | else | |
30744 | ac_path_to_link=" -L$ac_find_libraries" | |
30745 | fi | |
a848cd7e SC |
30746 | fi |
30747 | ||
30748 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
30749 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
30750 | fi | |
30751 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
30752 | echo "$as_me:$LINENO: result: yes" >&5 | |
30753 | echo "${ECHO_T}yes" >&6 | |
30754 | ||
30755 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
30756 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
30757 | ||
0ad5d837 VZ |
30758 | ac_find_libraries= |
30759 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 30760 | do |
3eca31dc | 30761 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
30762 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then |
30763 | ac_find_libraries=$ac_dir | |
30764 | break 2 | |
30765 | fi | |
30766 | done | |
30767 | done | |
30768 | ||
30769 | if test "$ac_find_libraries" != "" ; then | |
30770 | echo "$as_me:$LINENO: result: yes" >&5 | |
30771 | echo "${ECHO_T}yes" >&6 | |
30772 | ||
30773 | for ac_header in X11/extensions/xf86vmode.h | |
30774 | do | |
30775 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
30776 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
30777 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
30778 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30779 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30780 | else | |
30781 | cat >conftest.$ac_ext <<_ACEOF | |
30782 | /* confdefs.h. */ | |
30783 | _ACEOF | |
30784 | cat confdefs.h >>conftest.$ac_ext | |
30785 | cat >>conftest.$ac_ext <<_ACEOF | |
30786 | /* end confdefs.h. */ | |
30787 | ||
30788 | #if HAVE_X11_XLIB_H | |
30789 | #include <X11/Xlib.h> | |
30790 | #endif | |
30791 | ||
30792 | ||
30793 | #include <$ac_header> | |
30794 | _ACEOF | |
30795 | rm -f conftest.$ac_objext | |
30796 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30797 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30798 | ac_status=$? |
ac1cb8d3 VS |
30799 | grep -v '^ *+' conftest.er1 >conftest.err |
30800 | rm -f conftest.er1 | |
30801 | cat conftest.err >&5 | |
a848cd7e SC |
30802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30803 | (exit $ac_status); } && | |
0093c2fc | 30804 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30806 | (eval $ac_try) 2>&5 | |
30807 | ac_status=$? | |
30808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30809 | (exit $ac_status); }; } && | |
30810 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30812 | (eval $ac_try) 2>&5 | |
30813 | ac_status=$? | |
30814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30815 | (exit $ac_status); }; }; then | |
30816 | eval "$as_ac_Header=yes" | |
30817 | else | |
30818 | echo "$as_me: failed program was:" >&5 | |
30819 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30820 | ||
30821 | eval "$as_ac_Header=no" | |
30822 | fi | |
ac1cb8d3 | 30823 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30824 | fi |
30825 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
30826 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
30827 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
30828 | cat >>confdefs.h <<_ACEOF | |
30829 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
30830 | _ACEOF | |
30831 | ||
30832 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
30833 | ||
30834 | fi | |
30835 | ||
30836 | done | |
30837 | ||
30838 | else | |
30839 | echo "$as_me:$LINENO: result: no" >&5 | |
30840 | echo "${ECHO_T}no" >&6 | |
30841 | fi | |
30842 | ||
30843 | else | |
30844 | echo "$as_me:$LINENO: result: no" >&5 | |
30845 | echo "${ECHO_T}no" >&6 | |
dcc1b6ad VS |
30846 | { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5 |
30847 | echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;} | |
a848cd7e SC |
30848 | wxUSE_DISPLAY="no" |
30849 | fi | |
01cb68df RG |
30850 | elif test "$wxUSE_MSW" = 1; then |
30851 | ||
30852 | ||
30853 | for ac_header in multimon.h ddraw.h | |
30854 | do | |
30855 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5294a27e | 30856 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
01cb68df RG |
30857 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
30858 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30859 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
01cb68df | 30860 | else |
5294a27e | 30861 | cat >conftest.$ac_ext <<_ACEOF |
01cb68df RG |
30862 | /* confdefs.h. */ |
30863 | _ACEOF | |
30864 | cat confdefs.h >>conftest.$ac_ext | |
30865 | cat >>conftest.$ac_ext <<_ACEOF | |
30866 | /* end confdefs.h. */ | |
5294a27e VZ |
30867 | #include <windows.h> |
30868 | ||
01cb68df RG |
30869 | #include <$ac_header> |
30870 | _ACEOF | |
30871 | rm -f conftest.$ac_objext | |
30872 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30873 | (eval $ac_compile) 2>conftest.er1 |
01cb68df | 30874 | ac_status=$? |
ac1cb8d3 VS |
30875 | grep -v '^ *+' conftest.er1 >conftest.err |
30876 | rm -f conftest.er1 | |
30877 | cat conftest.err >&5 | |
01cb68df RG |
30878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30879 | (exit $ac_status); } && | |
0093c2fc | 30880 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30882 | (eval $ac_try) 2>&5 | |
30883 | ac_status=$? | |
30884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30885 | (exit $ac_status); }; } && | |
30886 | { ac_try='test -s conftest.$ac_objext' | |
01cb68df RG |
30887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30888 | (eval $ac_try) 2>&5 | |
30889 | ac_status=$? | |
30890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30891 | (exit $ac_status); }; }; then | |
5294a27e | 30892 | eval "$as_ac_Header=yes" |
01cb68df RG |
30893 | else |
30894 | echo "$as_me: failed program was:" >&5 | |
30895 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30896 | ||
5294a27e | 30897 | eval "$as_ac_Header=no" |
01cb68df | 30898 | fi |
ac1cb8d3 | 30899 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
01cb68df RG |
30900 | fi |
30901 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
30902 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
01cb68df RG |
30903 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
30904 | cat >>confdefs.h <<_ACEOF | |
30905 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
30906 | _ACEOF | |
30907 | ||
30908 | else | |
30909 | ||
5294a27e VZ |
30910 | wxUSE_DISPLAY="no" |
30911 | { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5 | |
dcc1b6ad | 30912 | echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;} |
01cb68df RG |
30913 | |
30914 | fi | |
30915 | ||
30916 | done | |
30917 | ||
a848cd7e SC |
30918 | fi |
30919 | fi | |
30920 | ||
30921 | ||
30922 | USE_OPENGL=0 | |
30923 | if test "$wxUSE_OPENGL" = "yes"; then | |
30924 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
30925 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
30926 | elif test "$wxUSE_MSW" = 1; then | |
30927 | OPENGL_LIBS="-lopengl32 -lglu32" | |
30928 | else | |
30929 | ||
30930 | ||
30931 | ac_find_includes= | |
30932 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
30933 | do | |
30934 | if test -f "$ac_dir/GL/gl.h"; then | |
30935 | ac_find_includes=$ac_dir | |
30936 | break | |
30937 | fi | |
30938 | done | |
30939 | ||
30940 | if test "$ac_find_includes" != "" ; then | |
30941 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
30942 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
30943 | ||
30944 | if test "x$ac_find_includes" = "x/usr/include"; then | |
30945 | ac_path_to_include="" | |
30946 | else | |
30947 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
30948 | result=$? | |
30949 | if test $result = 0; then | |
30950 | ac_path_to_include="" | |
30951 | else | |
30952 | ac_path_to_include=" -I$ac_find_includes" | |
30953 | fi | |
30954 | fi | |
30955 | ||
30956 | CPPFLAGS="$CPPFLAGS$ac_path_to_include" | |
30957 | fi | |
30958 | ||
30959 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
30960 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
30961 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
30962 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
30963 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30964 | fi | |
30965 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
30966 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
30967 | else | |
30968 | # Is the header compilable? | |
30969 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
30970 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
30971 | cat >conftest.$ac_ext <<_ACEOF | |
30972 | /* confdefs.h. */ | |
30973 | _ACEOF | |
30974 | cat confdefs.h >>conftest.$ac_ext | |
30975 | cat >>conftest.$ac_ext <<_ACEOF | |
30976 | /* end confdefs.h. */ | |
30977 | $ac_includes_default | |
30978 | #include <GL/gl.h> | |
30979 | _ACEOF | |
30980 | rm -f conftest.$ac_objext | |
30981 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30982 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30983 | ac_status=$? |
ac1cb8d3 VS |
30984 | grep -v '^ *+' conftest.er1 >conftest.err |
30985 | rm -f conftest.er1 | |
30986 | cat conftest.err >&5 | |
a848cd7e SC |
30987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30988 | (exit $ac_status); } && | |
0093c2fc | 30989 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30991 | (eval $ac_try) 2>&5 | |
30992 | ac_status=$? | |
30993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30994 | (exit $ac_status); }; } && | |
30995 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30997 | (eval $ac_try) 2>&5 | |
30998 | ac_status=$? | |
30999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31000 | (exit $ac_status); }; }; then | |
31001 | ac_header_compiler=yes | |
31002 | else | |
31003 | echo "$as_me: failed program was:" >&5 | |
31004 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31005 | ||
31006 | ac_header_compiler=no | |
31007 | fi | |
ac1cb8d3 | 31008 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31009 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
31010 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31011 | ||
31012 | # Is the header present? | |
31013 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
31014 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
31015 | cat >conftest.$ac_ext <<_ACEOF | |
31016 | /* confdefs.h. */ | |
31017 | _ACEOF | |
31018 | cat confdefs.h >>conftest.$ac_ext | |
31019 | cat >>conftest.$ac_ext <<_ACEOF | |
31020 | /* end confdefs.h. */ | |
31021 | #include <GL/gl.h> | |
31022 | _ACEOF | |
31023 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31024 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31025 | ac_status=$? | |
31026 | grep -v '^ *+' conftest.er1 >conftest.err | |
31027 | rm -f conftest.er1 | |
31028 | cat conftest.err >&5 | |
31029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31030 | (exit $ac_status); } >/dev/null; then | |
31031 | if test -s conftest.err; then | |
31032 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 31033 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
31034 | else |
31035 | ac_cpp_err= | |
31036 | fi | |
31037 | else | |
31038 | ac_cpp_err=yes | |
31039 | fi | |
31040 | if test -z "$ac_cpp_err"; then | |
31041 | ac_header_preproc=yes | |
31042 | else | |
31043 | echo "$as_me: failed program was:" >&5 | |
31044 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31045 | ||
31046 | ac_header_preproc=no | |
31047 | fi | |
31048 | rm -f conftest.err conftest.$ac_ext | |
31049 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31050 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31051 | ||
31052 | # So? What about this header? | |
ac1cb8d3 VS |
31053 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
31054 | yes:no: ) | |
a848cd7e SC |
31055 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
31056 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
31057 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 |
31058 | echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} | |
31059 | ac_header_preproc=yes | |
a848cd7e | 31060 | ;; |
ac1cb8d3 | 31061 | no:yes:* ) |
a848cd7e SC |
31062 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
31063 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
31064 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
31065 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
31066 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 | |
31067 | echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} | |
31068 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
31069 | echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
31070 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
31071 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
31072 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 |
31073 | echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
31074 | ( |
31075 | cat <<\_ASBOX | |
ac1cb8d3 VS |
31076 | ## ----------------------------------------- ## |
31077 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
31078 | ## ----------------------------------------- ## | |
a848cd7e SC |
31079 | _ASBOX |
31080 | ) | | |
31081 | sed "s/^/$as_me: WARNING: /" >&2 | |
31082 | ;; | |
31083 | esac | |
31084 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
31085 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
31086 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
31087 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31088 | else | |
31089 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
31090 | fi | |
31091 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
31092 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
31093 | ||
31094 | fi | |
31095 | if test $ac_cv_header_GL_gl_h = yes; then | |
31096 | ||
31097 | found_gl=0 | |
31098 | ||
31099 | echo "$as_me:$LINENO: checking for -lGL" >&5 | |
31100 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
31101 | ||
0ad5d837 VZ |
31102 | ac_find_libraries= |
31103 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 31104 | do |
3eca31dc | 31105 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
31106 | if test -f "$ac_dir/libGL.$ac_extension"; then |
31107 | ac_find_libraries=$ac_dir | |
31108 | break 2 | |
31109 | fi | |
31110 | done | |
31111 | done | |
31112 | ||
31113 | if test "$ac_find_libraries" != "" ; then | |
69120ee4 VZ |
31114 | echo "$as_me:$LINENO: result: yes" >&5 |
31115 | echo "${ECHO_T}yes" >&6 | |
31116 | ||
a848cd7e | 31117 | |
0ad5d837 | 31118 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
31119 | ac_path_to_link="" |
31120 | else | |
0ad5d837 VZ |
31121 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
31122 | result=$? | |
31123 | if test $result = 0; then | |
31124 | ac_path_to_link="" | |
31125 | else | |
31126 | ac_path_to_link=" -L$ac_find_libraries" | |
31127 | fi | |
a848cd7e SC |
31128 | fi |
31129 | ||
31130 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
31131 | LDFLAGS_GL="$ac_path_to_link" | |
31132 | fi | |
31133 | ||
69120ee4 VZ |
31134 | echo "$as_me:$LINENO: checking for -lGLU" >&5 |
31135 | echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6 | |
a848cd7e | 31136 | |
0ad5d837 VZ |
31137 | ac_find_libraries= |
31138 | for ac_dir in $SEARCH_LIB; | |
31139 | do | |
31140 | for ac_extension in a so sl dylib dll.a; do | |
31141 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
31142 | ac_find_libraries=$ac_dir | |
31143 | break 2 | |
31144 | fi | |
31145 | done | |
31146 | done | |
31147 | ||
a848cd7e SC |
31148 | if test "$ac_find_libraries" != "" ; then |
31149 | ||
0ad5d837 | 31150 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
31151 | ac_path_to_link="" |
31152 | else | |
0ad5d837 VZ |
31153 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
31154 | result=$? | |
31155 | if test $result = 0; then | |
31156 | ac_path_to_link="" | |
31157 | else | |
31158 | ac_path_to_link=" -L$ac_find_libraries" | |
31159 | fi | |
a848cd7e SC |
31160 | fi |
31161 | ||
31162 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
31163 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
31164 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
31165 | fi | |
31166 | ||
31167 | found_gl=1 | |
31168 | OPENGL_LIBS="-lGL -lGLU" | |
31169 | echo "$as_me:$LINENO: result: yes" >&5 | |
31170 | echo "${ECHO_T}yes" >&6 | |
69120ee4 VZ |
31171 | else |
31172 | echo "$as_me:$LINENO: result: no" >&5 | |
31173 | echo "${ECHO_T}no" >&6 | |
a848cd7e | 31174 | fi |
69120ee4 VZ |
31175 | else |
31176 | echo "$as_me:$LINENO: result: no" >&5 | |
31177 | echo "${ECHO_T}no" >&6 | |
a848cd7e SC |
31178 | fi |
31179 | ||
31180 | if test "$found_gl" != 1; then | |
a848cd7e SC |
31181 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 |
31182 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
31183 | ||
0ad5d837 VZ |
31184 | ac_find_libraries= |
31185 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 31186 | do |
3eca31dc | 31187 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
31188 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then |
31189 | ac_find_libraries=$ac_dir | |
31190 | break 2 | |
31191 | fi | |
31192 | done | |
31193 | done | |
31194 | ||
31195 | if test "$ac_find_libraries" != "" ; then | |
31196 | ||
0ad5d837 | 31197 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
31198 | ac_path_to_link="" |
31199 | else | |
0ad5d837 VZ |
31200 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
31201 | result=$? | |
31202 | if test $result = 0; then | |
31203 | ac_path_to_link="" | |
31204 | else | |
31205 | ac_path_to_link=" -L$ac_find_libraries" | |
31206 | fi | |
a848cd7e SC |
31207 | fi |
31208 | ||
31209 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
31210 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
31211 | echo "$as_me:$LINENO: result: yes" >&5 | |
31212 | echo "${ECHO_T}yes" >&6 | |
31213 | else | |
31214 | echo "$as_me:$LINENO: result: no" >&5 | |
31215 | echo "${ECHO_T}no" >&6 | |
31216 | fi | |
31217 | fi | |
31218 | ||
31219 | fi | |
31220 | ||
31221 | ||
31222 | ||
31223 | if test "x$OPENGL_LIBS" = "x"; then | |
31224 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 | |
31225 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
31226 | { (exit 1); exit 1; }; } | |
31227 | fi | |
31228 | fi | |
31229 | ||
31230 | if test "$wxUSE_OPENGL" = "yes"; then | |
31231 | USE_OPENGL=1 | |
31232 | cat >>confdefs.h <<\_ACEOF | |
31233 | #define wxUSE_OPENGL 1 | |
31234 | _ACEOF | |
31235 | ||
31236 | cat >>confdefs.h <<\_ACEOF | |
31237 | #define wxUSE_GLCANVAS 1 | |
31238 | _ACEOF | |
31239 | ||
31240 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" | |
31241 | fi | |
31242 | fi | |
31243 | ||
a848cd7e SC |
31244 | |
31245 | if test -n "$TOOLKIT" ; then | |
31246 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
31247 | fi | |
31248 | ||
a848cd7e SC |
31249 | |
31250 | ||
31251 | if test "$wxUSE_SHARED" = "yes"; then | |
31252 | case "${host}" in | |
31253 | *-pc-msdosdjgpp ) | |
31254 | wxUSE_SHARED=no | |
31255 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 | |
31256 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
31257 | ;; | |
31258 | esac | |
31259 | fi | |
31260 | ||
a848cd7e | 31261 | if test "$wxUSE_SHARED" = "yes"; then |
a848cd7e SC |
31262 | |
31263 | ||
31264 | found_versioning=no | |
31265 | ||
31266 | ||
31267 | if test $found_versioning = no ; then | |
31268 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 | |
31269 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
31270 | if test "${wx_cv_version_script+set}" = set; then | |
31271 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31272 | else | |
31273 | ||
31274 | echo "VER_1 { *; };" >conftest.sym | |
31275 | echo "int main() { return 0; }" >conftest.cpp | |
31276 | ||
31277 | if { ac_try=' | |
31278 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
31279 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' | |
31280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31281 | (eval $ac_try) 2>&5 | |
31282 | ac_status=$? | |
31283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31284 | (exit $ac_status); }; } ; then | |
31285 | if test -s conftest.stderr ; then | |
31286 | wx_cv_version_script=no | |
31287 | else | |
31288 | wx_cv_version_script=yes | |
31289 | fi | |
31290 | else | |
31291 | wx_cv_version_script=no | |
31292 | fi | |
e5d4b470 MW |
31293 | |
31294 | if test $wx_cv_version_script = yes | |
31295 | then | |
31296 | echo "struct B { virtual ~B() { } }; \ | |
31297 | struct D : public B { }; \ | |
31298 | void F() { D d; }" > conftest.cpp | |
31299 | ||
31300 | if { ac_try=' | |
31301 | $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
31302 | -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null' | |
31303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31304 | (eval $ac_try) 2>&5 | |
31305 | ac_status=$? | |
31306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31307 | (exit $ac_status); }; } && | |
31308 | { ac_try=' | |
31309 | $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
31310 | -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null' | |
31311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31312 | (eval $ac_try) 2>&5 | |
31313 | ac_status=$? | |
31314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31315 | (exit $ac_status); }; } | |
31316 | then | |
31317 | if { ac_try=' | |
31318 | $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
31319 | -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null' | |
31320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31321 | (eval $ac_try) 2>&5 | |
31322 | ac_status=$? | |
31323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31324 | (exit $ac_status); }; } | |
31325 | then | |
31326 | wx_cv_version_script=yes | |
31327 | else | |
31328 | wx_cv_version_script=no | |
31329 | fi | |
31330 | fi | |
31331 | fi | |
31332 | ||
a848cd7e | 31333 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp |
e5d4b470 | 31334 | rm -f conftest1.output conftest2.output conftest3.output |
a848cd7e SC |
31335 | |
31336 | fi | |
31337 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
31338 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
31339 | if test $wx_cv_version_script = yes ; then | |
31340 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" | |
31341 | fi | |
31342 | fi | |
31343 | ||
31344 | ||
31345 | case "${host}" in | |
31346 | *-*-linux* | *-*-gnu* ) | |
31347 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 31348 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
6ebeb4c7 | 31349 | ;; |
a848cd7e SC |
31350 | |
31351 | *-*-solaris2* ) | |
31352 | if test "$GCC" = yes ; then | |
31353 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
31354 | ||
31355 | saveLdflags="$LDFLAGS" | |
31356 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
31357 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 | |
31358 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
31359 | cat >conftest.$ac_ext <<_ACEOF | |
31360 | /* confdefs.h. */ | |
31361 | _ACEOF | |
31362 | cat confdefs.h >>conftest.$ac_ext | |
31363 | cat >>conftest.$ac_ext <<_ACEOF | |
31364 | /* end confdefs.h. */ | |
31365 | ||
31366 | int | |
31367 | main () | |
31368 | { | |
31369 | ||
31370 | ; | |
31371 | return 0; | |
31372 | } | |
31373 | _ACEOF | |
31374 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31375 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31376 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31377 | ac_status=$? |
ac1cb8d3 VS |
31378 | grep -v '^ *+' conftest.er1 >conftest.err |
31379 | rm -f conftest.er1 | |
31380 | cat conftest.err >&5 | |
a848cd7e SC |
31381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31382 | (exit $ac_status); } && | |
0093c2fc | 31383 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31385 | (eval $ac_try) 2>&5 | |
31386 | ac_status=$? | |
31387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31388 | (exit $ac_status); }; } && | |
31389 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31391 | (eval $ac_try) 2>&5 | |
31392 | ac_status=$? | |
31393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31394 | (exit $ac_status); }; }; then | |
31395 | ||
31396 | echo "$as_me:$LINENO: result: yes" >&5 | |
31397 | echo "${ECHO_T}yes" >&6 | |
31398 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 31399 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
31400 | |
31401 | else | |
31402 | echo "$as_me: failed program was:" >&5 | |
31403 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31404 | ||
31405 | ||
31406 | echo "$as_me:$LINENO: result: no" >&5 | |
31407 | echo "${ECHO_T}no" >&6 | |
31408 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
31409 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
31410 | LDFLAGS="$saveLdflags -Wl,-R,/" | |
31411 | cat >conftest.$ac_ext <<_ACEOF | |
31412 | /* confdefs.h. */ | |
31413 | _ACEOF | |
31414 | cat confdefs.h >>conftest.$ac_ext | |
31415 | cat >>conftest.$ac_ext <<_ACEOF | |
31416 | /* end confdefs.h. */ | |
31417 | ||
31418 | int | |
31419 | main () | |
31420 | { | |
31421 | ||
31422 | ; | |
31423 | return 0; | |
31424 | } | |
31425 | _ACEOF | |
31426 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31427 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31428 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31429 | ac_status=$? |
ac1cb8d3 VS |
31430 | grep -v '^ *+' conftest.er1 >conftest.err |
31431 | rm -f conftest.er1 | |
31432 | cat conftest.err >&5 | |
a848cd7e SC |
31433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31434 | (exit $ac_status); } && | |
0093c2fc | 31435 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31437 | (eval $ac_try) 2>&5 | |
31438 | ac_status=$? | |
31439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31440 | (exit $ac_status); }; } && | |
31441 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31443 | (eval $ac_try) 2>&5 | |
31444 | ac_status=$? | |
31445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31446 | (exit $ac_status); }; }; then | |
31447 | ||
ffa0583f | 31448 | echo "$as_me:$LINENO: result: yes" >&5 |
a848cd7e | 31449 | echo "${ECHO_T}yes" >&6 |
ffa0583f RL |
31450 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" |
31451 | WXCONFIG_RPATH="-Wl,-R,\$libdir" | |
31452 | ||
a848cd7e SC |
31453 | else |
31454 | echo "$as_me: failed program was:" >&5 | |
31455 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31456 | ||
31457 | ||
31458 | echo "$as_me:$LINENO: result: no" >&5 | |
31459 | echo "${ECHO_T}no" >&6 | |
31460 | ||
31461 | fi | |
ac1cb8d3 VS |
31462 | rm -f conftest.err conftest.$ac_objext \ |
31463 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31464 | |
31465 | fi | |
ac1cb8d3 VS |
31466 | rm -f conftest.err conftest.$ac_objext \ |
31467 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31468 | LDFLAGS="$saveLdflags" |
31469 | else | |
a848cd7e | 31470 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
ffa0583f | 31471 | WXCONFIG_RPATH="-R\$libdir" |
a848cd7e SC |
31472 | fi |
31473 | ;; | |
31474 | ||
cfda0ea8 | 31475 | *-*-darwin* ) |
0caebc27 MW |
31476 | install_name_tool=`which install_name_tool` |
31477 | if test "$install_name_tool" -a -x "$install_name_tool"; then | |
31478 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" | |
31479 | cat <<EOF >change-install-names | |
a848cd7e SC |
31480 | #!/bin/sh |
31481 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
31482 | inst_cmd="install_name_tool " | |
31483 | for i in \${libnames} ; do | |
31484 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
31485 | done | |
31486 | \${inst_cmd} \${3} | |
31487 | EOF | |
0caebc27 MW |
31488 | chmod +x change-install-names |
31489 | fi | |
a848cd7e SC |
31490 | ;; |
31491 | ||
31492 | *-*-cygwin* | *-*-mingw32* ) | |
31493 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
31494 | ;; | |
31495 | ||
81f90336 MW |
31496 | *-*-hpux* ) |
31497 | SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib" | |
31498 | WXCONFIG_RPATH="-Wl,+b,\$libdir" | |
31499 | ;; | |
31500 | ||
a848cd7e | 31501 | esac |
ceec2216 | 31502 | |
ffa0583f RL |
31503 | if test $wxUSE_RPATH = "no"; then |
31504 | SAMPLES_RPATH_FLAG='' | |
31505 | SAMPLES_RPATH_POSTLINK='' | |
31506 | WXCONFIG_RPATH='' | |
31507 | fi | |
31508 | ||
31509 | SHARED=1 | |
31510 | ||
31511 | else | |
31512 | ||
ceec2216 RL |
31513 | config_linkage_component="-static" |
31514 | SHARED=0 | |
ffa0583f | 31515 | |
ceec2216 | 31516 | fi |
a848cd7e | 31517 | |
a848cd7e | 31518 | |
ceec2216 RL |
31519 | UNICODE=0 |
31520 | lib_unicode_suffix= | |
31521 | WX_CHARTYPE="ansi" | |
31522 | if test "$wxUSE_UNICODE" = "yes"; then | |
31523 | lib_unicode_suffix=u | |
31524 | WX_CHARTYPE="unicode" | |
31525 | UNICODE=1 | |
a848cd7e SC |
31526 | fi |
31527 | ||
ceec2216 RL |
31528 | lib_debug_suffix= |
31529 | WX_DEBUGTYPE="release" | |
31530 | DEBUG_FLAG=0 | |
31531 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
31532 | lib_debug_suffix=d | |
31533 | WX_DEBUGTYPE="debug" | |
31534 | DEBUG_FLAG=1 | |
31535 | fi | |
a848cd7e | 31536 | |
ceec2216 RL |
31537 | WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR} |
31538 | WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'` | |
a848cd7e | 31539 | |
ceec2216 RL |
31540 | DEBUG_INFO=0 |
31541 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
31542 | DEBUG_INFO=1 | |
31543 | fi | |
a848cd7e | 31544 | |
ceec2216 | 31545 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
a848cd7e | 31546 | |
ceec2216 | 31547 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}" |
a848cd7e | 31548 | |
ceec2216 | 31549 | TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}" |
a848cd7e | 31550 | |
ceec2216 RL |
31551 | if test "$cross_compiling" = "yes"; then |
31552 | HOST_SUFFIX="-$host_alias" | |
31553 | TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX" | |
31554 | TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME" | |
a848cd7e SC |
31555 | fi |
31556 | ||
dd21ced8 | 31557 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
abc736fd MW |
31558 | if test "${TOOLKIT_DIR}" = "os2"; then |
31559 | WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" | |
31560 | else | |
31561 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" | |
31562 | fi | |
ceec2216 RL |
31563 | |
31564 | ||
31565 | ||
1d1af5ea DE |
31566 | if test "$wxUSE_COCOA" = 1; then |
31567 | ||
31568 | ||
31569 | ac_ext=c | |
31570 | ac_cpp='$CPP $CPPFLAGS' | |
31571 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31572 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31573 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
31574 | ||
31575 | ac_ext=m | |
31576 | ||
31577 | echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5 | |
31578 | echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6 | |
31579 | cat >conftest.$ac_ext <<_ACEOF | |
31580 | /* confdefs.h. */ | |
31581 | _ACEOF | |
31582 | cat confdefs.h >>conftest.$ac_ext | |
31583 | cat >>conftest.$ac_ext <<_ACEOF | |
31584 | /* end confdefs.h. */ | |
31585 | #include <AppKit/NSEvent.h> | |
31586 | #include <CoreFoundation/CoreFoundation.h> | |
31587 | ||
31588 | int | |
31589 | main () | |
31590 | { | |
31591 | ||
31592 | ; | |
31593 | return 0; | |
31594 | } | |
31595 | _ACEOF | |
31596 | rm -f conftest.$ac_objext | |
31597 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31598 | (eval $ac_compile) 2>conftest.er1 | |
31599 | ac_status=$? | |
31600 | grep -v '^ *+' conftest.er1 >conftest.err | |
31601 | rm -f conftest.er1 | |
31602 | cat conftest.err >&5 | |
31603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31604 | (exit $ac_status); } && | |
0093c2fc | 31605 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1d1af5ea DE |
31606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31607 | (eval $ac_try) 2>&5 | |
31608 | ac_status=$? | |
31609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31610 | (exit $ac_status); }; } && | |
31611 | { ac_try='test -s conftest.$ac_objext' | |
31612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31613 | (eval $ac_try) 2>&5 | |
31614 | ac_status=$? | |
31615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31616 | (exit $ac_status); }; }; then | |
31617 | echo "$as_me:$LINENO: result: no" >&5 | |
31618 | echo "${ECHO_T}no" >&6 | |
31619 | else | |
31620 | echo "$as_me: failed program was:" >&5 | |
31621 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31622 | ||
31623 | echo "$as_me:$LINENO: result: yes" >&5 | |
31624 | echo "${ECHO_T}yes" >&6 | |
31625 | echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5 | |
31626 | echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6 | |
31627 | cat >conftest.$ac_ext <<_ACEOF | |
31628 | /* confdefs.h. */ | |
31629 | _ACEOF | |
31630 | cat confdefs.h >>conftest.$ac_ext | |
31631 | cat >>conftest.$ac_ext <<_ACEOF | |
31632 | /* end confdefs.h. */ | |
31633 | #define __Point__ 1 | |
31634 | #include <AppKit/NSEvent.h> | |
31635 | #include <CoreFoundation/CoreFoundation.h> | |
31636 | ||
31637 | int | |
31638 | main () | |
31639 | { | |
31640 | ||
31641 | ; | |
31642 | return 0; | |
31643 | } | |
31644 | _ACEOF | |
31645 | rm -f conftest.$ac_objext | |
31646 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31647 | (eval $ac_compile) 2>conftest.er1 | |
31648 | ac_status=$? | |
31649 | grep -v '^ *+' conftest.er1 >conftest.err | |
31650 | rm -f conftest.er1 | |
31651 | cat conftest.err >&5 | |
31652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31653 | (exit $ac_status); } && | |
0093c2fc | 31654 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1d1af5ea DE |
31655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31656 | (eval $ac_try) 2>&5 | |
31657 | ac_status=$? | |
31658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31659 | (exit $ac_status); }; } && | |
31660 | { ac_try='test -s conftest.$ac_objext' | |
31661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31662 | (eval $ac_try) 2>&5 | |
31663 | ac_status=$? | |
31664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31665 | (exit $ac_status); }; }; then | |
31666 | echo "$as_me:$LINENO: result: yes" >&5 | |
31667 | echo "${ECHO_T}yes" >&6 | |
31668 | cat >>confdefs.h <<\_ACEOF | |
31669 | #define __Point__ 1 | |
31670 | _ACEOF | |
31671 | ||
31672 | ||
31673 | else | |
31674 | echo "$as_me: failed program was:" >&5 | |
31675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31676 | ||
31677 | { { echo "$as_me:$LINENO: error: no | |
31678 | See \`config.log' for more details." >&5 | |
31679 | echo "$as_me: error: no | |
31680 | See \`config.log' for more details." >&2;} | |
31681 | { (exit 1); exit 1; }; } | |
31682 | ||
31683 | fi | |
31684 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31685 | ||
31686 | fi | |
31687 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31688 | ac_ext=c | |
31689 | ac_cpp='$CPP $CPPFLAGS' | |
31690 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31691 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31692 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
31693 | ||
31694 | fi | |
31695 | ||
a848cd7e | 31696 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
abb9aae7 VZ |
31697 | WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r" |
31698 | WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc" | |
ceec2216 | 31699 | |
a848cd7e | 31700 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
a848cd7e SC |
31701 | |
31702 | # Extract the first word of "Rez", so it can be a program name with args. | |
31703 | set dummy Rez; ac_word=$2 | |
31704 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
31705 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
31706 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
31707 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31708 | else | |
31709 | if test -n "$RESCOMP"; then | |
31710 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
31711 | else | |
31712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
31713 | for as_dir in $PATH | |
31714 | do | |
31715 | IFS=$as_save_IFS | |
31716 | test -z "$as_dir" && as_dir=. | |
31717 | for ac_exec_ext in '' $ac_executable_extensions; do | |
31718 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
31719 | ac_cv_prog_RESCOMP="Rez" | |
31720 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
31721 | break 2 | |
31722 | fi | |
31723 | done | |
31724 | done | |
31725 | ||
31726 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
31727 | fi | |
31728 | fi | |
31729 | RESCOMP=$ac_cv_prog_RESCOMP | |
31730 | if test -n "$RESCOMP"; then | |
31731 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
31732 | echo "${ECHO_T}$RESCOMP" >&6 | |
31733 | else | |
31734 | echo "$as_me:$LINENO: result: no" >&5 | |
31735 | echo "${ECHO_T}no" >&6 | |
31736 | fi | |
31737 | ||
31738 | # Extract the first word of "DeRez", so it can be a program name with args. | |
31739 | set dummy DeRez; ac_word=$2 | |
31740 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
31741 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
31742 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
31743 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31744 | else | |
31745 | if test -n "$DEREZ"; then | |
31746 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
31747 | else | |
31748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
31749 | for as_dir in $PATH | |
31750 | do | |
31751 | IFS=$as_save_IFS | |
31752 | test -z "$as_dir" && as_dir=. | |
31753 | for ac_exec_ext in '' $ac_executable_extensions; do | |
31754 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
31755 | ac_cv_prog_DEREZ="DeRez" | |
31756 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
31757 | break 2 | |
31758 | fi | |
31759 | done | |
31760 | done | |
31761 | ||
31762 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
31763 | fi | |
31764 | fi | |
31765 | DEREZ=$ac_cv_prog_DEREZ | |
31766 | if test -n "$DEREZ"; then | |
31767 | echo "$as_me:$LINENO: result: $DEREZ" >&5 | |
31768 | echo "${ECHO_T}$DEREZ" >&6 | |
31769 | else | |
31770 | echo "$as_me:$LINENO: result: no" >&5 | |
31771 | echo "${ECHO_T}no" >&6 | |
31772 | fi | |
31773 | ||
31774 | # Extract the first word of "SetFile", so it can be a program name with args. | |
31775 | set dummy SetFile; ac_word=$2 | |
31776 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
31777 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
31778 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
31779 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31780 | else | |
31781 | if test -n "$SETFILE"; then | |
31782 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
31783 | else | |
31784 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
31785 | for as_dir in $PATH | |
31786 | do | |
31787 | IFS=$as_save_IFS | |
31788 | test -z "$as_dir" && as_dir=. | |
31789 | for ac_exec_ext in '' $ac_executable_extensions; do | |
31790 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
31791 | ac_cv_prog_SETFILE="SetFile" | |
31792 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
31793 | break 2 | |
31794 | fi | |
31795 | done | |
31796 | done | |
31797 | ||
31798 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
31799 | fi | |
31800 | fi | |
31801 | SETFILE=$ac_cv_prog_SETFILE | |
31802 | if test -n "$SETFILE"; then | |
31803 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
31804 | echo "${ECHO_T}$SETFILE" >&6 | |
31805 | else | |
31806 | echo "$as_me:$LINENO: result: no" >&5 | |
31807 | echo "${ECHO_T}no" >&6 | |
31808 | fi | |
31809 | ||
31810 | ||
31811 | MACSETFILE="\$(SETFILE)" | |
31812 | ||
31813 | if test "$wxUSE_MAC" = 1; then | |
1a79f136 | 31814 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r -o" |
a848cd7e | 31815 | |
1a79f136 | 31816 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r -o" |
a848cd7e SC |
31817 | else |
31818 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
31819 | MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
31820 | fi | |
31821 | else | |
ffa0583f RL |
31822 | MACSETFILE="@true" |
31823 | MACRESWXCONFIG="@true" | |
a848cd7e SC |
31824 | |
31825 | if test "$wxUSE_PM" = 1; then | |
31826 | MACRESCOMP="emxbind -ep" | |
31827 | else | |
ffa0583f | 31828 | MACRESCOMP="@true" |
a848cd7e SC |
31829 | fi |
31830 | fi | |
31831 | ||
31832 | ||
31833 | ||
31834 | echo "$as_me:$LINENO: checking for mode_t" >&5 | |
31835 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
31836 | if test "${ac_cv_type_mode_t+set}" = set; then | |
31837 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31838 | else | |
31839 | cat >conftest.$ac_ext <<_ACEOF | |
31840 | /* confdefs.h. */ | |
31841 | _ACEOF | |
31842 | cat confdefs.h >>conftest.$ac_ext | |
31843 | cat >>conftest.$ac_ext <<_ACEOF | |
31844 | /* end confdefs.h. */ | |
31845 | $ac_includes_default | |
31846 | int | |
31847 | main () | |
31848 | { | |
31849 | if ((mode_t *) 0) | |
31850 | return 0; | |
31851 | if (sizeof (mode_t)) | |
31852 | return 0; | |
31853 | ; | |
31854 | return 0; | |
31855 | } | |
31856 | _ACEOF | |
31857 | rm -f conftest.$ac_objext | |
31858 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31859 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31860 | ac_status=$? |
ac1cb8d3 VS |
31861 | grep -v '^ *+' conftest.er1 >conftest.err |
31862 | rm -f conftest.er1 | |
31863 | cat conftest.err >&5 | |
a848cd7e SC |
31864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31865 | (exit $ac_status); } && | |
0093c2fc | 31866 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31868 | (eval $ac_try) 2>&5 | |
31869 | ac_status=$? | |
31870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31871 | (exit $ac_status); }; } && | |
31872 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31874 | (eval $ac_try) 2>&5 | |
31875 | ac_status=$? | |
31876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31877 | (exit $ac_status); }; }; then | |
31878 | ac_cv_type_mode_t=yes | |
31879 | else | |
31880 | echo "$as_me: failed program was:" >&5 | |
31881 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31882 | ||
31883 | ac_cv_type_mode_t=no | |
31884 | fi | |
ac1cb8d3 | 31885 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31886 | fi |
31887 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
31888 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
31889 | if test $ac_cv_type_mode_t = yes; then | |
31890 | : | |
31891 | else | |
31892 | ||
31893 | cat >>confdefs.h <<_ACEOF | |
31894 | #define mode_t int | |
31895 | _ACEOF | |
31896 | ||
31897 | fi | |
31898 | ||
31899 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
31900 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
31901 | if test "${ac_cv_type_off_t+set}" = set; then | |
31902 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31903 | else | |
31904 | cat >conftest.$ac_ext <<_ACEOF | |
31905 | /* confdefs.h. */ | |
31906 | _ACEOF | |
31907 | cat confdefs.h >>conftest.$ac_ext | |
31908 | cat >>conftest.$ac_ext <<_ACEOF | |
31909 | /* end confdefs.h. */ | |
31910 | $ac_includes_default | |
31911 | int | |
31912 | main () | |
31913 | { | |
31914 | if ((off_t *) 0) | |
31915 | return 0; | |
31916 | if (sizeof (off_t)) | |
31917 | return 0; | |
31918 | ; | |
31919 | return 0; | |
31920 | } | |
31921 | _ACEOF | |
31922 | rm -f conftest.$ac_objext | |
31923 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31924 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31925 | ac_status=$? |
ac1cb8d3 VS |
31926 | grep -v '^ *+' conftest.er1 >conftest.err |
31927 | rm -f conftest.er1 | |
31928 | cat conftest.err >&5 | |
a848cd7e SC |
31929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31930 | (exit $ac_status); } && | |
0093c2fc | 31931 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31933 | (eval $ac_try) 2>&5 | |
31934 | ac_status=$? | |
31935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31936 | (exit $ac_status); }; } && | |
31937 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31939 | (eval $ac_try) 2>&5 | |
31940 | ac_status=$? | |
31941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31942 | (exit $ac_status); }; }; then | |
31943 | ac_cv_type_off_t=yes | |
31944 | else | |
31945 | echo "$as_me: failed program was:" >&5 | |
31946 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31947 | ||
31948 | ac_cv_type_off_t=no | |
31949 | fi | |
ac1cb8d3 | 31950 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31951 | fi |
31952 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
31953 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
31954 | if test $ac_cv_type_off_t = yes; then | |
31955 | : | |
31956 | else | |
31957 | ||
31958 | cat >>confdefs.h <<_ACEOF | |
31959 | #define off_t long | |
31960 | _ACEOF | |
31961 | ||
31962 | fi | |
31963 | ||
31964 | echo "$as_me:$LINENO: checking for pid_t" >&5 | |
31965 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
31966 | if test "${ac_cv_type_pid_t+set}" = set; then | |
31967 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31968 | else | |
31969 | cat >conftest.$ac_ext <<_ACEOF | |
31970 | /* confdefs.h. */ | |
31971 | _ACEOF | |
31972 | cat confdefs.h >>conftest.$ac_ext | |
31973 | cat >>conftest.$ac_ext <<_ACEOF | |
31974 | /* end confdefs.h. */ | |
31975 | $ac_includes_default | |
31976 | int | |
31977 | main () | |
31978 | { | |
31979 | if ((pid_t *) 0) | |
31980 | return 0; | |
31981 | if (sizeof (pid_t)) | |
31982 | return 0; | |
31983 | ; | |
31984 | return 0; | |
31985 | } | |
31986 | _ACEOF | |
31987 | rm -f conftest.$ac_objext | |
31988 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31989 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31990 | ac_status=$? |
ac1cb8d3 VS |
31991 | grep -v '^ *+' conftest.er1 >conftest.err |
31992 | rm -f conftest.er1 | |
31993 | cat conftest.err >&5 | |
a848cd7e SC |
31994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31995 | (exit $ac_status); } && | |
0093c2fc | 31996 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31998 | (eval $ac_try) 2>&5 | |
31999 | ac_status=$? | |
32000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32001 | (exit $ac_status); }; } && | |
32002 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
32008 | ac_cv_type_pid_t=yes | |
32009 | else | |
32010 | echo "$as_me: failed program was:" >&5 | |
32011 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32012 | ||
32013 | ac_cv_type_pid_t=no | |
32014 | fi | |
ac1cb8d3 | 32015 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32016 | fi |
32017 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
32018 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
32019 | if test $ac_cv_type_pid_t = yes; then | |
32020 | : | |
32021 | else | |
32022 | ||
32023 | cat >>confdefs.h <<_ACEOF | |
32024 | #define pid_t int | |
32025 | _ACEOF | |
32026 | ||
32027 | fi | |
32028 | ||
32029 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
32030 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
32031 | if test "${ac_cv_type_size_t+set}" = set; then | |
32032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32033 | else | |
32034 | cat >conftest.$ac_ext <<_ACEOF | |
32035 | /* confdefs.h. */ | |
32036 | _ACEOF | |
32037 | cat confdefs.h >>conftest.$ac_ext | |
32038 | cat >>conftest.$ac_ext <<_ACEOF | |
32039 | /* end confdefs.h. */ | |
32040 | $ac_includes_default | |
32041 | int | |
32042 | main () | |
32043 | { | |
32044 | if ((size_t *) 0) | |
32045 | return 0; | |
32046 | if (sizeof (size_t)) | |
32047 | return 0; | |
32048 | ; | |
32049 | return 0; | |
32050 | } | |
32051 | _ACEOF | |
32052 | rm -f conftest.$ac_objext | |
32053 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32054 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32055 | ac_status=$? |
ac1cb8d3 VS |
32056 | grep -v '^ *+' conftest.er1 >conftest.err |
32057 | rm -f conftest.er1 | |
32058 | cat conftest.err >&5 | |
a848cd7e SC |
32059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32060 | (exit $ac_status); } && | |
0093c2fc | 32061 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32063 | (eval $ac_try) 2>&5 | |
32064 | ac_status=$? | |
32065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32066 | (exit $ac_status); }; } && | |
32067 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32069 | (eval $ac_try) 2>&5 | |
32070 | ac_status=$? | |
32071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32072 | (exit $ac_status); }; }; then | |
32073 | ac_cv_type_size_t=yes | |
32074 | else | |
32075 | echo "$as_me: failed program was:" >&5 | |
32076 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32077 | ||
32078 | ac_cv_type_size_t=no | |
32079 | fi | |
ac1cb8d3 | 32080 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32081 | fi |
32082 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
32083 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
32084 | if test $ac_cv_type_size_t = yes; then | |
32085 | : | |
32086 | else | |
32087 | ||
32088 | cat >>confdefs.h <<_ACEOF | |
32089 | #define size_t unsigned | |
32090 | _ACEOF | |
32091 | ||
32092 | fi | |
32093 | ||
32094 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 | |
32095 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
32096 | if test "${ac_cv_type_uid_t+set}" = set; then | |
32097 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32098 | else | |
32099 | cat >conftest.$ac_ext <<_ACEOF | |
32100 | /* confdefs.h. */ | |
32101 | _ACEOF | |
32102 | cat confdefs.h >>conftest.$ac_ext | |
32103 | cat >>conftest.$ac_ext <<_ACEOF | |
32104 | /* end confdefs.h. */ | |
32105 | #include <sys/types.h> | |
32106 | ||
32107 | _ACEOF | |
32108 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
32109 | $EGREP "uid_t" >/dev/null 2>&1; then | |
32110 | ac_cv_type_uid_t=yes | |
32111 | else | |
32112 | ac_cv_type_uid_t=no | |
32113 | fi | |
32114 | rm -f conftest* | |
32115 | ||
32116 | fi | |
32117 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 | |
32118 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
32119 | if test $ac_cv_type_uid_t = no; then | |
32120 | ||
32121 | cat >>confdefs.h <<\_ACEOF | |
32122 | #define uid_t int | |
32123 | _ACEOF | |
32124 | ||
32125 | ||
32126 | cat >>confdefs.h <<\_ACEOF | |
32127 | #define gid_t int | |
32128 | _ACEOF | |
32129 | ||
32130 | fi | |
32131 | ||
32132 | ||
d51253e8 RL |
32133 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
32134 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | |
32135 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
32136 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32137 | else | |
32138 | cat >conftest.$ac_ext <<_ACEOF | |
32139 | /* confdefs.h. */ | |
32140 | _ACEOF | |
32141 | cat confdefs.h >>conftest.$ac_ext | |
32142 | cat >>conftest.$ac_ext <<_ACEOF | |
32143 | /* end confdefs.h. */ | |
32144 | $ac_includes_default | |
32145 | int | |
32146 | main () | |
32147 | { | |
32148 | if ((ssize_t *) 0) | |
32149 | return 0; | |
32150 | if (sizeof (ssize_t)) | |
32151 | return 0; | |
32152 | ; | |
32153 | return 0; | |
32154 | } | |
32155 | _ACEOF | |
32156 | rm -f conftest.$ac_objext | |
32157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32158 | (eval $ac_compile) 2>conftest.er1 | |
32159 | ac_status=$? | |
32160 | grep -v '^ *+' conftest.er1 >conftest.err | |
32161 | rm -f conftest.er1 | |
32162 | cat conftest.err >&5 | |
32163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32164 | (exit $ac_status); } && | |
0093c2fc | 32165 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d51253e8 RL |
32166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32167 | (eval $ac_try) 2>&5 | |
32168 | ac_status=$? | |
32169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32170 | (exit $ac_status); }; } && | |
32171 | { ac_try='test -s conftest.$ac_objext' | |
32172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32173 | (eval $ac_try) 2>&5 | |
32174 | ac_status=$? | |
32175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32176 | (exit $ac_status); }; }; then | |
32177 | ac_cv_type_ssize_t=yes | |
32178 | else | |
32179 | echo "$as_me: failed program was:" >&5 | |
32180 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32181 | ||
32182 | ac_cv_type_ssize_t=no | |
32183 | fi | |
32184 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32185 | fi | |
32186 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 | |
32187 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 | |
32188 | if test $ac_cv_type_ssize_t = yes; then | |
32189 | ||
32190 | cat >>confdefs.h <<_ACEOF | |
32191 | #define HAVE_SSIZE_T 1 | |
32192 | _ACEOF | |
32193 | ||
32194 | ||
32195 | fi | |
32196 | ||
32197 | ||
a848cd7e SC |
32198 | |
32199 | ||
32200 | ac_ext=cc | |
32201 | ac_cpp='$CXXCPP $CPPFLAGS' | |
32202 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32203 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32204 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
32205 | ||
32206 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
32207 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
32208 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
32209 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32210 | else | |
32211 | ||
32212 | cat >conftest.$ac_ext <<_ACEOF | |
32213 | /* confdefs.h. */ | |
32214 | _ACEOF | |
32215 | cat confdefs.h >>conftest.$ac_ext | |
32216 | cat >>conftest.$ac_ext <<_ACEOF | |
32217 | /* end confdefs.h. */ | |
32218 | #include <stddef.h> | |
32219 | int | |
32220 | main () | |
32221 | { | |
32222 | ||
32223 | return 0; } | |
32224 | ||
32225 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
32226 | ||
32227 | int bar() { | |
32228 | ||
32229 | ; | |
32230 | return 0; | |
32231 | } | |
32232 | _ACEOF | |
32233 | rm -f conftest.$ac_objext | |
32234 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32235 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32236 | ac_status=$? |
ac1cb8d3 VS |
32237 | grep -v '^ *+' conftest.er1 >conftest.err |
32238 | rm -f conftest.er1 | |
32239 | cat conftest.err >&5 | |
a848cd7e SC |
32240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32241 | (exit $ac_status); } && | |
0093c2fc | 32242 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32244 | (eval $ac_try) 2>&5 | |
32245 | ac_status=$? | |
32246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32247 | (exit $ac_status); }; } && | |
32248 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32250 | (eval $ac_try) 2>&5 | |
32251 | ac_status=$? | |
32252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32253 | (exit $ac_status); }; }; then | |
32254 | wx_cv_size_t_is_uint=no | |
32255 | else | |
32256 | echo "$as_me: failed program was:" >&5 | |
32257 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32258 | ||
32259 | wx_cv_size_t_is_uint=yes | |
32260 | ||
32261 | fi | |
ac1cb8d3 | 32262 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32263 | |
32264 | ||
32265 | fi | |
32266 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
32267 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
32268 | ||
32269 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
32270 | cat >>confdefs.h <<\_ACEOF | |
32271 | #define wxSIZE_T_IS_UINT 1 | |
32272 | _ACEOF | |
32273 | ||
32274 | else | |
32275 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 | |
32276 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
32277 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
32278 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32279 | else | |
32280 | cat >conftest.$ac_ext <<_ACEOF | |
32281 | /* confdefs.h. */ | |
32282 | _ACEOF | |
32283 | cat confdefs.h >>conftest.$ac_ext | |
32284 | cat >>conftest.$ac_ext <<_ACEOF | |
32285 | /* end confdefs.h. */ | |
32286 | #include <stddef.h> | |
32287 | int | |
32288 | main () | |
32289 | { | |
32290 | ||
32291 | return 0; } | |
32292 | ||
32293 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
32294 | ||
32295 | int bar() { | |
32296 | ||
32297 | ; | |
32298 | return 0; | |
32299 | } | |
32300 | _ACEOF | |
32301 | rm -f conftest.$ac_objext | |
32302 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32303 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32304 | ac_status=$? |
ac1cb8d3 VS |
32305 | grep -v '^ *+' conftest.er1 >conftest.err |
32306 | rm -f conftest.er1 | |
32307 | cat conftest.err >&5 | |
a848cd7e SC |
32308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32309 | (exit $ac_status); } && | |
0093c2fc | 32310 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32312 | (eval $ac_try) 2>&5 | |
32313 | ac_status=$? | |
32314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32315 | (exit $ac_status); }; } && | |
32316 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32318 | (eval $ac_try) 2>&5 | |
32319 | ac_status=$? | |
32320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32321 | (exit $ac_status); }; }; then | |
32322 | wx_cv_size_t_is_ulong=no | |
32323 | else | |
32324 | echo "$as_me: failed program was:" >&5 | |
32325 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32326 | ||
32327 | wx_cv_size_t_is_ulong=yes | |
32328 | ||
32329 | fi | |
ac1cb8d3 | 32330 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32331 | |
32332 | fi | |
32333 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
32334 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
32335 | ||
32336 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
32337 | cat >>confdefs.h <<\_ACEOF | |
32338 | #define wxSIZE_T_IS_ULONG 1 | |
32339 | _ACEOF | |
32340 | ||
32341 | fi | |
32342 | fi | |
32343 | ||
32344 | ac_ext=c | |
32345 | ac_cpp='$CPP $CPPFLAGS' | |
32346 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32347 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32348 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
32349 | ||
32350 | ||
32351 | ||
32352 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 | |
32353 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
32354 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
32355 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32356 | else | |
32357 | ||
32358 | cat >conftest.$ac_ext <<_ACEOF | |
32359 | /* confdefs.h. */ | |
32360 | _ACEOF | |
32361 | cat confdefs.h >>conftest.$ac_ext | |
32362 | cat >>conftest.$ac_ext <<_ACEOF | |
32363 | /* end confdefs.h. */ | |
32364 | #include <pwd.h> | |
32365 | int | |
32366 | main () | |
32367 | { | |
32368 | ||
32369 | char *p; | |
32370 | struct passwd *pw; | |
32371 | p = pw->pw_gecos; | |
32372 | ||
32373 | ; | |
32374 | return 0; | |
32375 | } | |
32376 | _ACEOF | |
32377 | rm -f conftest.$ac_objext | |
32378 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32379 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32380 | ac_status=$? |
ac1cb8d3 VS |
32381 | grep -v '^ *+' conftest.er1 >conftest.err |
32382 | rm -f conftest.er1 | |
32383 | cat conftest.err >&5 | |
a848cd7e SC |
32384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32385 | (exit $ac_status); } && | |
0093c2fc | 32386 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32388 | (eval $ac_try) 2>&5 | |
32389 | ac_status=$? | |
32390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32391 | (exit $ac_status); }; } && | |
32392 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32394 | (eval $ac_try) 2>&5 | |
32395 | ac_status=$? | |
32396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32397 | (exit $ac_status); }; }; then | |
32398 | ||
32399 | wx_cv_struct_pw_gecos=yes | |
32400 | ||
32401 | else | |
32402 | echo "$as_me: failed program was:" >&5 | |
32403 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32404 | ||
32405 | ||
32406 | wx_cv_struct_pw_gecos=no | |
32407 | ||
32408 | ||
32409 | fi | |
ac1cb8d3 | 32410 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32411 | |
32412 | ||
32413 | fi | |
32414 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
32415 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
32416 | ||
32417 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
32418 | cat >>confdefs.h <<\_ACEOF | |
32419 | #define HAVE_PW_GECOS 1 | |
32420 | _ACEOF | |
32421 | ||
32422 | fi | |
32423 | ||
32424 | ||
47a7e797 | 32425 | if test "$wxUSE_WCHAR_T" = "yes"; then |
a848cd7e SC |
32426 | cat >>confdefs.h <<\_ACEOF |
32427 | #define wxUSE_WCHAR_T 1 | |
32428 | _ACEOF | |
32429 | ||
32430 | ||
32431 | WCSLEN_FOUND=0 | |
32432 | WCHAR_LINK= | |
32433 | ||
32434 | for ac_func in wcslen | |
32435 | do | |
32436 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32437 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32438 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32439 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32440 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32441 | else | |
32442 | cat >conftest.$ac_ext <<_ACEOF | |
32443 | /* confdefs.h. */ | |
32444 | _ACEOF | |
32445 | cat confdefs.h >>conftest.$ac_ext | |
32446 | cat >>conftest.$ac_ext <<_ACEOF | |
32447 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32448 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32449 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32450 | #define $ac_func innocuous_$ac_func | |
32451 | ||
a848cd7e SC |
32452 | /* System header to define __stub macros and hopefully few prototypes, |
32453 | which can conflict with char $ac_func (); below. | |
32454 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32455 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32456 | |
a848cd7e SC |
32457 | #ifdef __STDC__ |
32458 | # include <limits.h> | |
32459 | #else | |
32460 | # include <assert.h> | |
32461 | #endif | |
ac1cb8d3 VS |
32462 | |
32463 | #undef $ac_func | |
32464 | ||
a848cd7e SC |
32465 | /* Override any gcc2 internal prototype to avoid an error. */ |
32466 | #ifdef __cplusplus | |
32467 | extern "C" | |
32468 | { | |
32469 | #endif | |
32470 | /* We use char because int might match the return type of a gcc2 | |
32471 | builtin and then its argument prototype would still apply. */ | |
32472 | char $ac_func (); | |
32473 | /* The GNU C library defines this for functions which it implements | |
32474 | to always fail with ENOSYS. Some functions are actually named | |
32475 | something starting with __ and the normal name is an alias. */ | |
32476 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32477 | choke me | |
32478 | #else | |
32479 | char (*f) () = $ac_func; | |
32480 | #endif | |
32481 | #ifdef __cplusplus | |
32482 | } | |
32483 | #endif | |
32484 | ||
32485 | int | |
32486 | main () | |
32487 | { | |
32488 | return f != $ac_func; | |
32489 | ; | |
32490 | return 0; | |
32491 | } | |
32492 | _ACEOF | |
32493 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32494 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32495 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32496 | ac_status=$? |
ac1cb8d3 VS |
32497 | grep -v '^ *+' conftest.er1 >conftest.err |
32498 | rm -f conftest.er1 | |
32499 | cat conftest.err >&5 | |
a848cd7e SC |
32500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32501 | (exit $ac_status); } && | |
0093c2fc | 32502 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32504 | (eval $ac_try) 2>&5 | |
32505 | ac_status=$? | |
32506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32507 | (exit $ac_status); }; } && | |
32508 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32510 | (eval $ac_try) 2>&5 | |
32511 | ac_status=$? | |
32512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32513 | (exit $ac_status); }; }; then | |
32514 | eval "$as_ac_var=yes" | |
32515 | else | |
32516 | echo "$as_me: failed program was:" >&5 | |
32517 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32518 | ||
32519 | eval "$as_ac_var=no" | |
32520 | fi | |
ac1cb8d3 VS |
32521 | rm -f conftest.err conftest.$ac_objext \ |
32522 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32523 | fi |
32524 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32525 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32526 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32527 | cat >>confdefs.h <<_ACEOF | |
32528 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32529 | _ACEOF | |
32530 | WCSLEN_FOUND=1 | |
32531 | fi | |
32532 | done | |
32533 | ||
32534 | ||
32535 | if test "$WCSLEN_FOUND" = 0; then | |
32536 | if test "$TOOLKIT" = "MSW"; then | |
32537 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 | |
32538 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
32539 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
32540 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32541 | else | |
32542 | ac_check_lib_save_LIBS=$LIBS | |
32543 | LIBS="-lmsvcrt $LIBS" | |
32544 | cat >conftest.$ac_ext <<_ACEOF | |
32545 | /* confdefs.h. */ | |
32546 | _ACEOF | |
32547 | cat confdefs.h >>conftest.$ac_ext | |
32548 | cat >>conftest.$ac_ext <<_ACEOF | |
32549 | /* end confdefs.h. */ | |
32550 | ||
32551 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32552 | #ifdef __cplusplus | |
32553 | extern "C" | |
32554 | #endif | |
32555 | /* We use char because int might match the return type of a gcc2 | |
32556 | builtin and then its argument prototype would still apply. */ | |
32557 | char wcslen (); | |
32558 | int | |
32559 | main () | |
32560 | { | |
32561 | wcslen (); | |
32562 | ; | |
32563 | return 0; | |
32564 | } | |
32565 | _ACEOF | |
32566 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32567 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32568 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32569 | ac_status=$? |
ac1cb8d3 VS |
32570 | grep -v '^ *+' conftest.er1 >conftest.err |
32571 | rm -f conftest.er1 | |
32572 | cat conftest.err >&5 | |
a848cd7e SC |
32573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32574 | (exit $ac_status); } && | |
0093c2fc | 32575 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32577 | (eval $ac_try) 2>&5 | |
32578 | ac_status=$? | |
32579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32580 | (exit $ac_status); }; } && | |
32581 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32583 | (eval $ac_try) 2>&5 | |
32584 | ac_status=$? | |
32585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32586 | (exit $ac_status); }; }; then | |
32587 | ac_cv_lib_msvcrt_wcslen=yes | |
32588 | else | |
32589 | echo "$as_me: failed program was:" >&5 | |
32590 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32591 | ||
32592 | ac_cv_lib_msvcrt_wcslen=no | |
32593 | fi | |
ac1cb8d3 VS |
32594 | rm -f conftest.err conftest.$ac_objext \ |
32595 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32596 | LIBS=$ac_check_lib_save_LIBS |
32597 | fi | |
32598 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
32599 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
32600 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
32601 | WCHAR_OK=1 | |
32602 | fi | |
32603 | ||
32604 | else | |
32605 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 | |
32606 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
32607 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
32608 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32609 | else | |
32610 | ac_check_lib_save_LIBS=$LIBS | |
32611 | LIBS="-lw $LIBS" | |
32612 | cat >conftest.$ac_ext <<_ACEOF | |
32613 | /* confdefs.h. */ | |
32614 | _ACEOF | |
32615 | cat confdefs.h >>conftest.$ac_ext | |
32616 | cat >>conftest.$ac_ext <<_ACEOF | |
32617 | /* end confdefs.h. */ | |
32618 | ||
32619 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32620 | #ifdef __cplusplus | |
32621 | extern "C" | |
32622 | #endif | |
32623 | /* We use char because int might match the return type of a gcc2 | |
32624 | builtin and then its argument prototype would still apply. */ | |
32625 | char wcslen (); | |
32626 | int | |
32627 | main () | |
32628 | { | |
32629 | wcslen (); | |
32630 | ; | |
32631 | return 0; | |
32632 | } | |
32633 | _ACEOF | |
32634 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32635 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32636 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32637 | ac_status=$? |
ac1cb8d3 VS |
32638 | grep -v '^ *+' conftest.er1 >conftest.err |
32639 | rm -f conftest.er1 | |
32640 | cat conftest.err >&5 | |
a848cd7e SC |
32641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32642 | (exit $ac_status); } && | |
0093c2fc | 32643 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32645 | (eval $ac_try) 2>&5 | |
32646 | ac_status=$? | |
32647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32648 | (exit $ac_status); }; } && | |
32649 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32651 | (eval $ac_try) 2>&5 | |
32652 | ac_status=$? | |
32653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32654 | (exit $ac_status); }; }; then | |
32655 | ac_cv_lib_w_wcslen=yes | |
32656 | else | |
32657 | echo "$as_me: failed program was:" >&5 | |
32658 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32659 | ||
32660 | ac_cv_lib_w_wcslen=no | |
32661 | fi | |
ac1cb8d3 VS |
32662 | rm -f conftest.err conftest.$ac_objext \ |
32663 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32664 | LIBS=$ac_check_lib_save_LIBS |
32665 | fi | |
32666 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
32667 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
32668 | if test $ac_cv_lib_w_wcslen = yes; then | |
32669 | ||
32670 | WCHAR_LINK=" -lw" | |
32671 | WCSLEN_FOUND=1 | |
32672 | ||
32673 | fi | |
32674 | ||
32675 | fi | |
32676 | fi | |
32677 | ||
32678 | if test "$WCSLEN_FOUND" = 1; then | |
32679 | cat >>confdefs.h <<\_ACEOF | |
32680 | #define HAVE_WCSLEN 1 | |
32681 | _ACEOF | |
32682 | ||
32683 | fi | |
32684 | ||
efdf6afe | 32685 | if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then |
473276a9 VS |
32686 | CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE " |
32687 | fi | |
32688 | ||
efdf6afe VZ |
32689 | echo "$as_me:$LINENO: checking for mbstate_t" >&5 |
32690 | echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6 | |
32691 | if test "${ac_cv_type_mbstate_t+set}" = set; then | |
32692 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32693 | else | |
32694 | cat >conftest.$ac_ext <<_ACEOF | |
32695 | /* confdefs.h. */ | |
32696 | _ACEOF | |
32697 | cat confdefs.h >>conftest.$ac_ext | |
32698 | cat >>conftest.$ac_ext <<_ACEOF | |
32699 | /* end confdefs.h. */ | |
32700 | #include <wchar.h> | |
32701 | ||
32702 | int | |
32703 | main () | |
32704 | { | |
32705 | if ((mbstate_t *) 0) | |
32706 | return 0; | |
32707 | if (sizeof (mbstate_t)) | |
32708 | return 0; | |
32709 | ; | |
32710 | return 0; | |
32711 | } | |
32712 | _ACEOF | |
32713 | rm -f conftest.$ac_objext | |
32714 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32715 | (eval $ac_compile) 2>conftest.er1 | |
32716 | ac_status=$? | |
32717 | grep -v '^ *+' conftest.er1 >conftest.err | |
32718 | rm -f conftest.er1 | |
32719 | cat conftest.err >&5 | |
32720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32721 | (exit $ac_status); } && | |
0093c2fc | 32722 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
efdf6afe VZ |
32723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32724 | (eval $ac_try) 2>&5 | |
32725 | ac_status=$? | |
32726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32727 | (exit $ac_status); }; } && | |
32728 | { ac_try='test -s conftest.$ac_objext' | |
32729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32730 | (eval $ac_try) 2>&5 | |
32731 | ac_status=$? | |
32732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32733 | (exit $ac_status); }; }; then | |
32734 | ac_cv_type_mbstate_t=yes | |
32735 | else | |
32736 | echo "$as_me: failed program was:" >&5 | |
32737 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32738 | ||
32739 | ac_cv_type_mbstate_t=no | |
32740 | fi | |
32741 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32742 | fi | |
32743 | echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 | |
32744 | echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6 | |
32745 | if test $ac_cv_type_mbstate_t = yes; then | |
32746 | ||
32747 | cat >>confdefs.h <<_ACEOF | |
32748 | #define HAVE_MBSTATE_T 1 | |
32749 | _ACEOF | |
32750 | ||
a848cd7e SC |
32751 | |
32752 | for ac_func in wcsrtombs | |
32753 | do | |
32754 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32755 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32756 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32757 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32758 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32759 | else | |
32760 | cat >conftest.$ac_ext <<_ACEOF | |
32761 | /* confdefs.h. */ | |
32762 | _ACEOF | |
32763 | cat confdefs.h >>conftest.$ac_ext | |
32764 | cat >>conftest.$ac_ext <<_ACEOF | |
32765 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32766 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32767 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32768 | #define $ac_func innocuous_$ac_func | |
32769 | ||
a848cd7e SC |
32770 | /* System header to define __stub macros and hopefully few prototypes, |
32771 | which can conflict with char $ac_func (); below. | |
32772 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32773 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32774 | |
a848cd7e SC |
32775 | #ifdef __STDC__ |
32776 | # include <limits.h> | |
32777 | #else | |
32778 | # include <assert.h> | |
32779 | #endif | |
ac1cb8d3 VS |
32780 | |
32781 | #undef $ac_func | |
32782 | ||
a848cd7e SC |
32783 | /* Override any gcc2 internal prototype to avoid an error. */ |
32784 | #ifdef __cplusplus | |
32785 | extern "C" | |
32786 | { | |
32787 | #endif | |
32788 | /* We use char because int might match the return type of a gcc2 | |
32789 | builtin and then its argument prototype would still apply. */ | |
32790 | char $ac_func (); | |
32791 | /* The GNU C library defines this for functions which it implements | |
32792 | to always fail with ENOSYS. Some functions are actually named | |
32793 | something starting with __ and the normal name is an alias. */ | |
32794 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32795 | choke me | |
32796 | #else | |
32797 | char (*f) () = $ac_func; | |
32798 | #endif | |
32799 | #ifdef __cplusplus | |
32800 | } | |
32801 | #endif | |
32802 | ||
32803 | int | |
32804 | main () | |
32805 | { | |
32806 | return f != $ac_func; | |
32807 | ; | |
32808 | return 0; | |
32809 | } | |
32810 | _ACEOF | |
32811 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32812 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32813 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32814 | ac_status=$? |
ac1cb8d3 VS |
32815 | grep -v '^ *+' conftest.er1 >conftest.err |
32816 | rm -f conftest.er1 | |
32817 | cat conftest.err >&5 | |
a848cd7e SC |
32818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32819 | (exit $ac_status); } && | |
0093c2fc | 32820 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32822 | (eval $ac_try) 2>&5 | |
32823 | ac_status=$? | |
32824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32825 | (exit $ac_status); }; } && | |
32826 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32828 | (eval $ac_try) 2>&5 | |
32829 | ac_status=$? | |
32830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32831 | (exit $ac_status); }; }; then | |
32832 | eval "$as_ac_var=yes" | |
32833 | else | |
32834 | echo "$as_me: failed program was:" >&5 | |
32835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32836 | ||
32837 | eval "$as_ac_var=no" | |
32838 | fi | |
ac1cb8d3 VS |
32839 | rm -f conftest.err conftest.$ac_objext \ |
32840 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32841 | fi |
32842 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32843 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32844 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32845 | cat >>confdefs.h <<_ACEOF | |
32846 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32847 | _ACEOF | |
32848 | ||
32849 | fi | |
32850 | done | |
32851 | ||
efdf6afe VZ |
32852 | fi |
32853 | ||
a848cd7e SC |
32854 | else |
32855 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 | |
32856 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
32857 | fi | |
32858 | ||
32859 | ||
32860 | ||
32861 | ac_ext=cc | |
32862 | ac_cpp='$CXXCPP $CPPFLAGS' | |
32863 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32864 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32865 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
32866 | ||
32867 | ||
32868 | ||
4a767dd5 VZ |
32869 | |
32870 | for ac_func in snprintf vsnprintf | |
a848cd7e SC |
32871 | do |
32872 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32873 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32874 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32875 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32876 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32877 | else | |
32878 | cat >conftest.$ac_ext <<_ACEOF | |
32879 | /* confdefs.h. */ | |
32880 | _ACEOF | |
32881 | cat confdefs.h >>conftest.$ac_ext | |
32882 | cat >>conftest.$ac_ext <<_ACEOF | |
32883 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32884 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32885 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32886 | #define $ac_func innocuous_$ac_func | |
32887 | ||
a848cd7e SC |
32888 | /* System header to define __stub macros and hopefully few prototypes, |
32889 | which can conflict with char $ac_func (); below. | |
32890 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32891 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32892 | |
a848cd7e SC |
32893 | #ifdef __STDC__ |
32894 | # include <limits.h> | |
32895 | #else | |
32896 | # include <assert.h> | |
32897 | #endif | |
ac1cb8d3 VS |
32898 | |
32899 | #undef $ac_func | |
32900 | ||
a848cd7e SC |
32901 | /* Override any gcc2 internal prototype to avoid an error. */ |
32902 | #ifdef __cplusplus | |
32903 | extern "C" | |
32904 | { | |
32905 | #endif | |
32906 | /* We use char because int might match the return type of a gcc2 | |
32907 | builtin and then its argument prototype would still apply. */ | |
32908 | char $ac_func (); | |
32909 | /* The GNU C library defines this for functions which it implements | |
32910 | to always fail with ENOSYS. Some functions are actually named | |
32911 | something starting with __ and the normal name is an alias. */ | |
32912 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32913 | choke me | |
32914 | #else | |
32915 | char (*f) () = $ac_func; | |
32916 | #endif | |
32917 | #ifdef __cplusplus | |
32918 | } | |
32919 | #endif | |
32920 | ||
32921 | int | |
32922 | main () | |
32923 | { | |
32924 | return f != $ac_func; | |
32925 | ; | |
32926 | return 0; | |
32927 | } | |
32928 | _ACEOF | |
32929 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32930 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32931 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32932 | ac_status=$? |
ac1cb8d3 VS |
32933 | grep -v '^ *+' conftest.er1 >conftest.err |
32934 | rm -f conftest.er1 | |
32935 | cat conftest.err >&5 | |
a848cd7e SC |
32936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32937 | (exit $ac_status); } && | |
0093c2fc | 32938 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32940 | (eval $ac_try) 2>&5 | |
32941 | ac_status=$? | |
32942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32943 | (exit $ac_status); }; } && | |
32944 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32946 | (eval $ac_try) 2>&5 | |
32947 | ac_status=$? | |
32948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32949 | (exit $ac_status); }; }; then | |
32950 | eval "$as_ac_var=yes" | |
32951 | else | |
32952 | echo "$as_me: failed program was:" >&5 | |
32953 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32954 | ||
32955 | eval "$as_ac_var=no" | |
32956 | fi | |
ac1cb8d3 VS |
32957 | rm -f conftest.err conftest.$ac_objext \ |
32958 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32959 | fi |
32960 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32961 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32962 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32963 | cat >>confdefs.h <<_ACEOF | |
32964 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32965 | _ACEOF | |
32966 | ||
32967 | fi | |
32968 | done | |
32969 | ||
32970 | ||
32971 | if test "$ac_cv_func_vsnprintf" = "yes"; then | |
32972 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 | |
32973 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
32974 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
32975 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32976 | else | |
32977 | ||
efdf6afe | 32978 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
32979 | /* confdefs.h. */ |
32980 | _ACEOF | |
32981 | cat confdefs.h >>conftest.$ac_ext | |
32982 | cat >>conftest.$ac_ext <<_ACEOF | |
32983 | /* end confdefs.h. */ | |
32984 | ||
32985 | #include <stdio.h> | |
32986 | #include <stdarg.h> | |
efdf6afe VZ |
32987 | #ifdef __MSL__ |
32988 | #if __MSL__ >= 0x6000 | |
32989 | namespace std {} | |
32990 | using namespace std; | |
32991 | #endif | |
32992 | #endif | |
a848cd7e SC |
32993 | |
32994 | int | |
32995 | main () | |
32996 | { | |
32997 | ||
32998 | char *buf; | |
32999 | va_list ap; | |
62fa8b3a | 33000 | vsnprintf(buf, 10u, "%s", ap); |
c122b164 DE |
33001 | |
33002 | ; | |
33003 | return 0; | |
33004 | } | |
33005 | _ACEOF | |
33006 | rm -f conftest.$ac_objext | |
33007 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33008 | (eval $ac_compile) 2>conftest.er1 | |
33009 | ac_status=$? | |
33010 | grep -v '^ *+' conftest.er1 >conftest.err | |
33011 | rm -f conftest.er1 | |
33012 | cat conftest.err >&5 | |
33013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33014 | (exit $ac_status); } && | |
0093c2fc | 33015 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
c122b164 DE |
33016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33017 | (eval $ac_try) 2>&5 | |
33018 | ac_status=$? | |
33019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33020 | (exit $ac_status); }; } && | |
33021 | { ac_try='test -s conftest.$ac_objext' | |
33022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33023 | (eval $ac_try) 2>&5 | |
33024 | ac_status=$? | |
33025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33026 | (exit $ac_status); }; }; then | |
33027 | wx_cv_func_vsnprintf_decl=yes | |
33028 | else | |
33029 | echo "$as_me: failed program was:" >&5 | |
33030 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33031 | ||
a848cd7e SC |
33032 | wx_cv_func_vsnprintf_decl=no |
33033 | ||
33034 | fi | |
ac1cb8d3 | 33035 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33036 | |
33037 | ||
33038 | fi | |
33039 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
33040 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
33041 | ||
33042 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
33043 | cat >>confdefs.h <<\_ACEOF | |
33044 | #define HAVE_VSNPRINTF_DECL 1 | |
33045 | _ACEOF | |
33046 | ||
62fa8b3a MW |
33047 | |
33048 | echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5 | |
33049 | echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6 | |
33050 | if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then | |
33051 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33052 | else | |
33053 | ||
33054 | cat >conftest.$ac_ext <<_ACEOF | |
33055 | /* confdefs.h. */ | |
33056 | _ACEOF | |
33057 | cat confdefs.h >>conftest.$ac_ext | |
33058 | cat >>conftest.$ac_ext <<_ACEOF | |
33059 | /* end confdefs.h. */ | |
33060 | ||
33061 | #include <stdio.h> | |
33062 | #include <stdarg.h> | |
33063 | #ifdef __MSL__ | |
33064 | #if __MSL__ >= 0x6000 | |
33065 | namespace std {} | |
33066 | using namespace std; | |
33067 | #endif | |
33068 | #endif | |
33069 | ||
33070 | int | |
33071 | main () | |
33072 | { | |
33073 | ||
33074 | char *buf; | |
33075 | va_list ap; | |
33076 | const char *fmt = "%s"; | |
33077 | vsnprintf(buf, 10u, fmt, ap); | |
33078 | ||
33079 | ; | |
33080 | return 0; | |
33081 | } | |
33082 | _ACEOF | |
33083 | rm -f conftest.$ac_objext | |
33084 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33085 | (eval $ac_compile) 2>conftest.er1 | |
33086 | ac_status=$? | |
33087 | grep -v '^ *+' conftest.er1 >conftest.err | |
33088 | rm -f conftest.er1 | |
33089 | cat conftest.err >&5 | |
33090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33091 | (exit $ac_status); } && | |
0093c2fc | 33092 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
62fa8b3a MW |
33093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33094 | (eval $ac_try) 2>&5 | |
33095 | ac_status=$? | |
33096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33097 | (exit $ac_status); }; } && | |
33098 | { ac_try='test -s conftest.$ac_objext' | |
33099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33100 | (eval $ac_try) 2>&5 | |
33101 | ac_status=$? | |
33102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33103 | (exit $ac_status); }; }; then | |
33104 | wx_cv_func_broken_vsnprintf_decl=no | |
33105 | else | |
33106 | echo "$as_me: failed program was:" >&5 | |
33107 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33108 | ||
33109 | wx_cv_func_broken_vsnprintf_decl=yes | |
33110 | ||
33111 | fi | |
33112 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33113 | ||
33114 | ||
33115 | fi | |
33116 | echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5 | |
33117 | echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6 | |
33118 | ||
33119 | if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then | |
33120 | cat >>confdefs.h <<\_ACEOF | |
33121 | #define HAVE_BROKEN_VSNPRINTF_DECL 1 | |
33122 | _ACEOF | |
33123 | ||
33124 | fi | |
a848cd7e SC |
33125 | fi |
33126 | fi | |
33127 | ||
4a767dd5 VZ |
33128 | if test "$ac_cv_func_snprintf" = "yes"; then |
33129 | echo "$as_me:$LINENO: checking for snprintf declaration" >&5 | |
33130 | echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6 | |
33131 | if test "${wx_cv_func_snprintf_decl+set}" = set; then | |
33132 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33133 | else | |
33134 | ||
33135 | cat >conftest.$ac_ext <<_ACEOF | |
33136 | /* confdefs.h. */ | |
33137 | _ACEOF | |
33138 | cat confdefs.h >>conftest.$ac_ext | |
33139 | cat >>conftest.$ac_ext <<_ACEOF | |
33140 | /* end confdefs.h. */ | |
33141 | ||
33142 | #include <stdio.h> | |
33143 | #include <stdarg.h> | |
33144 | #ifdef __MSL__ | |
33145 | #if __MSL__ >= 0x6000 | |
33146 | namespace std {} | |
33147 | using namespace std; | |
33148 | #endif | |
33149 | #endif | |
33150 | ||
33151 | int | |
33152 | main () | |
33153 | { | |
33154 | ||
33155 | char *buf; | |
62fa8b3a | 33156 | snprintf(buf, 10u, "%s", "wx"); |
4a767dd5 VZ |
33157 | |
33158 | ; | |
33159 | return 0; | |
33160 | } | |
33161 | _ACEOF | |
33162 | rm -f conftest.$ac_objext | |
33163 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33164 | (eval $ac_compile) 2>conftest.er1 | |
33165 | ac_status=$? | |
33166 | grep -v '^ *+' conftest.er1 >conftest.err | |
33167 | rm -f conftest.er1 | |
33168 | cat conftest.err >&5 | |
33169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33170 | (exit $ac_status); } && | |
0093c2fc | 33171 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
4a767dd5 VZ |
33172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33173 | (eval $ac_try) 2>&5 | |
33174 | ac_status=$? | |
33175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33176 | (exit $ac_status); }; } && | |
33177 | { ac_try='test -s conftest.$ac_objext' | |
33178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33179 | (eval $ac_try) 2>&5 | |
33180 | ac_status=$? | |
33181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33182 | (exit $ac_status); }; }; then | |
33183 | wx_cv_func_snprintf_decl=yes | |
33184 | else | |
33185 | echo "$as_me: failed program was:" >&5 | |
33186 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33187 | ||
33188 | wx_cv_func_snprintf_decl=no | |
33189 | ||
33190 | fi | |
33191 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33192 | ||
33193 | ||
33194 | fi | |
33195 | echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5 | |
33196 | echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6 | |
33197 | ||
33198 | if test "$wx_cv_func_snprintf_decl" = "yes"; then | |
33199 | cat >>confdefs.h <<\_ACEOF | |
33200 | #define HAVE_SNPRINTF_DECL 1 | |
33201 | _ACEOF | |
33202 | ||
62fa8b3a MW |
33203 | |
33204 | echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5 | |
33205 | echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6 | |
33206 | if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then | |
33207 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33208 | else | |
33209 | ||
33210 | cat >conftest.$ac_ext <<_ACEOF | |
33211 | /* confdefs.h. */ | |
33212 | _ACEOF | |
33213 | cat confdefs.h >>conftest.$ac_ext | |
33214 | cat >>conftest.$ac_ext <<_ACEOF | |
33215 | /* end confdefs.h. */ | |
33216 | ||
33217 | #include <stdio.h> | |
33218 | #include <stdarg.h> | |
33219 | #ifdef __MSL__ | |
33220 | #if __MSL__ >= 0x6000 | |
33221 | namespace std {} | |
33222 | using namespace std; | |
33223 | #endif | |
33224 | #endif | |
33225 | ||
33226 | int | |
33227 | main () | |
33228 | { | |
33229 | ||
33230 | char *buf; | |
33231 | const char *fmt = "%s"; | |
33232 | snprintf(buf, 10u, fmt, "wx"); | |
33233 | ||
33234 | ; | |
33235 | return 0; | |
33236 | } | |
33237 | _ACEOF | |
33238 | rm -f conftest.$ac_objext | |
33239 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33240 | (eval $ac_compile) 2>conftest.er1 | |
33241 | ac_status=$? | |
33242 | grep -v '^ *+' conftest.er1 >conftest.err | |
33243 | rm -f conftest.er1 | |
33244 | cat conftest.err >&5 | |
33245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33246 | (exit $ac_status); } && | |
0093c2fc | 33247 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
62fa8b3a MW |
33248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33249 | (eval $ac_try) 2>&5 | |
33250 | ac_status=$? | |
33251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33252 | (exit $ac_status); }; } && | |
33253 | { ac_try='test -s conftest.$ac_objext' | |
33254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33255 | (eval $ac_try) 2>&5 | |
33256 | ac_status=$? | |
33257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33258 | (exit $ac_status); }; }; then | |
33259 | wx_cv_func_broken_snprintf_decl=no | |
33260 | else | |
33261 | echo "$as_me: failed program was:" >&5 | |
33262 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33263 | ||
33264 | wx_cv_func_broken_snprintf_decl=yes | |
33265 | ||
33266 | fi | |
33267 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33268 | ||
33269 | ||
33270 | fi | |
33271 | echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5 | |
33272 | echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6 | |
33273 | ||
33274 | if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then | |
33275 | cat >>confdefs.h <<\_ACEOF | |
33276 | #define HAVE_BROKEN_SNPRINTF_DECL 1 | |
33277 | _ACEOF | |
33278 | ||
33279 | fi | |
4a767dd5 VZ |
33280 | fi |
33281 | fi | |
33282 | ||
a848cd7e SC |
33283 | if test "$wxUSE_UNICODE" = yes; then |
33284 | ||
33285 | ||
33286 | ||
fbe47c7b VS |
33287 | |
33288 | ||
33289 | ||
33290 | for ac_func in wputc wputchar putws fputws wprintf vswprintf | |
a848cd7e SC |
33291 | do |
33292 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33293 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33294 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33295 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33296 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33297 | else | |
33298 | cat >conftest.$ac_ext <<_ACEOF | |
33299 | /* confdefs.h. */ | |
33300 | _ACEOF | |
33301 | cat confdefs.h >>conftest.$ac_ext | |
33302 | cat >>conftest.$ac_ext <<_ACEOF | |
33303 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33304 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33305 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33306 | #define $ac_func innocuous_$ac_func | |
33307 | ||
a848cd7e SC |
33308 | /* System header to define __stub macros and hopefully few prototypes, |
33309 | which can conflict with char $ac_func (); below. | |
33310 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33311 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33312 | |
a848cd7e SC |
33313 | #ifdef __STDC__ |
33314 | # include <limits.h> | |
33315 | #else | |
33316 | # include <assert.h> | |
33317 | #endif | |
ac1cb8d3 VS |
33318 | |
33319 | #undef $ac_func | |
33320 | ||
a848cd7e SC |
33321 | /* Override any gcc2 internal prototype to avoid an error. */ |
33322 | #ifdef __cplusplus | |
33323 | extern "C" | |
33324 | { | |
33325 | #endif | |
33326 | /* We use char because int might match the return type of a gcc2 | |
33327 | builtin and then its argument prototype would still apply. */ | |
33328 | char $ac_func (); | |
33329 | /* The GNU C library defines this for functions which it implements | |
33330 | to always fail with ENOSYS. Some functions are actually named | |
33331 | something starting with __ and the normal name is an alias. */ | |
33332 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33333 | choke me | |
33334 | #else | |
33335 | char (*f) () = $ac_func; | |
33336 | #endif | |
33337 | #ifdef __cplusplus | |
33338 | } | |
33339 | #endif | |
33340 | ||
33341 | int | |
33342 | main () | |
33343 | { | |
33344 | return f != $ac_func; | |
33345 | ; | |
33346 | return 0; | |
33347 | } | |
33348 | _ACEOF | |
33349 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33350 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33351 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33352 | ac_status=$? |
ac1cb8d3 VS |
33353 | grep -v '^ *+' conftest.er1 >conftest.err |
33354 | rm -f conftest.er1 | |
33355 | cat conftest.err >&5 | |
a848cd7e SC |
33356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33357 | (exit $ac_status); } && | |
0093c2fc | 33358 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33360 | (eval $ac_try) 2>&5 | |
33361 | ac_status=$? | |
33362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33363 | (exit $ac_status); }; } && | |
33364 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33366 | (eval $ac_try) 2>&5 | |
33367 | ac_status=$? | |
33368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33369 | (exit $ac_status); }; }; then | |
33370 | eval "$as_ac_var=yes" | |
33371 | else | |
33372 | echo "$as_me: failed program was:" >&5 | |
33373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33374 | ||
33375 | eval "$as_ac_var=no" | |
33376 | fi | |
ac1cb8d3 VS |
33377 | rm -f conftest.err conftest.$ac_objext \ |
33378 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33379 | fi |
33380 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33381 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33382 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33383 | cat >>confdefs.h <<_ACEOF | |
33384 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33385 | _ACEOF | |
33386 | ||
33387 | fi | |
33388 | done | |
33389 | ||
33390 | ||
33391 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 | |
33392 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
33393 | cat >conftest.$ac_ext <<_ACEOF | |
33394 | /* confdefs.h. */ | |
33395 | _ACEOF | |
33396 | cat confdefs.h >>conftest.$ac_ext | |
33397 | cat >>conftest.$ac_ext <<_ACEOF | |
33398 | /* end confdefs.h. */ | |
33399 | #include <wchar.h> | |
33400 | int | |
33401 | main () | |
33402 | { | |
33403 | &_vsnwprintf; | |
33404 | ; | |
33405 | return 0; | |
33406 | } | |
33407 | _ACEOF | |
33408 | rm -f conftest.$ac_objext | |
33409 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33410 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33411 | ac_status=$? |
ac1cb8d3 VS |
33412 | grep -v '^ *+' conftest.er1 >conftest.err |
33413 | rm -f conftest.er1 | |
33414 | cat conftest.err >&5 | |
a848cd7e SC |
33415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33416 | (exit $ac_status); } && | |
0093c2fc | 33417 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33419 | (eval $ac_try) 2>&5 | |
33420 | ac_status=$? | |
33421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33422 | (exit $ac_status); }; } && | |
33423 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33425 | (eval $ac_try) 2>&5 | |
33426 | ac_status=$? | |
33427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33428 | (exit $ac_status); }; }; then | |
33429 | echo "$as_me:$LINENO: result: yes" >&5 | |
33430 | echo "${ECHO_T}yes" >&6 | |
33431 | cat >>confdefs.h <<\_ACEOF | |
33432 | #define HAVE__VSNWPRINTF 1 | |
33433 | _ACEOF | |
33434 | ||
33435 | else | |
33436 | echo "$as_me: failed program was:" >&5 | |
33437 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33438 | ||
33439 | echo "$as_me:$LINENO: result: no" >&5 | |
33440 | echo "${ECHO_T}no" >&6 | |
33441 | fi | |
ac1cb8d3 | 33442 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext; |
a848cd7e SC |
33443 | fi |
33444 | ||
33445 | ac_ext=c | |
33446 | ac_cpp='$CPP $CPPFLAGS' | |
33447 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33448 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33449 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
33450 | ||
33451 | ||
6ebeb4c7 VZ |
33452 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
33453 | ||
33454 | for ac_func in fnmatch | |
33455 | do | |
33456 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33457 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33458 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33459 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33460 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33461 | else | |
33462 | cat >conftest.$ac_ext <<_ACEOF | |
33463 | /* confdefs.h. */ | |
33464 | _ACEOF | |
33465 | cat confdefs.h >>conftest.$ac_ext | |
33466 | cat >>conftest.$ac_ext <<_ACEOF | |
33467 | /* end confdefs.h. */ | |
33468 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
33469 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33470 | #define $ac_func innocuous_$ac_func | |
33471 | ||
33472 | /* System header to define __stub macros and hopefully few prototypes, | |
33473 | which can conflict with char $ac_func (); below. | |
33474 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33475 | <limits.h> exists even on freestanding compilers. */ | |
33476 | ||
33477 | #ifdef __STDC__ | |
33478 | # include <limits.h> | |
33479 | #else | |
33480 | # include <assert.h> | |
33481 | #endif | |
33482 | ||
33483 | #undef $ac_func | |
33484 | ||
33485 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33486 | #ifdef __cplusplus | |
33487 | extern "C" | |
33488 | { | |
33489 | #endif | |
33490 | /* We use char because int might match the return type of a gcc2 | |
33491 | builtin and then its argument prototype would still apply. */ | |
33492 | char $ac_func (); | |
33493 | /* The GNU C library defines this for functions which it implements | |
33494 | to always fail with ENOSYS. Some functions are actually named | |
33495 | something starting with __ and the normal name is an alias. */ | |
33496 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33497 | choke me | |
33498 | #else | |
33499 | char (*f) () = $ac_func; | |
33500 | #endif | |
33501 | #ifdef __cplusplus | |
33502 | } | |
33503 | #endif | |
33504 | ||
33505 | int | |
33506 | main () | |
33507 | { | |
33508 | return f != $ac_func; | |
33509 | ; | |
33510 | return 0; | |
33511 | } | |
33512 | _ACEOF | |
33513 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33514 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33515 | (eval $ac_link) 2>conftest.er1 | |
33516 | ac_status=$? | |
33517 | grep -v '^ *+' conftest.er1 >conftest.err | |
33518 | rm -f conftest.er1 | |
33519 | cat conftest.err >&5 | |
33520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33521 | (exit $ac_status); } && | |
0093c2fc | 33522 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6ebeb4c7 VZ |
33523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33524 | (eval $ac_try) 2>&5 | |
33525 | ac_status=$? | |
33526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33527 | (exit $ac_status); }; } && | |
33528 | { ac_try='test -s conftest$ac_exeext' | |
33529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33530 | (eval $ac_try) 2>&5 | |
33531 | ac_status=$? | |
33532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33533 | (exit $ac_status); }; }; then | |
33534 | eval "$as_ac_var=yes" | |
33535 | else | |
33536 | echo "$as_me: failed program was:" >&5 | |
33537 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33538 | ||
33539 | eval "$as_ac_var=no" | |
33540 | fi | |
33541 | rm -f conftest.err conftest.$ac_objext \ | |
33542 | conftest$ac_exeext conftest.$ac_ext | |
33543 | fi | |
33544 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33545 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33546 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33547 | cat >>confdefs.h <<_ACEOF | |
33548 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33549 | _ACEOF | |
33550 | ||
33551 | fi | |
33552 | done | |
33553 | ||
33554 | fi | |
33555 | ||
33556 | if test "$wxUSE_FILE" = "yes"; then | |
33557 | ||
33558 | for ac_func in fsync | |
33559 | do | |
33560 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33561 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33562 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33563 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33564 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33565 | else | |
33566 | cat >conftest.$ac_ext <<_ACEOF | |
33567 | /* confdefs.h. */ | |
33568 | _ACEOF | |
33569 | cat confdefs.h >>conftest.$ac_ext | |
33570 | cat >>conftest.$ac_ext <<_ACEOF | |
33571 | /* end confdefs.h. */ | |
33572 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
33573 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33574 | #define $ac_func innocuous_$ac_func | |
33575 | ||
33576 | /* System header to define __stub macros and hopefully few prototypes, | |
33577 | which can conflict with char $ac_func (); below. | |
33578 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33579 | <limits.h> exists even on freestanding compilers. */ | |
33580 | ||
33581 | #ifdef __STDC__ | |
33582 | # include <limits.h> | |
33583 | #else | |
33584 | # include <assert.h> | |
33585 | #endif | |
33586 | ||
33587 | #undef $ac_func | |
33588 | ||
33589 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33590 | #ifdef __cplusplus | |
33591 | extern "C" | |
33592 | { | |
33593 | #endif | |
33594 | /* We use char because int might match the return type of a gcc2 | |
33595 | builtin and then its argument prototype would still apply. */ | |
33596 | char $ac_func (); | |
33597 | /* The GNU C library defines this for functions which it implements | |
33598 | to always fail with ENOSYS. Some functions are actually named | |
33599 | something starting with __ and the normal name is an alias. */ | |
33600 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33601 | choke me | |
33602 | #else | |
33603 | char (*f) () = $ac_func; | |
33604 | #endif | |
33605 | #ifdef __cplusplus | |
33606 | } | |
33607 | #endif | |
33608 | ||
33609 | int | |
33610 | main () | |
33611 | { | |
33612 | return f != $ac_func; | |
33613 | ; | |
33614 | return 0; | |
33615 | } | |
33616 | _ACEOF | |
33617 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33618 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33619 | (eval $ac_link) 2>conftest.er1 | |
33620 | ac_status=$? | |
33621 | grep -v '^ *+' conftest.er1 >conftest.err | |
33622 | rm -f conftest.er1 | |
33623 | cat conftest.err >&5 | |
33624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33625 | (exit $ac_status); } && | |
0093c2fc | 33626 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6ebeb4c7 VZ |
33627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33628 | (eval $ac_try) 2>&5 | |
33629 | ac_status=$? | |
33630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33631 | (exit $ac_status); }; } && | |
33632 | { ac_try='test -s conftest$ac_exeext' | |
33633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33634 | (eval $ac_try) 2>&5 | |
33635 | ac_status=$? | |
33636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33637 | (exit $ac_status); }; }; then | |
33638 | eval "$as_ac_var=yes" | |
33639 | else | |
33640 | echo "$as_me: failed program was:" >&5 | |
33641 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33642 | ||
33643 | eval "$as_ac_var=no" | |
33644 | fi | |
33645 | rm -f conftest.err conftest.$ac_objext \ | |
33646 | conftest$ac_exeext conftest.$ac_ext | |
33647 | fi | |
33648 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33649 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33650 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33651 | cat >>confdefs.h <<_ACEOF | |
33652 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33653 | _ACEOF | |
33654 | ||
33655 | fi | |
33656 | done | |
33657 | ||
33658 | fi | |
a848cd7e SC |
33659 | |
33660 | ||
33661 | if test "$TOOLKIT" != "MSW"; then | |
33662 | ||
33663 | ||
33664 | ||
33665 | ||
33666 | ac_ext=cc | |
33667 | ac_cpp='$CXXCPP $CPPFLAGS' | |
33668 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33669 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33670 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
33671 | ||
33672 | ||
33673 | ||
33674 | ||
33675 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
33676 | if test "${with_libiconv_prefix+set}" = set; then | |
33677 | withval="$with_libiconv_prefix" | |
33678 | ||
33679 | for dir in `echo "$withval" | tr : ' '`; do | |
33680 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
33681 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
33682 | done | |
33683 | ||
33684 | fi; | |
33685 | ||
33686 | echo "$as_me:$LINENO: checking for iconv" >&5 | |
33687 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
33688 | if test "${am_cv_func_iconv+set}" = set; then | |
33689 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33690 | else | |
33691 | ||
33692 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
33693 | am_cv_lib_iconv=no | |
33694 | cat >conftest.$ac_ext <<_ACEOF | |
33695 | /* confdefs.h. */ | |
33696 | _ACEOF | |
33697 | cat confdefs.h >>conftest.$ac_ext | |
33698 | cat >>conftest.$ac_ext <<_ACEOF | |
33699 | /* end confdefs.h. */ | |
33700 | #include <stdlib.h> | |
33701 | #include <iconv.h> | |
33702 | int | |
33703 | main () | |
33704 | { | |
33705 | iconv_t cd = iconv_open("",""); | |
33706 | iconv(cd,NULL,NULL,NULL,NULL); | |
33707 | iconv_close(cd); | |
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); } && | |
0093c2fc | 33721 | { ac_try='test -z "$ac_cxx_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 | am_cv_func_iconv=yes | |
33734 | else | |
33735 | echo "$as_me: failed program was:" >&5 | |
33736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33737 | ||
33738 | fi | |
ac1cb8d3 VS |
33739 | rm -f conftest.err conftest.$ac_objext \ |
33740 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33741 | if test "$am_cv_func_iconv" != yes; then |
33742 | am_save_LIBS="$LIBS" | |
33743 | LIBS="$LIBS -liconv" | |
33744 | cat >conftest.$ac_ext <<_ACEOF | |
33745 | /* confdefs.h. */ | |
33746 | _ACEOF | |
33747 | cat confdefs.h >>conftest.$ac_ext | |
33748 | cat >>conftest.$ac_ext <<_ACEOF | |
33749 | /* end confdefs.h. */ | |
33750 | #include <stdlib.h> | |
33751 | #include <iconv.h> | |
33752 | int | |
33753 | main () | |
33754 | { | |
33755 | iconv_t cd = iconv_open("",""); | |
33756 | iconv(cd,NULL,NULL,NULL,NULL); | |
33757 | iconv_close(cd); | |
33758 | ; | |
33759 | return 0; | |
33760 | } | |
33761 | _ACEOF | |
33762 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33763 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33764 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33765 | ac_status=$? |
ac1cb8d3 VS |
33766 | grep -v '^ *+' conftest.er1 >conftest.err |
33767 | rm -f conftest.er1 | |
33768 | cat conftest.err >&5 | |
a848cd7e SC |
33769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33770 | (exit $ac_status); } && | |
0093c2fc | 33771 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33773 | (eval $ac_try) 2>&5 | |
33774 | ac_status=$? | |
33775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33776 | (exit $ac_status); }; } && | |
33777 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33779 | (eval $ac_try) 2>&5 | |
33780 | ac_status=$? | |
33781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33782 | (exit $ac_status); }; }; then | |
33783 | am_cv_lib_iconv=yes | |
33784 | am_cv_func_iconv=yes | |
33785 | else | |
33786 | echo "$as_me: failed program was:" >&5 | |
33787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33788 | ||
33789 | fi | |
ac1cb8d3 VS |
33790 | rm -f conftest.err conftest.$ac_objext \ |
33791 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33792 | LIBS="$am_save_LIBS" |
33793 | fi | |
33794 | ||
33795 | fi | |
33796 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
33797 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
33798 | if test "$am_cv_func_iconv" = yes; then | |
33799 | ||
33800 | cat >>confdefs.h <<\_ACEOF | |
33801 | #define HAVE_ICONV 1 | |
33802 | _ACEOF | |
33803 | ||
33804 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 | |
33805 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
33806 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
33807 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33808 | else | |
33809 | cat >conftest.$ac_ext <<_ACEOF | |
33810 | /* confdefs.h. */ | |
33811 | _ACEOF | |
33812 | cat confdefs.h >>conftest.$ac_ext | |
33813 | cat >>conftest.$ac_ext <<_ACEOF | |
33814 | /* end confdefs.h. */ | |
33815 | ||
33816 | #include <stdlib.h> | |
33817 | #include <iconv.h> | |
33818 | extern | |
33819 | #ifdef __cplusplus | |
33820 | "C" | |
33821 | #endif | |
33822 | #if defined(__STDC__) || defined(__cplusplus) | |
33823 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
33824 | #else | |
33825 | size_t iconv(); | |
33826 | #endif | |
33827 | ||
33828 | int | |
33829 | main () | |
33830 | { | |
33831 | ||
33832 | ; | |
33833 | return 0; | |
33834 | } | |
33835 | _ACEOF | |
33836 | rm -f conftest.$ac_objext | |
33837 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33838 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33839 | ac_status=$? |
ac1cb8d3 VS |
33840 | grep -v '^ *+' conftest.er1 >conftest.err |
33841 | rm -f conftest.er1 | |
33842 | cat conftest.err >&5 | |
a848cd7e SC |
33843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33844 | (exit $ac_status); } && | |
0093c2fc | 33845 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33847 | (eval $ac_try) 2>&5 | |
33848 | ac_status=$? | |
33849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33850 | (exit $ac_status); }; } && | |
33851 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33853 | (eval $ac_try) 2>&5 | |
33854 | ac_status=$? | |
33855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33856 | (exit $ac_status); }; }; then | |
33857 | wx_cv_func_iconv_const="no" | |
33858 | else | |
33859 | echo "$as_me: failed program was:" >&5 | |
33860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33861 | ||
33862 | wx_cv_func_iconv_const="yes" | |
33863 | ||
33864 | fi | |
ac1cb8d3 | 33865 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33866 | |
33867 | fi | |
33868 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
33869 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
33870 | ||
33871 | iconv_const= | |
33872 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
33873 | iconv_const="const" | |
33874 | fi | |
33875 | ||
33876 | ||
33877 | cat >>confdefs.h <<_ACEOF | |
33878 | #define ICONV_CONST $iconv_const | |
33879 | _ACEOF | |
33880 | ||
33881 | fi | |
33882 | LIBICONV= | |
33883 | if test "$am_cv_lib_iconv" = yes; then | |
33884 | LIBICONV="-liconv" | |
33885 | fi | |
33886 | ||
33887 | ||
33888 | LIBS="$LIBICONV $LIBS" | |
33889 | ac_ext=c | |
33890 | ac_cpp='$CPP $CPPFLAGS' | |
33891 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33892 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33893 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
33894 | ||
33895 | ||
33896 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
33897 | ||
33898 | for ac_func in sigaction | |
33899 | do | |
33900 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33901 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33902 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33903 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33904 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33905 | else | |
33906 | cat >conftest.$ac_ext <<_ACEOF | |
33907 | /* confdefs.h. */ | |
33908 | _ACEOF | |
33909 | cat confdefs.h >>conftest.$ac_ext | |
33910 | cat >>conftest.$ac_ext <<_ACEOF | |
33911 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33912 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33913 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33914 | #define $ac_func innocuous_$ac_func | |
33915 | ||
a848cd7e SC |
33916 | /* System header to define __stub macros and hopefully few prototypes, |
33917 | which can conflict with char $ac_func (); below. | |
33918 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33919 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33920 | |
a848cd7e SC |
33921 | #ifdef __STDC__ |
33922 | # include <limits.h> | |
33923 | #else | |
33924 | # include <assert.h> | |
33925 | #endif | |
ac1cb8d3 VS |
33926 | |
33927 | #undef $ac_func | |
33928 | ||
a848cd7e SC |
33929 | /* Override any gcc2 internal prototype to avoid an error. */ |
33930 | #ifdef __cplusplus | |
33931 | extern "C" | |
33932 | { | |
33933 | #endif | |
33934 | /* We use char because int might match the return type of a gcc2 | |
33935 | builtin and then its argument prototype would still apply. */ | |
33936 | char $ac_func (); | |
33937 | /* The GNU C library defines this for functions which it implements | |
33938 | to always fail with ENOSYS. Some functions are actually named | |
33939 | something starting with __ and the normal name is an alias. */ | |
33940 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33941 | choke me | |
33942 | #else | |
33943 | char (*f) () = $ac_func; | |
33944 | #endif | |
33945 | #ifdef __cplusplus | |
33946 | } | |
33947 | #endif | |
33948 | ||
33949 | int | |
33950 | main () | |
33951 | { | |
33952 | return f != $ac_func; | |
33953 | ; | |
33954 | return 0; | |
33955 | } | |
33956 | _ACEOF | |
33957 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33958 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33959 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33960 | ac_status=$? |
ac1cb8d3 VS |
33961 | grep -v '^ *+' conftest.er1 >conftest.err |
33962 | rm -f conftest.er1 | |
33963 | cat conftest.err >&5 | |
a848cd7e SC |
33964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33965 | (exit $ac_status); } && | |
0093c2fc | 33966 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33968 | (eval $ac_try) 2>&5 | |
33969 | ac_status=$? | |
33970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33971 | (exit $ac_status); }; } && | |
33972 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33974 | (eval $ac_try) 2>&5 | |
33975 | ac_status=$? | |
33976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33977 | (exit $ac_status); }; }; then | |
33978 | eval "$as_ac_var=yes" | |
33979 | else | |
33980 | echo "$as_me: failed program was:" >&5 | |
33981 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33982 | ||
33983 | eval "$as_ac_var=no" | |
33984 | fi | |
ac1cb8d3 VS |
33985 | rm -f conftest.err conftest.$ac_objext \ |
33986 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33987 | fi |
33988 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33989 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33990 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33991 | cat >>confdefs.h <<_ACEOF | |
33992 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33993 | _ACEOF | |
33994 | ||
33995 | fi | |
33996 | done | |
33997 | ||
33998 | ||
33999 | if test "$ac_cv_func_sigaction" = "no"; then | |
34000 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 | |
34001 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
34002 | wxUSE_ON_FATAL_EXCEPTION=no | |
34003 | fi | |
34004 | ||
34005 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
34006 | ||
34007 | ||
34008 | ac_ext=cc | |
34009 | ac_cpp='$CXXCPP $CPPFLAGS' | |
34010 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34011 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34012 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
34013 | ||
34014 | ||
34015 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 | |
34016 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
34017 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
34018 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34019 | else | |
34020 | ||
34021 | cat >conftest.$ac_ext <<_ACEOF | |
34022 | /* confdefs.h. */ | |
34023 | _ACEOF | |
34024 | cat confdefs.h >>conftest.$ac_ext | |
34025 | cat >>conftest.$ac_ext <<_ACEOF | |
34026 | /* end confdefs.h. */ | |
34027 | #include <signal.h> | |
34028 | int | |
34029 | main () | |
34030 | { | |
34031 | ||
34032 | extern void testSigHandler(int); | |
34033 | ||
34034 | struct sigaction sa; | |
34035 | sa.sa_handler = testSigHandler; | |
34036 | ||
34037 | ; | |
34038 | return 0; | |
34039 | } | |
34040 | _ACEOF | |
34041 | rm -f conftest.$ac_objext | |
34042 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34043 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34044 | ac_status=$? |
ac1cb8d3 VS |
34045 | grep -v '^ *+' conftest.er1 >conftest.err |
34046 | rm -f conftest.er1 | |
34047 | cat conftest.err >&5 | |
a848cd7e SC |
34048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34049 | (exit $ac_status); } && | |
0093c2fc | 34050 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34052 | (eval $ac_try) 2>&5 | |
34053 | ac_status=$? | |
34054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34055 | (exit $ac_status); }; } && | |
34056 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34058 | (eval $ac_try) 2>&5 | |
34059 | ac_status=$? | |
34060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34061 | (exit $ac_status); }; }; then | |
34062 | ||
34063 | wx_cv_type_sa_handler=int | |
34064 | ||
34065 | else | |
34066 | echo "$as_me: failed program was:" >&5 | |
34067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34068 | ||
34069 | ||
34070 | wx_cv_type_sa_handler=void | |
34071 | ||
34072 | fi | |
ac1cb8d3 | 34073 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34074 | |
34075 | fi | |
34076 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
34077 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
34078 | ||
34079 | ac_ext=c | |
34080 | ac_cpp='$CPP $CPPFLAGS' | |
34081 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34082 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34083 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
34084 | ||
34085 | ||
34086 | cat >>confdefs.h <<_ACEOF | |
34087 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
34088 | _ACEOF | |
34089 | ||
34090 | fi | |
34091 | fi | |
34092 | ||
eaff0f0d VZ |
34093 | if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
34094 | ||
34095 | ||
34096 | ac_ext=cc | |
34097 | ac_cpp='$CXXCPP $CPPFLAGS' | |
34098 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34099 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34100 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
34101 | ||
34102 | ||
34103 | echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5 | |
34104 | echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6 | |
34105 | if test "${wx_cv_func_backtrace+set}" = set; then | |
34106 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34107 | else | |
34108 | ||
34109 | cat >conftest.$ac_ext <<_ACEOF | |
34110 | /* confdefs.h. */ | |
34111 | _ACEOF | |
34112 | cat confdefs.h >>conftest.$ac_ext | |
34113 | cat >>conftest.$ac_ext <<_ACEOF | |
34114 | /* end confdefs.h. */ | |
34115 | #include <execinfo.h> | |
34116 | int | |
34117 | main () | |
34118 | { | |
34119 | ||
34120 | void *trace[1]; | |
34121 | char **messages; | |
34122 | ||
34123 | backtrace(trace, 1); | |
34124 | messages = backtrace_symbols(trace, 1); | |
34125 | ||
34126 | ; | |
34127 | return 0; | |
34128 | } | |
34129 | _ACEOF | |
34130 | rm -f conftest.$ac_objext | |
34131 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34132 | (eval $ac_compile) 2>conftest.er1 | |
34133 | ac_status=$? | |
34134 | grep -v '^ *+' conftest.er1 >conftest.err | |
34135 | rm -f conftest.er1 | |
34136 | cat conftest.err >&5 | |
34137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34138 | (exit $ac_status); } && | |
0093c2fc | 34139 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
eaff0f0d VZ |
34140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34141 | (eval $ac_try) 2>&5 | |
34142 | ac_status=$? | |
34143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34144 | (exit $ac_status); }; } && | |
34145 | { ac_try='test -s conftest.$ac_objext' | |
34146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34147 | (eval $ac_try) 2>&5 | |
34148 | ac_status=$? | |
34149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34150 | (exit $ac_status); }; }; then | |
34151 | wx_cv_func_backtrace=yes | |
34152 | else | |
34153 | echo "$as_me: failed program was:" >&5 | |
34154 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34155 | ||
34156 | wx_cv_func_backtrace=no | |
34157 | ||
34158 | fi | |
34159 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
34160 | ||
34161 | ||
34162 | fi | |
34163 | echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5 | |
34164 | echo "${ECHO_T}$wx_cv_func_backtrace" >&6 | |
34165 | ||
34166 | ||
34167 | if test "$wx_cv_func_backtrace" = "no"; then | |
34168 | { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5 | |
34169 | echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;} | |
34170 | wxUSE_STACKWALKER=no | |
34171 | else | |
34172 | echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5 | |
34173 | echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6 | |
34174 | if test "${wx_cv_func_cxa_demangle+set}" = set; then | |
34175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34176 | else | |
34177 | ||
34178 | cat >conftest.$ac_ext <<_ACEOF | |
34179 | /* confdefs.h. */ | |
34180 | _ACEOF | |
34181 | cat confdefs.h >>conftest.$ac_ext | |
34182 | cat >>conftest.$ac_ext <<_ACEOF | |
34183 | /* end confdefs.h. */ | |
34184 | #include <cxxabi.h> | |
34185 | int | |
34186 | main () | |
34187 | { | |
34188 | ||
34189 | int rc; | |
34190 | __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc); | |
34191 | ||
34192 | ; | |
34193 | return 0; | |
34194 | } | |
34195 | _ACEOF | |
dfe0c803 JS |
34196 | rm -f conftest.$ac_objext conftest$ac_exeext |
34197 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
34198 | (eval $ac_link) 2>conftest.er1 | |
eaff0f0d VZ |
34199 | ac_status=$? |
34200 | grep -v '^ *+' conftest.er1 >conftest.err | |
34201 | rm -f conftest.er1 | |
34202 | cat conftest.err >&5 | |
34203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34204 | (exit $ac_status); } && | |
0093c2fc | 34205 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
eaff0f0d VZ |
34206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34207 | (eval $ac_try) 2>&5 | |
34208 | ac_status=$? | |
34209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34210 | (exit $ac_status); }; } && | |
dfe0c803 | 34211 | { ac_try='test -s conftest$ac_exeext' |
eaff0f0d VZ |
34212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34213 | (eval $ac_try) 2>&5 | |
34214 | ac_status=$? | |
34215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34216 | (exit $ac_status); }; }; then | |
34217 | wx_cv_func_cxa_demangle=yes | |
34218 | else | |
34219 | echo "$as_me: failed program was:" >&5 | |
34220 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34221 | ||
34222 | wx_cv_func_cxa_demangle=no | |
34223 | ||
34224 | fi | |
dfe0c803 JS |
34225 | rm -f conftest.err conftest.$ac_objext \ |
34226 | conftest$ac_exeext conftest.$ac_ext | |
eaff0f0d VZ |
34227 | |
34228 | ||
34229 | fi | |
34230 | echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5 | |
34231 | echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6 | |
34232 | ||
34233 | if test "$wx_cv_func_cxa_demangle" = "yes"; then | |
34234 | cat >>confdefs.h <<\_ACEOF | |
34235 | #define HAVE_CXA_DEMANGLE 1 | |
34236 | _ACEOF | |
34237 | ||
34238 | fi | |
34239 | fi | |
34240 | ||
34241 | ac_ext=c | |
34242 | ac_cpp='$CPP $CPPFLAGS' | |
34243 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34244 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34245 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
34246 | ||
34247 | fi | |
34248 | ||
898beab1 DE |
34249 | if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then |
34250 | { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5 | |
34251 | echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;} | |
34252 | wxUSE_STACKWALKER=no | |
34253 | fi | |
34254 | ||
34255 | ||
a848cd7e SC |
34256 | |
34257 | ||
34258 | for ac_func in mkstemp mktemp | |
34259 | do | |
34260 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34261 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34262 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34263 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34264 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34265 | else | |
34266 | cat >conftest.$ac_ext <<_ACEOF | |
34267 | /* confdefs.h. */ | |
34268 | _ACEOF | |
34269 | cat confdefs.h >>conftest.$ac_ext | |
34270 | cat >>conftest.$ac_ext <<_ACEOF | |
34271 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34272 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34273 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34274 | #define $ac_func innocuous_$ac_func | |
34275 | ||
a848cd7e SC |
34276 | /* System header to define __stub macros and hopefully few prototypes, |
34277 | which can conflict with char $ac_func (); below. | |
34278 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34279 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34280 | |
a848cd7e SC |
34281 | #ifdef __STDC__ |
34282 | # include <limits.h> | |
34283 | #else | |
34284 | # include <assert.h> | |
34285 | #endif | |
ac1cb8d3 VS |
34286 | |
34287 | #undef $ac_func | |
34288 | ||
a848cd7e SC |
34289 | /* Override any gcc2 internal prototype to avoid an error. */ |
34290 | #ifdef __cplusplus | |
34291 | extern "C" | |
34292 | { | |
34293 | #endif | |
34294 | /* We use char because int might match the return type of a gcc2 | |
34295 | builtin and then its argument prototype would still apply. */ | |
34296 | char $ac_func (); | |
34297 | /* The GNU C library defines this for functions which it implements | |
34298 | to always fail with ENOSYS. Some functions are actually named | |
34299 | something starting with __ and the normal name is an alias. */ | |
34300 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34301 | choke me | |
34302 | #else | |
34303 | char (*f) () = $ac_func; | |
34304 | #endif | |
34305 | #ifdef __cplusplus | |
34306 | } | |
34307 | #endif | |
34308 | ||
34309 | int | |
34310 | main () | |
34311 | { | |
34312 | return f != $ac_func; | |
34313 | ; | |
34314 | return 0; | |
34315 | } | |
34316 | _ACEOF | |
34317 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34318 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34319 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34320 | ac_status=$? |
ac1cb8d3 VS |
34321 | grep -v '^ *+' conftest.er1 >conftest.err |
34322 | rm -f conftest.er1 | |
34323 | cat conftest.err >&5 | |
a848cd7e SC |
34324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34325 | (exit $ac_status); } && | |
0093c2fc | 34326 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34328 | (eval $ac_try) 2>&5 | |
34329 | ac_status=$? | |
34330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34331 | (exit $ac_status); }; } && | |
34332 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34334 | (eval $ac_try) 2>&5 | |
34335 | ac_status=$? | |
34336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34337 | (exit $ac_status); }; }; then | |
34338 | eval "$as_ac_var=yes" | |
34339 | else | |
34340 | echo "$as_me: failed program was:" >&5 | |
34341 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34342 | ||
34343 | eval "$as_ac_var=no" | |
34344 | fi | |
ac1cb8d3 VS |
34345 | rm -f conftest.err conftest.$ac_objext \ |
34346 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34347 | fi |
34348 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34349 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34350 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34351 | cat >>confdefs.h <<_ACEOF | |
34352 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34353 | _ACEOF | |
34354 | break | |
34355 | fi | |
34356 | done | |
34357 | ||
34358 | ||
34359 | echo "$as_me:$LINENO: checking for statfs" >&5 | |
34360 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
34361 | if test "${wx_cv_func_statfs+set}" = set; then | |
34362 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34363 | else | |
34364 | cat >conftest.$ac_ext <<_ACEOF | |
34365 | /* confdefs.h. */ | |
34366 | _ACEOF | |
34367 | cat confdefs.h >>conftest.$ac_ext | |
34368 | cat >>conftest.$ac_ext <<_ACEOF | |
34369 | /* end confdefs.h. */ | |
34370 | ||
34371 | #if defined(__BSD__) | |
84ae7ca4 VZ |
34372 | #include <sys/param.h> |
34373 | #include <sys/mount.h> | |
a848cd7e | 34374 | #else |
84ae7ca4 | 34375 | #include <sys/vfs.h> |
a848cd7e SC |
34376 | #endif |
34377 | ||
34378 | int | |
34379 | main () | |
34380 | { | |
34381 | ||
34382 | long l; | |
34383 | struct statfs fs; | |
34384 | statfs("/", &fs); | |
34385 | l = fs.f_bsize; | |
34386 | l += fs.f_blocks; | |
34387 | l += fs.f_bavail; | |
34388 | ||
34389 | ; | |
34390 | return 0; | |
34391 | } | |
34392 | _ACEOF | |
34393 | rm -f conftest.$ac_objext | |
34394 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34395 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34396 | ac_status=$? |
ac1cb8d3 VS |
34397 | grep -v '^ *+' conftest.er1 >conftest.err |
34398 | rm -f conftest.er1 | |
34399 | cat conftest.err >&5 | |
a848cd7e SC |
34400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34401 | (exit $ac_status); } && | |
0093c2fc | 34402 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34404 | (eval $ac_try) 2>&5 | |
34405 | ac_status=$? | |
34406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34407 | (exit $ac_status); }; } && | |
34408 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34410 | (eval $ac_try) 2>&5 | |
34411 | ac_status=$? | |
34412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34413 | (exit $ac_status); }; }; then | |
84ae7ca4 | 34414 | wx_cv_func_statfs=yes |
a848cd7e SC |
34415 | else |
34416 | echo "$as_me: failed program was:" >&5 | |
34417 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34418 | ||
84ae7ca4 | 34419 | wx_cv_func_statfs=no |
a848cd7e SC |
34420 | |
34421 | fi | |
ac1cb8d3 | 34422 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34423 | |
34424 | fi | |
34425 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
34426 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
34427 | ||
34428 | if test "$wx_cv_func_statfs" = "yes"; then | |
84ae7ca4 VZ |
34429 | |
34430 | ||
34431 | ac_ext=cc | |
34432 | ac_cpp='$CXXCPP $CPPFLAGS' | |
34433 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34434 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34435 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
34436 | ||
34437 | echo "$as_me:$LINENO: checking for statfs declaration" >&5 | |
34438 | echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6 | |
34439 | if test "${wx_cv_func_statfs_decl+set}" = set; then | |
34440 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34441 | else | |
0683aca6 VZ |
34442 | cat >conftest.$ac_ext <<_ACEOF |
34443 | /* confdefs.h. */ | |
34444 | _ACEOF | |
34445 | cat confdefs.h >>conftest.$ac_ext | |
34446 | cat >>conftest.$ac_ext <<_ACEOF | |
34447 | /* end confdefs.h. */ | |
84ae7ca4 | 34448 | |
0683aca6 VZ |
34449 | #if defined(__BSD__) |
34450 | #include <sys/param.h> | |
34451 | #include <sys/mount.h> | |
34452 | #else | |
34453 | #include <sys/vfs.h> | |
34454 | #endif | |
34455 | ||
34456 | int | |
34457 | main () | |
34458 | { | |
34459 | ||
34460 | struct statfs fs; | |
34461 | statfs("", &fs); | |
34462 | ||
34463 | ; | |
34464 | return 0; | |
34465 | } | |
34466 | _ACEOF | |
34467 | rm -f conftest.$ac_objext | |
34468 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34469 | (eval $ac_compile) 2>conftest.er1 | |
34470 | ac_status=$? | |
34471 | grep -v '^ *+' conftest.er1 >conftest.err | |
34472 | rm -f conftest.er1 | |
34473 | cat conftest.err >&5 | |
34474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34475 | (exit $ac_status); } && | |
0093c2fc | 34476 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
0683aca6 VZ |
34477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34478 | (eval $ac_try) 2>&5 | |
34479 | ac_status=$? | |
34480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34481 | (exit $ac_status); }; } && | |
34482 | { ac_try='test -s conftest.$ac_objext' | |
34483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34484 | (eval $ac_try) 2>&5 | |
34485 | ac_status=$? | |
34486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34487 | (exit $ac_status); }; }; then | |
34488 | wx_cv_func_statfs_decl=yes | |
34489 | else | |
34490 | echo "$as_me: failed program was:" >&5 | |
34491 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34492 | ||
34493 | wx_cv_func_statfs_decl=no | |
34494 | ||
34495 | fi | |
34496 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
84ae7ca4 VZ |
34497 | |
34498 | fi | |
34499 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5 | |
34500 | echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6 | |
34501 | ac_ext=c | |
34502 | ac_cpp='$CPP $CPPFLAGS' | |
34503 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34504 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34505 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
34506 | ||
34507 | ||
34508 | if test "$wx_cv_func_statfs_decl" = "yes"; then | |
34509 | cat >>confdefs.h <<\_ACEOF | |
34510 | #define HAVE_STATFS_DECL 1 | |
34511 | _ACEOF | |
34512 | ||
34513 | fi | |
34514 | ||
a848cd7e SC |
34515 | wx_cv_type_statvfs_t="struct statfs" |
34516 | cat >>confdefs.h <<\_ACEOF | |
34517 | #define HAVE_STATFS 1 | |
34518 | _ACEOF | |
34519 | ||
34520 | else | |
34521 | echo "$as_me:$LINENO: checking for statvfs" >&5 | |
34522 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
34523 | if test "${wx_cv_func_statvfs+set}" = set; then | |
34524 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34525 | else | |
34526 | cat >conftest.$ac_ext <<_ACEOF | |
34527 | /* confdefs.h. */ | |
34528 | _ACEOF | |
34529 | cat confdefs.h >>conftest.$ac_ext | |
34530 | cat >>conftest.$ac_ext <<_ACEOF | |
34531 | /* end confdefs.h. */ | |
34532 | ||
34533 | #include <stddef.h> | |
34534 | #include <sys/statvfs.h> | |
34535 | ||
34536 | int | |
34537 | main () | |
34538 | { | |
34539 | ||
34540 | statvfs("/", NULL); | |
34541 | ||
34542 | ; | |
34543 | return 0; | |
34544 | } | |
34545 | _ACEOF | |
34546 | rm -f conftest.$ac_objext | |
34547 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34548 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34549 | ac_status=$? |
ac1cb8d3 VS |
34550 | grep -v '^ *+' conftest.er1 >conftest.err |
34551 | rm -f conftest.er1 | |
34552 | cat conftest.err >&5 | |
a848cd7e SC |
34553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34554 | (exit $ac_status); } && | |
0093c2fc | 34555 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34557 | (eval $ac_try) 2>&5 | |
34558 | ac_status=$? | |
34559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34560 | (exit $ac_status); }; } && | |
34561 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34563 | (eval $ac_try) 2>&5 | |
34564 | ac_status=$? | |
34565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34566 | (exit $ac_status); }; }; then | |
34567 | wx_cv_func_statvfs=yes | |
34568 | else | |
34569 | echo "$as_me: failed program was:" >&5 | |
34570 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34571 | ||
34572 | wx_cv_func_statvfs=no | |
34573 | ||
34574 | fi | |
ac1cb8d3 | 34575 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34576 | |
34577 | fi | |
34578 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
34579 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
34580 | ||
34581 | if test "$wx_cv_func_statvfs" = "yes"; then | |
34582 | ||
34583 | ||
34584 | ac_ext=cc | |
34585 | ac_cpp='$CXXCPP $CPPFLAGS' | |
34586 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34587 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34588 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
34589 | ||
34590 | ||
34591 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 | |
34592 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
34593 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
34594 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34595 | else | |
34596 | cat >conftest.$ac_ext <<_ACEOF | |
34597 | /* confdefs.h. */ | |
34598 | _ACEOF | |
34599 | cat confdefs.h >>conftest.$ac_ext | |
34600 | cat >>conftest.$ac_ext <<_ACEOF | |
34601 | /* end confdefs.h. */ | |
34602 | ||
34603 | #include <sys/statvfs.h> | |
34604 | ||
34605 | int | |
34606 | main () | |
34607 | { | |
34608 | ||
34609 | long l; | |
34610 | statvfs_t fs; | |
34611 | statvfs("/", &fs); | |
34612 | l = fs.f_bsize; | |
34613 | l += fs.f_blocks; | |
34614 | l += fs.f_bavail; | |
34615 | ||
34616 | ; | |
34617 | return 0; | |
34618 | } | |
34619 | _ACEOF | |
34620 | rm -f conftest.$ac_objext | |
34621 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34622 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34623 | ac_status=$? |
ac1cb8d3 VS |
34624 | grep -v '^ *+' conftest.er1 >conftest.err |
34625 | rm -f conftest.er1 | |
34626 | cat conftest.err >&5 | |
a848cd7e SC |
34627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34628 | (exit $ac_status); } && | |
0093c2fc | 34629 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34631 | (eval $ac_try) 2>&5 | |
34632 | ac_status=$? | |
34633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34634 | (exit $ac_status); }; } && | |
34635 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34637 | (eval $ac_try) 2>&5 | |
34638 | ac_status=$? | |
34639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34640 | (exit $ac_status); }; }; then | |
34641 | wx_cv_type_statvfs_t=statvfs_t | |
34642 | else | |
34643 | echo "$as_me: failed program was:" >&5 | |
34644 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34645 | ||
34646 | ||
34647 | cat >conftest.$ac_ext <<_ACEOF | |
34648 | /* confdefs.h. */ | |
34649 | _ACEOF | |
34650 | cat confdefs.h >>conftest.$ac_ext | |
34651 | cat >>conftest.$ac_ext <<_ACEOF | |
34652 | /* end confdefs.h. */ | |
34653 | ||
34654 | #include <sys/statvfs.h> | |
34655 | ||
34656 | int | |
34657 | main () | |
34658 | { | |
34659 | ||
34660 | long l; | |
34661 | struct statvfs fs; | |
34662 | statvfs("/", &fs); | |
34663 | l = fs.f_bsize; | |
34664 | l += fs.f_blocks; | |
34665 | l += fs.f_bavail; | |
34666 | ||
34667 | ; | |
34668 | return 0; | |
34669 | } | |
34670 | _ACEOF | |
34671 | rm -f conftest.$ac_objext | |
34672 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34673 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34674 | ac_status=$? |
ac1cb8d3 VS |
34675 | grep -v '^ *+' conftest.er1 >conftest.err |
34676 | rm -f conftest.er1 | |
34677 | cat conftest.err >&5 | |
a848cd7e SC |
34678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34679 | (exit $ac_status); } && | |
0093c2fc | 34680 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34682 | (eval $ac_try) 2>&5 | |
34683 | ac_status=$? | |
34684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34685 | (exit $ac_status); }; } && | |
34686 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34688 | (eval $ac_try) 2>&5 | |
34689 | ac_status=$? | |
34690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34691 | (exit $ac_status); }; }; then | |
34692 | wx_cv_type_statvfs_t="struct statvfs" | |
34693 | else | |
34694 | echo "$as_me: failed program was:" >&5 | |
34695 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34696 | ||
34697 | wx_cv_type_statvfs_t="unknown" | |
34698 | ||
34699 | fi | |
ac1cb8d3 | 34700 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34701 | |
34702 | ||
34703 | fi | |
ac1cb8d3 | 34704 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34705 | |
34706 | fi | |
34707 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
34708 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
34709 | ||
34710 | ac_ext=c | |
34711 | ac_cpp='$CPP $CPPFLAGS' | |
34712 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34713 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34714 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
34715 | ||
34716 | ||
34717 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
34718 | cat >>confdefs.h <<\_ACEOF | |
34719 | #define HAVE_STATVFS 1 | |
34720 | _ACEOF | |
34721 | ||
34722 | fi | |
34723 | else | |
34724 | wx_cv_type_statvfs_t="unknown" | |
34725 | fi | |
34726 | fi | |
34727 | ||
34728 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
34729 | cat >>confdefs.h <<_ACEOF | |
34730 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
34731 | _ACEOF | |
34732 | ||
34733 | else | |
34734 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 | |
34735 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
34736 | fi | |
34737 | ||
34738 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
34739 | ||
34740 | ||
34741 | for ac_func in fcntl flock | |
34742 | do | |
34743 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34744 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34745 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34746 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34747 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34748 | else | |
34749 | cat >conftest.$ac_ext <<_ACEOF | |
34750 | /* confdefs.h. */ | |
34751 | _ACEOF | |
34752 | cat confdefs.h >>conftest.$ac_ext | |
34753 | cat >>conftest.$ac_ext <<_ACEOF | |
34754 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34755 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34756 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34757 | #define $ac_func innocuous_$ac_func | |
34758 | ||
a848cd7e SC |
34759 | /* System header to define __stub macros and hopefully few prototypes, |
34760 | which can conflict with char $ac_func (); below. | |
34761 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34762 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34763 | |
a848cd7e SC |
34764 | #ifdef __STDC__ |
34765 | # include <limits.h> | |
34766 | #else | |
34767 | # include <assert.h> | |
34768 | #endif | |
ac1cb8d3 VS |
34769 | |
34770 | #undef $ac_func | |
34771 | ||
a848cd7e SC |
34772 | /* Override any gcc2 internal prototype to avoid an error. */ |
34773 | #ifdef __cplusplus | |
34774 | extern "C" | |
34775 | { | |
34776 | #endif | |
34777 | /* We use char because int might match the return type of a gcc2 | |
34778 | builtin and then its argument prototype would still apply. */ | |
34779 | char $ac_func (); | |
34780 | /* The GNU C library defines this for functions which it implements | |
34781 | to always fail with ENOSYS. Some functions are actually named | |
34782 | something starting with __ and the normal name is an alias. */ | |
34783 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34784 | choke me | |
34785 | #else | |
34786 | char (*f) () = $ac_func; | |
34787 | #endif | |
34788 | #ifdef __cplusplus | |
34789 | } | |
34790 | #endif | |
34791 | ||
34792 | int | |
34793 | main () | |
34794 | { | |
34795 | return f != $ac_func; | |
34796 | ; | |
34797 | return 0; | |
34798 | } | |
34799 | _ACEOF | |
34800 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34801 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34802 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34803 | ac_status=$? |
ac1cb8d3 VS |
34804 | grep -v '^ *+' conftest.er1 >conftest.err |
34805 | rm -f conftest.er1 | |
34806 | cat conftest.err >&5 | |
a848cd7e SC |
34807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34808 | (exit $ac_status); } && | |
0093c2fc | 34809 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34811 | (eval $ac_try) 2>&5 | |
34812 | ac_status=$? | |
34813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34814 | (exit $ac_status); }; } && | |
34815 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34817 | (eval $ac_try) 2>&5 | |
34818 | ac_status=$? | |
34819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34820 | (exit $ac_status); }; }; then | |
34821 | eval "$as_ac_var=yes" | |
34822 | else | |
34823 | echo "$as_me: failed program was:" >&5 | |
34824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34825 | ||
34826 | eval "$as_ac_var=no" | |
34827 | fi | |
ac1cb8d3 VS |
34828 | rm -f conftest.err conftest.$ac_objext \ |
34829 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34830 | fi |
34831 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34832 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34833 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34834 | cat >>confdefs.h <<_ACEOF | |
34835 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34836 | _ACEOF | |
34837 | break | |
34838 | fi | |
34839 | done | |
34840 | ||
34841 | ||
34842 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
34843 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 | |
34844 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
34845 | wxUSE_SNGLINST_CHECKER=no | |
34846 | fi | |
34847 | fi | |
34848 | ||
34849 | ||
34850 | for ac_func in timegm | |
34851 | do | |
34852 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34853 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34854 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34855 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34857 | else | |
34858 | cat >conftest.$ac_ext <<_ACEOF | |
34859 | /* confdefs.h. */ | |
34860 | _ACEOF | |
34861 | cat confdefs.h >>conftest.$ac_ext | |
34862 | cat >>conftest.$ac_ext <<_ACEOF | |
34863 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34864 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34865 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34866 | #define $ac_func innocuous_$ac_func | |
34867 | ||
a848cd7e SC |
34868 | /* System header to define __stub macros and hopefully few prototypes, |
34869 | which can conflict with char $ac_func (); below. | |
34870 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34871 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34872 | |
a848cd7e SC |
34873 | #ifdef __STDC__ |
34874 | # include <limits.h> | |
34875 | #else | |
34876 | # include <assert.h> | |
34877 | #endif | |
ac1cb8d3 VS |
34878 | |
34879 | #undef $ac_func | |
34880 | ||
a848cd7e SC |
34881 | /* Override any gcc2 internal prototype to avoid an error. */ |
34882 | #ifdef __cplusplus | |
34883 | extern "C" | |
34884 | { | |
34885 | #endif | |
34886 | /* We use char because int might match the return type of a gcc2 | |
34887 | builtin and then its argument prototype would still apply. */ | |
34888 | char $ac_func (); | |
34889 | /* The GNU C library defines this for functions which it implements | |
34890 | to always fail with ENOSYS. Some functions are actually named | |
34891 | something starting with __ and the normal name is an alias. */ | |
34892 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34893 | choke me | |
34894 | #else | |
34895 | char (*f) () = $ac_func; | |
34896 | #endif | |
34897 | #ifdef __cplusplus | |
34898 | } | |
34899 | #endif | |
34900 | ||
34901 | int | |
34902 | main () | |
34903 | { | |
34904 | return f != $ac_func; | |
34905 | ; | |
34906 | return 0; | |
34907 | } | |
34908 | _ACEOF | |
34909 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34910 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34911 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34912 | ac_status=$? |
ac1cb8d3 VS |
34913 | grep -v '^ *+' conftest.er1 >conftest.err |
34914 | rm -f conftest.er1 | |
34915 | cat conftest.err >&5 | |
a848cd7e SC |
34916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34917 | (exit $ac_status); } && | |
0093c2fc | 34918 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34920 | (eval $ac_try) 2>&5 | |
34921 | ac_status=$? | |
34922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34923 | (exit $ac_status); }; } && | |
34924 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34926 | (eval $ac_try) 2>&5 | |
34927 | ac_status=$? | |
34928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34929 | (exit $ac_status); }; }; then | |
34930 | eval "$as_ac_var=yes" | |
34931 | else | |
34932 | echo "$as_me: failed program was:" >&5 | |
34933 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34934 | ||
34935 | eval "$as_ac_var=no" | |
34936 | fi | |
ac1cb8d3 VS |
34937 | rm -f conftest.err conftest.$ac_objext \ |
34938 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34939 | fi |
34940 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34941 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34942 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34943 | cat >>confdefs.h <<_ACEOF | |
34944 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34945 | _ACEOF | |
34946 | ||
34947 | fi | |
34948 | done | |
34949 | ||
34950 | ||
34951 | ||
34952 | ||
34953 | for ac_func in putenv setenv | |
34954 | do | |
34955 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34956 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34957 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34958 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34959 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34960 | else | |
34961 | cat >conftest.$ac_ext <<_ACEOF | |
34962 | /* confdefs.h. */ | |
34963 | _ACEOF | |
34964 | cat confdefs.h >>conftest.$ac_ext | |
34965 | cat >>conftest.$ac_ext <<_ACEOF | |
34966 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34967 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34968 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34969 | #define $ac_func innocuous_$ac_func | |
34970 | ||
a848cd7e SC |
34971 | /* System header to define __stub macros and hopefully few prototypes, |
34972 | which can conflict with char $ac_func (); below. | |
34973 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34974 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34975 | |
a848cd7e SC |
34976 | #ifdef __STDC__ |
34977 | # include <limits.h> | |
34978 | #else | |
34979 | # include <assert.h> | |
34980 | #endif | |
ac1cb8d3 VS |
34981 | |
34982 | #undef $ac_func | |
34983 | ||
a848cd7e SC |
34984 | /* Override any gcc2 internal prototype to avoid an error. */ |
34985 | #ifdef __cplusplus | |
34986 | extern "C" | |
34987 | { | |
34988 | #endif | |
34989 | /* We use char because int might match the return type of a gcc2 | |
34990 | builtin and then its argument prototype would still apply. */ | |
34991 | char $ac_func (); | |
34992 | /* The GNU C library defines this for functions which it implements | |
34993 | to always fail with ENOSYS. Some functions are actually named | |
34994 | something starting with __ and the normal name is an alias. */ | |
34995 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34996 | choke me | |
34997 | #else | |
34998 | char (*f) () = $ac_func; | |
34999 | #endif | |
35000 | #ifdef __cplusplus | |
35001 | } | |
35002 | #endif | |
35003 | ||
35004 | int | |
35005 | main () | |
35006 | { | |
35007 | return f != $ac_func; | |
35008 | ; | |
35009 | return 0; | |
35010 | } | |
35011 | _ACEOF | |
35012 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35013 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35014 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35015 | ac_status=$? |
ac1cb8d3 VS |
35016 | grep -v '^ *+' conftest.er1 >conftest.err |
35017 | rm -f conftest.er1 | |
35018 | cat conftest.err >&5 | |
a848cd7e SC |
35019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35020 | (exit $ac_status); } && | |
0093c2fc | 35021 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35023 | (eval $ac_try) 2>&5 | |
35024 | ac_status=$? | |
35025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35026 | (exit $ac_status); }; } && | |
35027 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35029 | (eval $ac_try) 2>&5 | |
35030 | ac_status=$? | |
35031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35032 | (exit $ac_status); }; }; then | |
35033 | eval "$as_ac_var=yes" | |
35034 | else | |
35035 | echo "$as_me: failed program was:" >&5 | |
35036 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35037 | ||
35038 | eval "$as_ac_var=no" | |
35039 | fi | |
ac1cb8d3 VS |
35040 | rm -f conftest.err conftest.$ac_objext \ |
35041 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35042 | fi |
35043 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35044 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35045 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35046 | cat >>confdefs.h <<_ACEOF | |
35047 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35048 | _ACEOF | |
35049 | break | |
35050 | fi | |
35051 | done | |
35052 | ||
35053 | ||
35054 | HAVE_SOME_SLEEP_FUNC=0 | |
35055 | if test "$USE_BEOS" = 1; then | |
35056 | cat >>confdefs.h <<\_ACEOF | |
35057 | #define HAVE_SLEEP 1 | |
35058 | _ACEOF | |
35059 | ||
35060 | HAVE_SOME_SLEEP_FUNC=1 | |
35061 | fi | |
35062 | ||
35063 | if test "$USE_DARWIN" = 1; then | |
35064 | cat >>confdefs.h <<\_ACEOF | |
35065 | #define HAVE_USLEEP 1 | |
35066 | _ACEOF | |
35067 | ||
35068 | HAVE_SOME_SLEEP_FUNC=1 | |
35069 | fi | |
35070 | ||
35071 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
35072 | POSIX4_LINK= | |
35073 | ||
35074 | for ac_func in nanosleep | |
35075 | do | |
35076 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35077 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35078 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35079 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35080 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35081 | else | |
35082 | cat >conftest.$ac_ext <<_ACEOF | |
35083 | /* confdefs.h. */ | |
35084 | _ACEOF | |
35085 | cat confdefs.h >>conftest.$ac_ext | |
35086 | cat >>conftest.$ac_ext <<_ACEOF | |
35087 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35088 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35089 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35090 | #define $ac_func innocuous_$ac_func | |
35091 | ||
a848cd7e SC |
35092 | /* System header to define __stub macros and hopefully few prototypes, |
35093 | which can conflict with char $ac_func (); below. | |
35094 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35095 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35096 | |
a848cd7e SC |
35097 | #ifdef __STDC__ |
35098 | # include <limits.h> | |
35099 | #else | |
35100 | # include <assert.h> | |
35101 | #endif | |
ac1cb8d3 VS |
35102 | |
35103 | #undef $ac_func | |
35104 | ||
a848cd7e SC |
35105 | /* Override any gcc2 internal prototype to avoid an error. */ |
35106 | #ifdef __cplusplus | |
35107 | extern "C" | |
35108 | { | |
35109 | #endif | |
35110 | /* We use char because int might match the return type of a gcc2 | |
35111 | builtin and then its argument prototype would still apply. */ | |
35112 | char $ac_func (); | |
35113 | /* The GNU C library defines this for functions which it implements | |
35114 | to always fail with ENOSYS. Some functions are actually named | |
35115 | something starting with __ and the normal name is an alias. */ | |
35116 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35117 | choke me | |
35118 | #else | |
35119 | char (*f) () = $ac_func; | |
35120 | #endif | |
35121 | #ifdef __cplusplus | |
35122 | } | |
35123 | #endif | |
35124 | ||
35125 | int | |
35126 | main () | |
35127 | { | |
35128 | return f != $ac_func; | |
35129 | ; | |
35130 | return 0; | |
35131 | } | |
35132 | _ACEOF | |
35133 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35134 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35135 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35136 | ac_status=$? |
ac1cb8d3 VS |
35137 | grep -v '^ *+' conftest.er1 >conftest.err |
35138 | rm -f conftest.er1 | |
35139 | cat conftest.err >&5 | |
a848cd7e SC |
35140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35141 | (exit $ac_status); } && | |
0093c2fc | 35142 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35144 | (eval $ac_try) 2>&5 | |
35145 | ac_status=$? | |
35146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35147 | (exit $ac_status); }; } && | |
35148 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35150 | (eval $ac_try) 2>&5 | |
35151 | ac_status=$? | |
35152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35153 | (exit $ac_status); }; }; then | |
35154 | eval "$as_ac_var=yes" | |
35155 | else | |
35156 | echo "$as_me: failed program was:" >&5 | |
35157 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35158 | ||
35159 | eval "$as_ac_var=no" | |
35160 | fi | |
ac1cb8d3 VS |
35161 | rm -f conftest.err conftest.$ac_objext \ |
35162 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35163 | fi |
35164 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35165 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35166 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35167 | cat >>confdefs.h <<_ACEOF | |
35168 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35169 | _ACEOF | |
35170 | cat >>confdefs.h <<\_ACEOF | |
35171 | #define HAVE_NANOSLEEP 1 | |
35172 | _ACEOF | |
35173 | ||
35174 | else | |
35175 | ||
35176 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
35177 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
35178 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
35179 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35180 | else | |
35181 | ac_check_lib_save_LIBS=$LIBS | |
35182 | LIBS="-lposix4 $LIBS" | |
35183 | cat >conftest.$ac_ext <<_ACEOF | |
35184 | /* confdefs.h. */ | |
35185 | _ACEOF | |
35186 | cat confdefs.h >>conftest.$ac_ext | |
35187 | cat >>conftest.$ac_ext <<_ACEOF | |
35188 | /* end confdefs.h. */ | |
35189 | ||
35190 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35191 | #ifdef __cplusplus | |
35192 | extern "C" | |
35193 | #endif | |
35194 | /* We use char because int might match the return type of a gcc2 | |
35195 | builtin and then its argument prototype would still apply. */ | |
35196 | char nanosleep (); | |
35197 | int | |
35198 | main () | |
35199 | { | |
35200 | nanosleep (); | |
35201 | ; | |
35202 | return 0; | |
35203 | } | |
35204 | _ACEOF | |
35205 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35206 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35207 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35208 | ac_status=$? |
ac1cb8d3 VS |
35209 | grep -v '^ *+' conftest.er1 >conftest.err |
35210 | rm -f conftest.er1 | |
35211 | cat conftest.err >&5 | |
a848cd7e SC |
35212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35213 | (exit $ac_status); } && | |
0093c2fc | 35214 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35216 | (eval $ac_try) 2>&5 | |
35217 | ac_status=$? | |
35218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35219 | (exit $ac_status); }; } && | |
35220 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35222 | (eval $ac_try) 2>&5 | |
35223 | ac_status=$? | |
35224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35225 | (exit $ac_status); }; }; then | |
35226 | ac_cv_lib_posix4_nanosleep=yes | |
35227 | else | |
35228 | echo "$as_me: failed program was:" >&5 | |
35229 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35230 | ||
35231 | ac_cv_lib_posix4_nanosleep=no | |
35232 | fi | |
ac1cb8d3 VS |
35233 | rm -f conftest.err conftest.$ac_objext \ |
35234 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35235 | LIBS=$ac_check_lib_save_LIBS |
35236 | fi | |
35237 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
35238 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
35239 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
35240 | ||
35241 | cat >>confdefs.h <<\_ACEOF | |
35242 | #define HAVE_NANOSLEEP 1 | |
35243 | _ACEOF | |
35244 | ||
35245 | POSIX4_LINK=" -lposix4" | |
35246 | ||
35247 | else | |
35248 | ||
35249 | ||
35250 | for ac_func in usleep | |
35251 | do | |
35252 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35253 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35254 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35255 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35256 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35257 | else | |
35258 | cat >conftest.$ac_ext <<_ACEOF | |
35259 | /* confdefs.h. */ | |
35260 | _ACEOF | |
35261 | cat confdefs.h >>conftest.$ac_ext | |
35262 | cat >>conftest.$ac_ext <<_ACEOF | |
35263 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35264 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35265 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35266 | #define $ac_func innocuous_$ac_func | |
35267 | ||
a848cd7e SC |
35268 | /* System header to define __stub macros and hopefully few prototypes, |
35269 | which can conflict with char $ac_func (); below. | |
35270 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35271 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35272 | |
a848cd7e SC |
35273 | #ifdef __STDC__ |
35274 | # include <limits.h> | |
35275 | #else | |
35276 | # include <assert.h> | |
35277 | #endif | |
ac1cb8d3 VS |
35278 | |
35279 | #undef $ac_func | |
35280 | ||
a848cd7e SC |
35281 | /* Override any gcc2 internal prototype to avoid an error. */ |
35282 | #ifdef __cplusplus | |
35283 | extern "C" | |
35284 | { | |
35285 | #endif | |
35286 | /* We use char because int might match the return type of a gcc2 | |
35287 | builtin and then its argument prototype would still apply. */ | |
35288 | char $ac_func (); | |
35289 | /* The GNU C library defines this for functions which it implements | |
35290 | to always fail with ENOSYS. Some functions are actually named | |
35291 | something starting with __ and the normal name is an alias. */ | |
35292 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35293 | choke me | |
35294 | #else | |
35295 | char (*f) () = $ac_func; | |
35296 | #endif | |
35297 | #ifdef __cplusplus | |
35298 | } | |
35299 | #endif | |
35300 | ||
35301 | int | |
35302 | main () | |
35303 | { | |
35304 | return f != $ac_func; | |
35305 | ; | |
35306 | return 0; | |
35307 | } | |
35308 | _ACEOF | |
35309 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35310 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35311 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35312 | ac_status=$? |
ac1cb8d3 VS |
35313 | grep -v '^ *+' conftest.er1 >conftest.err |
35314 | rm -f conftest.er1 | |
35315 | cat conftest.err >&5 | |
a848cd7e SC |
35316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35317 | (exit $ac_status); } && | |
0093c2fc | 35318 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35320 | (eval $ac_try) 2>&5 | |
35321 | ac_status=$? | |
35322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35323 | (exit $ac_status); }; } && | |
35324 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35326 | (eval $ac_try) 2>&5 | |
35327 | ac_status=$? | |
35328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35329 | (exit $ac_status); }; }; then | |
35330 | eval "$as_ac_var=yes" | |
35331 | else | |
35332 | echo "$as_me: failed program was:" >&5 | |
35333 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35334 | ||
35335 | eval "$as_ac_var=no" | |
35336 | fi | |
ac1cb8d3 VS |
35337 | rm -f conftest.err conftest.$ac_objext \ |
35338 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35339 | fi |
35340 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35341 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35342 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35343 | cat >>confdefs.h <<_ACEOF | |
35344 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35345 | _ACEOF | |
35346 | cat >>confdefs.h <<\_ACEOF | |
35347 | #define HAVE_USLEEP 1 | |
35348 | _ACEOF | |
35349 | ||
35350 | else | |
35351 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 | |
35352 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
35353 | ||
35354 | fi | |
35355 | done | |
35356 | ||
35357 | ||
35358 | ||
35359 | fi | |
35360 | ||
35361 | ||
35362 | ||
35363 | fi | |
35364 | done | |
35365 | ||
35366 | fi | |
35367 | ||
35368 | ||
35369 | ||
35370 | for ac_func in uname gethostname | |
35371 | do | |
35372 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35373 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35374 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35375 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35376 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35377 | else | |
35378 | cat >conftest.$ac_ext <<_ACEOF | |
35379 | /* confdefs.h. */ | |
35380 | _ACEOF | |
35381 | cat confdefs.h >>conftest.$ac_ext | |
35382 | cat >>conftest.$ac_ext <<_ACEOF | |
35383 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35384 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35385 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35386 | #define $ac_func innocuous_$ac_func | |
35387 | ||
a848cd7e SC |
35388 | /* System header to define __stub macros and hopefully few prototypes, |
35389 | which can conflict with char $ac_func (); below. | |
35390 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35391 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35392 | |
a848cd7e SC |
35393 | #ifdef __STDC__ |
35394 | # include <limits.h> | |
35395 | #else | |
35396 | # include <assert.h> | |
35397 | #endif | |
ac1cb8d3 VS |
35398 | |
35399 | #undef $ac_func | |
35400 | ||
a848cd7e SC |
35401 | /* Override any gcc2 internal prototype to avoid an error. */ |
35402 | #ifdef __cplusplus | |
35403 | extern "C" | |
35404 | { | |
35405 | #endif | |
35406 | /* We use char because int might match the return type of a gcc2 | |
35407 | builtin and then its argument prototype would still apply. */ | |
35408 | char $ac_func (); | |
35409 | /* The GNU C library defines this for functions which it implements | |
35410 | to always fail with ENOSYS. Some functions are actually named | |
35411 | something starting with __ and the normal name is an alias. */ | |
35412 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35413 | choke me | |
35414 | #else | |
35415 | char (*f) () = $ac_func; | |
35416 | #endif | |
35417 | #ifdef __cplusplus | |
35418 | } | |
35419 | #endif | |
35420 | ||
35421 | int | |
35422 | main () | |
35423 | { | |
35424 | return f != $ac_func; | |
35425 | ; | |
35426 | return 0; | |
35427 | } | |
35428 | _ACEOF | |
35429 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35430 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35431 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35432 | ac_status=$? |
ac1cb8d3 VS |
35433 | grep -v '^ *+' conftest.er1 >conftest.err |
35434 | rm -f conftest.er1 | |
35435 | cat conftest.err >&5 | |
a848cd7e SC |
35436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35437 | (exit $ac_status); } && | |
0093c2fc | 35438 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35440 | (eval $ac_try) 2>&5 | |
35441 | ac_status=$? | |
35442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35443 | (exit $ac_status); }; } && | |
35444 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35446 | (eval $ac_try) 2>&5 | |
35447 | ac_status=$? | |
35448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35449 | (exit $ac_status); }; }; then | |
35450 | eval "$as_ac_var=yes" | |
35451 | else | |
35452 | echo "$as_me: failed program was:" >&5 | |
35453 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35454 | ||
35455 | eval "$as_ac_var=no" | |
35456 | fi | |
ac1cb8d3 VS |
35457 | rm -f conftest.err conftest.$ac_objext \ |
35458 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35459 | fi |
35460 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35461 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35462 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35463 | cat >>confdefs.h <<_ACEOF | |
35464 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35465 | _ACEOF | |
35466 | break | |
35467 | fi | |
35468 | done | |
35469 | ||
35470 | ||
35471 | ||
35472 | ||
35473 | ac_ext=cc | |
35474 | ac_cpp='$CXXCPP $CPPFLAGS' | |
35475 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35476 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35477 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
35478 | ||
35479 | ||
35480 | ||
35481 | for ac_func in strtok_r | |
35482 | do | |
35483 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35484 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35485 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35486 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35488 | else | |
35489 | cat >conftest.$ac_ext <<_ACEOF | |
35490 | /* confdefs.h. */ | |
35491 | _ACEOF | |
35492 | cat confdefs.h >>conftest.$ac_ext | |
35493 | cat >>conftest.$ac_ext <<_ACEOF | |
35494 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35495 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35496 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35497 | #define $ac_func innocuous_$ac_func | |
35498 | ||
a848cd7e SC |
35499 | /* System header to define __stub macros and hopefully few prototypes, |
35500 | which can conflict with char $ac_func (); below. | |
35501 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35502 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35503 | |
a848cd7e SC |
35504 | #ifdef __STDC__ |
35505 | # include <limits.h> | |
35506 | #else | |
35507 | # include <assert.h> | |
35508 | #endif | |
ac1cb8d3 VS |
35509 | |
35510 | #undef $ac_func | |
35511 | ||
a848cd7e SC |
35512 | /* Override any gcc2 internal prototype to avoid an error. */ |
35513 | #ifdef __cplusplus | |
35514 | extern "C" | |
35515 | { | |
35516 | #endif | |
35517 | /* We use char because int might match the return type of a gcc2 | |
35518 | builtin and then its argument prototype would still apply. */ | |
35519 | char $ac_func (); | |
35520 | /* The GNU C library defines this for functions which it implements | |
35521 | to always fail with ENOSYS. Some functions are actually named | |
35522 | something starting with __ and the normal name is an alias. */ | |
35523 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35524 | choke me | |
35525 | #else | |
35526 | char (*f) () = $ac_func; | |
35527 | #endif | |
35528 | #ifdef __cplusplus | |
35529 | } | |
35530 | #endif | |
35531 | ||
35532 | int | |
35533 | main () | |
35534 | { | |
35535 | return f != $ac_func; | |
35536 | ; | |
35537 | return 0; | |
35538 | } | |
35539 | _ACEOF | |
35540 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35541 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35542 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35543 | ac_status=$? |
ac1cb8d3 VS |
35544 | grep -v '^ *+' conftest.er1 >conftest.err |
35545 | rm -f conftest.er1 | |
35546 | cat conftest.err >&5 | |
a848cd7e SC |
35547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35548 | (exit $ac_status); } && | |
0093c2fc | 35549 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35551 | (eval $ac_try) 2>&5 | |
35552 | ac_status=$? | |
35553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35554 | (exit $ac_status); }; } && | |
35555 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35557 | (eval $ac_try) 2>&5 | |
35558 | ac_status=$? | |
35559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35560 | (exit $ac_status); }; }; then | |
35561 | eval "$as_ac_var=yes" | |
35562 | else | |
35563 | echo "$as_me: failed program was:" >&5 | |
35564 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35565 | ||
35566 | eval "$as_ac_var=no" | |
35567 | fi | |
ac1cb8d3 VS |
35568 | rm -f conftest.err conftest.$ac_objext \ |
35569 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35570 | fi |
35571 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35572 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35573 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35574 | cat >>confdefs.h <<_ACEOF | |
35575 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35576 | _ACEOF | |
35577 | ||
35578 | fi | |
35579 | done | |
35580 | ||
35581 | ||
35582 | ac_ext=c | |
35583 | ac_cpp='$CPP $CPPFLAGS' | |
35584 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35585 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35586 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
35587 | ||
35588 | ||
35589 | INET_LINK= | |
35590 | ||
35591 | for ac_func in inet_addr | |
35592 | do | |
35593 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35594 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35595 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35596 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35597 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35598 | else | |
35599 | cat >conftest.$ac_ext <<_ACEOF | |
35600 | /* confdefs.h. */ | |
35601 | _ACEOF | |
35602 | cat confdefs.h >>conftest.$ac_ext | |
35603 | cat >>conftest.$ac_ext <<_ACEOF | |
35604 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35605 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35606 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35607 | #define $ac_func innocuous_$ac_func | |
35608 | ||
a848cd7e SC |
35609 | /* System header to define __stub macros and hopefully few prototypes, |
35610 | which can conflict with char $ac_func (); below. | |
35611 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35612 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35613 | |
a848cd7e SC |
35614 | #ifdef __STDC__ |
35615 | # include <limits.h> | |
35616 | #else | |
35617 | # include <assert.h> | |
35618 | #endif | |
ac1cb8d3 VS |
35619 | |
35620 | #undef $ac_func | |
35621 | ||
a848cd7e SC |
35622 | /* Override any gcc2 internal prototype to avoid an error. */ |
35623 | #ifdef __cplusplus | |
35624 | extern "C" | |
35625 | { | |
35626 | #endif | |
35627 | /* We use char because int might match the return type of a gcc2 | |
35628 | builtin and then its argument prototype would still apply. */ | |
35629 | char $ac_func (); | |
35630 | /* The GNU C library defines this for functions which it implements | |
35631 | to always fail with ENOSYS. Some functions are actually named | |
35632 | something starting with __ and the normal name is an alias. */ | |
35633 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35634 | choke me | |
35635 | #else | |
35636 | char (*f) () = $ac_func; | |
35637 | #endif | |
35638 | #ifdef __cplusplus | |
35639 | } | |
35640 | #endif | |
35641 | ||
35642 | int | |
35643 | main () | |
35644 | { | |
35645 | return f != $ac_func; | |
35646 | ; | |
35647 | return 0; | |
35648 | } | |
35649 | _ACEOF | |
35650 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35651 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35652 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35653 | ac_status=$? |
ac1cb8d3 VS |
35654 | grep -v '^ *+' conftest.er1 >conftest.err |
35655 | rm -f conftest.er1 | |
35656 | cat conftest.err >&5 | |
a848cd7e SC |
35657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35658 | (exit $ac_status); } && | |
0093c2fc | 35659 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35661 | (eval $ac_try) 2>&5 | |
35662 | ac_status=$? | |
35663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35664 | (exit $ac_status); }; } && | |
35665 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35667 | (eval $ac_try) 2>&5 | |
35668 | ac_status=$? | |
35669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35670 | (exit $ac_status); }; }; then | |
35671 | eval "$as_ac_var=yes" | |
35672 | else | |
35673 | echo "$as_me: failed program was:" >&5 | |
35674 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35675 | ||
35676 | eval "$as_ac_var=no" | |
35677 | fi | |
ac1cb8d3 VS |
35678 | rm -f conftest.err conftest.$ac_objext \ |
35679 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35680 | fi |
35681 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35682 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35683 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35684 | cat >>confdefs.h <<_ACEOF | |
35685 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35686 | _ACEOF | |
35687 | cat >>confdefs.h <<\_ACEOF | |
35688 | #define HAVE_INET_ADDR 1 | |
35689 | _ACEOF | |
35690 | ||
35691 | else | |
35692 | ||
35693 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
35694 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
35695 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
35696 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35697 | else | |
35698 | ac_check_lib_save_LIBS=$LIBS | |
35699 | LIBS="-lnsl $LIBS" | |
35700 | cat >conftest.$ac_ext <<_ACEOF | |
35701 | /* confdefs.h. */ | |
35702 | _ACEOF | |
35703 | cat confdefs.h >>conftest.$ac_ext | |
35704 | cat >>conftest.$ac_ext <<_ACEOF | |
35705 | /* end confdefs.h. */ | |
35706 | ||
35707 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35708 | #ifdef __cplusplus | |
35709 | extern "C" | |
35710 | #endif | |
35711 | /* We use char because int might match the return type of a gcc2 | |
35712 | builtin and then its argument prototype would still apply. */ | |
35713 | char inet_addr (); | |
35714 | int | |
35715 | main () | |
35716 | { | |
35717 | inet_addr (); | |
35718 | ; | |
35719 | return 0; | |
35720 | } | |
35721 | _ACEOF | |
35722 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35723 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35724 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35725 | ac_status=$? |
ac1cb8d3 VS |
35726 | grep -v '^ *+' conftest.er1 >conftest.err |
35727 | rm -f conftest.er1 | |
35728 | cat conftest.err >&5 | |
a848cd7e SC |
35729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35730 | (exit $ac_status); } && | |
0093c2fc | 35731 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35733 | (eval $ac_try) 2>&5 | |
35734 | ac_status=$? | |
35735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35736 | (exit $ac_status); }; } && | |
35737 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35739 | (eval $ac_try) 2>&5 | |
35740 | ac_status=$? | |
35741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35742 | (exit $ac_status); }; }; then | |
35743 | ac_cv_lib_nsl_inet_addr=yes | |
35744 | else | |
35745 | echo "$as_me: failed program was:" >&5 | |
35746 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35747 | ||
35748 | ac_cv_lib_nsl_inet_addr=no | |
35749 | fi | |
ac1cb8d3 VS |
35750 | rm -f conftest.err conftest.$ac_objext \ |
35751 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35752 | LIBS=$ac_check_lib_save_LIBS |
35753 | fi | |
35754 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
35755 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
35756 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
35757 | INET_LINK="nsl" | |
35758 | else | |
35759 | ||
35760 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
35761 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
35762 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
35763 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35764 | else | |
35765 | ac_check_lib_save_LIBS=$LIBS | |
35766 | LIBS="-lresolv $LIBS" | |
35767 | cat >conftest.$ac_ext <<_ACEOF | |
35768 | /* confdefs.h. */ | |
35769 | _ACEOF | |
35770 | cat confdefs.h >>conftest.$ac_ext | |
35771 | cat >>conftest.$ac_ext <<_ACEOF | |
35772 | /* end confdefs.h. */ | |
35773 | ||
35774 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35775 | #ifdef __cplusplus | |
35776 | extern "C" | |
35777 | #endif | |
35778 | /* We use char because int might match the return type of a gcc2 | |
35779 | builtin and then its argument prototype would still apply. */ | |
35780 | char inet_addr (); | |
35781 | int | |
35782 | main () | |
35783 | { | |
35784 | inet_addr (); | |
35785 | ; | |
35786 | return 0; | |
35787 | } | |
35788 | _ACEOF | |
35789 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35790 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35791 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35792 | ac_status=$? |
ac1cb8d3 VS |
35793 | grep -v '^ *+' conftest.er1 >conftest.err |
35794 | rm -f conftest.er1 | |
35795 | cat conftest.err >&5 | |
a848cd7e SC |
35796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35797 | (exit $ac_status); } && | |
0093c2fc | 35798 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35800 | (eval $ac_try) 2>&5 | |
35801 | ac_status=$? | |
35802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35803 | (exit $ac_status); }; } && | |
35804 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35806 | (eval $ac_try) 2>&5 | |
35807 | ac_status=$? | |
35808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35809 | (exit $ac_status); }; }; then | |
35810 | ac_cv_lib_resolv_inet_addr=yes | |
35811 | else | |
35812 | echo "$as_me: failed program was:" >&5 | |
35813 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35814 | ||
35815 | ac_cv_lib_resolv_inet_addr=no | |
35816 | fi | |
ac1cb8d3 VS |
35817 | rm -f conftest.err conftest.$ac_objext \ |
35818 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35819 | LIBS=$ac_check_lib_save_LIBS |
35820 | fi | |
35821 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
35822 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
35823 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
35824 | INET_LINK="resolv" | |
35825 | else | |
35826 | ||
35827 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
35828 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
35829 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
35830 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35831 | else | |
35832 | ac_check_lib_save_LIBS=$LIBS | |
35833 | LIBS="-lsocket $LIBS" | |
35834 | cat >conftest.$ac_ext <<_ACEOF | |
35835 | /* confdefs.h. */ | |
35836 | _ACEOF | |
35837 | cat confdefs.h >>conftest.$ac_ext | |
35838 | cat >>conftest.$ac_ext <<_ACEOF | |
35839 | /* end confdefs.h. */ | |
35840 | ||
35841 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35842 | #ifdef __cplusplus | |
35843 | extern "C" | |
35844 | #endif | |
35845 | /* We use char because int might match the return type of a gcc2 | |
35846 | builtin and then its argument prototype would still apply. */ | |
35847 | char inet_addr (); | |
35848 | int | |
35849 | main () | |
35850 | { | |
35851 | inet_addr (); | |
35852 | ; | |
35853 | return 0; | |
35854 | } | |
35855 | _ACEOF | |
35856 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35857 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35858 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35859 | ac_status=$? |
ac1cb8d3 VS |
35860 | grep -v '^ *+' conftest.er1 >conftest.err |
35861 | rm -f conftest.er1 | |
35862 | cat conftest.err >&5 | |
a848cd7e SC |
35863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35864 | (exit $ac_status); } && | |
0093c2fc | 35865 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35867 | (eval $ac_try) 2>&5 | |
35868 | ac_status=$? | |
35869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35870 | (exit $ac_status); }; } && | |
35871 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35873 | (eval $ac_try) 2>&5 | |
35874 | ac_status=$? | |
35875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35876 | (exit $ac_status); }; }; then | |
35877 | ac_cv_lib_socket_inet_addr=yes | |
35878 | else | |
35879 | echo "$as_me: failed program was:" >&5 | |
35880 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35881 | ||
35882 | ac_cv_lib_socket_inet_addr=no | |
35883 | fi | |
ac1cb8d3 VS |
35884 | rm -f conftest.err conftest.$ac_objext \ |
35885 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35886 | LIBS=$ac_check_lib_save_LIBS |
35887 | fi | |
35888 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
35889 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
35890 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
35891 | INET_LINK="socket" | |
35892 | ||
35893 | fi | |
35894 | ||
35895 | ||
35896 | ||
35897 | fi | |
35898 | ||
35899 | ||
35900 | ||
35901 | fi | |
35902 | ||
35903 | ||
35904 | ||
35905 | fi | |
35906 | done | |
35907 | ||
35908 | ||
35909 | ||
35910 | for ac_func in inet_aton | |
35911 | do | |
35912 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35913 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35914 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35915 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35916 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35917 | else | |
35918 | cat >conftest.$ac_ext <<_ACEOF | |
35919 | /* confdefs.h. */ | |
35920 | _ACEOF | |
35921 | cat confdefs.h >>conftest.$ac_ext | |
35922 | cat >>conftest.$ac_ext <<_ACEOF | |
35923 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35924 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35925 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35926 | #define $ac_func innocuous_$ac_func | |
35927 | ||
a848cd7e SC |
35928 | /* System header to define __stub macros and hopefully few prototypes, |
35929 | which can conflict with char $ac_func (); below. | |
35930 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35931 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35932 | |
a848cd7e SC |
35933 | #ifdef __STDC__ |
35934 | # include <limits.h> | |
35935 | #else | |
35936 | # include <assert.h> | |
35937 | #endif | |
ac1cb8d3 VS |
35938 | |
35939 | #undef $ac_func | |
35940 | ||
a848cd7e SC |
35941 | /* Override any gcc2 internal prototype to avoid an error. */ |
35942 | #ifdef __cplusplus | |
35943 | extern "C" | |
35944 | { | |
35945 | #endif | |
35946 | /* We use char because int might match the return type of a gcc2 | |
35947 | builtin and then its argument prototype would still apply. */ | |
35948 | char $ac_func (); | |
35949 | /* The GNU C library defines this for functions which it implements | |
35950 | to always fail with ENOSYS. Some functions are actually named | |
35951 | something starting with __ and the normal name is an alias. */ | |
35952 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35953 | choke me | |
35954 | #else | |
35955 | char (*f) () = $ac_func; | |
35956 | #endif | |
35957 | #ifdef __cplusplus | |
35958 | } | |
35959 | #endif | |
35960 | ||
35961 | int | |
35962 | main () | |
35963 | { | |
35964 | return f != $ac_func; | |
35965 | ; | |
35966 | return 0; | |
35967 | } | |
35968 | _ACEOF | |
35969 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35970 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35971 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35972 | ac_status=$? |
ac1cb8d3 VS |
35973 | grep -v '^ *+' conftest.er1 >conftest.err |
35974 | rm -f conftest.er1 | |
35975 | cat conftest.err >&5 | |
a848cd7e SC |
35976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35977 | (exit $ac_status); } && | |
0093c2fc | 35978 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35980 | (eval $ac_try) 2>&5 | |
35981 | ac_status=$? | |
35982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35983 | (exit $ac_status); }; } && | |
35984 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35986 | (eval $ac_try) 2>&5 | |
35987 | ac_status=$? | |
35988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35989 | (exit $ac_status); }; }; then | |
35990 | eval "$as_ac_var=yes" | |
35991 | else | |
35992 | echo "$as_me: failed program was:" >&5 | |
35993 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35994 | ||
35995 | eval "$as_ac_var=no" | |
35996 | fi | |
ac1cb8d3 VS |
35997 | rm -f conftest.err conftest.$ac_objext \ |
35998 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35999 | fi |
36000 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36001 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36002 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36003 | cat >>confdefs.h <<_ACEOF | |
36004 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36005 | _ACEOF | |
36006 | cat >>confdefs.h <<\_ACEOF | |
36007 | #define HAVE_INET_ATON 1 | |
36008 | _ACEOF | |
36009 | ||
36010 | else | |
36011 | ||
36012 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
36013 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
36014 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
36015 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
36016 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36017 | else | |
36018 | ac_check_lib_save_LIBS=$LIBS | |
36019 | LIBS="-l$INET_LINK $LIBS" | |
36020 | cat >conftest.$ac_ext <<_ACEOF | |
36021 | /* confdefs.h. */ | |
36022 | _ACEOF | |
36023 | cat confdefs.h >>conftest.$ac_ext | |
36024 | cat >>conftest.$ac_ext <<_ACEOF | |
36025 | /* end confdefs.h. */ | |
36026 | ||
36027 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36028 | #ifdef __cplusplus | |
36029 | extern "C" | |
36030 | #endif | |
36031 | /* We use char because int might match the return type of a gcc2 | |
36032 | builtin and then its argument prototype would still apply. */ | |
36033 | char inet_aton (); | |
36034 | int | |
36035 | main () | |
36036 | { | |
36037 | inet_aton (); | |
36038 | ; | |
36039 | return 0; | |
36040 | } | |
36041 | _ACEOF | |
36042 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36043 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36044 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36045 | ac_status=$? |
ac1cb8d3 VS |
36046 | grep -v '^ *+' conftest.er1 >conftest.err |
36047 | rm -f conftest.er1 | |
36048 | cat conftest.err >&5 | |
a848cd7e SC |
36049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36050 | (exit $ac_status); } && | |
0093c2fc | 36051 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36053 | (eval $ac_try) 2>&5 | |
36054 | ac_status=$? | |
36055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36056 | (exit $ac_status); }; } && | |
36057 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36059 | (eval $ac_try) 2>&5 | |
36060 | ac_status=$? | |
36061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36062 | (exit $ac_status); }; }; then | |
36063 | eval "$as_ac_Lib=yes" | |
36064 | else | |
36065 | echo "$as_me: failed program was:" >&5 | |
36066 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36067 | ||
36068 | eval "$as_ac_Lib=no" | |
36069 | fi | |
ac1cb8d3 VS |
36070 | rm -f conftest.err conftest.$ac_objext \ |
36071 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36072 | LIBS=$ac_check_lib_save_LIBS |
36073 | fi | |
36074 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
36075 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
36076 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
36077 | cat >>confdefs.h <<\_ACEOF | |
36078 | #define HAVE_INET_ATON 1 | |
36079 | _ACEOF | |
36080 | ||
36081 | fi | |
36082 | ||
36083 | ||
36084 | fi | |
36085 | done | |
36086 | ||
36087 | ||
36088 | if test "x$INET_LINK" != "x"; then | |
36089 | cat >>confdefs.h <<\_ACEOF | |
36090 | #define HAVE_INET_ADDR 1 | |
36091 | _ACEOF | |
36092 | ||
36093 | INET_LINK=" -l$INET_LINK" | |
36094 | fi | |
36095 | ||
36096 | fi | |
36097 | ||
36098 | ||
36099 | ||
36100 | EXTRALIBS_ESD= | |
36101 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
36102 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
36103 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
36104 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36105 | else | |
36106 | ac_check_lib_save_LIBS=$LIBS | |
36107 | LIBS="-lesd $LIBS" | |
36108 | cat >conftest.$ac_ext <<_ACEOF | |
36109 | /* confdefs.h. */ | |
36110 | _ACEOF | |
36111 | cat confdefs.h >>conftest.$ac_ext | |
36112 | cat >>conftest.$ac_ext <<_ACEOF | |
36113 | /* end confdefs.h. */ | |
36114 | ||
36115 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36116 | #ifdef __cplusplus | |
36117 | extern "C" | |
36118 | #endif | |
36119 | /* We use char because int might match the return type of a gcc2 | |
36120 | builtin and then its argument prototype would still apply. */ | |
36121 | char esd_close (); | |
36122 | int | |
36123 | main () | |
36124 | { | |
36125 | esd_close (); | |
36126 | ; | |
36127 | return 0; | |
36128 | } | |
36129 | _ACEOF | |
36130 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36131 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36132 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36133 | ac_status=$? |
ac1cb8d3 VS |
36134 | grep -v '^ *+' conftest.er1 >conftest.err |
36135 | rm -f conftest.er1 | |
36136 | cat conftest.err >&5 | |
a848cd7e SC |
36137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36138 | (exit $ac_status); } && | |
0093c2fc | 36139 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36141 | (eval $ac_try) 2>&5 | |
36142 | ac_status=$? | |
36143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36144 | (exit $ac_status); }; } && | |
36145 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36147 | (eval $ac_try) 2>&5 | |
36148 | ac_status=$? | |
36149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36150 | (exit $ac_status); }; }; then | |
36151 | ac_cv_lib_esd_esd_close=yes | |
36152 | else | |
36153 | echo "$as_me: failed program was:" >&5 | |
36154 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36155 | ||
36156 | ac_cv_lib_esd_esd_close=no | |
36157 | fi | |
ac1cb8d3 VS |
36158 | rm -f conftest.err conftest.$ac_objext \ |
36159 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36160 | LIBS=$ac_check_lib_save_LIBS |
36161 | fi | |
36162 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
36163 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
36164 | if test $ac_cv_lib_esd_esd_close = yes; then | |
36165 | ||
36166 | ||
36167 | for ac_header in esd.h | |
36168 | do | |
36169 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
36170 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36171 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36172 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36173 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36175 | fi | |
36176 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36177 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36178 | else | |
36179 | # Is the header compilable? | |
36180 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
36181 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
36182 | cat >conftest.$ac_ext <<_ACEOF | |
36183 | /* confdefs.h. */ | |
36184 | _ACEOF | |
36185 | cat confdefs.h >>conftest.$ac_ext | |
36186 | cat >>conftest.$ac_ext <<_ACEOF | |
36187 | /* end confdefs.h. */ | |
36188 | $ac_includes_default | |
36189 | #include <$ac_header> | |
36190 | _ACEOF | |
36191 | rm -f conftest.$ac_objext | |
36192 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36193 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36194 | ac_status=$? |
ac1cb8d3 VS |
36195 | grep -v '^ *+' conftest.er1 >conftest.err |
36196 | rm -f conftest.er1 | |
36197 | cat conftest.err >&5 | |
a848cd7e SC |
36198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36199 | (exit $ac_status); } && | |
0093c2fc | 36200 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
36206 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36208 | (eval $ac_try) 2>&5 | |
36209 | ac_status=$? | |
36210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36211 | (exit $ac_status); }; }; then | |
36212 | ac_header_compiler=yes | |
36213 | else | |
36214 | echo "$as_me: failed program was:" >&5 | |
36215 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36216 | ||
36217 | ac_header_compiler=no | |
36218 | fi | |
ac1cb8d3 | 36219 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36220 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
36221 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
36222 | ||
36223 | # Is the header present? | |
36224 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
36225 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
36226 | cat >conftest.$ac_ext <<_ACEOF | |
36227 | /* confdefs.h. */ | |
36228 | _ACEOF | |
36229 | cat confdefs.h >>conftest.$ac_ext | |
36230 | cat >>conftest.$ac_ext <<_ACEOF | |
36231 | /* end confdefs.h. */ | |
36232 | #include <$ac_header> | |
36233 | _ACEOF | |
36234 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
36235 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
36236 | ac_status=$? | |
36237 | grep -v '^ *+' conftest.er1 >conftest.err | |
36238 | rm -f conftest.er1 | |
36239 | cat conftest.err >&5 | |
36240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36241 | (exit $ac_status); } >/dev/null; then | |
36242 | if test -s conftest.err; then | |
36243 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 36244 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
36245 | else |
36246 | ac_cpp_err= | |
36247 | fi | |
36248 | else | |
36249 | ac_cpp_err=yes | |
36250 | fi | |
36251 | if test -z "$ac_cpp_err"; then | |
36252 | ac_header_preproc=yes | |
36253 | else | |
36254 | echo "$as_me: failed program was:" >&5 | |
36255 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36256 | ||
36257 | ac_header_preproc=no | |
36258 | fi | |
36259 | rm -f conftest.err conftest.$ac_ext | |
36260 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
36261 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
36262 | ||
36263 | # So? What about this header? | |
ac1cb8d3 VS |
36264 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
36265 | yes:no: ) | |
a848cd7e SC |
36266 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
36267 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
36268 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
36269 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
36270 | ac_header_preproc=yes | |
a848cd7e | 36271 | ;; |
ac1cb8d3 | 36272 | no:yes:* ) |
a848cd7e SC |
36273 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
36274 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
36275 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
36276 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
36277 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
36278 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
36279 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
36280 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
36281 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
36282 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
36283 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
36284 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
36285 | ( |
36286 | cat <<\_ASBOX | |
ac1cb8d3 VS |
36287 | ## ----------------------------------------- ## |
36288 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
36289 | ## ----------------------------------------- ## | |
a848cd7e SC |
36290 | _ASBOX |
36291 | ) | | |
36292 | sed "s/^/$as_me: WARNING: /" >&2 | |
36293 | ;; | |
36294 | esac | |
36295 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36296 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36297 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36298 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36299 | else | |
ac1cb8d3 | 36300 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
36301 | fi |
36302 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36303 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36304 | ||
36305 | fi | |
36306 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
36307 | cat >>confdefs.h <<_ACEOF | |
36308 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
36309 | _ACEOF | |
36310 | ||
36311 | EXTRALIBS_ESD="-lesd" | |
36312 | ||
36313 | fi | |
36314 | ||
36315 | done | |
36316 | ||
36317 | ||
36318 | fi | |
36319 | ||
36320 | ||
36321 | ||
36322 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 | |
36323 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
36324 | cat >conftest.$ac_ext <<_ACEOF | |
36325 | /* confdefs.h. */ | |
36326 | _ACEOF | |
36327 | cat confdefs.h >>conftest.$ac_ext | |
36328 | cat >>conftest.$ac_ext <<_ACEOF | |
36329 | /* end confdefs.h. */ | |
36330 | #ifdef __linux__ | |
36331 | #include <linux/cdrom.h> | |
36332 | #else | |
36333 | /* For Solaris */ | |
36334 | #include <sys/cdio.h> | |
36335 | #endif | |
36336 | ||
36337 | int | |
36338 | main () | |
36339 | { | |
36340 | struct cdrom_tocentry entry, old_entry; | |
36341 | ; | |
36342 | return 0; | |
36343 | } | |
36344 | _ACEOF | |
36345 | rm -f conftest.$ac_objext | |
36346 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36347 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36348 | ac_status=$? |
ac1cb8d3 VS |
36349 | grep -v '^ *+' conftest.er1 >conftest.err |
36350 | rm -f conftest.er1 | |
36351 | cat conftest.err >&5 | |
a848cd7e SC |
36352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36353 | (exit $ac_status); } && | |
0093c2fc | 36354 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36356 | (eval $ac_try) 2>&5 | |
36357 | ac_status=$? | |
36358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36359 | (exit $ac_status); }; } && | |
36360 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36362 | (eval $ac_try) 2>&5 | |
36363 | ac_status=$? | |
36364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36365 | (exit $ac_status); }; }; then | |
36366 | echo "$as_me:$LINENO: result: yes" >&5 | |
36367 | echo "${ECHO_T}yes" >&6 | |
36368 | cat >>confdefs.h <<\_ACEOF | |
36369 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
36370 | _ACEOF | |
36371 | ||
36372 | else | |
36373 | echo "$as_me: failed program was:" >&5 | |
36374 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36375 | ||
36376 | echo "$as_me:$LINENO: result: no" >&5 | |
36377 | echo "${ECHO_T}no" >&6 | |
36378 | fi | |
ac1cb8d3 | 36379 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36380 | |
36381 | ||
36382 | cat >confcache <<\_ACEOF | |
36383 | # This file is a shell script that caches the results of configure | |
36384 | # tests run on this system so they can be shared between configure | |
36385 | # scripts and configure runs, see configure's option --config-cache. | |
36386 | # It is not useful on other systems. If it contains results you don't | |
36387 | # want to keep, you may remove or edit it. | |
36388 | # | |
36389 | # config.status only pays attention to the cache file if you give it | |
36390 | # the --recheck option to rerun configure. | |
36391 | # | |
36392 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
36393 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
36394 | # following values. | |
36395 | ||
36396 | _ACEOF | |
36397 | ||
36398 | # The following way of writing the cache mishandles newlines in values, | |
36399 | # but we know of no workaround that is simple, portable, and efficient. | |
36400 | # So, don't put newlines in cache variables' values. | |
36401 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
36402 | # and sets the high bit in the cache file unless we assign to the vars. | |
36403 | { | |
36404 | (set) 2>&1 | | |
36405 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
36406 | *ac_space=\ *) | |
36407 | # `set' does not quote correctly, so add quotes (double-quote | |
36408 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
36409 | sed -n \ | |
ac1cb8d3 VS |
36410 | "s/'/'\\\\''/g; |
36411 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
36412 | ;; |
36413 | *) | |
36414 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
36415 | sed -n \ | |
ac1cb8d3 | 36416 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
36417 | ;; |
36418 | esac; | |
36419 | } | | |
36420 | sed ' | |
36421 | t clear | |
36422 | : clear | |
36423 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
36424 | t end | |
36425 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
36426 | : end' >>confcache | |
36427 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
36428 | if test -w $cache_file; then | |
36429 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
36430 | cat confcache >$cache_file | |
36431 | else | |
36432 | echo "not updating unwritable cache $cache_file" | |
36433 | fi | |
36434 | fi | |
36435 | rm -f confcache | |
36436 | ||
36437 | ||
36438 | CPP_MT_FLAG= | |
36439 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
36440 | ||
36441 | ||
36442 | THREADS_LINK= | |
36443 | THREADS_CFLAGS= | |
36444 | ||
36445 | if test "$wxUSE_THREADS" = "yes" ; then | |
36446 | if test "$USE_BEOS" = 1; then | |
36447 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 | |
36448 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
36449 | wxUSE_THREADS="no" | |
36450 | fi | |
36451 | fi | |
36452 | ||
36453 | if test "$wxUSE_THREADS" = "yes" ; then | |
36454 | ||
36455 | ||
36456 | THREAD_OPTS="-pthread" | |
36457 | case "${host}" in | |
36458 | *-*-solaris2* | *-*-sunos4* ) | |
36459 | if test "x$GCC" = "xyes"; then | |
36460 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
36461 | else | |
36462 | THREAD_OPTS="-mt $THREAD_OPTS" | |
36463 | fi | |
36464 | ;; | |
36465 | *-*-freebsd*) | |
36466 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
36467 | ;; | |
36468 | *-*-darwin* | *-*-cygwin* ) | |
36469 | THREAD_OPTS="" | |
36470 | ;; | |
36471 | *-*-aix*) | |
36472 | THREAD_OPTS="pthreads" | |
36473 | ;; | |
36474 | *-hp-hpux* ) | |
00421666 MW |
36475 | if test "x$GCC" = "xyes"; then |
36476 | $CXX -dumpspecs | grep 'pthread:' >/dev/null || | |
36477 | THREAD_OPTS="" | |
36478 | else | |
0093c2fc | 36479 | THREAD_OPTS="-mt" |
a848cd7e SC |
36480 | fi |
36481 | ;; | |
36482 | ||
36483 | *-*-irix* ) | |
36484 | if test "x$GCC" = "xyes"; then | |
36485 | THREAD_OPTS="" | |
36486 | fi | |
36487 | ;; | |
36488 | ||
36489 | *-*-*UnixWare*) | |
36490 | if test "x$GCC" != "xyes"; then | |
36491 | THREAD_OPTS="-Ethread" | |
36492 | fi | |
36493 | ;; | |
36494 | esac | |
36495 | ||
36496 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
36497 | ||
36498 | THREADS_OK=no | |
36499 | for flag in $THREAD_OPTS; do | |
36500 | case $flag in | |
36501 | none) | |
36502 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 | |
36503 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
36504 | ;; | |
36505 | ||
36506 | -*) | |
36507 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 | |
36508 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
36509 | THREADS_CFLAGS="$flag" | |
36510 | ;; | |
36511 | ||
36512 | *) | |
36513 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 | |
36514 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
36515 | THREADS_LINK="-l$flag" | |
36516 | ;; | |
36517 | esac | |
36518 | ||
36519 | save_LIBS="$LIBS" | |
36520 | save_CFLAGS="$CFLAGS" | |
36521 | LIBS="$THREADS_LINK $LIBS" | |
36522 | CFLAGS="$THREADS_CFLAGS $CFLAGS" | |
36523 | ||
36524 | cat >conftest.$ac_ext <<_ACEOF | |
36525 | /* confdefs.h. */ | |
36526 | _ACEOF | |
36527 | cat confdefs.h >>conftest.$ac_ext | |
36528 | cat >>conftest.$ac_ext <<_ACEOF | |
36529 | /* end confdefs.h. */ | |
36530 | #include <pthread.h> | |
36531 | int | |
36532 | main () | |
36533 | { | |
36534 | pthread_create(0,0,0,0); | |
36535 | ; | |
36536 | return 0; | |
36537 | } | |
36538 | _ACEOF | |
36539 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36540 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36541 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36542 | ac_status=$? |
ac1cb8d3 VS |
36543 | grep -v '^ *+' conftest.er1 >conftest.err |
36544 | rm -f conftest.er1 | |
36545 | cat conftest.err >&5 | |
a848cd7e SC |
36546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36547 | (exit $ac_status); } && | |
0093c2fc | 36548 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36550 | (eval $ac_try) 2>&5 | |
36551 | ac_status=$? | |
36552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36553 | (exit $ac_status); }; } && | |
36554 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36556 | (eval $ac_try) 2>&5 | |
36557 | ac_status=$? | |
36558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36559 | (exit $ac_status); }; }; then | |
36560 | THREADS_OK=yes | |
36561 | else | |
36562 | echo "$as_me: failed program was:" >&5 | |
36563 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36564 | ||
36565 | fi | |
ac1cb8d3 VS |
36566 | rm -f conftest.err conftest.$ac_objext \ |
36567 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36568 | |
36569 | LIBS="$save_LIBS" | |
36570 | CFLAGS="$save_CFLAGS" | |
36571 | ||
36572 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 | |
36573 | echo "${ECHO_T}$THREADS_OK" >&6 | |
36574 | if test "x$THREADS_OK" = "xyes"; then | |
36575 | break; | |
36576 | fi | |
36577 | ||
36578 | THREADS_LINK="" | |
36579 | THREADS_CFLAGS="" | |
36580 | done | |
36581 | ||
36582 | if test "x$THREADS_OK" != "xyes"; then | |
36583 | wxUSE_THREADS=no | |
36584 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 | |
36585 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
36586 | else | |
36587 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" | |
36588 | LIBS="$THREADS_LINK $LIBS" | |
36589 | ||
36590 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 | |
36591 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
36592 | flag=no | |
36593 | case "${host}" in | |
36594 | *-aix*) | |
36595 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
36596 | flag="-D_THREAD_SAFE" | |
36597 | ;; | |
36598 | *-freebsd*) | |
36599 | flag="-D_THREAD_SAFE" | |
36600 | ;; | |
36601 | *-hp-hpux* ) | |
36602 | flag="-D_REENTRANT" | |
36603 | if test "x$GCC" != "xyes"; then | |
36604 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
36605 | fi | |
36606 | ;; | |
36607 | *solaris* | alpha*-osf*) | |
36608 | flag="-D_REENTRANT" | |
36609 | ;; | |
36610 | esac | |
36611 | echo "$as_me:$LINENO: result: ${flag}" >&5 | |
36612 | echo "${ECHO_T}${flag}" >&6 | |
36613 | if test "x$flag" != xno; then | |
36614 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" | |
36615 | fi | |
36616 | ||
36617 | if test "x$THREADS_CFLAGS" != "x"; then | |
36618 | CFLAGS="$CFLAGS $THREADS_CFLAGS" | |
36619 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" | |
36620 | fi | |
36621 | fi | |
36622 | fi | |
36623 | ||
36624 | if test "$wxUSE_THREADS" = "yes" ; then | |
36625 | ||
36626 | for ac_func in thr_setconcurrency | |
36627 | do | |
36628 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36629 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36630 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36631 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36632 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36633 | else | |
36634 | cat >conftest.$ac_ext <<_ACEOF | |
36635 | /* confdefs.h. */ | |
36636 | _ACEOF | |
36637 | cat confdefs.h >>conftest.$ac_ext | |
36638 | cat >>conftest.$ac_ext <<_ACEOF | |
36639 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36640 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36641 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36642 | #define $ac_func innocuous_$ac_func | |
36643 | ||
a848cd7e SC |
36644 | /* System header to define __stub macros and hopefully few prototypes, |
36645 | which can conflict with char $ac_func (); below. | |
36646 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36647 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36648 | |
a848cd7e SC |
36649 | #ifdef __STDC__ |
36650 | # include <limits.h> | |
36651 | #else | |
36652 | # include <assert.h> | |
36653 | #endif | |
ac1cb8d3 VS |
36654 | |
36655 | #undef $ac_func | |
36656 | ||
a848cd7e SC |
36657 | /* Override any gcc2 internal prototype to avoid an error. */ |
36658 | #ifdef __cplusplus | |
36659 | extern "C" | |
36660 | { | |
36661 | #endif | |
36662 | /* We use char because int might match the return type of a gcc2 | |
36663 | builtin and then its argument prototype would still apply. */ | |
36664 | char $ac_func (); | |
36665 | /* The GNU C library defines this for functions which it implements | |
36666 | to always fail with ENOSYS. Some functions are actually named | |
36667 | something starting with __ and the normal name is an alias. */ | |
36668 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36669 | choke me | |
36670 | #else | |
36671 | char (*f) () = $ac_func; | |
36672 | #endif | |
36673 | #ifdef __cplusplus | |
36674 | } | |
36675 | #endif | |
36676 | ||
36677 | int | |
36678 | main () | |
36679 | { | |
36680 | return f != $ac_func; | |
36681 | ; | |
36682 | return 0; | |
36683 | } | |
36684 | _ACEOF | |
36685 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36686 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36687 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36688 | ac_status=$? |
ac1cb8d3 VS |
36689 | grep -v '^ *+' conftest.er1 >conftest.err |
36690 | rm -f conftest.er1 | |
36691 | cat conftest.err >&5 | |
a848cd7e SC |
36692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36693 | (exit $ac_status); } && | |
0093c2fc | 36694 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36696 | (eval $ac_try) 2>&5 | |
36697 | ac_status=$? | |
36698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36699 | (exit $ac_status); }; } && | |
36700 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36702 | (eval $ac_try) 2>&5 | |
36703 | ac_status=$? | |
36704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36705 | (exit $ac_status); }; }; then | |
36706 | eval "$as_ac_var=yes" | |
36707 | else | |
36708 | echo "$as_me: failed program was:" >&5 | |
36709 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36710 | ||
36711 | eval "$as_ac_var=no" | |
36712 | fi | |
ac1cb8d3 VS |
36713 | rm -f conftest.err conftest.$ac_objext \ |
36714 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36715 | fi |
36716 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36717 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36718 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36719 | cat >>confdefs.h <<_ACEOF | |
36720 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36721 | _ACEOF | |
36722 | ||
36723 | fi | |
36724 | done | |
36725 | ||
36726 | ||
6ebeb4c7 VZ |
36727 | echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5 |
36728 | echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6 | |
36729 | if test "${wx_cv_func_pthread_cleanup+set}" = set; then | |
36730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36731 | else | |
36732 | ||
36733 | cat >conftest.$ac_ext <<_ACEOF | |
36734 | /* confdefs.h. */ | |
36735 | _ACEOF | |
36736 | cat confdefs.h >>conftest.$ac_ext | |
36737 | cat >>conftest.$ac_ext <<_ACEOF | |
36738 | /* end confdefs.h. */ | |
36739 | #include <pthread.h> | |
36740 | void ThreadCleanupFunc(void *p); | |
36741 | ||
36742 | int | |
36743 | main () | |
36744 | { | |
36745 | ||
36746 | void *p; | |
36747 | pthread_cleanup_push(ThreadCleanupFunc, p); | |
36748 | pthread_cleanup_pop(0); | |
36749 | ||
36750 | ; | |
36751 | return 0; | |
36752 | } | |
36753 | _ACEOF | |
36754 | rm -f conftest.$ac_objext | |
36755 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
36756 | (eval $ac_compile) 2>conftest.er1 | |
36757 | ac_status=$? | |
36758 | grep -v '^ *+' conftest.er1 >conftest.err | |
36759 | rm -f conftest.er1 | |
36760 | cat conftest.err >&5 | |
36761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36762 | (exit $ac_status); } && | |
0093c2fc | 36763 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6ebeb4c7 VZ |
36764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36765 | (eval $ac_try) 2>&5 | |
36766 | ac_status=$? | |
36767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36768 | (exit $ac_status); }; } && | |
36769 | { ac_try='test -s conftest.$ac_objext' | |
36770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36771 | (eval $ac_try) 2>&5 | |
36772 | ac_status=$? | |
36773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36774 | (exit $ac_status); }; }; then | |
36775 | ||
36776 | wx_cv_func_pthread_cleanup=yes | |
36777 | ||
36778 | else | |
36779 | echo "$as_me: failed program was:" >&5 | |
36780 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36781 | ||
36782 | ||
36783 | wx_cv_func_pthread_cleanup=no | |
36784 | ||
36785 | ||
36786 | fi | |
36787 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
36788 | ||
36789 | fi | |
36790 | echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5 | |
36791 | echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6 | |
36792 | if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then | |
36793 | cat >>confdefs.h <<\_ACEOF | |
36794 | #define wxHAVE_PTHREAD_CLEANUP 1 | |
36795 | _ACEOF | |
36796 | ||
36797 | fi | |
36798 | ||
a848cd7e SC |
36799 | |
36800 | for ac_header in sched.h | |
36801 | do | |
36802 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
36803 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36804 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36805 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36806 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36807 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36808 | fi | |
36809 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36810 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36811 | else | |
36812 | # Is the header compilable? | |
36813 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
36814 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
36815 | cat >conftest.$ac_ext <<_ACEOF | |
36816 | /* confdefs.h. */ | |
36817 | _ACEOF | |
36818 | cat confdefs.h >>conftest.$ac_ext | |
36819 | cat >>conftest.$ac_ext <<_ACEOF | |
36820 | /* end confdefs.h. */ | |
36821 | $ac_includes_default | |
36822 | #include <$ac_header> | |
36823 | _ACEOF | |
36824 | rm -f conftest.$ac_objext | |
36825 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36826 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36827 | ac_status=$? |
ac1cb8d3 VS |
36828 | grep -v '^ *+' conftest.er1 >conftest.err |
36829 | rm -f conftest.er1 | |
36830 | cat conftest.err >&5 | |
a848cd7e SC |
36831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36832 | (exit $ac_status); } && | |
0093c2fc | 36833 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36835 | (eval $ac_try) 2>&5 | |
36836 | ac_status=$? | |
36837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36838 | (exit $ac_status); }; } && | |
36839 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36841 | (eval $ac_try) 2>&5 | |
36842 | ac_status=$? | |
36843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36844 | (exit $ac_status); }; }; then | |
36845 | ac_header_compiler=yes | |
36846 | else | |
36847 | echo "$as_me: failed program was:" >&5 | |
36848 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36849 | ||
36850 | ac_header_compiler=no | |
36851 | fi | |
ac1cb8d3 | 36852 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36853 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
36854 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
36855 | ||
36856 | # Is the header present? | |
36857 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
36858 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
36859 | cat >conftest.$ac_ext <<_ACEOF | |
36860 | /* confdefs.h. */ | |
36861 | _ACEOF | |
36862 | cat confdefs.h >>conftest.$ac_ext | |
36863 | cat >>conftest.$ac_ext <<_ACEOF | |
36864 | /* end confdefs.h. */ | |
36865 | #include <$ac_header> | |
36866 | _ACEOF | |
36867 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
36868 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
36869 | ac_status=$? | |
36870 | grep -v '^ *+' conftest.er1 >conftest.err | |
36871 | rm -f conftest.er1 | |
36872 | cat conftest.err >&5 | |
36873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36874 | (exit $ac_status); } >/dev/null; then | |
36875 | if test -s conftest.err; then | |
36876 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 36877 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
36878 | else |
36879 | ac_cpp_err= | |
36880 | fi | |
36881 | else | |
36882 | ac_cpp_err=yes | |
36883 | fi | |
36884 | if test -z "$ac_cpp_err"; then | |
36885 | ac_header_preproc=yes | |
36886 | else | |
36887 | echo "$as_me: failed program was:" >&5 | |
36888 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36889 | ||
36890 | ac_header_preproc=no | |
36891 | fi | |
36892 | rm -f conftest.err conftest.$ac_ext | |
36893 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
36894 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
36895 | ||
36896 | # So? What about this header? | |
ac1cb8d3 VS |
36897 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
36898 | yes:no: ) | |
a848cd7e SC |
36899 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
36900 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
36901 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
36902 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
36903 | ac_header_preproc=yes | |
a848cd7e | 36904 | ;; |
ac1cb8d3 | 36905 | no:yes:* ) |
a848cd7e SC |
36906 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
36907 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
36908 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
36909 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
36910 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
36911 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
36912 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
36913 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
36914 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
36915 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
36916 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
36917 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
36918 | ( |
36919 | cat <<\_ASBOX | |
ac1cb8d3 VS |
36920 | ## ----------------------------------------- ## |
36921 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
36922 | ## ----------------------------------------- ## | |
a848cd7e SC |
36923 | _ASBOX |
36924 | ) | | |
36925 | sed "s/^/$as_me: WARNING: /" >&2 | |
36926 | ;; | |
36927 | esac | |
36928 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36929 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36930 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36932 | else | |
ac1cb8d3 | 36933 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
36934 | fi |
36935 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36936 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36937 | ||
36938 | fi | |
36939 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
36940 | cat >>confdefs.h <<_ACEOF | |
36941 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
36942 | _ACEOF | |
36943 | ||
36944 | fi | |
36945 | ||
36946 | done | |
36947 | ||
36948 | if test "$ac_cv_header_sched_h" = "yes"; then | |
36949 | echo "$as_me:$LINENO: checking for sched_yield" >&5 | |
36950 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
36951 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
36952 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36953 | else | |
36954 | cat >conftest.$ac_ext <<_ACEOF | |
36955 | /* confdefs.h. */ | |
36956 | _ACEOF | |
36957 | cat confdefs.h >>conftest.$ac_ext | |
36958 | cat >>conftest.$ac_ext <<_ACEOF | |
36959 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36960 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
36961 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36962 | #define sched_yield innocuous_sched_yield | |
36963 | ||
a848cd7e SC |
36964 | /* System header to define __stub macros and hopefully few prototypes, |
36965 | which can conflict with char sched_yield (); below. | |
36966 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36967 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36968 | |
a848cd7e SC |
36969 | #ifdef __STDC__ |
36970 | # include <limits.h> | |
36971 | #else | |
36972 | # include <assert.h> | |
36973 | #endif | |
ac1cb8d3 VS |
36974 | |
36975 | #undef sched_yield | |
36976 | ||
a848cd7e SC |
36977 | /* Override any gcc2 internal prototype to avoid an error. */ |
36978 | #ifdef __cplusplus | |
36979 | extern "C" | |
36980 | { | |
36981 | #endif | |
36982 | /* We use char because int might match the return type of a gcc2 | |
36983 | builtin and then its argument prototype would still apply. */ | |
36984 | char sched_yield (); | |
36985 | /* The GNU C library defines this for functions which it implements | |
36986 | to always fail with ENOSYS. Some functions are actually named | |
36987 | something starting with __ and the normal name is an alias. */ | |
36988 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
36989 | choke me | |
36990 | #else | |
36991 | char (*f) () = sched_yield; | |
36992 | #endif | |
36993 | #ifdef __cplusplus | |
36994 | } | |
36995 | #endif | |
36996 | ||
36997 | int | |
36998 | main () | |
36999 | { | |
37000 | return f != sched_yield; | |
37001 | ; | |
37002 | return 0; | |
37003 | } | |
37004 | _ACEOF | |
37005 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37006 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37007 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37008 | ac_status=$? |
ac1cb8d3 VS |
37009 | grep -v '^ *+' conftest.er1 >conftest.err |
37010 | rm -f conftest.er1 | |
37011 | cat conftest.err >&5 | |
a848cd7e SC |
37012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37013 | (exit $ac_status); } && | |
0093c2fc | 37014 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37016 | (eval $ac_try) 2>&5 | |
37017 | ac_status=$? | |
37018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37019 | (exit $ac_status); }; } && | |
37020 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37022 | (eval $ac_try) 2>&5 | |
37023 | ac_status=$? | |
37024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37025 | (exit $ac_status); }; }; then | |
37026 | ac_cv_func_sched_yield=yes | |
37027 | else | |
37028 | echo "$as_me: failed program was:" >&5 | |
37029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37030 | ||
37031 | ac_cv_func_sched_yield=no | |
37032 | fi | |
ac1cb8d3 VS |
37033 | rm -f conftest.err conftest.$ac_objext \ |
37034 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37035 | fi |
37036 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
37037 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
37038 | if test $ac_cv_func_sched_yield = yes; then | |
37039 | cat >>confdefs.h <<\_ACEOF | |
37040 | #define HAVE_SCHED_YIELD 1 | |
37041 | _ACEOF | |
37042 | ||
37043 | else | |
37044 | ||
37045 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 | |
37046 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
37047 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
37048 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37049 | else | |
37050 | ac_check_lib_save_LIBS=$LIBS | |
37051 | LIBS="-lposix4 $LIBS" | |
37052 | cat >conftest.$ac_ext <<_ACEOF | |
37053 | /* confdefs.h. */ | |
37054 | _ACEOF | |
37055 | cat confdefs.h >>conftest.$ac_ext | |
37056 | cat >>conftest.$ac_ext <<_ACEOF | |
37057 | /* end confdefs.h. */ | |
37058 | ||
37059 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37060 | #ifdef __cplusplus | |
37061 | extern "C" | |
37062 | #endif | |
37063 | /* We use char because int might match the return type of a gcc2 | |
37064 | builtin and then its argument prototype would still apply. */ | |
37065 | char sched_yield (); | |
37066 | int | |
37067 | main () | |
37068 | { | |
37069 | sched_yield (); | |
37070 | ; | |
37071 | return 0; | |
37072 | } | |
37073 | _ACEOF | |
37074 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37075 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37076 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37077 | ac_status=$? |
ac1cb8d3 VS |
37078 | grep -v '^ *+' conftest.er1 >conftest.err |
37079 | rm -f conftest.er1 | |
37080 | cat conftest.err >&5 | |
a848cd7e SC |
37081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37082 | (exit $ac_status); } && | |
0093c2fc | 37083 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37085 | (eval $ac_try) 2>&5 | |
37086 | ac_status=$? | |
37087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37088 | (exit $ac_status); }; } && | |
37089 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37091 | (eval $ac_try) 2>&5 | |
37092 | ac_status=$? | |
37093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37094 | (exit $ac_status); }; }; then | |
37095 | ac_cv_lib_posix4_sched_yield=yes | |
37096 | else | |
37097 | echo "$as_me: failed program was:" >&5 | |
37098 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37099 | ||
37100 | ac_cv_lib_posix4_sched_yield=no | |
37101 | fi | |
ac1cb8d3 VS |
37102 | rm -f conftest.err conftest.$ac_objext \ |
37103 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37104 | LIBS=$ac_check_lib_save_LIBS |
37105 | fi | |
37106 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
37107 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
37108 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
37109 | cat >>confdefs.h <<\_ACEOF | |
37110 | #define HAVE_SCHED_YIELD 1 | |
37111 | _ACEOF | |
37112 | POSIX4_LINK=" -lposix4" | |
37113 | else | |
37114 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 | |
37115 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
37116 | ||
37117 | fi | |
37118 | ||
37119 | ||
37120 | ||
37121 | fi | |
37122 | ||
37123 | fi | |
37124 | ||
37125 | HAVE_PRIOR_FUNCS=0 | |
37126 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 | |
37127 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
37128 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
37129 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37130 | else | |
37131 | cat >conftest.$ac_ext <<_ACEOF | |
37132 | /* confdefs.h. */ | |
37133 | _ACEOF | |
37134 | cat confdefs.h >>conftest.$ac_ext | |
37135 | cat >>conftest.$ac_ext <<_ACEOF | |
37136 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37137 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
37138 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37139 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
37140 | ||
a848cd7e SC |
37141 | /* System header to define __stub macros and hopefully few prototypes, |
37142 | which can conflict with char pthread_attr_getschedpolicy (); below. | |
37143 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37144 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37145 | |
a848cd7e SC |
37146 | #ifdef __STDC__ |
37147 | # include <limits.h> | |
37148 | #else | |
37149 | # include <assert.h> | |
37150 | #endif | |
ac1cb8d3 VS |
37151 | |
37152 | #undef pthread_attr_getschedpolicy | |
37153 | ||
a848cd7e SC |
37154 | /* Override any gcc2 internal prototype to avoid an error. */ |
37155 | #ifdef __cplusplus | |
37156 | extern "C" | |
37157 | { | |
37158 | #endif | |
37159 | /* We use char because int might match the return type of a gcc2 | |
37160 | builtin and then its argument prototype would still apply. */ | |
37161 | char pthread_attr_getschedpolicy (); | |
37162 | /* The GNU C library defines this for functions which it implements | |
37163 | to always fail with ENOSYS. Some functions are actually named | |
37164 | something starting with __ and the normal name is an alias. */ | |
37165 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
37166 | choke me | |
37167 | #else | |
37168 | char (*f) () = pthread_attr_getschedpolicy; | |
37169 | #endif | |
37170 | #ifdef __cplusplus | |
37171 | } | |
37172 | #endif | |
37173 | ||
37174 | int | |
37175 | main () | |
37176 | { | |
37177 | return f != pthread_attr_getschedpolicy; | |
37178 | ; | |
37179 | return 0; | |
37180 | } | |
37181 | _ACEOF | |
37182 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37183 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37184 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37185 | ac_status=$? |
ac1cb8d3 VS |
37186 | grep -v '^ *+' conftest.er1 >conftest.err |
37187 | rm -f conftest.er1 | |
37188 | cat conftest.err >&5 | |
a848cd7e SC |
37189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37190 | (exit $ac_status); } && | |
0093c2fc | 37191 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37193 | (eval $ac_try) 2>&5 | |
37194 | ac_status=$? | |
37195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37196 | (exit $ac_status); }; } && | |
37197 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37199 | (eval $ac_try) 2>&5 | |
37200 | ac_status=$? | |
37201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37202 | (exit $ac_status); }; }; then | |
37203 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
37204 | else | |
37205 | echo "$as_me: failed program was:" >&5 | |
37206 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37207 | ||
37208 | ac_cv_func_pthread_attr_getschedpolicy=no | |
37209 | fi | |
ac1cb8d3 VS |
37210 | rm -f conftest.err conftest.$ac_objext \ |
37211 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37212 | fi |
37213 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
37214 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
37215 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
37216 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
37217 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
37218 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
37219 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37220 | else | |
37221 | cat >conftest.$ac_ext <<_ACEOF | |
37222 | /* confdefs.h. */ | |
37223 | _ACEOF | |
37224 | cat confdefs.h >>conftest.$ac_ext | |
37225 | cat >>conftest.$ac_ext <<_ACEOF | |
37226 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37227 | /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
37228 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37229 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
37230 | ||
a848cd7e SC |
37231 | /* System header to define __stub macros and hopefully few prototypes, |
37232 | which can conflict with char pthread_attr_setschedparam (); below. | |
37233 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37234 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37235 | |
a848cd7e SC |
37236 | #ifdef __STDC__ |
37237 | # include <limits.h> | |
37238 | #else | |
37239 | # include <assert.h> | |
37240 | #endif | |
ac1cb8d3 VS |
37241 | |
37242 | #undef pthread_attr_setschedparam | |
37243 | ||
a848cd7e SC |
37244 | /* Override any gcc2 internal prototype to avoid an error. */ |
37245 | #ifdef __cplusplus | |
37246 | extern "C" | |
37247 | { | |
37248 | #endif | |
37249 | /* We use char because int might match the return type of a gcc2 | |
37250 | builtin and then its argument prototype would still apply. */ | |
37251 | char pthread_attr_setschedparam (); | |
37252 | /* The GNU C library defines this for functions which it implements | |
37253 | to always fail with ENOSYS. Some functions are actually named | |
37254 | something starting with __ and the normal name is an alias. */ | |
37255 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
37256 | choke me | |
37257 | #else | |
37258 | char (*f) () = pthread_attr_setschedparam; | |
37259 | #endif | |
37260 | #ifdef __cplusplus | |
37261 | } | |
37262 | #endif | |
37263 | ||
37264 | int | |
37265 | main () | |
37266 | { | |
37267 | return f != pthread_attr_setschedparam; | |
37268 | ; | |
37269 | return 0; | |
37270 | } | |
37271 | _ACEOF | |
37272 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37273 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37274 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37275 | ac_status=$? |
ac1cb8d3 VS |
37276 | grep -v '^ *+' conftest.er1 >conftest.err |
37277 | rm -f conftest.er1 | |
37278 | cat conftest.err >&5 | |
a848cd7e SC |
37279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37280 | (exit $ac_status); } && | |
0093c2fc | 37281 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37283 | (eval $ac_try) 2>&5 | |
37284 | ac_status=$? | |
37285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37286 | (exit $ac_status); }; } && | |
37287 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37289 | (eval $ac_try) 2>&5 | |
37290 | ac_status=$? | |
37291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37292 | (exit $ac_status); }; }; then | |
37293 | ac_cv_func_pthread_attr_setschedparam=yes | |
37294 | else | |
37295 | echo "$as_me: failed program was:" >&5 | |
37296 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37297 | ||
37298 | ac_cv_func_pthread_attr_setschedparam=no | |
37299 | fi | |
ac1cb8d3 VS |
37300 | rm -f conftest.err conftest.$ac_objext \ |
37301 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37302 | fi |
37303 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
37304 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
37305 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
37306 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
37307 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
37308 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
37309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37310 | else | |
37311 | cat >conftest.$ac_ext <<_ACEOF | |
37312 | /* confdefs.h. */ | |
37313 | _ACEOF | |
37314 | cat confdefs.h >>conftest.$ac_ext | |
37315 | cat >>conftest.$ac_ext <<_ACEOF | |
37316 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37317 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
37318 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37319 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
37320 | ||
a848cd7e SC |
37321 | /* System header to define __stub macros and hopefully few prototypes, |
37322 | which can conflict with char sched_get_priority_max (); below. | |
37323 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37324 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37325 | |
a848cd7e SC |
37326 | #ifdef __STDC__ |
37327 | # include <limits.h> | |
37328 | #else | |
37329 | # include <assert.h> | |
37330 | #endif | |
ac1cb8d3 VS |
37331 | |
37332 | #undef sched_get_priority_max | |
37333 | ||
a848cd7e SC |
37334 | /* Override any gcc2 internal prototype to avoid an error. */ |
37335 | #ifdef __cplusplus | |
37336 | extern "C" | |
37337 | { | |
37338 | #endif | |
37339 | /* We use char because int might match the return type of a gcc2 | |
37340 | builtin and then its argument prototype would still apply. */ | |
37341 | char sched_get_priority_max (); | |
37342 | /* The GNU C library defines this for functions which it implements | |
37343 | to always fail with ENOSYS. Some functions are actually named | |
37344 | something starting with __ and the normal name is an alias. */ | |
37345 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
37346 | choke me | |
37347 | #else | |
37348 | char (*f) () = sched_get_priority_max; | |
37349 | #endif | |
37350 | #ifdef __cplusplus | |
37351 | } | |
37352 | #endif | |
37353 | ||
37354 | int | |
37355 | main () | |
37356 | { | |
37357 | return f != sched_get_priority_max; | |
37358 | ; | |
37359 | return 0; | |
37360 | } | |
37361 | _ACEOF | |
37362 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37363 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37364 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37365 | ac_status=$? |
ac1cb8d3 VS |
37366 | grep -v '^ *+' conftest.er1 >conftest.err |
37367 | rm -f conftest.er1 | |
37368 | cat conftest.err >&5 | |
a848cd7e SC |
37369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37370 | (exit $ac_status); } && | |
0093c2fc | 37371 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37373 | (eval $ac_try) 2>&5 | |
37374 | ac_status=$? | |
37375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37376 | (exit $ac_status); }; } && | |
37377 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37379 | (eval $ac_try) 2>&5 | |
37380 | ac_status=$? | |
37381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37382 | (exit $ac_status); }; }; then | |
37383 | ac_cv_func_sched_get_priority_max=yes | |
37384 | else | |
37385 | echo "$as_me: failed program was:" >&5 | |
37386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37387 | ||
37388 | ac_cv_func_sched_get_priority_max=no | |
37389 | fi | |
ac1cb8d3 VS |
37390 | rm -f conftest.err conftest.$ac_objext \ |
37391 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37392 | fi |
37393 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
37394 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
37395 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
37396 | HAVE_PRIOR_FUNCS=1 | |
37397 | else | |
37398 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 | |
37399 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
37400 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
37401 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37402 | else | |
37403 | ac_check_lib_save_LIBS=$LIBS | |
37404 | LIBS="-lposix4 $LIBS" | |
37405 | cat >conftest.$ac_ext <<_ACEOF | |
37406 | /* confdefs.h. */ | |
37407 | _ACEOF | |
37408 | cat confdefs.h >>conftest.$ac_ext | |
37409 | cat >>conftest.$ac_ext <<_ACEOF | |
37410 | /* end confdefs.h. */ | |
37411 | ||
37412 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37413 | #ifdef __cplusplus | |
37414 | extern "C" | |
37415 | #endif | |
37416 | /* We use char because int might match the return type of a gcc2 | |
37417 | builtin and then its argument prototype would still apply. */ | |
37418 | char sched_get_priority_max (); | |
37419 | int | |
37420 | main () | |
37421 | { | |
37422 | sched_get_priority_max (); | |
37423 | ; | |
37424 | return 0; | |
37425 | } | |
37426 | _ACEOF | |
37427 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37428 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37429 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37430 | ac_status=$? |
ac1cb8d3 VS |
37431 | grep -v '^ *+' conftest.er1 >conftest.err |
37432 | rm -f conftest.er1 | |
37433 | cat conftest.err >&5 | |
a848cd7e SC |
37434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37435 | (exit $ac_status); } && | |
0093c2fc | 37436 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37438 | (eval $ac_try) 2>&5 | |
37439 | ac_status=$? | |
37440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37441 | (exit $ac_status); }; } && | |
37442 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37444 | (eval $ac_try) 2>&5 | |
37445 | ac_status=$? | |
37446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37447 | (exit $ac_status); }; }; then | |
37448 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
37449 | else | |
37450 | echo "$as_me: failed program was:" >&5 | |
37451 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37452 | ||
37453 | ac_cv_lib_posix4_sched_get_priority_max=no | |
37454 | fi | |
ac1cb8d3 VS |
37455 | rm -f conftest.err conftest.$ac_objext \ |
37456 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37457 | LIBS=$ac_check_lib_save_LIBS |
37458 | fi | |
37459 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
37460 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
37461 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
37462 | ||
37463 | HAVE_PRIOR_FUNCS=1 | |
37464 | POSIX4_LINK=" -lposix4" | |
37465 | ||
37466 | fi | |
37467 | ||
37468 | ||
37469 | fi | |
37470 | ||
37471 | ||
37472 | fi | |
37473 | ||
37474 | ||
37475 | fi | |
37476 | ||
37477 | ||
37478 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
37479 | cat >>confdefs.h <<\_ACEOF | |
37480 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
37481 | _ACEOF | |
37482 | ||
37483 | else | |
37484 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 | |
37485 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
37486 | fi | |
37487 | ||
37488 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 | |
37489 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
37490 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
37491 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37492 | else | |
37493 | cat >conftest.$ac_ext <<_ACEOF | |
37494 | /* confdefs.h. */ | |
37495 | _ACEOF | |
37496 | cat confdefs.h >>conftest.$ac_ext | |
37497 | cat >>conftest.$ac_ext <<_ACEOF | |
37498 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37499 | /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
37500 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37501 | #define pthread_cancel innocuous_pthread_cancel | |
37502 | ||
a848cd7e SC |
37503 | /* System header to define __stub macros and hopefully few prototypes, |
37504 | which can conflict with char pthread_cancel (); below. | |
37505 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37506 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37507 | |
a848cd7e SC |
37508 | #ifdef __STDC__ |
37509 | # include <limits.h> | |
37510 | #else | |
37511 | # include <assert.h> | |
37512 | #endif | |
ac1cb8d3 VS |
37513 | |
37514 | #undef pthread_cancel | |
37515 | ||
a848cd7e SC |
37516 | /* Override any gcc2 internal prototype to avoid an error. */ |
37517 | #ifdef __cplusplus | |
37518 | extern "C" | |
37519 | { | |
37520 | #endif | |
37521 | /* We use char because int might match the return type of a gcc2 | |
37522 | builtin and then its argument prototype would still apply. */ | |
37523 | char pthread_cancel (); | |
37524 | /* The GNU C library defines this for functions which it implements | |
37525 | to always fail with ENOSYS. Some functions are actually named | |
37526 | something starting with __ and the normal name is an alias. */ | |
37527 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
37528 | choke me | |
37529 | #else | |
37530 | char (*f) () = pthread_cancel; | |
37531 | #endif | |
37532 | #ifdef __cplusplus | |
37533 | } | |
37534 | #endif | |
37535 | ||
37536 | int | |
37537 | main () | |
37538 | { | |
37539 | return f != pthread_cancel; | |
37540 | ; | |
37541 | return 0; | |
37542 | } | |
37543 | _ACEOF | |
37544 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37545 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37546 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37547 | ac_status=$? |
ac1cb8d3 VS |
37548 | grep -v '^ *+' conftest.er1 >conftest.err |
37549 | rm -f conftest.er1 | |
37550 | cat conftest.err >&5 | |
a848cd7e SC |
37551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37552 | (exit $ac_status); } && | |
0093c2fc | 37553 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37555 | (eval $ac_try) 2>&5 | |
37556 | ac_status=$? | |
37557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37558 | (exit $ac_status); }; } && | |
37559 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37561 | (eval $ac_try) 2>&5 | |
37562 | ac_status=$? | |
37563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37564 | (exit $ac_status); }; }; then | |
37565 | ac_cv_func_pthread_cancel=yes | |
37566 | else | |
37567 | echo "$as_me: failed program was:" >&5 | |
37568 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37569 | ||
37570 | ac_cv_func_pthread_cancel=no | |
37571 | fi | |
ac1cb8d3 VS |
37572 | rm -f conftest.err conftest.$ac_objext \ |
37573 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37574 | fi |
37575 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
37576 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
37577 | if test $ac_cv_func_pthread_cancel = yes; then | |
37578 | cat >>confdefs.h <<\_ACEOF | |
37579 | #define HAVE_PTHREAD_CANCEL 1 | |
37580 | _ACEOF | |
37581 | ||
37582 | else | |
37583 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 | |
37584 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
37585 | fi | |
37586 | ||
37587 | ||
abc736fd MW |
37588 | echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5 |
37589 | echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6 | |
37590 | if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then | |
37591 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37592 | else | |
37593 | cat >conftest.$ac_ext <<_ACEOF | |
37594 | /* confdefs.h. */ | |
37595 | _ACEOF | |
37596 | cat confdefs.h >>conftest.$ac_ext | |
37597 | cat >>conftest.$ac_ext <<_ACEOF | |
37598 | /* end confdefs.h. */ | |
37599 | /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize. | |
37600 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37601 | #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize | |
37602 | ||
37603 | /* System header to define __stub macros and hopefully few prototypes, | |
37604 | which can conflict with char pthread_attr_setstacksize (); below. | |
37605 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37606 | <limits.h> exists even on freestanding compilers. */ | |
37607 | ||
37608 | #ifdef __STDC__ | |
37609 | # include <limits.h> | |
37610 | #else | |
37611 | # include <assert.h> | |
37612 | #endif | |
37613 | ||
37614 | #undef pthread_attr_setstacksize | |
37615 | ||
37616 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37617 | #ifdef __cplusplus | |
37618 | extern "C" | |
37619 | { | |
37620 | #endif | |
37621 | /* We use char because int might match the return type of a gcc2 | |
37622 | builtin and then its argument prototype would still apply. */ | |
37623 | char pthread_attr_setstacksize (); | |
37624 | /* The GNU C library defines this for functions which it implements | |
37625 | to always fail with ENOSYS. Some functions are actually named | |
37626 | something starting with __ and the normal name is an alias. */ | |
37627 | #if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize) | |
37628 | choke me | |
37629 | #else | |
37630 | char (*f) () = pthread_attr_setstacksize; | |
37631 | #endif | |
37632 | #ifdef __cplusplus | |
37633 | } | |
37634 | #endif | |
37635 | ||
37636 | int | |
37637 | main () | |
37638 | { | |
37639 | return f != pthread_attr_setstacksize; | |
37640 | ; | |
37641 | return 0; | |
37642 | } | |
37643 | _ACEOF | |
37644 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37645 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
37646 | (eval $ac_link) 2>conftest.er1 | |
37647 | ac_status=$? | |
37648 | grep -v '^ *+' conftest.er1 >conftest.err | |
37649 | rm -f conftest.er1 | |
37650 | cat conftest.err >&5 | |
37651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37652 | (exit $ac_status); } && | |
0093c2fc | 37653 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
abc736fd MW |
37654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37655 | (eval $ac_try) 2>&5 | |
37656 | ac_status=$? | |
37657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37658 | (exit $ac_status); }; } && | |
37659 | { ac_try='test -s conftest$ac_exeext' | |
37660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37661 | (eval $ac_try) 2>&5 | |
37662 | ac_status=$? | |
37663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37664 | (exit $ac_status); }; }; then | |
37665 | ac_cv_func_pthread_attr_setstacksize=yes | |
37666 | else | |
37667 | echo "$as_me: failed program was:" >&5 | |
37668 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37669 | ||
37670 | ac_cv_func_pthread_attr_setstacksize=no | |
37671 | fi | |
37672 | rm -f conftest.err conftest.$ac_objext \ | |
37673 | conftest$ac_exeext conftest.$ac_ext | |
37674 | fi | |
37675 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5 | |
37676 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6 | |
37677 | if test $ac_cv_func_pthread_attr_setstacksize = yes; then | |
37678 | cat >>confdefs.h <<\_ACEOF | |
37679 | #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 | |
37680 | _ACEOF | |
37681 | ||
37682 | fi | |
37683 | ||
a848cd7e SC |
37684 | |
37685 | ||
37686 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
37687 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
37688 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
37689 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37690 | else | |
37691 | ||
37692 | cat >conftest.$ac_ext <<_ACEOF | |
37693 | /* confdefs.h. */ | |
37694 | _ACEOF | |
37695 | cat confdefs.h >>conftest.$ac_ext | |
37696 | cat >>conftest.$ac_ext <<_ACEOF | |
37697 | /* end confdefs.h. */ | |
37698 | #include <pthread.h> | |
37699 | int | |
37700 | main () | |
37701 | { | |
37702 | ||
37703 | pthread_mutexattr_t attr; | |
37704 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
37705 | ||
37706 | ; | |
37707 | return 0; | |
37708 | } | |
37709 | _ACEOF | |
37710 | rm -f conftest.$ac_objext | |
37711 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37712 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37713 | ac_status=$? |
ac1cb8d3 VS |
37714 | grep -v '^ *+' conftest.er1 >conftest.err |
37715 | rm -f conftest.er1 | |
37716 | cat conftest.err >&5 | |
a848cd7e SC |
37717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37718 | (exit $ac_status); } && | |
0093c2fc | 37719 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37721 | (eval $ac_try) 2>&5 | |
37722 | ac_status=$? | |
37723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37724 | (exit $ac_status); }; } && | |
37725 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37727 | (eval $ac_try) 2>&5 | |
37728 | ac_status=$? | |
37729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37730 | (exit $ac_status); }; }; then | |
123dca7d | 37731 | wx_cv_type_pthread_mutexattr_t=yes |
a848cd7e SC |
37732 | else |
37733 | echo "$as_me: failed program was:" >&5 | |
37734 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37735 | ||
123dca7d | 37736 | wx_cv_type_pthread_mutexattr_t=no |
a848cd7e SC |
37737 | |
37738 | fi | |
ac1cb8d3 | 37739 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37740 | |
37741 | fi | |
37742 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
37743 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
37744 | ||
37745 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
37746 | cat >>confdefs.h <<\_ACEOF | |
37747 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
37748 | _ACEOF | |
37749 | ||
123dca7d VZ |
37750 | |
37751 | echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5 | |
37752 | echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6 | |
37753 | if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then | |
37754 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37755 | else | |
37756 | ||
37757 | cat >conftest.$ac_ext <<_ACEOF | |
37758 | /* confdefs.h. */ | |
37759 | _ACEOF | |
37760 | cat confdefs.h >>conftest.$ac_ext | |
37761 | cat >>conftest.$ac_ext <<_ACEOF | |
37762 | /* end confdefs.h. */ | |
37763 | #include <pthread.h> | |
37764 | int | |
37765 | main () | |
37766 | { | |
37767 | ||
37768 | pthread_mutexattr_t attr; | |
37769 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
37770 | ||
37771 | ; | |
37772 | return 0; | |
37773 | } | |
37774 | _ACEOF | |
37775 | rm -f conftest.$ac_objext | |
37776 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
37777 | (eval $ac_compile) 2>conftest.er1 | |
37778 | ac_status=$? | |
37779 | grep -v '^ *+' conftest.er1 >conftest.err | |
37780 | rm -f conftest.er1 | |
37781 | cat conftest.err >&5 | |
37782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37783 | (exit $ac_status); } && | |
0093c2fc | 37784 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
123dca7d VZ |
37785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37786 | (eval $ac_try) 2>&5 | |
37787 | ac_status=$? | |
37788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37789 | (exit $ac_status); }; } && | |
37790 | { ac_try='test -s conftest.$ac_objext' | |
37791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37792 | (eval $ac_try) 2>&5 | |
37793 | ac_status=$? | |
37794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37795 | (exit $ac_status); }; }; then | |
37796 | wx_cv_func_pthread_mutexattr_settype_decl=yes | |
37797 | else | |
37798 | echo "$as_me: failed program was:" >&5 | |
37799 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37800 | ||
37801 | wx_cv_func_pthread_mutexattr_settype_decl=no | |
37802 | ||
37803 | fi | |
37804 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
37805 | ||
37806 | fi | |
37807 | echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5 | |
37808 | echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6 | |
37809 | if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then | |
37810 | cat >>confdefs.h <<\_ACEOF | |
37811 | #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1 | |
37812 | _ACEOF | |
37813 | ||
37814 | fi | |
a848cd7e SC |
37815 | else |
37816 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
37817 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
37818 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
37819 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37820 | else | |
37821 | ||
37822 | cat >conftest.$ac_ext <<_ACEOF | |
37823 | /* confdefs.h. */ | |
37824 | _ACEOF | |
37825 | cat confdefs.h >>conftest.$ac_ext | |
37826 | cat >>conftest.$ac_ext <<_ACEOF | |
37827 | /* end confdefs.h. */ | |
37828 | #include <pthread.h> | |
37829 | int | |
37830 | main () | |
37831 | { | |
37832 | ||
37833 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
37834 | ||
37835 | ; | |
37836 | return 0; | |
37837 | } | |
37838 | _ACEOF | |
37839 | rm -f conftest.$ac_objext | |
37840 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37841 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37842 | ac_status=$? |
ac1cb8d3 VS |
37843 | grep -v '^ *+' conftest.er1 >conftest.err |
37844 | rm -f conftest.er1 | |
37845 | cat conftest.err >&5 | |
a848cd7e SC |
37846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37847 | (exit $ac_status); } && | |
0093c2fc | 37848 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37850 | (eval $ac_try) 2>&5 | |
37851 | ac_status=$? | |
37852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37853 | (exit $ac_status); }; } && | |
37854 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37856 | (eval $ac_try) 2>&5 | |
37857 | ac_status=$? | |
37858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37859 | (exit $ac_status); }; }; then | |
37860 | ||
37861 | wx_cv_type_pthread_rec_mutex_init=yes | |
37862 | ||
37863 | else | |
37864 | echo "$as_me: failed program was:" >&5 | |
37865 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37866 | ||
37867 | ||
37868 | wx_cv_type_pthread_rec_mutex_init=no | |
37869 | ||
37870 | ||
37871 | fi | |
ac1cb8d3 | 37872 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37873 | |
37874 | fi | |
37875 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
37876 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
37877 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
37878 | cat >>confdefs.h <<\_ACEOF | |
37879 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
37880 | _ACEOF | |
37881 | ||
37882 | else | |
37883 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 | |
37884 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
37885 | fi | |
37886 | fi | |
37887 | fi | |
37888 | ||
37889 | else | |
37890 | if test "$wxUSE_THREADS" = "yes" ; then | |
37891 | case "${host}" in | |
37892 | *-*-mingw32* ) | |
37893 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 | |
37894 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
37895 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
37896 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37897 | else | |
37898 | ||
37899 | CFLAGS_OLD="$CFLAGS" | |
37900 | CFLAGS="$CFLAGS -mthreads" | |
37901 | cat >conftest.$ac_ext <<_ACEOF | |
37902 | /* confdefs.h. */ | |
37903 | _ACEOF | |
37904 | cat confdefs.h >>conftest.$ac_ext | |
37905 | cat >>conftest.$ac_ext <<_ACEOF | |
37906 | /* end confdefs.h. */ | |
37907 | ||
37908 | int | |
37909 | main () | |
37910 | { | |
37911 | ||
37912 | ; | |
37913 | return 0; | |
37914 | } | |
37915 | _ACEOF | |
37916 | rm -f conftest.$ac_objext | |
37917 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37918 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37919 | ac_status=$? |
ac1cb8d3 VS |
37920 | grep -v '^ *+' conftest.er1 >conftest.err |
37921 | rm -f conftest.er1 | |
37922 | cat conftest.err >&5 | |
a848cd7e SC |
37923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37924 | (exit $ac_status); } && | |
0093c2fc | 37925 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37927 | (eval $ac_try) 2>&5 | |
37928 | ac_status=$? | |
37929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37930 | (exit $ac_status); }; } && | |
37931 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37933 | (eval $ac_try) 2>&5 | |
37934 | ac_status=$? | |
37935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37936 | (exit $ac_status); }; }; then | |
37937 | wx_cv_cflags_mthread=yes | |
37938 | else | |
37939 | echo "$as_me: failed program was:" >&5 | |
37940 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37941 | ||
37942 | wx_cv_cflags_mthread=no | |
37943 | ||
37944 | fi | |
ac1cb8d3 | 37945 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37946 | |
37947 | ||
37948 | fi | |
37949 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
37950 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
37951 | ||
37952 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
37953 | CXXFLAGS="$CXXFLAGS -mthreads" | |
37954 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
37955 | LDFLAGS="$LDFLAGS -mthreads" | |
37956 | else | |
37957 | CFLAGS="$CFLAGS_OLD" | |
37958 | fi | |
37959 | ;; | |
37960 | *-pc-os2*emx ) | |
37961 | CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__" | |
37962 | CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
37963 | LDFLAGS="$LDFLAGS -Zmt" | |
37964 | ;; | |
37965 | esac | |
37966 | fi | |
37967 | fi | |
37968 | ||
37969 | if test "$wxUSE_THREADS" = "yes"; then | |
37970 | cat >>confdefs.h <<\_ACEOF | |
37971 | #define wxUSE_THREADS 1 | |
37972 | _ACEOF | |
37973 | ||
37974 | ||
37975 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
37976 | else | |
37977 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
37978 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 | |
37979 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
37980 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
37981 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
37982 | echo "$as_me:$LINENO: result: yes" >&5 | |
37983 | echo "${ECHO_T}yes" >&6 | |
37984 | else | |
37985 | echo "$as_me:$LINENO: result: no" >&5 | |
37986 | echo "${ECHO_T}no" >&6 | |
37987 | fi | |
37988 | fi | |
37989 | fi | |
37990 | ||
37991 | if test "$WXGTK20" = 1 ; then | |
37992 | cat >>confdefs.h <<_ACEOF | |
37993 | #define __WXGTK20__ $WXGTK20 | |
37994 | _ACEOF | |
37995 | ||
37996 | WXGTK12=1 | |
37997 | fi | |
37998 | ||
37999 | if test "$WXGTK12" = 1 ; then | |
38000 | cat >>confdefs.h <<_ACEOF | |
38001 | #define __WXGTK12__ $WXGTK12 | |
38002 | _ACEOF | |
38003 | ||
38004 | fi | |
38005 | ||
38006 | if test "$WXGTK127" = 1 ; then | |
38007 | cat >>confdefs.h <<_ACEOF | |
38008 | #define __WXGTK127__ $WXGTK127 | |
38009 | _ACEOF | |
38010 | ||
38011 | fi | |
38012 | ||
38013 | if test "$WXGPE" = 1 ; then | |
38014 | cat >>confdefs.h <<_ACEOF | |
38015 | #define __WXGPE__ $WXGPE | |
38016 | _ACEOF | |
38017 | ||
38018 | fi | |
38019 | ||
38020 | WXDEBUG= | |
38021 | ||
38022 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
38023 | WXDEBUG="-g" | |
38024 | wxUSE_OPTIMISE=no | |
38025 | fi | |
38026 | ||
38027 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
38028 | wxUSE_DEBUG_INFO=yes | |
18228ab4 MW |
38029 | if test "$GCC" = yes; then |
38030 | WXDEBUG="-ggdb" | |
38031 | fi | |
a848cd7e SC |
38032 | fi |
38033 | ||
38034 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
38035 | cat >>confdefs.h <<\_ACEOF | |
38036 | #define WXDEBUG 1 | |
38037 | _ACEOF | |
38038 | ||
38039 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
38040 | else | |
38041 | if test "$wxUSE_GTK" = 1 ; then | |
38042 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
38043 | fi | |
38044 | fi | |
38045 | ||
38046 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
38047 | cat >>confdefs.h <<\_ACEOF | |
38048 | #define wxUSE_MEMORY_TRACING 1 | |
38049 | _ACEOF | |
38050 | ||
38051 | cat >>confdefs.h <<\_ACEOF | |
38052 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
38053 | _ACEOF | |
38054 | ||
38055 | cat >>confdefs.h <<\_ACEOF | |
38056 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
38057 | _ACEOF | |
38058 | ||
38059 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
38060 | fi | |
38061 | ||
38062 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
df1b269d | 38063 | DMALLOC_LIBS="-ldmallocthcxx" |
a848cd7e SC |
38064 | fi |
38065 | ||
38066 | PROFILE= | |
38067 | if test "$wxUSE_PROFILE" = "yes" ; then | |
38068 | PROFILE=" -pg" | |
38069 | fi | |
38070 | ||
38071 | CODE_GEN_FLAGS= | |
38072 | CODE_GEN_FLAGS_CXX= | |
38073 | if test "$GCC" = "yes" ; then | |
38074 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
38075 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
38076 | fi | |
38077 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
38078 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
38079 | fi | |
38080 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
38081 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
38082 | fi | |
38083 | ||
38084 | case "${host}" in | |
38085 | powerpc*-*-aix* ) | |
38086 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
38087 | ;; | |
38088 | *-hppa* ) | |
38089 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
38090 | ;; | |
38091 | esac | |
38092 | fi | |
38093 | ||
38094 | OPTIMISE= | |
38095 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
38096 | if test "$GCC" = yes ; then | |
38097 | OPTIMISE="-O0" | |
38098 | fi | |
38099 | else | |
38100 | if test "$GCC" = yes ; then | |
38101 | OPTIMISE="-O2" | |
38102 | ||
38103 | case "${host}" in | |
38104 | i586-*-*|i686-*-* ) | |
38105 | OPTIMISE="${OPTIMISE} " | |
38106 | ;; | |
38107 | esac | |
38108 | else | |
38109 | OPTIMISE="-O" | |
38110 | fi | |
38111 | fi | |
38112 | ||
38113 | ||
dee1a63f | 38114 | if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then |
a848cd7e | 38115 | cat >>confdefs.h <<\_ACEOF |
dee1a63f | 38116 | #define WXWIN_COMPATIBILITY_2_4 1 |
a848cd7e SC |
38117 | _ACEOF |
38118 | ||
38119 | ||
dee1a63f | 38120 | WXWIN_COMPATIBILITY_2_6="yes" |
a848cd7e SC |
38121 | fi |
38122 | ||
dee1a63f | 38123 | if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then |
a848cd7e | 38124 | cat >>confdefs.h <<\_ACEOF |
dee1a63f | 38125 | #define WXWIN_COMPATIBILITY_2_6 1 |
a848cd7e SC |
38126 | _ACEOF |
38127 | ||
38128 | fi | |
38129 | ||
38130 | ||
38131 | if test "$wxUSE_GUI" = "yes"; then | |
881bfcd6 | 38132 | cat >>confdefs.h <<\_ACEOF |
a848cd7e SC |
38133 | #define wxUSE_GUI 1 |
38134 | _ACEOF | |
38135 | ||
38136 | ||
370fd4c2 | 38137 | fi |
a848cd7e SC |
38138 | |
38139 | ||
38140 | if test "$wxUSE_UNIX" = "yes"; then | |
38141 | cat >>confdefs.h <<\_ACEOF | |
38142 | #define wxUSE_UNIX 1 | |
38143 | _ACEOF | |
38144 | ||
38145 | fi | |
38146 | ||
38147 | ||
38148 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
38149 | ||
38150 | HAVE_DL_FUNCS=0 | |
38151 | HAVE_SHL_FUNCS=0 | |
38152 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
38153 | if test "$USE_DARWIN" = 1; then | |
38154 | HAVE_DL_FUNCS=1 | |
47a7e797 MW |
38155 | elif test "$USE_DOS" = 1; then |
38156 | HAVE_DL_FUNCS=0 | |
a848cd7e SC |
38157 | else |
38158 | ||
38159 | for ac_func in dlopen | |
38160 | do | |
38161 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
38162 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
38163 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
38164 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
38165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38166 | else | |
38167 | cat >conftest.$ac_ext <<_ACEOF | |
38168 | /* confdefs.h. */ | |
38169 | _ACEOF | |
38170 | cat confdefs.h >>conftest.$ac_ext | |
38171 | cat >>conftest.$ac_ext <<_ACEOF | |
38172 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38173 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
38174 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38175 | #define $ac_func innocuous_$ac_func | |
38176 | ||
a848cd7e SC |
38177 | /* System header to define __stub macros and hopefully few prototypes, |
38178 | which can conflict with char $ac_func (); below. | |
38179 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38180 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38181 | |
a848cd7e SC |
38182 | #ifdef __STDC__ |
38183 | # include <limits.h> | |
38184 | #else | |
38185 | # include <assert.h> | |
38186 | #endif | |
ac1cb8d3 VS |
38187 | |
38188 | #undef $ac_func | |
38189 | ||
a848cd7e SC |
38190 | /* Override any gcc2 internal prototype to avoid an error. */ |
38191 | #ifdef __cplusplus | |
38192 | extern "C" | |
38193 | { | |
38194 | #endif | |
38195 | /* We use char because int might match the return type of a gcc2 | |
38196 | builtin and then its argument prototype would still apply. */ | |
38197 | char $ac_func (); | |
38198 | /* The GNU C library defines this for functions which it implements | |
38199 | to always fail with ENOSYS. Some functions are actually named | |
38200 | something starting with __ and the normal name is an alias. */ | |
38201 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
38202 | choke me | |
38203 | #else | |
38204 | char (*f) () = $ac_func; | |
38205 | #endif | |
38206 | #ifdef __cplusplus | |
38207 | } | |
38208 | #endif | |
38209 | ||
38210 | int | |
38211 | main () | |
38212 | { | |
38213 | return f != $ac_func; | |
38214 | ; | |
38215 | return 0; | |
38216 | } | |
38217 | _ACEOF | |
38218 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38219 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38220 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38221 | ac_status=$? |
ac1cb8d3 VS |
38222 | grep -v '^ *+' conftest.er1 >conftest.err |
38223 | rm -f conftest.er1 | |
38224 | cat conftest.err >&5 | |
a848cd7e SC |
38225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38226 | (exit $ac_status); } && | |
0093c2fc | 38227 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38229 | (eval $ac_try) 2>&5 | |
38230 | ac_status=$? | |
38231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38232 | (exit $ac_status); }; } && | |
38233 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38235 | (eval $ac_try) 2>&5 | |
38236 | ac_status=$? | |
38237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38238 | (exit $ac_status); }; }; then | |
38239 | eval "$as_ac_var=yes" | |
38240 | else | |
38241 | echo "$as_me: failed program was:" >&5 | |
38242 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38243 | ||
38244 | eval "$as_ac_var=no" | |
38245 | fi | |
ac1cb8d3 VS |
38246 | rm -f conftest.err conftest.$ac_objext \ |
38247 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38248 | fi |
38249 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
38250 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
38251 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
38252 | cat >>confdefs.h <<_ACEOF | |
38253 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
38254 | _ACEOF | |
38255 | ||
38256 | cat >>confdefs.h <<\_ACEOF | |
38257 | #define HAVE_DLOPEN 1 | |
38258 | _ACEOF | |
38259 | ||
38260 | HAVE_DL_FUNCS=1 | |
38261 | ||
38262 | else | |
38263 | ||
38264 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
38265 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
38266 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
38267 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38268 | else | |
38269 | ac_check_lib_save_LIBS=$LIBS | |
38270 | LIBS="-ldl $LIBS" | |
38271 | cat >conftest.$ac_ext <<_ACEOF | |
38272 | /* confdefs.h. */ | |
38273 | _ACEOF | |
38274 | cat confdefs.h >>conftest.$ac_ext | |
38275 | cat >>conftest.$ac_ext <<_ACEOF | |
38276 | /* end confdefs.h. */ | |
38277 | ||
38278 | /* Override any gcc2 internal prototype to avoid an error. */ | |
38279 | #ifdef __cplusplus | |
38280 | extern "C" | |
38281 | #endif | |
38282 | /* We use char because int might match the return type of a gcc2 | |
38283 | builtin and then its argument prototype would still apply. */ | |
38284 | char dlopen (); | |
38285 | int | |
38286 | main () | |
38287 | { | |
38288 | dlopen (); | |
38289 | ; | |
38290 | return 0; | |
38291 | } | |
38292 | _ACEOF | |
38293 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38294 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38295 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38296 | ac_status=$? |
ac1cb8d3 VS |
38297 | grep -v '^ *+' conftest.er1 >conftest.err |
38298 | rm -f conftest.er1 | |
38299 | cat conftest.err >&5 | |
a848cd7e SC |
38300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38301 | (exit $ac_status); } && | |
0093c2fc | 38302 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38304 | (eval $ac_try) 2>&5 | |
38305 | ac_status=$? | |
38306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38307 | (exit $ac_status); }; } && | |
38308 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38310 | (eval $ac_try) 2>&5 | |
38311 | ac_status=$? | |
38312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38313 | (exit $ac_status); }; }; then | |
38314 | ac_cv_lib_dl_dlopen=yes | |
38315 | else | |
38316 | echo "$as_me: failed program was:" >&5 | |
38317 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38318 | ||
38319 | ac_cv_lib_dl_dlopen=no | |
38320 | fi | |
ac1cb8d3 VS |
38321 | rm -f conftest.err conftest.$ac_objext \ |
38322 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38323 | LIBS=$ac_check_lib_save_LIBS |
38324 | fi | |
38325 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
38326 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
38327 | if test $ac_cv_lib_dl_dlopen = yes; then | |
38328 | ||
38329 | cat >>confdefs.h <<\_ACEOF | |
38330 | #define HAVE_DLOPEN 1 | |
38331 | _ACEOF | |
38332 | ||
38333 | HAVE_DL_FUNCS=1 | |
38334 | DL_LINK=" -ldl$DL_LINK" | |
38335 | ||
38336 | else | |
38337 | ||
38338 | ||
38339 | for ac_func in shl_load | |
38340 | do | |
38341 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
38342 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
38343 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
38344 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
38345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38346 | else | |
38347 | cat >conftest.$ac_ext <<_ACEOF | |
38348 | /* confdefs.h. */ | |
38349 | _ACEOF | |
38350 | cat confdefs.h >>conftest.$ac_ext | |
38351 | cat >>conftest.$ac_ext <<_ACEOF | |
38352 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38353 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
38354 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38355 | #define $ac_func innocuous_$ac_func | |
38356 | ||
a848cd7e SC |
38357 | /* System header to define __stub macros and hopefully few prototypes, |
38358 | which can conflict with char $ac_func (); below. | |
38359 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38360 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38361 | |
a848cd7e SC |
38362 | #ifdef __STDC__ |
38363 | # include <limits.h> | |
38364 | #else | |
38365 | # include <assert.h> | |
38366 | #endif | |
ac1cb8d3 VS |
38367 | |
38368 | #undef $ac_func | |
38369 | ||
a848cd7e SC |
38370 | /* Override any gcc2 internal prototype to avoid an error. */ |
38371 | #ifdef __cplusplus | |
38372 | extern "C" | |
38373 | { | |
38374 | #endif | |
38375 | /* We use char because int might match the return type of a gcc2 | |
38376 | builtin and then its argument prototype would still apply. */ | |
38377 | char $ac_func (); | |
38378 | /* The GNU C library defines this for functions which it implements | |
38379 | to always fail with ENOSYS. Some functions are actually named | |
38380 | something starting with __ and the normal name is an alias. */ | |
38381 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
38382 | choke me | |
38383 | #else | |
38384 | char (*f) () = $ac_func; | |
38385 | #endif | |
38386 | #ifdef __cplusplus | |
38387 | } | |
38388 | #endif | |
38389 | ||
38390 | int | |
38391 | main () | |
38392 | { | |
38393 | return f != $ac_func; | |
38394 | ; | |
38395 | return 0; | |
38396 | } | |
38397 | _ACEOF | |
38398 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38399 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38400 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38401 | ac_status=$? |
ac1cb8d3 VS |
38402 | grep -v '^ *+' conftest.er1 >conftest.err |
38403 | rm -f conftest.er1 | |
38404 | cat conftest.err >&5 | |
a848cd7e SC |
38405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38406 | (exit $ac_status); } && | |
0093c2fc | 38407 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38409 | (eval $ac_try) 2>&5 | |
38410 | ac_status=$? | |
38411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38412 | (exit $ac_status); }; } && | |
38413 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38415 | (eval $ac_try) 2>&5 | |
38416 | ac_status=$? | |
38417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38418 | (exit $ac_status); }; }; then | |
38419 | eval "$as_ac_var=yes" | |
38420 | else | |
38421 | echo "$as_me: failed program was:" >&5 | |
38422 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38423 | ||
38424 | eval "$as_ac_var=no" | |
38425 | fi | |
ac1cb8d3 VS |
38426 | rm -f conftest.err conftest.$ac_objext \ |
38427 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38428 | fi |
38429 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
38430 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
38431 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
38432 | cat >>confdefs.h <<_ACEOF | |
38433 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
38434 | _ACEOF | |
38435 | ||
38436 | cat >>confdefs.h <<\_ACEOF | |
38437 | #define HAVE_SHL_LOAD 1 | |
38438 | _ACEOF | |
38439 | ||
38440 | HAVE_SHL_FUNCS=1 | |
38441 | ||
38442 | else | |
38443 | ||
38444 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
38445 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
38446 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
38447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38448 | else | |
38449 | ac_check_lib_save_LIBS=$LIBS | |
38450 | LIBS="-lshl_load $LIBS" | |
38451 | cat >conftest.$ac_ext <<_ACEOF | |
38452 | /* confdefs.h. */ | |
38453 | _ACEOF | |
38454 | cat confdefs.h >>conftest.$ac_ext | |
38455 | cat >>conftest.$ac_ext <<_ACEOF | |
38456 | /* end confdefs.h. */ | |
38457 | ||
38458 | /* Override any gcc2 internal prototype to avoid an error. */ | |
38459 | #ifdef __cplusplus | |
38460 | extern "C" | |
38461 | #endif | |
38462 | /* We use char because int might match the return type of a gcc2 | |
38463 | builtin and then its argument prototype would still apply. */ | |
38464 | char dld (); | |
38465 | int | |
38466 | main () | |
38467 | { | |
38468 | dld (); | |
38469 | ; | |
38470 | return 0; | |
38471 | } | |
38472 | _ACEOF | |
38473 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38474 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38475 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38476 | ac_status=$? |
ac1cb8d3 VS |
38477 | grep -v '^ *+' conftest.er1 >conftest.err |
38478 | rm -f conftest.er1 | |
38479 | cat conftest.err >&5 | |
a848cd7e SC |
38480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38481 | (exit $ac_status); } && | |
0093c2fc | 38482 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38484 | (eval $ac_try) 2>&5 | |
38485 | ac_status=$? | |
38486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38487 | (exit $ac_status); }; } && | |
38488 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38490 | (eval $ac_try) 2>&5 | |
38491 | ac_status=$? | |
38492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38493 | (exit $ac_status); }; }; then | |
38494 | ac_cv_lib_shl_load_dld=yes | |
38495 | else | |
38496 | echo "$as_me: failed program was:" >&5 | |
38497 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38498 | ||
38499 | ac_cv_lib_shl_load_dld=no | |
38500 | fi | |
ac1cb8d3 VS |
38501 | rm -f conftest.err conftest.$ac_objext \ |
38502 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38503 | LIBS=$ac_check_lib_save_LIBS |
38504 | fi | |
38505 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
38506 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
38507 | if test $ac_cv_lib_shl_load_dld = yes; then | |
38508 | ||
38509 | HAVE_SHL_FUNCS=1 | |
38510 | DL_LINK=" -ldld$DL_LINK" | |
38511 | ||
38512 | fi | |
38513 | ||
38514 | ||
38515 | fi | |
38516 | done | |
38517 | ||
38518 | ||
38519 | fi | |
38520 | ||
38521 | ||
38522 | fi | |
38523 | done | |
38524 | ||
38525 | ||
38526 | if test "$HAVE_DL_FUNCS" = 1; then | |
38527 | ||
38528 | for ac_func in dlerror | |
38529 | do | |
38530 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
38531 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
38532 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
38533 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
38534 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38535 | else | |
38536 | cat >conftest.$ac_ext <<_ACEOF | |
38537 | /* confdefs.h. */ | |
38538 | _ACEOF | |
38539 | cat confdefs.h >>conftest.$ac_ext | |
38540 | cat >>conftest.$ac_ext <<_ACEOF | |
38541 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38542 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
38543 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38544 | #define $ac_func innocuous_$ac_func | |
38545 | ||
a848cd7e SC |
38546 | /* System header to define __stub macros and hopefully few prototypes, |
38547 | which can conflict with char $ac_func (); below. | |
38548 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38549 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38550 | |
a848cd7e SC |
38551 | #ifdef __STDC__ |
38552 | # include <limits.h> | |
38553 | #else | |
38554 | # include <assert.h> | |
38555 | #endif | |
ac1cb8d3 VS |
38556 | |
38557 | #undef $ac_func | |
38558 | ||
a848cd7e SC |
38559 | /* Override any gcc2 internal prototype to avoid an error. */ |
38560 | #ifdef __cplusplus | |
38561 | extern "C" | |
38562 | { | |
38563 | #endif | |
38564 | /* We use char because int might match the return type of a gcc2 | |
38565 | builtin and then its argument prototype would still apply. */ | |
38566 | char $ac_func (); | |
38567 | /* The GNU C library defines this for functions which it implements | |
38568 | to always fail with ENOSYS. Some functions are actually named | |
38569 | something starting with __ and the normal name is an alias. */ | |
38570 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
38571 | choke me | |
38572 | #else | |
38573 | char (*f) () = $ac_func; | |
38574 | #endif | |
38575 | #ifdef __cplusplus | |
38576 | } | |
38577 | #endif | |
38578 | ||
38579 | int | |
38580 | main () | |
38581 | { | |
38582 | return f != $ac_func; | |
38583 | ; | |
38584 | return 0; | |
38585 | } | |
38586 | _ACEOF | |
38587 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38588 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38589 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38590 | ac_status=$? |
ac1cb8d3 VS |
38591 | grep -v '^ *+' conftest.er1 >conftest.err |
38592 | rm -f conftest.er1 | |
38593 | cat conftest.err >&5 | |
a848cd7e SC |
38594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38595 | (exit $ac_status); } && | |
0093c2fc | 38596 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38598 | (eval $ac_try) 2>&5 | |
38599 | ac_status=$? | |
38600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38601 | (exit $ac_status); }; } && | |
38602 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38604 | (eval $ac_try) 2>&5 | |
38605 | ac_status=$? | |
38606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38607 | (exit $ac_status); }; }; then | |
38608 | eval "$as_ac_var=yes" | |
38609 | else | |
38610 | echo "$as_me: failed program was:" >&5 | |
38611 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38612 | ||
38613 | eval "$as_ac_var=no" | |
38614 | fi | |
ac1cb8d3 VS |
38615 | rm -f conftest.err conftest.$ac_objext \ |
38616 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38617 | fi |
38618 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
38619 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
38620 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
38621 | cat >>confdefs.h <<_ACEOF | |
38622 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
38623 | _ACEOF | |
38624 | cat >>confdefs.h <<\_ACEOF | |
38625 | #define HAVE_DLERROR 1 | |
38626 | _ACEOF | |
38627 | ||
38628 | else | |
38629 | ||
38630 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
38631 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
38632 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
38633 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38634 | else | |
38635 | ac_check_lib_save_LIBS=$LIBS | |
38636 | LIBS="-ldl $LIBS" | |
38637 | cat >conftest.$ac_ext <<_ACEOF | |
38638 | /* confdefs.h. */ | |
38639 | _ACEOF | |
38640 | cat confdefs.h >>conftest.$ac_ext | |
38641 | cat >>conftest.$ac_ext <<_ACEOF | |
38642 | /* end confdefs.h. */ | |
38643 | ||
38644 | /* Override any gcc2 internal prototype to avoid an error. */ | |
38645 | #ifdef __cplusplus | |
38646 | extern "C" | |
38647 | #endif | |
38648 | /* We use char because int might match the return type of a gcc2 | |
38649 | builtin and then its argument prototype would still apply. */ | |
38650 | char dlerror (); | |
38651 | int | |
38652 | main () | |
38653 | { | |
38654 | dlerror (); | |
38655 | ; | |
38656 | return 0; | |
38657 | } | |
38658 | _ACEOF | |
38659 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38660 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38661 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38662 | ac_status=$? |
ac1cb8d3 VS |
38663 | grep -v '^ *+' conftest.er1 >conftest.err |
38664 | rm -f conftest.er1 | |
38665 | cat conftest.err >&5 | |
a848cd7e SC |
38666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38667 | (exit $ac_status); } && | |
0093c2fc | 38668 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38670 | (eval $ac_try) 2>&5 | |
38671 | ac_status=$? | |
38672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38673 | (exit $ac_status); }; } && | |
38674 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38676 | (eval $ac_try) 2>&5 | |
38677 | ac_status=$? | |
38678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38679 | (exit $ac_status); }; }; then | |
38680 | ac_cv_lib_dl_dlerror=yes | |
38681 | else | |
38682 | echo "$as_me: failed program was:" >&5 | |
38683 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38684 | ||
38685 | ac_cv_lib_dl_dlerror=no | |
38686 | fi | |
ac1cb8d3 VS |
38687 | rm -f conftest.err conftest.$ac_objext \ |
38688 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38689 | LIBS=$ac_check_lib_save_LIBS |
38690 | fi | |
38691 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
38692 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
38693 | if test $ac_cv_lib_dl_dlerror = yes; then | |
38694 | cat >>confdefs.h <<\_ACEOF | |
38695 | #define HAVE_DLERROR 1 | |
38696 | _ACEOF | |
38697 | ||
38698 | fi | |
38699 | ||
38700 | ||
38701 | ||
38702 | fi | |
38703 | done | |
38704 | ||
38705 | fi | |
38706 | fi | |
38707 | ||
38708 | if test "$HAVE_DL_FUNCS" = 0; then | |
38709 | if test "$HAVE_SHL_FUNCS" = 0; then | |
47a7e797 | 38710 | if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then |
a848cd7e SC |
38711 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 |
38712 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
38713 | wxUSE_DYNAMIC_LOADER=no | |
38714 | wxUSE_DYNLIB_CLASS=no | |
38715 | else | |
38716 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
38717 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
38718 | fi | |
38719 | fi | |
38720 | fi | |
38721 | fi | |
38722 | fi | |
38723 | ||
38724 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
38725 | cat >>confdefs.h <<\_ACEOF | |
38726 | #define wxUSE_DYNAMIC_LOADER 1 | |
38727 | _ACEOF | |
38728 | ||
38729 | fi | |
38730 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
38731 | cat >>confdefs.h <<\_ACEOF | |
38732 | #define wxUSE_DYNLIB_CLASS 1 | |
38733 | _ACEOF | |
38734 | ||
38735 | fi | |
38736 | ||
38737 | ||
38738 | ||
38739 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
38740 | if test "$wxUSE_SHARED" = "no" ; then | |
38741 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 | |
38742 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
38743 | wxUSE_PLUGINS=no | |
38744 | fi | |
38745 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
38746 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 | |
38747 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
38748 | wxUSE_PLUGINS=no | |
38749 | fi | |
38750 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
38751 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 | |
38752 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
38753 | wxUSE_PLUGINS=no | |
38754 | fi | |
38755 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
38756 | cat >>confdefs.h <<\_ACEOF | |
38757 | #define wxUSE_PLUGINS 1 | |
38758 | _ACEOF | |
38759 | ||
38760 | fi | |
38761 | fi | |
38762 | ||
38763 | ||
38764 | if test "$wxUSE_STL" = "yes"; then | |
38765 | cat >>confdefs.h <<\_ACEOF | |
38766 | #define wxUSE_STL 1 | |
38767 | _ACEOF | |
38768 | ||
38769 | fi | |
38770 | ||
38771 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
38772 | cat >>confdefs.h <<\_ACEOF | |
38773 | #define wxUSE_APPLE_IEEE 1 | |
38774 | _ACEOF | |
38775 | ||
38776 | fi | |
38777 | ||
38778 | if test "$wxUSE_TIMER" = "yes"; then | |
38779 | cat >>confdefs.h <<\_ACEOF | |
38780 | #define wxUSE_TIMER 1 | |
38781 | _ACEOF | |
38782 | ||
38783 | fi | |
38784 | ||
9c112555 | 38785 | if test "$USE_UNIX" = "1" ; then |
d12aef51 VZ |
38786 | echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5 |
38787 | echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6 | |
38788 | if test "${ac_cv_header_sys_soundcard+set}" = set; then | |
a848cd7e | 38789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 38790 | else |
d12aef51 VZ |
38791 | |
38792 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
38793 | /* confdefs.h. */ |
38794 | _ACEOF | |
38795 | cat confdefs.h >>conftest.$ac_ext | |
38796 | cat >>conftest.$ac_ext <<_ACEOF | |
38797 | /* end confdefs.h. */ | |
d12aef51 VZ |
38798 | |
38799 | #include <sys/soundcard.h> | |
38800 | ||
38801 | int | |
38802 | main () | |
38803 | { | |
38804 | ||
38805 | ioctl(0, SNDCTL_DSP_SYNC, 0); | |
38806 | ||
38807 | ; | |
38808 | return 0; | |
38809 | } | |
a848cd7e | 38810 | _ACEOF |
d12aef51 VZ |
38811 | rm -f conftest.$ac_objext conftest$ac_exeext |
38812 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
38813 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 38814 | ac_status=$? |
ac1cb8d3 VS |
38815 | grep -v '^ *+' conftest.er1 >conftest.err |
38816 | rm -f conftest.er1 | |
38817 | cat conftest.err >&5 | |
a848cd7e SC |
38818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38819 | (exit $ac_status); } && | |
0093c2fc | 38820 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38822 | (eval $ac_try) 2>&5 | |
38823 | ac_status=$? | |
38824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38825 | (exit $ac_status); }; } && | |
d12aef51 | 38826 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
38827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38828 | (eval $ac_try) 2>&5 | |
38829 | ac_status=$? | |
38830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38831 | (exit $ac_status); }; }; then | |
d12aef51 | 38832 | ac_cv_header_sys_soundcard=yes |
a848cd7e SC |
38833 | else |
38834 | echo "$as_me: failed program was:" >&5 | |
38835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38836 | ||
a848cd7e | 38837 | |
d12aef51 VZ |
38838 | saveLibs="$LIBS" |
38839 | LIBS="$saveLibs -lossaudio" | |
38840 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
38841 | /* confdefs.h. */ |
38842 | _ACEOF | |
38843 | cat confdefs.h >>conftest.$ac_ext | |
38844 | cat >>conftest.$ac_ext <<_ACEOF | |
38845 | /* end confdefs.h. */ | |
d12aef51 VZ |
38846 | |
38847 | #include <sys/soundcard.h> | |
38848 | ||
38849 | int | |
38850 | main () | |
38851 | { | |
38852 | ||
38853 | ioctl(0, SNDCTL_DSP_SYNC, 0); | |
38854 | ||
38855 | ; | |
38856 | return 0; | |
38857 | } | |
a848cd7e | 38858 | _ACEOF |
d12aef51 VZ |
38859 | rm -f conftest.$ac_objext conftest$ac_exeext |
38860 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
38861 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e SC |
38862 | ac_status=$? |
38863 | grep -v '^ *+' conftest.er1 >conftest.err | |
38864 | rm -f conftest.er1 | |
38865 | cat conftest.err >&5 | |
38866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d12aef51 | 38867 | (exit $ac_status); } && |
0093c2fc | 38868 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
d12aef51 VZ |
38869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38870 | (eval $ac_try) 2>&5 | |
38871 | ac_status=$? | |
38872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38873 | (exit $ac_status); }; } && | |
38874 | { ac_try='test -s conftest$ac_exeext' | |
38875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38876 | (eval $ac_try) 2>&5 | |
38877 | ac_status=$? | |
38878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38879 | (exit $ac_status); }; }; then | |
38880 | ac_cv_header_sys_soundcard=yes | |
a848cd7e SC |
38881 | else |
38882 | echo "$as_me: failed program was:" >&5 | |
38883 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38884 | ||
a848cd7e | 38885 | |
d12aef51 VZ |
38886 | LIBS="$saveLibs" |
38887 | ac_cv_header_sys_soundcard=no | |
38888 | ||
38889 | ||
a848cd7e | 38890 | fi |
d12aef51 VZ |
38891 | rm -f conftest.err conftest.$ac_objext \ |
38892 | conftest$ac_exeext conftest.$ac_ext | |
38893 | ||
a848cd7e SC |
38894 | |
38895 | fi | |
d12aef51 VZ |
38896 | rm -f conftest.err conftest.$ac_objext \ |
38897 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38898 | |
38899 | fi | |
d12aef51 VZ |
38900 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5 |
38901 | echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6 | |
a848cd7e | 38902 | |
d12aef51 VZ |
38903 | if test "$ac_cv_header_sys_soundcard" = "yes"; then |
38904 | cat >>confdefs.h <<\_ACEOF | |
38905 | #define HAVE_SYS_SOUNDCARD_H 1 | |
38906 | _ACEOF | |
a848cd7e | 38907 | |
d12aef51 VZ |
38908 | else |
38909 | DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia" | |
38910 | fi | |
9c112555 MW |
38911 | fi |
38912 | WITH_PLUGIN_SDL=0 | |
38913 | if test "$wxUSE_SOUND" = "yes"; then | |
38914 | if test "$USE_UNIX" = "1" ; then | |
a848cd7e SC |
38915 | if test "$wxUSE_LIBSDL" != "no"; then |
38916 | ||
38917 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. | |
38918 | if test "${with_sdl_prefix+set}" = set; then | |
38919 | withval="$with_sdl_prefix" | |
38920 | sdl_prefix="$withval" | |
38921 | else | |
38922 | sdl_prefix="" | |
38923 | fi; | |
38924 | ||
38925 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. | |
38926 | if test "${with_sdl_exec_prefix+set}" = set; then | |
38927 | withval="$with_sdl_exec_prefix" | |
38928 | sdl_exec_prefix="$withval" | |
38929 | else | |
38930 | sdl_exec_prefix="" | |
38931 | fi; | |
38932 | # Check whether --enable-sdltest or --disable-sdltest was given. | |
38933 | if test "${enable_sdltest+set}" = set; then | |
38934 | enableval="$enable_sdltest" | |
38935 | ||
38936 | else | |
38937 | enable_sdltest=yes | |
38938 | fi; | |
38939 | ||
38940 | if test x$sdl_exec_prefix != x ; then | |
38941 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" | |
38942 | if test x${SDL_CONFIG+set} != xset ; then | |
38943 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
38944 | fi | |
38945 | fi | |
38946 | if test x$sdl_prefix != x ; then | |
38947 | sdl_args="$sdl_args --prefix=$sdl_prefix" | |
38948 | if test x${SDL_CONFIG+set} != xset ; then | |
38949 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
38950 | fi | |
38951 | fi | |
38952 | ||
38953 | ||
38954 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
38955 | # Extract the first word of "sdl-config", so it can be a program name with args. | |
38956 | set dummy sdl-config; ac_word=$2 | |
38957 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38958 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38959 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then | |
38960 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38961 | else | |
38962 | case $SDL_CONFIG in | |
38963 | [\\/]* | ?:[\\/]*) | |
38964 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
38965 | ;; | |
38966 | *) | |
38967 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38968 | for as_dir in $PATH | |
38969 | do | |
38970 | IFS=$as_save_IFS | |
38971 | test -z "$as_dir" && as_dir=. | |
38972 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38973 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38974 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
38975 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38976 | break 2 | |
38977 | fi | |
38978 | done | |
38979 | done | |
38980 | ||
38981 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
38982 | ;; | |
38983 | esac | |
38984 | fi | |
38985 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
38986 | ||
38987 | if test -n "$SDL_CONFIG"; then | |
38988 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 | |
38989 | echo "${ECHO_T}$SDL_CONFIG" >&6 | |
38990 | else | |
38991 | echo "$as_me:$LINENO: result: no" >&5 | |
38992 | echo "${ECHO_T}no" >&6 | |
38993 | fi | |
38994 | ||
38995 | min_sdl_version=1.2.0 | |
38996 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 | |
38997 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 | |
38998 | no_sdl="" | |
38999 | if test "$SDL_CONFIG" = "no" ; then | |
39000 | no_sdl=yes | |
39001 | else | |
39002 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
39003 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
39004 | ||
39005 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
39006 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
39007 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
39008 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
39009 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
39010 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
39011 | if test "x$enable_sdltest" = "xyes" ; then | |
39012 | ac_save_CFLAGS="$CFLAGS" | |
94acd38e | 39013 | ac_save_CXXFLAGS="$CXXFLAGS" |
a848cd7e SC |
39014 | ac_save_LIBS="$LIBS" |
39015 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 39016 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
39017 | LIBS="$LIBS $SDL_LIBS" |
39018 | rm -f conf.sdltest | |
39019 | if test "$cross_compiling" = yes; then | |
39020 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
39021 | else | |
39022 | cat >conftest.$ac_ext <<_ACEOF | |
39023 | /* confdefs.h. */ | |
39024 | _ACEOF | |
39025 | cat confdefs.h >>conftest.$ac_ext | |
39026 | cat >>conftest.$ac_ext <<_ACEOF | |
39027 | /* end confdefs.h. */ | |
39028 | ||
39029 | #include <stdio.h> | |
39030 | #include <stdlib.h> | |
39031 | #include <string.h> | |
39032 | #include "SDL.h" | |
39033 | ||
39034 | char* | |
39035 | my_strdup (char *str) | |
39036 | { | |
39037 | char *new_str; | |
39038 | ||
39039 | if (str) | |
39040 | { | |
39041 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
39042 | strcpy (new_str, str); | |
39043 | } | |
39044 | else | |
39045 | new_str = NULL; | |
39046 | ||
39047 | return new_str; | |
39048 | } | |
39049 | ||
39050 | int main (int argc, char *argv[]) | |
39051 | { | |
39052 | int major, minor, micro; | |
39053 | char *tmp_version; | |
39054 | ||
39055 | /* This hangs on some systems (?) | |
39056 | system ("touch conf.sdltest"); | |
39057 | */ | |
39058 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
39059 | ||
39060 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
39061 | tmp_version = my_strdup("$min_sdl_version"); | |
39062 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
39063 | printf("%s, bad version string\n", "$min_sdl_version"); | |
39064 | exit(1); | |
39065 | } | |
39066 | ||
39067 | if (($sdl_major_version > major) || | |
39068 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
39069 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
39070 | { | |
39071 | return 0; | |
39072 | } | |
39073 | else | |
39074 | { | |
39075 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
39076 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
39077 | printf("*** best to upgrade to the required version.\n"); | |
39078 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
39079 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
39080 | printf("*** config.cache before re-running configure\n"); | |
39081 | return 1; | |
39082 | } | |
39083 | } | |
39084 | ||
39085 | ||
39086 | _ACEOF | |
39087 | rm -f conftest$ac_exeext | |
39088 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
39089 | (eval $ac_link) 2>&5 | |
39090 | ac_status=$? | |
39091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39092 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
39093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39094 | (eval $ac_try) 2>&5 | |
39095 | ac_status=$? | |
39096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39097 | (exit $ac_status); }; }; then | |
39098 | : | |
39099 | else | |
39100 | echo "$as_me: program exited with status $ac_status" >&5 | |
39101 | echo "$as_me: failed program was:" >&5 | |
39102 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39103 | ||
39104 | ( exit $ac_status ) | |
39105 | no_sdl=yes | |
39106 | fi | |
ac1cb8d3 | 39107 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39108 | fi |
39109 | CFLAGS="$ac_save_CFLAGS" | |
94acd38e | 39110 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
39111 | LIBS="$ac_save_LIBS" |
39112 | fi | |
39113 | fi | |
39114 | if test "x$no_sdl" = x ; then | |
39115 | echo "$as_me:$LINENO: result: yes" >&5 | |
39116 | echo "${ECHO_T}yes" >&6 | |
39117 | ||
39118 | EXTRALIBS_SDL="$SDL_LIBS" | |
39119 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" | |
39120 | cat >>confdefs.h <<\_ACEOF | |
39121 | #define wxUSE_LIBSDL 1 | |
39122 | _ACEOF | |
39123 | ||
39124 | ||
39125 | else | |
39126 | echo "$as_me:$LINENO: result: no" >&5 | |
39127 | echo "${ECHO_T}no" >&6 | |
39128 | if test "$SDL_CONFIG" = "no" ; then | |
39129 | echo "*** The sdl-config script installed by SDL could not be found" | |
39130 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
39131 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
39132 | echo "*** full path to sdl-config." | |
39133 | else | |
39134 | if test -f conf.sdltest ; then | |
39135 | : | |
39136 | else | |
39137 | echo "*** Could not run SDL test program, checking why..." | |
39138 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 39139 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
39140 | LIBS="$LIBS $SDL_LIBS" |
39141 | cat >conftest.$ac_ext <<_ACEOF | |
39142 | /* confdefs.h. */ | |
39143 | _ACEOF | |
39144 | cat confdefs.h >>conftest.$ac_ext | |
39145 | cat >>conftest.$ac_ext <<_ACEOF | |
39146 | /* end confdefs.h. */ | |
39147 | ||
39148 | #include <stdio.h> | |
39149 | #include "SDL.h" | |
39150 | ||
39151 | int main(int argc, char *argv[]) | |
39152 | { return 0; } | |
39153 | #undef main | |
39154 | #define main K_and_R_C_main | |
39155 | ||
39156 | int | |
39157 | main () | |
39158 | { | |
39159 | return 0; | |
39160 | ; | |
39161 | return 0; | |
39162 | } | |
39163 | _ACEOF | |
39164 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39165 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39166 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39167 | ac_status=$? |
ac1cb8d3 VS |
39168 | grep -v '^ *+' conftest.er1 >conftest.err |
39169 | rm -f conftest.er1 | |
39170 | cat conftest.err >&5 | |
a848cd7e SC |
39171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39172 | (exit $ac_status); } && | |
0093c2fc | 39173 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39175 | (eval $ac_try) 2>&5 | |
39176 | ac_status=$? | |
39177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39178 | (exit $ac_status); }; } && | |
39179 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39181 | (eval $ac_try) 2>&5 | |
39182 | ac_status=$? | |
39183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39184 | (exit $ac_status); }; }; then | |
39185 | echo "*** The test program compiled, but did not run. This usually means" | |
39186 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
39187 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
39188 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
39189 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
39190 | echo "*** is required on your system" | |
39191 | echo "***" | |
39192 | echo "*** If you have an old version installed, it is best to remove it, although" | |
39193 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
39194 | else | |
39195 | echo "$as_me: failed program was:" >&5 | |
39196 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39197 | ||
39198 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
39199 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
39200 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
39201 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
39202 | fi | |
ac1cb8d3 VS |
39203 | rm -f conftest.err conftest.$ac_objext \ |
39204 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e | 39205 | CFLAGS="$ac_save_CFLAGS" |
94acd38e | 39206 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
39207 | LIBS="$ac_save_LIBS" |
39208 | fi | |
39209 | fi | |
39210 | SDL_CFLAGS="" | |
39211 | SDL_LIBS="" | |
39212 | wxUSE_LIBSDL="no" | |
39213 | fi | |
39214 | ||
39215 | ||
39216 | rm -f conf.sdltest | |
39217 | ||
39218 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
39219 | WITH_PLUGIN_SDL=1 | |
39220 | fi | |
39221 | fi | |
39222 | fi | |
39223 | ||
39224 | cat >>confdefs.h <<\_ACEOF | |
39225 | #define wxUSE_SOUND 1 | |
39226 | _ACEOF | |
39227 | ||
39228 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
39229 | fi | |
39230 | ||
d1c38808 VZ |
39231 | if test "$WXGTK20" = 1; then |
39232 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
39233 | if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then | |
39234 | ||
39235 | ||
39236 | succeeded=no | |
39237 | ||
39238 | if test -z "$PKG_CONFIG"; then | |
39239 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
39240 | set dummy pkg-config; ac_word=$2 | |
39241 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
39242 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
39243 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
39244 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39245 | else | |
39246 | case $PKG_CONFIG in | |
39247 | [\\/]* | ?:[\\/]*) | |
39248 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
39249 | ;; | |
39250 | *) | |
39251 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39252 | for as_dir in $PATH | |
39253 | do | |
39254 | IFS=$as_save_IFS | |
39255 | test -z "$as_dir" && as_dir=. | |
39256 | for ac_exec_ext in '' $ac_executable_extensions; do | |
39257 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
39258 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
39259 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
39260 | break 2 | |
39261 | fi | |
39262 | done | |
39263 | done | |
39264 | ||
39265 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
39266 | ;; | |
39267 | esac | |
39268 | fi | |
39269 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
39270 | ||
39271 | if test -n "$PKG_CONFIG"; then | |
39272 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
39273 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
39274 | else | |
39275 | echo "$as_me:$LINENO: result: no" >&5 | |
39276 | echo "${ECHO_T}no" >&6 | |
39277 | fi | |
39278 | ||
39279 | fi | |
39280 | ||
39281 | if test "$PKG_CONFIG" = "no" ; then | |
39282 | echo "*** The pkg-config script could not be found. Make sure it is" | |
39283 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
39284 | echo "*** to the full path to pkg-config." | |
39285 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
39286 | else | |
39287 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
39288 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
ffa762ff VS |
39289 | echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5 |
39290 | echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6 | |
d1c38808 | 39291 | |
ffa762ff | 39292 | if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then |
d1c38808 VZ |
39293 | echo "$as_me:$LINENO: result: yes" >&5 |
39294 | echo "${ECHO_T}yes" >&6 | |
39295 | succeeded=yes | |
39296 | ||
39297 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5 | |
39298 | echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6 | |
ffa762ff | 39299 | LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
39300 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5 |
39301 | echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6 | |
39302 | ||
39303 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5 | |
39304 | echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6 | |
ffa762ff | 39305 | LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
39306 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5 |
39307 | echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6 | |
39308 | else | |
39309 | LIBGNOMEPRINTUI_CFLAGS="" | |
39310 | LIBGNOMEPRINTUI_LIBS="" | |
39311 | ## If we have a custom action on failure, don't print errors, but | |
39312 | ## do set a variable so people can do so. | |
ffa762ff | 39313 | LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
39314 | |
39315 | fi | |
39316 | ||
39317 | ||
39318 | ||
39319 | else | |
39320 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
39321 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
39322 | fi | |
39323 | fi | |
39324 | ||
39325 | if test $succeeded = yes; then | |
39326 | ||
d1c38808 VZ |
39327 | CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS" |
39328 | cat >>confdefs.h <<\_ACEOF | |
39329 | #define wxUSE_LIBGNOMEPRINT 1 | |
39330 | _ACEOF | |
39331 | ||
39332 | ||
39333 | else | |
39334 | ||
39335 | { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5 | |
39336 | echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;} | |
39337 | wxUSE_LIBGNOMEPRINT="no" | |
39338 | ||
39339 | ||
39340 | fi | |
39341 | ||
39342 | fi | |
39343 | fi | |
39344 | fi | |
39345 | ||
39346 | ||
a848cd7e SC |
39347 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
39348 | cat >>confdefs.h <<\_ACEOF | |
39349 | #define wxUSE_CMDLINE_PARSER 1 | |
39350 | _ACEOF | |
39351 | ||
39352 | fi | |
39353 | ||
39354 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
39355 | cat >>confdefs.h <<\_ACEOF | |
39356 | #define wxUSE_STOPWATCH 1 | |
39357 | _ACEOF | |
39358 | ||
39359 | fi | |
39360 | ||
39361 | if test "$wxUSE_DATETIME" = "yes"; then | |
39362 | cat >>confdefs.h <<\_ACEOF | |
39363 | #define wxUSE_DATETIME 1 | |
39364 | _ACEOF | |
39365 | ||
39366 | fi | |
39367 | ||
39368 | if test "$wxUSE_FILE" = "yes"; then | |
39369 | cat >>confdefs.h <<\_ACEOF | |
39370 | #define wxUSE_FILE 1 | |
39371 | _ACEOF | |
39372 | ||
39373 | fi | |
39374 | ||
39375 | if test "$wxUSE_FFILE" = "yes"; then | |
39376 | cat >>confdefs.h <<\_ACEOF | |
39377 | #define wxUSE_FFILE 1 | |
39378 | _ACEOF | |
39379 | ||
39380 | fi | |
39381 | ||
39382 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
39383 | cat >>confdefs.h <<\_ACEOF | |
39384 | #define wxUSE_FILESYSTEM 1 | |
39385 | _ACEOF | |
39386 | ||
39387 | fi | |
39388 | ||
39389 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
39390 | cat >>confdefs.h <<\_ACEOF | |
39391 | #define wxUSE_FS_ZIP 1 | |
39392 | _ACEOF | |
39393 | ||
39394 | fi | |
39395 | ||
9e8e867f | 39396 | if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then |
a848cd7e | 39397 | cat >>confdefs.h <<\_ACEOF |
9e8e867f | 39398 | #define wxUSE_ARCHIVE_STREAMS 1 |
81f90336 MW |
39399 | _ACEOF |
39400 | ||
39401 | fi | |
39402 | ||
39403 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
9e8e867f | 39404 | if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then |
81f90336 MW |
39405 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5 |
39406 | echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;} | |
39407 | elif test "$wxUSE_ZLIB" = "no"; then | |
39408 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5 | |
39409 | echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;} | |
39410 | else | |
39411 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
39412 | #define wxUSE_ZIPSTREAM 1 |
39413 | _ACEOF | |
39414 | ||
81f90336 | 39415 | fi |
a848cd7e SC |
39416 | fi |
39417 | ||
a848cd7e | 39418 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
18228ab4 MW |
39419 | if test "$USE_UNIX" != 1; then |
39420 | { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5 | |
39421 | echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;} | |
39422 | wxUSE_ON_FATAL_EXCEPTION=no | |
39423 | else | |
39424 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
39425 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
39426 | _ACEOF | |
39427 | ||
18228ab4 | 39428 | fi |
a848cd7e SC |
39429 | fi |
39430 | ||
eaff0f0d VZ |
39431 | if test "$wxUSE_STACKWALKER" = "yes"; then |
39432 | cat >>confdefs.h <<\_ACEOF | |
39433 | #define wxUSE_STACKWALKER 1 | |
39434 | _ACEOF | |
39435 | ||
39436 | fi | |
39437 | ||
36b6448c | 39438 | if test "$wxUSE_DEBUGREPORT" = "yes"; then |
18228ab4 MW |
39439 | if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then |
39440 | { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5 | |
39441 | echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;} | |
dfe0c803 JS |
39442 | wxUSE_DEBUGREPORT=no |
39443 | else | |
39444 | cat >>confdefs.h <<\_ACEOF | |
36b6448c VZ |
39445 | #define wxUSE_DEBUGREPORT 1 |
39446 | _ACEOF | |
39447 | ||
21dfc162 MW |
39448 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
39449 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt" | |
39450 | fi | |
dfe0c803 | 39451 | fi |
36b6448c VZ |
39452 | fi |
39453 | ||
a848cd7e SC |
39454 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
39455 | cat >>confdefs.h <<\_ACEOF | |
39456 | #define wxUSE_SNGLINST_CHECKER 1 | |
39457 | _ACEOF | |
39458 | ||
39459 | fi | |
39460 | ||
39461 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
39462 | cat >>confdefs.h <<\_ACEOF | |
39463 | #define wxUSE_BUSYINFO 1 | |
39464 | _ACEOF | |
39465 | ||
39466 | fi | |
39467 | ||
39468 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
39469 | cat >>confdefs.h <<\_ACEOF | |
39470 | #define wxUSE_STD_IOSTREAM 1 | |
39471 | _ACEOF | |
39472 | ||
39473 | fi | |
39474 | ||
59746b65 MW |
39475 | if test "$wxUSE_STD_STRING" = "yes"; then |
39476 | cat >>confdefs.h <<\_ACEOF | |
39477 | #define wxUSE_STD_STRING 1 | |
39478 | _ACEOF | |
39479 | ||
39480 | fi | |
39481 | ||
07158944 VZ |
39482 | if test "$wxUSE_STDPATHS" = "yes"; then |
39483 | cat >>confdefs.h <<\_ACEOF | |
39484 | #define wxUSE_STDPATHS 1 | |
39485 | _ACEOF | |
39486 | ||
39487 | fi | |
39488 | ||
a848cd7e SC |
39489 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
39490 | cat >>confdefs.h <<\_ACEOF | |
39491 | #define wxUSE_TEXTBUFFER 1 | |
39492 | _ACEOF | |
39493 | ||
39494 | fi | |
39495 | ||
39496 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
39497 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
39498 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
39499 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
39500 | else | |
39501 | cat >>confdefs.h <<\_ACEOF | |
39502 | #define wxUSE_TEXTFILE 1 | |
39503 | _ACEOF | |
39504 | ||
39505 | fi | |
39506 | fi | |
39507 | ||
39508 | if test "$wxUSE_CONFIG" = "yes" ; then | |
39509 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
39510 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
39511 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
39512 | else | |
39513 | cat >>confdefs.h <<\_ACEOF | |
39514 | #define wxUSE_CONFIG 1 | |
89be85c2 VS |
39515 | _ACEOF |
39516 | ||
39517 | cat >>confdefs.h <<\_ACEOF | |
39518 | #define wxUSE_CONFIG_NATIVE 1 | |
a848cd7e SC |
39519 | _ACEOF |
39520 | ||
39521 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
39522 | fi | |
39523 | fi | |
39524 | ||
39525 | if test "$wxUSE_INTL" = "yes" ; then | |
39526 | if test "$wxUSE_FILE" != "yes"; then | |
39527 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
39528 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
39529 | else | |
39530 | cat >>confdefs.h <<\_ACEOF | |
39531 | #define wxUSE_INTL 1 | |
39532 | _ACEOF | |
39533 | ||
39534 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
39535 | GUIDIST="$GUIDIST INTL_DIST" | |
39536 | fi | |
39537 | fi | |
39538 | ||
39539 | if test "$wxUSE_LOG" = "yes"; then | |
39540 | cat >>confdefs.h <<\_ACEOF | |
39541 | #define wxUSE_LOG 1 | |
39542 | _ACEOF | |
39543 | ||
39544 | ||
39545 | if test "$wxUSE_LOGGUI" = "yes"; then | |
39546 | cat >>confdefs.h <<\_ACEOF | |
39547 | #define wxUSE_LOGGUI 1 | |
39548 | _ACEOF | |
39549 | ||
39550 | fi | |
39551 | ||
39552 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
39553 | cat >>confdefs.h <<\_ACEOF | |
39554 | #define wxUSE_LOGWINDOW 1 | |
39555 | _ACEOF | |
39556 | ||
39557 | fi | |
39558 | ||
39559 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
39560 | cat >>confdefs.h <<\_ACEOF | |
39561 | #define wxUSE_LOG_DIALOG 1 | |
39562 | _ACEOF | |
39563 | ||
39564 | fi | |
0b78747f MW |
39565 | |
39566 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard" | |
a848cd7e SC |
39567 | fi |
39568 | ||
39569 | if test "$wxUSE_LONGLONG" = "yes"; then | |
39570 | cat >>confdefs.h <<\_ACEOF | |
39571 | #define wxUSE_LONGLONG 1 | |
39572 | _ACEOF | |
39573 | ||
39574 | fi | |
39575 | ||
39576 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
39577 | cat >>confdefs.h <<\_ACEOF | |
39578 | #define wxUSE_GEOMETRY 1 | |
39579 | _ACEOF | |
39580 | ||
39581 | fi | |
39582 | ||
a848cd7e SC |
39583 | if test "$wxUSE_STREAMS" = "yes" ; then |
39584 | cat >>confdefs.h <<\_ACEOF | |
39585 | #define wxUSE_STREAMS 1 | |
39586 | _ACEOF | |
39587 | ||
39588 | fi | |
39589 | ||
39590 | ||
39591 | if test "$wxUSE_DATETIME" = "yes"; then | |
39592 | ||
39593 | for ac_func in strptime | |
39594 | do | |
39595 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
39596 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39597 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
39598 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
39599 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39600 | else | |
39601 | cat >conftest.$ac_ext <<_ACEOF | |
39602 | /* confdefs.h. */ | |
39603 | _ACEOF | |
39604 | cat confdefs.h >>conftest.$ac_ext | |
39605 | cat >>conftest.$ac_ext <<_ACEOF | |
39606 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
39607 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
39608 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39609 | #define $ac_func innocuous_$ac_func | |
39610 | ||
a848cd7e SC |
39611 | /* System header to define __stub macros and hopefully few prototypes, |
39612 | which can conflict with char $ac_func (); below. | |
39613 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39614 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39615 | |
a848cd7e SC |
39616 | #ifdef __STDC__ |
39617 | # include <limits.h> | |
39618 | #else | |
39619 | # include <assert.h> | |
39620 | #endif | |
ac1cb8d3 VS |
39621 | |
39622 | #undef $ac_func | |
39623 | ||
a848cd7e SC |
39624 | /* Override any gcc2 internal prototype to avoid an error. */ |
39625 | #ifdef __cplusplus | |
39626 | extern "C" | |
39627 | { | |
39628 | #endif | |
39629 | /* We use char because int might match the return type of a gcc2 | |
39630 | builtin and then its argument prototype would still apply. */ | |
39631 | char $ac_func (); | |
39632 | /* The GNU C library defines this for functions which it implements | |
39633 | to always fail with ENOSYS. Some functions are actually named | |
39634 | something starting with __ and the normal name is an alias. */ | |
39635 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39636 | choke me | |
39637 | #else | |
39638 | char (*f) () = $ac_func; | |
39639 | #endif | |
39640 | #ifdef __cplusplus | |
39641 | } | |
39642 | #endif | |
39643 | ||
39644 | int | |
39645 | main () | |
39646 | { | |
39647 | return f != $ac_func; | |
39648 | ; | |
39649 | return 0; | |
39650 | } | |
39651 | _ACEOF | |
39652 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39653 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39654 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39655 | ac_status=$? |
ac1cb8d3 VS |
39656 | grep -v '^ *+' conftest.er1 >conftest.err |
39657 | rm -f conftest.er1 | |
39658 | cat conftest.err >&5 | |
a848cd7e SC |
39659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39660 | (exit $ac_status); } && | |
0093c2fc | 39661 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39663 | (eval $ac_try) 2>&5 | |
39664 | ac_status=$? | |
39665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39666 | (exit $ac_status); }; } && | |
39667 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39669 | (eval $ac_try) 2>&5 | |
39670 | ac_status=$? | |
39671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39672 | (exit $ac_status); }; }; then | |
39673 | eval "$as_ac_var=yes" | |
39674 | else | |
39675 | echo "$as_me: failed program was:" >&5 | |
39676 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39677 | ||
39678 | eval "$as_ac_var=no" | |
39679 | fi | |
ac1cb8d3 VS |
39680 | rm -f conftest.err conftest.$ac_objext \ |
39681 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39682 | fi |
39683 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39684 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39685 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39686 | cat >>confdefs.h <<_ACEOF | |
39687 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39688 | _ACEOF | |
39689 | ||
39690 | fi | |
39691 | done | |
39692 | ||
f536f005 VZ |
39693 | if test "$ac_cv_func_strptime" = "yes"; then |
39694 | echo "$as_me:$LINENO: checking for strptime declaration" >&5 | |
39695 | echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6 | |
39696 | if test "${wx_cv_func_strptime_decl+set}" = set; then | |
39697 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39698 | else | |
39699 | ||
39700 | ||
39701 | ||
39702 | ac_ext=cc | |
39703 | ac_cpp='$CXXCPP $CPPFLAGS' | |
39704 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
39705 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
39706 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
39707 | ||
39708 | cat >conftest.$ac_ext <<_ACEOF | |
39709 | /* confdefs.h. */ | |
39710 | _ACEOF | |
39711 | cat confdefs.h >>conftest.$ac_ext | |
39712 | cat >>conftest.$ac_ext <<_ACEOF | |
39713 | /* end confdefs.h. */ | |
39714 | ||
39715 | #include <time.h> | |
39716 | ||
39717 | int | |
39718 | main () | |
39719 | { | |
39720 | ||
39721 | struct tm t; | |
39722 | strptime("foo", "bar", &t); | |
39723 | ||
39724 | ; | |
39725 | return 0; | |
39726 | } | |
39727 | _ACEOF | |
39728 | rm -f conftest.$ac_objext | |
39729 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39730 | (eval $ac_compile) 2>conftest.er1 | |
39731 | ac_status=$? | |
39732 | grep -v '^ *+' conftest.er1 >conftest.err | |
39733 | rm -f conftest.er1 | |
39734 | cat conftest.err >&5 | |
39735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39736 | (exit $ac_status); } && | |
0093c2fc | 39737 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
f536f005 VZ |
39738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39739 | (eval $ac_try) 2>&5 | |
39740 | ac_status=$? | |
39741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39742 | (exit $ac_status); }; } && | |
39743 | { ac_try='test -s conftest.$ac_objext' | |
39744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39745 | (eval $ac_try) 2>&5 | |
39746 | ac_status=$? | |
39747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39748 | (exit $ac_status); }; }; then | |
39749 | wx_cv_func_strptime_decl=yes | |
39750 | else | |
39751 | echo "$as_me: failed program was:" >&5 | |
39752 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39753 | ||
39754 | wx_cv_func_strptime_decl=no | |
39755 | ||
39756 | fi | |
39757 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39758 | ac_ext=c | |
39759 | ac_cpp='$CPP $CPPFLAGS' | |
39760 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
39761 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
39762 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
39763 | ||
39764 | ||
39765 | ||
39766 | fi | |
39767 | echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5 | |
39768 | echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6 | |
39769 | fi | |
39770 | if test "$wx_cv_func_strptime_decl" = "yes"; then | |
39771 | cat >>confdefs.h <<\_ACEOF | |
39772 | #define HAVE_STRPTIME_DECL 1 | |
39773 | _ACEOF | |
39774 | ||
39775 | fi | |
a848cd7e SC |
39776 | |
39777 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
39778 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
39779 | if test "${wx_cv_var_timezone+set}" = set; then | |
39780 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39781 | else | |
39782 | ||
39783 | cat >conftest.$ac_ext <<_ACEOF | |
39784 | /* confdefs.h. */ | |
39785 | _ACEOF | |
39786 | cat confdefs.h >>conftest.$ac_ext | |
39787 | cat >>conftest.$ac_ext <<_ACEOF | |
39788 | /* end confdefs.h. */ | |
39789 | ||
39790 | #include <time.h> | |
39791 | ||
39792 | int | |
39793 | main () | |
39794 | { | |
39795 | ||
39796 | int tz; | |
39797 | tz = timezone; | |
39798 | ||
39799 | ; | |
39800 | return 0; | |
39801 | } | |
39802 | _ACEOF | |
39803 | rm -f conftest.$ac_objext | |
39804 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39805 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39806 | ac_status=$? |
ac1cb8d3 VS |
39807 | grep -v '^ *+' conftest.er1 >conftest.err |
39808 | rm -f conftest.er1 | |
39809 | cat conftest.err >&5 | |
a848cd7e SC |
39810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39811 | (exit $ac_status); } && | |
0093c2fc | 39812 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39814 | (eval $ac_try) 2>&5 | |
39815 | ac_status=$? | |
39816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39817 | (exit $ac_status); }; } && | |
39818 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39820 | (eval $ac_try) 2>&5 | |
39821 | ac_status=$? | |
39822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39823 | (exit $ac_status); }; }; then | |
39824 | ||
39825 | wx_cv_var_timezone=timezone | |
39826 | ||
39827 | else | |
39828 | echo "$as_me: failed program was:" >&5 | |
39829 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39830 | ||
39831 | ||
39832 | cat >conftest.$ac_ext <<_ACEOF | |
39833 | /* confdefs.h. */ | |
39834 | _ACEOF | |
39835 | cat confdefs.h >>conftest.$ac_ext | |
39836 | cat >>conftest.$ac_ext <<_ACEOF | |
39837 | /* end confdefs.h. */ | |
39838 | ||
39839 | #include <time.h> | |
39840 | ||
39841 | int | |
39842 | main () | |
39843 | { | |
39844 | ||
39845 | int tz; | |
39846 | tz = _timezone; | |
39847 | ||
39848 | ; | |
39849 | return 0; | |
39850 | } | |
39851 | _ACEOF | |
39852 | rm -f conftest.$ac_objext | |
39853 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39854 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39855 | ac_status=$? |
ac1cb8d3 VS |
39856 | grep -v '^ *+' conftest.er1 >conftest.err |
39857 | rm -f conftest.er1 | |
39858 | cat conftest.err >&5 | |
a848cd7e SC |
39859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39860 | (exit $ac_status); } && | |
0093c2fc | 39861 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39863 | (eval $ac_try) 2>&5 | |
39864 | ac_status=$? | |
39865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39866 | (exit $ac_status); }; } && | |
39867 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39869 | (eval $ac_try) 2>&5 | |
39870 | ac_status=$? | |
39871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39872 | (exit $ac_status); }; }; then | |
39873 | ||
39874 | wx_cv_var_timezone=_timezone | |
39875 | ||
39876 | else | |
39877 | echo "$as_me: failed program was:" >&5 | |
39878 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39879 | ||
39880 | ||
39881 | cat >conftest.$ac_ext <<_ACEOF | |
39882 | /* confdefs.h. */ | |
39883 | _ACEOF | |
39884 | cat confdefs.h >>conftest.$ac_ext | |
39885 | cat >>conftest.$ac_ext <<_ACEOF | |
39886 | /* end confdefs.h. */ | |
39887 | ||
39888 | #include <time.h> | |
39889 | ||
39890 | int | |
39891 | main () | |
39892 | { | |
39893 | ||
39894 | int tz; | |
39895 | tz = __timezone; | |
39896 | ||
39897 | ; | |
39898 | return 0; | |
39899 | } | |
39900 | _ACEOF | |
39901 | rm -f conftest.$ac_objext | |
39902 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 39903 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 39904 | ac_status=$? |
ac1cb8d3 VS |
39905 | grep -v '^ *+' conftest.er1 >conftest.err |
39906 | rm -f conftest.er1 | |
39907 | cat conftest.err >&5 | |
a848cd7e SC |
39908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39909 | (exit $ac_status); } && | |
0093c2fc | 39910 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39912 | (eval $ac_try) 2>&5 | |
39913 | ac_status=$? | |
39914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39915 | (exit $ac_status); }; } && | |
39916 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
39917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39918 | (eval $ac_try) 2>&5 | |
39919 | ac_status=$? | |
39920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39921 | (exit $ac_status); }; }; then | |
39922 | ||
39923 | wx_cv_var_timezone=__timezone | |
39924 | ||
39925 | else | |
39926 | echo "$as_me: failed program was:" >&5 | |
39927 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39928 | ||
39929 | ||
39930 | if test "$USE_DOS" = 0 ; then | |
39931 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
39932 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
39933 | fi | |
39934 | ||
39935 | ||
39936 | fi | |
ac1cb8d3 | 39937 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39938 | |
39939 | ||
39940 | fi | |
ac1cb8d3 | 39941 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39942 | |
39943 | ||
39944 | fi | |
ac1cb8d3 | 39945 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
39946 | |
39947 | ||
39948 | fi | |
39949 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
39950 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
39951 | ||
39952 | if test "x$wx_cv_var_timezone" != x ; then | |
39953 | cat >>confdefs.h <<_ACEOF | |
39954 | #define WX_TIMEZONE $wx_cv_var_timezone | |
39955 | _ACEOF | |
39956 | ||
39957 | fi | |
39958 | ||
39959 | ||
39960 | for ac_func in localtime | |
39961 | do | |
39962 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
39963 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39964 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
39965 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
39966 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39967 | else | |
39968 | cat >conftest.$ac_ext <<_ACEOF | |
39969 | /* confdefs.h. */ | |
39970 | _ACEOF | |
39971 | cat confdefs.h >>conftest.$ac_ext | |
39972 | cat >>conftest.$ac_ext <<_ACEOF | |
39973 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
39974 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
39975 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39976 | #define $ac_func innocuous_$ac_func | |
39977 | ||
a848cd7e SC |
39978 | /* System header to define __stub macros and hopefully few prototypes, |
39979 | which can conflict with char $ac_func (); below. | |
39980 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39981 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39982 | |
a848cd7e SC |
39983 | #ifdef __STDC__ |
39984 | # include <limits.h> | |
39985 | #else | |
39986 | # include <assert.h> | |
39987 | #endif | |
ac1cb8d3 VS |
39988 | |
39989 | #undef $ac_func | |
39990 | ||
a848cd7e SC |
39991 | /* Override any gcc2 internal prototype to avoid an error. */ |
39992 | #ifdef __cplusplus | |
39993 | extern "C" | |
39994 | { | |
39995 | #endif | |
39996 | /* We use char because int might match the return type of a gcc2 | |
39997 | builtin and then its argument prototype would still apply. */ | |
39998 | char $ac_func (); | |
39999 | /* The GNU C library defines this for functions which it implements | |
40000 | to always fail with ENOSYS. Some functions are actually named | |
40001 | something starting with __ and the normal name is an alias. */ | |
40002 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
40003 | choke me | |
40004 | #else | |
40005 | char (*f) () = $ac_func; | |
40006 | #endif | |
40007 | #ifdef __cplusplus | |
40008 | } | |
40009 | #endif | |
40010 | ||
40011 | int | |
40012 | main () | |
40013 | { | |
40014 | return f != $ac_func; | |
40015 | ; | |
40016 | return 0; | |
40017 | } | |
40018 | _ACEOF | |
40019 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40020 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40021 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40022 | ac_status=$? |
ac1cb8d3 VS |
40023 | grep -v '^ *+' conftest.er1 >conftest.err |
40024 | rm -f conftest.er1 | |
40025 | cat conftest.err >&5 | |
a848cd7e SC |
40026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40027 | (exit $ac_status); } && | |
0093c2fc | 40028 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40030 | (eval $ac_try) 2>&5 | |
40031 | ac_status=$? | |
40032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40033 | (exit $ac_status); }; } && | |
40034 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40036 | (eval $ac_try) 2>&5 | |
40037 | ac_status=$? | |
40038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40039 | (exit $ac_status); }; }; then | |
40040 | eval "$as_ac_var=yes" | |
40041 | else | |
40042 | echo "$as_me: failed program was:" >&5 | |
40043 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40044 | ||
40045 | eval "$as_ac_var=no" | |
40046 | fi | |
ac1cb8d3 VS |
40047 | rm -f conftest.err conftest.$ac_objext \ |
40048 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40049 | fi |
40050 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
40051 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
40052 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
40053 | cat >>confdefs.h <<_ACEOF | |
40054 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
40055 | _ACEOF | |
40056 | ||
40057 | fi | |
40058 | done | |
40059 | ||
40060 | ||
40061 | if test "$ac_cv_func_localtime" = "yes"; then | |
40062 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
40063 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
40064 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
40065 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40066 | else | |
40067 | ||
40068 | cat >conftest.$ac_ext <<_ACEOF | |
40069 | /* confdefs.h. */ | |
40070 | _ACEOF | |
40071 | cat confdefs.h >>conftest.$ac_ext | |
40072 | cat >>conftest.$ac_ext <<_ACEOF | |
40073 | /* end confdefs.h. */ | |
40074 | ||
40075 | #include <time.h> | |
40076 | ||
40077 | int | |
40078 | main () | |
40079 | { | |
40080 | ||
40081 | struct tm tm; | |
40082 | tm.tm_gmtoff++; | |
40083 | ||
40084 | ; | |
40085 | return 0; | |
40086 | } | |
40087 | _ACEOF | |
40088 | rm -f conftest.$ac_objext | |
40089 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40090 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 40091 | ac_status=$? |
ac1cb8d3 VS |
40092 | grep -v '^ *+' conftest.er1 >conftest.err |
40093 | rm -f conftest.er1 | |
40094 | cat conftest.err >&5 | |
a848cd7e SC |
40095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40096 | (exit $ac_status); } && | |
0093c2fc | 40097 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40099 | (eval $ac_try) 2>&5 | |
40100 | ac_status=$? | |
40101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40102 | (exit $ac_status); }; } && | |
40103 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
40104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40105 | (eval $ac_try) 2>&5 | |
40106 | ac_status=$? | |
40107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40108 | (exit $ac_status); }; }; then | |
40109 | ||
40110 | wx_cv_struct_tm_has_gmtoff=yes | |
40111 | ||
40112 | else | |
40113 | echo "$as_me: failed program was:" >&5 | |
40114 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40115 | ||
40116 | wx_cv_struct_tm_has_gmtoff=no | |
40117 | ||
40118 | fi | |
ac1cb8d3 | 40119 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
40120 | |
40121 | fi | |
40122 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
40123 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
40124 | fi | |
40125 | ||
40126 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
40127 | cat >>confdefs.h <<\_ACEOF | |
40128 | #define WX_GMTOFF_IN_TM 1 | |
40129 | _ACEOF | |
40130 | ||
40131 | fi | |
40132 | ||
40133 | ||
40134 | ||
40135 | for ac_func in gettimeofday ftime | |
40136 | do | |
40137 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
40138 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
40139 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
40140 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
40141 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40142 | else | |
40143 | cat >conftest.$ac_ext <<_ACEOF | |
40144 | /* confdefs.h. */ | |
40145 | _ACEOF | |
40146 | cat confdefs.h >>conftest.$ac_ext | |
40147 | cat >>conftest.$ac_ext <<_ACEOF | |
40148 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
40149 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
40150 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40151 | #define $ac_func innocuous_$ac_func | |
40152 | ||
a848cd7e SC |
40153 | /* System header to define __stub macros and hopefully few prototypes, |
40154 | which can conflict with char $ac_func (); below. | |
40155 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40156 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 40157 | |
a848cd7e SC |
40158 | #ifdef __STDC__ |
40159 | # include <limits.h> | |
40160 | #else | |
40161 | # include <assert.h> | |
40162 | #endif | |
ac1cb8d3 VS |
40163 | |
40164 | #undef $ac_func | |
40165 | ||
a848cd7e SC |
40166 | /* Override any gcc2 internal prototype to avoid an error. */ |
40167 | #ifdef __cplusplus | |
40168 | extern "C" | |
40169 | { | |
40170 | #endif | |
40171 | /* We use char because int might match the return type of a gcc2 | |
40172 | builtin and then its argument prototype would still apply. */ | |
40173 | char $ac_func (); | |
40174 | /* The GNU C library defines this for functions which it implements | |
40175 | to always fail with ENOSYS. Some functions are actually named | |
40176 | something starting with __ and the normal name is an alias. */ | |
40177 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
40178 | choke me | |
40179 | #else | |
40180 | char (*f) () = $ac_func; | |
40181 | #endif | |
40182 | #ifdef __cplusplus | |
40183 | } | |
40184 | #endif | |
40185 | ||
40186 | int | |
40187 | main () | |
40188 | { | |
40189 | return f != $ac_func; | |
40190 | ; | |
40191 | return 0; | |
40192 | } | |
40193 | _ACEOF | |
40194 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40195 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40196 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40197 | ac_status=$? |
ac1cb8d3 VS |
40198 | grep -v '^ *+' conftest.er1 >conftest.err |
40199 | rm -f conftest.er1 | |
40200 | cat conftest.err >&5 | |
a848cd7e SC |
40201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40202 | (exit $ac_status); } && | |
0093c2fc | 40203 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40205 | (eval $ac_try) 2>&5 | |
40206 | ac_status=$? | |
40207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40208 | (exit $ac_status); }; } && | |
40209 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40211 | (eval $ac_try) 2>&5 | |
40212 | ac_status=$? | |
40213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40214 | (exit $ac_status); }; }; then | |
40215 | eval "$as_ac_var=yes" | |
40216 | else | |
40217 | echo "$as_me: failed program was:" >&5 | |
40218 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40219 | ||
40220 | eval "$as_ac_var=no" | |
40221 | fi | |
ac1cb8d3 VS |
40222 | rm -f conftest.err conftest.$ac_objext \ |
40223 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40224 | fi |
40225 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
40226 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
40227 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
40228 | cat >>confdefs.h <<_ACEOF | |
40229 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
40230 | _ACEOF | |
40231 | break | |
40232 | fi | |
40233 | done | |
40234 | ||
40235 | ||
40236 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
40237 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
40238 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
40239 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
40240 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40241 | else | |
40242 | ||
40243 | ||
40244 | ||
40245 | ac_ext=cc | |
40246 | ac_cpp='$CXXCPP $CPPFLAGS' | |
40247 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
40248 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
40249 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
40250 | ||
40251 | ||
40252 | cat >conftest.$ac_ext <<_ACEOF | |
40253 | /* confdefs.h. */ | |
40254 | _ACEOF | |
40255 | cat confdefs.h >>conftest.$ac_ext | |
40256 | cat >>conftest.$ac_ext <<_ACEOF | |
40257 | /* end confdefs.h. */ | |
40258 | ||
40259 | #include <sys/time.h> | |
40260 | #include <unistd.h> | |
40261 | ||
40262 | int | |
40263 | main () | |
40264 | { | |
40265 | ||
40266 | struct timeval tv; | |
40267 | gettimeofday(&tv, NULL); | |
40268 | ||
40269 | ; | |
40270 | return 0; | |
40271 | } | |
40272 | _ACEOF | |
40273 | rm -f conftest.$ac_objext | |
40274 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40275 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 40276 | ac_status=$? |
ac1cb8d3 VS |
40277 | grep -v '^ *+' conftest.er1 >conftest.err |
40278 | rm -f conftest.er1 | |
40279 | cat conftest.err >&5 | |
a848cd7e SC |
40280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40281 | (exit $ac_status); } && | |
0093c2fc | 40282 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40284 | (eval $ac_try) 2>&5 | |
40285 | ac_status=$? | |
40286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40287 | (exit $ac_status); }; } && | |
40288 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
40289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40290 | (eval $ac_try) 2>&5 | |
40291 | ac_status=$? | |
40292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40293 | (exit $ac_status); }; }; then | |
40294 | wx_cv_func_gettimeofday_has_2_args=yes | |
40295 | else | |
40296 | echo "$as_me: failed program was:" >&5 | |
40297 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40298 | ||
40299 | cat >conftest.$ac_ext <<_ACEOF | |
40300 | /* confdefs.h. */ | |
40301 | _ACEOF | |
40302 | cat confdefs.h >>conftest.$ac_ext | |
40303 | cat >>conftest.$ac_ext <<_ACEOF | |
40304 | /* end confdefs.h. */ | |
40305 | ||
40306 | #include <sys/time.h> | |
40307 | #include <unistd.h> | |
40308 | ||
40309 | int | |
40310 | main () | |
40311 | { | |
40312 | ||
40313 | struct timeval tv; | |
40314 | gettimeofday(&tv); | |
40315 | ||
40316 | ; | |
40317 | return 0; | |
40318 | } | |
40319 | _ACEOF | |
40320 | rm -f conftest.$ac_objext | |
40321 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40322 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 40323 | ac_status=$? |
ac1cb8d3 VS |
40324 | grep -v '^ *+' conftest.er1 >conftest.err |
40325 | rm -f conftest.er1 | |
40326 | cat conftest.err >&5 | |
a848cd7e SC |
40327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40328 | (exit $ac_status); } && | |
0093c2fc | 40329 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40331 | (eval $ac_try) 2>&5 | |
40332 | ac_status=$? | |
40333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40334 | (exit $ac_status); }; } && | |
40335 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
40336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40337 | (eval $ac_try) 2>&5 | |
40338 | ac_status=$? | |
40339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40340 | (exit $ac_status); }; }; then | |
40341 | wx_cv_func_gettimeofday_has_2_args=no | |
40342 | else | |
40343 | echo "$as_me: failed program was:" >&5 | |
40344 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40345 | ||
40346 | ||
40347 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
40348 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
40349 | wx_cv_func_gettimeofday_has_2_args=unknown | |
40350 | ||
40351 | ||
40352 | fi | |
ac1cb8d3 | 40353 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
40354 | |
40355 | fi | |
ac1cb8d3 | 40356 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
40357 | ac_ext=c |
40358 | ac_cpp='$CPP $CPPFLAGS' | |
40359 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
40360 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
40361 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
40362 | ||
40363 | ||
40364 | fi | |
40365 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
40366 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
40367 | ||
40368 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
40369 | cat >>confdefs.h <<\_ACEOF | |
40370 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
40371 | _ACEOF | |
40372 | ||
40373 | fi | |
40374 | fi | |
40375 | ||
40376 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
40377 | fi | |
40378 | ||
40379 | ||
40380 | if test "$wxUSE_SOCKETS" = "yes"; then | |
40381 | if test "$wxUSE_MGL" = "1"; then | |
40382 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
40383 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
40384 | wxUSE_SOCKETS="no" | |
40385 | fi | |
40386 | fi | |
40387 | ||
40388 | if test "$wxUSE_SOCKETS" = "yes"; then | |
40389 | if test "$TOOLKIT" != "MSW"; then | |
40390 | echo "$as_me:$LINENO: checking for socket" >&5 | |
40391 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
40392 | if test "${ac_cv_func_socket+set}" = set; then | |
40393 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40394 | else | |
40395 | cat >conftest.$ac_ext <<_ACEOF | |
40396 | /* confdefs.h. */ | |
40397 | _ACEOF | |
40398 | cat confdefs.h >>conftest.$ac_ext | |
40399 | cat >>conftest.$ac_ext <<_ACEOF | |
40400 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
40401 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
40402 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40403 | #define socket innocuous_socket | |
40404 | ||
a848cd7e SC |
40405 | /* System header to define __stub macros and hopefully few prototypes, |
40406 | which can conflict with char socket (); below. | |
40407 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40408 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 40409 | |
a848cd7e SC |
40410 | #ifdef __STDC__ |
40411 | # include <limits.h> | |
40412 | #else | |
40413 | # include <assert.h> | |
40414 | #endif | |
ac1cb8d3 VS |
40415 | |
40416 | #undef socket | |
40417 | ||
a848cd7e SC |
40418 | /* Override any gcc2 internal prototype to avoid an error. */ |
40419 | #ifdef __cplusplus | |
40420 | extern "C" | |
40421 | { | |
40422 | #endif | |
40423 | /* We use char because int might match the return type of a gcc2 | |
40424 | builtin and then its argument prototype would still apply. */ | |
40425 | char socket (); | |
40426 | /* The GNU C library defines this for functions which it implements | |
40427 | to always fail with ENOSYS. Some functions are actually named | |
40428 | something starting with __ and the normal name is an alias. */ | |
40429 | #if defined (__stub_socket) || defined (__stub___socket) | |
40430 | choke me | |
40431 | #else | |
40432 | char (*f) () = socket; | |
40433 | #endif | |
40434 | #ifdef __cplusplus | |
40435 | } | |
40436 | #endif | |
40437 | ||
40438 | int | |
40439 | main () | |
40440 | { | |
40441 | return f != socket; | |
40442 | ; | |
40443 | return 0; | |
40444 | } | |
40445 | _ACEOF | |
40446 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40447 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40448 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40449 | ac_status=$? |
ac1cb8d3 VS |
40450 | grep -v '^ *+' conftest.er1 >conftest.err |
40451 | rm -f conftest.er1 | |
40452 | cat conftest.err >&5 | |
a848cd7e SC |
40453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40454 | (exit $ac_status); } && | |
0093c2fc | 40455 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40457 | (eval $ac_try) 2>&5 | |
40458 | ac_status=$? | |
40459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40460 | (exit $ac_status); }; } && | |
40461 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40463 | (eval $ac_try) 2>&5 | |
40464 | ac_status=$? | |
40465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40466 | (exit $ac_status); }; }; then | |
40467 | ac_cv_func_socket=yes | |
40468 | else | |
40469 | echo "$as_me: failed program was:" >&5 | |
40470 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40471 | ||
40472 | ac_cv_func_socket=no | |
40473 | fi | |
ac1cb8d3 VS |
40474 | rm -f conftest.err conftest.$ac_objext \ |
40475 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40476 | fi |
40477 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
40478 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
40479 | if test $ac_cv_func_socket = yes; then | |
40480 | : | |
40481 | else | |
40482 | ||
40483 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
40484 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
40485 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
40486 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40487 | else | |
40488 | ac_check_lib_save_LIBS=$LIBS | |
40489 | LIBS="-lsocket $LIBS" | |
40490 | cat >conftest.$ac_ext <<_ACEOF | |
40491 | /* confdefs.h. */ | |
40492 | _ACEOF | |
40493 | cat confdefs.h >>conftest.$ac_ext | |
40494 | cat >>conftest.$ac_ext <<_ACEOF | |
40495 | /* end confdefs.h. */ | |
40496 | ||
40497 | /* Override any gcc2 internal prototype to avoid an error. */ | |
40498 | #ifdef __cplusplus | |
40499 | extern "C" | |
40500 | #endif | |
40501 | /* We use char because int might match the return type of a gcc2 | |
40502 | builtin and then its argument prototype would still apply. */ | |
40503 | char socket (); | |
40504 | int | |
40505 | main () | |
40506 | { | |
40507 | socket (); | |
40508 | ; | |
40509 | return 0; | |
40510 | } | |
40511 | _ACEOF | |
40512 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40513 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40514 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40515 | ac_status=$? |
ac1cb8d3 VS |
40516 | grep -v '^ *+' conftest.er1 >conftest.err |
40517 | rm -f conftest.er1 | |
40518 | cat conftest.err >&5 | |
a848cd7e SC |
40519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40520 | (exit $ac_status); } && | |
0093c2fc | 40521 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40523 | (eval $ac_try) 2>&5 | |
40524 | ac_status=$? | |
40525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40526 | (exit $ac_status); }; } && | |
40527 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40529 | (eval $ac_try) 2>&5 | |
40530 | ac_status=$? | |
40531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40532 | (exit $ac_status); }; }; then | |
40533 | ac_cv_lib_socket_socket=yes | |
40534 | else | |
40535 | echo "$as_me: failed program was:" >&5 | |
40536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40537 | ||
40538 | ac_cv_lib_socket_socket=no | |
40539 | fi | |
ac1cb8d3 VS |
40540 | rm -f conftest.err conftest.$ac_objext \ |
40541 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40542 | LIBS=$ac_check_lib_save_LIBS |
40543 | fi | |
40544 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
40545 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
40546 | if test $ac_cv_lib_socket_socket = yes; then | |
40547 | if test "$INET_LINK" != " -lsocket"; then | |
40548 | INET_LINK="$INET_LINK -lsocket" | |
40549 | fi | |
40550 | else | |
40551 | ||
40552 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
40553 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
40554 | wxUSE_SOCKETS=no | |
40555 | ||
40556 | ||
40557 | fi | |
40558 | ||
40559 | ||
40560 | ||
40561 | fi | |
40562 | ||
40563 | fi | |
40564 | fi | |
40565 | ||
40566 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
40567 | if test "$TOOLKIT" != "MSW"; then | |
4d4ff94c VZ |
40568 | ac_ext=cc |
40569 | ac_cpp='$CXXCPP $CPPFLAGS' | |
40570 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
40571 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
40572 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
40573 | ||
40574 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 | |
a848cd7e SC |
40575 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 |
40576 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
40577 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40578 | else | |
40579 | ||
40580 | cat >conftest.$ac_ext <<_ACEOF | |
40581 | /* confdefs.h. */ | |
40582 | _ACEOF | |
40583 | cat confdefs.h >>conftest.$ac_ext | |
40584 | cat >>conftest.$ac_ext <<_ACEOF | |
40585 | /* end confdefs.h. */ | |
40586 | ||
40587 | #include <sys/types.h> | |
40588 | #include <sys/socket.h> | |
40589 | ||
40590 | int | |
40591 | main () | |
40592 | { | |
40593 | ||
40594 | socklen_t len; | |
40595 | getsockname(0, 0, &len); | |
40596 | ||
40597 | ; | |
40598 | return 0; | |
40599 | } | |
40600 | _ACEOF | |
40601 | rm -f conftest.$ac_objext | |
40602 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40603 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 40604 | ac_status=$? |
ac1cb8d3 VS |
40605 | grep -v '^ *+' conftest.er1 >conftest.err |
40606 | rm -f conftest.er1 | |
40607 | cat conftest.err >&5 | |
a848cd7e SC |
40608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40609 | (exit $ac_status); } && | |
0093c2fc | 40610 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40612 | (eval $ac_try) 2>&5 | |
40613 | ac_status=$? | |
40614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40615 | (exit $ac_status); }; } && | |
40616 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
40617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40618 | (eval $ac_try) 2>&5 | |
40619 | ac_status=$? | |
40620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40621 | (exit $ac_status); }; }; then | |
40622 | wx_cv_type_getsockname3=socklen_t | |
40623 | else | |
40624 | echo "$as_me: failed program was:" >&5 | |
40625 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40626 | ||
40627 | ||
6459a506 | 40628 | CXXFLAGS_OLD="$CXXFLAGS" |
a848cd7e | 40629 | if test "$GCC" = yes ; then |
6459a506 | 40630 | CXXFLAGS="$CXXFLAGS -Werror" |
a848cd7e SC |
40631 | fi |
40632 | ||
40633 | cat >conftest.$ac_ext <<_ACEOF | |
40634 | /* confdefs.h. */ | |
40635 | _ACEOF | |
40636 | cat confdefs.h >>conftest.$ac_ext | |
40637 | cat >>conftest.$ac_ext <<_ACEOF | |
40638 | /* end confdefs.h. */ | |
40639 | ||
40640 | #include <sys/types.h> | |
40641 | #include <sys/socket.h> | |
40642 | ||
40643 | int | |
40644 | main () | |
40645 | { | |
40646 | ||
40647 | size_t len; | |
40648 | getsockname(0, 0, &len); | |
40649 | ||
40650 | ; | |
40651 | return 0; | |
40652 | } | |
40653 | _ACEOF | |
40654 | rm -f conftest.$ac_objext | |
40655 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40656 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 40657 | ac_status=$? |
ac1cb8d3 VS |
40658 | grep -v '^ *+' conftest.er1 >conftest.err |
40659 | rm -f conftest.er1 | |
40660 | cat conftest.err >&5 | |
a848cd7e SC |
40661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40662 | (exit $ac_status); } && | |
0093c2fc | 40663 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40665 | (eval $ac_try) 2>&5 | |
40666 | ac_status=$? | |
40667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40668 | (exit $ac_status); }; } && | |
40669 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
40670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40671 | (eval $ac_try) 2>&5 | |
40672 | ac_status=$? | |
40673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40674 | (exit $ac_status); }; }; then | |
40675 | wx_cv_type_getsockname3=size_t | |
40676 | else | |
40677 | echo "$as_me: failed program was:" >&5 | |
40678 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40679 | ||
40680 | cat >conftest.$ac_ext <<_ACEOF | |
40681 | /* confdefs.h. */ | |
40682 | _ACEOF | |
40683 | cat confdefs.h >>conftest.$ac_ext | |
40684 | cat >>conftest.$ac_ext <<_ACEOF | |
40685 | /* end confdefs.h. */ | |
40686 | ||
40687 | #include <sys/types.h> | |
40688 | #include <sys/socket.h> | |
40689 | ||
40690 | int | |
40691 | main () | |
40692 | { | |
40693 | ||
40694 | int len; | |
40695 | getsockname(0, 0, &len); | |
40696 | ||
40697 | ; | |
40698 | return 0; | |
40699 | } | |
40700 | _ACEOF | |
40701 | rm -f conftest.$ac_objext | |
40702 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 40703 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 40704 | ac_status=$? |
ac1cb8d3 VS |
40705 | grep -v '^ *+' conftest.er1 >conftest.err |
40706 | rm -f conftest.er1 | |
40707 | cat conftest.err >&5 | |
a848cd7e SC |
40708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40709 | (exit $ac_status); } && | |
0093c2fc | 40710 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40712 | (eval $ac_try) 2>&5 | |
40713 | ac_status=$? | |
40714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40715 | (exit $ac_status); }; } && | |
40716 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
40717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40718 | (eval $ac_try) 2>&5 | |
40719 | ac_status=$? | |
40720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40721 | (exit $ac_status); }; }; then | |
40722 | wx_cv_type_getsockname3=int | |
40723 | else | |
40724 | echo "$as_me: failed program was:" >&5 | |
40725 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40726 | ||
40727 | wx_cv_type_getsockname3=unknown | |
40728 | ||
40729 | fi | |
ac1cb8d3 | 40730 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
40731 | |
40732 | fi | |
ac1cb8d3 | 40733 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 40734 | |
6459a506 | 40735 | CXXFLAGS="$CXXFLAGS_OLD" |
a848cd7e SC |
40736 | |
40737 | ||
40738 | fi | |
ac1cb8d3 | 40739 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
40740 | |
40741 | fi | |
40742 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
40743 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
40744 | ||
40745 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
40746 | wxUSE_SOCKETS=no | |
40747 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
40748 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
40749 | else | |
40750 | cat >>confdefs.h <<_ACEOF | |
9e03e02d | 40751 | #define WX_SOCKLEN_T $wx_cv_type_getsockname3 |
5b674b9d DE |
40752 | _ACEOF |
40753 | ||
40754 | fi | |
40755 | echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5 | |
40756 | echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6 | |
40757 | if test "${wx_cv_type_getsockopt5+set}" = set; then | |
40758 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40759 | else | |
40760 | ||
40761 | cat >conftest.$ac_ext <<_ACEOF | |
40762 | /* confdefs.h. */ | |
40763 | _ACEOF | |
40764 | cat confdefs.h >>conftest.$ac_ext | |
40765 | cat >>conftest.$ac_ext <<_ACEOF | |
40766 | /* end confdefs.h. */ | |
40767 | ||
40768 | #include <sys/types.h> | |
40769 | #include <sys/socket.h> | |
40770 | ||
40771 | int | |
40772 | main () | |
40773 | { | |
40774 | ||
40775 | socklen_t len; | |
40776 | getsockopt(0, 0, 0, 0, &len); | |
40777 | ||
40778 | ; | |
40779 | return 0; | |
40780 | } | |
40781 | _ACEOF | |
40782 | rm -f conftest.$ac_objext | |
40783 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
40784 | (eval $ac_compile) 2>conftest.er1 | |
40785 | ac_status=$? | |
40786 | grep -v '^ *+' conftest.er1 >conftest.err | |
40787 | rm -f conftest.er1 | |
40788 | cat conftest.err >&5 | |
40789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40790 | (exit $ac_status); } && | |
0093c2fc | 40791 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
40792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40793 | (eval $ac_try) 2>&5 | |
40794 | ac_status=$? | |
40795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40796 | (exit $ac_status); }; } && | |
40797 | { ac_try='test -s conftest.$ac_objext' | |
40798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40799 | (eval $ac_try) 2>&5 | |
40800 | ac_status=$? | |
40801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40802 | (exit $ac_status); }; }; then | |
40803 | wx_cv_type_getsockopt5=socklen_t | |
40804 | else | |
40805 | echo "$as_me: failed program was:" >&5 | |
40806 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40807 | ||
40808 | ||
6459a506 | 40809 | CXXFLAGS_OLD="$CXXFLAGS" |
5b674b9d | 40810 | if test "$GCC" = yes ; then |
6459a506 | 40811 | CXXFLAGS="$CXXFLAGS -Werror" |
5b674b9d DE |
40812 | fi |
40813 | ||
40814 | cat >conftest.$ac_ext <<_ACEOF | |
40815 | /* confdefs.h. */ | |
40816 | _ACEOF | |
40817 | cat confdefs.h >>conftest.$ac_ext | |
40818 | cat >>conftest.$ac_ext <<_ACEOF | |
40819 | /* end confdefs.h. */ | |
40820 | ||
40821 | #include <sys/types.h> | |
40822 | #include <sys/socket.h> | |
40823 | ||
40824 | int | |
40825 | main () | |
40826 | { | |
40827 | ||
40828 | size_t len; | |
40829 | getsockopt(0, 0, 0, 0, &len); | |
40830 | ||
40831 | ; | |
40832 | return 0; | |
40833 | } | |
40834 | _ACEOF | |
40835 | rm -f conftest.$ac_objext | |
40836 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
40837 | (eval $ac_compile) 2>conftest.er1 | |
40838 | ac_status=$? | |
40839 | grep -v '^ *+' conftest.er1 >conftest.err | |
40840 | rm -f conftest.er1 | |
40841 | cat conftest.err >&5 | |
40842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40843 | (exit $ac_status); } && | |
0093c2fc | 40844 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
40845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40846 | (eval $ac_try) 2>&5 | |
40847 | ac_status=$? | |
40848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40849 | (exit $ac_status); }; } && | |
40850 | { ac_try='test -s conftest.$ac_objext' | |
40851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40852 | (eval $ac_try) 2>&5 | |
40853 | ac_status=$? | |
40854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40855 | (exit $ac_status); }; }; then | |
40856 | wx_cv_type_getsockopt5=size_t | |
40857 | else | |
40858 | echo "$as_me: failed program was:" >&5 | |
40859 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40860 | ||
40861 | cat >conftest.$ac_ext <<_ACEOF | |
40862 | /* confdefs.h. */ | |
40863 | _ACEOF | |
40864 | cat confdefs.h >>conftest.$ac_ext | |
40865 | cat >>conftest.$ac_ext <<_ACEOF | |
40866 | /* end confdefs.h. */ | |
40867 | ||
40868 | #include <sys/types.h> | |
40869 | #include <sys/socket.h> | |
40870 | ||
40871 | int | |
40872 | main () | |
40873 | { | |
40874 | ||
40875 | int len; | |
40876 | getsockopt(0, 0, 0, 0, &len); | |
40877 | ||
40878 | ; | |
40879 | return 0; | |
40880 | } | |
40881 | _ACEOF | |
40882 | rm -f conftest.$ac_objext | |
40883 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
40884 | (eval $ac_compile) 2>conftest.er1 | |
40885 | ac_status=$? | |
40886 | grep -v '^ *+' conftest.er1 >conftest.err | |
40887 | rm -f conftest.er1 | |
40888 | cat conftest.err >&5 | |
40889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40890 | (exit $ac_status); } && | |
0093c2fc | 40891 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
40892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40893 | (eval $ac_try) 2>&5 | |
40894 | ac_status=$? | |
40895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40896 | (exit $ac_status); }; } && | |
40897 | { ac_try='test -s conftest.$ac_objext' | |
40898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40899 | (eval $ac_try) 2>&5 | |
40900 | ac_status=$? | |
40901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40902 | (exit $ac_status); }; }; then | |
40903 | wx_cv_type_getsockopt5=int | |
40904 | else | |
40905 | echo "$as_me: failed program was:" >&5 | |
40906 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40907 | ||
40908 | wx_cv_type_getsockopt5=unknown | |
40909 | ||
40910 | fi | |
40911 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
40912 | ||
40913 | fi | |
40914 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
40915 | ||
6459a506 | 40916 | CXXFLAGS="$CXXFLAGS_OLD" |
5b674b9d DE |
40917 | |
40918 | ||
40919 | fi | |
40920 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
40921 | ||
40922 | fi | |
40923 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5 | |
40924 | echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6 | |
40925 | ||
40926 | if test "$wx_cv_type_getsockopt5" = "unknown"; then | |
40927 | wxUSE_SOCKETS=no | |
40928 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
40929 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
40930 | else | |
40931 | cat >>confdefs.h <<_ACEOF | |
40932 | #define SOCKOPTLEN_T $wx_cv_type_getsockopt5 | |
a848cd7e SC |
40933 | _ACEOF |
40934 | ||
40935 | fi | |
4d4ff94c VZ |
40936 | ac_ext=c |
40937 | ac_cpp='$CPP $CPPFLAGS' | |
40938 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
40939 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
40940 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
40941 | ||
a848cd7e SC |
40942 | fi |
40943 | fi | |
40944 | ||
40945 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
40946 | cat >>confdefs.h <<\_ACEOF | |
40947 | #define wxUSE_SOCKETS 1 | |
40948 | _ACEOF | |
40949 | ||
40950 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
40951 | fi | |
40952 | ||
40953 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
40954 | if test "$wxUSE_SOCKETS" != "yes"; then | |
40955 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
40956 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
40957 | wxUSE_PROTOCOL=no | |
40958 | fi | |
40959 | fi | |
40960 | ||
40961 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
40962 | cat >>confdefs.h <<\_ACEOF | |
40963 | #define wxUSE_PROTOCOL 1 | |
40964 | _ACEOF | |
40965 | ||
40966 | ||
40967 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
40968 | cat >>confdefs.h <<\_ACEOF | |
40969 | #define wxUSE_PROTOCOL_HTTP 1 | |
40970 | _ACEOF | |
40971 | ||
40972 | fi | |
40973 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
40974 | cat >>confdefs.h <<\_ACEOF | |
40975 | #define wxUSE_PROTOCOL_FTP 1 | |
40976 | _ACEOF | |
40977 | ||
40978 | fi | |
40979 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
40980 | cat >>confdefs.h <<\_ACEOF | |
40981 | #define wxUSE_PROTOCOL_FILE 1 | |
40982 | _ACEOF | |
40983 | ||
40984 | fi | |
40985 | else | |
40986 | if test "$wxUSE_FS_INET" = "yes"; then | |
40987 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
40988 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
40989 | wxUSE_FS_INET="no" | |
40990 | fi | |
40991 | fi | |
40992 | ||
40993 | if test "$wxUSE_URL" = "yes"; then | |
40994 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
40995 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
40996 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
40997 | wxUSE_URL=no | |
40998 | fi | |
40999 | if test "$wxUSE_URL" = "yes"; then | |
41000 | cat >>confdefs.h <<\_ACEOF | |
41001 | #define wxUSE_URL 1 | |
41002 | _ACEOF | |
41003 | ||
41004 | fi | |
41005 | fi | |
41006 | ||
41007 | if test "$wxUSE_FS_INET" = "yes"; then | |
41008 | cat >>confdefs.h <<\_ACEOF | |
41009 | #define wxUSE_FS_INET 1 | |
41010 | _ACEOF | |
41011 | ||
41012 | fi | |
41013 | ||
41014 | ||
ee45c548 MW |
41015 | if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then |
41016 | wxUSE_JOYSTICK=no | |
41017 | ||
41018 | if test "$TOOLKIT" = "MSW"; then | |
41019 | wxUSE_JOYSTICK=yes | |
41020 | ||
41021 | elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then | |
41022 | if test "$USE_DARWIN" = 1; then | |
41023 | echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5 | |
41024 | echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6 | |
41025 | ac_ext=cc | |
41026 | ac_cpp='$CXXCPP $CPPFLAGS' | |
41027 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
41028 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
41029 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
41030 | ||
41031 | cat >conftest.$ac_ext <<_ACEOF | |
41032 | /* confdefs.h. */ | |
41033 | _ACEOF | |
41034 | cat confdefs.h >>conftest.$ac_ext | |
41035 | cat >>conftest.$ac_ext <<_ACEOF | |
41036 | /* end confdefs.h. */ | |
41037 | #include <IOKit/hid/IOHIDLib.h> | |
41038 | int | |
41039 | main () | |
41040 | { | |
41041 | IOHIDQueueInterface *qi = NULL; | |
41042 | IOHIDCallbackFunction cb = NULL; | |
41043 | qi->setEventCallout(NULL, cb, NULL, NULL); | |
41044 | ; | |
41045 | return 0; | |
41046 | } | |
41047 | _ACEOF | |
41048 | rm -f conftest.$ac_objext | |
41049 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
41050 | (eval $ac_compile) 2>conftest.er1 | |
41051 | ac_status=$? | |
41052 | grep -v '^ *+' conftest.er1 >conftest.err | |
41053 | rm -f conftest.er1 | |
41054 | cat conftest.err >&5 | |
41055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41056 | (exit $ac_status); } && | |
0093c2fc | 41057 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ee45c548 MW |
41058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41059 | (eval $ac_try) 2>&5 | |
41060 | ac_status=$? | |
41061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41062 | (exit $ac_status); }; } && | |
41063 | { ac_try='test -s conftest.$ac_objext' | |
41064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
41065 | (eval $ac_try) 2>&5 | |
41066 | ac_status=$? | |
41067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41068 | (exit $ac_status); }; }; then | |
41069 | wxUSE_JOYSTICK=yes | |
a848cd7e | 41070 | |
ee45c548 MW |
41071 | else |
41072 | echo "$as_me: failed program was:" >&5 | |
41073 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41074 | ||
41075 | fi | |
41076 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
41077 | ac_ext=c | |
41078 | ac_cpp='$CPP $CPPFLAGS' | |
41079 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
41080 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
41081 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
41082 | ||
41083 | echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5 | |
41084 | echo "${ECHO_T}$wxUSE_JOYSTICK" >&6 | |
41085 | fi | |
41086 | ||
41087 | else | |
a848cd7e SC |
41088 | |
41089 | for ac_header in linux/joystick.h | |
41090 | do | |
41091 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
41092 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
41093 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
41094 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
41095 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
41096 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41097 | fi | |
41098 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
41099 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
41100 | else | |
41101 | # Is the header compilable? | |
41102 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
41103 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
41104 | cat >conftest.$ac_ext <<_ACEOF | |
41105 | /* confdefs.h. */ | |
41106 | _ACEOF | |
41107 | cat confdefs.h >>conftest.$ac_ext | |
41108 | cat >>conftest.$ac_ext <<_ACEOF | |
41109 | /* end confdefs.h. */ | |
41110 | $ac_includes_default | |
41111 | #include <$ac_header> | |
41112 | _ACEOF | |
41113 | rm -f conftest.$ac_objext | |
41114 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41115 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41116 | ac_status=$? |
ac1cb8d3 VS |
41117 | grep -v '^ *+' conftest.er1 >conftest.err |
41118 | rm -f conftest.er1 | |
41119 | cat conftest.err >&5 | |
a848cd7e SC |
41120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41121 | (exit $ac_status); } && | |
0093c2fc | 41122 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41124 | (eval $ac_try) 2>&5 | |
41125 | ac_status=$? | |
41126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41127 | (exit $ac_status); }; } && | |
41128 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41130 | (eval $ac_try) 2>&5 | |
41131 | ac_status=$? | |
41132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41133 | (exit $ac_status); }; }; then | |
41134 | ac_header_compiler=yes | |
41135 | else | |
41136 | echo "$as_me: failed program was:" >&5 | |
41137 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41138 | ||
41139 | ac_header_compiler=no | |
41140 | fi | |
ac1cb8d3 | 41141 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41142 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
41143 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
41144 | ||
41145 | # Is the header present? | |
41146 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
41147 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
41148 | cat >conftest.$ac_ext <<_ACEOF | |
41149 | /* confdefs.h. */ | |
41150 | _ACEOF | |
41151 | cat confdefs.h >>conftest.$ac_ext | |
41152 | cat >>conftest.$ac_ext <<_ACEOF | |
41153 | /* end confdefs.h. */ | |
41154 | #include <$ac_header> | |
41155 | _ACEOF | |
41156 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
41157 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
41158 | ac_status=$? | |
41159 | grep -v '^ *+' conftest.er1 >conftest.err | |
41160 | rm -f conftest.er1 | |
41161 | cat conftest.err >&5 | |
41162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41163 | (exit $ac_status); } >/dev/null; then | |
41164 | if test -s conftest.err; then | |
41165 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 41166 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
41167 | else |
41168 | ac_cpp_err= | |
41169 | fi | |
41170 | else | |
41171 | ac_cpp_err=yes | |
41172 | fi | |
41173 | if test -z "$ac_cpp_err"; then | |
41174 | ac_header_preproc=yes | |
41175 | else | |
41176 | echo "$as_me: failed program was:" >&5 | |
41177 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41178 | ||
41179 | ac_header_preproc=no | |
41180 | fi | |
41181 | rm -f conftest.err conftest.$ac_ext | |
41182 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
41183 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
41184 | ||
41185 | # So? What about this header? | |
ac1cb8d3 VS |
41186 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
41187 | yes:no: ) | |
a848cd7e SC |
41188 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
41189 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
41190 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
41191 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
41192 | ac_header_preproc=yes | |
a848cd7e | 41193 | ;; |
ac1cb8d3 | 41194 | no:yes:* ) |
a848cd7e SC |
41195 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
41196 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
41197 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
41198 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
41199 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
41200 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
41201 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
41202 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
41203 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
41204 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
41205 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
41206 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
41207 | ( |
41208 | cat <<\_ASBOX | |
ac1cb8d3 VS |
41209 | ## ----------------------------------------- ## |
41210 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
41211 | ## ----------------------------------------- ## | |
a848cd7e SC |
41212 | _ASBOX |
41213 | ) | | |
41214 | sed "s/^/$as_me: WARNING: /" >&2 | |
41215 | ;; | |
41216 | esac | |
41217 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
41218 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
41219 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
41220 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41221 | else | |
ac1cb8d3 | 41222 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
41223 | fi |
41224 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
41225 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
41226 | ||
41227 | fi | |
41228 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
41229 | cat >>confdefs.h <<_ACEOF | |
41230 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
41231 | _ACEOF | |
ee45c548 | 41232 | wxUSE_JOYSTICK=yes |
a848cd7e SC |
41233 | fi |
41234 | ||
41235 | done | |
41236 | ||
ee45c548 | 41237 | fi |
4cb1d3da | 41238 | |
ee45c548 MW |
41239 | if test "$wxUSE_JOYSTICK" = "yes"; then |
41240 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
41241 | #define wxUSE_JOYSTICK 1 |
41242 | _ACEOF | |
41243 | ||
ee45c548 MW |
41244 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
41245 | else | |
41246 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
41247 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
a848cd7e SC |
41248 | fi |
41249 | fi | |
41250 | ||
41251 | ||
41252 | ||
41253 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
41254 | cat >>confdefs.h <<\_ACEOF | |
41255 | #define wxUSE_FONTMAP 1 | |
41256 | _ACEOF | |
41257 | ||
41258 | fi | |
41259 | ||
41260 | if test "$wxUSE_UNICODE" = "yes" ; then | |
41261 | cat >>confdefs.h <<\_ACEOF | |
41262 | #define wxUSE_UNICODE 1 | |
41263 | _ACEOF | |
41264 | ||
41265 | ||
41266 | if test "$USE_WIN32" != 1; then | |
41267 | wxUSE_UNICODE_MSLU=no | |
41268 | fi | |
41269 | ||
41270 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
41271 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 | |
41272 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
41273 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
41274 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41275 | else | |
41276 | ac_check_lib_save_LIBS=$LIBS | |
41277 | LIBS="-lunicows $LIBS" | |
41278 | cat >conftest.$ac_ext <<_ACEOF | |
41279 | /* confdefs.h. */ | |
41280 | _ACEOF | |
41281 | cat confdefs.h >>conftest.$ac_ext | |
41282 | cat >>conftest.$ac_ext <<_ACEOF | |
41283 | /* end confdefs.h. */ | |
41284 | ||
41285 | ||
41286 | int | |
41287 | main () | |
41288 | { | |
41289 | main (); | |
41290 | ; | |
41291 | return 0; | |
41292 | } | |
41293 | _ACEOF | |
41294 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41295 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 41296 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 41297 | ac_status=$? |
ac1cb8d3 VS |
41298 | grep -v '^ *+' conftest.er1 >conftest.err |
41299 | rm -f conftest.er1 | |
41300 | cat conftest.err >&5 | |
a848cd7e SC |
41301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41302 | (exit $ac_status); } && | |
0093c2fc | 41303 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41305 | (eval $ac_try) 2>&5 | |
41306 | ac_status=$? | |
41307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41308 | (exit $ac_status); }; } && | |
41309 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
41310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41311 | (eval $ac_try) 2>&5 | |
41312 | ac_status=$? | |
41313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41314 | (exit $ac_status); }; }; then | |
41315 | ac_cv_lib_unicows_main=yes | |
41316 | else | |
41317 | echo "$as_me: failed program was:" >&5 | |
41318 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41319 | ||
41320 | ac_cv_lib_unicows_main=no | |
41321 | fi | |
ac1cb8d3 VS |
41322 | rm -f conftest.err conftest.$ac_objext \ |
41323 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
41324 | LIBS=$ac_check_lib_save_LIBS |
41325 | fi | |
41326 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
41327 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
41328 | if test $ac_cv_lib_unicows_main = yes; then | |
41329 | ||
41330 | cat >>confdefs.h <<\_ACEOF | |
41331 | #define wxUSE_UNICODE_MSLU 1 | |
41332 | _ACEOF | |
41333 | ||
41334 | ||
41335 | else | |
41336 | ||
41337 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
41338 | Applications will only run on Windows NT/2000/XP!" >&5 | |
41339 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
41340 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
41341 | wxUSE_UNICODE_MSLU=no | |
41342 | ||
41343 | fi | |
41344 | ||
41345 | fi | |
41346 | fi | |
41347 | ||
41348 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
41349 | cat >>confdefs.h <<\_ACEOF | |
41350 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
41351 | _ACEOF | |
41352 | ||
41353 | fi | |
41354 | ||
41355 | ||
41356 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
41357 | cat >>confdefs.h <<\_ACEOF | |
41358 | #define wxUSE_POSTSCRIPT 1 | |
41359 | _ACEOF | |
41360 | ||
41361 | fi | |
41362 | ||
41363 | cat >>confdefs.h <<\_ACEOF | |
41364 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
41365 | _ACEOF | |
41366 | ||
41367 | ||
41368 | cat >>confdefs.h <<\_ACEOF | |
41369 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
41370 | _ACEOF | |
41371 | ||
41372 | ||
41373 | ||
41374 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
41375 | cat >>confdefs.h <<\_ACEOF | |
41376 | #define wxUSE_CONSTRAINTS 1 | |
41377 | _ACEOF | |
41378 | ||
41379 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
41380 | fi | |
41381 | ||
8a7b1113 VZ |
41382 | if test "$wxUSE_MDI" = "yes"; then |
41383 | cat >>confdefs.h <<\_ACEOF | |
41384 | #define wxUSE_MDI 1 | |
41385 | _ACEOF | |
41386 | ||
41387 | ||
41388 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
41389 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
41390 | #define wxUSE_MDI_ARCHITECTURE 1 |
41391 | _ACEOF | |
41392 | ||
8a7b1113 VZ |
41393 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
41394 | fi | |
a848cd7e SC |
41395 | fi |
41396 | ||
41397 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
41398 | cat >>confdefs.h <<\_ACEOF | |
41399 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
41400 | _ACEOF | |
41401 | ||
41402 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
41403 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
41404 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
41405 | fi | |
41406 | fi | |
41407 | ||
41408 | if test "$wxUSE_HELP" = "yes"; then | |
41409 | cat >>confdefs.h <<\_ACEOF | |
41410 | #define wxUSE_HELP 1 | |
41411 | _ACEOF | |
41412 | ||
41413 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
41414 | ||
41415 | if test "$wxUSE_MSW" = 1; then | |
41416 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
41417 | cat >>confdefs.h <<\_ACEOF | |
41418 | #define wxUSE_MS_HTML_HELP 1 | |
41419 | _ACEOF | |
41420 | ||
41421 | fi | |
41422 | fi | |
41423 | ||
41424 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
41425 | if test "$wxUSE_HTML" = "yes"; then | |
41426 | cat >>confdefs.h <<\_ACEOF | |
41427 | #define wxUSE_WXHTML_HELP 1 | |
41428 | _ACEOF | |
41429 | ||
41430 | else | |
41431 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 | |
41432 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
41433 | wxUSE_WXHTML_HELP=no | |
41434 | fi | |
41435 | fi | |
41436 | fi | |
41437 | ||
41438 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
41439 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
41440 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 | |
41441 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
41442 | else | |
41443 | cat >>confdefs.h <<\_ACEOF | |
41444 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
41445 | _ACEOF | |
41446 | ||
41447 | fi | |
41448 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
41449 | fi | |
41450 | ||
41451 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then | |
41452 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
41453 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
41454 | { (exit 1); exit 1; }; } | |
41455 | fi | |
41456 | ||
41457 | ||
efdf6afe VZ |
41458 | if test "$wxUSE_METAFILE" = "yes"; then |
41459 | if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then | |
41460 | { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5 | |
41461 | echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;} | |
41462 | wxUSE_METAFILE=no | |
41463 | fi | |
41464 | fi | |
41465 | ||
41466 | ||
a848cd7e SC |
41467 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
41468 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
41469 | -o "$wxUSE_OLE" = "yes" \ | |
41470 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
41471 | ||
41472 | for ac_header in ole2.h | |
41473 | do | |
41474 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
41475 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
41476 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
41477 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
41478 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
41479 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41480 | fi | |
41481 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
41482 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
41483 | else | |
41484 | # Is the header compilable? | |
41485 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
41486 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
41487 | cat >conftest.$ac_ext <<_ACEOF | |
41488 | /* confdefs.h. */ | |
41489 | _ACEOF | |
41490 | cat confdefs.h >>conftest.$ac_ext | |
41491 | cat >>conftest.$ac_ext <<_ACEOF | |
41492 | /* end confdefs.h. */ | |
41493 | $ac_includes_default | |
41494 | #include <$ac_header> | |
41495 | _ACEOF | |
41496 | rm -f conftest.$ac_objext | |
41497 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41498 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41499 | ac_status=$? |
ac1cb8d3 VS |
41500 | grep -v '^ *+' conftest.er1 >conftest.err |
41501 | rm -f conftest.er1 | |
41502 | cat conftest.err >&5 | |
a848cd7e SC |
41503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41504 | (exit $ac_status); } && | |
0093c2fc | 41505 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41507 | (eval $ac_try) 2>&5 | |
41508 | ac_status=$? | |
41509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41510 | (exit $ac_status); }; } && | |
41511 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41513 | (eval $ac_try) 2>&5 | |
41514 | ac_status=$? | |
41515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41516 | (exit $ac_status); }; }; then | |
41517 | ac_header_compiler=yes | |
41518 | else | |
41519 | echo "$as_me: failed program was:" >&5 | |
41520 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41521 | ||
41522 | ac_header_compiler=no | |
41523 | fi | |
ac1cb8d3 | 41524 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41525 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
41526 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
41527 | ||
41528 | # Is the header present? | |
41529 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
41530 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
41531 | cat >conftest.$ac_ext <<_ACEOF | |
41532 | /* confdefs.h. */ | |
41533 | _ACEOF | |
41534 | cat confdefs.h >>conftest.$ac_ext | |
41535 | cat >>conftest.$ac_ext <<_ACEOF | |
41536 | /* end confdefs.h. */ | |
41537 | #include <$ac_header> | |
41538 | _ACEOF | |
41539 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
41540 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
41541 | ac_status=$? | |
41542 | grep -v '^ *+' conftest.er1 >conftest.err | |
41543 | rm -f conftest.er1 | |
41544 | cat conftest.err >&5 | |
41545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41546 | (exit $ac_status); } >/dev/null; then | |
41547 | if test -s conftest.err; then | |
41548 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 41549 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
41550 | else |
41551 | ac_cpp_err= | |
41552 | fi | |
41553 | else | |
41554 | ac_cpp_err=yes | |
41555 | fi | |
41556 | if test -z "$ac_cpp_err"; then | |
41557 | ac_header_preproc=yes | |
41558 | else | |
41559 | echo "$as_me: failed program was:" >&5 | |
41560 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41561 | ||
41562 | ac_header_preproc=no | |
41563 | fi | |
41564 | rm -f conftest.err conftest.$ac_ext | |
41565 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
41566 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
41567 | ||
41568 | # So? What about this header? | |
ac1cb8d3 VS |
41569 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
41570 | yes:no: ) | |
a848cd7e SC |
41571 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
41572 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
41573 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
41574 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
41575 | ac_header_preproc=yes | |
a848cd7e | 41576 | ;; |
ac1cb8d3 | 41577 | no:yes:* ) |
a848cd7e SC |
41578 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
41579 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
41580 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
41581 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
41582 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
41583 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
41584 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
41585 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
41586 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
41587 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
41588 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
41589 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
41590 | ( |
41591 | cat <<\_ASBOX | |
ac1cb8d3 VS |
41592 | ## ----------------------------------------- ## |
41593 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
41594 | ## ----------------------------------------- ## | |
a848cd7e SC |
41595 | _ASBOX |
41596 | ) | | |
41597 | sed "s/^/$as_me: WARNING: /" >&2 | |
41598 | ;; | |
41599 | esac | |
41600 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
41601 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
41602 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
41603 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41604 | else | |
ac1cb8d3 | 41605 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
41606 | fi |
41607 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
41608 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
41609 | ||
41610 | fi | |
41611 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
41612 | cat >>confdefs.h <<_ACEOF | |
41613 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
41614 | _ACEOF | |
41615 | ||
41616 | fi | |
41617 | ||
41618 | done | |
41619 | ||
41620 | ||
41621 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
41622 | if test "$GCC" = yes ; then | |
41623 | ||
41624 | ||
41625 | ac_ext=cc | |
41626 | ac_cpp='$CXXCPP $CPPFLAGS' | |
41627 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
41628 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
41629 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
41630 | ||
41631 | ||
41632 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
41633 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
41634 | cat >conftest.$ac_ext <<_ACEOF | |
41635 | /* confdefs.h. */ | |
41636 | _ACEOF | |
41637 | cat confdefs.h >>conftest.$ac_ext | |
41638 | cat >>conftest.$ac_ext <<_ACEOF | |
41639 | /* end confdefs.h. */ | |
41640 | #include <windows.h> | |
41641 | #include <ole2.h> | |
41642 | int | |
41643 | main () | |
41644 | { | |
41645 | ||
41646 | ; | |
41647 | return 0; | |
41648 | } | |
41649 | _ACEOF | |
41650 | rm -f conftest.$ac_objext | |
41651 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41652 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41653 | ac_status=$? |
ac1cb8d3 VS |
41654 | grep -v '^ *+' conftest.er1 >conftest.err |
41655 | rm -f conftest.er1 | |
41656 | cat conftest.err >&5 | |
a848cd7e SC |
41657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41658 | (exit $ac_status); } && | |
0093c2fc | 41659 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41661 | (eval $ac_try) 2>&5 | |
41662 | ac_status=$? | |
41663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41664 | (exit $ac_status); }; } && | |
41665 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41667 | (eval $ac_try) 2>&5 | |
41668 | ac_status=$? | |
41669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41670 | (exit $ac_status); }; }; then | |
41671 | echo "$as_me:$LINENO: result: no" >&5 | |
41672 | echo "${ECHO_T}no" >&6 | |
41673 | else | |
41674 | echo "$as_me: failed program was:" >&5 | |
41675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41676 | ||
41677 | echo "$as_me:$LINENO: result: yes" >&5 | |
41678 | echo "${ECHO_T}yes" >&6 | |
41679 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" | |
41680 | fi | |
ac1cb8d3 | 41681 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41682 | ac_ext=c |
41683 | ac_cpp='$CPP $CPPFLAGS' | |
41684 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
41685 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
41686 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
41687 | ||
a848cd7e SC |
41688 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
41689 | if test "$wxUSE_OLE" = "yes" ; then | |
41690 | cat >>confdefs.h <<\_ACEOF | |
41691 | #define wxUSE_OLE 1 | |
41692 | _ACEOF | |
41693 | ||
0b78747f | 41694 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto" |
a848cd7e SC |
41695 | fi |
41696 | fi | |
41697 | ||
41698 | if test "$wxUSE_DATAOBJ" = "yes" ; then | |
41699 | cat >>confdefs.h <<\_ACEOF | |
41700 | #define wxUSE_DATAOBJ 1 | |
41701 | _ACEOF | |
41702 | ||
41703 | fi | |
41704 | else | |
41705 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 | |
41706 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
41707 | ||
41708 | wxUSE_CLIPBOARD=no | |
41709 | wxUSE_DRAG_AND_DROP=no | |
41710 | wxUSE_DATAOBJ=no | |
41711 | wxUSE_OLE=no | |
41712 | fi | |
41713 | ||
41714 | if test "$wxUSE_METAFILE" = "yes"; then | |
41715 | cat >>confdefs.h <<\_ACEOF | |
41716 | #define wxUSE_METAFILE 1 | |
41717 | _ACEOF | |
41718 | ||
41719 | ||
41720 | cat >>confdefs.h <<\_ACEOF | |
41721 | #define wxUSE_ENH_METAFILE 1 | |
41722 | _ACEOF | |
41723 | ||
41724 | fi | |
41725 | fi | |
41726 | ||
41727 | if test "$wxUSE_IPC" = "yes"; then | |
0b78747f | 41728 | if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then |
77ffb593 JS |
41729 | { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5 |
41730 | echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;} | |
0b78747f | 41731 | wxUSE_IPC=no |
a848cd7e SC |
41732 | fi |
41733 | ||
0b78747f MW |
41734 | if test "$wxUSE_IPC" = "yes"; then |
41735 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
41736 | #define wxUSE_IPC 1 |
41737 | _ACEOF | |
41738 | ||
0b78747f MW |
41739 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc" |
41740 | fi | |
a848cd7e SC |
41741 | fi |
41742 | ||
eb730a0c | 41743 | if test "$wxUSE_DATAOBJ" = "yes"; then |
2113bc77 MW |
41744 | if test "$wxUSE_MGL" = 1; then |
41745 | { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5 | |
41746 | echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;} | |
41747 | wxUSE_DATAOBJ=no | |
41748 | else | |
41749 | cat >>confdefs.h <<\_ACEOF | |
eb730a0c JS |
41750 | #define wxUSE_DATAOBJ 1 |
41751 | _ACEOF | |
41752 | ||
2113bc77 | 41753 | fi |
eb730a0c JS |
41754 | else |
41755 | { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5 | |
41756 | echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;} | |
41757 | wxUSE_CLIPBOARD=no | |
41758 | wxUSE_DRAG_AND_DROP=no | |
41759 | fi | |
41760 | ||
a848cd7e SC |
41761 | if test "$wxUSE_CLIPBOARD" = "yes"; then |
41762 | if test "$wxUSE_MGL" = 1; then | |
41763 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 | |
41764 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
41765 | wxUSE_CLIPBOARD=no | |
41766 | fi | |
41767 | ||
41768 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
41769 | cat >>confdefs.h <<\_ACEOF | |
41770 | #define wxUSE_CLIPBOARD 1 | |
41771 | _ACEOF | |
41772 | ||
a848cd7e SC |
41773 | fi |
41774 | fi | |
41775 | ||
41776 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
41777 | if test "$wxUSE_GTK" = 1; then | |
41778 | if test "$WXGTK12" != 1; then | |
41779 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 | |
41780 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
41781 | wxUSE_DRAG_AND_DROP=no | |
41782 | fi | |
41783 | fi | |
41784 | ||
41785 | if test "$wxUSE_MOTIF" = 1; then | |
41786 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 | |
41787 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
41788 | wxUSE_DRAG_AND_DROP=no | |
41789 | fi | |
41790 | ||
41791 | if test "$wxUSE_X11" = 1; then | |
41792 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 | |
41793 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
41794 | wxUSE_DRAG_AND_DROP=no | |
41795 | fi | |
41796 | ||
41797 | if test "$wxUSE_MGL" = 1; then | |
41798 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 | |
41799 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
41800 | wxUSE_DRAG_AND_DROP=no | |
41801 | fi | |
41802 | ||
41803 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
41804 | cat >>confdefs.h <<\_ACEOF | |
41805 | #define wxUSE_DRAG_AND_DROP 1 | |
41806 | _ACEOF | |
41807 | ||
41808 | fi | |
41809 | ||
41810 | fi | |
41811 | ||
41812 | if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then | |
41813 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
41814 | fi | |
41815 | ||
41816 | if test "$wxUSE_SPLINES" = "yes" ; then | |
41817 | cat >>confdefs.h <<\_ACEOF | |
41818 | #define wxUSE_SPLINES 1 | |
41819 | _ACEOF | |
41820 | ||
41821 | fi | |
41822 | ||
fbe2ca43 SN |
41823 | if test "$wxUSE_MOUSEWHEEL" = "yes" ; then |
41824 | cat >>confdefs.h <<\_ACEOF | |
41825 | #define wxUSE_MOUSEWHEEL 1 | |
41826 | _ACEOF | |
41827 | ||
41828 | fi | |
41829 | ||
a848cd7e SC |
41830 | |
41831 | USES_CONTROLS=0 | |
41832 | if test "$wxUSE_CONTROLS" = "yes"; then | |
41833 | USES_CONTROLS=1 | |
41834 | fi | |
41835 | ||
41836 | if test "$wxUSE_ACCEL" = "yes"; then | |
41837 | cat >>confdefs.h <<\_ACEOF | |
41838 | #define wxUSE_ACCEL 1 | |
41839 | _ACEOF | |
41840 | ||
41841 | USES_CONTROLS=1 | |
41842 | fi | |
41843 | ||
41844 | if test "$wxUSE_BUTTON" = "yes"; then | |
41845 | cat >>confdefs.h <<\_ACEOF | |
41846 | #define wxUSE_BUTTON 1 | |
41847 | _ACEOF | |
41848 | ||
41849 | USES_CONTROLS=1 | |
41850 | fi | |
41851 | ||
41852 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
41853 | cat >>confdefs.h <<\_ACEOF | |
41854 | #define wxUSE_BMPBUTTON 1 | |
41855 | _ACEOF | |
41856 | ||
41857 | USES_CONTROLS=1 | |
41858 | fi | |
41859 | ||
41860 | if test "$wxUSE_CALCTRL" = "yes"; then | |
41861 | cat >>confdefs.h <<\_ACEOF | |
41862 | #define wxUSE_CALENDARCTRL 1 | |
41863 | _ACEOF | |
41864 | ||
41865 | USES_CONTROLS=1 | |
41866 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
41867 | fi | |
41868 | ||
41869 | if test "$wxUSE_CARET" = "yes"; then | |
41870 | cat >>confdefs.h <<\_ACEOF | |
41871 | #define wxUSE_CARET 1 | |
41872 | _ACEOF | |
41873 | ||
41874 | USES_CONTROLS=1 | |
41875 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
41876 | fi | |
41877 | ||
41878 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
41879 | cat >>confdefs.h <<\_ACEOF | |
41880 | #define wxUSE_COMBOBOX 1 | |
41881 | _ACEOF | |
41882 | ||
41883 | USES_CONTROLS=1 | |
41884 | fi | |
41885 | ||
41886 | if test "$wxUSE_CHOICE" = "yes"; then | |
41887 | cat >>confdefs.h <<\_ACEOF | |
41888 | #define wxUSE_CHOICE 1 | |
41889 | _ACEOF | |
41890 | ||
41891 | USES_CONTROLS=1 | |
41892 | fi | |
41893 | ||
92bbdbcd WS |
41894 | if test "$wxUSE_CHOICEBOOK" = "yes"; then |
41895 | cat >>confdefs.h <<\_ACEOF | |
41896 | #define wxUSE_CHOICEBOOK 1 | |
41897 | _ACEOF | |
41898 | ||
41899 | USES_CONTROLS=1 | |
41900 | fi | |
41901 | ||
a848cd7e SC |
41902 | if test "$wxUSE_CHECKBOX" = "yes"; then |
41903 | cat >>confdefs.h <<\_ACEOF | |
41904 | #define wxUSE_CHECKBOX 1 | |
41905 | _ACEOF | |
41906 | ||
41907 | USES_CONTROLS=1 | |
41908 | fi | |
41909 | ||
41910 | if test "$wxUSE_CHECKLST" = "yes"; then | |
41911 | cat >>confdefs.h <<\_ACEOF | |
41912 | #define wxUSE_CHECKLISTBOX 1 | |
41913 | _ACEOF | |
41914 | ||
41915 | USES_CONTROLS=1 | |
41916 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
41917 | fi | |
41918 | ||
da98e9be VZ |
41919 | if test "$wxUSE_DATEPICKCTRL" = "yes"; then |
41920 | cat >>confdefs.h <<\_ACEOF | |
41921 | #define wxUSE_DATEPICKCTRL 1 | |
41922 | _ACEOF | |
41923 | ||
41924 | USES_CONTROLS=1 | |
41925 | fi | |
41926 | ||
a848cd7e SC |
41927 | if test "$wxUSE_DISPLAY" = "yes"; then |
41928 | cat >>confdefs.h <<\_ACEOF | |
41929 | #define wxUSE_DISPLAY 1 | |
41930 | _ACEOF | |
41931 | ||
0b78747f | 41932 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon" |
a848cd7e SC |
41933 | fi |
41934 | ||
41935 | if test "$wxUSE_GAUGE" = "yes"; then | |
41936 | cat >>confdefs.h <<\_ACEOF | |
41937 | #define wxUSE_GAUGE 1 | |
41938 | _ACEOF | |
41939 | ||
41940 | USES_CONTROLS=1 | |
41941 | fi | |
41942 | ||
41943 | if test "$wxUSE_GRID" = "yes"; then | |
41944 | cat >>confdefs.h <<\_ACEOF | |
41945 | #define wxUSE_GRID 1 | |
41946 | _ACEOF | |
41947 | ||
41948 | USES_CONTROLS=1 | |
41949 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
41950 | fi | |
41951 | ||
41952 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
41953 | cat >>confdefs.h <<\_ACEOF | |
41954 | #define wxUSE_IMAGLIST 1 | |
41955 | _ACEOF | |
41956 | ||
41957 | fi | |
41958 | ||
41959 | if test "$wxUSE_LISTBOOK" = "yes"; then | |
41960 | cat >>confdefs.h <<\_ACEOF | |
41961 | #define wxUSE_LISTBOOK 1 | |
41962 | _ACEOF | |
41963 | ||
41964 | USES_CONTROLS=1 | |
41965 | fi | |
41966 | ||
41967 | if test "$wxUSE_LISTBOX" = "yes"; then | |
41968 | cat >>confdefs.h <<\_ACEOF | |
41969 | #define wxUSE_LISTBOX 1 | |
41970 | _ACEOF | |
41971 | ||
41972 | USES_CONTROLS=1 | |
0b78747f | 41973 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox" |
a848cd7e SC |
41974 | fi |
41975 | ||
41976 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
41977 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
41978 | cat >>confdefs.h <<\_ACEOF | |
41979 | #define wxUSE_LISTCTRL 1 | |
41980 | _ACEOF | |
41981 | ||
41982 | USES_CONTROLS=1 | |
41983 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
41984 | else | |
41985 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 | |
41986 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
41987 | fi | |
41988 | fi | |
41989 | ||
41990 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
41991 | cat >>confdefs.h <<\_ACEOF | |
41992 | #define wxUSE_NOTEBOOK 1 | |
41993 | _ACEOF | |
41994 | ||
41995 | USES_CONTROLS=1 | |
41996 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
41997 | fi | |
41998 | ||
41999 | ||
42000 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
42001 | cat >>confdefs.h <<\_ACEOF | |
42002 | #define wxUSE_RADIOBOX 1 | |
42003 | _ACEOF | |
42004 | ||
42005 | USES_CONTROLS=1 | |
42006 | fi | |
42007 | ||
42008 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
42009 | cat >>confdefs.h <<\_ACEOF | |
42010 | #define wxUSE_RADIOBTN 1 | |
42011 | _ACEOF | |
42012 | ||
42013 | USES_CONTROLS=1 | |
42014 | fi | |
42015 | ||
42016 | if test "$wxUSE_SASH" = "yes"; then | |
42017 | cat >>confdefs.h <<\_ACEOF | |
42018 | #define wxUSE_SASH 1 | |
42019 | _ACEOF | |
42020 | ||
42021 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
42022 | fi | |
42023 | ||
42024 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
42025 | cat >>confdefs.h <<\_ACEOF | |
42026 | #define wxUSE_SCROLLBAR 1 | |
42027 | _ACEOF | |
42028 | ||
42029 | USES_CONTROLS=1 | |
42030 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
42031 | fi | |
42032 | ||
42033 | if test "$wxUSE_SLIDER" = "yes"; then | |
42034 | cat >>confdefs.h <<\_ACEOF | |
42035 | #define wxUSE_SLIDER 1 | |
42036 | _ACEOF | |
42037 | ||
42038 | USES_CONTROLS=1 | |
42039 | fi | |
42040 | ||
42041 | if test "$wxUSE_SPINBTN" = "yes"; then | |
42042 | cat >>confdefs.h <<\_ACEOF | |
42043 | #define wxUSE_SPINBTN 1 | |
42044 | _ACEOF | |
42045 | ||
42046 | USES_CONTROLS=1 | |
42047 | fi | |
42048 | ||
42049 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
42050 | cat >>confdefs.h <<\_ACEOF | |
42051 | #define wxUSE_SPINCTRL 1 | |
42052 | _ACEOF | |
42053 | ||
42054 | USES_CONTROLS=1 | |
42055 | fi | |
42056 | ||
42057 | if test "$wxUSE_SPLITTER" = "yes"; then | |
42058 | cat >>confdefs.h <<\_ACEOF | |
42059 | #define wxUSE_SPLITTER 1 | |
42060 | _ACEOF | |
42061 | ||
42062 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
42063 | fi | |
42064 | ||
42065 | if test "$wxUSE_STATBMP" = "yes"; then | |
42066 | cat >>confdefs.h <<\_ACEOF | |
42067 | #define wxUSE_STATBMP 1 | |
42068 | _ACEOF | |
42069 | ||
42070 | USES_CONTROLS=1 | |
42071 | fi | |
42072 | ||
42073 | if test "$wxUSE_STATBOX" = "yes"; then | |
42074 | cat >>confdefs.h <<\_ACEOF | |
42075 | #define wxUSE_STATBOX 1 | |
42076 | _ACEOF | |
42077 | ||
42078 | USES_CONTROLS=1 | |
42079 | fi | |
42080 | ||
42081 | if test "$wxUSE_STATTEXT" = "yes"; then | |
42082 | cat >>confdefs.h <<\_ACEOF | |
42083 | #define wxUSE_STATTEXT 1 | |
42084 | _ACEOF | |
42085 | ||
42086 | USES_CONTROLS=1 | |
42087 | fi | |
42088 | ||
42089 | if test "$wxUSE_STATLINE" = "yes"; then | |
42090 | cat >>confdefs.h <<\_ACEOF | |
42091 | #define wxUSE_STATLINE 1 | |
42092 | _ACEOF | |
42093 | ||
42094 | USES_CONTROLS=1 | |
42095 | fi | |
42096 | ||
42097 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
da4486fb VZ |
42098 | cat >>confdefs.h <<\_ACEOF |
42099 | #define wxUSE_NATIVE_STATUSBAR 1 | |
42100 | _ACEOF | |
42101 | ||
a848cd7e SC |
42102 | cat >>confdefs.h <<\_ACEOF |
42103 | #define wxUSE_STATUSBAR 1 | |
42104 | _ACEOF | |
42105 | ||
42106 | USES_CONTROLS=1 | |
42107 | ||
42108 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
42109 | fi | |
42110 | ||
42111 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
42112 | cat >>confdefs.h <<\_ACEOF | |
42113 | #define wxUSE_TAB_DIALOG 1 | |
42114 | _ACEOF | |
42115 | ||
a848cd7e SC |
42116 | fi |
42117 | ||
42118 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
42119 | cat >>confdefs.h <<\_ACEOF | |
42120 | #define wxUSE_TEXTCTRL 1 | |
42121 | _ACEOF | |
42122 | ||
42123 | USES_CONTROLS=1 | |
42124 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
42125 | fi | |
42126 | ||
42127 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
42128 | if test "$wxUSE_COCOA" = 1 ; then | |
42129 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 | |
42130 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
42131 | wxUSE_TOGGLEBTN=no | |
42132 | fi | |
42133 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
42134 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 | |
42135 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
42136 | wxUSE_TOGGLEBTN=no | |
42137 | fi | |
42138 | ||
42139 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
42140 | cat >>confdefs.h <<\_ACEOF | |
42141 | #define wxUSE_TOGGLEBTN 1 | |
42142 | _ACEOF | |
42143 | ||
42144 | USES_CONTROLS=1 | |
42145 | fi | |
42146 | fi | |
42147 | ||
42148 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
42149 | cat >>confdefs.h <<\_ACEOF | |
42150 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
42151 | _ACEOF | |
42152 | ||
42153 | wxUSE_TOOLBAR="yes" | |
42154 | USES_CONTROLS=1 | |
42155 | fi | |
42156 | ||
42157 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
42158 | cat >>confdefs.h <<\_ACEOF | |
42159 | #define wxUSE_TOOLBAR 1 | |
42160 | _ACEOF | |
42161 | ||
42162 | USES_CONTROLS=1 | |
42163 | ||
42164 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
42165 | wxUSE_TOOLBAR_NATIVE="yes" | |
42166 | fi | |
42167 | ||
42168 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
42169 | cat >>confdefs.h <<\_ACEOF | |
42170 | #define wxUSE_TOOLBAR_NATIVE 1 | |
42171 | _ACEOF | |
42172 | ||
42173 | USES_CONTROLS=1 | |
42174 | fi | |
42175 | ||
42176 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
42177 | fi | |
42178 | ||
42179 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
42180 | if test "$wxUSE_MOTIF" = 1; then | |
42181 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 | |
42182 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
42183 | else | |
42184 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
42185 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 | |
42186 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
42187 | else | |
42188 | cat >>confdefs.h <<\_ACEOF | |
42189 | #define wxUSE_TOOLTIPS 1 | |
42190 | _ACEOF | |
42191 | ||
42192 | fi | |
42193 | fi | |
42194 | fi | |
42195 | ||
0093c2fc VZ |
42196 | if test "$wxUSE_TREEBOOK" = "yes"; then |
42197 | cat >>confdefs.h <<\_ACEOF | |
42198 | #define wxUSE_TREEBOOK 1 | |
42199 | _ACEOF | |
42200 | ||
42201 | USES_CONTROLS=1 | |
42202 | fi | |
42203 | ||
a848cd7e SC |
42204 | if test "$wxUSE_TREECTRL" = "yes"; then |
42205 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
42206 | cat >>confdefs.h <<\_ACEOF | |
42207 | #define wxUSE_TREECTRL 1 | |
42208 | _ACEOF | |
42209 | ||
42210 | USES_CONTROLS=1 | |
42211 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
42212 | else | |
42213 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 | |
42214 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
42215 | fi | |
42216 | fi | |
42217 | ||
42218 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
42219 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
42220 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 | |
42221 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
42222 | else | |
42223 | if test "$wxUSE_PM" = 1; then | |
42224 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
42225 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
42226 | else | |
42227 | cat >>confdefs.h <<\_ACEOF | |
42228 | #define wxUSE_POPUPWIN 1 | |
42229 | _ACEOF | |
42230 | ||
0b78747f | 42231 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup" |
a848cd7e SC |
42232 | |
42233 | USES_CONTROLS=1 | |
42234 | fi | |
42235 | fi | |
42236 | fi | |
42237 | ||
0dcd06dd | 42238 | if test "$wxUSE_DIALUP_MANAGER" = "yes"; then |
b843b628 MB |
42239 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
42240 | { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5 | |
42241 | echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;} | |
42242 | else | |
42243 | cat >>confdefs.h <<\_ACEOF | |
42244 | #define wxUSE_DIALUP_MANAGER 1 | |
42245 | _ACEOF | |
42246 | ||
42247 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
42248 | fi | |
42249 | fi | |
42250 | ||
a848cd7e SC |
42251 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
42252 | if test "$wxUSE_PM" = 1; then | |
42253 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 | |
42254 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
42255 | else | |
42256 | cat >>confdefs.h <<\_ACEOF | |
42257 | #define wxUSE_TIPWINDOW 1 | |
42258 | _ACEOF | |
42259 | ||
42260 | fi | |
42261 | fi | |
42262 | ||
42263 | if test "$USES_CONTROLS" = 1; then | |
42264 | cat >>confdefs.h <<\_ACEOF | |
42265 | #define wxUSE_CONTROLS 1 | |
42266 | _ACEOF | |
42267 | ||
42268 | fi | |
42269 | ||
42270 | ||
42271 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then | |
42272 | cat >>confdefs.h <<\_ACEOF | |
42273 | #define wxUSE_ACCESSIBILITY 1 | |
42274 | _ACEOF | |
42275 | ||
42276 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
42277 | fi | |
42278 | ||
38b4a946 VZ |
42279 | if test "$wxUSE_DC_CACHEING" = "yes"; then |
42280 | cat >>confdefs.h <<\_ACEOF | |
42281 | #define wxUSE_DC_CACHEING 1 | |
42282 | _ACEOF | |
42283 | ||
42284 | fi | |
42285 | ||
a848cd7e SC |
42286 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
42287 | cat >>confdefs.h <<\_ACEOF | |
42288 | #define wxUSE_DRAGIMAGE 1 | |
42289 | _ACEOF | |
42290 | ||
42291 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
42292 | fi | |
42293 | ||
42294 | if test "$wxUSE_EXCEPTIONS" = "yes"; then | |
07bea8f0 VS |
42295 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
42296 | { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5 | |
42297 | echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;} | |
42298 | else | |
42299 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
42300 | #define wxUSE_EXCEPTIONS 1 |
42301 | _ACEOF | |
42302 | ||
07bea8f0 VS |
42303 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except" |
42304 | fi | |
a848cd7e SC |
42305 | fi |
42306 | ||
42307 | USE_HTML=0 | |
42308 | if test "$wxUSE_HTML" = "yes"; then | |
42309 | cat >>confdefs.h <<\_ACEOF | |
42310 | #define wxUSE_HTML 1 | |
42311 | _ACEOF | |
42312 | ||
42313 | USE_HTML=1 | |
42314 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
de59c161 RD |
42315 | if test "$wxUSE_MAC" = 1; then |
42316 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl" | |
42317 | fi | |
a848cd7e | 42318 | fi |
646b6ec1 | 42319 | if test "$wxUSE_WEBKIT" = "yes"; then |
1e9e8aba | 42320 | if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then |
07bea8f0 VS |
42321 | old_CPPFLAGS="$CPPFLAGS" |
42322 | CPPFLAGS="$CPPFLAGS -x objective-c++" | |
42323 | echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5 | |
42324 | echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6 | |
42325 | if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then | |
42326 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42327 | else | |
42328 | cat >conftest.$ac_ext <<_ACEOF | |
42329 | /* confdefs.h. */ | |
42330 | _ACEOF | |
42331 | cat confdefs.h >>conftest.$ac_ext | |
42332 | cat >>conftest.$ac_ext <<_ACEOF | |
42333 | /* end confdefs.h. */ | |
42334 | #include <Carbon/Carbon.h> | |
42335 | ||
42336 | #include <WebKit/HIWebView.h> | |
42337 | _ACEOF | |
42338 | rm -f conftest.$ac_objext | |
42339 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
42340 | (eval $ac_compile) 2>conftest.er1 | |
42341 | ac_status=$? | |
42342 | grep -v '^ *+' conftest.er1 >conftest.err | |
42343 | rm -f conftest.er1 | |
42344 | cat conftest.err >&5 | |
42345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42346 | (exit $ac_status); } && | |
0093c2fc | 42347 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
07bea8f0 VS |
42348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42349 | (eval $ac_try) 2>&5 | |
42350 | ac_status=$? | |
42351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42352 | (exit $ac_status); }; } && | |
42353 | { ac_try='test -s conftest.$ac_objext' | |
42354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42355 | (eval $ac_try) 2>&5 | |
42356 | ac_status=$? | |
42357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42358 | (exit $ac_status); }; }; then | |
42359 | ac_cv_header_WebKit_HIWebView_h=yes | |
42360 | else | |
42361 | echo "$as_me: failed program was:" >&5 | |
42362 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42363 | ||
42364 | ac_cv_header_WebKit_HIWebView_h=no | |
42365 | fi | |
42366 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
42367 | fi | |
42368 | echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5 | |
42369 | echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6 | |
42370 | if test $ac_cv_header_WebKit_HIWebView_h = yes; then | |
42371 | ||
42372 | cat >>confdefs.h <<\_ACEOF | |
646b6ec1 VS |
42373 | #define wxUSE_WEBKIT 1 |
42374 | _ACEOF | |
42375 | ||
07bea8f0 VS |
42376 | WEBKIT_LINK="-framework WebKit" |
42377 | ||
42378 | else | |
42379 | ||
42380 | { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5 | |
42381 | echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;} | |
42382 | wxUSE_WEBKIT=no | |
42383 | ||
646b6ec1 VS |
42384 | fi |
42385 | ||
07bea8f0 VS |
42386 | |
42387 | CPPFLAGS="$old_CPPFLAGS" | |
42388 | elif test "$wxUSE_COCOA" = 1; then | |
42389 | cat >>confdefs.h <<\_ACEOF | |
42390 | #define wxUSE_WEBKIT 1 | |
42391 | _ACEOF | |
42392 | ||
42393 | else | |
42394 | wxUSE_WEBKIT=no | |
42395 | fi | |
42396 | fi | |
42397 | ||
9a8f0513 VS |
42398 | USE_XRC=0 |
42399 | if test "$wxUSE_XRC" = "yes"; then | |
d2ebf0b7 VS |
42400 | if test "$wxUSE_XML" != "yes"; then |
42401 | { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5 | |
42402 | echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;} | |
42403 | wxUSE_XRC=no | |
42404 | else | |
42405 | cat >>confdefs.h <<\_ACEOF | |
9a8f0513 VS |
42406 | #define wxUSE_XRC 1 |
42407 | _ACEOF | |
42408 | ||
d2ebf0b7 VS |
42409 | USE_XRC=1 |
42410 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc" | |
42411 | fi | |
9a8f0513 | 42412 | fi |
07bea8f0 | 42413 | |
a848cd7e SC |
42414 | if test "$wxUSE_MENUS" = "yes"; then |
42415 | cat >>confdefs.h <<\_ACEOF | |
42416 | #define wxUSE_MENUS 1 | |
42417 | _ACEOF | |
42418 | ||
42419 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
42420 | fi | |
42421 | ||
42422 | if test "$wxUSE_METAFILE" = "yes"; then | |
42423 | cat >>confdefs.h <<\_ACEOF | |
42424 | #define wxUSE_METAFILE 1 | |
42425 | _ACEOF | |
42426 | ||
42427 | fi | |
42428 | ||
42429 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
42430 | cat >>confdefs.h <<\_ACEOF | |
42431 | #define wxUSE_MIMETYPE 1 | |
42432 | _ACEOF | |
42433 | ||
42434 | fi | |
42435 | ||
42436 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
42437 | cat >>confdefs.h <<\_ACEOF | |
42438 | #define wxUSE_MINIFRAME 1 | |
42439 | _ACEOF | |
42440 | ||
42441 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
42442 | fi | |
42443 | ||
42444 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
42445 | cat >>confdefs.h <<\_ACEOF | |
42446 | #define wxUSE_SYSTEM_OPTIONS 1 | |
42447 | _ACEOF | |
42448 | ||
42449 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ | |
a49baeab | 42450 | "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then |
a848cd7e SC |
42451 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" |
42452 | fi | |
42453 | fi | |
42454 | ||
42455 | ||
42456 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
42457 | cat >>confdefs.h <<\_ACEOF | |
42458 | #define wxUSE_VALIDATORS 1 | |
42459 | _ACEOF | |
42460 | ||
42461 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
42462 | fi | |
42463 | ||
42464 | if test "$wxUSE_PALETTE" = "yes" ; then | |
42465 | cat >>confdefs.h <<\_ACEOF | |
42466 | #define wxUSE_PALETTE 1 | |
42467 | _ACEOF | |
42468 | ||
42469 | fi | |
42470 | ||
42471 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
42472 | LIBS=" -lunicows $LIBS" | |
42473 | fi | |
42474 | ||
42475 | ||
42476 | if test "$wxUSE_IMAGE" = "yes" ; then | |
42477 | cat >>confdefs.h <<\_ACEOF | |
42478 | #define wxUSE_IMAGE 1 | |
42479 | _ACEOF | |
42480 | ||
42481 | ||
42482 | if test "$wxUSE_GIF" = "yes" ; then | |
42483 | cat >>confdefs.h <<\_ACEOF | |
42484 | #define wxUSE_GIF 1 | |
42485 | _ACEOF | |
42486 | ||
42487 | fi | |
42488 | ||
42489 | if test "$wxUSE_PCX" = "yes" ; then | |
42490 | cat >>confdefs.h <<\_ACEOF | |
42491 | #define wxUSE_PCX 1 | |
42492 | _ACEOF | |
42493 | ||
42494 | fi | |
42495 | ||
42496 | if test "$wxUSE_IFF" = "yes" ; then | |
42497 | cat >>confdefs.h <<\_ACEOF | |
42498 | #define wxUSE_IFF 1 | |
42499 | _ACEOF | |
42500 | ||
42501 | fi | |
42502 | ||
42503 | if test "$wxUSE_PNM" = "yes" ; then | |
42504 | cat >>confdefs.h <<\_ACEOF | |
42505 | #define wxUSE_PNM 1 | |
42506 | _ACEOF | |
42507 | ||
42508 | fi | |
42509 | ||
42510 | if test "$wxUSE_XPM" = "yes" ; then | |
42511 | cat >>confdefs.h <<\_ACEOF | |
42512 | #define wxUSE_XPM 1 | |
42513 | _ACEOF | |
42514 | ||
42515 | fi | |
42516 | ||
42517 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
42518 | cat >>confdefs.h <<\_ACEOF | |
42519 | #define wxUSE_ICO_CUR 1 | |
42520 | _ACEOF | |
42521 | ||
42522 | fi | |
42523 | fi | |
42524 | ||
42525 | ||
42526 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
42527 | cat >>confdefs.h <<\_ACEOF | |
42528 | #define wxUSE_CHOICEDLG 1 | |
42529 | _ACEOF | |
42530 | ||
42531 | fi | |
42532 | ||
42533 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
42534 | cat >>confdefs.h <<\_ACEOF | |
42535 | #define wxUSE_COLOURDLG 1 | |
42536 | _ACEOF | |
42537 | ||
42538 | fi | |
42539 | ||
42540 | if test "$wxUSE_FILEDLG" = "yes"; then | |
42541 | cat >>confdefs.h <<\_ACEOF | |
42542 | #define wxUSE_FILEDLG 1 | |
42543 | _ACEOF | |
42544 | ||
42545 | fi | |
42546 | ||
42547 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
42548 | cat >>confdefs.h <<\_ACEOF | |
42549 | #define wxUSE_FINDREPLDLG 1 | |
42550 | _ACEOF | |
42551 | ||
42552 | fi | |
42553 | ||
42554 | if test "$wxUSE_FONTDLG" = "yes"; then | |
42555 | cat >>confdefs.h <<\_ACEOF | |
42556 | #define wxUSE_FONTDLG 1 | |
42557 | _ACEOF | |
42558 | ||
42559 | fi | |
42560 | ||
42561 | if test "$wxUSE_DIRDLG" = "yes"; then | |
42562 | if test "$wxUSE_TREECTRL" != "yes"; then | |
42563 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 | |
42564 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
42565 | else | |
42566 | cat >>confdefs.h <<\_ACEOF | |
42567 | #define wxUSE_DIRDLG 1 | |
42568 | _ACEOF | |
42569 | ||
42570 | fi | |
42571 | fi | |
42572 | ||
42573 | if test "$wxUSE_MSGDLG" = "yes"; then | |
42574 | cat >>confdefs.h <<\_ACEOF | |
42575 | #define wxUSE_MSGDLG 1 | |
42576 | _ACEOF | |
42577 | ||
42578 | fi | |
42579 | ||
42580 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
42581 | cat >>confdefs.h <<\_ACEOF | |
42582 | #define wxUSE_NUMBERDLG 1 | |
42583 | _ACEOF | |
42584 | ||
42585 | fi | |
42586 | ||
42587 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
42588 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
42589 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 | |
42590 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
42591 | else | |
42592 | cat >>confdefs.h <<\_ACEOF | |
42593 | #define wxUSE_PROGRESSDLG 1 | |
42594 | _ACEOF | |
42595 | ||
42596 | fi | |
42597 | fi | |
42598 | ||
42599 | if test "$wxUSE_SPLASH" = "yes"; then | |
42600 | cat >>confdefs.h <<\_ACEOF | |
42601 | #define wxUSE_SPLASH 1 | |
42602 | _ACEOF | |
42603 | ||
2057db16 | 42604 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash" |
a848cd7e SC |
42605 | fi |
42606 | ||
42607 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
42608 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
42609 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 | |
42610 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
42611 | else | |
42612 | cat >>confdefs.h <<\_ACEOF | |
42613 | #define wxUSE_STARTUP_TIPS 1 | |
42614 | _ACEOF | |
42615 | ||
42616 | fi | |
42617 | fi | |
42618 | ||
42619 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
42620 | cat >>confdefs.h <<\_ACEOF | |
42621 | #define wxUSE_TEXTDLG 1 | |
42622 | _ACEOF | |
42623 | ||
42624 | fi | |
42625 | ||
42626 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
42627 | cat >>confdefs.h <<\_ACEOF | |
42628 | #define wxUSE_WIZARDDLG 1 | |
42629 | _ACEOF | |
42630 | ||
42631 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
42632 | fi | |
42633 | ||
42634 | ||
ce756cb0 | 42635 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
ce756cb0 RN |
42636 | if test "$wxUSE_GTK" = 1; then |
42637 | wxUSE_GSTREAMER="yes" | |
42638 | ||
ce756cb0 | 42639 | |
dae87f93 | 42640 | succeeded=no |
ce756cb0 | 42641 | |
dae87f93 RN |
42642 | if test -z "$PKG_CONFIG"; then |
42643 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
42644 | set dummy pkg-config; ac_word=$2 | |
42645 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
42646 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
42647 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
42648 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42649 | else | |
42650 | case $PKG_CONFIG in | |
42651 | [\\/]* | ?:[\\/]*) | |
42652 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
42653 | ;; | |
42654 | *) | |
42655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42656 | for as_dir in $PATH | |
42657 | do | |
42658 | IFS=$as_save_IFS | |
42659 | test -z "$as_dir" && as_dir=. | |
42660 | for ac_exec_ext in '' $ac_executable_extensions; do | |
42661 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
42662 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
42663 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
42664 | break 2 | |
42665 | fi | |
42666 | done | |
42667 | done | |
42668 | ||
42669 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
42670 | ;; | |
42671 | esac | |
42672 | fi | |
42673 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
42674 | ||
42675 | if test -n "$PKG_CONFIG"; then | |
42676 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
42677 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
42678 | else | |
42679 | echo "$as_me:$LINENO: result: no" >&5 | |
42680 | echo "${ECHO_T}no" >&6 | |
42681 | fi | |
42682 | ||
42683 | fi | |
42684 | ||
42685 | if test "$PKG_CONFIG" = "no" ; then | |
42686 | echo "*** The pkg-config script could not be found. Make sure it is" | |
42687 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
42688 | echo "*** to the full path to pkg-config." | |
42689 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
42690 | else | |
42691 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
42692 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
42693 | echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5 | |
42694 | echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6 | |
42695 | ||
42696 | if $PKG_CONFIG --exists "gstreamer-0.8" ; then | |
42697 | echo "$as_me:$LINENO: result: yes" >&5 | |
ce756cb0 | 42698 | echo "${ECHO_T}yes" >&6 |
dae87f93 | 42699 | succeeded=yes |
ce756cb0 | 42700 | |
dae87f93 RN |
42701 | echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5 |
42702 | echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6 | |
42703 | GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"` | |
42704 | echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5 | |
42705 | echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6 | |
42706 | ||
42707 | echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5 | |
42708 | echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6 | |
42709 | GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"` | |
42710 | echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5 | |
42711 | echo "${ECHO_T}$GSTREAMER_LIBS" >&6 | |
42712 | else | |
42713 | GSTREAMER_CFLAGS="" | |
42714 | GSTREAMER_LIBS="" | |
42715 | ## If we have a custom action on failure, don't print errors, but | |
42716 | ## do set a variable so people can do so. | |
42717 | GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"` | |
ce756cb0 | 42718 | |
dae87f93 RN |
42719 | fi |
42720 | ||
42721 | ||
42722 | ||
42723 | else | |
42724 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
42725 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
42726 | fi | |
42727 | fi | |
42728 | ||
42729 | if test $succeeded = yes; then | |
42730 | ||
42731 | CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS" | |
42732 | LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8" | |
ce756cb0 | 42733 | |
ce756cb0 | 42734 | else |
dae87f93 RN |
42735 | |
42736 | { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5 | |
42737 | echo "$as_me: WARNING: GStreamer installation not found" >&2;} | |
42738 | wxUSE_GSTREAMER="no" | |
42739 | ||
42740 | fi | |
42741 | ||
42742 | ||
42743 | ||
42744 | ||
42745 | ||
42746 | if test "x$GST_INSPECT" == "x"; then | |
42747 | # Extract the first word of "gst-inspect", so it can be a program name with args. | |
42748 | set dummy gst-inspect; ac_word=$2 | |
42749 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
42750 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
42751 | if test "${ac_cv_prog_GST_INSPECT+set}" = set; then | |
42752 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42753 | else | |
42754 | if test -n "$GST_INSPECT"; then | |
42755 | ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test. | |
42756 | else | |
42757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
42758 | for as_dir in $PATH | |
42759 | do | |
42760 | IFS=$as_save_IFS | |
42761 | test -z "$as_dir" && as_dir=. | |
42762 | for ac_exec_ext in '' $ac_executable_extensions; do | |
42763 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
42764 | ac_cv_prog_GST_INSPECT="gst-inspect" | |
42765 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
42766 | break 2 | |
ce756cb0 | 42767 | fi |
dae87f93 RN |
42768 | done |
42769 | done | |
42770 | ||
42771 | fi | |
42772 | fi | |
42773 | GST_INSPECT=$ac_cv_prog_GST_INSPECT | |
42774 | if test -n "$GST_INSPECT"; then | |
42775 | echo "$as_me:$LINENO: result: $GST_INSPECT" >&5 | |
42776 | echo "${ECHO_T}$GST_INSPECT" >&6 | |
42777 | else | |
42778 | echo "$as_me:$LINENO: result: no" >&5 | |
42779 | echo "${ECHO_T}no" >&6 | |
42780 | fi | |
42781 | ||
42782 | fi | |
42783 | ||
42784 | if test "x$GST_INSPECT" != "x"; then | |
42785 | echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5 | |
42786 | echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6 | |
42787 | if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then | |
42788 | echo "$as_me:$LINENO: result: found." >&5 | |
42789 | echo "${ECHO_T}found." >&6 | |
ce756cb0 | 42790 | |
ce756cb0 | 42791 | else |
dae87f93 RN |
42792 | echo "$as_me:$LINENO: result: not found." >&5 |
42793 | echo "${ECHO_T}not found." >&6 | |
42794 | ||
42795 | wxUSE_GSTREAMER="no" | |
42796 | { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5 | |
42797 | echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;} | |
42798 | ||
42799 | fi | |
42800 | fi | |
42801 | ||
42802 | ||
42803 | echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5 | |
42804 | echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6 | |
42805 | if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then | |
42806 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42807 | else | |
42808 | cat >conftest.$ac_ext <<_ACEOF | |
ce756cb0 RN |
42809 | /* confdefs.h. */ |
42810 | _ACEOF | |
42811 | cat confdefs.h >>conftest.$ac_ext | |
42812 | cat >>conftest.$ac_ext <<_ACEOF | |
42813 | /* end confdefs.h. */ | |
dae87f93 | 42814 | #include <gst/gst.h> |
ce756cb0 | 42815 | |
dae87f93 | 42816 | #include <gst/xoverlay/xoverlay.h> |
ce756cb0 RN |
42817 | _ACEOF |
42818 | rm -f conftest.$ac_objext | |
42819 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
42820 | (eval $ac_compile) 2>conftest.er1 | |
42821 | ac_status=$? | |
42822 | grep -v '^ *+' conftest.er1 >conftest.err | |
42823 | rm -f conftest.er1 | |
42824 | cat conftest.err >&5 | |
42825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42826 | (exit $ac_status); } && | |
0093c2fc | 42827 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ce756cb0 RN |
42828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42829 | (eval $ac_try) 2>&5 | |
42830 | ac_status=$? | |
42831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42832 | (exit $ac_status); }; } && | |
42833 | { ac_try='test -s conftest.$ac_objext' | |
42834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42835 | (eval $ac_try) 2>&5 | |
42836 | ac_status=$? | |
42837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42838 | (exit $ac_status); }; }; then | |
dae87f93 | 42839 | ac_cv_header_gst_xoverlay_xoverlay_h=yes |
ce756cb0 RN |
42840 | else |
42841 | echo "$as_me: failed program was:" >&5 | |
42842 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42843 | ||
dae87f93 | 42844 | ac_cv_header_gst_xoverlay_xoverlay_h=no |
ce756cb0 RN |
42845 | fi |
42846 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
dae87f93 RN |
42847 | fi |
42848 | echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5 | |
42849 | echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6 | |
42850 | if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then | |
42851 | : | |
42852 | else | |
ce756cb0 | 42853 | |
dae87f93 RN |
42854 | wxUSE_GSTREAMER="no" |
42855 | { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5 | |
42856 | echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;} | |
ce756cb0 | 42857 | |
dae87f93 | 42858 | fi |
ce756cb0 | 42859 | |
dae87f93 RN |
42860 | |
42861 | ||
42862 | echo "$as_me:$LINENO: checking for gstplay 0.8" >&5 | |
ce756cb0 RN |
42863 | echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6 |
42864 | ||
0ad5d837 VZ |
42865 | ac_find_libraries= |
42866 | for ac_dir in $SEARCH_LIB; | |
ce756cb0 | 42867 | do |
3eca31dc | 42868 | for ac_extension in a so sl dylib dll.a; do |
ce756cb0 RN |
42869 | if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then |
42870 | ac_find_libraries=$ac_dir | |
42871 | break 2 | |
42872 | fi | |
42873 | done | |
42874 | done | |
42875 | ||
ce756cb0 | 42876 | |
dae87f93 RN |
42877 | if test "$ac_find_libraries" = "" ; then |
42878 | echo "$as_me:$LINENO: result: no" >&5 | |
42879 | echo "${ECHO_T}no" >&6 | |
42880 | wxUSE_GSTREAMER="no" | |
42881 | else | |
42882 | echo "$as_me:$LINENO: result: yes" >&5 | |
ce756cb0 | 42883 | echo "${ECHO_T}yes" >&6 |
dae87f93 | 42884 | fi |
ce756cb0 | 42885 | |
dae87f93 RN |
42886 | if test "$wxUSE_GSTREAMER" = "yes"; then |
42887 | cat >>confdefs.h <<\_ACEOF | |
ce756cb0 RN |
42888 | #define wxUSE_GSTREAMER 1 |
42889 | _ACEOF | |
42890 | ||
dae87f93 RN |
42891 | echo "$as_me:$LINENO: result: GStreamer detection successful" >&5 |
42892 | echo "${ECHO_T}GStreamer detection successful" >&6 | |
ce756cb0 RN |
42893 | fi |
42894 | fi | |
42895 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer" | |
42896 | cat >>confdefs.h <<\_ACEOF | |
42897 | #define wxUSE_MEDIACTRL 1 | |
42898 | _ACEOF | |
42899 | ||
42900 | fi | |
42901 | ||
42902 | ||
a848cd7e SC |
42903 | if test "$cross_compiling" = "yes"; then |
42904 | OSINFO="\"$host\"" | |
42905 | else | |
42906 | OSINFO=`uname -s -r -m` | |
42907 | OSINFO="\"$OSINFO\"" | |
42908 | fi | |
42909 | ||
42910 | cat >>confdefs.h <<_ACEOF | |
42911 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
42912 | _ACEOF | |
42913 | ||
42914 | ||
42915 | ||
42916 | if test "x$prefix" != "xNONE"; then | |
42917 | wxPREFIX=$prefix | |
42918 | else | |
42919 | wxPREFIX=$ac_default_prefix | |
42920 | fi | |
42921 | ||
42922 | cat >>confdefs.h <<_ACEOF | |
42923 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
42924 | _ACEOF | |
42925 | ||
42926 | ||
a848cd7e SC |
42927 | |
42928 | ||
42929 | CORE_BASE_LIBS="net base" | |
42930 | CORE_GUI_LIBS="adv core" | |
42931 | ||
42932 | if test "$wxUSE_XML" = "yes" ; then | |
42933 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
42934 | fi | |
42935 | if test "$wxUSE_ODBC" != "no" ; then | |
42936 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
42937 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
42938 | fi | |
42939 | if test "$wxUSE_HTML" = "yes" ; then | |
42940 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
42941 | fi | |
61639efb VZ |
42942 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
42943 | CORE_GUI_LIBS="qa $CORE_GUI_LIBS" | |
42944 | fi | |
9a8f0513 VS |
42945 | if test "$wxUSE_XRC" = "yes" ; then |
42946 | CORE_GUI_LIBS="xrc $CORE_GUI_LIBS" | |
42947 | fi | |
a848cd7e SC |
42948 | |
42949 | if test "$wxUSE_GUI" != "yes"; then | |
42950 | CORE_GUI_LIBS="" | |
42951 | fi | |
42952 | ||
42953 | ||
42954 | ||
42955 | ||
42956 | ||
42957 | ||
42958 | ||
42959 | ||
42960 | if test "$wxUSE_MAC" = 1 ; then | |
a98bf0c0 | 42961 | if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then |
1e9e8aba DE |
42962 | if test "$USE_DARWIN" = 1; then |
42963 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
42964 | else | |
42965 | LDFLAGS="$LDFLAGS -lQuickTimeLib" | |
42966 | fi | |
07bea8f0 | 42967 | fi |
5dcf30a0 | 42968 | if test "$USE_DARWIN" = 1; then |
1e9e8aba DE |
42969 | LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System" |
42970 | else | |
42971 | LDFLAGS="$LDFLAGS -lCarbonLib" | |
5dcf30a0 | 42972 | fi |
a848cd7e SC |
42973 | fi |
42974 | if test "$wxUSE_COCOA" = 1 ; then | |
4cb1d3da | 42975 | LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa" |
4fc81cbc RN |
42976 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
42977 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
42978 | fi | |
a848cd7e | 42979 | fi |
19b27e78 MW |
42980 | if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then |
42981 | LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices" | |
42982 | fi | |
a848cd7e SC |
42983 | |
42984 | ||
42985 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" | |
42986 | ||
42987 | have_cos=0 | |
42988 | have_floor=0 | |
42989 | ||
42990 | for ac_func in cos | |
42991 | do | |
42992 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
42993 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
42994 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
42995 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
42996 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42997 | else | |
42998 | cat >conftest.$ac_ext <<_ACEOF | |
42999 | /* confdefs.h. */ | |
43000 | _ACEOF | |
43001 | cat confdefs.h >>conftest.$ac_ext | |
43002 | cat >>conftest.$ac_ext <<_ACEOF | |
43003 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
43004 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
43005 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
43006 | #define $ac_func innocuous_$ac_func | |
43007 | ||
a848cd7e SC |
43008 | /* System header to define __stub macros and hopefully few prototypes, |
43009 | which can conflict with char $ac_func (); below. | |
43010 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
43011 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 43012 | |
a848cd7e SC |
43013 | #ifdef __STDC__ |
43014 | # include <limits.h> | |
43015 | #else | |
43016 | # include <assert.h> | |
43017 | #endif | |
ac1cb8d3 VS |
43018 | |
43019 | #undef $ac_func | |
43020 | ||
a848cd7e SC |
43021 | /* Override any gcc2 internal prototype to avoid an error. */ |
43022 | #ifdef __cplusplus | |
43023 | extern "C" | |
43024 | { | |
43025 | #endif | |
43026 | /* We use char because int might match the return type of a gcc2 | |
43027 | builtin and then its argument prototype would still apply. */ | |
43028 | char $ac_func (); | |
43029 | /* The GNU C library defines this for functions which it implements | |
43030 | to always fail with ENOSYS. Some functions are actually named | |
43031 | something starting with __ and the normal name is an alias. */ | |
43032 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
43033 | choke me | |
43034 | #else | |
43035 | char (*f) () = $ac_func; | |
43036 | #endif | |
43037 | #ifdef __cplusplus | |
43038 | } | |
43039 | #endif | |
43040 | ||
43041 | int | |
43042 | main () | |
43043 | { | |
43044 | return f != $ac_func; | |
43045 | ; | |
43046 | return 0; | |
43047 | } | |
43048 | _ACEOF | |
43049 | rm -f conftest.$ac_objext conftest$ac_exeext | |
43050 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 43051 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 43052 | ac_status=$? |
ac1cb8d3 VS |
43053 | grep -v '^ *+' conftest.er1 >conftest.err |
43054 | rm -f conftest.er1 | |
43055 | cat conftest.err >&5 | |
a848cd7e SC |
43056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43057 | (exit $ac_status); } && | |
0093c2fc | 43058 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43060 | (eval $ac_try) 2>&5 | |
43061 | ac_status=$? | |
43062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43063 | (exit $ac_status); }; } && | |
43064 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
43065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43066 | (eval $ac_try) 2>&5 | |
43067 | ac_status=$? | |
43068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43069 | (exit $ac_status); }; }; then | |
43070 | eval "$as_ac_var=yes" | |
43071 | else | |
43072 | echo "$as_me: failed program was:" >&5 | |
43073 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43074 | ||
43075 | eval "$as_ac_var=no" | |
43076 | fi | |
ac1cb8d3 VS |
43077 | rm -f conftest.err conftest.$ac_objext \ |
43078 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
43079 | fi |
43080 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
43081 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
43082 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
43083 | cat >>confdefs.h <<_ACEOF | |
43084 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
43085 | _ACEOF | |
43086 | have_cos=1 | |
43087 | fi | |
43088 | done | |
43089 | ||
43090 | ||
43091 | for ac_func in floor | |
43092 | do | |
43093 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
43094 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
43095 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
43096 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
43097 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43098 | else | |
43099 | cat >conftest.$ac_ext <<_ACEOF | |
43100 | /* confdefs.h. */ | |
43101 | _ACEOF | |
43102 | cat confdefs.h >>conftest.$ac_ext | |
43103 | cat >>conftest.$ac_ext <<_ACEOF | |
43104 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
43105 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
43106 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
43107 | #define $ac_func innocuous_$ac_func | |
43108 | ||
a848cd7e SC |
43109 | /* System header to define __stub macros and hopefully few prototypes, |
43110 | which can conflict with char $ac_func (); below. | |
43111 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
43112 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 43113 | |
a848cd7e SC |
43114 | #ifdef __STDC__ |
43115 | # include <limits.h> | |
43116 | #else | |
43117 | # include <assert.h> | |
43118 | #endif | |
ac1cb8d3 VS |
43119 | |
43120 | #undef $ac_func | |
43121 | ||
a848cd7e SC |
43122 | /* Override any gcc2 internal prototype to avoid an error. */ |
43123 | #ifdef __cplusplus | |
43124 | extern "C" | |
43125 | { | |
43126 | #endif | |
43127 | /* We use char because int might match the return type of a gcc2 | |
43128 | builtin and then its argument prototype would still apply. */ | |
43129 | char $ac_func (); | |
43130 | /* The GNU C library defines this for functions which it implements | |
43131 | to always fail with ENOSYS. Some functions are actually named | |
43132 | something starting with __ and the normal name is an alias. */ | |
43133 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
43134 | choke me | |
43135 | #else | |
43136 | char (*f) () = $ac_func; | |
43137 | #endif | |
43138 | #ifdef __cplusplus | |
43139 | } | |
43140 | #endif | |
43141 | ||
43142 | int | |
43143 | main () | |
43144 | { | |
43145 | return f != $ac_func; | |
43146 | ; | |
43147 | return 0; | |
43148 | } | |
43149 | _ACEOF | |
43150 | rm -f conftest.$ac_objext conftest$ac_exeext | |
43151 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 43152 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 43153 | ac_status=$? |
ac1cb8d3 VS |
43154 | grep -v '^ *+' conftest.er1 >conftest.err |
43155 | rm -f conftest.er1 | |
43156 | cat conftest.err >&5 | |
a848cd7e SC |
43157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43158 | (exit $ac_status); } && | |
0093c2fc | 43159 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43161 | (eval $ac_try) 2>&5 | |
43162 | ac_status=$? | |
43163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43164 | (exit $ac_status); }; } && | |
43165 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
43166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43167 | (eval $ac_try) 2>&5 | |
43168 | ac_status=$? | |
43169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43170 | (exit $ac_status); }; }; then | |
43171 | eval "$as_ac_var=yes" | |
43172 | else | |
43173 | echo "$as_me: failed program was:" >&5 | |
43174 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43175 | ||
43176 | eval "$as_ac_var=no" | |
43177 | fi | |
ac1cb8d3 VS |
43178 | rm -f conftest.err conftest.$ac_objext \ |
43179 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
43180 | fi |
43181 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
43182 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
43183 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
43184 | cat >>confdefs.h <<_ACEOF | |
43185 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
43186 | _ACEOF | |
43187 | have_floor=1 | |
43188 | fi | |
43189 | done | |
43190 | ||
43191 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 | |
43192 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
43193 | if test "$have_cos" = 1 -a "$have_floor" = 1; then | |
43194 | echo "$as_me:$LINENO: result: yes" >&5 | |
43195 | echo "${ECHO_T}yes" >&6 | |
43196 | else | |
43197 | echo "$as_me:$LINENO: result: no" >&5 | |
43198 | echo "${ECHO_T}no" >&6 | |
43199 | LIBS="$LIBS -lm" | |
43200 | # use different functions to avoid configure caching | |
43201 | have_sin=0 | |
43202 | have_ceil=0 | |
43203 | ||
43204 | for ac_func in sin | |
43205 | do | |
43206 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
43207 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
43208 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
43209 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
43210 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43211 | else | |
43212 | cat >conftest.$ac_ext <<_ACEOF | |
43213 | /* confdefs.h. */ | |
43214 | _ACEOF | |
43215 | cat confdefs.h >>conftest.$ac_ext | |
43216 | cat >>conftest.$ac_ext <<_ACEOF | |
43217 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
43218 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
43219 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
43220 | #define $ac_func innocuous_$ac_func | |
43221 | ||
a848cd7e SC |
43222 | /* System header to define __stub macros and hopefully few prototypes, |
43223 | which can conflict with char $ac_func (); below. | |
43224 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
43225 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 43226 | |
a848cd7e SC |
43227 | #ifdef __STDC__ |
43228 | # include <limits.h> | |
43229 | #else | |
43230 | # include <assert.h> | |
43231 | #endif | |
ac1cb8d3 VS |
43232 | |
43233 | #undef $ac_func | |
43234 | ||
a848cd7e SC |
43235 | /* Override any gcc2 internal prototype to avoid an error. */ |
43236 | #ifdef __cplusplus | |
43237 | extern "C" | |
43238 | { | |
43239 | #endif | |
43240 | /* We use char because int might match the return type of a gcc2 | |
43241 | builtin and then its argument prototype would still apply. */ | |
43242 | char $ac_func (); | |
43243 | /* The GNU C library defines this for functions which it implements | |
43244 | to always fail with ENOSYS. Some functions are actually named | |
43245 | something starting with __ and the normal name is an alias. */ | |
43246 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
43247 | choke me | |
43248 | #else | |
43249 | char (*f) () = $ac_func; | |
43250 | #endif | |
43251 | #ifdef __cplusplus | |
43252 | } | |
43253 | #endif | |
43254 | ||
43255 | int | |
43256 | main () | |
43257 | { | |
43258 | return f != $ac_func; | |
43259 | ; | |
43260 | return 0; | |
43261 | } | |
43262 | _ACEOF | |
43263 | rm -f conftest.$ac_objext conftest$ac_exeext | |
43264 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 43265 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 43266 | ac_status=$? |
ac1cb8d3 VS |
43267 | grep -v '^ *+' conftest.er1 >conftest.err |
43268 | rm -f conftest.er1 | |
43269 | cat conftest.err >&5 | |
a848cd7e SC |
43270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43271 | (exit $ac_status); } && | |
0093c2fc | 43272 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43274 | (eval $ac_try) 2>&5 | |
43275 | ac_status=$? | |
43276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43277 | (exit $ac_status); }; } && | |
43278 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
43279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43280 | (eval $ac_try) 2>&5 | |
43281 | ac_status=$? | |
43282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43283 | (exit $ac_status); }; }; then | |
43284 | eval "$as_ac_var=yes" | |
43285 | else | |
43286 | echo "$as_me: failed program was:" >&5 | |
43287 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43288 | ||
43289 | eval "$as_ac_var=no" | |
43290 | fi | |
ac1cb8d3 VS |
43291 | rm -f conftest.err conftest.$ac_objext \ |
43292 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
43293 | fi |
43294 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
43295 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
43296 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
43297 | cat >>confdefs.h <<_ACEOF | |
43298 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
43299 | _ACEOF | |
43300 | have_sin=1 | |
43301 | fi | |
43302 | done | |
43303 | ||
43304 | ||
43305 | for ac_func in ceil | |
43306 | do | |
43307 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
43308 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
43309 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
43310 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
43311 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43312 | else | |
43313 | cat >conftest.$ac_ext <<_ACEOF | |
43314 | /* confdefs.h. */ | |
43315 | _ACEOF | |
43316 | cat confdefs.h >>conftest.$ac_ext | |
43317 | cat >>conftest.$ac_ext <<_ACEOF | |
43318 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
43319 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
43320 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
43321 | #define $ac_func innocuous_$ac_func | |
43322 | ||
a848cd7e SC |
43323 | /* System header to define __stub macros and hopefully few prototypes, |
43324 | which can conflict with char $ac_func (); below. | |
43325 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
43326 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 43327 | |
a848cd7e SC |
43328 | #ifdef __STDC__ |
43329 | # include <limits.h> | |
43330 | #else | |
43331 | # include <assert.h> | |
43332 | #endif | |
ac1cb8d3 VS |
43333 | |
43334 | #undef $ac_func | |
43335 | ||
a848cd7e SC |
43336 | /* Override any gcc2 internal prototype to avoid an error. */ |
43337 | #ifdef __cplusplus | |
43338 | extern "C" | |
43339 | { | |
43340 | #endif | |
43341 | /* We use char because int might match the return type of a gcc2 | |
43342 | builtin and then its argument prototype would still apply. */ | |
43343 | char $ac_func (); | |
43344 | /* The GNU C library defines this for functions which it implements | |
43345 | to always fail with ENOSYS. Some functions are actually named | |
43346 | something starting with __ and the normal name is an alias. */ | |
43347 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
43348 | choke me | |
43349 | #else | |
43350 | char (*f) () = $ac_func; | |
43351 | #endif | |
43352 | #ifdef __cplusplus | |
43353 | } | |
43354 | #endif | |
43355 | ||
43356 | int | |
43357 | main () | |
43358 | { | |
43359 | return f != $ac_func; | |
43360 | ; | |
43361 | return 0; | |
43362 | } | |
43363 | _ACEOF | |
43364 | rm -f conftest.$ac_objext conftest$ac_exeext | |
43365 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 43366 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 43367 | ac_status=$? |
ac1cb8d3 VS |
43368 | grep -v '^ *+' conftest.er1 >conftest.err |
43369 | rm -f conftest.er1 | |
43370 | cat conftest.err >&5 | |
a848cd7e SC |
43371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43372 | (exit $ac_status); } && | |
0093c2fc | 43373 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43375 | (eval $ac_try) 2>&5 | |
43376 | ac_status=$? | |
43377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43378 | (exit $ac_status); }; } && | |
43379 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
43380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43381 | (eval $ac_try) 2>&5 | |
43382 | ac_status=$? | |
43383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43384 | (exit $ac_status); }; }; then | |
43385 | eval "$as_ac_var=yes" | |
43386 | else | |
43387 | echo "$as_me: failed program was:" >&5 | |
43388 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43389 | ||
43390 | eval "$as_ac_var=no" | |
43391 | fi | |
ac1cb8d3 VS |
43392 | rm -f conftest.err conftest.$ac_objext \ |
43393 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
43394 | fi |
43395 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
43396 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
43397 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
43398 | cat >>confdefs.h <<_ACEOF | |
43399 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
43400 | _ACEOF | |
43401 | have_ceil=1 | |
43402 | fi | |
43403 | done | |
43404 | ||
43405 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 | |
43406 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
43407 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then | |
43408 | echo "$as_me:$LINENO: result: yes" >&5 | |
43409 | echo "${ECHO_T}yes" >&6 | |
43410 | else | |
43411 | echo "$as_me:$LINENO: result: no" >&5 | |
43412 | echo "${ECHO_T}no" >&6 | |
43413 | # not sure we should warn the user, crash, etc. | |
43414 | fi | |
43415 | fi | |
43416 | ||
43417 | if test "$wxUSE_GUI" = "yes"; then | |
43418 | ||
43419 | ||
8bce5cda MW |
43420 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \ |
43421 | dynamic erase event exec font image minimal mobile \ | |
43422 | mobile/wxedit mobile/styles propsize render \ | |
43423 | richedit rotate shaped vscroll widgets" | |
a848cd7e SC |
43424 | |
43425 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
43426 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
43427 | fi | |
0b78747f | 43428 | if test "$TOOLKIT" = "MSW"; then |
8bce5cda MW |
43429 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest" |
43430 | if test "$wxUSE_UNIVERSAL" != "yes"; then | |
43431 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg" | |
43432 | fi | |
43433 | fi | |
43434 | if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then | |
43435 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw" | |
0b78747f | 43436 | fi |
a848cd7e SC |
43437 | else |
43438 | SAMPLES_SUBDIRS="console" | |
43439 | fi | |
43440 | ||
43441 | ||
ceec2216 | 43442 | INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \ |
a848cd7e SC |
43443 | -I\${top_srcdir}/include $TOOLKIT_INCLUDE" |
43444 | ||
48f625bc | 43445 | if test "x$INTELCC" = "xyes" ; then |
17a1ebd1 VZ |
43446 | CWARNINGS="-Wall -wd810,869,981,1418,1572,1684" |
43447 | elif test "$GCC" = yes ; then | |
43448 | CWARNINGS="-Wall -Wundef" | |
43449 | fi | |
43450 | ||
48f625bc | 43451 | if test "x$INTELCXX" = "xyes" ; then |
7f47faf4 | 43452 | CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419" |
17a1ebd1 VZ |
43453 | elif test "$GXX" = yes ; then |
43454 | CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy" | |
6ebeb4c7 | 43455 | fi |
a848cd7e SC |
43456 | |
43457 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
43458 | ||
0c3c69fc | 43459 | CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS` |
5294a27e | 43460 | CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS` |
0c3c69fc | 43461 | CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS` |
a848cd7e | 43462 | |
95986553 DE |
43463 | if test "x$MWCC" = "xyes"; then |
43464 | ||
43465 | CC="$CC -cwd source -I-" | |
43466 | CXX="$CXX -cwd source -I-" | |
43467 | fi | |
43468 | ||
a848cd7e | 43469 | |
0c3c69fc | 43470 | LIBS=`echo $LIBS` |
a848cd7e SC |
43471 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
43472 | EXTRALIBS_XML="$EXPAT_LINK" | |
43473 | EXTRALIBS_HTML="$MSPACK_LINK" | |
43474 | EXTRALIBS_ODBC="$ODBC_LINK" | |
43475 | if test "$wxUSE_GUI" = "yes"; then | |
2e350179 | 43476 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT` |
a848cd7e SC |
43477 | fi |
43478 | if test "$wxUSE_OPENGL" = "yes"; then | |
43479 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
43480 | fi | |
43481 | ||
43482 | LDFLAGS="$LDFLAGS $PROFILE" | |
43483 | ||
43484 | if test "$wxUSE_GTK" = 1; then | |
43485 | WXCONFIG_INCLUDE= | |
43486 | else | |
43487 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
43488 | fi | |
43489 | ||
43490 | WXCONFIG_EXTRALIBS="$LIBS" | |
43491 | ||
43492 | if test "$wxUSE_REGEX" = "builtin" ; then | |
74802184 | 43493 | wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty" |
a848cd7e SC |
43494 | fi |
43495 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
74802184 | 43496 | wxconfig_3rdparty="expat $wxconfig_3rdparty" |
a848cd7e SC |
43497 | fi |
43498 | if test "$wxUSE_ODBC" = "builtin" ; then | |
74802184 | 43499 | wxconfig_3rdparty="odbc $wxconfig_3rdparty" |
a848cd7e SC |
43500 | fi |
43501 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
74802184 | 43502 | wxconfig_3rdparty="tiff $wxconfig_3rdparty" |
a848cd7e SC |
43503 | fi |
43504 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
74802184 | 43505 | wxconfig_3rdparty="jpeg $wxconfig_3rdparty" |
a848cd7e SC |
43506 | fi |
43507 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
74802184 | 43508 | wxconfig_3rdparty="png $wxconfig_3rdparty" |
a848cd7e SC |
43509 | fi |
43510 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
74802184 | 43511 | wxconfig_3rdparty="zlib $wxconfig_3rdparty" |
a848cd7e SC |
43512 | fi |
43513 | ||
43514 | for i in $wxconfig_3rdparty ; do | |
74802184 | 43515 | WXCONFIG_EXTRALIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_EXTRALIBS" |
a848cd7e SC |
43516 | done |
43517 | ||
43518 | ||
43519 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then | |
43520 | WXUNIV=1 | |
43521 | else | |
43522 | WXUNIV=0 | |
43523 | fi | |
43524 | ||
43525 | ||
43526 | ||
43527 | ||
43528 | ||
43529 | ||
43530 | ||
43531 | ||
43532 | ||
43533 | if test $wxUSE_MONOLITHIC = "yes" ; then | |
43534 | MONOLITHIC=1 | |
43535 | else | |
43536 | MONOLITHIC=0 | |
43537 | fi | |
43538 | ||
43539 | if test $wxUSE_PLUGINS = "yes" ; then | |
43540 | USE_PLUGINS=1 | |
43541 | else | |
43542 | USE_PLUGINS=0 | |
43543 | fi | |
43544 | ||
43545 | if test $wxUSE_ODBC != "no" ; then | |
43546 | USE_ODBC=1 | |
43547 | else | |
43548 | USE_ODBC=0 | |
43549 | fi | |
43550 | ||
16358932 VZ |
43551 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
43552 | USE_QA=1 | |
43553 | else | |
43554 | USE_QA=0 | |
43555 | fi | |
43556 | ||
a848cd7e SC |
43557 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then |
43558 | OFFICIAL_BUILD=1 | |
43559 | else | |
43560 | OFFICIAL_BUILD=0 | |
43561 | fi | |
43562 | ||
43563 | ||
43564 | ||
43565 | ||
43566 | ||
43567 | ||
43568 | ||
43569 | ||
43570 | ||
43571 | ||
43572 | ||
43573 | ||
43574 | ||
43575 | ||
43576 | ||
43577 | ||
43578 | ||
43579 | ||
43580 | ||
ceec2216 | 43581 | |
d1c38808 | 43582 | |
a848cd7e SC |
43583 | |
43584 | ||
43585 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` | |
43586 | ||
43587 | ||
43588 | ||
43589 | ||
43590 | ||
43591 | ||
43592 | ||
43593 | ||
4d4ff94c VZ |
43594 | case "$TOOLKIT" in |
43595 | GTK) | |
43596 | TOOLKIT_USER="GTK+" | |
43597 | if test "$WXGTK20" = 1; then | |
43598 | TOOLKIT_USER="$TOOLKIT_USER 2" | |
43599 | fi | |
9a8f0513 | 43600 | ;; |
4d4ff94c VZ |
43601 | |
43602 | *) | |
43603 | TOOLKIT_USER=$TOOLKIT_LOWERCASE | |
9a8f0513 | 43604 | ;; |
4d4ff94c | 43605 | esac |
a848cd7e | 43606 | |
fb00f58d JS |
43607 | if test "$wxUSE_WINE" = "yes"; then |
43608 | BAKEFILE_FORCE_PLATFORM=win32 | |
43609 | fi | |
43610 | ||
9a8f0513 | 43611 | |
1e9e8aba DE |
43612 | |
43613 | ||
a848cd7e SC |
43614 | if test "x$BAKEFILE_HOST" = "x"; then |
43615 | BAKEFILE_HOST="${host}" | |
43616 | fi | |
43617 | ||
43618 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then | |
43619 | ||
43620 | if test -n "$ac_tool_prefix"; then | |
43621 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
43622 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
43623 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
43624 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
43625 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
43626 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43627 | else | |
43628 | if test -n "$RANLIB"; then | |
43629 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
43630 | else | |
43631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43632 | for as_dir in $PATH | |
43633 | do | |
43634 | IFS=$as_save_IFS | |
43635 | test -z "$as_dir" && as_dir=. | |
43636 | for ac_exec_ext in '' $ac_executable_extensions; do | |
43637 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
43638 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
43639 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
43640 | break 2 | |
43641 | fi | |
43642 | done | |
43643 | done | |
43644 | ||
43645 | fi | |
43646 | fi | |
43647 | RANLIB=$ac_cv_prog_RANLIB | |
43648 | if test -n "$RANLIB"; then | |
43649 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
43650 | echo "${ECHO_T}$RANLIB" >&6 | |
43651 | else | |
43652 | echo "$as_me:$LINENO: result: no" >&5 | |
43653 | echo "${ECHO_T}no" >&6 | |
43654 | fi | |
43655 | ||
43656 | fi | |
43657 | if test -z "$ac_cv_prog_RANLIB"; then | |
43658 | ac_ct_RANLIB=$RANLIB | |
43659 | # Extract the first word of "ranlib", so it can be a program name with args. | |
43660 | set dummy ranlib; ac_word=$2 | |
43661 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
43662 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
43663 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
43664 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43665 | else | |
43666 | if test -n "$ac_ct_RANLIB"; then | |
43667 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
43668 | else | |
43669 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43670 | for as_dir in $PATH | |
43671 | do | |
43672 | IFS=$as_save_IFS | |
43673 | test -z "$as_dir" && as_dir=. | |
43674 | for ac_exec_ext in '' $ac_executable_extensions; do | |
43675 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
43676 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
43677 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
43678 | break 2 | |
43679 | fi | |
43680 | done | |
43681 | done | |
43682 | ||
43683 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
43684 | fi | |
43685 | fi | |
43686 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
43687 | if test -n "$ac_ct_RANLIB"; then | |
43688 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
43689 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
43690 | else | |
43691 | echo "$as_me:$LINENO: result: no" >&5 | |
43692 | echo "${ECHO_T}no" >&6 | |
43693 | fi | |
43694 | ||
43695 | RANLIB=$ac_ct_RANLIB | |
43696 | else | |
43697 | RANLIB="$ac_cv_prog_RANLIB" | |
43698 | fi | |
43699 | ||
43700 | # Find a good install program. We prefer a C program (faster), | |
43701 | # so one script is as good as another. But avoid the broken or | |
43702 | # incompatible versions: | |
43703 | # SysV /etc/install, /usr/sbin/install | |
43704 | # SunOS /usr/etc/install | |
43705 | # IRIX /sbin/install | |
43706 | # AIX /bin/install | |
43707 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
43708 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
43709 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
43710 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 43711 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
43712 | # ./install, which can be erroneously created by make from ./install.sh. |
43713 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
43714 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
43715 | if test -z "$INSTALL"; then | |
43716 | if test "${ac_cv_path_install+set}" = set; then | |
43717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43718 | else | |
43719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43720 | for as_dir in $PATH | |
43721 | do | |
43722 | IFS=$as_save_IFS | |
43723 | test -z "$as_dir" && as_dir=. | |
43724 | # Account for people who put trailing slashes in PATH elements. | |
43725 | case $as_dir/ in | |
43726 | ./ | .// | /cC/* | \ | |
43727 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 43728 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
43729 | /usr/ucb/* ) ;; |
43730 | *) | |
43731 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
43732 | # Don't use installbsd from OSF since it installs stuff as root | |
43733 | # by default. | |
43734 | for ac_prog in ginstall scoinst install; do | |
43735 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
43736 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
43737 | if test $ac_prog = install && | |
43738 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
43739 | # AIX install. It has an incompatible calling convention. | |
43740 | : | |
43741 | elif test $ac_prog = install && | |
43742 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
43743 | # program-specific install script used by HP pwplus--don't use. | |
43744 | : | |
43745 | else | |
43746 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
43747 | break 3 | |
43748 | fi | |
43749 | fi | |
a848cd7e SC |
43750 | done |
43751 | done | |
43752 | ;; | |
43753 | esac | |
43754 | done | |
43755 | ||
43756 | ||
43757 | fi | |
43758 | if test "${ac_cv_path_install+set}" = set; then | |
43759 | INSTALL=$ac_cv_path_install | |
43760 | else | |
43761 | # As a last resort, use the slow shell script. We don't cache a | |
43762 | # path for INSTALL within a source directory, because that will | |
43763 | # break other packages using the cache if that directory is | |
43764 | # removed, or if the path is relative. | |
43765 | INSTALL=$ac_install_sh | |
43766 | fi | |
43767 | fi | |
43768 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
43769 | echo "${ECHO_T}$INSTALL" >&6 | |
43770 | ||
43771 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
43772 | # It thinks the first close brace ends the variable substitution. | |
43773 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
43774 | ||
43775 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
43776 | ||
43777 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
43778 | ||
43779 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
43780 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
43781 | LN_S=$as_ln_s | |
43782 | if test "$LN_S" = "ln -s"; then | |
43783 | echo "$as_me:$LINENO: result: yes" >&5 | |
43784 | echo "${ECHO_T}yes" >&6 | |
43785 | else | |
43786 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
43787 | echo "${ECHO_T}no, using $LN_S" >&6 | |
43788 | fi | |
43789 | ||
43790 | ||
43791 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
43792 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 43793 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
43794 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
43795 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43796 | else | |
43797 | cat >conftest.make <<\_ACEOF | |
43798 | all: | |
43799 | @echo 'ac_maketemp="$(MAKE)"' | |
43800 | _ACEOF | |
43801 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
43802 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
43803 | if test -n "$ac_maketemp"; then | |
43804 | eval ac_cv_prog_make_${ac_make}_set=yes | |
43805 | else | |
43806 | eval ac_cv_prog_make_${ac_make}_set=no | |
43807 | fi | |
43808 | rm -f conftest.make | |
43809 | fi | |
43810 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
43811 | echo "$as_me:$LINENO: result: yes" >&5 | |
43812 | echo "${ECHO_T}yes" >&6 | |
43813 | SET_MAKE= | |
43814 | else | |
43815 | echo "$as_me:$LINENO: result: no" >&5 | |
43816 | echo "${ECHO_T}no" >&6 | |
43817 | SET_MAKE="MAKE=${MAKE-make}" | |
43818 | fi | |
43819 | ||
43820 | ||
43821 | ||
43822 | if test -n "$ac_tool_prefix"; then | |
43823 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
43824 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
43825 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
43826 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
43827 | if test "${ac_cv_prog_AR+set}" = set; then | |
43828 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43829 | else | |
43830 | if test -n "$AR"; then | |
43831 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
43832 | else | |
43833 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43834 | for as_dir in $PATH | |
43835 | do | |
43836 | IFS=$as_save_IFS | |
43837 | test -z "$as_dir" && as_dir=. | |
43838 | for ac_exec_ext in '' $ac_executable_extensions; do | |
43839 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
43840 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
43841 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
43842 | break 2 | |
43843 | fi | |
43844 | done | |
43845 | done | |
43846 | ||
43847 | fi | |
43848 | fi | |
43849 | AR=$ac_cv_prog_AR | |
43850 | if test -n "$AR"; then | |
43851 | echo "$as_me:$LINENO: result: $AR" >&5 | |
43852 | echo "${ECHO_T}$AR" >&6 | |
43853 | else | |
43854 | echo "$as_me:$LINENO: result: no" >&5 | |
43855 | echo "${ECHO_T}no" >&6 | |
43856 | fi | |
43857 | ||
43858 | fi | |
43859 | if test -z "$ac_cv_prog_AR"; then | |
43860 | ac_ct_AR=$AR | |
43861 | # Extract the first word of "ar", so it can be a program name with args. | |
43862 | set dummy ar; ac_word=$2 | |
43863 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
43864 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
43865 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
43866 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43867 | else | |
43868 | if test -n "$ac_ct_AR"; then | |
43869 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
43870 | else | |
43871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43872 | for as_dir in $PATH | |
43873 | do | |
43874 | IFS=$as_save_IFS | |
43875 | test -z "$as_dir" && as_dir=. | |
43876 | for ac_exec_ext in '' $ac_executable_extensions; do | |
43877 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
43878 | ac_cv_prog_ac_ct_AR="ar" | |
43879 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
43880 | break 2 | |
43881 | fi | |
43882 | done | |
43883 | done | |
43884 | ||
43885 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
43886 | fi | |
43887 | fi | |
43888 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
43889 | if test -n "$ac_ct_AR"; then | |
43890 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
43891 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
43892 | else | |
43893 | echo "$as_me:$LINENO: result: no" >&5 | |
43894 | echo "${ECHO_T}no" >&6 | |
43895 | fi | |
43896 | ||
43897 | AR=$ac_ct_AR | |
43898 | else | |
43899 | AR="$ac_cv_prog_AR" | |
43900 | fi | |
43901 | ||
43902 | if test -n "$ac_tool_prefix"; then | |
43903 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
43904 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
43905 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
43906 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
43907 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
43908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43909 | else | |
43910 | if test -n "$STRIP"; then | |
43911 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
43912 | else | |
43913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43914 | for as_dir in $PATH | |
43915 | do | |
43916 | IFS=$as_save_IFS | |
43917 | test -z "$as_dir" && as_dir=. | |
43918 | for ac_exec_ext in '' $ac_executable_extensions; do | |
43919 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
43920 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
43921 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
43922 | break 2 | |
43923 | fi | |
43924 | done | |
43925 | done | |
43926 | ||
43927 | fi | |
43928 | fi | |
43929 | STRIP=$ac_cv_prog_STRIP | |
43930 | if test -n "$STRIP"; then | |
43931 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
43932 | echo "${ECHO_T}$STRIP" >&6 | |
43933 | else | |
43934 | echo "$as_me:$LINENO: result: no" >&5 | |
43935 | echo "${ECHO_T}no" >&6 | |
43936 | fi | |
43937 | ||
43938 | fi | |
43939 | if test -z "$ac_cv_prog_STRIP"; then | |
43940 | ac_ct_STRIP=$STRIP | |
43941 | # Extract the first word of "strip", so it can be a program name with args. | |
43942 | set dummy strip; ac_word=$2 | |
43943 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
43944 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
43945 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
43946 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43947 | else | |
43948 | if test -n "$ac_ct_STRIP"; then | |
43949 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
43950 | else | |
43951 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43952 | for as_dir in $PATH | |
43953 | do | |
43954 | IFS=$as_save_IFS | |
43955 | test -z "$as_dir" && as_dir=. | |
43956 | for ac_exec_ext in '' $ac_executable_extensions; do | |
43957 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
43958 | ac_cv_prog_ac_ct_STRIP="strip" | |
43959 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
43960 | break 2 | |
43961 | fi | |
43962 | done | |
43963 | done | |
43964 | ||
43965 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
43966 | fi | |
43967 | fi | |
43968 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
43969 | if test -n "$ac_ct_STRIP"; then | |
43970 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
43971 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
43972 | else | |
43973 | echo "$as_me:$LINENO: result: no" >&5 | |
43974 | echo "${ECHO_T}no" >&6 | |
43975 | fi | |
43976 | ||
43977 | STRIP=$ac_ct_STRIP | |
43978 | else | |
43979 | STRIP="$ac_cv_prog_STRIP" | |
43980 | fi | |
43981 | ||
43982 | if test -n "$ac_tool_prefix"; then | |
43983 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
43984 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
43985 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
43986 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
43987 | if test "${ac_cv_prog_NM+set}" = set; then | |
43988 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43989 | else | |
43990 | if test -n "$NM"; then | |
43991 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
43992 | else | |
43993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
43994 | for as_dir in $PATH | |
43995 | do | |
43996 | IFS=$as_save_IFS | |
43997 | test -z "$as_dir" && as_dir=. | |
43998 | for ac_exec_ext in '' $ac_executable_extensions; do | |
43999 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
44000 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
44001 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
44002 | break 2 | |
44003 | fi | |
44004 | done | |
44005 | done | |
44006 | ||
44007 | fi | |
44008 | fi | |
44009 | NM=$ac_cv_prog_NM | |
44010 | if test -n "$NM"; then | |
44011 | echo "$as_me:$LINENO: result: $NM" >&5 | |
44012 | echo "${ECHO_T}$NM" >&6 | |
44013 | else | |
44014 | echo "$as_me:$LINENO: result: no" >&5 | |
44015 | echo "${ECHO_T}no" >&6 | |
44016 | fi | |
44017 | ||
44018 | fi | |
44019 | if test -z "$ac_cv_prog_NM"; then | |
44020 | ac_ct_NM=$NM | |
44021 | # Extract the first word of "nm", so it can be a program name with args. | |
44022 | set dummy nm; ac_word=$2 | |
44023 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
44024 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
44025 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
44026 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44027 | else | |
44028 | if test -n "$ac_ct_NM"; then | |
44029 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
44030 | else | |
44031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
44032 | for as_dir in $PATH | |
44033 | do | |
44034 | IFS=$as_save_IFS | |
44035 | test -z "$as_dir" && as_dir=. | |
44036 | for ac_exec_ext in '' $ac_executable_extensions; do | |
44037 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
44038 | ac_cv_prog_ac_ct_NM="nm" | |
44039 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
44040 | break 2 | |
44041 | fi | |
44042 | done | |
44043 | done | |
44044 | ||
44045 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
44046 | fi | |
44047 | fi | |
44048 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
44049 | if test -n "$ac_ct_NM"; then | |
44050 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
44051 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
44052 | else | |
44053 | echo "$as_me:$LINENO: result: no" >&5 | |
44054 | echo "${ECHO_T}no" >&6 | |
44055 | fi | |
44056 | ||
44057 | NM=$ac_ct_NM | |
44058 | else | |
44059 | NM="$ac_cv_prog_NM" | |
44060 | fi | |
44061 | ||
44062 | ||
44063 | case ${BAKEFILE_HOST} in | |
44064 | *-hp-hpux* ) | |
1e9e8aba | 44065 | INSTALL_DIR="mkdir -p" |
a848cd7e SC |
44066 | ;; |
44067 | *) INSTALL_DIR="$INSTALL -d" | |
44068 | ;; | |
44069 | esac | |
44070 | ||
44071 | ||
44072 | LDFLAGS_GUI= | |
44073 | case ${BAKEFILE_HOST} in | |
44074 | *-*-cygwin* | *-*-mingw32* ) | |
44075 | LDFLAGS_GUI="-mwindows" | |
44076 | esac | |
44077 | ||
44078 | ||
44079 | fi | |
44080 | ||
44081 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
44082 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
44083 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then | |
44084 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44085 | else | |
44086 | ||
44087 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
44088 | egrep -s GNU > /dev/null); then | |
44089 | bakefile_cv_prog_makeisgnu="yes" | |
44090 | else | |
44091 | bakefile_cv_prog_makeisgnu="no" | |
44092 | fi | |
44093 | ||
44094 | fi | |
44095 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 | |
44096 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
44097 | ||
44098 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
44099 | IF_GNU_MAKE="" | |
44100 | else | |
44101 | IF_GNU_MAKE="#" | |
44102 | fi | |
44103 | ||
44104 | ||
44105 | ||
44106 | PLATFORM_UNIX=0 | |
44107 | PLATFORM_WIN32=0 | |
44108 | PLATFORM_MSDOS=0 | |
44109 | PLATFORM_MAC=0 | |
1e9e8aba | 44110 | PLATFORM_MACOS=0 |
a848cd7e SC |
44111 | PLATFORM_MACOSX=0 |
44112 | PLATFORM_OS2=0 | |
1e9e8aba | 44113 | PLATFORM_BEOS=0 |
a848cd7e SC |
44114 | |
44115 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then | |
44116 | case "${BAKEFILE_HOST}" in | |
810b94f0 | 44117 | *-*-mingw32* ) |
a848cd7e SC |
44118 | PLATFORM_WIN32=1 |
44119 | ;; | |
44120 | *-pc-msdosdjgpp ) | |
44121 | PLATFORM_MSDOS=1 | |
44122 | ;; | |
44123 | *-pc-os2_emx | *-pc-os2-emx ) | |
44124 | PLATFORM_OS2=1 | |
44125 | ;; | |
47bd5406 | 44126 | *-*-darwin* ) |
a848cd7e SC |
44127 | PLATFORM_MAC=1 |
44128 | PLATFORM_MACOSX=1 | |
44129 | ;; | |
1e9e8aba DE |
44130 | *-*-beos* ) |
44131 | PLATFORM_BEOS=1 | |
44132 | ;; | |
44133 | powerpc-apple-macos* ) | |
44134 | PLATFORM_MAC=1 | |
44135 | PLATFORM_MACOS=1 | |
44136 | ;; | |
a848cd7e SC |
44137 | * ) |
44138 | PLATFORM_UNIX=1 | |
44139 | ;; | |
44140 | esac | |
44141 | else | |
44142 | case "$BAKEFILE_FORCE_PLATFORM" in | |
44143 | win32 ) | |
44144 | PLATFORM_WIN32=1 | |
44145 | ;; | |
44146 | msdos ) | |
44147 | PLATFORM_MSDOS=1 | |
44148 | ;; | |
44149 | os2 ) | |
44150 | PLATFORM_OS2=1 | |
44151 | ;; | |
44152 | darwin ) | |
44153 | PLATFORM_MAC=1 | |
44154 | PLATFORM_MACOSX=1 | |
44155 | ;; | |
44156 | unix ) | |
44157 | PLATFORM_UNIX=1 | |
44158 | ;; | |
1e9e8aba DE |
44159 | beos ) |
44160 | PLATFORM_BEOS=1 | |
44161 | ;; | |
a848cd7e SC |
44162 | * ) |
44163 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
44164 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
44165 | { (exit 1); exit 1; }; } | |
44166 | ;; | |
44167 | esac | |
44168 | fi | |
44169 | ||
44170 | ||
44171 | ||
44172 | ||
44173 | ||
44174 | ||
44175 | ||
44176 | ||
44177 | ||
1e9e8aba DE |
44178 | |
44179 | ||
a848cd7e SC |
44180 | # Check whether --enable-omf or --disable-omf was given. |
44181 | if test "${enable_omf+set}" = set; then | |
44182 | enableval="$enable_omf" | |
44183 | bk_os2_use_omf="$enableval" | |
44184 | fi; | |
44185 | ||
44186 | case "${BAKEFILE_HOST}" in | |
44187 | *-*-darwin* ) | |
47bd5406 VZ |
44188 | if test "x$GCC" = "xyes"; then |
44189 | CFLAGS="$CFLAGS -fno-common" | |
44190 | CXXFLAGS="$CXXFLAGS -fno-common" | |
44191 | fi | |
44192 | if test "x$XLCC" = "xyes"; then | |
44193 | CFLAGS="$CFLAGS -qnocommon" | |
44194 | CXXFLAGS="$CXXFLAGS -qnocommon" | |
44195 | fi | |
a848cd7e SC |
44196 | ;; |
44197 | ||
44198 | *-pc-os2_emx | *-pc-os2-emx ) | |
44199 | if test "x$bk_os2_use_omf" = "xyes" ; then | |
44200 | AR=emxomfar | |
44201 | RANLIB=: | |
44202 | LDFLAGS="-Zomf $LDFLAGS" | |
44203 | CFLAGS="-Zomf $CFLAGS" | |
44204 | CXXFLAGS="-Zomf $CXXFLAGS" | |
44205 | OS2_LIBEXT="lib" | |
44206 | else | |
44207 | OS2_LIBEXT="a" | |
44208 | fi | |
44209 | ;; | |
1e9e8aba DE |
44210 | |
44211 | i*86-*-beos* ) | |
44212 | LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS" | |
44213 | ;; | |
a848cd7e SC |
44214 | esac |
44215 | ||
44216 | ||
44217 | SO_SUFFIX="so" | |
44218 | SO_SUFFIX_MODULE="so" | |
44219 | EXEEXT="" | |
44220 | LIBPREFIX="lib" | |
44221 | LIBEXT=".a" | |
44222 | DLLPREFIX="lib" | |
44223 | DLLPREFIX_MODULE="" | |
44224 | DLLIMP_SUFFIX="" | |
810b94f0 | 44225 | dlldir="$libdir" |
a848cd7e SC |
44226 | |
44227 | case "${BAKEFILE_HOST}" in | |
44228 | *-hp-hpux* ) | |
44229 | SO_SUFFIX="sl" | |
44230 | SO_SUFFIX_MODULE="sl" | |
44231 | ;; | |
44232 | *-*-aix* ) | |
44233 | SO_SUFFIX="a" | |
44234 | SO_SUFFIX_MODULE="a" | |
44235 | ;; | |
810b94f0 MW |
44236 | *-*-cygwin* ) |
44237 | SO_SUFFIX="dll" | |
44238 | SO_SUFFIX_MODULE="dll" | |
44239 | DLLIMP_SUFFIX="dll.a" | |
44240 | EXEEXT=".exe" | |
44241 | DLLPREFIX="cyg" | |
44242 | dlldir="$bindir" | |
44243 | ;; | |
44244 | *-*-mingw32* ) | |
a848cd7e SC |
44245 | SO_SUFFIX="dll" |
44246 | SO_SUFFIX_MODULE="dll" | |
44247 | DLLIMP_SUFFIX="dll.a" | |
44248 | EXEEXT=".exe" | |
44249 | DLLPREFIX="" | |
810b94f0 | 44250 | dlldir="$bindir" |
a848cd7e SC |
44251 | ;; |
44252 | *-pc-msdosdjgpp ) | |
44253 | EXEEXT=".exe" | |
44254 | DLLPREFIX="" | |
810b94f0 | 44255 | dlldir="$bindir" |
a848cd7e SC |
44256 | ;; |
44257 | *-pc-os2_emx | *-pc-os2-emx ) | |
44258 | SO_SUFFIX="dll" | |
44259 | SO_SUFFIX_MODULE="dll" | |
44260 | DLLIMP_SUFFIX=$OS2_LIBEXT | |
44261 | EXEEXT=".exe" | |
44262 | DLLPREFIX="" | |
44263 | LIBPREFIX="" | |
44264 | LIBEXT=".$OS2_LIBEXT" | |
810b94f0 | 44265 | dlldir="$bindir" |
a848cd7e | 44266 | ;; |
47bd5406 | 44267 | *-*-darwin* ) |
a848cd7e SC |
44268 | SO_SUFFIX="dylib" |
44269 | SO_SUFFIX_MODULE="bundle" | |
44270 | ;; | |
44271 | esac | |
44272 | ||
44273 | if test "x$DLLIMP_SUFFIX" = "x" ; then | |
44274 | DLLIMP_SUFFIX="$SO_SUFFIX" | |
44275 | fi | |
44276 | ||
44277 | ||
44278 | ||
44279 | ||
44280 | ||
44281 | ||
44282 | ||
44283 | ||
44284 | ||
44285 | ||
44286 | ||
810b94f0 | 44287 | |
1e9e8aba DE |
44288 | PIC_FLAG="" |
44289 | if test "x$GCC" = "xyes"; then | |
a848cd7e SC |
44290 | PIC_FLAG="-fPIC" |
44291 | fi | |
44292 | ||
1e9e8aba DE |
44293 | SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o" |
44294 | SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o" | |
810b94f0 | 44295 | WINDOWS_IMPLIB=0 |
1e9e8aba | 44296 | |
a848cd7e SC |
44297 | case "${BAKEFILE_HOST}" in |
44298 | *-hp-hpux* ) | |
1e9e8aba | 44299 | if test "x$GCC" != "xyes"; then |
a848cd7e SC |
44300 | LDFLAGS="$LDFLAGS -L/usr/lib" |
44301 | ||
44302 | SHARED_LD_CC="${CC} -b -o" | |
44303 | SHARED_LD_CXX="${CXX} -b -o" | |
44304 | PIC_FLAG="+Z" | |
44305 | fi | |
44306 | ;; | |
44307 | ||
44308 | *-*-linux* ) | |
44309 | if test "x$GCC" != "xyes"; then | |
44310 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 | |
44311 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
44312 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
44313 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44314 | else | |
44315 | ||
44316 | cat >conftest.$ac_ext <<_ACEOF | |
44317 | /* confdefs.h. */ | |
44318 | _ACEOF | |
44319 | cat confdefs.h >>conftest.$ac_ext | |
44320 | cat >>conftest.$ac_ext <<_ACEOF | |
44321 | /* end confdefs.h. */ | |
44322 | ||
44323 | int | |
44324 | main () | |
44325 | { | |
44326 | ||
44327 | #ifndef __INTEL_COMPILER | |
44328 | #error Not icc | |
44329 | #endif | |
44330 | ||
44331 | ; | |
44332 | return 0; | |
44333 | } | |
44334 | _ACEOF | |
44335 | rm -f conftest.$ac_objext | |
44336 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 44337 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 44338 | ac_status=$? |
ac1cb8d3 VS |
44339 | grep -v '^ *+' conftest.er1 >conftest.err |
44340 | rm -f conftest.er1 | |
44341 | cat conftest.err >&5 | |
a848cd7e SC |
44342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
44343 | (exit $ac_status); } && | |
0093c2fc | 44344 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
44345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44346 | (eval $ac_try) 2>&5 | |
44347 | ac_status=$? | |
44348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44349 | (exit $ac_status); }; } && | |
44350 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
44351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44352 | (eval $ac_try) 2>&5 | |
44353 | ac_status=$? | |
44354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44355 | (exit $ac_status); }; }; then | |
44356 | bakefile_cv_prog_icc=yes | |
44357 | else | |
44358 | echo "$as_me: failed program was:" >&5 | |
44359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44360 | ||
44361 | bakefile_cv_prog_icc=no | |
44362 | ||
44363 | fi | |
ac1cb8d3 | 44364 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
44365 | |
44366 | fi | |
44367 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
44368 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
44369 | if test "$bakefile_cv_prog_icc" = "yes"; then | |
44370 | PIC_FLAG="-KPIC" | |
44371 | fi | |
44372 | fi | |
44373 | ;; | |
44374 | ||
44375 | *-*-solaris2* ) | |
44376 | if test "x$GCC" != xyes ; then | |
44377 | SHARED_LD_CC="${CC} -G -o" | |
44378 | SHARED_LD_CXX="${CXX} -G -o" | |
44379 | PIC_FLAG="-KPIC" | |
44380 | fi | |
44381 | ;; | |
44382 | ||
44383 | *-*-darwin* ) | |
44384 | ||
473276a9 VS |
44385 | D='$' |
44386 | cat <<EOF >shared-ld-sh | |
a848cd7e SC |
44387 | #!/bin/sh |
44388 | #----------------------------------------------------------------------------- | |
44389 | #-- Name: distrib/mac/shared-ld-sh | |
44390 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
44391 | #-- Author: Gilles Depeyrot | |
44392 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
44393 | #-- Licence: any use permitted | |
44394 | #----------------------------------------------------------------------------- | |
44395 | ||
44396 | verbose=0 | |
44397 | args="" | |
44398 | objects="" | |
44399 | linking_flag="-dynamiclib" | |
810b94f0 | 44400 | ldargs="-r -keep_private_externs -nostdlib" |
a848cd7e | 44401 | |
473276a9 VS |
44402 | while test ${D}# -gt 0; do |
44403 | case ${D}1 in | |
a848cd7e SC |
44404 | |
44405 | -v) | |
44406 | verbose=1 | |
44407 | ;; | |
44408 | ||
44409 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
44410 | # collect these options and values | |
473276a9 | 44411 | args="${D}{args} ${D}1 ${D}2" |
a848cd7e SC |
44412 | shift |
44413 | ;; | |
44414 | ||
810b94f0 MW |
44415 | -s|-Wl,*) |
44416 | # collect these load args | |
44417 | ldargs="${D}{ldargs} ${D}1" | |
2113bc77 | 44418 | ;; |
810b94f0 MW |
44419 | |
44420 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) | |
a848cd7e | 44421 | # collect these options |
473276a9 | 44422 | args="${D}{args} ${D}1" |
a848cd7e SC |
44423 | ;; |
44424 | ||
44425 | -dynamiclib|-bundle) | |
473276a9 | 44426 | linking_flag="${D}1" |
a848cd7e SC |
44427 | ;; |
44428 | ||
44429 | -*) | |
473276a9 | 44430 | echo "shared-ld: unhandled option '${D}1'" |
a848cd7e SC |
44431 | exit 1 |
44432 | ;; | |
44433 | ||
44434 | *.o | *.a | *.dylib) | |
44435 | # collect object files | |
473276a9 | 44436 | objects="${D}{objects} ${D}1" |
a848cd7e SC |
44437 | ;; |
44438 | ||
44439 | *) | |
473276a9 | 44440 | echo "shared-ld: unhandled argument '${D}1'" |
a848cd7e SC |
44441 | exit 1 |
44442 | ;; | |
44443 | ||
44444 | esac | |
44445 | shift | |
44446 | done | |
44447 | ||
810b94f0 MW |
44448 | status=0 |
44449 | ||
a848cd7e SC |
44450 | # |
44451 | # Link one module containing all the others | |
44452 | # | |
473276a9 | 44453 | if test ${D}{verbose} = 1; then |
810b94f0 | 44454 | echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o" |
a848cd7e | 44455 | fi |
810b94f0 | 44456 | c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o |
473276a9 | 44457 | status=${D}? |
a848cd7e SC |
44458 | |
44459 | # | |
810b94f0 MW |
44460 | # Link the shared library from the single module created, but only if the |
44461 | # previous command didn't fail: | |
a848cd7e | 44462 | # |
810b94f0 MW |
44463 | if test ${D}{status} = 0; then |
44464 | if test ${D}{verbose} = 1; then | |
44465 | echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}" | |
44466 | fi | |
44467 | c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args} | |
44468 | status=${D}? | |
a848cd7e SC |
44469 | fi |
44470 | ||
44471 | # | |
44472 | # Remove intermediate module | |
44473 | # | |
473276a9 | 44474 | rm -f master.${D}${D}.o |
a848cd7e | 44475 | |
810b94f0 | 44476 | exit ${D}status |
a848cd7e | 44477 | EOF |
473276a9 | 44478 | |
583d6b4b VZ |
44479 | chmod +x shared-ld-sh |
44480 | ||
44481 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
44482 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
44483 | ||
44484 | ||
44485 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 | |
44486 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 | |
44487 | if test "${bakefile_cv_gcc31+set}" = set; then | |
44488 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44489 | else | |
44490 | ||
44491 | cat >conftest.$ac_ext <<_ACEOF | |
44492 | /* confdefs.h. */ | |
44493 | _ACEOF | |
44494 | cat confdefs.h >>conftest.$ac_ext | |
44495 | cat >>conftest.$ac_ext <<_ACEOF | |
44496 | /* end confdefs.h. */ | |
44497 | ||
44498 | int | |
44499 | main () | |
44500 | { | |
44501 | ||
44502 | #if (__GNUC__ < 3) || \ | |
44503 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
44504 | #error old gcc | |
44505 | #endif | |
a848cd7e | 44506 | |
583d6b4b VZ |
44507 | ; |
44508 | return 0; | |
44509 | } | |
44510 | _ACEOF | |
44511 | rm -f conftest.$ac_objext | |
44512 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
44513 | (eval $ac_compile) 2>conftest.er1 | |
44514 | ac_status=$? | |
44515 | grep -v '^ *+' conftest.er1 >conftest.err | |
44516 | rm -f conftest.er1 | |
44517 | cat conftest.err >&5 | |
44518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44519 | (exit $ac_status); } && | |
44520 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
44521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
44522 | (eval $ac_try) 2>&5 | |
44523 | ac_status=$? | |
44524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44525 | (exit $ac_status); }; } && | |
44526 | { ac_try='test -s conftest.$ac_objext' | |
44527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
44528 | (eval $ac_try) 2>&5 | |
44529 | ac_status=$? | |
44530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44531 | (exit $ac_status); }; }; then | |
44532 | ||
44533 | bakefile_cv_gcc31=yes | |
44534 | ||
44535 | else | |
44536 | echo "$as_me: failed program was:" >&5 | |
44537 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44538 | ||
44539 | ||
44540 | bakefile_cv_gcc31=no | |
44541 | ||
44542 | ||
44543 | fi | |
44544 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
44545 | ||
44546 | fi | |
44547 | echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5 | |
44548 | echo "${ECHO_T}$bakefile_cv_gcc31" >&6 | |
44549 | if test "$bakefile_cv_gcc31" = "no"; then | |
a848cd7e | 44550 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" |
a848cd7e | 44551 | SHARED_LD_CXX="$SHARED_LD_CC" |
a848cd7e SC |
44552 | else |
44553 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" | |
a848cd7e | 44554 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" |
a848cd7e SC |
44555 | fi |
44556 | ||
47bd5406 VZ |
44557 | if test "x$GCC" == "xyes"; then |
44558 | PIC_FLAG="-dynamic -fPIC" | |
44559 | fi | |
44560 | if test "x$XLCC" = "xyes"; then | |
44561 | PIC_FLAG="-dynamic -DPIC" | |
44562 | fi | |
a848cd7e SC |
44563 | ;; |
44564 | ||
44565 | *-*-aix* ) | |
f6b50c59 | 44566 | if test "x$GCC" = "xyes"; then |
583d6b4b | 44567 | PIC_FLAG="" |
f6b50c59 | 44568 | |
583d6b4b VZ |
44569 | case "${BAKEFILE_HOST}" in |
44570 | *-*-aix5* ) | |
44571 | LD_EXPFULL="-Wl,-bexpfull" | |
44572 | ;; | |
44573 | esac | |
f6b50c59 | 44574 | |
583d6b4b VZ |
44575 | SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o" |
44576 | SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o" | |
44577 | else | |
44578 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
a848cd7e SC |
44579 | set dummy makeC++SharedLib; ac_word=$2 |
44580 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
44581 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
44582 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
44583 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44584 | else | |
44585 | if test -n "$AIX_CXX_LD"; then | |
44586 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
44587 | else | |
44588 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
44589 | for as_dir in $PATH | |
44590 | do | |
44591 | IFS=$as_save_IFS | |
44592 | test -z "$as_dir" && as_dir=. | |
44593 | for ac_exec_ext in '' $ac_executable_extensions; do | |
44594 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
44595 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
44596 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
44597 | break 2 | |
44598 | fi | |
44599 | done | |
44600 | done | |
44601 | ||
44602 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
44603 | fi | |
44604 | fi | |
44605 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD | |
44606 | if test -n "$AIX_CXX_LD"; then | |
44607 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 | |
44608 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
44609 | else | |
44610 | echo "$as_me:$LINENO: result: no" >&5 | |
44611 | echo "${ECHO_T}no" >&6 | |
44612 | fi | |
44613 | ||
f6b50c59 | 44614 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" |
a848cd7e SC |
44615 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" |
44616 | fi | |
44617 | ;; | |
44618 | ||
44619 | *-*-beos* ) | |
1e9e8aba DE |
44620 | SHARED_LD_CC="${LD} -nostart -o" |
44621 | SHARED_LD_CXX="${LD} -nostart -o" | |
a848cd7e SC |
44622 | ;; |
44623 | ||
44624 | *-*-irix* ) | |
44625 | if test "x$GCC" != "xyes"; then | |
44626 | PIC_FLAG="-KPIC" | |
44627 | fi | |
44628 | ;; | |
44629 | ||
44630 | *-*-cygwin* | *-*-mingw32* ) | |
44631 | PIC_FLAG="" | |
1e9e8aba DE |
44632 | SHARED_LD_CC="\$(CC) -shared -o" |
44633 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
810b94f0 | 44634 | WINDOWS_IMPLIB=1 |
a848cd7e SC |
44635 | ;; |
44636 | ||
44637 | *-pc-os2_emx | *-pc-os2-emx ) | |
b1d22ded DE |
44638 | SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" |
44639 | SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
a848cd7e | 44640 | PIC_FLAG="" |
473276a9 VS |
44641 | |
44642 | D='$' | |
44643 | cat <<EOF >dllar.sh | |
44644 | #!/bin/sh | |
44645 | # | |
44646 | # dllar - a tool to build both a .dll and an .a file | |
44647 | # from a set of object (.o) files for EMX/OS2. | |
44648 | # | |
44649 | # Written by Andrew Zabolotny, bit@freya.etu.ru | |
44650 | # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de | |
44651 | # | |
44652 | # This script will accept a set of files on the command line. | |
44653 | # All the public symbols from the .o files will be exported into | |
44654 | # a .DEF file, then linker will be run (through gcc) against them to | |
44655 | # build a shared library consisting of all given .o files. All libraries | |
44656 | # (.a) will be first decompressed into component .o files then act as | |
44657 | # described above. You can optionally give a description (-d "description") | |
44658 | # which will be put into .DLL. To see the list of accepted options (as well | |
44659 | # as command-line format) simply run this program without options. The .DLL | |
44660 | # is built to be imported by name (there is no guarantee that new versions | |
44661 | # of the library you build will have same ordinals for same symbols). | |
44662 | # | |
44663 | # dllar is free software; you can redistribute it and/or modify | |
44664 | # it under the terms of the GNU General Public License as published by | |
44665 | # the Free Software Foundation; either version 2, or (at your option) | |
44666 | # any later version. | |
44667 | # | |
44668 | # dllar is distributed in the hope that it will be useful, | |
44669 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
44670 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
44671 | # GNU General Public License for more details. | |
44672 | # | |
44673 | # You should have received a copy of the GNU General Public License | |
44674 | # along with dllar; see the file COPYING. If not, write to the Free | |
44675 | # Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
44676 | # 02111-1307, USA. | |
44677 | ||
44678 | # To successfuly run this program you will need: | |
44679 | # - Current drive should have LFN support (HPFS, ext2, network, etc) | |
44680 | # (Sometimes dllar generates filenames which won't fit 8.3 scheme) | |
44681 | # - gcc | |
44682 | # (used to build the .dll) | |
44683 | # - emxexp | |
44684 | # (used to create .def file from .o files) | |
44685 | # - emximp | |
44686 | # (used to create .a file from .def file) | |
44687 | # - GNU text utilites (cat, sort, uniq) | |
44688 | # used to process emxexp output | |
44689 | # - GNU file utilities (mv, rm) | |
44690 | # - GNU sed | |
44691 | # - lxlite (optional, see flag below) | |
44692 | # (used for general .dll cleanup) | |
44693 | # | |
44694 | ||
44695 | flag_USE_LXLITE=1; | |
44696 | ||
44697 | # | |
44698 | # helper functions | |
44699 | # basnam, variant of basename, which does _not_ remove the path, _iff_ | |
44700 | # second argument (suffix to remove) is given | |
44701 | basnam(){ | |
44702 | case ${D}# in | |
44703 | 1) | |
1e9e8aba | 44704 | echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//' |
473276a9 VS |
44705 | ;; |
44706 | 2) | |
44707 | echo ${D}1 | sed 's/'${D}2'${D}//' | |
44708 | ;; | |
44709 | *) | |
44710 | echo "error in basnam ${D}*" | |
44711 | exit 8 | |
44712 | ;; | |
44713 | esac | |
44714 | } | |
44715 | ||
44716 | # Cleanup temporary files and output | |
44717 | CleanUp() { | |
44718 | cd ${D}curDir | |
44719 | for i in ${D}inputFiles ; do | |
44720 | case ${D}i in | |
44721 | *!) | |
44722 | rm -rf \`basnam ${D}i !\` | |
44723 | ;; | |
44724 | *) | |
44725 | ;; | |
44726 | esac | |
44727 | done | |
44728 | ||
44729 | # Kill result in case of failure as there is just to many stupid make/nmake | |
44730 | # things out there which doesn't do this. | |
1e9e8aba | 44731 | if [ ${D}# -eq 0 ]; then |
473276a9 VS |
44732 | rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile |
44733 | fi | |
44734 | } | |
44735 | ||
44736 | # Print usage and exit script with rc=1. | |
44737 | PrintHelp() { | |
b1d22ded DE |
44738 | echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]' |
44739 | echo ' [-name-mangler-script script.sh]' | |
44740 | echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]' | |
44741 | echo ' [-ord[inals]] -ex[clude] "symbol(s)"' | |
44742 | echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]' | |
1e9e8aba | 44743 | echo ' [*.o] [*.a]' |
473276a9 VS |
44744 | echo '*> "output_file" should have no extension.' |
44745 | echo ' If it has the .o, .a or .dll extension, it is automatically removed.' | |
44746 | echo ' The import library name is derived from this and is set to "name".a,' | |
44747 | echo ' unless overridden by -import' | |
44748 | echo '*> "importlib_name" should have no extension.' | |
44749 | echo ' If it has the .o, or .a extension, it is automatically removed.' | |
44750 | echo ' This name is used as the import library name and may be longer and' | |
44751 | echo ' more descriptive than the DLL name which has to follow the old ' | |
44752 | echo ' 8.3 convention of FAT.' | |
b1d22ded DE |
44753 | echo '*> "script.sh may be given to override the output_file name by a' |
44754 | echo ' different name. It is mainly useful if the regular make process' | |
44755 | echo ' of some package does not take into account OS/2 restriction of' | |
44756 | echo ' DLL name lengths. It takes the importlib name as input and is' | |
44757 | echo ' supposed to procude a shorter name as output. The script should' | |
44758 | echo ' expect to get importlib_name without extension and should produce' | |
44759 | echo ' a (max.) 8 letter name without extension.' | |
473276a9 VS |
44760 | echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)' |
44761 | echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)' | |
44762 | echo ' These flags will be put at the start of GCC command line.' | |
b1d22ded DE |
44763 | echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.' |
44764 | echo '*> -ex[clude] defines symbols which will not be exported. You can define' | |
473276a9 VS |
44765 | echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".' |
44766 | echo ' If the last character of a symbol is "*", all symbols beginning' | |
44767 | echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).' | |
b1d22ded | 44768 | echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or' |
473276a9 | 44769 | echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.' |
b1d22ded | 44770 | echo '*> -nocrt[dll] switch will disable linking the library against emx''s' |
473276a9 | 44771 | echo ' C runtime DLLs.' |
b1d22ded | 44772 | echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.' |
473276a9 VS |
44773 | echo '*> All other switches (for example -L./ or -lmylib) will be passed' |
44774 | echo ' unchanged to GCC at the end of command line.' | |
44775 | echo '*> If you create a DLL from a library and you do not specify -o,' | |
44776 | echo ' the basename for DLL and import library will be set to library name,' | |
44777 | echo ' the initial library will be renamed to 'name'_s.a (_s for static)' | |
44778 | echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial' | |
44779 | echo ' library will be renamed into gcc_s.a.' | |
44780 | echo '--------' | |
44781 | echo 'Example:' | |
44782 | echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord' | |
44783 | echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"' | |
44784 | CleanUp | |
44785 | exit 1 | |
44786 | } | |
44787 | ||
44788 | # Execute a command. | |
44789 | # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script. | |
44790 | # @Uses Whatever CleanUp() uses. | |
44791 | doCommand() { | |
44792 | echo "${D}*" | |
44793 | eval ${D}* | |
44794 | rcCmd=${D}? | |
44795 | ||
1e9e8aba | 44796 | if [ ${D}rcCmd -ne 0 ]; then |
473276a9 VS |
44797 | echo "command failed, exit code="${D}rcCmd |
44798 | CleanUp | |
44799 | exit ${D}rcCmd | |
44800 | fi | |
44801 | } | |
44802 | ||
44803 | # main routine | |
44804 | # setup globals | |
44805 | cmdLine=${D}* | |
44806 | outFile="" | |
44807 | outimpFile="" | |
44808 | inputFiles="" | |
b1d22ded | 44809 | renameScript="" |
473276a9 VS |
44810 | description="" |
44811 | CC=gcc.exe | |
44812 | CFLAGS="-s -Zcrtdll" | |
44813 | EXTRA_CFLAGS="" | |
44814 | EXPORT_BY_ORDINALS=0 | |
44815 | exclude_symbols="" | |
44816 | library_flags="" | |
44817 | curDir=\`pwd\` | |
44818 | curDirS=curDir | |
44819 | case ${D}curDirS in | |
44820 | */) | |
44821 | ;; | |
44822 | *) | |
44823 | curDirS=${D}{curDirS}"/" | |
44824 | ;; | |
44825 | esac | |
44826 | # Parse commandline | |
44827 | libsToLink=0 | |
b1d22ded | 44828 | omfLinking=0 |
1e9e8aba | 44829 | while [ ${D}1 ]; do |
473276a9 VS |
44830 | case ${D}1 in |
44831 | -ord*) | |
44832 | EXPORT_BY_ORDINALS=1; | |
44833 | ;; | |
44834 | -o*) | |
44835 | shift | |
44836 | outFile=${D}1 | |
44837 | ;; | |
44838 | -i*) | |
44839 | shift | |
44840 | outimpFile=${D}1 | |
44841 | ;; | |
b1d22ded DE |
44842 | -name-mangler-script) |
44843 | shift | |
44844 | renameScript=${D}1 | |
44845 | ;; | |
473276a9 VS |
44846 | -d*) |
44847 | shift | |
44848 | description=${D}1 | |
44849 | ;; | |
44850 | -f*) | |
44851 | shift | |
44852 | CFLAGS=${D}1 | |
44853 | ;; | |
44854 | -c*) | |
44855 | shift | |
44856 | CC=${D}1 | |
44857 | ;; | |
44858 | -h*) | |
44859 | PrintHelp | |
44860 | ;; | |
44861 | -ex*) | |
44862 | shift | |
44863 | exclude_symbols=${D}{exclude_symbols}${D}1" " | |
44864 | ;; | |
44865 | -libf*) | |
44866 | shift | |
44867 | library_flags=${D}{library_flags}${D}1" " | |
44868 | ;; | |
44869 | -nocrt*) | |
44870 | CFLAGS="-s" | |
44871 | ;; | |
44872 | -nolxl*) | |
44873 | flag_USE_LXLITE=0 | |
44874 | ;; | |
44875 | -* | /*) | |
44876 | case ${D}1 in | |
44877 | -L* | -l*) | |
44878 | libsToLink=1 | |
44879 | ;; | |
b1d22ded DE |
44880 | -Zomf) |
44881 | omfLinking=1 | |
44882 | ;; | |
473276a9 VS |
44883 | *) |
44884 | ;; | |
44885 | esac | |
44886 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 | |
44887 | ;; | |
b1d22ded DE |
44888 | *.dll) |
44889 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`" | |
44890 | if [ ${D}omfLinking -eq 1 ]; then | |
44891 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib" | |
44892 | else | |
44893 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a" | |
44894 | fi | |
44895 | ;; | |
473276a9 VS |
44896 | *) |
44897 | found=0; | |
1e9e8aba | 44898 | if [ ${D}libsToLink -ne 0 ]; then |
473276a9 VS |
44899 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 |
44900 | else | |
44901 | for file in ${D}1 ; do | |
1e9e8aba | 44902 | if [ -f ${D}file ]; then |
473276a9 VS |
44903 | inputFiles="${D}{inputFiles} ${D}file" |
44904 | found=1 | |
44905 | fi | |
44906 | done | |
1e9e8aba | 44907 | if [ ${D}found -eq 0 ]; then |
473276a9 VS |
44908 | echo "ERROR: No file(s) found: "${D}1 |
44909 | exit 8 | |
44910 | fi | |
44911 | fi | |
44912 | ;; | |
44913 | esac | |
44914 | shift | |
44915 | done # iterate cmdline words | |
44916 | ||
44917 | # | |
1e9e8aba | 44918 | if [ -z "${D}inputFiles" ]; then |
473276a9 VS |
44919 | echo "dllar: no input files" |
44920 | PrintHelp | |
44921 | fi | |
44922 | ||
44923 | # Now extract all .o files from .a files | |
44924 | newInputFiles="" | |
44925 | for file in ${D}inputFiles ; do | |
44926 | case ${D}file in | |
44927 | *.a | *.lib) | |
44928 | case ${D}file in | |
44929 | *.a) | |
44930 | suffix=".a" | |
44931 | AR="ar" | |
44932 | ;; | |
44933 | *.lib) | |
44934 | suffix=".lib" | |
44935 | AR="emxomfar" | |
44936 | EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf" | |
44937 | ;; | |
44938 | *) | |
44939 | ;; | |
44940 | esac | |
44941 | dirname=\`basnam ${D}file ${D}suffix\`"_%" | |
44942 | mkdir ${D}dirname | |
1e9e8aba | 44943 | if [ ${D}? -ne 0 ]; then |
473276a9 VS |
44944 | echo "Failed to create subdirectory ./${D}dirname" |
44945 | CleanUp | |
44946 | exit 8; | |
44947 | fi | |
44948 | # Append '!' to indicate archive | |
44949 | newInputFiles="${D}newInputFiles ${D}{dirname}!" | |
44950 | doCommand "cd ${D}dirname; ${D}AR x ../${D}file" | |
44951 | cd ${D}curDir | |
44952 | found=0; | |
44953 | for subfile in ${D}dirname/*.o* ; do | |
1e9e8aba | 44954 | if [ -f ${D}subfile ]; then |
473276a9 | 44955 | found=1 |
1e9e8aba | 44956 | if [ -s ${D}subfile ]; then |
473276a9 VS |
44957 | # FIXME: This should be: is file size > 32 byte, _not_ > 0! |
44958 | newInputFiles="${D}newInputFiles ${D}subfile" | |
44959 | fi | |
44960 | fi | |
44961 | done | |
1e9e8aba DE |
44962 | if [ ${D}found -eq 0 ]; then |
44963 | echo "WARNING: there are no files in archive \\'${D}file\\'" | |
473276a9 VS |
44964 | fi |
44965 | ;; | |
44966 | *) | |
44967 | newInputFiles="${D}{newInputFiles} ${D}file" | |
44968 | ;; | |
44969 | esac | |
44970 | done | |
44971 | inputFiles="${D}newInputFiles" | |
44972 | ||
44973 | # Output filename(s). | |
44974 | do_backup=0; | |
1e9e8aba | 44975 | if [ -z ${D}outFile ]; then |
473276a9 VS |
44976 | do_backup=1; |
44977 | set outFile ${D}inputFiles; outFile=${D}2 | |
44978 | fi | |
44979 | ||
44980 | # If it is an archive, remove the '!' and the '_%' suffixes | |
44981 | case ${D}outFile in | |
44982 | *_%!) | |
44983 | outFile=\`basnam ${D}outFile _%!\` | |
44984 | ;; | |
44985 | *) | |
44986 | ;; | |
44987 | esac | |
44988 | case ${D}outFile in | |
44989 | *.dll) | |
44990 | outFile=\`basnam ${D}outFile .dll\` | |
44991 | ;; | |
44992 | *.DLL) | |
44993 | outFile=\`basnam ${D}outFile .DLL\` | |
44994 | ;; | |
44995 | *.o) | |
44996 | outFile=\`basnam ${D}outFile .o\` | |
44997 | ;; | |
44998 | *.obj) | |
44999 | outFile=\`basnam ${D}outFile .obj\` | |
45000 | ;; | |
45001 | *.a) | |
45002 | outFile=\`basnam ${D}outFile .a\` | |
45003 | ;; | |
45004 | *.lib) | |
45005 | outFile=\`basnam ${D}outFile .lib\` | |
45006 | ;; | |
45007 | *) | |
45008 | ;; | |
45009 | esac | |
45010 | case ${D}outimpFile in | |
45011 | *.a) | |
45012 | outimpFile=\`basnam ${D}outimpFile .a\` | |
45013 | ;; | |
45014 | *.lib) | |
45015 | outimpFile=\`basnam ${D}outimpFile .lib\` | |
45016 | ;; | |
45017 | *) | |
45018 | ;; | |
45019 | esac | |
1e9e8aba | 45020 | if [ -z ${D}outimpFile ]; then |
473276a9 VS |
45021 | outimpFile=${D}outFile |
45022 | fi | |
45023 | defFile="${D}{outFile}.def" | |
45024 | arcFile="${D}{outimpFile}.a" | |
45025 | arcFile2="${D}{outimpFile}.lib" | |
b1d22ded DE |
45026 | |
45027 | #create ${D}dllFile as something matching 8.3 restrictions, | |
45028 | if [ -z ${D}renameScript ] ; then | |
45029 | dllFile="${D}outFile" | |
45030 | else | |
45031 | dllFile=\`${D}renameScript ${D}outimpFile\` | |
45032 | fi | |
473276a9 | 45033 | |
1e9e8aba DE |
45034 | if [ ${D}do_backup -ne 0 ] ; then |
45035 | if [ -f ${D}arcFile ] ; then | |
473276a9 VS |
45036 | doCommand "mv ${D}arcFile ${D}{outFile}_s.a" |
45037 | fi | |
1e9e8aba | 45038 | if [ -f ${D}arcFile2 ] ; then |
473276a9 VS |
45039 | doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib" |
45040 | fi | |
45041 | fi | |
45042 | ||
45043 | # Extract public symbols from all the object files. | |
45044 | tmpdefFile=${D}{defFile}_% | |
45045 | rm -f ${D}tmpdefFile | |
45046 | for file in ${D}inputFiles ; do | |
45047 | case ${D}file in | |
45048 | *!) | |
45049 | ;; | |
45050 | *) | |
45051 | doCommand "emxexp -u ${D}file >> ${D}tmpdefFile" | |
45052 | ;; | |
45053 | esac | |
45054 | done | |
45055 | ||
45056 | # Create the def file. | |
45057 | rm -f ${D}defFile | |
45058 | echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile | |
b1d22ded DE |
45059 | dllFile="${D}{dllFile}.dll" |
45060 | if [ ! -z ${D}description ]; then | |
1e9e8aba | 45061 | echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile |
473276a9 VS |
45062 | fi |
45063 | echo "EXPORTS" >> ${D}defFile | |
45064 | ||
45065 | doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%" | |
45066 | grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile | |
45067 | ||
45068 | # Checks if the export is ok or not. | |
45069 | for word in ${D}exclude_symbols; do | |
45070 | grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}% | |
45071 | mv ${D}{tmpdefFile}% ${D}tmpdefFile | |
45072 | done | |
45073 | ||
45074 | ||
1e9e8aba DE |
45075 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
45076 | sed "=" < ${D}tmpdefFile | \\ | |
473276a9 VS |
45077 | sed ' |
45078 | N | |
45079 | : loop | |
1e9e8aba | 45080 | s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/ |
473276a9 VS |
45081 | t loop |
45082 | ' > ${D}{tmpdefFile}% | |
45083 | grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile | |
45084 | else | |
45085 | rm -f ${D}{tmpdefFile}% | |
45086 | fi | |
45087 | cat ${D}tmpdefFile >> ${D}defFile | |
45088 | rm -f ${D}tmpdefFile | |
45089 | ||
45090 | # Do linking, create implib, and apply lxlite. | |
45091 | gccCmdl=""; | |
45092 | for file in ${D}inputFiles ; do | |
45093 | case ${D}file in | |
45094 | *!) | |
45095 | ;; | |
45096 | *) | |
45097 | gccCmdl="${D}gccCmdl ${D}file" | |
45098 | ;; | |
45099 | esac | |
45100 | done | |
45101 | doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS" | |
45102 | touch "${D}{outFile}.dll" | |
45103 | ||
45104 | doCommand "emximp -o ${D}arcFile ${D}defFile" | |
1e9e8aba | 45105 | if [ ${D}flag_USE_LXLITE -ne 0 ]; then |
473276a9 | 45106 | add_flags=""; |
1e9e8aba | 45107 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
473276a9 VS |
45108 | add_flags="-ynd" |
45109 | fi | |
45110 | doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile" | |
45111 | fi | |
45112 | doCommand "emxomf -s -l ${D}arcFile" | |
45113 | ||
45114 | # Successful exit. | |
45115 | CleanUp 1 | |
45116 | exit 0 | |
45117 | EOF | |
45118 | ||
45119 | chmod +x dllar.sh | |
a848cd7e SC |
45120 | ;; |
45121 | ||
1e9e8aba | 45122 | powerpc-apple-macos* | \ |
0ad5d837 | 45123 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \ |
a848cd7e SC |
45124 | *-*-sunos4* | \ |
45125 | *-*-osf* | \ | |
45126 | *-*-dgux5* | \ | |
47a7e797 MW |
45127 | *-*-sysv5* | \ |
45128 | *-pc-msdosdjgpp ) | |
a848cd7e SC |
45129 | ;; |
45130 | ||
45131 | *) | |
45132 | { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5 | |
45133 | echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;} | |
45134 | { (exit 1); exit 1; }; } | |
45135 | esac | |
45136 | ||
2057db16 VS |
45137 | if test "x$PIC_FLAG" != "x" ; then |
45138 | PIC_FLAG="$PIC_FLAG -DPIC" | |
45139 | fi | |
45140 | ||
a848cd7e SC |
45141 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
45142 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
45143 | fi | |
45144 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
45145 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" | |
45146 | fi | |
45147 | ||
45148 | ||
45149 | ||
45150 | ||
45151 | ||
45152 | ||
45153 | ||
45154 | ||
810b94f0 | 45155 | |
a848cd7e SC |
45156 | USE_SOVERSION=0 |
45157 | USE_SOVERLINUX=0 | |
45158 | USE_SOVERSOLARIS=0 | |
810b94f0 | 45159 | USE_SOVERCYGWIN=0 |
a848cd7e SC |
45160 | USE_SOSYMLINKS=0 |
45161 | USE_MACVERSION=0 | |
45162 | SONAME_FLAG= | |
45163 | ||
45164 | case "${BAKEFILE_HOST}" in | |
0ad5d837 | 45165 | *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu ) |
5f652d0d VS |
45166 | SONAME_FLAG="-Wl,-soname," |
45167 | USE_SOVERSION=1 | |
45168 | USE_SOVERLINUX=1 | |
45169 | USE_SOSYMLINKS=1 | |
45170 | ;; | |
45171 | ||
a848cd7e SC |
45172 | *-*-solaris2* ) |
45173 | SONAME_FLAG="-h " | |
45174 | USE_SOVERSION=1 | |
45175 | USE_SOVERSOLARIS=1 | |
45176 | USE_SOSYMLINKS=1 | |
45177 | ;; | |
45178 | ||
45179 | *-*-darwin* ) | |
45180 | USE_MACVERSION=1 | |
45181 | USE_SOVERSION=1 | |
45182 | USE_SOSYMLINKS=1 | |
45183 | ;; | |
810b94f0 MW |
45184 | |
45185 | *-*-cygwin* ) | |
45186 | USE_SOVERSION=1 | |
45187 | USE_SOVERCYGWIN=1 | |
45188 | ;; | |
a848cd7e SC |
45189 | esac |
45190 | ||
45191 | ||
45192 | ||
45193 | ||
45194 | ||
45195 | ||
45196 | ||
45197 | ||
45198 | ||
810b94f0 | 45199 | |
a848cd7e SC |
45200 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 |
45201 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
0ad5d837 | 45202 | DEPS_TRACKING=1 |
a848cd7e SC |
45203 | |
45204 | if test "x$GCC" = "xyes"; then | |
45205 | DEPSMODE=gcc | |
a848cd7e | 45206 | case "${BAKEFILE_HOST}" in |
47bd5406 | 45207 | *-*-darwin* ) |
0ad5d837 | 45208 | DEPSFLAG="-no-cpp-precomp -MMD" |
a848cd7e SC |
45209 | ;; |
45210 | * ) | |
0ad5d837 | 45211 | DEPSFLAG="-MMD" |
a848cd7e SC |
45212 | ;; |
45213 | esac | |
45214 | echo "$as_me:$LINENO: result: gcc" >&5 | |
45215 | echo "${ECHO_T}gcc" >&6 | |
b1d22ded | 45216 | elif test "x$MWCC" = "xyes"; then |
81f90336 | 45217 | DEPSMODE=mwcc |
0ad5d837 | 45218 | DEPSFLAG="-MM" |
b1d22ded DE |
45219 | echo "$as_me:$LINENO: result: mwcc" >&5 |
45220 | echo "${ECHO_T}mwcc" >&6 | |
a9e5b1f0 | 45221 | elif test "x$SUNCC" = "xyes"; then |
0ad5d837 VZ |
45222 | DEPSMODE=unixcc |
45223 | DEPSFLAG="-xM1" | |
45224 | echo "$as_me:$LINENO: result: Sun cc" >&5 | |
45225 | echo "${ECHO_T}Sun cc" >&6 | |
45226 | elif test "x$SGICC" = "xyes"; then | |
45227 | DEPSMODE=unixcc | |
45228 | DEPSFLAG="-M" | |
45229 | echo "$as_me:$LINENO: result: SGI cc" >&5 | |
45230 | echo "${ECHO_T}SGI cc" >&6 | |
3006edc0 VZ |
45231 | elif test "x$HPCC" = "xyes"; then |
45232 | DEPSMODE=unixcc | |
45233 | DEPSFLAG="+make" | |
45234 | echo "$as_me:$LINENO: result: HP cc" >&5 | |
45235 | echo "${ECHO_T}HP cc" >&6 | |
a1aa0349 VZ |
45236 | elif test "x$COMPAQCC" = "xyes"; then |
45237 | DEPSMODE=gcc | |
45238 | DEPSFLAG="-MD" | |
45239 | echo "$as_me:$LINENO: result: Compaq cc" >&5 | |
45240 | echo "${ECHO_T}Compaq cc" >&6 | |
a848cd7e | 45241 | else |
3006edc0 | 45242 | DEPS_TRACKING=0 |
a848cd7e SC |
45243 | echo "$as_me:$LINENO: result: none" >&5 |
45244 | echo "${ECHO_T}none" >&6 | |
45245 | fi | |
45246 | ||
45247 | if test $DEPS_TRACKING = 1 ; then | |
473276a9 VS |
45248 | |
45249 | D='$' | |
45250 | cat <<EOF >bk-deps | |
a848cd7e SC |
45251 | #!/bin/sh |
45252 | ||
45253 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
45254 | # script. It is used to track C/C++ files dependencies in portable way. | |
45255 | # | |
45256 | # Permission is given to use this file in any way. | |
45257 | ||
473276a9 | 45258 | DEPSMODE=${DEPSMODE} |
a848cd7e | 45259 | DEPSDIR=.deps |
0ad5d837 | 45260 | DEPSFLAG="${DEPSFLAG}" |
a848cd7e | 45261 | |
473276a9 | 45262 | mkdir -p ${D}DEPSDIR |
a848cd7e | 45263 | |
473276a9 | 45264 | if test ${D}DEPSMODE = gcc ; then |
0ad5d837 | 45265 | ${D}* ${D}{DEPSFLAG} |
473276a9 VS |
45266 | status=${D}? |
45267 | if test ${D}{status} != 0 ; then | |
45268 | exit ${D}{status} | |
a848cd7e SC |
45269 | fi |
45270 | # move created file to the location we want it in: | |
473276a9 VS |
45271 | while test ${D}# -gt 0; do |
45272 | case "${D}1" in | |
a848cd7e SC |
45273 | -o ) |
45274 | shift | |
473276a9 | 45275 | objfile=${D}1 |
a848cd7e SC |
45276 | ;; |
45277 | -* ) | |
45278 | ;; | |
45279 | * ) | |
473276a9 | 45280 | srcfile=${D}1 |
a848cd7e SC |
45281 | ;; |
45282 | esac | |
45283 | shift | |
45284 | done | |
1e9e8aba DE |
45285 | depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\` |
45286 | depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\` | |
473276a9 VS |
45287 | if test -f ${D}depfile ; then |
45288 | sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
45289 | rm -f ${D}depfile | |
a848cd7e | 45290 | else |
a1aa0349 | 45291 | # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d |
1e9e8aba | 45292 | depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\` |
a1aa0349 VZ |
45293 | if test ! -f ${D}depfile ; then |
45294 | # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++) | |
45295 | depfile="${D}objfile.d" | |
45296 | fi | |
473276a9 VS |
45297 | if test -f ${D}depfile ; then |
45298 | sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
45299 | rm -f ${D}depfile | |
a848cd7e SC |
45300 | fi |
45301 | fi | |
45302 | exit 0 | |
81f90336 | 45303 | elif test ${D}DEPSMODE = mwcc ; then |
f6b50c59 | 45304 | ${D}* || exit ${D}? |
81f90336 MW |
45305 | # Run mwcc again with -MM and redirect into the dep file we want |
45306 | # NOTE: We can't use shift here because we need ${D}* to be valid | |
45307 | prevarg= | |
45308 | for arg in ${D}* ; do | |
45309 | if test "${D}prevarg" = "-o"; then | |
45310 | objfile=${D}arg | |
45311 | else | |
45312 | case "${D}arg" in | |
45313 | -* ) | |
45314 | ;; | |
45315 | * ) | |
45316 | srcfile=${D}arg | |
45317 | ;; | |
45318 | esac | |
45319 | fi | |
45320 | prevarg="${D}arg" | |
45321 | done | |
0ad5d837 | 45322 | ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d |
81f90336 | 45323 | exit 0 |
0ad5d837 | 45324 | elif test ${D}DEPSMODE = unixcc; then |
f6b50c59 | 45325 | ${D}* || exit ${D}? |
a9e5b1f0 MW |
45326 | # Run compiler again with deps flag and redirect into the dep file. |
45327 | # It doesn't work if the '-o FILE' option is used, but without it the | |
45328 | # dependency file will contain the wrong name for the object. So it is | |
45329 | # removed from the command line, and the dep file is fixed with sed. | |
45330 | cmd="" | |
45331 | while test ${D}# -gt 0; do | |
45332 | case "${D}1" in | |
45333 | -o ) | |
45334 | shift | |
45335 | objfile=${D}1 | |
45336 | ;; | |
45337 | * ) | |
45338 | eval arg${D}#=\\${D}1 | |
45339 | cmd="${D}cmd \\${D}arg${D}#" | |
45340 | ;; | |
45341 | esac | |
45342 | shift | |
45343 | done | |
0ad5d837 | 45344 | eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d |
a9e5b1f0 | 45345 | exit 0 |
a848cd7e | 45346 | else |
473276a9 VS |
45347 | ${D}* |
45348 | exit ${D}? | |
a848cd7e SC |
45349 | fi |
45350 | EOF | |
473276a9 | 45351 | |
a848cd7e SC |
45352 | chmod +x bk-deps |
45353 | fi | |
45354 | ||
45355 | ||
45356 | ||
45357 | ||
45358 | RESCOMP= | |
45359 | SETFILE= | |
45360 | ||
45361 | case ${BAKEFILE_HOST} in | |
45362 | *-*-cygwin* | *-*-mingw32* ) | |
45363 | if test "$build" != "$host" ; then | |
45364 | RESCOMP=$host_alias-windres | |
45365 | else | |
45366 | # Extract the first word of "windres", so it can be a program name with args. | |
45367 | set dummy windres; ac_word=$2 | |
45368 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45369 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45370 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
45371 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45372 | else | |
45373 | if test -n "$RESCOMP"; then | |
45374 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
45375 | else | |
45376 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45377 | for as_dir in $PATH | |
45378 | do | |
45379 | IFS=$as_save_IFS | |
45380 | test -z "$as_dir" && as_dir=. | |
45381 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45382 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45383 | ac_cv_prog_RESCOMP="windres" | |
45384 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45385 | break 2 | |
45386 | fi | |
45387 | done | |
45388 | done | |
45389 | ||
45390 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres" | |
45391 | fi | |
45392 | fi | |
45393 | RESCOMP=$ac_cv_prog_RESCOMP | |
45394 | if test -n "$RESCOMP"; then | |
45395 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
45396 | echo "${ECHO_T}$RESCOMP" >&6 | |
45397 | else | |
45398 | echo "$as_me:$LINENO: result: no" >&5 | |
45399 | echo "${ECHO_T}no" >&6 | |
45400 | fi | |
45401 | ||
45402 | fi | |
45403 | ;; | |
45404 | ||
1e9e8aba | 45405 | *-*-darwin* | powerpc-apple-macos* ) |
a848cd7e SC |
45406 | # Extract the first word of "Rez", so it can be a program name with args. |
45407 | set dummy Rez; ac_word=$2 | |
45408 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45409 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45410 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
45411 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45412 | else | |
45413 | if test -n "$RESCOMP"; then | |
45414 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
45415 | else | |
45416 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45417 | for as_dir in $PATH | |
45418 | do | |
45419 | IFS=$as_save_IFS | |
45420 | test -z "$as_dir" && as_dir=. | |
45421 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45422 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45423 | ac_cv_prog_RESCOMP="Rez" | |
45424 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45425 | break 2 | |
45426 | fi | |
45427 | done | |
45428 | done | |
45429 | ||
45430 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
45431 | fi | |
45432 | fi | |
45433 | RESCOMP=$ac_cv_prog_RESCOMP | |
45434 | if test -n "$RESCOMP"; then | |
45435 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
45436 | echo "${ECHO_T}$RESCOMP" >&6 | |
45437 | else | |
45438 | echo "$as_me:$LINENO: result: no" >&5 | |
45439 | echo "${ECHO_T}no" >&6 | |
45440 | fi | |
45441 | ||
45442 | # Extract the first word of "SetFile", so it can be a program name with args. | |
45443 | set dummy SetFile; ac_word=$2 | |
45444 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45445 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45446 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
45447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45448 | else | |
45449 | if test -n "$SETFILE"; then | |
45450 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
45451 | else | |
45452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45453 | for as_dir in $PATH | |
45454 | do | |
45455 | IFS=$as_save_IFS | |
45456 | test -z "$as_dir" && as_dir=. | |
45457 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45458 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45459 | ac_cv_prog_SETFILE="SetFile" | |
45460 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45461 | break 2 | |
45462 | fi | |
45463 | done | |
45464 | done | |
45465 | ||
45466 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
45467 | fi | |
45468 | fi | |
45469 | SETFILE=$ac_cv_prog_SETFILE | |
45470 | if test -n "$SETFILE"; then | |
45471 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
45472 | echo "${ECHO_T}$SETFILE" >&6 | |
45473 | else | |
45474 | echo "$as_me:$LINENO: result: no" >&5 | |
45475 | echo "${ECHO_T}no" >&6 | |
45476 | fi | |
45477 | ||
45478 | ;; | |
45479 | esac | |
45480 | ||
45481 | ||
45482 | ||
45483 | ||
45484 | ||
c9469659 | 45485 | BAKEFILE_BAKEFILE_M4_VERSION="0.1.9" |
a848cd7e | 45486 | |
dcc1b6ad | 45487 | |
c9469659 | 45488 | BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.9" |
a848cd7e | 45489 | |
646b6ec1 | 45490 | |
74b84332 | 45491 | |
a848cd7e SC |
45492 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
45493 | if test "${enable_precomp_headers+set}" = set; then | |
45494 | enableval="$enable_precomp_headers" | |
45495 | bk_use_pch="$enableval" | |
45496 | fi; | |
45497 | ||
45498 | GCC_PCH=0 | |
45499 | ||
45500 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
45501 | if test "x$GCC" = "xyes"; then | |
45502 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
45503 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
45504 | cat >conftest.$ac_ext <<_ACEOF | |
45505 | /* confdefs.h. */ | |
45506 | _ACEOF | |
45507 | cat confdefs.h >>conftest.$ac_ext | |
45508 | cat >>conftest.$ac_ext <<_ACEOF | |
45509 | /* end confdefs.h. */ | |
45510 | ||
45511 | int | |
45512 | main () | |
45513 | { | |
45514 | ||
45515 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
45516 | #error "no pch support" | |
45517 | #endif | |
45518 | #if (__GNUC__ < 3) | |
45519 | #error "no pch support" | |
45520 | #endif | |
45521 | #if (__GNUC__ == 3) && \ | |
45522 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
45523 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
45524 | #error "no pch support" | |
45525 | #endif | |
45526 | ||
45527 | ; | |
45528 | return 0; | |
45529 | } | |
45530 | _ACEOF | |
45531 | rm -f conftest.$ac_objext | |
45532 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 45533 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 45534 | ac_status=$? |
ac1cb8d3 VS |
45535 | grep -v '^ *+' conftest.er1 >conftest.err |
45536 | rm -f conftest.er1 | |
45537 | cat conftest.err >&5 | |
a848cd7e SC |
45538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
45539 | (exit $ac_status); } && | |
0093c2fc | 45540 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
45541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
45542 | (eval $ac_try) 2>&5 | |
45543 | ac_status=$? | |
45544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45545 | (exit $ac_status); }; } && | |
45546 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
45547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
45548 | (eval $ac_try) 2>&5 | |
45549 | ac_status=$? | |
45550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45551 | (exit $ac_status); }; }; then | |
45552 | ||
45553 | echo "$as_me:$LINENO: result: yes" >&5 | |
45554 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
45555 | GCC_PCH=1 |
45556 | ||
45557 | else | |
45558 | echo "$as_me: failed program was:" >&5 | |
45559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
45560 | ||
45561 | ||
45562 | echo "$as_me:$LINENO: result: no" >&5 | |
45563 | echo "${ECHO_T}no" >&6 | |
45564 | ||
45565 | fi | |
ac1cb8d3 | 45566 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 45567 | if test $GCC_PCH = 1 ; then |
1e9e8aba DE |
45568 | |
45569 | D='$' | |
45570 | cat <<EOF >bk-make-pch | |
a848cd7e SC |
45571 | #!/bin/sh |
45572 | ||
45573 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
45574 | # script. It is used to generated precompiled headers. | |
45575 | # | |
45576 | # Permission is given to use this file in any way. | |
45577 | ||
1e9e8aba DE |
45578 | outfile="${D}{1}" |
45579 | header="${D}{2}" | |
a848cd7e SC |
45580 | shift |
45581 | shift | |
45582 | ||
45583 | compiler= | |
45584 | headerfile= | |
1e9e8aba DE |
45585 | while test ${D}{#} -gt 0; do |
45586 | case "${D}{1}" in | |
a848cd7e | 45587 | -I* ) |
1e9e8aba DE |
45588 | incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\` |
45589 | if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then | |
45590 | headerfile="${D}{incdir}/${D}{header}" | |
a848cd7e SC |
45591 | fi |
45592 | ;; | |
45593 | esac | |
1e9e8aba | 45594 | compiler="${D}{compiler} ${D}{1}" |
a848cd7e SC |
45595 | shift |
45596 | done | |
45597 | ||
1e9e8aba DE |
45598 | if test "x${D}{headerfile}" = "x" ; then |
45599 | echo "error: can't find header ${D}{header} in include paths" >2 | |
a848cd7e | 45600 | else |
1e9e8aba DE |
45601 | if test -f ${D}{outfile} ; then |
45602 | rm -f ${D}{outfile} | |
a848cd7e | 45603 | else |
1e9e8aba | 45604 | mkdir -p \`dirname ${D}{outfile}\` |
a848cd7e | 45605 | fi |
1e9e8aba | 45606 | depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d" |
a848cd7e SC |
45607 | mkdir -p .deps |
45608 | # can do this because gcc is >= 3.4: | |
1e9e8aba DE |
45609 | ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}" |
45610 | exit ${D}{?} | |
a848cd7e SC |
45611 | fi |
45612 | EOF | |
1e9e8aba | 45613 | |
a848cd7e SC |
45614 | chmod +x bk-make-pch |
45615 | fi | |
45616 | fi | |
45617 | fi | |
45618 | ||
45619 | ||
45620 | ||
a848cd7e SC |
45621 | COND_BUILD_DEBUG="#" |
45622 | if test "x$BUILD" = "xdebug" ; then | |
45623 | COND_BUILD_DEBUG="" | |
45624 | fi | |
45625 | ||
45626 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
45627 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
45628 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
45629 | fi | |
45630 | ||
45631 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
45632 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
45633 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
45634 | fi | |
45635 | ||
45636 | COND_BUILD_DEBUG_UNICODE_0="#" | |
45637 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
45638 | COND_BUILD_DEBUG_UNICODE_0="" | |
45639 | fi | |
45640 | ||
45641 | COND_BUILD_DEBUG_UNICODE_1="#" | |
45642 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
45643 | COND_BUILD_DEBUG_UNICODE_1="" | |
45644 | fi | |
45645 | ||
45646 | COND_BUILD_RELEASE="#" | |
45647 | if test "x$BUILD" = "xrelease" ; then | |
45648 | COND_BUILD_RELEASE="" | |
45649 | fi | |
45650 | ||
45651 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
45652 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
45653 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
45654 | fi | |
45655 | ||
45656 | COND_BUILD_RELEASE_UNICODE_0="#" | |
45657 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
45658 | COND_BUILD_RELEASE_UNICODE_0="" | |
45659 | fi | |
45660 | ||
45661 | COND_BUILD_RELEASE_UNICODE_1="#" | |
45662 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
45663 | COND_BUILD_RELEASE_UNICODE_1="" | |
45664 | fi | |
45665 | ||
45666 | COND_DEBUG_FLAG_1="#" | |
45667 | if test "x$DEBUG_FLAG" = "x1" ; then | |
45668 | COND_DEBUG_FLAG_1="" | |
45669 | fi | |
45670 | ||
45671 | COND_DEBUG_INFO_0="#" | |
45672 | if test "x$DEBUG_INFO" = "x0" ; then | |
45673 | COND_DEBUG_INFO_0="" | |
45674 | fi | |
45675 | ||
45676 | COND_DEBUG_INFO_1="#" | |
45677 | if test "x$DEBUG_INFO" = "x1" ; then | |
45678 | COND_DEBUG_INFO_1="" | |
45679 | fi | |
45680 | ||
45681 | COND_DEPS_TRACKING_0="#" | |
45682 | if test "x$DEPS_TRACKING" = "x0" ; then | |
45683 | COND_DEPS_TRACKING_0="" | |
45684 | fi | |
45685 | ||
45686 | COND_DEPS_TRACKING_1="#" | |
45687 | if test "x$DEPS_TRACKING" = "x1" ; then | |
45688 | COND_DEPS_TRACKING_1="" | |
45689 | fi | |
45690 | ||
45691 | COND_GCC_PCH_1="#" | |
45692 | if test "x$GCC_PCH" = "x1" ; then | |
45693 | COND_GCC_PCH_1="" | |
45694 | fi | |
45695 | ||
45696 | COND_MONOLITHIC_0="#" | |
45697 | if test "x$MONOLITHIC" = "x0" ; then | |
45698 | COND_MONOLITHIC_0="" | |
45699 | fi | |
45700 | ||
45701 | COND_MONOLITHIC_0_SHARED_0="#" | |
45702 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
45703 | COND_MONOLITHIC_0_SHARED_0="" | |
45704 | fi | |
45705 | ||
45706 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
45707 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
45708 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
45709 | fi | |
45710 | ||
90970d69 DE |
45711 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#" |
45712 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
45713 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="" | |
45714 | fi | |
45715 | ||
a848cd7e SC |
45716 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" |
45717 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
45718 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
45719 | fi | |
45720 | ||
6671c68b VZ |
45721 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#" |
45722 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
45723 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="" | |
45724 | fi | |
45725 | ||
a848cd7e SC |
45726 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" |
45727 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
45728 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
45729 | fi | |
45730 | ||
ceec2216 RL |
45731 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#" |
45732 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
45733 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="" | |
45734 | fi | |
45735 | ||
a848cd7e SC |
45736 | COND_MONOLITHIC_0_SHARED_1="#" |
45737 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
45738 | COND_MONOLITHIC_0_SHARED_1="" | |
45739 | fi | |
45740 | ||
45741 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
45742 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
45743 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
45744 | fi | |
45745 | ||
90970d69 DE |
45746 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#" |
45747 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
45748 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="" | |
45749 | fi | |
45750 | ||
a848cd7e SC |
45751 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" |
45752 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
45753 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
45754 | fi | |
45755 | ||
6671c68b VZ |
45756 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#" |
45757 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
45758 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="" | |
45759 | fi | |
45760 | ||
a848cd7e SC |
45761 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" |
45762 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
45763 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
45764 | fi | |
45765 | ||
ceec2216 RL |
45766 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#" |
45767 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
45768 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="" | |
45769 | fi | |
45770 | ||
a848cd7e SC |
45771 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
45772 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
45773 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
45774 | fi | |
45775 | ||
45776 | COND_MONOLITHIC_1="#" | |
45777 | if test "x$MONOLITHIC" = "x1" ; then | |
45778 | COND_MONOLITHIC_1="" | |
45779 | fi | |
45780 | ||
45781 | COND_MONOLITHIC_1_SHARED_0="#" | |
45782 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
45783 | COND_MONOLITHIC_1_SHARED_0="" | |
45784 | fi | |
45785 | ||
45786 | COND_MONOLITHIC_1_SHARED_1="#" | |
45787 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
45788 | COND_MONOLITHIC_1_SHARED_1="" | |
45789 | fi | |
45790 | ||
45791 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
45792 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
45793 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
45794 | fi | |
45795 | ||
45796 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
45797 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
45798 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
45799 | fi | |
45800 | ||
eb730a0c JS |
45801 | COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#" |
45802 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
45803 | COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="" | |
45804 | fi | |
45805 | ||
a848cd7e SC |
45806 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" |
45807 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
45808 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
45809 | fi | |
45810 | ||
45811 | COND_PLATFORM_MACOSX_1="#" | |
45812 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
45813 | COND_PLATFORM_MACOSX_1="" | |
45814 | fi | |
45815 | ||
a30f955f VS |
45816 | COND_PLATFORM_MACOSX_1_TOOLKIT_="#" |
45817 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then | |
45818 | COND_PLATFORM_MACOSX_1_TOOLKIT_="" | |
45819 | fi | |
45820 | ||
a848cd7e SC |
45821 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" |
45822 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
45823 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
45824 | fi | |
45825 | ||
45826 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
45827 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
45828 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
45829 | fi | |
45830 | ||
45831 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
45832 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
45833 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
45834 | fi | |
45835 | ||
fc480dc1 DE |
45836 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#" |
45837 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
45838 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="" | |
45839 | fi | |
45840 | ||
1e9e8aba DE |
45841 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" |
45842 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
45843 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
45844 | fi | |
45845 | ||
ebee3cd0 VS |
45846 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#" |
45847 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then | |
45848 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="" | |
45849 | fi | |
45850 | ||
45851 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#" | |
45852 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then | |
45853 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="" | |
45854 | fi | |
45855 | ||
a848cd7e SC |
45856 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
45857 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
45858 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
45859 | fi | |
45860 | ||
45861 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
45862 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
45863 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
45864 | fi | |
45865 | ||
b48a2016 DE |
45866 | COND_PLATFORM_MACOS_1="#" |
45867 | if test "x$PLATFORM_MACOS" = "x1" ; then | |
45868 | COND_PLATFORM_MACOS_1="" | |
45869 | fi | |
45870 | ||
083508af MW |
45871 | COND_PLATFORM_MAC_1="#" |
45872 | if test "x$PLATFORM_MAC" = "x1" ; then | |
45873 | COND_PLATFORM_MAC_1="" | |
45874 | fi | |
45875 | ||
83d8eb47 MW |
45876 | COND_PLATFORM_MSDOS_1="#" |
45877 | if test "x$PLATFORM_MSDOS" = "x1" ; then | |
45878 | COND_PLATFORM_MSDOS_1="" | |
45879 | fi | |
45880 | ||
a848cd7e SC |
45881 | COND_PLATFORM_OS2_1="#" |
45882 | if test "x$PLATFORM_OS2" = "x1" ; then | |
45883 | COND_PLATFORM_OS2_1="" | |
45884 | fi | |
45885 | ||
45886 | COND_PLATFORM_UNIX_0="#" | |
45887 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
45888 | COND_PLATFORM_UNIX_0="" | |
45889 | fi | |
45890 | ||
45891 | COND_PLATFORM_UNIX_1="#" | |
45892 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
45893 | COND_PLATFORM_UNIX_1="" | |
45894 | fi | |
45895 | ||
45896 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
45897 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
45898 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
45899 | fi | |
45900 | ||
45901 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
45902 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
45903 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
45904 | fi | |
45905 | ||
45906 | COND_PLATFORM_WIN32_0="#" | |
45907 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
45908 | COND_PLATFORM_WIN32_0="" | |
45909 | fi | |
45910 | ||
45911 | COND_PLATFORM_WIN32_1="#" | |
45912 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
45913 | COND_PLATFORM_WIN32_1="" | |
45914 | fi | |
45915 | ||
45916 | COND_SHARED_0="#" | |
45917 | if test "x$SHARED" = "x0" ; then | |
45918 | COND_SHARED_0="" | |
45919 | fi | |
45920 | ||
083508af MW |
45921 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#" |
45922 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
45923 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="" | |
45924 | fi | |
45925 | ||
45926 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#" | |
45927 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
45928 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="" | |
45929 | fi | |
45930 | ||
45931 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#" | |
45932 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
45933 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="" | |
45934 | fi | |
45935 | ||
a848cd7e SC |
45936 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
45937 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
45938 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
45939 | fi | |
45940 | ||
45941 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
45942 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
45943 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
45944 | fi | |
45945 | ||
45946 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
45947 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
45948 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
45949 | fi | |
45950 | ||
45951 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
45952 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
45953 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
45954 | fi | |
45955 | ||
083508af MW |
45956 | COND_SHARED_0_USE_XRC_1="#" |
45957 | if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
45958 | COND_SHARED_0_USE_XRC_1="" | |
45959 | fi | |
45960 | ||
a848cd7e SC |
45961 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" |
45962 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
45963 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
45964 | fi | |
45965 | ||
45966 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
45967 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
45968 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
45969 | fi | |
45970 | ||
45971 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
45972 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
45973 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
45974 | fi | |
45975 | ||
45976 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
45977 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
45978 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
45979 | fi | |
45980 | ||
45981 | COND_SHARED_1="#" | |
45982 | if test "x$SHARED" = "x1" ; then | |
45983 | COND_SHARED_1="" | |
45984 | fi | |
45985 | ||
45986 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
45987 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
45988 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
45989 | fi | |
45990 | ||
083508af MW |
45991 | COND_SHARED_1_USE_XRC_1="#" |
45992 | if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
45993 | COND_SHARED_1_USE_XRC_1="" | |
45994 | fi | |
45995 | ||
a30f955f VS |
45996 | COND_TOOLKIT_="#" |
45997 | if test "x$TOOLKIT" = "x" ; then | |
45998 | COND_TOOLKIT_="" | |
45999 | fi | |
46000 | ||
a848cd7e SC |
46001 | COND_TOOLKIT_COCOA="#" |
46002 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
46003 | COND_TOOLKIT_COCOA="" | |
46004 | fi | |
46005 | ||
a49baeab DE |
46006 | COND_TOOLKIT_COCOA_USE_GUI_1="#" |
46007 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then | |
46008 | COND_TOOLKIT_COCOA_USE_GUI_1="" | |
46009 | fi | |
46010 | ||
a848cd7e SC |
46011 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
46012 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
46013 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
46014 | fi | |
46015 | ||
46016 | COND_TOOLKIT_GTK="#" | |
46017 | if test "x$TOOLKIT" = "xGTK" ; then | |
46018 | COND_TOOLKIT_GTK="" | |
46019 | fi | |
46020 | ||
46021 | COND_TOOLKIT_GTK_USE_GUI_1="#" | |
46022 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
46023 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
46024 | fi | |
46025 | ||
46026 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" | |
46027 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
46028 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
46029 | fi | |
46030 | ||
46031 | COND_TOOLKIT_MAC="#" | |
46032 | if test "x$TOOLKIT" = "xMAC" ; then | |
46033 | COND_TOOLKIT_MAC="" | |
46034 | fi | |
46035 | ||
46036 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
46037 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
46038 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
46039 | fi | |
46040 | ||
46041 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
46042 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
46043 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
46044 | fi | |
46045 | ||
46046 | COND_TOOLKIT_MGL="#" | |
46047 | if test "x$TOOLKIT" = "xMGL" ; then | |
46048 | COND_TOOLKIT_MGL="" | |
46049 | fi | |
46050 | ||
46051 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
46052 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
46053 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
46054 | fi | |
46055 | ||
46056 | COND_TOOLKIT_MOTIF="#" | |
46057 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
46058 | COND_TOOLKIT_MOTIF="" | |
46059 | fi | |
46060 | ||
46061 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
46062 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
46063 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
46064 | fi | |
46065 | ||
46066 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
46067 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
46068 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
46069 | fi | |
46070 | ||
46071 | COND_TOOLKIT_MSW="#" | |
46072 | if test "x$TOOLKIT" = "xMSW" ; then | |
46073 | COND_TOOLKIT_MSW="" | |
46074 | fi | |
46075 | ||
46076 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
46077 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
46078 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
46079 | fi | |
46080 | ||
46081 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
46082 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
46083 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
46084 | fi | |
46085 | ||
0ee4059d DE |
46086 | COND_TOOLKIT_MSW_WXUNIV_0="#" |
46087 | if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
46088 | COND_TOOLKIT_MSW_WXUNIV_0="" | |
46089 | fi | |
46090 | ||
a848cd7e SC |
46091 | COND_TOOLKIT_PM="#" |
46092 | if test "x$TOOLKIT" = "xPM" ; then | |
46093 | COND_TOOLKIT_PM="" | |
46094 | fi | |
46095 | ||
46096 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
46097 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
46098 | COND_TOOLKIT_PM_USE_GUI_1="" | |
46099 | fi | |
46100 | ||
46101 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
46102 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
46103 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
46104 | fi | |
46105 | ||
3fd9c298 DE |
46106 | COND_TOOLKIT_WINCE="#" |
46107 | if test "x$TOOLKIT" = "xWINCE" ; then | |
46108 | COND_TOOLKIT_WINCE="" | |
46109 | fi | |
46110 | ||
46111 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
46112 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
46113 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
46114 | fi | |
46115 | ||
46116 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
46117 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
46118 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
46119 | fi | |
46120 | ||
0ee4059d DE |
46121 | COND_TOOLKIT_WINCE_WXUNIV_0="#" |
46122 | if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then | |
46123 | COND_TOOLKIT_WINCE_WXUNIV_0="" | |
46124 | fi | |
46125 | ||
a848cd7e SC |
46126 | COND_TOOLKIT_X11="#" |
46127 | if test "x$TOOLKIT" = "xX11" ; then | |
46128 | COND_TOOLKIT_X11="" | |
46129 | fi | |
46130 | ||
46131 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
46132 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
46133 | COND_TOOLKIT_X11_USE_GUI_1="" | |
46134 | fi | |
46135 | ||
46136 | COND_UNICODE_1="#" | |
46137 | if test "x$UNICODE" = "x1" ; then | |
46138 | COND_UNICODE_1="" | |
46139 | fi | |
46140 | ||
46141 | COND_USE_EXCEPTIONS_0="#" | |
46142 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
46143 | COND_USE_EXCEPTIONS_0="" | |
46144 | fi | |
46145 | ||
46146 | COND_USE_EXCEPTIONS_1="#" | |
46147 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
46148 | COND_USE_EXCEPTIONS_1="" | |
46149 | fi | |
46150 | ||
46151 | COND_USE_GUI_0="#" | |
46152 | if test "x$USE_GUI" = "x0" ; then | |
46153 | COND_USE_GUI_0="" | |
46154 | fi | |
46155 | ||
46156 | COND_USE_GUI_1="#" | |
46157 | if test "x$USE_GUI" = "x1" ; then | |
46158 | COND_USE_GUI_1="" | |
46159 | fi | |
46160 | ||
46161 | COND_USE_GUI_1_WXUNIV_0="#" | |
46162 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
46163 | COND_USE_GUI_1_WXUNIV_0="" | |
46164 | fi | |
46165 | ||
46166 | COND_USE_GUI_1_WXUNIV_1="#" | |
46167 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
46168 | COND_USE_GUI_1_WXUNIV_1="" | |
46169 | fi | |
46170 | ||
46171 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
46172 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
46173 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
46174 | fi | |
46175 | ||
46176 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
46177 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
46178 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
46179 | fi | |
46180 | ||
46181 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
46182 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
46183 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
46184 | fi | |
46185 | ||
083508af MW |
46186 | COND_USE_ODBC_1="#" |
46187 | if test "x$USE_ODBC" = "x1" ; then | |
46188 | COND_USE_ODBC_1="" | |
46189 | fi | |
46190 | ||
46191 | COND_USE_OPENGL_1="#" | |
46192 | if test "x$USE_OPENGL" = "x1" ; then | |
46193 | COND_USE_OPENGL_1="" | |
46194 | fi | |
46195 | ||
a848cd7e SC |
46196 | COND_USE_PLUGINS_0="#" |
46197 | if test "x$USE_PLUGINS" = "x0" ; then | |
46198 | COND_USE_PLUGINS_0="" | |
46199 | fi | |
46200 | ||
0b78747f MW |
46201 | COND_USE_RTTI_0="#" |
46202 | if test "x$USE_RTTI" = "x0" ; then | |
46203 | COND_USE_RTTI_0="" | |
46204 | fi | |
46205 | ||
46206 | COND_USE_RTTI_1="#" | |
46207 | if test "x$USE_RTTI" = "x1" ; then | |
46208 | COND_USE_RTTI_1="" | |
46209 | fi | |
46210 | ||
a848cd7e SC |
46211 | COND_USE_SOSYMLINKS_1="#" |
46212 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
46213 | COND_USE_SOSYMLINKS_1="" | |
46214 | fi | |
46215 | ||
eb730a0c JS |
46216 | COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#" |
46217 | if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
46218 | COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="" | |
46219 | fi | |
46220 | ||
a848cd7e SC |
46221 | COND_USE_SOVERLINUX_1="#" |
46222 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
46223 | COND_USE_SOVERLINUX_1="" | |
46224 | fi | |
46225 | ||
46226 | COND_USE_SOVERSION_0="#" | |
46227 | if test "x$USE_SOVERSION" = "x0" ; then | |
46228 | COND_USE_SOVERSION_0="" | |
46229 | fi | |
46230 | ||
46231 | COND_USE_SOVERSOLARIS_1="#" | |
46232 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
46233 | COND_USE_SOVERSOLARIS_1="" | |
46234 | fi | |
46235 | ||
0b78747f MW |
46236 | COND_USE_THREADS_0="#" |
46237 | if test "x$USE_THREADS" = "x0" ; then | |
46238 | COND_USE_THREADS_0="" | |
46239 | fi | |
46240 | ||
46241 | COND_USE_THREADS_1="#" | |
46242 | if test "x$USE_THREADS" = "x1" ; then | |
46243 | COND_USE_THREADS_1="" | |
46244 | fi | |
46245 | ||
a13a7f89 RL |
46246 | COND_USE_XRC_1="#" |
46247 | if test "x$USE_XRC" = "x1" ; then | |
46248 | COND_USE_XRC_1="" | |
46249 | fi | |
46250 | ||
eb730a0c JS |
46251 | COND_WINDOWS_IMPLIB_1="#" |
46252 | if test "x$WINDOWS_IMPLIB" = "x1" ; then | |
46253 | COND_WINDOWS_IMPLIB_1="" | |
46254 | fi | |
46255 | ||
a848cd7e SC |
46256 | COND_WITH_PLUGIN_SDL_1="#" |
46257 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
46258 | COND_WITH_PLUGIN_SDL_1="" | |
46259 | fi | |
46260 | ||
1e6eb025 VZ |
46261 | COND_WXUNIV_0="#" |
46262 | if test "x$WXUNIV" = "x0" ; then | |
46263 | COND_WXUNIV_0="" | |
46264 | fi | |
46265 | ||
a848cd7e SC |
46266 | COND_WXUNIV_1="#" |
46267 | if test "x$WXUNIV" = "x1" ; then | |
46268 | COND_WXUNIV_1="" | |
46269 | fi | |
46270 | ||
46271 | COND_WXUSE_EXPAT_BUILTIN="#" | |
46272 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
46273 | COND_WXUSE_EXPAT_BUILTIN="" | |
46274 | fi | |
46275 | ||
46276 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
46277 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
46278 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
46279 | fi | |
46280 | ||
46281 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
46282 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
46283 | COND_WXUSE_LIBPNG_BUILTIN="" | |
46284 | fi | |
46285 | ||
46286 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
46287 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
46288 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
46289 | fi | |
46290 | ||
46291 | COND_WXUSE_ODBC_BUILTIN="#" | |
46292 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
46293 | COND_WXUSE_ODBC_BUILTIN="" | |
46294 | fi | |
46295 | ||
46296 | COND_WXUSE_REGEX_BUILTIN="#" | |
46297 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
46298 | COND_WXUSE_REGEX_BUILTIN="" | |
46299 | fi | |
46300 | ||
46301 | COND_WXUSE_ZLIB_BUILTIN="#" | |
46302 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
46303 | COND_WXUSE_ZLIB_BUILTIN="" | |
46304 | fi | |
46305 | ||
46306 | ||
46307 | ||
810b94f0 MW |
46308 | if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then |
46309 | { { echo "$as_me:$LINENO: error: No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.in wasn't updated (see the documentation)?" >&5 | |
46310 | echo "$as_me: error: No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.in wasn't updated (see the documentation)?" >&2;} | |
46311 | { (exit 1); exit 1; }; } | |
46312 | fi | |
46313 | ||
2057db16 VS |
46314 | if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then |
46315 | { { 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 | |
46316 | 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;} | |
46317 | { (exit 1); exit 1; }; } | |
46318 | fi | |
46319 | ||
a848cd7e | 46320 | |
ceec2216 RL |
46321 | if test "$wxUSE_SHARED" = "yes"; then |
46322 | ||
46323 | sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'` | |
46324 | EXE_LINKER=`eval echo "$sanitised_bakefile_mess"` | |
46325 | ||
5b674b9d DE |
46326 | case "${host}" in |
46327 | *-pc-os2_emx | *-pc-os2-emx ) | |
46328 | SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
46329 | SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
46330 | cp -p ${srcdir}/src/os2/dllnames.sh . | |
46331 | cp -p ${srcdir}/src/os2/dllar.sh . | |
46332 | ;; | |
46333 | esac | |
ceec2216 RL |
46334 | else |
46335 | ||
46336 | EXE_LINKER="$CXX -o" | |
46337 | ||
46338 | fi | |
69120ee4 VZ |
46339 | if test "$wxUSE_OMF" = "yes"; then |
46340 | case "${host}" in | |
46341 | *-pc-os2_emx | *-pc-os2-emx ) | |
46342 | LDFLAGS="$LDFLAGS -Zlinker /EXEPACK" | |
46343 | LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
46344 | WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
46345 | ;; | |
46346 | esac | |
46347 | fi | |
a848cd7e | 46348 | |
c08ebc62 | 46349 | if test $GCC_PCH = 1 ; then |
254e8e29 | 46350 | CPPFLAGS="-DWX_PRECOMP $CPPFLAGS" |
ddd14b14 | 46351 | fi |
a848cd7e | 46352 | |
2eef8513 | 46353 | CPPFLAGS="$CPPFLAGS $TOOLCHAIN_DEFS" |
a848cd7e SC |
46354 | |
46355 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
46356 | ||
46357 | ||
46358 | ||
46359 | ||
46360 | ||
46361 | ||
46362 | ||
46363 | ||
46364 | ||
46365 | ||
46366 | ||
46367 | ||
46368 | ||
46369 | ||
46370 | ||
46371 | ||
46372 | ||
46373 | ||
46374 | ||
46375 | ||
46376 | ||
46377 | ||
46378 | ||
46379 | ||
46380 | ||
46381 | ||
46382 | ||
46383 | ||
46384 | ||
46385 | ||
46386 | ||
46387 | ||
46388 | ||
46389 | ||
46390 | ||
46391 | ||
46392 | ||
46393 | ||
46394 | ||
46395 | ||
46396 | ||
46397 | ||
a848cd7e SC |
46398 | |
46399 | ||
46400 | ||
46401 | ||
46402 | ||
46403 | ||
46404 | ||
46405 | ||
46406 | ||
46407 | ||
46408 | ||
46409 | ||
46410 | ||
46411 | ||
46412 | ||
46413 | ||
46414 | ||
46415 | ||
ddd14b14 | 46416 | |
a848cd7e SC |
46417 | |
46418 | ||
46419 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
46420 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 46421 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
46422 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
46423 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46424 | else | |
46425 | cat >conftest.make <<\_ACEOF | |
46426 | all: | |
46427 | @echo 'ac_maketemp="$(MAKE)"' | |
46428 | _ACEOF | |
46429 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
46430 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
46431 | if test -n "$ac_maketemp"; then | |
46432 | eval ac_cv_prog_make_${ac_make}_set=yes | |
46433 | else | |
46434 | eval ac_cv_prog_make_${ac_make}_set=no | |
46435 | fi | |
46436 | rm -f conftest.make | |
46437 | fi | |
46438 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
46439 | echo "$as_me:$LINENO: result: yes" >&5 | |
46440 | echo "${ECHO_T}yes" >&6 | |
46441 | SET_MAKE= | |
46442 | else | |
46443 | echo "$as_me:$LINENO: result: no" >&5 | |
46444 | echo "${ECHO_T}no" >&6 | |
46445 | SET_MAKE="MAKE=${MAKE-make}" | |
46446 | fi | |
46447 | ||
46448 | ||
a848cd7e | 46449 | |
ceec2216 RL |
46450 | ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" |
46451 | ||
a848cd7e | 46452 | |
ceec2216 | 46453 | ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" |
a848cd7e | 46454 | |
a848cd7e | 46455 | |
ceec2216 | 46456 | ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" |
a848cd7e | 46457 | |
ceec2216 RL |
46458 | |
46459 | ac_config_files="$ac_config_files version-script Makefile" | |
46460 | ||
46461 | ||
46462 | ac_config_commands="$ac_config_commands wx-config | |
46463 | " | |
a848cd7e SC |
46464 | |
46465 | ||
9103d280 | 46466 | |
1c14217d | 46467 | if test "$wxWITH_SUBDIRS" != "no"; then |
a848cd7e SC |
46468 | if test "$wxUSE_GUI" = "yes"; then |
46469 | SUBDIRS="samples demos utils contrib" | |
46470 | else SUBDIRS="samples utils" | |
46471 | fi | |
46472 | ||
46473 | ||
46474 | ||
46475 | # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given. | |
46476 | if test "${with_cppunit_prefix+set}" = set; then | |
46477 | withval="$with_cppunit_prefix" | |
46478 | cppunit_config_prefix="$withval" | |
46479 | else | |
46480 | cppunit_config_prefix="" | |
46481 | fi; | |
46482 | ||
46483 | # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given. | |
46484 | if test "${with_cppunit_exec_prefix+set}" = set; then | |
46485 | withval="$with_cppunit_exec_prefix" | |
46486 | cppunit_config_exec_prefix="$withval" | |
46487 | else | |
46488 | cppunit_config_exec_prefix="" | |
46489 | fi; | |
46490 | ||
46491 | if test x$cppunit_config_exec_prefix != x ; then | |
46492 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" | |
46493 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
46494 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config | |
46495 | fi | |
46496 | fi | |
46497 | if test x$cppunit_config_prefix != x ; then | |
46498 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" | |
46499 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
46500 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config | |
46501 | fi | |
46502 | fi | |
46503 | ||
46504 | # Extract the first word of "cppunit-config", so it can be a program name with args. | |
46505 | set dummy cppunit-config; ac_word=$2 | |
46506 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46507 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
46508 | if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then | |
46509 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46510 | else | |
46511 | case $CPPUNIT_CONFIG in | |
46512 | [\\/]* | ?:[\\/]*) | |
46513 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. | |
46514 | ;; | |
46515 | *) | |
46516 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46517 | for as_dir in $PATH | |
46518 | do | |
46519 | IFS=$as_save_IFS | |
46520 | test -z "$as_dir" && as_dir=. | |
46521 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46522 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
46523 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
46524 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
46525 | break 2 | |
46526 | fi | |
46527 | done | |
46528 | done | |
46529 | ||
46530 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" | |
46531 | ;; | |
46532 | esac | |
46533 | fi | |
46534 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG | |
46535 | ||
46536 | if test -n "$CPPUNIT_CONFIG"; then | |
46537 | echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 | |
46538 | echo "${ECHO_T}$CPPUNIT_CONFIG" >&6 | |
46539 | else | |
46540 | echo "$as_me:$LINENO: result: no" >&5 | |
46541 | echo "${ECHO_T}no" >&6 | |
46542 | fi | |
46543 | ||
46544 | cppunit_version_min=1.8.0 | |
46545 | ||
46546 | echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 | |
46547 | echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6 | |
46548 | no_cppunit="" | |
46549 | if test "$CPPUNIT_CONFIG" = "no" ; then | |
46550 | no_cppunit=yes | |
46551 | else | |
46552 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` | |
46553 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` | |
46554 | cppunit_version=`$CPPUNIT_CONFIG --version` | |
46555 | ||
46556 | cppunit_major_version=`echo $cppunit_version | \ | |
46557 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
46558 | cppunit_minor_version=`echo $cppunit_version | \ | |
46559 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
46560 | cppunit_micro_version=`echo $cppunit_version | \ | |
46561 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
46562 | ||
46563 | cppunit_major_min=`echo $cppunit_version_min | \ | |
46564 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
46565 | cppunit_minor_min=`echo $cppunit_version_min | \ | |
46566 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
46567 | cppunit_micro_min=`echo $cppunit_version_min | \ | |
46568 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
46569 | ||
46570 | cppunit_version_proper=`expr \ | |
46571 | $cppunit_major_version \> $cppunit_major_min \| \ | |
46572 | $cppunit_major_version \= $cppunit_major_min \& \ | |
46573 | $cppunit_minor_version \> $cppunit_minor_min \| \ | |
46574 | $cppunit_major_version \= $cppunit_major_min \& \ | |
46575 | $cppunit_minor_version \= $cppunit_minor_min \& \ | |
46576 | $cppunit_micro_version \>= $cppunit_micro_min ` | |
46577 | ||
46578 | if test "$cppunit_version_proper" = "1" ; then | |
46579 | echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 | |
46580 | echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6 | |
46581 | else | |
46582 | echo "$as_me:$LINENO: result: no" >&5 | |
46583 | echo "${ECHO_T}no" >&6 | |
46584 | no_cppunit=yes | |
46585 | fi | |
46586 | fi | |
46587 | ||
46588 | if test "x$no_cppunit" = x ; then | |
c2218763 | 46589 | SUBDIRS="$SUBDIRS tests" |
a848cd7e SC |
46590 | else |
46591 | CPPUNIT_CFLAGS="" | |
46592 | CPPUNIT_LIBS="" | |
c2218763 | 46593 | : |
a848cd7e SC |
46594 | fi |
46595 | ||
46596 | ||
46597 | ||
46598 | ||
46599 | ||
46600 | for subdir in `echo $SUBDIRS`; do | |
46601 | if test -d ${srcdir}/${subdir} ; then | |
46602 | if test "$wxUSE_GUI" = "yes"; then | |
46603 | if test ${subdir} = "samples"; then | |
46604 | makefiles="samples/Makefile.in $makefiles" | |
46605 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
46606 | if test -d $srcdir/samples/$sample; then | |
46607 | makefiles="samples/$sample/Makefile.in $makefiles" | |
46608 | fi | |
46609 | done | |
9c112555 MW |
46610 | else |
46611 | disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`; | |
46612 | eval "disabled=\$$disabled_var" | |
46613 | disabled=/`echo X $disabled | sed 's@ @/|/@g'`/ | |
46614 | makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"` | |
a848cd7e SC |
46615 | fi |
46616 | else if test ${subdir} = "samples"; then | |
46617 | makefiles="samples/Makefile.in samples/console/Makefile.in" | |
46618 | elif test ${subdir} = "utils"; then | |
6537ccf8 VS |
46619 | makefiles="" |
46620 | for util in HelpGen tex2rtf ; do | |
46621 | if test -d $srcdir/utils/$util ; then | |
46622 | makefiles="utils/$util/Makefile.in \ | |
46623 | utils/$util/src/Makefile.in \ | |
46624 | $makefiles" | |
46625 | fi | |
46626 | done | |
a848cd7e SC |
46627 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` |
46628 | fi | |
46629 | fi | |
46630 | ||
46631 | for mkin in $makefiles ; do | |
46632 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
46633 | ac_config_files="$ac_config_files $mk" | |
46634 | ||
46635 | done | |
46636 | fi | |
46637 | done | |
1c14217d | 46638 | fi |
a848cd7e SC |
46639 | cat >confcache <<\_ACEOF |
46640 | # This file is a shell script that caches the results of configure | |
46641 | # tests run on this system so they can be shared between configure | |
46642 | # scripts and configure runs, see configure's option --config-cache. | |
46643 | # It is not useful on other systems. If it contains results you don't | |
46644 | # want to keep, you may remove or edit it. | |
46645 | # | |
46646 | # config.status only pays attention to the cache file if you give it | |
46647 | # the --recheck option to rerun configure. | |
46648 | # | |
46649 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
46650 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
46651 | # following values. | |
46652 | ||
46653 | _ACEOF | |
46654 | ||
46655 | # The following way of writing the cache mishandles newlines in values, | |
46656 | # but we know of no workaround that is simple, portable, and efficient. | |
46657 | # So, don't put newlines in cache variables' values. | |
46658 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
46659 | # and sets the high bit in the cache file unless we assign to the vars. | |
46660 | { | |
46661 | (set) 2>&1 | | |
46662 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
46663 | *ac_space=\ *) | |
46664 | # `set' does not quote correctly, so add quotes (double-quote | |
46665 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
46666 | sed -n \ | |
ac1cb8d3 VS |
46667 | "s/'/'\\\\''/g; |
46668 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
46669 | ;; |
46670 | *) | |
46671 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
46672 | sed -n \ | |
ac1cb8d3 | 46673 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
46674 | ;; |
46675 | esac; | |
46676 | } | | |
46677 | sed ' | |
46678 | t clear | |
46679 | : clear | |
46680 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
46681 | t end | |
46682 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
46683 | : end' >>confcache | |
46684 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
46685 | if test -w $cache_file; then | |
46686 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
46687 | cat confcache >$cache_file | |
46688 | else | |
46689 | echo "not updating unwritable cache $cache_file" | |
46690 | fi | |
46691 | fi | |
46692 | rm -f confcache | |
46693 | ||
46694 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
46695 | # Let make expand exec_prefix. | |
46696 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
46697 | ||
46698 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
46699 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
46700 | # trailing colons and then remove the whole line if VPATH becomes empty | |
46701 | # (actually we leave an empty line to preserve line numbers). | |
46702 | if test "x$srcdir" = x.; then | |
ac1cb8d3 | 46703 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
a848cd7e SC |
46704 | s/:*\$(srcdir):*/:/; |
46705 | s/:*\${srcdir}:*/:/; | |
46706 | s/:*@srcdir@:*/:/; | |
ac1cb8d3 | 46707 | s/^\([^=]*=[ ]*\):*/\1/; |
a848cd7e | 46708 | s/:*$//; |
ac1cb8d3 | 46709 | s/^[^=]*=[ ]*$//; |
a848cd7e SC |
46710 | }' |
46711 | fi | |
46712 | ||
46713 | DEFS=-DHAVE_CONFIG_H | |
46714 | ||
46715 | ac_libobjs= | |
46716 | ac_ltlibobjs= | |
46717 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
46718 | # 1. Remove the extension, and $U if already installed. | |
46719 | ac_i=`echo "$ac_i" | | |
ac1cb8d3 | 46720 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
a848cd7e SC |
46721 | # 2. Add them. |
46722 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
46723 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
46724 | done | |
46725 | LIBOBJS=$ac_libobjs | |
46726 | ||
46727 | LTLIBOBJS=$ac_ltlibobjs | |
46728 | ||
46729 | ||
46730 | ||
46731 | : ${CONFIG_STATUS=./config.status} | |
46732 | ac_clean_files_save=$ac_clean_files | |
46733 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
46734 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
46735 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
46736 | cat >$CONFIG_STATUS <<_ACEOF | |
46737 | #! $SHELL | |
46738 | # Generated by $as_me. | |
46739 | # Run this file to recreate the current configuration. | |
46740 | # Compiler output produced by configure, useful for debugging | |
46741 | # configure, is in config.log if it exists. | |
46742 | ||
46743 | debug=false | |
46744 | ac_cs_recheck=false | |
46745 | ac_cs_silent=false | |
46746 | SHELL=\${CONFIG_SHELL-$SHELL} | |
46747 | _ACEOF | |
46748 | ||
46749 | cat >>$CONFIG_STATUS <<\_ACEOF | |
46750 | ## --------------------- ## | |
46751 | ## M4sh Initialization. ## | |
46752 | ## --------------------- ## | |
46753 | ||
46754 | # Be Bourne compatible | |
46755 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
46756 | emulate sh | |
46757 | NULLCMD=: | |
46758 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
46759 | # is contrary to our usage. Disable this feature. | |
46760 | alias -g '${1+"$@"}'='"$@"' | |
46761 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
46762 | set -o posix | |
46763 | fi | |
ac1cb8d3 | 46764 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
46765 | |
46766 | # Support unset when possible. | |
ac1cb8d3 | 46767 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
46768 | as_unset=unset |
46769 | else | |
46770 | as_unset=false | |
46771 | fi | |
46772 | ||
46773 | ||
46774 | # Work around bugs in pre-3.0 UWIN ksh. | |
46775 | $as_unset ENV MAIL MAILPATH | |
46776 | PS1='$ ' | |
46777 | PS2='> ' | |
46778 | PS4='+ ' | |
46779 | ||
46780 | # NLS nuisances. | |
46781 | for as_var in \ | |
46782 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
46783 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
46784 | LC_TELEPHONE LC_TIME | |
46785 | do | |
ac1cb8d3 | 46786 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
46787 | eval $as_var=C; export $as_var |
46788 | else | |
46789 | $as_unset $as_var | |
46790 | fi | |
46791 | done | |
46792 | ||
46793 | # Required to use basename. | |
46794 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
46795 | as_expr=expr | |
46796 | else | |
46797 | as_expr=false | |
46798 | fi | |
46799 | ||
46800 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
46801 | as_basename=basename | |
46802 | else | |
46803 | as_basename=false | |
46804 | fi | |
46805 | ||
46806 | ||
46807 | # Name of the executable. | |
46808 | as_me=`$as_basename "$0" || | |
46809 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
46810 | X"$0" : 'X\(//\)$' \| \ | |
46811 | X"$0" : 'X\(/\)$' \| \ | |
46812 | . : '\(.\)' 2>/dev/null || | |
46813 | echo X/"$0" | | |
46814 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
46815 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
46816 | /^X\/\(\/\).*/{ s//\1/; q; } | |
46817 | s/.*/./; q'` | |
46818 | ||
46819 | ||
46820 | # PATH needs CR, and LINENO needs CR and PATH. | |
46821 | # Avoid depending upon Character Ranges. | |
46822 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
46823 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
46824 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
46825 | as_cr_digits='0123456789' | |
46826 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
46827 | ||
46828 | # The user is always right. | |
46829 | if test "${PATH_SEPARATOR+set}" != set; then | |
46830 | echo "#! /bin/sh" >conf$$.sh | |
46831 | echo "exit 0" >>conf$$.sh | |
46832 | chmod +x conf$$.sh | |
46833 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
46834 | PATH_SEPARATOR=';' | |
46835 | else | |
46836 | PATH_SEPARATOR=: | |
46837 | fi | |
46838 | rm -f conf$$.sh | |
46839 | fi | |
46840 | ||
46841 | ||
46842 | as_lineno_1=$LINENO | |
46843 | as_lineno_2=$LINENO | |
46844 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
46845 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
46846 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
46847 | # Find who we are. Look in the path if we contain no path at all | |
46848 | # relative or not. | |
46849 | case $0 in | |
46850 | *[\\/]* ) as_myself=$0 ;; | |
46851 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46852 | for as_dir in $PATH | |
46853 | do | |
46854 | IFS=$as_save_IFS | |
46855 | test -z "$as_dir" && as_dir=. | |
46856 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
46857 | done | |
46858 | ||
46859 | ;; | |
46860 | esac | |
46861 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
46862 | # in which case we are not to be found in the path. | |
46863 | if test "x$as_myself" = x; then | |
46864 | as_myself=$0 | |
46865 | fi | |
46866 | if test ! -f "$as_myself"; then | |
46867 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
46868 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
46869 | { (exit 1); exit 1; }; } | |
46870 | fi | |
46871 | case $CONFIG_SHELL in | |
46872 | '') | |
46873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46874 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
46875 | do | |
46876 | IFS=$as_save_IFS | |
46877 | test -z "$as_dir" && as_dir=. | |
46878 | for as_base in sh bash ksh sh5; do | |
46879 | case $as_dir in | |
46880 | /*) | |
46881 | if ("$as_dir/$as_base" -c ' | |
46882 | as_lineno_1=$LINENO | |
46883 | as_lineno_2=$LINENO | |
46884 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
46885 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
46886 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
46887 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
46888 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
46889 | CONFIG_SHELL=$as_dir/$as_base | |
46890 | export CONFIG_SHELL | |
46891 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
46892 | fi;; | |
46893 | esac | |
46894 | done | |
46895 | done | |
46896 | ;; | |
46897 | esac | |
46898 | ||
46899 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
46900 | # uniformly replaced by the line number. The first 'sed' inserts a | |
46901 | # line-number line before each line; the second 'sed' does the real | |
46902 | # work. The second script uses 'N' to pair each line-number line | |
46903 | # with the numbered line, and appends trailing '-' during | |
46904 | # substitution so that $LINENO is not a special case at line end. | |
46905 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
46906 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
46907 | sed '=' <$as_myself | | |
46908 | sed ' | |
46909 | N | |
46910 | s,$,-, | |
46911 | : loop | |
46912 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
46913 | t loop | |
46914 | s,-$,, | |
46915 | s,^['$as_cr_digits']*\n,, | |
46916 | ' >$as_me.lineno && | |
46917 | chmod +x $as_me.lineno || | |
46918 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
46919 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
46920 | { (exit 1); exit 1; }; } | |
46921 | ||
46922 | # Don't try to exec as it changes $[0], causing all sort of problems | |
46923 | # (the dirname of $[0] is not the place where we might find the | |
46924 | # original and so on. Autoconf is especially sensible to this). | |
46925 | . ./$as_me.lineno | |
46926 | # Exit status is that of the last command. | |
46927 | exit | |
46928 | } | |
46929 | ||
46930 | ||
46931 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
46932 | *c*,-n*) ECHO_N= ECHO_C=' | |
46933 | ' ECHO_T=' ' ;; | |
46934 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
46935 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
46936 | esac | |
46937 | ||
46938 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
46939 | as_expr=expr | |
46940 | else | |
46941 | as_expr=false | |
46942 | fi | |
46943 | ||
46944 | rm -f conf$$ conf$$.exe conf$$.file | |
46945 | echo >conf$$.file | |
46946 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
46947 | # We could just check for DJGPP; but this test a) works b) is more generic | |
46948 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
46949 | if test -f conf$$.exe; then | |
46950 | # Don't use ln at all; we don't have any links | |
46951 | as_ln_s='cp -p' | |
46952 | else | |
46953 | as_ln_s='ln -s' | |
46954 | fi | |
46955 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
46956 | as_ln_s=ln | |
46957 | else | |
46958 | as_ln_s='cp -p' | |
46959 | fi | |
46960 | rm -f conf$$ conf$$.exe conf$$.file | |
46961 | ||
46962 | if mkdir -p . 2>/dev/null; then | |
46963 | as_mkdir_p=: | |
46964 | else | |
ac1cb8d3 | 46965 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
46966 | as_mkdir_p=false |
46967 | fi | |
46968 | ||
46969 | as_executable_p="test -f" | |
46970 | ||
46971 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 46972 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
46973 | |
46974 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 46975 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
46976 | |
46977 | ||
46978 | # IFS | |
46979 | # We need space, tab and new line, in precisely that order. | |
46980 | as_nl=' | |
46981 | ' | |
46982 | IFS=" $as_nl" | |
46983 | ||
46984 | # CDPATH. | |
46985 | $as_unset CDPATH | |
46986 | ||
46987 | exec 6>&1 | |
46988 | ||
46989 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
46990 | # report actual input values of CONFIG_FILES etc. instead of their | |
46991 | # values after options handling. Logging --version etc. is OK. | |
46992 | exec 5>>config.log | |
46993 | { | |
46994 | echo | |
46995 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
46996 | ## Running $as_me. ## | |
46997 | _ASBOX | |
46998 | } >&5 | |
46999 | cat >&5 <<_CSEOF | |
47000 | ||
dd8df4fc | 47001 | This file was extended by wxWidgets $as_me 2.7.0, which was |
ac1cb8d3 | 47002 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
47003 | |
47004 | CONFIG_FILES = $CONFIG_FILES | |
47005 | CONFIG_HEADERS = $CONFIG_HEADERS | |
47006 | CONFIG_LINKS = $CONFIG_LINKS | |
47007 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
47008 | $ $0 $@ | |
47009 | ||
47010 | _CSEOF | |
47011 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
47012 | echo >&5 | |
47013 | _ACEOF | |
47014 | ||
47015 | # Files that config.status was made for. | |
47016 | if test -n "$ac_config_files"; then | |
47017 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
47018 | fi | |
47019 | ||
47020 | if test -n "$ac_config_headers"; then | |
47021 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
47022 | fi | |
47023 | ||
47024 | if test -n "$ac_config_links"; then | |
47025 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
47026 | fi | |
47027 | ||
47028 | if test -n "$ac_config_commands"; then | |
47029 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
47030 | fi | |
47031 | ||
47032 | cat >>$CONFIG_STATUS <<\_ACEOF | |
47033 | ||
47034 | ac_cs_usage="\ | |
47035 | \`$as_me' instantiates files from templates according to the | |
47036 | current configuration. | |
47037 | ||
47038 | Usage: $0 [OPTIONS] [FILE]... | |
47039 | ||
47040 | -h, --help print this help, then exit | |
47041 | -V, --version print version number, then exit | |
47042 | -q, --quiet do not print progress messages | |
47043 | -d, --debug don't remove temporary files | |
47044 | --recheck update $as_me by reconfiguring in the same conditions | |
47045 | --file=FILE[:TEMPLATE] | |
ac1cb8d3 | 47046 | instantiate the configuration file FILE |
a848cd7e | 47047 | --header=FILE[:TEMPLATE] |
ac1cb8d3 | 47048 | instantiate the configuration header FILE |
a848cd7e SC |
47049 | |
47050 | Configuration files: | |
47051 | $config_files | |
47052 | ||
47053 | Configuration headers: | |
47054 | $config_headers | |
47055 | ||
47056 | Configuration commands: | |
47057 | $config_commands | |
47058 | ||
47059 | Report bugs to <bug-autoconf@gnu.org>." | |
47060 | _ACEOF | |
47061 | ||
47062 | cat >>$CONFIG_STATUS <<_ACEOF | |
47063 | ac_cs_version="\\ | |
dd8df4fc | 47064 | wxWidgets config.status 2.7.0 |
ac1cb8d3 | 47065 | configured by $0, generated by GNU Autoconf 2.59, |
a848cd7e SC |
47066 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
47067 | ||
ac1cb8d3 | 47068 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
47069 | This config.status script is free software; the Free Software Foundation |
47070 | gives unlimited permission to copy, distribute and modify it." | |
47071 | srcdir=$srcdir | |
47072 | INSTALL="$INSTALL" | |
47073 | _ACEOF | |
47074 | ||
47075 | cat >>$CONFIG_STATUS <<\_ACEOF | |
47076 | # If no file are specified by the user, then we need to provide default | |
47077 | # value. By we need to know if files were specified by the user. | |
47078 | ac_need_defaults=: | |
47079 | while test $# != 0 | |
47080 | do | |
47081 | case $1 in | |
47082 | --*=*) | |
47083 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
47084 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
47085 | ac_shift=: | |
47086 | ;; | |
47087 | -*) | |
47088 | ac_option=$1 | |
47089 | ac_optarg=$2 | |
47090 | ac_shift=shift | |
47091 | ;; | |
47092 | *) # This is not an option, so the user has probably given explicit | |
47093 | # arguments. | |
47094 | ac_option=$1 | |
47095 | ac_need_defaults=false;; | |
47096 | esac | |
47097 | ||
47098 | case $ac_option in | |
47099 | # Handling of the options. | |
47100 | _ACEOF | |
47101 | cat >>$CONFIG_STATUS <<\_ACEOF | |
47102 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
47103 | ac_cs_recheck=: ;; | |
47104 | --version | --vers* | -V ) | |
47105 | echo "$ac_cs_version"; exit 0 ;; | |
47106 | --he | --h) | |
47107 | # Conflict between --help and --header | |
47108 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
47109 | Try \`$0 --help' for more information." >&5 | |
47110 | echo "$as_me: error: ambiguous option: $1 | |
47111 | Try \`$0 --help' for more information." >&2;} | |
47112 | { (exit 1); exit 1; }; };; | |
47113 | --help | --hel | -h ) | |
47114 | echo "$ac_cs_usage"; exit 0 ;; | |
47115 | --debug | --d* | -d ) | |
47116 | debug=: ;; | |
47117 | --file | --fil | --fi | --f ) | |
47118 | $ac_shift | |
47119 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
47120 | ac_need_defaults=false;; | |
47121 | --header | --heade | --head | --hea ) | |
47122 | $ac_shift | |
47123 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
47124 | ac_need_defaults=false;; | |
47125 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
47126 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
47127 | ac_cs_silent=: ;; | |
47128 | ||
47129 | # This is an error. | |
47130 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
47131 | Try \`$0 --help' for more information." >&5 | |
47132 | echo "$as_me: error: unrecognized option: $1 | |
47133 | Try \`$0 --help' for more information." >&2;} | |
47134 | { (exit 1); exit 1; }; } ;; | |
47135 | ||
47136 | *) ac_config_targets="$ac_config_targets $1" ;; | |
47137 | ||
47138 | esac | |
47139 | shift | |
47140 | done | |
47141 | ||
47142 | ac_configure_extra_args= | |
47143 | ||
47144 | if $ac_cs_silent; then | |
47145 | exec 6>/dev/null | |
47146 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
47147 | fi | |
47148 | ||
47149 | _ACEOF | |
47150 | cat >>$CONFIG_STATUS <<_ACEOF | |
47151 | if \$ac_cs_recheck; then | |
47152 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
47153 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
47154 | fi | |
47155 | ||
47156 | _ACEOF | |
47157 | ||
47158 | cat >>$CONFIG_STATUS <<_ACEOF | |
47159 | # | |
47160 | # INIT-COMMANDS section. | |
47161 | # | |
47162 | ||
ceec2216 RL |
47163 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" |
47164 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
47165 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
47166 | LN_S="${LN_S}" | |
a848cd7e SC |
47167 | |
47168 | ||
47169 | _ACEOF | |
47170 | ||
47171 | ||
47172 | ||
47173 | cat >>$CONFIG_STATUS <<\_ACEOF | |
47174 | for ac_config_target in $ac_config_targets | |
47175 | do | |
47176 | case "$ac_config_target" in | |
47177 | # Handling of arguments. | |
ceec2216 RL |
47178 | "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;; |
47179 | "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;; | |
a848cd7e SC |
47180 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; |
47181 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
47182 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; | |
ceec2216 RL |
47183 | "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;; |
47184 | "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 |
47185 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
47186 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
47187 | { (exit 1); exit 1; }; };; | |
47188 | esac | |
47189 | done | |
47190 | ||
47191 | # If the user did not use the arguments to specify the items to instantiate, | |
47192 | # then the envvar interface is used. Set only those that are not. | |
47193 | # We use the long form for the default assignment because of an extremely | |
47194 | # bizarre bug on SunOS 4.1.3. | |
47195 | if $ac_need_defaults; then | |
47196 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
47197 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
47198 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
47199 | fi | |
47200 | ||
47201 | # Have a temporary directory for convenience. Make it in the build tree | |
47202 | # simply because there is no reason to put it here, and in addition, | |
47203 | # creating and moving files from /tmp can sometimes cause problems. | |
47204 | # Create a temporary directory, and hook for its removal unless debugging. | |
47205 | $debug || | |
47206 | { | |
47207 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
47208 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
47209 | } | |
47210 | ||
47211 | # Create a (secure) tmp directory for tmp files. | |
47212 | ||
47213 | { | |
47214 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
47215 | test -n "$tmp" && test -d "$tmp" | |
47216 | } || | |
47217 | { | |
47218 | tmp=./confstat$$-$RANDOM | |
47219 | (umask 077 && mkdir $tmp) | |
47220 | } || | |
47221 | { | |
47222 | echo "$me: cannot create a temporary directory in ." >&2 | |
47223 | { (exit 1); exit 1; } | |
47224 | } | |
47225 | ||
47226 | _ACEOF | |
47227 | ||
47228 | cat >>$CONFIG_STATUS <<_ACEOF | |
47229 | ||
47230 | # | |
47231 | # CONFIG_FILES section. | |
47232 | # | |
47233 | ||
47234 | # No need to generate the scripts if there are no CONFIG_FILES. | |
47235 | # This happens for instance when ./config.status config.h | |
47236 | if test -n "\$CONFIG_FILES"; then | |
47237 | # Protect against being on the right side of a sed subst in config.status. | |
47238 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
47239 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
47240 | s,@SHELL@,$SHELL,;t t | |
47241 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
47242 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
47243 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
47244 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
47245 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
47246 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
47247 | s,@exec_prefix@,$exec_prefix,;t t | |
47248 | s,@prefix@,$prefix,;t t | |
47249 | s,@program_transform_name@,$program_transform_name,;t t | |
47250 | s,@bindir@,$bindir,;t t | |
47251 | s,@sbindir@,$sbindir,;t t | |
47252 | s,@libexecdir@,$libexecdir,;t t | |
47253 | s,@datadir@,$datadir,;t t | |
47254 | s,@sysconfdir@,$sysconfdir,;t t | |
47255 | s,@sharedstatedir@,$sharedstatedir,;t t | |
47256 | s,@localstatedir@,$localstatedir,;t t | |
47257 | s,@libdir@,$libdir,;t t | |
47258 | s,@includedir@,$includedir,;t t | |
47259 | s,@oldincludedir@,$oldincludedir,;t t | |
47260 | s,@infodir@,$infodir,;t t | |
47261 | s,@mandir@,$mandir,;t t | |
47262 | s,@build_alias@,$build_alias,;t t | |
47263 | s,@host_alias@,$host_alias,;t t | |
47264 | s,@target_alias@,$target_alias,;t t | |
47265 | s,@DEFS@,$DEFS,;t t | |
47266 | s,@ECHO_C@,$ECHO_C,;t t | |
47267 | s,@ECHO_N@,$ECHO_N,;t t | |
47268 | s,@ECHO_T@,$ECHO_T,;t t | |
47269 | s,@LIBS@,$LIBS,;t t | |
47270 | s,@build@,$build,;t t | |
47271 | s,@build_cpu@,$build_cpu,;t t | |
47272 | s,@build_vendor@,$build_vendor,;t t | |
47273 | s,@build_os@,$build_os,;t t | |
47274 | s,@host@,$host,;t t | |
47275 | s,@host_cpu@,$host_cpu,;t t | |
47276 | s,@host_vendor@,$host_vendor,;t t | |
47277 | s,@host_os@,$host_os,;t t | |
47278 | s,@target@,$target,;t t | |
47279 | s,@target_cpu@,$target_cpu,;t t | |
47280 | s,@target_vendor@,$target_vendor,;t t | |
47281 | s,@target_os@,$target_os,;t t | |
47282 | s,@CC@,$CC,;t t | |
47283 | s,@CFLAGS@,$CFLAGS,;t t | |
47284 | s,@LDFLAGS@,$LDFLAGS,;t t | |
47285 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
47286 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
47287 | s,@EXEEXT@,$EXEEXT,;t t | |
47288 | s,@OBJEXT@,$OBJEXT,;t t | |
47289 | s,@CPP@,$CPP,;t t | |
47290 | s,@EGREP@,$EGREP,;t t | |
47291 | s,@CXX@,$CXX,;t t | |
47292 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
47293 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
47294 | s,@RANLIB@,$RANLIB,;t t | |
47295 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
47296 | s,@AR@,$AR,;t t | |
8c80d384 | 47297 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
a848cd7e SC |
47298 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
47299 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
47300 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
47301 | s,@STRIP@,$STRIP,;t t | |
8c80d384 DE |
47302 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
47303 | s,@RESCOMP@,$RESCOMP,;t t | |
47304 | s,@ac_ct_RESCOMP@,$ac_ct_RESCOMP,;t t | |
47305 | s,@DLLTOOL@,$DLLTOOL,;t t | |
47306 | s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t | |
a848cd7e SC |
47307 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t |
47308 | s,@LN_S@,$LN_S,;t t | |
bcaab0f9 MW |
47309 | s,@LNDIR@,$LNDIR,;t t |
47310 | s,@CP_PR@,$CP_PR,;t t | |
a848cd7e SC |
47311 | s,@CXXCPP@,$CXXCPP,;t t |
47312 | s,@subdirs@,$subdirs,;t t | |
47313 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
47314 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
47315 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
47316 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
a848cd7e SC |
47317 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
47318 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
47319 | s,@X_LIBS@,$X_LIBS,;t t | |
47320 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
47321 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
47322 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
d1c38808 VZ |
47323 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t |
47324 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
a848cd7e SC |
47325 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t |
47326 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
a848cd7e SC |
47327 | s,@DEREZ@,$DEREZ,;t t |
47328 | s,@SETFILE@,$SETFILE,;t t | |
47329 | s,@LIBICONV@,$LIBICONV,;t t | |
47330 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t | |
47331 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t | |
47332 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t | |
47333 | s,@SDL_LIBS@,$SDL_LIBS,;t t | |
d1c38808 VZ |
47334 | s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t |
47335 | s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t | |
dae87f93 RN |
47336 | s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t |
47337 | s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t | |
47338 | s,@GST_INSPECT@,$GST_INSPECT,;t t | |
a848cd7e SC |
47339 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t |
47340 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
47341 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t | |
47342 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
47343 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t | |
47344 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t | |
47345 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
47346 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
47347 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
47348 | s,@VENDOR@,$VENDOR,;t t | |
47349 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
ceec2216 RL |
47350 | s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t |
47351 | s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t | |
a848cd7e SC |
47352 | s,@WXUNIV@,$WXUNIV,;t t |
47353 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
47354 | s,@USE_PLUGINS@,$USE_PLUGINS,;t t | |
47355 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
47356 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t | |
47357 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t | |
47358 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t | |
47359 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t | |
47360 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t | |
47361 | s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t | |
47362 | s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t | |
d1c38808 | 47363 | s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t |
a848cd7e SC |
47364 | s,@UNICODE@,$UNICODE,;t t |
47365 | s,@BUILD@,$BUILD,;t t | |
47366 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t | |
47367 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
a848cd7e SC |
47368 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t |
47369 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
47370 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
47371 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t | |
47372 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t | |
47373 | s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t | |
47374 | s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t | |
47375 | s,@SET_MAKE@,$SET_MAKE,;t t | |
47376 | s,@MAKE_SET@,$MAKE_SET,;t t | |
a848cd7e SC |
47377 | s,@NM@,$NM,;t t |
47378 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
47379 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
47380 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t | |
47381 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t | |
47382 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
47383 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
47384 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
1e9e8aba | 47385 | s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t |
a848cd7e SC |
47386 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t |
47387 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t | |
1e9e8aba | 47388 | s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t |
a848cd7e SC |
47389 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t |
47390 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t | |
47391 | s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t | |
47392 | s,@LIBPREFIX@,$LIBPREFIX,;t t | |
47393 | s,@LIBEXT@,$LIBEXT,;t t | |
47394 | s,@DLLPREFIX@,$DLLPREFIX,;t t | |
47395 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t | |
810b94f0 | 47396 | s,@dlldir@,$dlldir,;t t |
a848cd7e SC |
47397 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t |
47398 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t | |
47399 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
47400 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t | |
47401 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
47402 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
810b94f0 | 47403 | s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t |
a848cd7e SC |
47404 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t |
47405 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
47406 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
810b94f0 | 47407 | s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t |
a848cd7e SC |
47408 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t |
47409 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
47410 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
47411 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t | |
47412 | s,@GCC_PCH@,$GCC_PCH,;t t | |
47413 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t | |
47414 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t | |
47415 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
47416 | s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t | |
47417 | s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t | |
47418 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t | |
47419 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t | |
47420 | s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t | |
47421 | s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t | |
47422 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
47423 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
47424 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
47425 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t | |
47426 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t | |
47427 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t | |
47428 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t | |
47429 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t | |
47430 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
90970d69 | 47431 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1,;t t |
a848cd7e | 47432 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t |
6671c68b | 47433 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1,;t t |
a848cd7e | 47434 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t |
ceec2216 | 47435 | s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
47436 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
47437 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t | |
90970d69 | 47438 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1,;t t |
a848cd7e | 47439 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t |
6671c68b | 47440 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1,;t t |
a848cd7e | 47441 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t |
ceec2216 | 47442 | s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t |
a848cd7e SC |
47443 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t |
47444 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t | |
47445 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t | |
47446 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
47447 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t | |
47448 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
eb730a0c | 47449 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t |
a848cd7e SC |
47450 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t |
47451 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t | |
a30f955f | 47452 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t |
a848cd7e SC |
47453 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t |
47454 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
47455 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
fc480dc1 | 47456 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t |
1e9e8aba | 47457 | 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 |
47458 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t |
47459 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t | |
a848cd7e SC |
47460 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t |
47461 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t | |
b48a2016 | 47462 | s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t |
083508af | 47463 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
83d8eb47 | 47464 | s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t |
a848cd7e SC |
47465 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t |
47466 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t | |
47467 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t | |
47468 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t | |
47469 | s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t | |
47470 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
47471 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
47472 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t | |
083508af MW |
47473 | s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t |
47474 | s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t | |
47475 | s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t | |
a848cd7e SC |
47476 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
47477 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
47478 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
47479 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
083508af | 47480 | s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
47481 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t |
47482 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
47483 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
47484 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
47485 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
47486 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t | |
083508af | 47487 | s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t |
a30f955f | 47488 | s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t |
a848cd7e | 47489 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
a49baeab | 47490 | s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t |
a848cd7e SC |
47491 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t |
47492 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
47493 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t | |
47494 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t | |
47495 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t | |
47496 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t | |
47497 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t | |
47498 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
47499 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
47500 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t | |
47501 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
47502 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
47503 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t | |
47504 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t | |
47505 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
0ee4059d | 47506 | s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t |
a848cd7e SC |
47507 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t |
47508 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
47509 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
3fd9c298 DE |
47510 | s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t |
47511 | s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t | |
47512 | s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t | |
0ee4059d | 47513 | s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t |
a848cd7e SC |
47514 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
47515 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
47516 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t | |
47517 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t | |
47518 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
47519 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
47520 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
47521 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t | |
47522 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
47523 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
47524 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
47525 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
083508af MW |
47526 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t |
47527 | s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t | |
a848cd7e | 47528 | s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t |
0b78747f MW |
47529 | s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t |
47530 | s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t | |
a848cd7e | 47531 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t |
eb730a0c | 47532 | s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t |
a848cd7e SC |
47533 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t |
47534 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
47535 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
0b78747f MW |
47536 | s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t |
47537 | s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t | |
a13a7f89 | 47538 | s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t |
eb730a0c | 47539 | s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t |
a848cd7e | 47540 | s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t |
1e6eb025 | 47541 | s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t |
a848cd7e SC |
47542 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
47543 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t | |
47544 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t | |
47545 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
47546 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
47547 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
47548 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
47549 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
ceec2216 | 47550 | s,@SHARED@,$SHARED,;t t |
a848cd7e SC |
47551 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
47552 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
a848cd7e SC |
47553 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t |
47554 | s,@USE_GUI@,$USE_GUI,;t t | |
47555 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
47556 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
47557 | s,@TOOLKIT@,$TOOLKIT,;t t | |
47558 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
a848cd7e | 47559 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t |
ceec2216 | 47560 | s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t |
a848cd7e SC |
47561 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t |
47562 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
a848cd7e | 47563 | s,@cross_compiling@,$cross_compiling,;t t |
ceec2216 RL |
47564 | s,@WIDGET_SET@,$WIDGET_SET,;t t |
47565 | s,@WX_RELEASE@,$WX_RELEASE,;t t | |
47566 | s,@WX_VERSION@,$WX_VERSION,;t t | |
47567 | s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t | |
47568 | s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t | |
47569 | s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t | |
a848cd7e | 47570 | s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t |
a848cd7e SC |
47571 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t |
47572 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
47573 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t | |
47574 | s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t | |
ddd14b14 | 47575 | s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t |
a848cd7e SC |
47576 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t |
47577 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
ceec2216 | 47578 | s,@EXE_LINKER@,$EXE_LINKER,;t t |
a848cd7e | 47579 | s,@GUIDIST@,$GUIDIST,;t t |
a848cd7e SC |
47580 | s,@DISTDIR@,$DISTDIR,;t t |
47581 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
47582 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
a848cd7e SC |
47583 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t |
47584 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
47585 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
47586 | s,@RESFLAGS@,$RESFLAGS,;t t | |
47587 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
47588 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
47589 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
47590 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
47591 | s,@MACRESCOMP@,$MACRESCOMP,;t t | |
47592 | s,@MACSETFILE@,$MACSETFILE,;t t | |
47593 | s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t | |
47594 | s,@GCC@,$GCC,;t t | |
a848cd7e SC |
47595 | s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t |
47596 | s,@LIBOBJS@,$LIBOBJS,;t t | |
47597 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
47598 | CEOF | |
47599 | ||
47600 | _ACEOF | |
47601 | ||
47602 | cat >>$CONFIG_STATUS <<\_ACEOF | |
47603 | # Split the substitutions into bite-sized pieces for seds with | |
47604 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
47605 | ac_max_sed_lines=48 | |
47606 | ac_sed_frag=1 # Number of current file. | |
47607 | ac_beg=1 # First line for current file. | |
47608 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
47609 | ac_more_lines=: | |
47610 | ac_sed_cmds= | |
47611 | while $ac_more_lines; do | |
47612 | if test $ac_beg -gt 1; then | |
47613 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
47614 | else | |
47615 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
47616 | fi | |
47617 | if test ! -s $tmp/subs.frag; then | |
47618 | ac_more_lines=false | |
47619 | else | |
47620 | # The purpose of the label and of the branching condition is to | |
47621 | # speed up the sed processing (if there are no `@' at all, there | |
47622 | # is no need to browse any of the substitutions). | |
47623 | # These are the two extra sed commands mentioned above. | |
47624 | (echo ':t | |
47625 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
47626 | if test -z "$ac_sed_cmds"; then | |
ac1cb8d3 | 47627 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e | 47628 | else |
ac1cb8d3 | 47629 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e SC |
47630 | fi |
47631 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
47632 | ac_beg=$ac_end | |
47633 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
47634 | fi | |
47635 | done | |
47636 | if test -z "$ac_sed_cmds"; then | |
47637 | ac_sed_cmds=cat | |
47638 | fi | |
47639 | fi # test -n "$CONFIG_FILES" | |
47640 | ||
47641 | _ACEOF | |
47642 | cat >>$CONFIG_STATUS <<\_ACEOF | |
47643 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
47644 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
47645 | case $ac_file in | |
47646 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
47647 | cat >$tmp/stdin |
47648 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
47649 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 47650 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 47651 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
47652 | * ) ac_file_in=$ac_file.in ;; |
47653 | esac | |
47654 | ||
47655 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
47656 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
47657 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
47658 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
47659 | X"$ac_file" : 'X\(//\)$' \| \ | |
47660 | X"$ac_file" : 'X\(/\)' \| \ | |
47661 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
47662 | echo X"$ac_file" | |
47663 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
47664 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
47665 | /^X\(\/\/\)$/{ s//\1/; q; } | |
47666 | /^X\(\/\).*/{ s//\1/; q; } | |
47667 | s/.*/./; q'` | |
47668 | { if $as_mkdir_p; then | |
47669 | mkdir -p "$ac_dir" | |
47670 | else | |
47671 | as_dir="$ac_dir" | |
47672 | as_dirs= | |
47673 | while test ! -d "$as_dir"; do | |
47674 | as_dirs="$as_dir $as_dirs" | |
47675 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
47676 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
47677 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
47678 | X"$as_dir" : 'X\(//\)$' \| \ | |
47679 | X"$as_dir" : 'X\(/\)' \| \ | |
47680 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
47681 | echo X"$as_dir" | |
47682 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
47683 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
47684 | /^X\(\/\/\)$/{ s//\1/; q; } | |
47685 | /^X\(\/\).*/{ s//\1/; q; } | |
47686 | s/.*/./; q'` | |
47687 | done | |
47688 | test ! -n "$as_dirs" || mkdir $as_dirs | |
47689 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
47690 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
47691 | { (exit 1); exit 1; }; }; } | |
47692 | ||
47693 | ac_builddir=. | |
47694 | ||
47695 | if test "$ac_dir" != .; then | |
47696 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
47697 | # A "../" for each directory in $ac_dir_suffix. | |
47698 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
47699 | else | |
47700 | ac_dir_suffix= ac_top_builddir= | |
47701 | fi | |
47702 | ||
47703 | case $srcdir in | |
47704 | .) # No --srcdir option. We are building in place. | |
47705 | ac_srcdir=. | |
47706 | if test -z "$ac_top_builddir"; then | |
47707 | ac_top_srcdir=. | |
47708 | else | |
47709 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
47710 | fi ;; | |
47711 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
47712 | ac_srcdir=$srcdir$ac_dir_suffix; | |
47713 | ac_top_srcdir=$srcdir ;; | |
47714 | *) # Relative path. | |
47715 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
47716 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
47717 | esac | |
ac1cb8d3 VS |
47718 | |
47719 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
47720 | # the directories may not exist. | |
47721 | case `pwd` in | |
47722 | .) ac_abs_builddir="$ac_dir";; | |
47723 | *) | |
47724 | case "$ac_dir" in | |
47725 | .) ac_abs_builddir=`pwd`;; | |
47726 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
47727 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
47728 | esac;; | |
47729 | esac | |
47730 | case $ac_abs_builddir in | |
47731 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
47732 | *) | |
47733 | case ${ac_top_builddir}. in | |
47734 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
47735 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
47736 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
47737 | esac;; | |
47738 | esac | |
47739 | case $ac_abs_builddir in | |
47740 | .) ac_abs_srcdir=$ac_srcdir;; | |
47741 | *) | |
47742 | case $ac_srcdir in | |
47743 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
47744 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
47745 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
47746 | esac;; | |
47747 | esac | |
47748 | case $ac_abs_builddir in | |
47749 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
47750 | *) | |
47751 | case $ac_top_srcdir in | |
47752 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
47753 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
47754 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
47755 | esac;; | |
47756 | esac | |
a848cd7e SC |
47757 | |
47758 | ||
47759 | case $INSTALL in | |
47760 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
47761 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
47762 | esac | |
47763 | ||
a848cd7e SC |
47764 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
47765 | # use $as_me), people would be surprised to read: | |
47766 | # /* config.h. Generated by config.status. */ | |
47767 | if test x"$ac_file" = x-; then | |
47768 | configure_input= | |
47769 | else | |
47770 | configure_input="$ac_file. " | |
47771 | fi | |
47772 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
ac1cb8d3 | 47773 | sed 's,.*/,,'` by configure." |
a848cd7e SC |
47774 | |
47775 | # First look for the input files in the build tree, otherwise in the | |
47776 | # src tree. | |
47777 | ac_file_inputs=`IFS=: | |
47778 | for f in $ac_file_in; do | |
47779 | case $f in | |
47780 | -) echo $tmp/stdin ;; | |
47781 | [\\/$]*) | |
ac1cb8d3 VS |
47782 | # Absolute (can't be DOS-style, as IFS=:) |
47783 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
47784 | echo "$as_me: error: cannot find input file: $f" >&2;} |
47785 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 47786 | echo "$f";; |
a848cd7e | 47787 | *) # Relative |
ac1cb8d3 VS |
47788 | if test -f "$f"; then |
47789 | # Build tree | |
47790 | echo "$f" | |
47791 | elif test -f "$srcdir/$f"; then | |
47792 | # Source tree | |
47793 | echo "$srcdir/$f" | |
47794 | else | |
47795 | # /dev/null tree | |
47796 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
47797 | echo "$as_me: error: cannot find input file: $f" >&2;} |
47798 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 47799 | fi;; |
a848cd7e SC |
47800 | esac |
47801 | done` || { (exit 1); exit 1; } | |
0093c2fc VZ |
47802 | |
47803 | if test x"$ac_file" != x-; then | |
47804 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
47805 | echo "$as_me: creating $ac_file" >&6;} | |
47806 | rm -f "$ac_file" | |
47807 | fi | |
a848cd7e SC |
47808 | _ACEOF |
47809 | cat >>$CONFIG_STATUS <<_ACEOF | |
47810 | sed "$ac_vpsub | |
47811 | $extrasub | |
47812 | _ACEOF | |
47813 | cat >>$CONFIG_STATUS <<\_ACEOF | |
47814 | :t | |
47815 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
47816 | s,@configure_input@,$configure_input,;t t | |
47817 | s,@srcdir@,$ac_srcdir,;t t | |
47818 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
47819 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
47820 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
47821 | s,@builddir@,$ac_builddir,;t t | |
47822 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
47823 | s,@top_builddir@,$ac_top_builddir,;t t | |
47824 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
47825 | s,@INSTALL@,$ac_INSTALL,;t t | |
47826 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
47827 | rm -f $tmp/stdin | |
47828 | if test x"$ac_file" != x-; then | |
47829 | mv $tmp/out $ac_file | |
47830 | else | |
47831 | cat $tmp/out | |
47832 | rm -f $tmp/out | |
47833 | fi | |
47834 | ||
ceec2216 RL |
47835 | # Run the commands associated with the file. |
47836 | case $ac_file in | |
47837 | lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;; | |
47838 | lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;; | |
47839 | esac | |
a848cd7e SC |
47840 | done |
47841 | _ACEOF | |
47842 | cat >>$CONFIG_STATUS <<\_ACEOF | |
47843 | ||
47844 | # | |
47845 | # CONFIG_HEADER section. | |
47846 | # | |
47847 | ||
47848 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
47849 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
47850 | # | |
47851 | # ac_d sets the value in "#define NAME VALUE" lines. | |
ac1cb8d3 VS |
47852 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
47853 | ac_dB='[ ].*$,\1#\2' | |
a848cd7e SC |
47854 | ac_dC=' ' |
47855 | ac_dD=',;t' | |
47856 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
ac1cb8d3 | 47857 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
a848cd7e SC |
47858 | ac_uB='$,\1#\2define\3' |
47859 | ac_uC=' ' | |
47860 | ac_uD=',;t' | |
47861 | ||
47862 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
47863 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
47864 | case $ac_file in | |
47865 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
47866 | cat >$tmp/stdin |
47867 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
47868 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 47869 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 47870 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
47871 | * ) ac_file_in=$ac_file.in ;; |
47872 | esac | |
47873 | ||
47874 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
47875 | echo "$as_me: creating $ac_file" >&6;} | |
47876 | ||
47877 | # First look for the input files in the build tree, otherwise in the | |
47878 | # src tree. | |
47879 | ac_file_inputs=`IFS=: | |
47880 | for f in $ac_file_in; do | |
47881 | case $f in | |
47882 | -) echo $tmp/stdin ;; | |
47883 | [\\/$]*) | |
ac1cb8d3 VS |
47884 | # Absolute (can't be DOS-style, as IFS=:) |
47885 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
47886 | echo "$as_me: error: cannot find input file: $f" >&2;} |
47887 | { (exit 1); exit 1; }; } | |
ac1cb8d3 VS |
47888 | # Do quote $f, to prevent DOS paths from being IFS'd. |
47889 | echo "$f";; | |
a848cd7e | 47890 | *) # Relative |
ac1cb8d3 VS |
47891 | if test -f "$f"; then |
47892 | # Build tree | |
47893 | echo "$f" | |
47894 | elif test -f "$srcdir/$f"; then | |
47895 | # Source tree | |
47896 | echo "$srcdir/$f" | |
47897 | else | |
47898 | # /dev/null tree | |
47899 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
47900 | echo "$as_me: error: cannot find input file: $f" >&2;} |
47901 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 47902 | fi;; |
a848cd7e SC |
47903 | esac |
47904 | done` || { (exit 1); exit 1; } | |
47905 | # Remove the trailing spaces. | |
ac1cb8d3 | 47906 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
a848cd7e SC |
47907 | |
47908 | _ACEOF | |
47909 | ||
47910 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
47911 | # `conftest.undefs', that substitutes the proper values into | |
47912 | # config.h.in to produce config.h. The first handles `#define' | |
47913 | # templates, and the second `#undef' templates. | |
47914 | # And first: Protect against being on the right side of a sed subst in | |
47915 | # config.status. Protect against being in an unquoted here document | |
47916 | # in config.status. | |
47917 | rm -f conftest.defines conftest.undefs | |
47918 | # Using a here document instead of a string reduces the quoting nightmare. | |
47919 | # Putting comments in sed scripts is not portable. | |
47920 | # | |
47921 | # `end' is used to avoid that the second main sed command (meant for | |
47922 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
47923 | # See the Autoconf documentation for `clear'. | |
47924 | cat >confdef2sed.sed <<\_ACEOF | |
47925 | s/[\\&,]/\\&/g | |
47926 | s,[\\$`],\\&,g | |
47927 | t clear | |
47928 | : clear | |
ac1cb8d3 | 47929 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
a848cd7e | 47930 | t end |
ac1cb8d3 | 47931 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
a848cd7e SC |
47932 | : end |
47933 | _ACEOF | |
47934 | # If some macros were called several times there might be several times | |
47935 | # the same #defines, which is useless. Nevertheless, we may not want to | |
47936 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
47937 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
47938 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
47939 | rm -f confdef2sed.sed | |
47940 | ||
47941 | # This sed command replaces #undef with comments. This is necessary, for | |
47942 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
47943 | # on some systems where configure will not decide to define it. | |
47944 | cat >>conftest.undefs <<\_ACEOF | |
ac1cb8d3 | 47945 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
a848cd7e SC |
47946 | _ACEOF |
47947 | ||
47948 | # Break up conftest.defines because some shells have a limit on the size | |
47949 | # of here documents, and old seds have small limits too (100 cmds). | |
47950 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
ac1cb8d3 | 47951 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
a848cd7e SC |
47952 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
47953 | echo ' :' >>$CONFIG_STATUS | |
47954 | rm -f conftest.tail | |
47955 | while grep . conftest.defines >/dev/null | |
47956 | do | |
47957 | # Write a limited-size here document to $tmp/defines.sed. | |
47958 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
47959 | # Speed up: don't consider the non `#define' lines. | |
ac1cb8d3 | 47960 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
a848cd7e SC |
47961 | # Work around the forget-to-reset-the-flag bug. |
47962 | echo 't clr' >>$CONFIG_STATUS | |
47963 | echo ': clr' >>$CONFIG_STATUS | |
47964 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
47965 | echo 'CEOF | |
47966 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
47967 | rm -f $tmp/in | |
47968 | mv $tmp/out $tmp/in | |
47969 | ' >>$CONFIG_STATUS | |
47970 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
47971 | rm -f conftest.defines | |
47972 | mv conftest.tail conftest.defines | |
47973 | done | |
47974 | rm -f conftest.defines | |
47975 | echo ' fi # grep' >>$CONFIG_STATUS | |
47976 | echo >>$CONFIG_STATUS | |
47977 | ||
47978 | # Break up conftest.undefs because some shells have a limit on the size | |
47979 | # of here documents, and old seds have small limits too (100 cmds). | |
47980 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
47981 | rm -f conftest.tail | |
47982 | while grep . conftest.undefs >/dev/null | |
47983 | do | |
47984 | # Write a limited-size here document to $tmp/undefs.sed. | |
47985 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
47986 | # Speed up: don't consider the non `#undef' | |
ac1cb8d3 | 47987 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
a848cd7e SC |
47988 | # Work around the forget-to-reset-the-flag bug. |
47989 | echo 't clr' >>$CONFIG_STATUS | |
47990 | echo ': clr' >>$CONFIG_STATUS | |
47991 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
47992 | echo 'CEOF | |
47993 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
47994 | rm -f $tmp/in | |
47995 | mv $tmp/out $tmp/in | |
47996 | ' >>$CONFIG_STATUS | |
47997 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
47998 | rm -f conftest.undefs | |
47999 | mv conftest.tail conftest.undefs | |
48000 | done | |
48001 | rm -f conftest.undefs | |
48002 | ||
48003 | cat >>$CONFIG_STATUS <<\_ACEOF | |
48004 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
48005 | # use $as_me), people would be surprised to read: | |
48006 | # /* config.h. Generated by config.status. */ | |
48007 | if test x"$ac_file" = x-; then | |
48008 | echo "/* Generated by configure. */" >$tmp/config.h | |
48009 | else | |
48010 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
48011 | fi | |
48012 | cat $tmp/in >>$tmp/config.h | |
48013 | rm -f $tmp/in | |
48014 | if test x"$ac_file" != x-; then | |
48015 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
48016 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
48017 | echo "$as_me: $ac_file is unchanged" >&6;} | |
48018 | else | |
48019 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
48020 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
48021 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
48022 | X"$ac_file" : 'X\(//\)$' \| \ | |
48023 | X"$ac_file" : 'X\(/\)' \| \ | |
48024 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
48025 | echo X"$ac_file" | |
48026 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
48027 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
48028 | /^X\(\/\/\)$/{ s//\1/; q; } | |
48029 | /^X\(\/\).*/{ s//\1/; q; } | |
48030 | s/.*/./; q'` | |
48031 | { if $as_mkdir_p; then | |
48032 | mkdir -p "$ac_dir" | |
48033 | else | |
48034 | as_dir="$ac_dir" | |
48035 | as_dirs= | |
48036 | while test ! -d "$as_dir"; do | |
48037 | as_dirs="$as_dir $as_dirs" | |
48038 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
48039 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
48040 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
48041 | X"$as_dir" : 'X\(//\)$' \| \ | |
48042 | X"$as_dir" : 'X\(/\)' \| \ | |
48043 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
48044 | echo X"$as_dir" | |
48045 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
48046 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
48047 | /^X\(\/\/\)$/{ s//\1/; q; } | |
48048 | /^X\(\/\).*/{ s//\1/; q; } | |
48049 | s/.*/./; q'` | |
48050 | done | |
48051 | test ! -n "$as_dirs" || mkdir $as_dirs | |
48052 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
48053 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
48054 | { (exit 1); exit 1; }; }; } | |
48055 | ||
48056 | rm -f $ac_file | |
48057 | mv $tmp/config.h $ac_file | |
48058 | fi | |
48059 | else | |
48060 | cat $tmp/config.h | |
48061 | rm -f $tmp/config.h | |
48062 | fi | |
48063 | done | |
48064 | _ACEOF | |
48065 | cat >>$CONFIG_STATUS <<\_ACEOF | |
48066 | ||
48067 | # | |
48068 | # CONFIG_COMMANDS section. | |
48069 | # | |
48070 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
48071 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
48072 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
48073 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
48074 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
48075 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
48076 | X"$ac_dest" : 'X\(//\)$' \| \ | |
48077 | X"$ac_dest" : 'X\(/\)' \| \ | |
48078 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
48079 | echo X"$ac_dest" | |
48080 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
48081 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
48082 | /^X\(\/\/\)$/{ s//\1/; q; } | |
48083 | /^X\(\/\).*/{ s//\1/; q; } | |
48084 | s/.*/./; q'` | |
ac1cb8d3 VS |
48085 | { if $as_mkdir_p; then |
48086 | mkdir -p "$ac_dir" | |
48087 | else | |
48088 | as_dir="$ac_dir" | |
48089 | as_dirs= | |
48090 | while test ! -d "$as_dir"; do | |
48091 | as_dirs="$as_dir $as_dirs" | |
48092 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
48093 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
48094 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
48095 | X"$as_dir" : 'X\(//\)$' \| \ | |
48096 | X"$as_dir" : 'X\(/\)' \| \ | |
48097 | . : '\(.\)' 2>/dev/null || | |
48098 | echo X"$as_dir" | | |
48099 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
48100 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
48101 | /^X\(\/\/\)$/{ s//\1/; q; } | |
48102 | /^X\(\/\).*/{ s//\1/; q; } | |
48103 | s/.*/./; q'` | |
48104 | done | |
48105 | test ! -n "$as_dirs" || mkdir $as_dirs | |
48106 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
48107 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
48108 | { (exit 1); exit 1; }; }; } | |
48109 | ||
a848cd7e SC |
48110 | ac_builddir=. |
48111 | ||
48112 | if test "$ac_dir" != .; then | |
48113 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
48114 | # A "../" for each directory in $ac_dir_suffix. | |
48115 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
48116 | else | |
48117 | ac_dir_suffix= ac_top_builddir= | |
48118 | fi | |
48119 | ||
48120 | case $srcdir in | |
48121 | .) # No --srcdir option. We are building in place. | |
48122 | ac_srcdir=. | |
48123 | if test -z "$ac_top_builddir"; then | |
48124 | ac_top_srcdir=. | |
48125 | else | |
48126 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
48127 | fi ;; | |
48128 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
48129 | ac_srcdir=$srcdir$ac_dir_suffix; | |
48130 | ac_top_srcdir=$srcdir ;; | |
48131 | *) # Relative path. | |
48132 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
48133 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
48134 | esac | |
ac1cb8d3 VS |
48135 | |
48136 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
48137 | # the directories may not exist. | |
48138 | case `pwd` in | |
48139 | .) ac_abs_builddir="$ac_dir";; | |
48140 | *) | |
48141 | case "$ac_dir" in | |
48142 | .) ac_abs_builddir=`pwd`;; | |
48143 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
48144 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
48145 | esac;; | |
48146 | esac | |
48147 | case $ac_abs_builddir in | |
48148 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
48149 | *) | |
48150 | case ${ac_top_builddir}. in | |
48151 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
48152 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
48153 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
48154 | esac;; | |
48155 | esac | |
48156 | case $ac_abs_builddir in | |
48157 | .) ac_abs_srcdir=$ac_srcdir;; | |
48158 | *) | |
48159 | case $ac_srcdir in | |
48160 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
48161 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
48162 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
48163 | esac;; | |
48164 | esac | |
48165 | case $ac_abs_builddir in | |
48166 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
48167 | *) | |
48168 | case $ac_top_srcdir in | |
48169 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
48170 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
48171 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
48172 | esac;; | |
48173 | esac | |
a848cd7e SC |
48174 | |
48175 | ||
48176 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
48177 | echo "$as_me: executing $ac_dest commands" >&6;} | |
48178 | case $ac_dest in | |
ceec2216 RL |
48179 | wx-config ) rm -f wx-config |
48180 | ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config | |
48181 | ;; | |
a848cd7e SC |
48182 | esac |
48183 | done | |
48184 | _ACEOF | |
48185 | ||
48186 | cat >>$CONFIG_STATUS <<\_ACEOF | |
48187 | ||
48188 | { (exit 0); exit 0; } | |
48189 | _ACEOF | |
48190 | chmod +x $CONFIG_STATUS | |
48191 | ac_clean_files=$ac_clean_files_save | |
48192 | ||
48193 | ||
48194 | # configure is writing to config.log, and then calls config.status. | |
48195 | # config.status does its own redirection, appending to config.log. | |
48196 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
48197 | # by configure, so config.status won't be able to write to it; its | |
48198 | # output is simply discarded. So we exec the FD to /dev/null, | |
48199 | # effectively closing config.log, so it can be properly (re)opened and | |
48200 | # appended to by config.status. When coming back to configure, we | |
48201 | # need to make the FD available again. | |
48202 | if test "$no_create" != yes; then | |
48203 | ac_cs_success=: | |
48204 | ac_config_status_args= | |
48205 | test "$silent" = yes && | |
48206 | ac_config_status_args="$ac_config_status_args --quiet" | |
48207 | exec 5>/dev/null | |
48208 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
48209 | exec 5>>config.log | |
48210 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
48211 | # would make configure fail if this is the last instruction. | |
48212 | $ac_cs_success || { (exit 1); exit 1; } | |
48213 | fi | |
48214 | ||
48215 | # | |
48216 | # CONFIG_SUBDIRS section. | |
48217 | # | |
48218 | if test "$no_recursion" != yes; then | |
48219 | ||
48220 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
48221 | ac_sub_configure_args= | |
48222 | ac_prev= | |
48223 | for ac_arg in $ac_configure_args; do | |
48224 | if test -n "$ac_prev"; then | |
48225 | ac_prev= | |
48226 | continue | |
48227 | fi | |
48228 | case $ac_arg in | |
48229 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
48230 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
48231 | ac_prev=cache_file ;; | |
48232 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
48233 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
48234 | | --c=*) | |
48235 | ;; | |
48236 | --config-cache | -C) | |
48237 | ;; | |
48238 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
48239 | ac_prev=srcdir ;; | |
48240 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
48241 | ;; | |
48242 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
48243 | ac_prev=prefix ;; | |
48244 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
48245 | ;; | |
48246 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
48247 | esac | |
48248 | done | |
48249 | ||
48250 | # Always prepend --prefix to ensure using the same prefix | |
48251 | # in subdir configurations. | |
48252 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
48253 | ||
48254 | ac_popdir=`pwd` | |
48255 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
48256 | ||
48257 | # Do not complain, so a configure script can configure whichever | |
48258 | # parts of a large source tree are present. | |
48259 | test -d $srcdir/$ac_dir || continue | |
48260 | ||
48261 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
48262 | echo "$as_me: configuring in $ac_dir" >&6;} | |
48263 | { if $as_mkdir_p; then | |
48264 | mkdir -p "$ac_dir" | |
48265 | else | |
48266 | as_dir="$ac_dir" | |
48267 | as_dirs= | |
48268 | while test ! -d "$as_dir"; do | |
48269 | as_dirs="$as_dir $as_dirs" | |
48270 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
48271 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
48272 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
48273 | X"$as_dir" : 'X\(//\)$' \| \ | |
48274 | X"$as_dir" : 'X\(/\)' \| \ | |
48275 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
48276 | echo X"$as_dir" | |
48277 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
48278 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
48279 | /^X\(\/\/\)$/{ s//\1/; q; } | |
48280 | /^X\(\/\).*/{ s//\1/; q; } | |
48281 | s/.*/./; q'` | |
48282 | done | |
48283 | test ! -n "$as_dirs" || mkdir $as_dirs | |
48284 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
48285 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
48286 | { (exit 1); exit 1; }; }; } | |
48287 | ||
48288 | ac_builddir=. | |
48289 | ||
48290 | if test "$ac_dir" != .; then | |
48291 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
48292 | # A "../" for each directory in $ac_dir_suffix. | |
48293 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
48294 | else | |
48295 | ac_dir_suffix= ac_top_builddir= | |
48296 | fi | |
48297 | ||
48298 | case $srcdir in | |
48299 | .) # No --srcdir option. We are building in place. | |
48300 | ac_srcdir=. | |
48301 | if test -z "$ac_top_builddir"; then | |
48302 | ac_top_srcdir=. | |
48303 | else | |
48304 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
48305 | fi ;; | |
48306 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
48307 | ac_srcdir=$srcdir$ac_dir_suffix; | |
48308 | ac_top_srcdir=$srcdir ;; | |
48309 | *) # Relative path. | |
48310 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
48311 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
48312 | esac | |
ac1cb8d3 VS |
48313 | |
48314 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
48315 | # the directories may not exist. | |
48316 | case `pwd` in | |
48317 | .) ac_abs_builddir="$ac_dir";; | |
48318 | *) | |
48319 | case "$ac_dir" in | |
48320 | .) ac_abs_builddir=`pwd`;; | |
48321 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
48322 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
48323 | esac;; | |
48324 | esac | |
48325 | case $ac_abs_builddir in | |
48326 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
48327 | *) | |
48328 | case ${ac_top_builddir}. in | |
48329 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
48330 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
48331 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
48332 | esac;; | |
48333 | esac | |
48334 | case $ac_abs_builddir in | |
48335 | .) ac_abs_srcdir=$ac_srcdir;; | |
48336 | *) | |
48337 | case $ac_srcdir in | |
48338 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
48339 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
48340 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
48341 | esac;; | |
48342 | esac | |
48343 | case $ac_abs_builddir in | |
48344 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
48345 | *) | |
48346 | case $ac_top_srcdir in | |
48347 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
48348 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
48349 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
48350 | esac;; | |
48351 | esac | |
a848cd7e SC |
48352 | |
48353 | ||
48354 | cd $ac_dir | |
48355 | ||
48356 | # Check for guested configure; otherwise get Cygnus style configure. | |
48357 | if test -f $ac_srcdir/configure.gnu; then | |
48358 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
48359 | elif test -f $ac_srcdir/configure; then | |
48360 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
48361 | elif test -f $ac_srcdir/configure.in; then | |
48362 | ac_sub_configure=$ac_configure | |
48363 | else | |
48364 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
48365 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
48366 | ac_sub_configure= | |
48367 | fi | |
48368 | ||
48369 | # The recursion is here. | |
48370 | if test -n "$ac_sub_configure"; then | |
48371 | # Make the cache file name correct relative to the subdirectory. | |
48372 | case $cache_file in | |
48373 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
48374 | *) # Relative path. | |
ac1cb8d3 | 48375 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
a848cd7e SC |
48376 | esac |
48377 | ||
48378 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
48379 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
48380 | # The eval makes quoting arguments work. | |
48381 | eval $ac_sub_configure $ac_sub_configure_args \ | |
ac1cb8d3 VS |
48382 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
48383 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
a848cd7e SC |
48384 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
48385 | { (exit 1); exit 1; }; } | |
48386 | fi | |
48387 | ||
0093c2fc | 48388 | cd "$ac_popdir" |
a848cd7e SC |
48389 | done |
48390 | fi | |
48391 | ||
48392 | ||
48393 | echo | |
77ffb593 | 48394 | echo "Configured wxWidgets ${WX_VERSION} for \`${host}'" |
a848cd7e | 48395 | echo "" |
4d4ff94c | 48396 | echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}" |
77ffb593 | 48397 | echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
a848cd7e | 48398 | |
77ffb593 JS |
48399 | echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}" |
48400 | echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}" | |
48401 | echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
a848cd7e | 48402 | |
77ffb593 | 48403 | echo " What level of wxWidgets compatibility should be enabled?" |
dee1a63f MB |
48404 | echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}" |
48405 | echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}" | |
a848cd7e | 48406 | |
77ffb593 | 48407 | echo " Which libraries should wxWidgets use?" |
a848cd7e SC |
48408 | echo " jpeg ${wxUSE_LIBJPEG-none}" |
48409 | echo " png ${wxUSE_LIBPNG-none}" | |
48410 | echo " regex ${wxUSE_REGEX}" | |
48411 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
48412 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then | |
48413 | echo " xpm ${wxUSE_LIBXPM-none}" | |
48414 | fi | |
48415 | echo " zlib ${wxUSE_ZLIB}" | |
48416 | echo " odbc ${wxUSE_ODBC}" | |
48417 | echo " expat ${wxUSE_EXPAT}" | |
48418 | echo " libmspack ${wxUSE_LIBMSPACK}" | |
48419 | echo " sdl ${wxUSE_LIBSDL}" | |
6d1ce868 | 48420 | echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}" |
a848cd7e SC |
48421 | |
48422 | echo "" | |
48423 |