]>
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" | |
2b850ae1 | 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 WINDRES ac_ct_WINDRES DLLTOOL ac_ct_DLLTOOL IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS REZ DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GNOMEVFS_CFLAGS GNOMEVFS_LIBS HILDON_CFLAGS HILDON_LIBS GST_CFLAGS GST_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT EXTRALIBS_GNOMEVFS EXTRALIBS_HILDON 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 ICC_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_ICC_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_MEDIA_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_MEDIA_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_MEDIA_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_0 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_TOOLKIT_VERSION_ COND_TOOLKIT_GTK_TOOLKIT_VERSION_2 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_USE_GUI_1 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_PCH_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 USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_CPPFLAGS WXCONFIG_CFLAGS WXCONFIG_CXXFLAGS WXCONFIG_LIBS WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WXCONFIG_RESFLAGS EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESCOMP RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES POSTLINK_COMMAND MACSETFILE 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 | |
7afc46ab | 892 | --enable-universal_binary create Mac PowerPC and Intel Universal binary (not yet working) |
dee1a63f MB |
893 | --enable-compat24 enable wxWidgets 2.4 compatibility |
894 | --disable-compat26 disable wxWidgets 2.6 compatibility | |
ffa0583f | 895 | --disable-rpath disable use of rpath for uninstalled builds |
a848cd7e SC |
896 | --enable-intl use internationalization system |
897 | --enable-config use wxConfig (and derived) classes | |
898 | --enable-protocols use wxProtocol and derived classes | |
899 | --enable-ftp use wxFTP (requires wxProtocol | |
900 | --enable-http use wxHTTP (requires wxProtocol | |
901 | --enable-fileproto use wxFileProto class (requires wxProtocol | |
902 | --enable-sockets use socket/network classes | |
903 | --enable-ole use OLE classes (Win32 only) | |
904 | --enable-dataobj use data object classes | |
905 | --enable-ipc use interprocess communication (wxSocket etc.) | |
906 | --enable-apple_ieee use the Apple IEEE codec | |
81f90336 | 907 | --enable-arcstream use wxArchive streams |
eaff0f0d | 908 | --enable-backtrace use wxStackWalker class for getting backtraces |
36b6448c | 909 | --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only) |
a848cd7e SC |
910 | --enable-cmdline use wxCmdLineParser class |
911 | --enable-datetime use wxDateTime class | |
36b6448c | 912 | --enable-debugreport use wxDebugReport class |
a848cd7e SC |
913 | --enable-dialupman use dialup network classes |
914 | --enable-dynlib use wxLibrary class for DLL loading | |
915 | --enable-dynamicloader use (new) wxDynamicLibrary class | |
916 | --enable-exceptions build exception-safe library | |
917 | --enable-ffile use wxFFile class | |
918 | --enable-file use wxFile class | |
919 | --enable-filesystem use virtual file systems classes | |
920 | --enable-fontmap use font encodings conversion classes | |
921 | --enable-fs_inet use virtual HTTP/FTP filesystems | |
922 | --enable-fs_zip use virtual ZIP filesystems | |
923 | --enable-geometry use geometry class | |
924 | --enable-log use logging system | |
925 | --enable-longlong use wxLongLong class | |
926 | --enable-mimetype use wxMimeTypesManager | |
927 | --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only) | |
928 | --enable-snglinst use wxSingleInstanceChecker class | |
a848cd7e | 929 | --enable-std_iostreams use standard C++ stream classes |
59746b65 | 930 | --enable-std_string use standard C++ string classes |
07158944 | 931 | --enable-stdpaths use wxStandardPaths class |
a848cd7e | 932 | --enable-stopwatch use wxStopWatch class |
07158944 | 933 | --enable-streams use wxStream etc classes |
a848cd7e SC |
934 | --enable-sysoptions use wxSystemOptions |
935 | --enable-textbuf use wxTextBuffer class | |
936 | --enable-textfile use wxTextFile class | |
937 | --enable-timer use wxTimer class | |
938 | --enable-unicode compile wxString with Unicode support | |
939 | --enable-sound use wxSound class | |
3b57de8b | 940 | --enable-mediactrl use wxMediaCtrl class |
f10e38c4 | 941 | --enable-gstreamer8 force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix |
77ffb593 | 942 | --enable-wxprintfv use wxWidgets implementation of vprintf() |
81f90336 | 943 | --enable-zipstream use wxZip streams |
a848cd7e SC |
944 | --enable-url use wxURL class |
945 | --enable-protocol use wxProtocol class | |
946 | --enable-protocol-http HTTP support in wxProtocol | |
947 | --enable-protocol-ftp FTP support in wxProtocol | |
948 | --enable-protocol-file FILE support in wxProtocol | |
949 | --enable-threads use threads | |
950 | --enable-docview use document view architecture | |
951 | --enable-help use help subsystem | |
952 | --enable-mshtmlhelp use MS HTML Help (win32) | |
953 | --enable-html use wxHTML sub-library | |
954 | --enable-htmlhelp use wxHTML-based help | |
9a8f0513 | 955 | --enable-xrc use XRC resources sub-library |
a848cd7e SC |
956 | --enable-constraints use layout-constraints system |
957 | --enable-printarch use printing architecture | |
958 | --enable-mdi use multiple document interface architecture | |
8a7b1113 | 959 | --enable-mdidoc use docview architecture with MDI |
a848cd7e SC |
960 | --enable-loggui use standard GUI logger |
961 | --enable-logwin use wxLogWindow | |
962 | --enable-logdialog use wxLogDialog | |
646b6ec1 | 963 | --enable-webkit use wxWebKitCtrl (Mac) |
91dea314 | 964 | --enable-richtext use wxRichTextCtrl |
a848cd7e SC |
965 | --enable-postscript use wxPostscriptDC device context (default for gtk+) |
966 | --enable-prologio not available; see contrib | |
967 | --enable-resources not available; see contrib | |
968 | --enable-clipboard use wxClipboard class | |
969 | --enable-dnd use Drag'n'Drop classes | |
970 | --enable-metafile use win32 metafiles | |
971 | --enable-controls use all usual controls | |
972 | --enable-accel use accelerators | |
973 | --enable-button use wxButton class | |
974 | --enable-bmpbutton use wxBitmapButton class | |
975 | --enable-calendar use wxCalendarCtrl class | |
976 | --enable-caret use wxCaret class | |
977 | --enable-checkbox use wxCheckBox class | |
978 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
979 | --enable-choice use wxChoice class | |
92bbdbcd | 980 | --enable-choicebook use wxChoicebook class |
a848cd7e | 981 | --enable-combobox use wxComboBox class |
642bcba9 | 982 | --enable-combocontrol use wxComboControl class |
da98e9be | 983 | --enable-datepick use wxDatePickerCtrl class |
a848cd7e SC |
984 | --enable-display use wxDisplay class |
985 | --enable-gauge use wxGauge class | |
986 | --enable-grid use wxGrid class | |
20e34ecc | 987 | --enable-dataviewctrl, use wxDataViewCtrl class |
a848cd7e SC |
988 | --enable-imaglist use wxImageList class |
989 | --enable-listbook use wxListbook class | |
990 | --enable-listbox use wxListBox class | |
991 | --enable-listctrl use wxListCtrl class | |
992 | --enable-notebook use wxNotebook class | |
642bcba9 | 993 | --enable-odcombo use wxOwnerDrawnComboBox class |
a848cd7e SC |
994 | --enable-radiobox use wxRadioBox class |
995 | --enable-radiobtn use wxRadioButton class | |
996 | --enable-sash use wxSashWindow class | |
997 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
998 | --enable-slider use wxSlider class | |
999 | --enable-spinbtn use wxSpinButton class | |
1000 | --enable-spinctrl use wxSpinCtrl class | |
1001 | --enable-splitter use wxSplitterWindow class | |
1002 | --enable-statbmp use wxStaticBitmap class | |
1003 | --enable-statbox use wxStaticBox class | |
1004 | --enable-statline use wxStaticLine class | |
1005 | --enable-stattext use wxStaticText class | |
1006 | --enable-statusbar use wxStatusBar class | |
1007 | --enable-tabdialog use wxTabControl class | |
1008 | --enable-textctrl use wxTextCtrl class | |
1009 | --enable-togglebtn use wxToggleButton class | |
1010 | --enable-toolbar use wxToolBar class | |
1011 | --enable-tbarnative use native wxToolBar class | |
1012 | --enable-tbarsmpl use wxToolBarSimple class | |
0093c2fc | 1013 | --enable-treebook use wxTreebook class |
5ec3bc43 | 1014 | --enable-toolbook use wxToolbook class |
a848cd7e SC |
1015 | --enable-treectrl use wxTreeCtrl class |
1016 | --enable-tipwindow use wxTipWindow class | |
1017 | --enable-popupwin use wxPopUpWindow class | |
1018 | --enable-commondlg use all common dialogs | |
1019 | --enable-choicedlg use wxChoiceDialog | |
1020 | --enable-coldlg use wxColourDialog | |
1021 | --enable-filedlg use wxFileDialog | |
1022 | --enable-finddlg use wxFindReplaceDialog | |
1023 | --enable-fontdlg use wxFontDialog | |
1024 | --enable-dirdlg use wxDirDialog | |
1025 | --enable-msgdlg use wxMessageDialog | |
1026 | --enable-numberdlg use wxNumberEntryDialog | |
1027 | --enable-splash use wxSplashScreen | |
1028 | --enable-textdlg use wxTextDialog | |
1029 | --enable-tipdlg use startup tips | |
1030 | --enable-progressdlg use wxProgressDialog | |
1031 | --enable-wizarddlg use wxWizard | |
1032 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1033 | --enable-miniframe use wxMiniFrame class | |
1034 | --enable-tooltips use wxToolTip class | |
1035 | --enable-splines use spline drawing code | |
fbe2ca43 | 1036 | --enable-mousewheel use mousewheel |
a848cd7e SC |
1037 | --enable-validators use wxValidator and derived classes |
1038 | --enable-busyinfo use wxBusyInfo | |
4cb1d3da | 1039 | --enable-joystick use wxJoystick |
38b4a946 | 1040 | --enable-metafiles use wxMetaFile (Win32 only) |
a848cd7e SC |
1041 | --enable-dragimage use wxDragImage |
1042 | --enable-accessibility enable accessibility support | |
38b4a946 | 1043 | --enable-dccache cache temporary wxDC objects (Win32 only) |
a848cd7e SC |
1044 | --enable-palette use wxPalette class |
1045 | --enable-image use wxImage class | |
1046 | --enable-gif use gif images (GIF file format) | |
1047 | --enable-pcx use pcx images (PCX file format) | |
1048 | --enable-iff use iff images (IFF file format) | |
1049 | --enable-pnm use pnm images (PNM file format) | |
1050 | --enable-xpm use xpm images (XPM file format) | |
1051 | --enable-icocur use Windows ICO and CUR formats | |
77ffb593 | 1052 | --enable-official_build official build of wxWidgets (win32 DLL only) |
a848cd7e SC |
1053 | --enable-vendor=VENDOR vendor name (win32 DLL only) |
1054 | --disable-largefile omit support for large files | |
1055 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1056 | --disable-gtktest Do not try to compile and run a test GTK program | |
1057 | --disable-sdltest Do not try to compile and run a test SDL program | |
1058 | --enable-omf use OMF object format (OS/2) | |
f10e38c4 VZ |
1059 | --disable-dependency-tracking |
1060 | don't use dependency tracking even if the compiler | |
1061 | can | |
ebee3cd0 VS |
1062 | --disable-precomp-headers |
1063 | don't use precompiled headers even if compiler can | |
a848cd7e SC |
1064 | |
1065 | Optional Packages: | |
1066 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1067 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1c14217d | 1068 | --without-subdirs don't generate makefiles for samples/demos/... |
f34ca037 | 1069 | --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any" |
a848cd7e SC |
1070 | --with-motif use Motif/Lesstif |
1071 | --with-mac use Mac OS X | |
1072 | --with-cocoa use Cocoa | |
1073 | --with-wine use Wine | |
1074 | --with-msw use MS-Windows | |
1075 | --with-pm use OS/2 Presentation Manager | |
1076 | --with-mgl use SciTech MGL | |
1077 | --with-microwin use MicroWindows | |
1078 | --with-x11 use X11 | |
1079 | --with-libpng use libpng (PNG image format) | |
1080 | --with-libjpeg use libjpeg (JPEG file format) | |
1081 | --with-libtiff use libtiff (TIFF file format) | |
1082 | --with-libxpm use libxpm (XPM file format) | |
1083 | --with-libmspack use libmspack (CHM help files loading) | |
1084 | --with-sdl use SDL for audio on Unix | |
2b850ae1 RR |
1085 | --with-gnomeprint use GNOME print for printing under GNOME |
1086 | --with-gnomevfs use GNOME VFS for associating MIME types | |
3565d135 | 1087 | --with-hildon use Hildon framework for Nokia 770 |
a848cd7e SC |
1088 | --with-opengl use OpenGL (or Mesa) |
1089 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1090 | --with-regex enable support for wxRegEx class | |
1091 | --with-zlib use zlib for LZW compression | |
1092 | --with-odbc use the IODBC and wxODBC classes | |
1093 | --with-expat enable XML support using expat parser | |
ceec2216 | 1094 | --with-flavour=NAME specify a name to identify this build |
a848cd7e SC |
1095 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
1096 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1097 | --with-x use the X Window System | |
1098 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1099 | --with-sdl-prefix=PFX Prefix where SDL is installed (optional) | |
1100 | --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) | |
1101 | --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional) | |
1102 | --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional) | |
1103 | ||
1104 | Some influential environment variables: | |
dcc1b6ad VS |
1105 | CC C compiler command |
1106 | CFLAGS C compiler flags | |
1107 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1108 | nonstandard directory <lib dir> | |
1109 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1110 | headers in a nonstandard directory <include dir> | |
1111 | CPP C preprocessor | |
1112 | CXX C++ compiler command | |
1113 | CXXFLAGS C++ compiler flags | |
1114 | CXXCPP C++ preprocessor | |
a848cd7e SC |
1115 | |
1116 | Use these variables to override the choices made by `configure' or to help | |
1117 | it to find libraries and programs with nonstandard names/locations. | |
1118 | ||
77ffb593 | 1119 | Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e SC |
1120 | _ACEOF |
1121 | fi | |
1122 | ||
1123 | if test "$ac_init_help" = "recursive"; then | |
1124 | # If there are subdirs, report their specific --help. | |
1125 | ac_popdir=`pwd` | |
1126 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1127 | test -d $ac_dir || continue | |
1128 | ac_builddir=. | |
1129 | ||
1130 | if test "$ac_dir" != .; then | |
1131 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1132 | # A "../" for each directory in $ac_dir_suffix. | |
1133 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1134 | else | |
1135 | ac_dir_suffix= ac_top_builddir= | |
1136 | fi | |
1137 | ||
1138 | case $srcdir in | |
1139 | .) # No --srcdir option. We are building in place. | |
1140 | ac_srcdir=. | |
1141 | if test -z "$ac_top_builddir"; then | |
1142 | ac_top_srcdir=. | |
1143 | else | |
1144 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1145 | fi ;; | |
1146 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1147 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1148 | ac_top_srcdir=$srcdir ;; | |
1149 | *) # Relative path. | |
1150 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1151 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1152 | esac | |
ac1cb8d3 VS |
1153 | |
1154 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1155 | # the directories may not exist. | |
1156 | case `pwd` in | |
1157 | .) ac_abs_builddir="$ac_dir";; | |
1158 | *) | |
1159 | case "$ac_dir" in | |
1160 | .) ac_abs_builddir=`pwd`;; | |
1161 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1162 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1163 | esac;; | |
1164 | esac | |
1165 | case $ac_abs_builddir in | |
1166 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1167 | *) | |
1168 | case ${ac_top_builddir}. in | |
1169 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1170 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1171 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1172 | esac;; | |
1173 | esac | |
1174 | case $ac_abs_builddir in | |
1175 | .) ac_abs_srcdir=$ac_srcdir;; | |
1176 | *) | |
1177 | case $ac_srcdir in | |
1178 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1179 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1180 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1181 | esac;; | |
1182 | esac | |
1183 | case $ac_abs_builddir in | |
1184 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1185 | *) | |
1186 | case $ac_top_srcdir in | |
1187 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1188 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1189 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1190 | esac;; | |
1191 | esac | |
a848cd7e SC |
1192 | |
1193 | cd $ac_dir | |
1194 | # Check for guested configure; otherwise get Cygnus style configure. | |
1195 | if test -f $ac_srcdir/configure.gnu; then | |
1196 | echo | |
1197 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1198 | elif test -f $ac_srcdir/configure; then | |
1199 | echo | |
1200 | $SHELL $ac_srcdir/configure --help=recursive | |
1201 | elif test -f $ac_srcdir/configure.ac || | |
ac1cb8d3 | 1202 | test -f $ac_srcdir/configure.in; then |
a848cd7e SC |
1203 | echo |
1204 | $ac_configure --help | |
1205 | else | |
1206 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1207 | fi | |
5d7b7554 | 1208 | cd "$ac_popdir" |
a848cd7e SC |
1209 | done |
1210 | fi | |
1211 | ||
1212 | test -n "$ac_init_help" && exit 0 | |
1213 | if $ac_init_version; then | |
1214 | cat <<\_ACEOF | |
dd8df4fc | 1215 | wxWidgets configure 2.7.0 |
ac1cb8d3 | 1216 | generated by GNU Autoconf 2.59 |
a848cd7e | 1217 | |
ac1cb8d3 | 1218 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
1219 | This configure script is free software; the Free Software Foundation |
1220 | gives unlimited permission to copy, distribute and modify it. | |
1221 | _ACEOF | |
1222 | exit 0 | |
1223 | fi | |
1224 | exec 5>config.log | |
1225 | cat >&5 <<_ACEOF | |
1226 | This file contains any messages produced by compilers while | |
1227 | running configure, to aid debugging if configure makes a mistake. | |
1228 | ||
dd8df4fc | 1229 | It was created by wxWidgets $as_me 2.7.0, which was |
ac1cb8d3 | 1230 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
1231 | |
1232 | $ $0 $@ | |
1233 | ||
1234 | _ACEOF | |
1235 | { | |
1236 | cat <<_ASUNAME | |
1237 | ## --------- ## | |
1238 | ## Platform. ## | |
1239 | ## --------- ## | |
1240 | ||
1241 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1242 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1243 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1244 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1245 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1246 | ||
1247 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1248 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1249 | ||
1250 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1251 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1252 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1253 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1254 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1255 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1256 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1257 | ||
1258 | _ASUNAME | |
1259 | ||
1260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1261 | for as_dir in $PATH | |
1262 | do | |
1263 | IFS=$as_save_IFS | |
1264 | test -z "$as_dir" && as_dir=. | |
1265 | echo "PATH: $as_dir" | |
1266 | done | |
1267 | ||
1268 | } >&5 | |
1269 | ||
1270 | cat >&5 <<_ACEOF | |
1271 | ||
1272 | ||
1273 | ## ----------- ## | |
1274 | ## Core tests. ## | |
1275 | ## ----------- ## | |
1276 | ||
1277 | _ACEOF | |
1278 | ||
1279 | ||
1280 | # Keep a trace of the command line. | |
1281 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1282 | # Strip out --silent because we don't want to record it for future runs. | |
1283 | # Also quote any args containing shell meta-characters. | |
1284 | # Make two passes to allow for proper duplicate-argument suppression. | |
1285 | ac_configure_args= | |
1286 | ac_configure_args0= | |
1287 | ac_configure_args1= | |
1288 | ac_sep= | |
1289 | ac_must_keep_next=false | |
1290 | for ac_pass in 1 2 | |
1291 | do | |
1292 | for ac_arg | |
1293 | do | |
1294 | case $ac_arg in | |
1295 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1296 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1297 | | -silent | --silent | --silen | --sile | --sil) | |
1298 | continue ;; | |
1299 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1300 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1301 | esac | |
1302 | case $ac_pass in | |
1303 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1304 | 2) | |
1305 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1306 | if test $ac_must_keep_next = true; then | |
ac1cb8d3 | 1307 | ac_must_keep_next=false # Got value, back to normal. |
a848cd7e | 1308 | else |
ac1cb8d3 VS |
1309 | case $ac_arg in |
1310 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1311 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1312 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1313 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1314 | case "$ac_configure_args0 " in | |
1315 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1316 | esac | |
1317 | ;; | |
1318 | -* ) ac_must_keep_next=true ;; | |
1319 | esac | |
a848cd7e SC |
1320 | fi |
1321 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1322 | # Get rid of the leading space. | |
1323 | ac_sep=" " | |
1324 | ;; | |
1325 | esac | |
1326 | done | |
1327 | done | |
1328 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1329 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1330 | ||
1331 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1332 | # config.log. We remove comments because anyway the quotes in there | |
1333 | # would cause problems or look ugly. | |
1334 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1335 | # such as our DU 5.0 friend, will then `close' the trap. | |
1336 | trap 'exit_status=$? | |
1337 | # Save into config.log some information that might help in debugging. | |
1338 | { | |
1339 | echo | |
1340 | ||
1341 | cat <<\_ASBOX | |
1342 | ## ---------------- ## | |
1343 | ## Cache variables. ## | |
1344 | ## ---------------- ## | |
1345 | _ASBOX | |
1346 | echo | |
1347 | # The following way of writing the cache mishandles newlines in values, | |
1348 | { | |
1349 | (set) 2>&1 | | |
1350 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1351 | *ac_space=\ *) | |
1352 | sed -n \ | |
ac1cb8d3 VS |
1353 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1354 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
a848cd7e SC |
1355 | ;; |
1356 | *) | |
1357 | sed -n \ | |
ac1cb8d3 | 1358 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
1359 | ;; |
1360 | esac; | |
1361 | } | |
1362 | echo | |
1363 | ||
1364 | cat <<\_ASBOX | |
1365 | ## ----------------- ## | |
1366 | ## Output variables. ## | |
1367 | ## ----------------- ## | |
1368 | _ASBOX | |
1369 | echo | |
1370 | for ac_var in $ac_subst_vars | |
1371 | do | |
1372 | eval ac_val=$`echo $ac_var` | |
1373 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1374 | done | sort | |
1375 | echo | |
1376 | ||
1377 | if test -n "$ac_subst_files"; then | |
1378 | cat <<\_ASBOX | |
1379 | ## ------------- ## | |
1380 | ## Output files. ## | |
1381 | ## ------------- ## | |
1382 | _ASBOX | |
1383 | echo | |
1384 | for ac_var in $ac_subst_files | |
1385 | do | |
1386 | eval ac_val=$`echo $ac_var` | |
ac1cb8d3 | 1387 | echo "$ac_var='"'"'$ac_val'"'"'" |
a848cd7e SC |
1388 | done | sort |
1389 | echo | |
1390 | fi | |
1391 | ||
1392 | if test -s confdefs.h; then | |
1393 | cat <<\_ASBOX | |
1394 | ## ----------- ## | |
1395 | ## confdefs.h. ## | |
1396 | ## ----------- ## | |
1397 | _ASBOX | |
1398 | echo | |
1399 | sed "/^$/d" confdefs.h | sort | |
1400 | echo | |
1401 | fi | |
1402 | test "$ac_signal" != 0 && | |
1403 | echo "$as_me: caught signal $ac_signal" | |
1404 | echo "$as_me: exit $exit_status" | |
1405 | } >&5 | |
ac1cb8d3 | 1406 | rm -f core *.core && |
a848cd7e SC |
1407 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1408 | exit $exit_status | |
1409 | ' 0 | |
1410 | for ac_signal in 1 2 13 15; do | |
1411 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1412 | done | |
1413 | ac_signal=0 | |
1414 | ||
1415 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1416 | rm -rf conftest* confdefs.h | |
1417 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1418 | echo >confdefs.h | |
1419 | ||
1420 | # Predefined preprocessor variables. | |
1421 | ||
1422 | cat >>confdefs.h <<_ACEOF | |
1423 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1424 | _ACEOF | |
1425 | ||
1426 | ||
1427 | cat >>confdefs.h <<_ACEOF | |
1428 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1429 | _ACEOF | |
1430 | ||
1431 | ||
1432 | cat >>confdefs.h <<_ACEOF | |
1433 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1434 | _ACEOF | |
1435 | ||
1436 | ||
1437 | cat >>confdefs.h <<_ACEOF | |
1438 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1439 | _ACEOF | |
1440 | ||
1441 | ||
1442 | cat >>confdefs.h <<_ACEOF | |
1443 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1444 | _ACEOF | |
1445 | ||
1446 | ||
1447 | # Let the site file select an alternate cache file if it wants to. | |
1448 | # Prefer explicitly selected file to automatically selected ones. | |
1449 | if test -z "$CONFIG_SITE"; then | |
1450 | if test "x$prefix" != xNONE; then | |
1451 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1452 | else | |
1453 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1454 | fi | |
1455 | fi | |
1456 | for ac_site_file in $CONFIG_SITE; do | |
1457 | if test -r "$ac_site_file"; then | |
1458 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1459 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1460 | sed 's/^/| /' "$ac_site_file" >&5 | |
1461 | . "$ac_site_file" | |
1462 | fi | |
1463 | done | |
1464 | ||
1465 | if test -r "$cache_file"; then | |
1466 | # Some versions of bash will fail to source /dev/null (special | |
1467 | # files actually), so we avoid doing that. | |
1468 | if test -f "$cache_file"; then | |
1469 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1470 | echo "$as_me: loading cache $cache_file" >&6;} | |
1471 | case $cache_file in | |
1472 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1473 | *) . ./$cache_file;; | |
1474 | esac | |
1475 | fi | |
1476 | else | |
1477 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1478 | echo "$as_me: creating cache $cache_file" >&6;} | |
1479 | >$cache_file | |
1480 | fi | |
1481 | ||
1482 | # Check that the precious variables saved in the cache have kept the same | |
1483 | # value. | |
1484 | ac_cache_corrupted=false | |
1485 | for ac_var in `(set) 2>&1 | | |
ac1cb8d3 | 1486 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
a848cd7e SC |
1487 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1488 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1489 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1490 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1491 | case $ac_old_set,$ac_new_set in | |
1492 | set,) | |
1493 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1494 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1495 | ac_cache_corrupted=: ;; | |
1496 | ,set) | |
1497 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1498 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1499 | ac_cache_corrupted=: ;; | |
1500 | ,);; | |
1501 | *) | |
1502 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ac1cb8d3 | 1503 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
a848cd7e | 1504 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
ac1cb8d3 | 1505 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
a848cd7e | 1506 | echo "$as_me: former value: $ac_old_val" >&2;} |
ac1cb8d3 | 1507 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
a848cd7e | 1508 | echo "$as_me: current value: $ac_new_val" >&2;} |
ac1cb8d3 | 1509 | ac_cache_corrupted=: |
a848cd7e SC |
1510 | fi;; |
1511 | esac | |
1512 | # Pass precious variables to config.status. | |
1513 | if test "$ac_new_set" = set; then | |
1514 | case $ac_new_val in | |
1515 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1516 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1517 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1518 | esac | |
1519 | case " $ac_configure_args " in | |
1520 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1521 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1522 | esac | |
1523 | fi | |
1524 | done | |
1525 | if $ac_cache_corrupted; then | |
1526 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1527 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1528 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1529 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1530 | { (exit 1); exit 1; }; } | |
1531 | fi | |
1532 | ||
1533 | ac_ext=c | |
1534 | ac_cpp='$CPP $CPPFLAGS' | |
1535 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1536 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1537 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1538 | ||
1539 | ||
1540 | ||
1541 | ||
1542 | ||
1543 | ||
1544 | ||
1545 | ||
1546 | ||
1547 | ||
1548 | ||
1549 | ||
1550 | ||
1551 | ||
1552 | ||
1553 | ||
1554 | ||
1555 | ||
1556 | ||
1557 | ||
1558 | ||
1559 | ||
1560 | ||
1561 | ||
1562 | ||
1563 | ||
1564 | ||
1565 | ||
1566 | ||
1567 | ||
1568 | ac_aux_dir= | |
1569 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1570 | if test -f $ac_dir/install-sh; then | |
1571 | ac_aux_dir=$ac_dir | |
1572 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1573 | break | |
1574 | elif test -f $ac_dir/install.sh; then | |
1575 | ac_aux_dir=$ac_dir | |
1576 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1577 | break | |
1578 | elif test -f $ac_dir/shtool; then | |
1579 | ac_aux_dir=$ac_dir | |
1580 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1581 | break | |
1582 | fi | |
1583 | done | |
1584 | if test -z "$ac_aux_dir"; then | |
1585 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1586 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1587 | { (exit 1); exit 1; }; } | |
1588 | fi | |
1589 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1590 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1591 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1592 | ||
1593 | # Make sure we can run config.sub. | |
1594 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1595 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1596 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1597 | { (exit 1); exit 1; }; } | |
1598 | ||
1599 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1600 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1601 | if test "${ac_cv_build+set}" = set; then | |
1602 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1603 | else | |
1604 | ac_cv_build_alias=$build_alias | |
1605 | test -z "$ac_cv_build_alias" && | |
1606 | ac_cv_build_alias=`$ac_config_guess` | |
1607 | test -z "$ac_cv_build_alias" && | |
1608 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1609 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1610 | { (exit 1); exit 1; }; } | |
1611 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1612 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1613 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1614 | { (exit 1); exit 1; }; } | |
1615 | ||
1616 | fi | |
1617 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1618 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1619 | build=$ac_cv_build | |
1620 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1621 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1622 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1623 | ||
1624 | ||
1625 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1626 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1627 | if test "${ac_cv_host+set}" = set; then | |
1628 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1629 | else | |
1630 | ac_cv_host_alias=$host_alias | |
1631 | test -z "$ac_cv_host_alias" && | |
1632 | ac_cv_host_alias=$ac_cv_build_alias | |
1633 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1634 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1635 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1636 | { (exit 1); exit 1; }; } | |
1637 | ||
1638 | fi | |
1639 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1640 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1641 | host=$ac_cv_host | |
1642 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1643 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1644 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1645 | ||
1646 | ||
1647 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1648 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1649 | if test "${ac_cv_target+set}" = set; then | |
1650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1651 | else | |
1652 | ac_cv_target_alias=$target_alias | |
1653 | test "x$ac_cv_target_alias" = "x" && | |
1654 | ac_cv_target_alias=$ac_cv_host_alias | |
1655 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1656 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1657 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1658 | { (exit 1); exit 1; }; } | |
1659 | ||
1660 | fi | |
1661 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1662 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1663 | target=$ac_cv_target | |
1664 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1665 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1666 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1667 | ||
1668 | ||
1669 | # The aliases save the names the user supplied, while $host etc. | |
1670 | # will get canonicalized. | |
1671 | test -n "$target_alias" && | |
1672 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1673 | NONENONEs,x,x, && | |
1674 | program_prefix=${target_alias}- | |
1675 | ||
1676 | ||
1677 | ||
ceec2216 | 1678 | wx_major_version_number=2 |
dd8df4fc VZ |
1679 | wx_minor_version_number=7 |
1680 | wx_release_number=0 | |
1681 | wx_subrelease_number=0 | |
a848cd7e | 1682 | |
ceec2216 RL |
1683 | WX_RELEASE=$wx_major_version_number.$wx_minor_version_number |
1684 | WX_VERSION=$WX_RELEASE.$wx_release_number | |
1685 | WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number | |
a848cd7e | 1686 | |
ceec2216 | 1687 | WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number |
a848cd7e | 1688 | |
a848cd7e SC |
1689 | |
1690 | ||
1691 | ||
1692 | USE_UNIX=1 | |
1693 | USE_OS2=0 | |
1694 | USE_WIN32=0 | |
1695 | USE_DOS=0 | |
1696 | USE_BEOS=0 | |
1697 | USE_MAC=0 | |
1698 | ||
1699 | USE_AIX= | |
1700 | USE_BSD= USE_DARWIN= USE_FREEBSD= | |
1701 | USE_GNU= USE_HPUX= | |
1702 | USE_LINUX= | |
1703 | USE_NETBSD= | |
1704 | USE_OPENBSD= | |
1705 | USE_OSF= USE_SGI= | |
1706 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
1707 | USE_ULTRIX= | |
1708 | USE_UNIXWARE= | |
1709 | ||
1710 | USE_ALPHA= | |
1711 | ||
1712 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
1713 | ||
1714 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" | |
1715 | ||
1716 | DEFAULT_wxUSE_COCOA=0 | |
1717 | DEFAULT_wxUSE_GTK=0 | |
1718 | DEFAULT_wxUSE_MAC=0 | |
1719 | DEFAULT_wxUSE_MGL=0 | |
1720 | DEFAULT_wxUSE_MICROWIN=0 | |
1721 | DEFAULT_wxUSE_MOTIF=0 | |
1722 | DEFAULT_wxUSE_MSW=0 | |
1723 | DEFAULT_wxUSE_PM=0 | |
1724 | DEFAULT_wxUSE_X11=0 | |
1725 | ||
1726 | DEFAULT_DEFAULT_wxUSE_COCOA=0 | |
1727 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1728 | DEFAULT_DEFAULT_wxUSE_MAC=0 | |
1729 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1730 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 | |
1731 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
1732 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
1733 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
1734 | DEFAULT_DEFAULT_wxUSE_X11=0 | |
1735 | ||
1736 | PROGRAM_EXT= | |
1737 | SO_SUFFIX=so | |
1738 | SAMPLES_RPATH_FLAG= | |
1739 | SAMPLES_RPATH_POSTLINK= | |
1740 | ||
a03b8b04 RD |
1741 | DEFAULT_STD_FLAG=yes |
1742 | ||
a848cd7e SC |
1743 | case "${host}" in |
1744 | *-hp-hpux* ) | |
1745 | USE_HPUX=1 | |
1746 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1747 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1748 | SO_SUFFIX=sl | |
1749 | cat >>confdefs.h <<\_ACEOF | |
1750 | #define __HPUX__ 1 | |
1751 | _ACEOF | |
1752 | ||
2eef8513 | 1753 | |
c92ad099 | 1754 | CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS" |
a848cd7e SC |
1755 | ;; |
1756 | *-*-linux* ) | |
1757 | USE_LINUX=1 | |
1758 | cat >>confdefs.h <<\_ACEOF | |
1759 | #define __LINUX__ 1 | |
1760 | _ACEOF | |
1761 | ||
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 | *-*-gnu* | *-*-k*bsd*-gnu ) | |
1773 | USE_GNU=1 | |
1774 | TMP=`uname -m` | |
1775 | if test "x$TMP" = "xalpha"; then | |
1776 | USE_ALPHA=1 | |
1777 | cat >>confdefs.h <<\_ACEOF | |
1778 | #define __ALPHA__ 1 | |
1779 | _ACEOF | |
1780 | ||
1781 | fi | |
1782 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1783 | ;; | |
1784 | *-*-irix5* | *-*-irix6* ) | |
1785 | USE_SGI=1 | |
1786 | USE_SVR4=1 | |
1787 | cat >>confdefs.h <<\_ACEOF | |
1788 | #define __SGI__ 1 | |
1789 | _ACEOF | |
1790 | ||
1791 | cat >>confdefs.h <<\_ACEOF | |
1792 | #define __SVR4__ 1 | |
1793 | _ACEOF | |
1794 | ||
1795 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1796 | ;; | |
1797 | *-*-solaris2* ) | |
1798 | USE_SUN=1 | |
1799 | USE_SOLARIS=1 | |
1800 | USE_SVR4=1 | |
1801 | cat >>confdefs.h <<\_ACEOF | |
1802 | #define __SUN__ 1 | |
1803 | _ACEOF | |
1804 | ||
1805 | cat >>confdefs.h <<\_ACEOF | |
1806 | #define __SOLARIS__ 1 | |
1807 | _ACEOF | |
1808 | ||
1809 | cat >>confdefs.h <<\_ACEOF | |
1810 | #define __SVR4__ 1 | |
1811 | _ACEOF | |
1812 | ||
1813 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1814 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1815 | ;; | |
1816 | *-*-sunos4* ) | |
1817 | USE_SUN=1 | |
1818 | USE_SUNOS=1 | |
1819 | USE_BSD=1 | |
1820 | cat >>confdefs.h <<\_ACEOF | |
1821 | #define __SUN__ 1 | |
1822 | _ACEOF | |
1823 | ||
1824 | cat >>confdefs.h <<\_ACEOF | |
1825 | #define __SUNOS__ 1 | |
1826 | _ACEOF | |
1827 | ||
1828 | cat >>confdefs.h <<\_ACEOF | |
1829 | #define __BSD__ 1 | |
1830 | _ACEOF | |
1831 | ||
1832 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1833 | ;; | |
1834 | *-*-freebsd*) | |
1835 | USE_BSD=1 | |
1836 | USE_FREEBSD=1 | |
1837 | cat >>confdefs.h <<\_ACEOF | |
1838 | #define __FREEBSD__ 1 | |
1839 | _ACEOF | |
1840 | ||
1841 | cat >>confdefs.h <<\_ACEOF | |
1842 | #define __BSD__ 1 | |
1843 | _ACEOF | |
1844 | ||
1845 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1846 | ;; | |
1847 | *-*-openbsd*) | |
1848 | USE_BSD=1 | |
1849 | USE_OPENBSD=1 | |
1850 | cat >>confdefs.h <<\_ACEOF | |
1851 | #define __OPENBSD__ 1 | |
1852 | _ACEOF | |
1853 | ||
1854 | cat >>confdefs.h <<\_ACEOF | |
1855 | #define __BSD__ 1 | |
1856 | _ACEOF | |
1857 | ||
1858 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1859 | ;; | |
1860 | *-*-netbsd*) | |
1861 | USE_BSD=1 | |
1862 | USE_NETBSD=1 | |
1863 | cat >>confdefs.h <<\_ACEOF | |
1864 | #define __NETBSD__ 1 | |
1865 | _ACEOF | |
1866 | ||
1867 | cat >>confdefs.h <<\_ACEOF | |
1868 | #define __BSD__ 1 | |
1869 | _ACEOF | |
1870 | ||
1871 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
728258f4 | 1872 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
def7c04a | 1873 | |
def7c04a | 1874 | CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS" |
a848cd7e SC |
1875 | ;; |
1876 | *-*-osf* ) | |
1877 | USE_ALPHA=1 | |
1878 | USE_OSF=1 | |
1879 | cat >>confdefs.h <<\_ACEOF | |
1880 | #define __ALPHA__ 1 | |
1881 | _ACEOF | |
1882 | ||
1883 | cat >>confdefs.h <<\_ACEOF | |
1884 | #define __OSF__ 1 | |
1885 | _ACEOF | |
1886 | ||
1887 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1888 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1889 | ;; | |
1890 | *-*-dgux5* ) | |
1891 | USE_ALPHA=1 | |
1892 | USE_SVR4=1 | |
1893 | cat >>confdefs.h <<\_ACEOF | |
1894 | #define __ALPHA__ 1 | |
1895 | _ACEOF | |
1896 | ||
1897 | cat >>confdefs.h <<\_ACEOF | |
1898 | #define __SVR4__ 1 | |
1899 | _ACEOF | |
1900 | ||
1901 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1902 | ;; | |
1903 | *-*-sysv5* ) | |
1904 | USE_SYSV=1 | |
1905 | USE_SVR4=1 | |
1906 | cat >>confdefs.h <<\_ACEOF | |
1907 | #define __SYSV__ 1 | |
1908 | _ACEOF | |
1909 | ||
1910 | cat >>confdefs.h <<\_ACEOF | |
1911 | #define __SVR4__ 1 | |
1912 | _ACEOF | |
1913 | ||
1914 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1915 | ;; | |
1916 | *-*-aix* ) | |
1917 | USE_AIX=1 | |
1918 | USE_SYSV=1 | |
1919 | USE_SVR4=1 | |
1920 | SO_SUFFIX=a | |
1921 | cat >>confdefs.h <<\_ACEOF | |
1922 | #define __AIX__ 1 | |
1923 | _ACEOF | |
1924 | ||
1925 | cat >>confdefs.h <<\_ACEOF | |
1926 | #define __SYSV__ 1 | |
1927 | _ACEOF | |
1928 | ||
1929 | cat >>confdefs.h <<\_ACEOF | |
1930 | #define __SVR4__ 1 | |
1931 | _ACEOF | |
1932 | ||
1933 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1934 | ;; | |
1935 | ||
1936 | *-*-*UnixWare*) | |
1937 | USE_SYSV=1 | |
1938 | USE_SVR4=1 | |
1939 | USE_UNIXWARE=1 | |
1940 | cat >>confdefs.h <<\_ACEOF | |
1941 | #define __UNIXWARE__ 1 | |
1942 | _ACEOF | |
1943 | ||
1944 | ;; | |
1945 | ||
1946 | *-*-cygwin* | *-*-mingw32* ) | |
1947 | SO_SUFFIX=dll | |
1948 | PROGRAM_EXT=".exe" | |
a848cd7e | 1949 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
a03b8b04 | 1950 | DEFAULT_STD_FLAG=no |
a848cd7e SC |
1951 | ;; |
1952 | ||
1953 | *-pc-msdosdjgpp ) | |
1954 | USE_UNIX=0 | |
1955 | USE_DOS=1 | |
1956 | cat >>confdefs.h <<\_ACEOF | |
1957 | #define __DOS__ 1 | |
1958 | _ACEOF | |
1959 | ||
1960 | PROGRAM_EXT=".exe" | |
1961 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
a848cd7e SC |
1962 | ;; |
1963 | ||
1964 | *-pc-os2_emx | *-pc-os2-emx ) | |
1965 | cat >>confdefs.h <<\_ACEOF | |
1966 | #define __EMX__ 1 | |
1967 | _ACEOF | |
1968 | ||
1969 | USE_OS2=1 | |
1970 | cat >>confdefs.h <<\_ACEOF | |
1971 | #define __OS2__ 1 | |
1972 | _ACEOF | |
1973 | ||
1974 | PROGRAM_EXT=".exe" | |
1975 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
1976 | CXX=gcc | |
1977 | LDFLAGS="$LDFLAGS -Zcrtdll" | |
1978 | ac_executable_extensions=".exe" | |
1979 | export ac_executable_extensions | |
1980 | ac_save_IFS="$IFS" | |
1981 | IFS='\\' | |
1982 | ac_TEMP_PATH= | |
1983 | for ac_dir in $PATH; do | |
1984 | IFS=$ac_save_IFS | |
1985 | if test -z "$ac_TEMP_PATH"; then | |
1986 | ac_TEMP_PATH="$ac_dir" | |
1987 | else | |
1988 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
1989 | fi | |
1990 | done | |
1991 | export PATH="$ac_TEMP_PATH" | |
1992 | unset ac_TEMP_PATH | |
a03b8b04 | 1993 | DEFAULT_STD_FLAG=no |
a848cd7e SC |
1994 | ;; |
1995 | ||
cfda0ea8 | 1996 | *-*-darwin* ) |
a848cd7e SC |
1997 | USE_BSD=1 |
1998 | USE_DARWIN=1 | |
1999 | SO_SUFFIX=dylib | |
2000 | cat >>confdefs.h <<\_ACEOF | |
2001 | #define __BSD__ 1 | |
2002 | _ACEOF | |
2003 | ||
2004 | cat >>confdefs.h <<\_ACEOF | |
2005 | #define __DARWIN__ 1 | |
a848cd7e SC |
2006 | _ACEOF |
2007 | ||
2008 | cat >>confdefs.h <<\_ACEOF | |
2009 | #define TARGET_CARBON 1 | |
2010 | _ACEOF | |
2011 | ||
2012 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
a03b8b04 | 2013 | DEFAULT_STD_FLAG=no |
a848cd7e | 2014 | ;; |
1e9e8aba DE |
2015 | powerpc-apple-macos* ) |
2016 | USE_UNIX=0 | |
2017 | ac_cv_c_bigendian=yes | |
2018 | SO_SUFFIX=shlib | |
2019 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
a03b8b04 | 2020 | DEFAULT_STD_FLAG=no |
1e9e8aba | 2021 | ;; |
a848cd7e SC |
2022 | |
2023 | *-*-beos* ) | |
2024 | USE_BEOS=1 | |
2025 | cat >>confdefs.h <<\_ACEOF | |
2026 | #define __BEOS__ 1 | |
2027 | _ACEOF | |
2028 | ||
2029 | ;; | |
2030 | ||
2031 | *) | |
2032 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 | |
2033 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
2034 | { (exit 1); exit 1; }; } | |
2035 | esac | |
2036 | ||
2037 | ||
2038 | ||
2039 | ||
2040 | wx_arg_cache_file="configarg.cache" | |
2041 | echo "loading argument cache $wx_arg_cache_file" | |
2042 | rm -f ${wx_arg_cache_file}.tmp | |
2043 | touch ${wx_arg_cache_file}.tmp | |
2044 | touch ${wx_arg_cache_file} | |
2045 | ||
2046 | ||
2047 | DEBUG_CONFIGURE=0 | |
2048 | if test $DEBUG_CONFIGURE = 1; then | |
2049 | DEFAULT_wxUSE_UNIVERSAL=no | |
2050 | DEFAULT_wxUSE_STL=no | |
2051 | ||
2052 | DEFAULT_wxUSE_NANOX=no | |
2053 | ||
2054 | DEFAULT_wxUSE_THREADS=yes | |
2055 | ||
2056 | DEFAULT_wxUSE_SHARED=yes | |
2057 | DEFAULT_wxUSE_OPTIMISE=no | |
2058 | DEFAULT_wxUSE_PROFILE=no | |
2059 | DEFAULT_wxUSE_NO_DEPS=no | |
2060 | DEFAULT_wxUSE_NO_RTTI=no | |
2061 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
7afc46ab | 2062 | DEFAULT_wxUSE_UNIVERSAL_BINARY=no |
ffa0583f | 2063 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2064 | DEFAULT_wxUSE_PERMISSIVE=no |
2065 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2066 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2067 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
2068 | DEFAULT_wxUSE_MEM_TRACING=no | |
2069 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2070 | DEFAULT_wxUSE_DMALLOC=no | |
2071 | DEFAULT_wxUSE_APPLE_IEEE=no | |
2072 | ||
2073 | DEFAULT_wxUSE_EXCEPTIONS=no | |
2074 | DEFAULT_wxUSE_LOG=yes | |
2075 | DEFAULT_wxUSE_LOGWINDOW=no | |
2076 | DEFAULT_wxUSE_LOGGUI=no | |
2077 | DEFAULT_wxUSE_LOGDIALOG=no | |
2078 | ||
2079 | DEFAULT_wxUSE_GUI=yes | |
2080 | DEFAULT_wxUSE_CONTROLS=no | |
2081 | ||
2082 | DEFAULT_wxUSE_REGEX=no | |
2083 | DEFAULT_wxUSE_XML=no | |
2084 | DEFAULT_wxUSE_EXPAT=no | |
2085 | DEFAULT_wxUSE_ZLIB=no | |
2086 | DEFAULT_wxUSE_LIBPNG=no | |
2087 | DEFAULT_wxUSE_LIBJPEG=no | |
2088 | DEFAULT_wxUSE_LIBTIFF=no | |
2089 | DEFAULT_wxUSE_LIBXPM=no | |
2090 | DEFAULT_wxUSE_LIBMSPACK=no | |
2091 | DEFAULT_wxUSE_LIBSDL=no | |
d1c38808 | 2092 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
2b850ae1 | 2093 | DEFAULT_wxUSE_LIBGNOMEVFS=no |
3565d135 | 2094 | DEFAULT_wxUSE_LIBHILDON=no |
a848cd7e SC |
2095 | DEFAULT_wxUSE_ODBC=no |
2096 | DEFAULT_wxUSE_OPENGL=no | |
2097 | ||
2098 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no | |
eaff0f0d | 2099 | DEFAULT_wxUSE_STACKWALKER=no |
36b6448c | 2100 | DEFAULT_wxUSE_DEBUGREPORT=no |
a848cd7e SC |
2101 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
2102 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
59746b65 | 2103 | DEFAULT_wxUSE_STD_STRING=no |
a848cd7e SC |
2104 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
2105 | DEFAULT_wxUSE_DATETIME=no | |
2106 | DEFAULT_wxUSE_TIMER=no | |
2107 | DEFAULT_wxUSE_STOPWATCH=no | |
2108 | DEFAULT_wxUSE_FILE=no | |
2109 | DEFAULT_wxUSE_FFILE=no | |
07158944 | 2110 | DEFAULT_wxUSE_STDPATHS=no |
a848cd7e SC |
2111 | DEFAULT_wxUSE_TEXTBUFFER=no |
2112 | DEFAULT_wxUSE_TEXTFILE=no | |
2113 | DEFAULT_wxUSE_SOUND=no | |
3b57de8b | 2114 | DEFAULT_wxUSE_MEDIACTRL=no |
f10e38c4 | 2115 | DEFAULT_wxUSE_GSTREAMER8=no |
a848cd7e SC |
2116 | DEFAULT_wxUSE_INTL=no |
2117 | DEFAULT_wxUSE_CONFIG=no | |
2118 | DEFAULT_wxUSE_FONTMAP=no | |
2119 | DEFAULT_wxUSE_STREAMS=no | |
2120 | DEFAULT_wxUSE_SOCKETS=no | |
2121 | DEFAULT_wxUSE_OLE=no | |
2122 | DEFAULT_wxUSE_DATAOBJ=no | |
2123 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
2124 | DEFAULT_wxUSE_JOYSTICK=no | |
2125 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
2126 | DEFAULT_wxUSE_DYNAMIC_LOADER=no | |
2127 | DEFAULT_wxUSE_LONGLONG=no | |
2128 | DEFAULT_wxUSE_GEOMETRY=no | |
2129 | ||
2130 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2131 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2132 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2133 | ||
2134 | DEFAULT_wxUSE_CLIPBOARD=no | |
2135 | DEFAULT_wxUSE_TOOLTIPS=no | |
2136 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
2137 | DEFAULT_wxUSE_DRAGIMAGE=no | |
2138 | DEFAULT_wxUSE_SPLINES=no | |
fbe2ca43 | 2139 | DEFAULT_wxUSE_MOUSEWHEEL=no |
a848cd7e | 2140 | |
8a7b1113 | 2141 | DEFAULT_wxUSE_MDI=no |
a848cd7e SC |
2142 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no |
2143 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2144 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2145 | ||
2146 | DEFAULT_wxUSE_RESOURCES=no | |
2147 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2148 | DEFAULT_wxUSE_IPC=no | |
2149 | DEFAULT_wxUSE_HELP=no | |
2150 | DEFAULT_wxUSE_MS_HTML_HELP=no | |
2151 | DEFAULT_wxUSE_WXHTML_HELP=no | |
2152 | DEFAULT_wxUSE_TREELAYOUT=no | |
2153 | DEFAULT_wxUSE_METAFILE=no | |
2154 | DEFAULT_wxUSE_MIMETYPE=no | |
2155 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no | |
2156 | DEFAULT_wxUSE_PROTOCOL=no | |
2157 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2158 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2159 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2160 | DEFAULT_wxUSE_URL=no | |
2161 | ||
2162 | DEFAULT_wxUSE_COMMONDLGS=no | |
2163 | DEFAULT_wxUSE_CHOICEDLG=no | |
2164 | DEFAULT_wxUSE_COLOURDLG=no | |
2165 | DEFAULT_wxUSE_DIRDLG=no | |
2166 | DEFAULT_wxUSE_FILEDLG=no | |
2167 | DEFAULT_wxUSE_FINDREPLDLG=no | |
2168 | DEFAULT_wxUSE_FONTDLG=no | |
2169 | DEFAULT_wxUSE_MSGDLG=no | |
2170 | DEFAULT_wxUSE_NUMBERDLG=no | |
2171 | DEFAULT_wxUSE_TEXTDLG=no | |
2172 | DEFAULT_wxUSE_SPLASH=no | |
2173 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
2174 | DEFAULT_wxUSE_PROGRESSDLG=no | |
2175 | DEFAULT_wxUSE_WIZARDDLG=no | |
2176 | ||
2177 | DEFAULT_wxUSE_MENUS=no | |
2178 | DEFAULT_wxUSE_MINIFRAME=no | |
2179 | DEFAULT_wxUSE_HTML=no | |
91dea314 | 2180 | DEFAULT_wxUSE_RICHTEXT=no |
9a8f0513 | 2181 | DEFAULT_wxUSE_XRC=no |
646b6ec1 | 2182 | DEFAULT_wxUSE_WEBKIT=no |
a848cd7e SC |
2183 | DEFAULT_wxUSE_FILESYSTEM=no |
2184 | DEFAULT_wxUSE_FS_INET=no | |
2185 | DEFAULT_wxUSE_FS_ZIP=no | |
2186 | DEFAULT_wxUSE_BUSYINFO=no | |
9e8e867f | 2187 | DEFAULT_wxUSE_ARCHIVE_STREAMS=no |
a848cd7e | 2188 | DEFAULT_wxUSE_ZIPSTREAM=no |
a848cd7e SC |
2189 | DEFAULT_wxUSE_VALIDATORS=no |
2190 | ||
2191 | DEFAULT_wxUSE_ACCEL=no | |
2192 | DEFAULT_wxUSE_BUTTON=no | |
2193 | DEFAULT_wxUSE_BMPBUTTON=no | |
2194 | DEFAULT_wxUSE_CALCTRL=no | |
2195 | DEFAULT_wxUSE_CARET=no | |
2196 | DEFAULT_wxUSE_CHECKBOX=no | |
2197 | DEFAULT_wxUSE_CHECKLST=no | |
2198 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 2199 | DEFAULT_wxUSE_CHOICEBOOK=no |
a848cd7e | 2200 | DEFAULT_wxUSE_COMBOBOX=no |
642bcba9 | 2201 | DEFAULT_wxUSE_COMBOCONTROL=no |
da98e9be | 2202 | DEFAULT_wxUSE_DATEPICKCTRL=no |
a848cd7e SC |
2203 | DEFAULT_wxUSE_DISPLAY=no |
2204 | DEFAULT_wxUSE_GAUGE=no | |
2205 | DEFAULT_wxUSE_GRID=no | |
20e34ecc | 2206 | DEFAULT_wxUSE_DATAVIEWCTRL=no |
a848cd7e SC |
2207 | DEFAULT_wxUSE_IMAGLIST=no |
2208 | DEFAULT_wxUSE_LISTBOOK=no | |
2209 | DEFAULT_wxUSE_LISTBOX=no | |
2210 | DEFAULT_wxUSE_LISTCTRL=no | |
2211 | DEFAULT_wxUSE_NOTEBOOK=no | |
642bcba9 | 2212 | DEFAULT_wxUSE_OWNERDRAWNCOMBOBOX=no |
a848cd7e SC |
2213 | DEFAULT_wxUSE_RADIOBOX=no |
2214 | DEFAULT_wxUSE_RADIOBTN=no | |
2215 | DEFAULT_wxUSE_SASH=no | |
2216 | DEFAULT_wxUSE_SCROLLBAR=no | |
2217 | DEFAULT_wxUSE_SLIDER=no | |
2218 | DEFAULT_wxUSE_SPINBTN=no | |
2219 | DEFAULT_wxUSE_SPINCTRL=no | |
2220 | DEFAULT_wxUSE_SPLITTER=no | |
2221 | DEFAULT_wxUSE_STATBMP=no | |
2222 | DEFAULT_wxUSE_STATBOX=no | |
2223 | DEFAULT_wxUSE_STATLINE=no | |
2224 | DEFAULT_wxUSE_STATTEXT=no | |
2225 | DEFAULT_wxUSE_STATUSBAR=yes | |
f10e38c4 | 2226 | DEFAULT_wxUSE_TAB_DIALOG=no |
a848cd7e SC |
2227 | DEFAULT_wxUSE_TEXTCTRL=no |
2228 | DEFAULT_wxUSE_TOGGLEBTN=no | |
2229 | DEFAULT_wxUSE_TOOLBAR=no | |
2230 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
2231 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
0093c2fc | 2232 | DEFAULT_wxUSE_TREEBOOK=no |
5ec3bc43 | 2233 | DEFAULT_wxUSE_TOOLBOOK=no |
a848cd7e SC |
2234 | DEFAULT_wxUSE_TREECTRL=no |
2235 | DEFAULT_wxUSE_POPUPWIN=no | |
2236 | DEFAULT_wxUSE_TIPWINDOW=no | |
2237 | ||
2238 | DEFAULT_wxUSE_UNICODE=no | |
2239 | DEFAULT_wxUSE_UNICODE_MSLU=no | |
2240 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2241 | ||
2242 | DEFAULT_wxUSE_PALETTE=no | |
2243 | DEFAULT_wxUSE_IMAGE=no | |
2244 | DEFAULT_wxUSE_GIF=no | |
2245 | DEFAULT_wxUSE_PCX=no | |
2246 | DEFAULT_wxUSE_PNM=no | |
2247 | DEFAULT_wxUSE_IFF=no | |
2248 | DEFAULT_wxUSE_XPM=no | |
2249 | DEFAULT_wxUSE_ICO_CUR=no | |
2250 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2251 | ||
2252 | DEFAULT_wxUSE_MONOLITHIC=no | |
2253 | DEFAULT_wxUSE_PLUGINS=no | |
2254 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
2255 | else | |
2256 | DEFAULT_wxUSE_UNIVERSAL=no | |
2257 | DEFAULT_wxUSE_STL=no | |
2258 | ||
2259 | DEFAULT_wxUSE_NANOX=no | |
2260 | ||
2261 | DEFAULT_wxUSE_THREADS=yes | |
2262 | ||
2263 | DEFAULT_wxUSE_SHARED=yes | |
2264 | DEFAULT_wxUSE_OPTIMISE=yes | |
2265 | DEFAULT_wxUSE_PROFILE=no | |
2266 | DEFAULT_wxUSE_NO_DEPS=no | |
2267 | DEFAULT_wxUSE_NO_RTTI=no | |
2268 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
7afc46ab | 2269 | DEFAULT_wxUSE_UNIVERSAL_BINARY=no |
ffa0583f | 2270 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2271 | DEFAULT_wxUSE_PERMISSIVE=no |
2272 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2273 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2274 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2275 | DEFAULT_wxUSE_MEM_TRACING=no | |
2276 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2277 | DEFAULT_wxUSE_DMALLOC=no | |
2278 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2279 | ||
2280 | DEFAULT_wxUSE_EXCEPTIONS=yes | |
2281 | DEFAULT_wxUSE_LOG=yes | |
2282 | DEFAULT_wxUSE_LOGWINDOW=yes | |
2283 | DEFAULT_wxUSE_LOGGUI=yes | |
2284 | DEFAULT_wxUSE_LOGDIALOG=yes | |
2285 | ||
2286 | DEFAULT_wxUSE_GUI=yes | |
2287 | ||
2288 | DEFAULT_wxUSE_REGEX=yes | |
2289 | DEFAULT_wxUSE_XML=yes | |
2290 | DEFAULT_wxUSE_EXPAT=yes | |
2291 | DEFAULT_wxUSE_ZLIB=yes | |
2292 | DEFAULT_wxUSE_LIBPNG=yes | |
2293 | DEFAULT_wxUSE_LIBJPEG=yes | |
2294 | DEFAULT_wxUSE_LIBTIFF=yes | |
2295 | DEFAULT_wxUSE_LIBXPM=yes | |
2296 | DEFAULT_wxUSE_LIBMSPACK=yes | |
2297 | DEFAULT_wxUSE_LIBSDL=no | |
a03b8b04 | 2298 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
2b850ae1 | 2299 | DEFAULT_wxUSE_LIBGNOMEVFS=no |
3565d135 | 2300 | DEFAULT_wxUSE_LIBHILDON=no |
a848cd7e | 2301 | DEFAULT_wxUSE_ODBC=no |
52cb607e | 2302 | DEFAULT_wxUSE_OPENGL=no |
a848cd7e SC |
2303 | |
2304 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes | |
eaff0f0d | 2305 | DEFAULT_wxUSE_STACKWALKER=yes |
6671c68b | 2306 | DEFAULT_wxUSE_DEBUGREPORT=yes |
a848cd7e | 2307 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
a03b8b04 RD |
2308 | DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG |
2309 | DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG | |
a848cd7e SC |
2310 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
2311 | DEFAULT_wxUSE_DATETIME=yes | |
2312 | DEFAULT_wxUSE_TIMER=yes | |
2313 | DEFAULT_wxUSE_STOPWATCH=yes | |
2314 | DEFAULT_wxUSE_FILE=yes | |
2315 | DEFAULT_wxUSE_FFILE=yes | |
07158944 | 2316 | DEFAULT_wxUSE_STDPATHS=yes |
a848cd7e SC |
2317 | DEFAULT_wxUSE_TEXTBUFFER=yes |
2318 | DEFAULT_wxUSE_TEXTFILE=yes | |
2319 | DEFAULT_wxUSE_SOUND=yes | |
3b57de8b | 2320 | DEFAULT_wxUSE_MEDIACTRL=no |
f10e38c4 | 2321 | DEFAULT_wxUSE_GSTREAMER8=no |
a848cd7e SC |
2322 | DEFAULT_wxUSE_INTL=yes |
2323 | DEFAULT_wxUSE_CONFIG=yes | |
2324 | DEFAULT_wxUSE_FONTMAP=yes | |
2325 | DEFAULT_wxUSE_STREAMS=yes | |
2326 | DEFAULT_wxUSE_SOCKETS=yes | |
2327 | DEFAULT_wxUSE_OLE=yes | |
2328 | DEFAULT_wxUSE_DATAOBJ=yes | |
2329 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
2330 | DEFAULT_wxUSE_JOYSTICK=yes | |
2331 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
2332 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes | |
2333 | DEFAULT_wxUSE_LONGLONG=yes | |
2334 | DEFAULT_wxUSE_GEOMETRY=yes | |
2335 | ||
2336 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2337 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2338 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2339 | ||
2340 | DEFAULT_wxUSE_CLIPBOARD=yes | |
2341 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2342 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
2343 | DEFAULT_wxUSE_DRAGIMAGE=yes | |
2344 | DEFAULT_wxUSE_SPLINES=yes | |
fbe2ca43 | 2345 | DEFAULT_wxUSE_MOUSEWHEEL=yes |
a848cd7e | 2346 | |
8a7b1113 | 2347 | DEFAULT_wxUSE_MDI=yes |
a848cd7e SC |
2348 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes |
2349 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2350 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2351 | ||
2352 | DEFAULT_wxUSE_RESOURCES=no | |
2353 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
2354 | DEFAULT_wxUSE_IPC=yes | |
2355 | DEFAULT_wxUSE_HELP=yes | |
2356 | DEFAULT_wxUSE_MS_HTML_HELP=yes | |
2357 | DEFAULT_wxUSE_WXHTML_HELP=yes | |
2358 | DEFAULT_wxUSE_TREELAYOUT=yes | |
2359 | DEFAULT_wxUSE_METAFILE=yes | |
2360 | DEFAULT_wxUSE_MIMETYPE=yes | |
2361 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes | |
2362 | DEFAULT_wxUSE_PROTOCOL=yes | |
2363 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2364 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2365 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2366 | DEFAULT_wxUSE_URL=yes | |
2367 | ||
2368 | DEFAULT_wxUSE_COMMONDLGS=yes | |
2369 | DEFAULT_wxUSE_CHOICEDLG=yes | |
2370 | DEFAULT_wxUSE_COLOURDLG=yes | |
2371 | DEFAULT_wxUSE_DIRDLG=yes | |
2372 | DEFAULT_wxUSE_FILEDLG=yes | |
2373 | DEFAULT_wxUSE_FINDREPLDLG=yes | |
2374 | DEFAULT_wxUSE_FONTDLG=yes | |
2375 | DEFAULT_wxUSE_MSGDLG=yes | |
2376 | DEFAULT_wxUSE_NUMBERDLG=yes | |
2377 | DEFAULT_wxUSE_TEXTDLG=yes | |
2378 | DEFAULT_wxUSE_SPLASH=yes | |
2379 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
2380 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
2381 | DEFAULT_wxUSE_WIZARDDLG=yes | |
2382 | ||
2383 | DEFAULT_wxUSE_MENUS=yes | |
2384 | DEFAULT_wxUSE_MINIFRAME=yes | |
2385 | DEFAULT_wxUSE_HTML=yes | |
91dea314 | 2386 | DEFAULT_wxUSE_RICHTEXT=yes |
9a8f0513 | 2387 | DEFAULT_wxUSE_XRC=yes |
646b6ec1 | 2388 | DEFAULT_wxUSE_WEBKIT=yes |
a848cd7e SC |
2389 | DEFAULT_wxUSE_FILESYSTEM=yes |
2390 | DEFAULT_wxUSE_FS_INET=yes | |
2391 | DEFAULT_wxUSE_FS_ZIP=yes | |
2392 | DEFAULT_wxUSE_BUSYINFO=yes | |
9e8e867f | 2393 | DEFAULT_wxUSE_ARCHIVE_STREAMS=yes |
a848cd7e | 2394 | DEFAULT_wxUSE_ZIPSTREAM=yes |
a848cd7e SC |
2395 | DEFAULT_wxUSE_VALIDATORS=yes |
2396 | ||
2397 | DEFAULT_wxUSE_ACCEL=yes | |
2398 | DEFAULT_wxUSE_BUTTON=yes | |
2399 | DEFAULT_wxUSE_BMPBUTTON=yes | |
2400 | DEFAULT_wxUSE_CALCTRL=yes | |
2401 | DEFAULT_wxUSE_CARET=yes | |
2402 | DEFAULT_wxUSE_CHECKBOX=yes | |
2403 | DEFAULT_wxUSE_CHECKLST=yes | |
2404 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 2405 | DEFAULT_wxUSE_CHOICEBOOK=yes |
a848cd7e | 2406 | DEFAULT_wxUSE_COMBOBOX=yes |
642bcba9 | 2407 | DEFAULT_wxUSE_COMBOCONTROL=yes |
da98e9be | 2408 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
a848cd7e SC |
2409 | DEFAULT_wxUSE_DISPLAY=yes |
2410 | DEFAULT_wxUSE_GAUGE=yes | |
2411 | DEFAULT_wxUSE_GRID=yes | |
20e34ecc | 2412 | DEFAULT_wxUSE_DATAVIEWCTRL=no |
a848cd7e SC |
2413 | DEFAULT_wxUSE_IMAGLIST=yes |
2414 | DEFAULT_wxUSE_LISTBOOK=yes | |
2415 | DEFAULT_wxUSE_LISTBOX=yes | |
2416 | DEFAULT_wxUSE_LISTCTRL=yes | |
2417 | DEFAULT_wxUSE_NOTEBOOK=yes | |
642bcba9 | 2418 | DEFAULT_wxUSE_OWNERDRAWNCOMBOBOX=yes |
a848cd7e SC |
2419 | DEFAULT_wxUSE_RADIOBOX=yes |
2420 | DEFAULT_wxUSE_RADIOBTN=yes | |
2421 | DEFAULT_wxUSE_SASH=yes | |
2422 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2423 | DEFAULT_wxUSE_SLIDER=yes | |
2424 | DEFAULT_wxUSE_SPINBTN=yes | |
2425 | DEFAULT_wxUSE_SPINCTRL=yes | |
2426 | DEFAULT_wxUSE_SPLITTER=yes | |
2427 | DEFAULT_wxUSE_STATBMP=yes | |
2428 | DEFAULT_wxUSE_STATBOX=yes | |
2429 | DEFAULT_wxUSE_STATLINE=yes | |
2430 | DEFAULT_wxUSE_STATTEXT=yes | |
2431 | DEFAULT_wxUSE_STATUSBAR=yes | |
f10e38c4 | 2432 | DEFAULT_wxUSE_TAB_DIALOG=no |
a848cd7e SC |
2433 | DEFAULT_wxUSE_TEXTCTRL=yes |
2434 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
2435 | DEFAULT_wxUSE_TOOLBAR=yes | |
2436 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
2437 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
0093c2fc | 2438 | DEFAULT_wxUSE_TREEBOOK=yes |
5ec3bc43 | 2439 | DEFAULT_wxUSE_TOOLBOOK=yes |
a848cd7e SC |
2440 | DEFAULT_wxUSE_TREECTRL=yes |
2441 | DEFAULT_wxUSE_POPUPWIN=yes | |
2442 | DEFAULT_wxUSE_TIPWINDOW=yes | |
2443 | ||
78de529b | 2444 | DEFAULT_wxUSE_UNICODE=no |
a848cd7e SC |
2445 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
2446 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2447 | ||
2448 | DEFAULT_wxUSE_PALETTE=yes | |
2449 | DEFAULT_wxUSE_IMAGE=yes | |
2450 | DEFAULT_wxUSE_GIF=yes | |
2451 | DEFAULT_wxUSE_PCX=yes | |
2452 | DEFAULT_wxUSE_IFF=no | |
2453 | DEFAULT_wxUSE_PNM=yes | |
2454 | DEFAULT_wxUSE_XPM=yes | |
2455 | DEFAULT_wxUSE_ICO_CUR=yes | |
2456 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2457 | ||
2458 | DEFAULT_wxUSE_MONOLITHIC=no | |
2459 | DEFAULT_wxUSE_PLUGINS=no | |
2460 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
9f45f08e | 2461 | |
f34ca037 | 2462 | DEFAULT_wxUSE_GTK2=yes |
a848cd7e SC |
2463 | fi |
2464 | ||
2465 | ||
2466 | ||
f34ca037 | 2467 | |
a848cd7e SC |
2468 | for toolkit in `echo $ALL_TOOLKITS`; do |
2469 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` | |
2470 | if test "x$LINE" != "x" ; then | |
2471 | has_toolkit_in_cache=1 | |
2472 | eval "DEFAULT_$LINE" | |
2473 | eval "CACHE_$toolkit=1" | |
f34ca037 MW |
2474 | |
2475 | LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}` | |
2476 | if test "x$LINE" != "x" ; then | |
2477 | eval "DEFAULT_$LINE" | |
2478 | fi | |
a848cd7e SC |
2479 | fi |
2480 | done | |
2481 | ||
2482 | ||
2483 | ||
2484 | enablestring= | |
2485 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 | |
2486 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
2487 | no_cache=0 | |
2488 | # Check whether --enable-gui or --disable-gui was given. | |
2489 | if test "${enable_gui+set}" = set; then | |
2490 | enableval="$enable_gui" | |
2491 | ||
2492 | if test "$enableval" = yes; then | |
2493 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2494 | else | |
2495 | ac_cv_use_gui='wxUSE_GUI=no' | |
2496 | fi | |
2497 | ||
2498 | else | |
2499 | ||
2500 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
2501 | if test "x$LINE" != x ; then | |
2502 | eval "DEFAULT_$LINE" | |
2503 | else | |
2504 | no_cache=1 | |
2505 | fi | |
2506 | ||
2507 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
2508 | ||
2509 | fi; | |
2510 | ||
2511 | eval "$ac_cv_use_gui" | |
2512 | if test "$no_cache" != 1; then | |
2513 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2514 | fi | |
2515 | ||
2516 | if test "$wxUSE_GUI" = yes; then | |
2517 | echo "$as_me:$LINENO: result: yes" >&5 | |
2518 | echo "${ECHO_T}yes" >&6 | |
2519 | else | |
2520 | echo "$as_me:$LINENO: result: no" >&5 | |
2521 | echo "${ECHO_T}no" >&6 | |
2522 | fi | |
2523 | ||
2524 | ||
2525 | enablestring= | |
2526 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2527 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2528 | no_cache=0 | |
2529 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2530 | if test "${enable_monolithic+set}" = set; then | |
2531 | enableval="$enable_monolithic" | |
2532 | ||
2533 | if test "$enableval" = yes; then | |
2534 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2535 | else | |
2536 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2537 | fi | |
2538 | ||
2539 | else | |
2540 | ||
2541 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2542 | if test "x$LINE" != x ; then | |
2543 | eval "DEFAULT_$LINE" | |
2544 | else | |
2545 | no_cache=1 | |
2546 | fi | |
2547 | ||
2548 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2549 | ||
2550 | fi; | |
2551 | ||
2552 | eval "$ac_cv_use_monolithic" | |
2553 | if test "$no_cache" != 1; then | |
2554 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2555 | fi | |
2556 | ||
2557 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2558 | echo "$as_me:$LINENO: result: yes" >&5 | |
2559 | echo "${ECHO_T}yes" >&6 | |
2560 | else | |
2561 | echo "$as_me:$LINENO: result: no" >&5 | |
2562 | echo "${ECHO_T}no" >&6 | |
2563 | fi | |
2564 | ||
2565 | ||
2566 | enablestring= | |
2567 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5 | |
2568 | echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6 | |
2569 | no_cache=0 | |
2570 | # Check whether --enable-plugins or --disable-plugins was given. | |
2571 | if test "${enable_plugins+set}" = set; then | |
2572 | enableval="$enable_plugins" | |
2573 | ||
2574 | if test "$enableval" = yes; then | |
2575 | ac_cv_use_plugins='wxUSE_PLUGINS=yes' | |
2576 | else | |
2577 | ac_cv_use_plugins='wxUSE_PLUGINS=no' | |
2578 | fi | |
2579 | ||
2580 | else | |
2581 | ||
2582 | LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}` | |
2583 | if test "x$LINE" != x ; then | |
2584 | eval "DEFAULT_$LINE" | |
2585 | else | |
2586 | no_cache=1 | |
2587 | fi | |
2588 | ||
2589 | ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS | |
2590 | ||
2591 | fi; | |
2592 | ||
2593 | eval "$ac_cv_use_plugins" | |
2594 | if test "$no_cache" != 1; then | |
2595 | echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp | |
2596 | fi | |
2597 | ||
2598 | if test "$wxUSE_PLUGINS" = yes; then | |
2599 | echo "$as_me:$LINENO: result: yes" >&5 | |
2600 | echo "${ECHO_T}yes" >&6 | |
2601 | else | |
2602 | echo "$as_me:$LINENO: result: no" >&5 | |
2603 | echo "${ECHO_T}no" >&6 | |
2604 | fi | |
2605 | ||
2606 | ||
1c14217d VZ |
2607 | withstring=without |
2608 | echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5 | |
2609 | echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6 | |
2610 | no_cache=0 | |
2611 | ||
2612 | # Check whether --with-subdirs or --without-subdirs was given. | |
2613 | if test "${with_subdirs+set}" = set; then | |
2614 | withval="$with_subdirs" | |
2615 | ||
2616 | if test "$withval" = yes; then | |
2617 | ac_cv_use_subdirs='wxWITH_SUBDIRS=yes' | |
2618 | else | |
2619 | ac_cv_use_subdirs='wxWITH_SUBDIRS=no' | |
2620 | fi | |
2621 | ||
2622 | else | |
2623 | ||
2624 | LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}` | |
2625 | if test "x$LINE" != x ; then | |
2626 | eval "DEFAULT_$LINE" | |
2627 | else | |
2628 | no_cache=1 | |
2629 | fi | |
2630 | ||
2631 | ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS | |
2632 | ||
2633 | fi; | |
2634 | ||
2635 | eval "$ac_cv_use_subdirs" | |
2636 | if test "$no_cache" != 1; then | |
2637 | echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp | |
2638 | fi | |
2639 | ||
2640 | if test "$wxWITH_SUBDIRS" = yes; then | |
2641 | echo "$as_me:$LINENO: result: yes" >&5 | |
2642 | echo "${ECHO_T}yes" >&6 | |
2643 | else | |
2644 | echo "$as_me:$LINENO: result: no" >&5 | |
2645 | echo "${ECHO_T}no" >&6 | |
2646 | fi | |
2647 | ||
2648 | ||
a848cd7e SC |
2649 | if test "$wxUSE_GUI" = "yes"; then |
2650 | ||
2651 | ||
2652 | enablestring= | |
2653 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 | |
2654 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
2655 | no_cache=0 | |
2656 | # Check whether --enable-universal or --disable-universal was given. | |
2657 | if test "${enable_universal+set}" = set; then | |
2658 | enableval="$enable_universal" | |
2659 | ||
2660 | if test "$enableval" = yes; then | |
2661 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2662 | else | |
2663 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2664 | fi | |
2665 | ||
2666 | else | |
2667 | ||
2668 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
2669 | if test "x$LINE" != x ; then | |
2670 | eval "DEFAULT_$LINE" | |
2671 | else | |
2672 | no_cache=1 | |
2673 | fi | |
2674 | ||
2675 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
2676 | ||
2677 | fi; | |
2678 | ||
2679 | eval "$ac_cv_use_universal" | |
2680 | if test "$no_cache" != 1; then | |
2681 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2682 | fi | |
2683 | ||
2684 | if test "$wxUSE_UNIVERSAL" = yes; then | |
2685 | echo "$as_me:$LINENO: result: yes" >&5 | |
2686 | echo "${ECHO_T}yes" >&6 | |
2687 | else | |
2688 | echo "$as_me:$LINENO: result: no" >&5 | |
2689 | echo "${ECHO_T}no" >&6 | |
2690 | fi | |
2691 | ||
2692 | ||
2693 | # Check whether --with-gtk or --without-gtk was given. | |
2694 | if test "${with_gtk+set}" = set; then | |
2695 | withval="$with_gtk" | |
2696 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
2697 | fi; | |
2698 | ||
2699 | # Check whether --with-motif or --without-motif was given. | |
2700 | if test "${with_motif+set}" = set; then | |
2701 | withval="$with_motif" | |
2702 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
2703 | fi; | |
2704 | ||
2705 | # Check whether --with-mac or --without-mac was given. | |
2706 | if test "${with_mac+set}" = set; then | |
2707 | withval="$with_mac" | |
c228d3a4 | 2708 | wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2709 | fi; |
2710 | ||
2711 | # Check whether --with-cocoa or --without-cocoa was given. | |
2712 | if test "${with_cocoa+set}" = set; then | |
2713 | withval="$with_cocoa" | |
c228d3a4 | 2714 | wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2715 | fi; |
2716 | ||
2717 | # Check whether --with-wine or --without-wine was given. | |
2718 | if test "${with_wine+set}" = set; then | |
2719 | withval="$with_wine" | |
2720 | wxUSE_WINE="$withval" CACHE_WINE=1 | |
2721 | fi; | |
2722 | ||
2723 | # Check whether --with-msw or --without-msw was given. | |
2724 | if test "${with_msw+set}" = set; then | |
2725 | withval="$with_msw" | |
2726 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 | |
2727 | fi; | |
2728 | ||
2729 | # Check whether --with-pm or --without-pm was given. | |
2730 | if test "${with_pm+set}" = set; then | |
2731 | withval="$with_pm" | |
2732 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
2733 | fi; | |
2734 | ||
2735 | # Check whether --with-mgl or --without-mgl was given. | |
2736 | if test "${with_mgl+set}" = set; then | |
2737 | withval="$with_mgl" | |
2738 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
2739 | fi; | |
2740 | ||
2741 | # Check whether --with-microwin or --without-microwin was given. | |
2742 | if test "${with_microwin+set}" = set; then | |
2743 | withval="$with_microwin" | |
2744 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
2745 | fi; | |
2746 | ||
2747 | # Check whether --with-x11 or --without-x11 was given. | |
2748 | if test "${with_x11+set}" = set; then | |
2749 | withval="$with_x11" | |
2750 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
2751 | fi; | |
2752 | ||
2753 | enablestring= | |
2754 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 | |
2755 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
2756 | no_cache=0 | |
2757 | # Check whether --enable-nanox or --disable-nanox was given. | |
2758 | if test "${enable_nanox+set}" = set; then | |
2759 | enableval="$enable_nanox" | |
2760 | ||
2761 | if test "$enableval" = yes; then | |
2762 | ac_cv_use_nanox='wxUSE_NANOX=yes' | |
2763 | else | |
2764 | ac_cv_use_nanox='wxUSE_NANOX=no' | |
2765 | fi | |
2766 | ||
2767 | else | |
2768 | ||
2769 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
2770 | if test "x$LINE" != x ; then | |
2771 | eval "DEFAULT_$LINE" | |
2772 | else | |
2773 | no_cache=1 | |
2774 | fi | |
2775 | ||
2776 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX | |
2777 | ||
2778 | fi; | |
2779 | ||
2780 | eval "$ac_cv_use_nanox" | |
2781 | if test "$no_cache" != 1; then | |
2782 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp | |
2783 | fi | |
2784 | ||
2785 | if test "$wxUSE_NANOX" = yes; then | |
2786 | echo "$as_me:$LINENO: result: yes" >&5 | |
2787 | echo "${ECHO_T}yes" >&6 | |
2788 | else | |
2789 | echo "$as_me:$LINENO: result: no" >&5 | |
2790 | echo "${ECHO_T}no" >&6 | |
2791 | fi | |
2792 | ||
2793 | ||
f34ca037 MW |
2794 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
2795 | if test "${enable_gtk2+set}" = set; then | |
2796 | enableval="$enable_gtk2" | |
2797 | wxUSE_GTK2="$enableval" | |
2798 | fi; | |
a848cd7e | 2799 | |
a848cd7e SC |
2800 | enablestring= |
2801 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5 | |
2802 | echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6 | |
2803 | no_cache=0 | |
2804 | # Check whether --enable-gpe or --disable-gpe was given. | |
2805 | if test "${enable_gpe+set}" = set; then | |
2806 | enableval="$enable_gpe" | |
2807 | ||
2808 | if test "$enableval" = yes; then | |
2809 | ac_cv_use_gpe='wxUSE_GPE=yes' | |
2810 | else | |
2811 | ac_cv_use_gpe='wxUSE_GPE=no' | |
2812 | fi | |
2813 | ||
2814 | else | |
2815 | ||
2816 | LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}` | |
2817 | if test "x$LINE" != x ; then | |
2818 | eval "DEFAULT_$LINE" | |
2819 | else | |
2820 | no_cache=1 | |
2821 | fi | |
2822 | ||
2823 | ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE | |
2824 | ||
2825 | fi; | |
2826 | ||
2827 | eval "$ac_cv_use_gpe" | |
2828 | if test "$no_cache" != 1; then | |
2829 | echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp | |
2830 | fi | |
2831 | ||
2832 | if test "$wxUSE_GPE" = yes; then | |
2833 | echo "$as_me:$LINENO: result: yes" >&5 | |
2834 | echo "${ECHO_T}yes" >&6 | |
2835 | else | |
2836 | echo "$as_me:$LINENO: result: no" >&5 | |
2837 | echo "${ECHO_T}no" >&6 | |
2838 | fi | |
2839 | ||
2840 | ||
2841 | ||
2842 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2843 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
2844 | no_cache=0 | |
2845 | ||
2846 | # Check whether --with-libpng or --without-libpng was given. | |
2847 | if test "${with_libpng+set}" = set; then | |
2848 | withval="$with_libpng" | |
2849 | ||
2850 | if test "$withval" = yes; then | |
2851 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
2852 | elif test "$withval" = no; then | |
2853 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
2854 | elif test "$withval" = sys; then | |
2855 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
2856 | elif test "$withval" = builtin; then | |
2857 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
2858 | else | |
2859 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2860 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2861 | { (exit 1); exit 1; }; } | |
2862 | fi | |
2863 | ||
2864 | else | |
2865 | ||
2866 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
2867 | if test "x$LINE" != x ; then | |
2868 | eval "DEFAULT_$LINE" | |
2869 | else | |
2870 | no_cache=1 | |
2871 | fi | |
2872 | ||
2873 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
2874 | ||
2875 | fi; | |
2876 | ||
2877 | eval "$ac_cv_use_libpng" | |
2878 | if test "$no_cache" != 1; then | |
2879 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
2880 | fi | |
2881 | ||
2882 | if test "$wxUSE_LIBPNG" = yes; then | |
2883 | echo "$as_me:$LINENO: result: yes" >&5 | |
2884 | echo "${ECHO_T}yes" >&6 | |
2885 | elif test "$wxUSE_LIBPNG" = no; then | |
2886 | echo "$as_me:$LINENO: result: no" >&5 | |
2887 | echo "${ECHO_T}no" >&6 | |
2888 | elif test "$wxUSE_LIBPNG" = sys; then | |
2889 | echo "$as_me:$LINENO: result: system version" >&5 | |
2890 | echo "${ECHO_T}system version" >&6 | |
2891 | elif test "$wxUSE_LIBPNG" = builtin; then | |
2892 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2893 | echo "${ECHO_T}builtin version" >&6 | |
2894 | else | |
2895 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2896 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2897 | { (exit 1); exit 1; }; } | |
2898 | fi | |
2899 | ||
2900 | ||
2901 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2902 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
2903 | no_cache=0 | |
2904 | ||
2905 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
2906 | if test "${with_libjpeg+set}" = set; then | |
2907 | withval="$with_libjpeg" | |
2908 | ||
2909 | if test "$withval" = yes; then | |
2910 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
2911 | elif test "$withval" = no; then | |
2912 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
2913 | elif test "$withval" = sys; then | |
2914 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
2915 | elif test "$withval" = builtin; then | |
2916 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
2917 | else | |
2918 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2919 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2920 | { (exit 1); exit 1; }; } | |
2921 | fi | |
2922 | ||
2923 | else | |
2924 | ||
2925 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
2926 | if test "x$LINE" != x ; then | |
2927 | eval "DEFAULT_$LINE" | |
2928 | else | |
2929 | no_cache=1 | |
2930 | fi | |
2931 | ||
2932 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
2933 | ||
2934 | fi; | |
2935 | ||
2936 | eval "$ac_cv_use_libjpeg" | |
2937 | if test "$no_cache" != 1; then | |
2938 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
2939 | fi | |
2940 | ||
2941 | if test "$wxUSE_LIBJPEG" = yes; then | |
2942 | echo "$as_me:$LINENO: result: yes" >&5 | |
2943 | echo "${ECHO_T}yes" >&6 | |
2944 | elif test "$wxUSE_LIBJPEG" = no; then | |
2945 | echo "$as_me:$LINENO: result: no" >&5 | |
2946 | echo "${ECHO_T}no" >&6 | |
2947 | elif test "$wxUSE_LIBJPEG" = sys; then | |
2948 | echo "$as_me:$LINENO: result: system version" >&5 | |
2949 | echo "${ECHO_T}system version" >&6 | |
2950 | elif test "$wxUSE_LIBJPEG" = builtin; then | |
2951 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2952 | echo "${ECHO_T}builtin version" >&6 | |
2953 | else | |
2954 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2955 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2956 | { (exit 1); exit 1; }; } | |
2957 | fi | |
2958 | ||
2959 | ||
2960 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2961 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
2962 | no_cache=0 | |
2963 | ||
2964 | # Check whether --with-libtiff or --without-libtiff was given. | |
2965 | if test "${with_libtiff+set}" = set; then | |
2966 | withval="$with_libtiff" | |
2967 | ||
2968 | if test "$withval" = yes; then | |
2969 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
2970 | elif test "$withval" = no; then | |
2971 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
2972 | elif test "$withval" = sys; then | |
2973 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
2974 | elif test "$withval" = builtin; then | |
2975 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
2976 | else | |
2977 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2978 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2979 | { (exit 1); exit 1; }; } | |
2980 | fi | |
2981 | ||
2982 | else | |
2983 | ||
2984 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
2985 | if test "x$LINE" != x ; then | |
2986 | eval "DEFAULT_$LINE" | |
2987 | else | |
2988 | no_cache=1 | |
2989 | fi | |
2990 | ||
2991 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
2992 | ||
2993 | fi; | |
2994 | ||
2995 | eval "$ac_cv_use_libtiff" | |
2996 | if test "$no_cache" != 1; then | |
2997 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
2998 | fi | |
2999 | ||
3000 | if test "$wxUSE_LIBTIFF" = yes; then | |
3001 | echo "$as_me:$LINENO: result: yes" >&5 | |
3002 | echo "${ECHO_T}yes" >&6 | |
3003 | elif test "$wxUSE_LIBTIFF" = no; then | |
3004 | echo "$as_me:$LINENO: result: no" >&5 | |
3005 | echo "${ECHO_T}no" >&6 | |
3006 | elif test "$wxUSE_LIBTIFF" = sys; then | |
3007 | echo "$as_me:$LINENO: result: system version" >&5 | |
3008 | echo "${ECHO_T}system version" >&6 | |
3009 | elif test "$wxUSE_LIBTIFF" = builtin; then | |
3010 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3011 | echo "${ECHO_T}builtin version" >&6 | |
3012 | else | |
3013 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
3014 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
3015 | { (exit 1); exit 1; }; } | |
3016 | fi | |
3017 | ||
3018 | ||
3019 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 | |
3020 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
3021 | no_cache=0 | |
3022 | ||
3023 | # Check whether --with-libxpm or --without-libxpm was given. | |
3024 | if test "${with_libxpm+set}" = set; then | |
3025 | withval="$with_libxpm" | |
3026 | ||
3027 | if test "$withval" = yes; then | |
3028 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
3029 | elif test "$withval" = no; then | |
3030 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
3031 | elif test "$withval" = sys; then | |
3032 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
3033 | elif test "$withval" = builtin; then | |
3034 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
3035 | else | |
3036 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
3037 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
3038 | { (exit 1); exit 1; }; } | |
3039 | fi | |
3040 | ||
3041 | else | |
3042 | ||
3043 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
3044 | if test "x$LINE" != x ; then | |
3045 | eval "DEFAULT_$LINE" | |
3046 | else | |
3047 | no_cache=1 | |
3048 | fi | |
3049 | ||
3050 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
3051 | ||
3052 | fi; | |
3053 | ||
3054 | eval "$ac_cv_use_libxpm" | |
3055 | if test "$no_cache" != 1; then | |
3056 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
3057 | fi | |
3058 | ||
3059 | if test "$wxUSE_LIBXPM" = yes; then | |
3060 | echo "$as_me:$LINENO: result: yes" >&5 | |
3061 | echo "${ECHO_T}yes" >&6 | |
3062 | elif test "$wxUSE_LIBXPM" = no; then | |
3063 | echo "$as_me:$LINENO: result: no" >&5 | |
3064 | echo "${ECHO_T}no" >&6 | |
3065 | elif test "$wxUSE_LIBXPM" = sys; then | |
3066 | echo "$as_me:$LINENO: result: system version" >&5 | |
3067 | echo "${ECHO_T}system version" >&6 | |
3068 | elif test "$wxUSE_LIBXPM" = builtin; then | |
3069 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3070 | echo "${ECHO_T}builtin version" >&6 | |
3071 | else | |
3072 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
3073 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
3074 | { (exit 1); exit 1; }; } | |
3075 | fi | |
3076 | ||
3077 | ||
1c14217d VZ |
3078 | withstring= |
3079 | echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5 | |
3080 | echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6 | |
a848cd7e SC |
3081 | no_cache=0 |
3082 | ||
3083 | # Check whether --with-libmspack or --without-libmspack was given. | |
3084 | if test "${with_libmspack+set}" = set; then | |
3085 | withval="$with_libmspack" | |
3086 | ||
3087 | if test "$withval" = yes; then | |
3088 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
3089 | else | |
3090 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
3091 | fi | |
3092 | ||
3093 | else | |
3094 | ||
3095 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
3096 | if test "x$LINE" != x ; then | |
3097 | eval "DEFAULT_$LINE" | |
3098 | else | |
3099 | no_cache=1 | |
3100 | fi | |
3101 | ||
3102 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
3103 | ||
3104 | fi; | |
3105 | ||
3106 | eval "$ac_cv_use_libmspack" | |
3107 | if test "$no_cache" != 1; then | |
3108 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
3109 | fi | |
3110 | ||
3111 | if test "$wxUSE_LIBMSPACK" = yes; then | |
3112 | echo "$as_me:$LINENO: result: yes" >&5 | |
3113 | echo "${ECHO_T}yes" >&6 | |
3114 | else | |
3115 | echo "$as_me:$LINENO: result: no" >&5 | |
3116 | echo "${ECHO_T}no" >&6 | |
3117 | fi | |
3118 | ||
3119 | ||
1c14217d VZ |
3120 | withstring= |
3121 | echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5 | |
3122 | echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6 | |
a848cd7e SC |
3123 | no_cache=0 |
3124 | ||
3125 | # Check whether --with-sdl or --without-sdl was given. | |
3126 | if test "${with_sdl+set}" = set; then | |
3127 | withval="$with_sdl" | |
3128 | ||
3129 | if test "$withval" = yes; then | |
3130 | ac_cv_use_sdl='wxUSE_LIBSDL=yes' | |
3131 | else | |
3132 | ac_cv_use_sdl='wxUSE_LIBSDL=no' | |
3133 | fi | |
3134 | ||
3135 | else | |
3136 | ||
3137 | LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}` | |
3138 | if test "x$LINE" != x ; then | |
3139 | eval "DEFAULT_$LINE" | |
3140 | else | |
3141 | no_cache=1 | |
3142 | fi | |
3143 | ||
3144 | ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL | |
3145 | ||
3146 | fi; | |
3147 | ||
3148 | eval "$ac_cv_use_sdl" | |
3149 | if test "$no_cache" != 1; then | |
3150 | echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp | |
3151 | fi | |
3152 | ||
3153 | if test "$wxUSE_LIBSDL" = yes; then | |
3154 | echo "$as_me:$LINENO: result: yes" >&5 | |
3155 | echo "${ECHO_T}yes" >&6 | |
3156 | else | |
3157 | echo "$as_me:$LINENO: result: no" >&5 | |
3158 | echo "${ECHO_T}no" >&6 | |
3159 | fi | |
3160 | ||
3161 | ||
1c14217d VZ |
3162 | withstring= |
3163 | echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5 | |
3164 | echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6 | |
d1c38808 VZ |
3165 | no_cache=0 |
3166 | ||
3167 | # Check whether --with-gnomeprint or --without-gnomeprint was given. | |
3168 | if test "${with_gnomeprint+set}" = set; then | |
3169 | withval="$with_gnomeprint" | |
3170 | ||
3171 | if test "$withval" = yes; then | |
3172 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes' | |
3173 | else | |
3174 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no' | |
3175 | fi | |
3176 | ||
3177 | else | |
3178 | ||
3179 | LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}` | |
3180 | if test "x$LINE" != x ; then | |
3181 | eval "DEFAULT_$LINE" | |
3182 | else | |
3183 | no_cache=1 | |
3184 | fi | |
3185 | ||
3186 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT | |
3187 | ||
3188 | fi; | |
3189 | ||
3190 | eval "$ac_cv_use_gnomeprint" | |
3191 | if test "$no_cache" != 1; then | |
3192 | echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp | |
3193 | fi | |
3194 | ||
3195 | if test "$wxUSE_LIBGNOMEPRINT" = yes; then | |
3196 | echo "$as_me:$LINENO: result: yes" >&5 | |
3197 | echo "${ECHO_T}yes" >&6 | |
3198 | else | |
3199 | echo "$as_me:$LINENO: result: no" >&5 | |
3200 | echo "${ECHO_T}no" >&6 | |
3201 | fi | |
3202 | ||
3203 | ||
2b850ae1 RR |
3204 | withstring= |
3205 | echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5 | |
3206 | echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6 | |
3207 | no_cache=0 | |
3208 | ||
3209 | # Check whether --with-gnomevfs or --without-gnomevfs was given. | |
3210 | if test "${with_gnomevfs+set}" = set; then | |
3211 | withval="$with_gnomevfs" | |
3212 | ||
3213 | if test "$withval" = yes; then | |
3214 | ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes' | |
3215 | else | |
3216 | ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no' | |
3217 | fi | |
3218 | ||
3219 | else | |
3220 | ||
3221 | LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}` | |
3222 | if test "x$LINE" != x ; then | |
3223 | eval "DEFAULT_$LINE" | |
3224 | else | |
3225 | no_cache=1 | |
3226 | fi | |
3227 | ||
3228 | ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS | |
3229 | ||
3230 | fi; | |
3231 | ||
3232 | eval "$ac_cv_use_gnomevfs" | |
3233 | if test "$no_cache" != 1; then | |
3234 | echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp | |
3235 | fi | |
3236 | ||
3237 | if test "$wxUSE_LIBGNOMEVFS" = yes; then | |
3238 | echo "$as_me:$LINENO: result: yes" >&5 | |
3239 | echo "${ECHO_T}yes" >&6 | |
3240 | else | |
3241 | echo "$as_me:$LINENO: result: no" >&5 | |
3242 | echo "${ECHO_T}no" >&6 | |
3243 | fi | |
3244 | ||
3245 | ||
3565d135 RR |
3246 | withstring= |
3247 | echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5 | |
3248 | echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6 | |
3249 | no_cache=0 | |
3250 | ||
3251 | # Check whether --with-hildon or --without-hildon was given. | |
3252 | if test "${with_hildon+set}" = set; then | |
3253 | withval="$with_hildon" | |
3254 | ||
3255 | if test "$withval" = yes; then | |
3256 | ac_cv_use_hildon='wxUSE_LIBHILDON=yes' | |
3257 | else | |
3258 | ac_cv_use_hildon='wxUSE_LIBHILDON=no' | |
3259 | fi | |
3260 | ||
3261 | else | |
3262 | ||
3263 | LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}` | |
3264 | if test "x$LINE" != x ; then | |
3265 | eval "DEFAULT_$LINE" | |
3266 | else | |
3267 | no_cache=1 | |
3268 | fi | |
3269 | ||
3270 | ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON | |
3271 | ||
3272 | fi; | |
3273 | ||
3274 | eval "$ac_cv_use_hildon" | |
3275 | if test "$no_cache" != 1; then | |
3276 | echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp | |
3277 | fi | |
3278 | ||
3279 | if test "$wxUSE_LIBHILDON" = yes; then | |
3280 | echo "$as_me:$LINENO: result: yes" >&5 | |
3281 | echo "${ECHO_T}yes" >&6 | |
3282 | else | |
3283 | echo "$as_me:$LINENO: result: no" >&5 | |
3284 | echo "${ECHO_T}no" >&6 | |
3285 | fi | |
3286 | ||
3287 | ||
1c14217d VZ |
3288 | withstring= |
3289 | echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5 | |
3290 | echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6 | |
a848cd7e SC |
3291 | no_cache=0 |
3292 | ||
3293 | # Check whether --with-opengl or --without-opengl was given. | |
3294 | if test "${with_opengl+set}" = set; then | |
3295 | withval="$with_opengl" | |
3296 | ||
3297 | if test "$withval" = yes; then | |
3298 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
3299 | else | |
3300 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
3301 | fi | |
3302 | ||
3303 | else | |
3304 | ||
3305 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
3306 | if test "x$LINE" != x ; then | |
3307 | eval "DEFAULT_$LINE" | |
3308 | else | |
3309 | no_cache=1 | |
3310 | fi | |
3311 | ||
3312 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
3313 | ||
3314 | fi; | |
3315 | ||
3316 | eval "$ac_cv_use_opengl" | |
3317 | if test "$no_cache" != 1; then | |
3318 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
3319 | fi | |
3320 | ||
3321 | if test "$wxUSE_OPENGL" = yes; then | |
3322 | echo "$as_me:$LINENO: result: yes" >&5 | |
3323 | echo "${ECHO_T}yes" >&6 | |
3324 | else | |
3325 | echo "$as_me:$LINENO: result: no" >&5 | |
3326 | echo "${ECHO_T}no" >&6 | |
3327 | fi | |
3328 | ||
3329 | ||
3330 | fi | |
3331 | ||
3332 | ||
1c14217d VZ |
3333 | withstring= |
3334 | echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5 | |
3335 | echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6 | |
a848cd7e SC |
3336 | no_cache=0 |
3337 | ||
3338 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
3339 | if test "${with_dmalloc+set}" = set; then | |
3340 | withval="$with_dmalloc" | |
3341 | ||
3342 | if test "$withval" = yes; then | |
3343 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
3344 | else | |
3345 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
3346 | fi | |
3347 | ||
3348 | else | |
3349 | ||
3350 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
3351 | if test "x$LINE" != x ; then | |
3352 | eval "DEFAULT_$LINE" | |
3353 | else | |
3354 | no_cache=1 | |
3355 | fi | |
3356 | ||
3357 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
3358 | ||
3359 | fi; | |
3360 | ||
3361 | eval "$ac_cv_use_dmalloc" | |
3362 | if test "$no_cache" != 1; then | |
3363 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
3364 | fi | |
3365 | ||
3366 | if test "$wxUSE_DMALLOC" = yes; then | |
3367 | echo "$as_me:$LINENO: result: yes" >&5 | |
3368 | echo "${ECHO_T}yes" >&6 | |
3369 | else | |
3370 | echo "$as_me:$LINENO: result: no" >&5 | |
3371 | echo "${ECHO_T}no" >&6 | |
3372 | fi | |
3373 | ||
3374 | ||
3375 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
3376 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3377 | no_cache=0 | |
3378 | ||
3379 | # Check whether --with-regex or --without-regex was given. | |
3380 | if test "${with_regex+set}" = set; then | |
3381 | withval="$with_regex" | |
3382 | ||
3383 | if test "$withval" = yes; then | |
3384 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
3385 | elif test "$withval" = no; then | |
3386 | ac_cv_use_regex='wxUSE_REGEX=no' | |
3387 | elif test "$withval" = sys; then | |
3388 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
3389 | elif test "$withval" = builtin; then | |
3390 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3391 | else | |
3392 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3393 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3394 | { (exit 1); exit 1; }; } | |
3395 | fi | |
3396 | ||
3397 | else | |
3398 | ||
3399 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
3400 | if test "x$LINE" != x ; then | |
3401 | eval "DEFAULT_$LINE" | |
3402 | else | |
3403 | no_cache=1 | |
3404 | fi | |
3405 | ||
3406 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3407 | ||
3408 | fi; | |
3409 | ||
3410 | eval "$ac_cv_use_regex" | |
3411 | if test "$no_cache" != 1; then | |
3412 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3413 | fi | |
3414 | ||
3415 | if test "$wxUSE_REGEX" = yes; then | |
3416 | echo "$as_me:$LINENO: result: yes" >&5 | |
3417 | echo "${ECHO_T}yes" >&6 | |
3418 | elif test "$wxUSE_REGEX" = no; then | |
3419 | echo "$as_me:$LINENO: result: no" >&5 | |
3420 | echo "${ECHO_T}no" >&6 | |
3421 | elif test "$wxUSE_REGEX" = sys; then | |
3422 | echo "$as_me:$LINENO: result: system version" >&5 | |
3423 | echo "${ECHO_T}system version" >&6 | |
3424 | elif test "$wxUSE_REGEX" = builtin; then | |
3425 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3426 | echo "${ECHO_T}builtin version" >&6 | |
3427 | else | |
3428 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3429 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3430 | { (exit 1); exit 1; }; } | |
3431 | fi | |
3432 | ||
3433 | ||
3434 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3435 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
3436 | no_cache=0 | |
3437 | ||
3438 | # Check whether --with-zlib or --without-zlib was given. | |
3439 | if test "${with_zlib+set}" = set; then | |
3440 | withval="$with_zlib" | |
3441 | ||
3442 | if test "$withval" = yes; then | |
3443 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
3444 | elif test "$withval" = no; then | |
3445 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
3446 | elif test "$withval" = sys; then | |
3447 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
3448 | elif test "$withval" = builtin; then | |
3449 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
3450 | else | |
3451 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3452 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3453 | { (exit 1); exit 1; }; } | |
3454 | fi | |
3455 | ||
3456 | else | |
3457 | ||
3458 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
3459 | if test "x$LINE" != x ; then | |
3460 | eval "DEFAULT_$LINE" | |
3461 | else | |
3462 | no_cache=1 | |
3463 | fi | |
3464 | ||
3465 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
3466 | ||
3467 | fi; | |
3468 | ||
3469 | eval "$ac_cv_use_zlib" | |
3470 | if test "$no_cache" != 1; then | |
3471 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
3472 | fi | |
3473 | ||
3474 | if test "$wxUSE_ZLIB" = yes; then | |
3475 | echo "$as_me:$LINENO: result: yes" >&5 | |
3476 | echo "${ECHO_T}yes" >&6 | |
3477 | elif test "$wxUSE_ZLIB" = no; then | |
3478 | echo "$as_me:$LINENO: result: no" >&5 | |
3479 | echo "${ECHO_T}no" >&6 | |
3480 | elif test "$wxUSE_ZLIB" = sys; then | |
3481 | echo "$as_me:$LINENO: result: system version" >&5 | |
3482 | echo "${ECHO_T}system version" >&6 | |
3483 | elif test "$wxUSE_ZLIB" = builtin; then | |
3484 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3485 | echo "${ECHO_T}builtin version" >&6 | |
3486 | else | |
3487 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3488 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3489 | { (exit 1); exit 1; }; } | |
3490 | fi | |
3491 | ||
3492 | ||
3493 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3494 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
3495 | no_cache=0 | |
3496 | ||
3497 | # Check whether --with-odbc or --without-odbc was given. | |
3498 | if test "${with_odbc+set}" = set; then | |
3499 | withval="$with_odbc" | |
3500 | ||
3501 | if test "$withval" = yes; then | |
3502 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
3503 | elif test "$withval" = no; then | |
3504 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
3505 | elif test "$withval" = sys; then | |
3506 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3507 | elif test "$withval" = builtin; then | |
3508 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3509 | else | |
3510 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3511 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3512 | { (exit 1); exit 1; }; } | |
3513 | fi | |
3514 | ||
3515 | else | |
3516 | ||
3517 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
3518 | if test "x$LINE" != x ; then | |
3519 | eval "DEFAULT_$LINE" | |
3520 | else | |
3521 | no_cache=1 | |
3522 | fi | |
3523 | ||
3524 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
3525 | ||
3526 | fi; | |
3527 | ||
3528 | eval "$ac_cv_use_odbc" | |
3529 | if test "$no_cache" != 1; then | |
3530 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3531 | fi | |
3532 | ||
3533 | if test "$wxUSE_ODBC" = yes; then | |
3534 | echo "$as_me:$LINENO: result: yes" >&5 | |
3535 | echo "${ECHO_T}yes" >&6 | |
3536 | elif test "$wxUSE_ODBC" = no; then | |
3537 | echo "$as_me:$LINENO: result: no" >&5 | |
3538 | echo "${ECHO_T}no" >&6 | |
3539 | elif test "$wxUSE_ODBC" = sys; then | |
3540 | echo "$as_me:$LINENO: result: system version" >&5 | |
3541 | echo "${ECHO_T}system version" >&6 | |
3542 | elif test "$wxUSE_ODBC" = builtin; then | |
3543 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3544 | echo "${ECHO_T}builtin version" >&6 | |
3545 | else | |
3546 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3547 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3548 | { (exit 1); exit 1; }; } | |
3549 | fi | |
3550 | ||
3551 | ||
3552 | echo "$as_me:$LINENO: checking for --with-expat" >&5 | |
3553 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3554 | no_cache=0 | |
3555 | ||
3556 | # Check whether --with-expat or --without-expat was given. | |
3557 | if test "${with_expat+set}" = set; then | |
3558 | withval="$with_expat" | |
3559 | ||
3560 | if test "$withval" = yes; then | |
3561 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3562 | elif test "$withval" = no; then | |
3563 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3564 | elif test "$withval" = sys; then | |
3565 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3566 | elif test "$withval" = builtin; then | |
3567 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3568 | else | |
3569 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3570 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3571 | { (exit 1); exit 1; }; } | |
3572 | fi | |
3573 | ||
3574 | else | |
3575 | ||
3576 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3577 | if test "x$LINE" != x ; then | |
3578 | eval "DEFAULT_$LINE" | |
3579 | else | |
3580 | no_cache=1 | |
3581 | fi | |
3582 | ||
3583 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3584 | ||
3585 | fi; | |
3586 | ||
3587 | eval "$ac_cv_use_expat" | |
3588 | if test "$no_cache" != 1; then | |
3589 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3590 | fi | |
3591 | ||
3592 | if test "$wxUSE_EXPAT" = yes; then | |
3593 | echo "$as_me:$LINENO: result: yes" >&5 | |
3594 | echo "${ECHO_T}yes" >&6 | |
3595 | elif test "$wxUSE_EXPAT" = no; then | |
3596 | echo "$as_me:$LINENO: result: no" >&5 | |
3597 | echo "${ECHO_T}no" >&6 | |
3598 | elif test "$wxUSE_EXPAT" = sys; then | |
3599 | echo "$as_me:$LINENO: result: system version" >&5 | |
3600 | echo "${ECHO_T}system version" >&6 | |
3601 | elif test "$wxUSE_EXPAT" = builtin; then | |
3602 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3603 | echo "${ECHO_T}builtin version" >&6 | |
3604 | else | |
3605 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3606 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3607 | { (exit 1); exit 1; }; } | |
3608 | fi | |
3609 | ||
3610 | ||
3611 | ||
3612 | ||
3613 | enablestring= | |
3614 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 | |
3615 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
3616 | no_cache=0 | |
3617 | # Check whether --enable-shared or --disable-shared was given. | |
3618 | if test "${enable_shared+set}" = set; then | |
3619 | enableval="$enable_shared" | |
3620 | ||
3621 | if test "$enableval" = yes; then | |
3622 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3623 | else | |
3624 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3625 | fi | |
3626 | ||
3627 | else | |
3628 | ||
3629 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
3630 | if test "x$LINE" != x ; then | |
3631 | eval "DEFAULT_$LINE" | |
3632 | else | |
3633 | no_cache=1 | |
3634 | fi | |
3635 | ||
3636 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
3637 | ||
3638 | fi; | |
3639 | ||
3640 | eval "$ac_cv_use_shared" | |
3641 | if test "$no_cache" != 1; then | |
3642 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3643 | fi | |
3644 | ||
3645 | if test "$wxUSE_SHARED" = yes; then | |
3646 | echo "$as_me:$LINENO: result: yes" >&5 | |
3647 | echo "${ECHO_T}yes" >&6 | |
3648 | else | |
3649 | echo "$as_me:$LINENO: result: no" >&5 | |
3650 | echo "${ECHO_T}no" >&6 | |
3651 | fi | |
3652 | ||
3653 | ||
3654 | enablestring= | |
3655 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 | |
3656 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
3657 | no_cache=0 | |
3658 | # Check whether --enable-optimise or --disable-optimise was given. | |
3659 | if test "${enable_optimise+set}" = set; then | |
3660 | enableval="$enable_optimise" | |
3661 | ||
3662 | if test "$enableval" = yes; then | |
3663 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3664 | else | |
3665 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3666 | fi | |
3667 | ||
3668 | else | |
3669 | ||
3670 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
3671 | if test "x$LINE" != x ; then | |
3672 | eval "DEFAULT_$LINE" | |
3673 | else | |
3674 | no_cache=1 | |
3675 | fi | |
3676 | ||
3677 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
3678 | ||
3679 | fi; | |
3680 | ||
3681 | eval "$ac_cv_use_optimise" | |
3682 | if test "$no_cache" != 1; then | |
3683 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3684 | fi | |
3685 | ||
3686 | if test "$wxUSE_OPTIMISE" = yes; then | |
3687 | echo "$as_me:$LINENO: result: yes" >&5 | |
3688 | echo "${ECHO_T}yes" >&6 | |
3689 | else | |
3690 | echo "$as_me:$LINENO: result: no" >&5 | |
3691 | echo "${ECHO_T}no" >&6 | |
3692 | fi | |
3693 | ||
3694 | ||
3695 | enablestring= | |
3696 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 | |
3697 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
3698 | no_cache=0 | |
3699 | # Check whether --enable-debug or --disable-debug was given. | |
3700 | if test "${enable_debug+set}" = set; then | |
3701 | enableval="$enable_debug" | |
3702 | ||
3703 | if test "$enableval" = yes; then | |
3704 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3705 | else | |
3706 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3707 | fi | |
3708 | ||
3709 | else | |
3710 | ||
3711 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
3712 | if test "x$LINE" != x ; then | |
3713 | eval "DEFAULT_$LINE" | |
3714 | else | |
3715 | no_cache=1 | |
3716 | fi | |
3717 | ||
3718 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
3719 | ||
3720 | fi; | |
3721 | ||
3722 | eval "$ac_cv_use_debug" | |
3723 | if test "$no_cache" != 1; then | |
3724 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3725 | fi | |
3726 | ||
3727 | if test "$wxUSE_DEBUG" = yes; then | |
3728 | echo "$as_me:$LINENO: result: yes" >&5 | |
3729 | echo "${ECHO_T}yes" >&6 | |
3730 | else | |
3731 | echo "$as_me:$LINENO: result: no" >&5 | |
3732 | echo "${ECHO_T}no" >&6 | |
3733 | fi | |
3734 | ||
3735 | ||
3736 | enablestring= | |
3737 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3738 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3739 | no_cache=0 | |
3740 | # Check whether --enable-stl or --disable-stl was given. | |
3741 | if test "${enable_stl+set}" = set; then | |
3742 | enableval="$enable_stl" | |
3743 | ||
3744 | if test "$enableval" = yes; then | |
3745 | ac_cv_use_stl='wxUSE_STL=yes' | |
3746 | else | |
3747 | ac_cv_use_stl='wxUSE_STL=no' | |
3748 | fi | |
3749 | ||
3750 | else | |
3751 | ||
3752 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3753 | if test "x$LINE" != x ; then | |
3754 | eval "DEFAULT_$LINE" | |
3755 | else | |
3756 | no_cache=1 | |
3757 | fi | |
3758 | ||
3759 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3760 | ||
3761 | fi; | |
3762 | ||
3763 | eval "$ac_cv_use_stl" | |
3764 | if test "$no_cache" != 1; then | |
3765 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3766 | fi | |
3767 | ||
3768 | if test "$wxUSE_STL" = yes; then | |
3769 | echo "$as_me:$LINENO: result: yes" >&5 | |
3770 | echo "${ECHO_T}yes" >&6 | |
3771 | else | |
3772 | echo "$as_me:$LINENO: result: no" >&5 | |
3773 | echo "${ECHO_T}no" >&6 | |
3774 | fi | |
3775 | ||
3776 | if test "$USE_OS2" = "1"; then | |
69120ee4 | 3777 | DEFAULT_wxUSE_OMF=no |
a848cd7e SC |
3778 | |
3779 | enablestring= | |
3780 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5 | |
3781 | echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6 | |
3782 | no_cache=0 | |
3783 | # Check whether --enable-omf or --disable-omf was given. | |
3784 | if test "${enable_omf+set}" = set; then | |
3785 | enableval="$enable_omf" | |
3786 | ||
3787 | if test "$enableval" = yes; then | |
3788 | ac_cv_use_omf='wxUSE_OMF=yes' | |
3789 | else | |
3790 | ac_cv_use_omf='wxUSE_OMF=no' | |
3791 | fi | |
3792 | ||
3793 | else | |
3794 | ||
3795 | LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}` | |
3796 | if test "x$LINE" != x ; then | |
3797 | eval "DEFAULT_$LINE" | |
3798 | else | |
3799 | no_cache=1 | |
3800 | fi | |
3801 | ||
3802 | ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF | |
3803 | ||
3804 | fi; | |
3805 | ||
3806 | eval "$ac_cv_use_omf" | |
3807 | if test "$no_cache" != 1; then | |
3808 | echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp | |
3809 | fi | |
3810 | ||
3811 | if test "$wxUSE_OMF" = yes; then | |
3812 | echo "$as_me:$LINENO: result: yes" >&5 | |
3813 | echo "${ECHO_T}yes" >&6 | |
3814 | else | |
3815 | echo "$as_me:$LINENO: result: no" >&5 | |
3816 | echo "${ECHO_T}no" >&6 | |
3817 | fi | |
3818 | ||
3819 | fi | |
3820 | ||
3821 | if test "$wxUSE_DEBUG" = "yes"; then | |
3822 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3823 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
3824 | BUILD=debug | |
3825 | elif test "$wxUSE_DEBUG" = "no"; then | |
3826 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3827 | DEFAULT_wxUSE_DEBUG_INFO=no | |
3828 | BUILD=release | |
3829 | fi | |
3830 | ||
3831 | ||
3832 | enablestring= | |
3833 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 | |
3834 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
3835 | no_cache=0 | |
3836 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3837 | if test "${enable_debug_flag+set}" = set; then | |
3838 | enableval="$enable_debug_flag" | |
3839 | ||
3840 | if test "$enableval" = yes; then | |
3841 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3842 | else | |
3843 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3844 | fi | |
3845 | ||
3846 | else | |
3847 | ||
3848 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
3849 | if test "x$LINE" != x ; then | |
3850 | eval "DEFAULT_$LINE" | |
3851 | else | |
3852 | no_cache=1 | |
3853 | fi | |
3854 | ||
3855 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
3856 | ||
3857 | fi; | |
3858 | ||
3859 | eval "$ac_cv_use_debug_flag" | |
3860 | if test "$no_cache" != 1; then | |
3861 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3862 | fi | |
3863 | ||
3864 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
3865 | echo "$as_me:$LINENO: result: yes" >&5 | |
3866 | echo "${ECHO_T}yes" >&6 | |
3867 | else | |
3868 | echo "$as_me:$LINENO: result: no" >&5 | |
3869 | echo "${ECHO_T}no" >&6 | |
3870 | fi | |
3871 | ||
3872 | ||
3873 | enablestring= | |
3874 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 | |
3875 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
3876 | no_cache=0 | |
3877 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3878 | if test "${enable_debug_info+set}" = set; then | |
3879 | enableval="$enable_debug_info" | |
3880 | ||
3881 | if test "$enableval" = yes; then | |
3882 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3883 | else | |
3884 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3885 | fi | |
3886 | ||
3887 | else | |
3888 | ||
3889 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
3890 | if test "x$LINE" != x ; then | |
3891 | eval "DEFAULT_$LINE" | |
3892 | else | |
3893 | no_cache=1 | |
3894 | fi | |
3895 | ||
3896 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
3897 | ||
3898 | fi; | |
3899 | ||
3900 | eval "$ac_cv_use_debug_info" | |
3901 | if test "$no_cache" != 1; then | |
3902 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3903 | fi | |
3904 | ||
3905 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
3906 | echo "$as_me:$LINENO: result: yes" >&5 | |
3907 | echo "${ECHO_T}yes" >&6 | |
3908 | else | |
3909 | echo "$as_me:$LINENO: result: no" >&5 | |
3910 | echo "${ECHO_T}no" >&6 | |
3911 | fi | |
3912 | ||
3913 | ||
3914 | enablestring= | |
3915 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 | |
3916 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
3917 | no_cache=0 | |
3918 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3919 | if test "${enable_debug_gdb+set}" = set; then | |
3920 | enableval="$enable_debug_gdb" | |
3921 | ||
3922 | if test "$enableval" = yes; then | |
3923 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3924 | else | |
3925 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3926 | fi | |
3927 | ||
3928 | else | |
3929 | ||
3930 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
3931 | if test "x$LINE" != x ; then | |
3932 | eval "DEFAULT_$LINE" | |
3933 | else | |
3934 | no_cache=1 | |
3935 | fi | |
3936 | ||
3937 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
3938 | ||
3939 | fi; | |
3940 | ||
3941 | eval "$ac_cv_use_debug_gdb" | |
3942 | if test "$no_cache" != 1; then | |
3943 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3944 | fi | |
3945 | ||
3946 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
3947 | echo "$as_me:$LINENO: result: yes" >&5 | |
3948 | echo "${ECHO_T}yes" >&6 | |
3949 | else | |
3950 | echo "$as_me:$LINENO: result: no" >&5 | |
3951 | echo "${ECHO_T}no" >&6 | |
3952 | fi | |
3953 | ||
3954 | ||
3955 | enablestring= | |
3956 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 | |
3957 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
3958 | no_cache=0 | |
3959 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3960 | if test "${enable_debug_cntxt+set}" = set; then | |
3961 | enableval="$enable_debug_cntxt" | |
3962 | ||
3963 | if test "$enableval" = yes; then | |
3964 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3965 | else | |
3966 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3967 | fi | |
3968 | ||
3969 | else | |
3970 | ||
3971 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
3972 | if test "x$LINE" != x ; then | |
3973 | eval "DEFAULT_$LINE" | |
3974 | else | |
3975 | no_cache=1 | |
3976 | fi | |
3977 | ||
3978 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
3979 | ||
3980 | fi; | |
3981 | ||
3982 | eval "$ac_cv_use_debug_cntxt" | |
3983 | if test "$no_cache" != 1; then | |
3984 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3985 | fi | |
3986 | ||
3987 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
3988 | echo "$as_me:$LINENO: result: yes" >&5 | |
3989 | echo "${ECHO_T}yes" >&6 | |
3990 | else | |
3991 | echo "$as_me:$LINENO: result: no" >&5 | |
3992 | echo "${ECHO_T}no" >&6 | |
3993 | fi | |
3994 | ||
3995 | ||
3996 | enablestring= | |
3997 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 | |
3998 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
3999 | no_cache=0 | |
4000 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
4001 | if test "${enable_mem_tracing+set}" = set; then | |
4002 | enableval="$enable_mem_tracing" | |
4003 | ||
4004 | if test "$enableval" = yes; then | |
4005 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
4006 | else | |
4007 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
4008 | fi | |
4009 | ||
4010 | else | |
4011 | ||
4012 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
4013 | if test "x$LINE" != x ; then | |
4014 | eval "DEFAULT_$LINE" | |
4015 | else | |
4016 | no_cache=1 | |
4017 | fi | |
4018 | ||
4019 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
4020 | ||
4021 | fi; | |
4022 | ||
4023 | eval "$ac_cv_use_mem_tracing" | |
4024 | if test "$no_cache" != 1; then | |
4025 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
4026 | fi | |
4027 | ||
4028 | if test "$wxUSE_MEM_TRACING" = yes; then | |
4029 | echo "$as_me:$LINENO: result: yes" >&5 | |
4030 | echo "${ECHO_T}yes" >&6 | |
4031 | else | |
4032 | echo "$as_me:$LINENO: result: no" >&5 | |
4033 | echo "${ECHO_T}no" >&6 | |
4034 | fi | |
4035 | ||
4036 | ||
4037 | enablestring= | |
4038 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 | |
4039 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
4040 | no_cache=0 | |
4041 | # Check whether --enable-profile or --disable-profile was given. | |
4042 | if test "${enable_profile+set}" = set; then | |
4043 | enableval="$enable_profile" | |
4044 | ||
4045 | if test "$enableval" = yes; then | |
4046 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
4047 | else | |
4048 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
4049 | fi | |
4050 | ||
4051 | else | |
4052 | ||
4053 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
4054 | if test "x$LINE" != x ; then | |
4055 | eval "DEFAULT_$LINE" | |
4056 | else | |
4057 | no_cache=1 | |
4058 | fi | |
4059 | ||
4060 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
4061 | ||
4062 | fi; | |
4063 | ||
4064 | eval "$ac_cv_use_profile" | |
4065 | if test "$no_cache" != 1; then | |
4066 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
4067 | fi | |
4068 | ||
4069 | if test "$wxUSE_PROFILE" = yes; then | |
4070 | echo "$as_me:$LINENO: result: yes" >&5 | |
4071 | echo "${ECHO_T}yes" >&6 | |
4072 | else | |
4073 | echo "$as_me:$LINENO: result: no" >&5 | |
4074 | echo "${ECHO_T}no" >&6 | |
4075 | fi | |
4076 | ||
4077 | ||
4078 | enablestring= | |
4079 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 | |
4080 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
4081 | no_cache=0 | |
4082 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
4083 | if test "${enable_no_rtti+set}" = set; then | |
4084 | enableval="$enable_no_rtti" | |
4085 | ||
4086 | if test "$enableval" = yes; then | |
4087 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
4088 | else | |
4089 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
4090 | fi | |
4091 | ||
4092 | else | |
4093 | ||
4094 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
4095 | if test "x$LINE" != x ; then | |
4096 | eval "DEFAULT_$LINE" | |
4097 | else | |
4098 | no_cache=1 | |
4099 | fi | |
4100 | ||
4101 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
4102 | ||
4103 | fi; | |
4104 | ||
4105 | eval "$ac_cv_use_no_rtti" | |
4106 | if test "$no_cache" != 1; then | |
4107 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
4108 | fi | |
4109 | ||
4110 | if test "$wxUSE_NO_RTTI" = yes; then | |
4111 | echo "$as_me:$LINENO: result: yes" >&5 | |
4112 | echo "${ECHO_T}yes" >&6 | |
4113 | else | |
4114 | echo "$as_me:$LINENO: result: no" >&5 | |
4115 | echo "${ECHO_T}no" >&6 | |
4116 | fi | |
4117 | ||
4118 | ||
4119 | enablestring= | |
4120 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 | |
4121 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
4122 | no_cache=0 | |
4123 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
4124 | if test "${enable_no_exceptions+set}" = set; then | |
4125 | enableval="$enable_no_exceptions" | |
4126 | ||
4127 | if test "$enableval" = yes; then | |
4128 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
4129 | else | |
4130 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
4131 | fi | |
4132 | ||
4133 | else | |
4134 | ||
4135 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
4136 | if test "x$LINE" != x ; then | |
4137 | eval "DEFAULT_$LINE" | |
4138 | else | |
4139 | no_cache=1 | |
4140 | fi | |
4141 | ||
4142 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
4143 | ||
4144 | fi; | |
4145 | ||
4146 | eval "$ac_cv_use_no_exceptions" | |
4147 | if test "$no_cache" != 1; then | |
4148 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
4149 | fi | |
4150 | ||
4151 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
4152 | echo "$as_me:$LINENO: result: yes" >&5 | |
4153 | echo "${ECHO_T}yes" >&6 | |
4154 | else | |
4155 | echo "$as_me:$LINENO: result: no" >&5 | |
4156 | echo "${ECHO_T}no" >&6 | |
4157 | fi | |
4158 | ||
4159 | ||
4160 | enablestring= | |
4161 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 | |
4162 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
4163 | no_cache=0 | |
4164 | # Check whether --enable-permissive or --disable-permissive was given. | |
4165 | if test "${enable_permissive+set}" = set; then | |
4166 | enableval="$enable_permissive" | |
4167 | ||
4168 | if test "$enableval" = yes; then | |
4169 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
4170 | else | |
4171 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
4172 | fi | |
4173 | ||
4174 | else | |
4175 | ||
4176 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
4177 | if test "x$LINE" != x ; then | |
4178 | eval "DEFAULT_$LINE" | |
4179 | else | |
4180 | no_cache=1 | |
4181 | fi | |
4182 | ||
4183 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
4184 | ||
4185 | fi; | |
4186 | ||
4187 | eval "$ac_cv_use_permissive" | |
4188 | if test "$no_cache" != 1; then | |
4189 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
4190 | fi | |
4191 | ||
4192 | if test "$wxUSE_PERMISSIVE" = yes; then | |
4193 | echo "$as_me:$LINENO: result: yes" >&5 | |
4194 | echo "${ECHO_T}yes" >&6 | |
4195 | else | |
4196 | echo "$as_me:$LINENO: result: no" >&5 | |
4197 | echo "${ECHO_T}no" >&6 | |
4198 | fi | |
4199 | ||
4200 | ||
4201 | enablestring= | |
4202 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 | |
4203 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
4204 | no_cache=0 | |
4205 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
4206 | if test "${enable_no_deps+set}" = set; then | |
4207 | enableval="$enable_no_deps" | |
4208 | ||
4209 | if test "$enableval" = yes; then | |
4210 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
4211 | else | |
4212 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
4213 | fi | |
4214 | ||
4215 | else | |
4216 | ||
4217 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
4218 | if test "x$LINE" != x ; then | |
4219 | eval "DEFAULT_$LINE" | |
4220 | else | |
4221 | no_cache=1 | |
4222 | fi | |
4223 | ||
4224 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
4225 | ||
4226 | fi; | |
4227 | ||
4228 | eval "$ac_cv_use_no_deps" | |
4229 | if test "$no_cache" != 1; then | |
4230 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
4231 | fi | |
4232 | ||
4233 | if test "$wxUSE_NO_DEPS" = yes; then | |
4234 | echo "$as_me:$LINENO: result: yes" >&5 | |
4235 | echo "${ECHO_T}yes" >&6 | |
4236 | else | |
4237 | echo "$as_me:$LINENO: result: no" >&5 | |
4238 | echo "${ECHO_T}no" >&6 | |
4239 | fi | |
4240 | ||
4241 | ||
7afc46ab KO |
4242 | enablestring= |
4243 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5 | |
4244 | echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6 | |
4245 | no_cache=0 | |
4246 | # Check whether --enable-universal_binary or --disable-universal_binary was given. | |
4247 | if test "${enable_universal_binary+set}" = set; then | |
4248 | enableval="$enable_universal_binary" | |
4249 | ||
4250 | if test "$enableval" = yes; then | |
4251 | ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY=yes' | |
4252 | else | |
4253 | ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY=no' | |
4254 | fi | |
4255 | ||
4256 | else | |
4257 | ||
4258 | LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}` | |
4259 | if test "x$LINE" != x ; then | |
4260 | eval "DEFAULT_$LINE" | |
4261 | else | |
4262 | no_cache=1 | |
4263 | fi | |
4264 | ||
4265 | ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY | |
4266 | ||
4267 | fi; | |
4268 | ||
4269 | eval "$ac_cv_use_universal_binary" | |
4270 | if test "$no_cache" != 1; then | |
4271 | echo $ac_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp | |
4272 | fi | |
4273 | ||
4274 | if test "$wxUSE_UNIVERSAL_BINARY" = yes; then | |
4275 | echo "$as_me:$LINENO: result: yes" >&5 | |
4276 | echo "${ECHO_T}yes" >&6 | |
4277 | else | |
4278 | echo "$as_me:$LINENO: result: no" >&5 | |
4279 | echo "${ECHO_T}no" >&6 | |
4280 | fi | |
4281 | ||
4282 | ||
a848cd7e | 4283 | |
dee1a63f MB |
4284 | enablestring=enable |
4285 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 | |
4286 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
a848cd7e | 4287 | no_cache=0 |
dee1a63f MB |
4288 | # Check whether --enable-compat24 or --disable-compat24 was given. |
4289 | if test "${enable_compat24+set}" = set; then | |
4290 | enableval="$enable_compat24" | |
a848cd7e SC |
4291 | |
4292 | if test "$enableval" = yes; then | |
dee1a63f | 4293 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' |
a848cd7e | 4294 | else |
dee1a63f | 4295 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' |
a848cd7e SC |
4296 | fi |
4297 | ||
4298 | else | |
4299 | ||
dee1a63f | 4300 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` |
a848cd7e SC |
4301 | if test "x$LINE" != x ; then |
4302 | eval "DEFAULT_$LINE" | |
4303 | else | |
4304 | no_cache=1 | |
4305 | fi | |
4306 | ||
dee1a63f | 4307 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 |
a848cd7e SC |
4308 | |
4309 | fi; | |
4310 | ||
dee1a63f | 4311 | eval "$ac_cv_use_compat24" |
a848cd7e | 4312 | if test "$no_cache" != 1; then |
dee1a63f | 4313 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
4314 | fi |
4315 | ||
dee1a63f | 4316 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then |
a848cd7e SC |
4317 | echo "$as_me:$LINENO: result: yes" >&5 |
4318 | echo "${ECHO_T}yes" >&6 | |
4319 | else | |
4320 | echo "$as_me:$LINENO: result: no" >&5 | |
4321 | echo "${ECHO_T}no" >&6 | |
4322 | fi | |
4323 | ||
4324 | ||
4325 | enablestring=disable | |
dee1a63f MB |
4326 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5 |
4327 | echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6 | |
a848cd7e | 4328 | no_cache=0 |
dee1a63f MB |
4329 | # Check whether --enable-compat26 or --disable-compat26 was given. |
4330 | if test "${enable_compat26+set}" = set; then | |
4331 | enableval="$enable_compat26" | |
a848cd7e SC |
4332 | |
4333 | if test "$enableval" = yes; then | |
dee1a63f | 4334 | ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes' |
a848cd7e | 4335 | else |
dee1a63f | 4336 | ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no' |
a848cd7e SC |
4337 | fi |
4338 | ||
4339 | else | |
4340 | ||
dee1a63f | 4341 | LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}` |
a848cd7e SC |
4342 | if test "x$LINE" != x ; then |
4343 | eval "DEFAULT_$LINE" | |
4344 | else | |
4345 | no_cache=1 | |
4346 | fi | |
4347 | ||
dee1a63f | 4348 | ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6 |
a848cd7e SC |
4349 | |
4350 | fi; | |
4351 | ||
dee1a63f | 4352 | eval "$ac_cv_use_compat26" |
a848cd7e | 4353 | if test "$no_cache" != 1; then |
dee1a63f | 4354 | echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
4355 | fi |
4356 | ||
dee1a63f | 4357 | if test "$WXWIN_COMPATIBILITY_2_6" = yes; then |
a848cd7e SC |
4358 | echo "$as_me:$LINENO: result: yes" >&5 |
4359 | echo "${ECHO_T}yes" >&6 | |
4360 | else | |
4361 | echo "$as_me:$LINENO: result: no" >&5 | |
4362 | echo "${ECHO_T}no" >&6 | |
4363 | fi | |
4364 | ||
4365 | ||
ffa0583f RL |
4366 | |
4367 | enablestring= | |
4368 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5 | |
4369 | echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6 | |
4370 | no_cache=0 | |
4371 | # Check whether --enable-rpath or --disable-rpath was given. | |
a848cd7e SC |
4372 | if test "${enable_rpath+set}" = set; then |
4373 | enableval="$enable_rpath" | |
ffa0583f RL |
4374 | |
4375 | if test "$enableval" = yes; then | |
4376 | ac_cv_use_rpath='wxUSE_RPATH=yes' | |
4377 | else | |
4378 | ac_cv_use_rpath='wxUSE_RPATH=no' | |
4379 | fi | |
4380 | ||
4381 | else | |
4382 | ||
4383 | LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}` | |
4384 | if test "x$LINE" != x ; then | |
4385 | eval "DEFAULT_$LINE" | |
4386 | else | |
4387 | no_cache=1 | |
4388 | fi | |
4389 | ||
4390 | ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH | |
4391 | ||
a848cd7e SC |
4392 | fi; |
4393 | ||
ffa0583f RL |
4394 | eval "$ac_cv_use_rpath" |
4395 | if test "$no_cache" != 1; then | |
4396 | echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp | |
4397 | fi | |
4398 | ||
4399 | if test "$wxUSE_RPATH" = yes; then | |
4400 | echo "$as_me:$LINENO: result: yes" >&5 | |
4401 | echo "${ECHO_T}yes" >&6 | |
4402 | else | |
4403 | echo "$as_me:$LINENO: result: no" >&5 | |
4404 | echo "${ECHO_T}no" >&6 | |
4405 | fi | |
4406 | ||
a848cd7e SC |
4407 | |
4408 | ||
4409 | ||
4410 | ||
4411 | enablestring= | |
4412 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 | |
4413 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
4414 | no_cache=0 | |
4415 | # Check whether --enable-intl or --disable-intl was given. | |
4416 | if test "${enable_intl+set}" = set; then | |
4417 | enableval="$enable_intl" | |
4418 | ||
4419 | if test "$enableval" = yes; then | |
4420 | ac_cv_use_intl='wxUSE_INTL=yes' | |
4421 | else | |
4422 | ac_cv_use_intl='wxUSE_INTL=no' | |
4423 | fi | |
4424 | ||
4425 | else | |
4426 | ||
4427 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
4428 | if test "x$LINE" != x ; then | |
4429 | eval "DEFAULT_$LINE" | |
4430 | else | |
4431 | no_cache=1 | |
4432 | fi | |
4433 | ||
4434 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
4435 | ||
4436 | fi; | |
4437 | ||
4438 | eval "$ac_cv_use_intl" | |
4439 | if test "$no_cache" != 1; then | |
4440 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
4441 | fi | |
4442 | ||
4443 | if test "$wxUSE_INTL" = yes; then | |
4444 | echo "$as_me:$LINENO: result: yes" >&5 | |
4445 | echo "${ECHO_T}yes" >&6 | |
4446 | else | |
4447 | echo "$as_me:$LINENO: result: no" >&5 | |
4448 | echo "${ECHO_T}no" >&6 | |
4449 | fi | |
4450 | ||
4451 | ||
4452 | enablestring= | |
4453 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 | |
4454 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
4455 | no_cache=0 | |
4456 | # Check whether --enable-config or --disable-config was given. | |
4457 | if test "${enable_config+set}" = set; then | |
4458 | enableval="$enable_config" | |
4459 | ||
4460 | if test "$enableval" = yes; then | |
4461 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
4462 | else | |
4463 | ac_cv_use_config='wxUSE_CONFIG=no' | |
4464 | fi | |
4465 | ||
4466 | else | |
4467 | ||
4468 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
4469 | if test "x$LINE" != x ; then | |
4470 | eval "DEFAULT_$LINE" | |
4471 | else | |
4472 | no_cache=1 | |
4473 | fi | |
4474 | ||
4475 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
4476 | ||
4477 | fi; | |
4478 | ||
4479 | eval "$ac_cv_use_config" | |
4480 | if test "$no_cache" != 1; then | |
4481 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
4482 | fi | |
4483 | ||
4484 | if test "$wxUSE_CONFIG" = yes; then | |
4485 | echo "$as_me:$LINENO: result: yes" >&5 | |
4486 | echo "${ECHO_T}yes" >&6 | |
4487 | else | |
4488 | echo "$as_me:$LINENO: result: no" >&5 | |
4489 | echo "${ECHO_T}no" >&6 | |
4490 | fi | |
4491 | ||
4492 | ||
4493 | ||
4494 | enablestring= | |
4495 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 | |
4496 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
4497 | no_cache=0 | |
4498 | # Check whether --enable-protocols or --disable-protocols was given. | |
4499 | if test "${enable_protocols+set}" = set; then | |
4500 | enableval="$enable_protocols" | |
4501 | ||
4502 | if test "$enableval" = yes; then | |
4503 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
4504 | else | |
4505 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
4506 | fi | |
4507 | ||
4508 | else | |
4509 | ||
4510 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4511 | if test "x$LINE" != x ; then | |
4512 | eval "DEFAULT_$LINE" | |
4513 | else | |
4514 | no_cache=1 | |
4515 | fi | |
4516 | ||
4517 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4518 | ||
4519 | fi; | |
4520 | ||
4521 | eval "$ac_cv_use_protocols" | |
4522 | if test "$no_cache" != 1; then | |
4523 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4524 | fi | |
4525 | ||
4526 | if test "$wxUSE_PROTOCOL" = yes; then | |
4527 | echo "$as_me:$LINENO: result: yes" >&5 | |
4528 | echo "${ECHO_T}yes" >&6 | |
4529 | else | |
4530 | echo "$as_me:$LINENO: result: no" >&5 | |
4531 | echo "${ECHO_T}no" >&6 | |
4532 | fi | |
4533 | ||
4534 | ||
4535 | enablestring= | |
4536 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 | |
4537 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
4538 | no_cache=0 | |
4539 | # Check whether --enable-ftp or --disable-ftp was given. | |
4540 | if test "${enable_ftp+set}" = set; then | |
4541 | enableval="$enable_ftp" | |
4542 | ||
4543 | if test "$enableval" = yes; then | |
4544 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4545 | else | |
4546 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4547 | fi | |
4548 | ||
4549 | else | |
4550 | ||
4551 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4552 | if test "x$LINE" != x ; then | |
4553 | eval "DEFAULT_$LINE" | |
4554 | else | |
4555 | no_cache=1 | |
4556 | fi | |
4557 | ||
4558 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4559 | ||
4560 | fi; | |
4561 | ||
4562 | eval "$ac_cv_use_ftp" | |
4563 | if test "$no_cache" != 1; then | |
4564 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4565 | fi | |
4566 | ||
4567 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4568 | echo "$as_me:$LINENO: result: yes" >&5 | |
4569 | echo "${ECHO_T}yes" >&6 | |
4570 | else | |
4571 | echo "$as_me:$LINENO: result: no" >&5 | |
4572 | echo "${ECHO_T}no" >&6 | |
4573 | fi | |
4574 | ||
4575 | ||
4576 | enablestring= | |
4577 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 | |
4578 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
4579 | no_cache=0 | |
4580 | # Check whether --enable-http or --disable-http was given. | |
4581 | if test "${enable_http+set}" = set; then | |
4582 | enableval="$enable_http" | |
4583 | ||
4584 | if test "$enableval" = yes; then | |
4585 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4586 | else | |
4587 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4588 | fi | |
4589 | ||
4590 | else | |
4591 | ||
4592 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4593 | if test "x$LINE" != x ; then | |
4594 | eval "DEFAULT_$LINE" | |
4595 | else | |
4596 | no_cache=1 | |
4597 | fi | |
4598 | ||
4599 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4600 | ||
4601 | fi; | |
4602 | ||
4603 | eval "$ac_cv_use_http" | |
4604 | if test "$no_cache" != 1; then | |
4605 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4606 | fi | |
4607 | ||
4608 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4609 | echo "$as_me:$LINENO: result: yes" >&5 | |
4610 | echo "${ECHO_T}yes" >&6 | |
4611 | else | |
4612 | echo "$as_me:$LINENO: result: no" >&5 | |
4613 | echo "${ECHO_T}no" >&6 | |
4614 | fi | |
4615 | ||
4616 | ||
4617 | enablestring= | |
4618 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 | |
4619 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
4620 | no_cache=0 | |
4621 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4622 | if test "${enable_fileproto+set}" = set; then | |
4623 | enableval="$enable_fileproto" | |
4624 | ||
4625 | if test "$enableval" = yes; then | |
4626 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4627 | else | |
4628 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4629 | fi | |
4630 | ||
4631 | else | |
4632 | ||
4633 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4634 | if test "x$LINE" != x ; then | |
4635 | eval "DEFAULT_$LINE" | |
4636 | else | |
4637 | no_cache=1 | |
4638 | fi | |
4639 | ||
4640 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4641 | ||
4642 | fi; | |
4643 | ||
4644 | eval "$ac_cv_use_fileproto" | |
4645 | if test "$no_cache" != 1; then | |
4646 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4647 | fi | |
4648 | ||
4649 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4650 | echo "$as_me:$LINENO: result: yes" >&5 | |
4651 | echo "${ECHO_T}yes" >&6 | |
4652 | else | |
4653 | echo "$as_me:$LINENO: result: no" >&5 | |
4654 | echo "${ECHO_T}no" >&6 | |
4655 | fi | |
4656 | ||
4657 | ||
4658 | enablestring= | |
4659 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 | |
4660 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
4661 | no_cache=0 | |
4662 | # Check whether --enable-sockets or --disable-sockets was given. | |
4663 | if test "${enable_sockets+set}" = set; then | |
4664 | enableval="$enable_sockets" | |
4665 | ||
4666 | if test "$enableval" = yes; then | |
4667 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4668 | else | |
4669 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4670 | fi | |
4671 | ||
4672 | else | |
4673 | ||
4674 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
4675 | if test "x$LINE" != x ; then | |
4676 | eval "DEFAULT_$LINE" | |
4677 | else | |
4678 | no_cache=1 | |
4679 | fi | |
4680 | ||
4681 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
4682 | ||
4683 | fi; | |
4684 | ||
4685 | eval "$ac_cv_use_sockets" | |
4686 | if test "$no_cache" != 1; then | |
4687 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4688 | fi | |
4689 | ||
4690 | if test "$wxUSE_SOCKETS" = yes; then | |
4691 | echo "$as_me:$LINENO: result: yes" >&5 | |
4692 | echo "${ECHO_T}yes" >&6 | |
4693 | else | |
4694 | echo "$as_me:$LINENO: result: no" >&5 | |
4695 | echo "${ECHO_T}no" >&6 | |
4696 | fi | |
4697 | ||
4698 | ||
4699 | enablestring= | |
4700 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 | |
4701 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
4702 | no_cache=0 | |
4703 | # Check whether --enable-ole or --disable-ole was given. | |
4704 | if test "${enable_ole+set}" = set; then | |
4705 | enableval="$enable_ole" | |
4706 | ||
4707 | if test "$enableval" = yes; then | |
4708 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4709 | else | |
4710 | ac_cv_use_ole='wxUSE_OLE=no' | |
4711 | fi | |
4712 | ||
4713 | else | |
4714 | ||
4715 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
4716 | if test "x$LINE" != x ; then | |
4717 | eval "DEFAULT_$LINE" | |
4718 | else | |
4719 | no_cache=1 | |
4720 | fi | |
4721 | ||
4722 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
4723 | ||
4724 | fi; | |
4725 | ||
4726 | eval "$ac_cv_use_ole" | |
4727 | if test "$no_cache" != 1; then | |
4728 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4729 | fi | |
4730 | ||
4731 | if test "$wxUSE_OLE" = yes; then | |
4732 | echo "$as_me:$LINENO: result: yes" >&5 | |
4733 | echo "${ECHO_T}yes" >&6 | |
4734 | else | |
4735 | echo "$as_me:$LINENO: result: no" >&5 | |
4736 | echo "${ECHO_T}no" >&6 | |
4737 | fi | |
4738 | ||
4739 | ||
4740 | enablestring= | |
4741 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 | |
4742 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
4743 | no_cache=0 | |
4744 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4745 | if test "${enable_dataobj+set}" = set; then | |
4746 | enableval="$enable_dataobj" | |
4747 | ||
4748 | if test "$enableval" = yes; then | |
4749 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4750 | else | |
4751 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4752 | fi | |
4753 | ||
4754 | else | |
4755 | ||
4756 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
4757 | if test "x$LINE" != x ; then | |
4758 | eval "DEFAULT_$LINE" | |
4759 | else | |
4760 | no_cache=1 | |
4761 | fi | |
4762 | ||
4763 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
4764 | ||
4765 | fi; | |
4766 | ||
4767 | eval "$ac_cv_use_dataobj" | |
4768 | if test "$no_cache" != 1; then | |
4769 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4770 | fi | |
4771 | ||
4772 | if test "$wxUSE_DATAOBJ" = yes; then | |
4773 | echo "$as_me:$LINENO: result: yes" >&5 | |
4774 | echo "${ECHO_T}yes" >&6 | |
4775 | else | |
4776 | echo "$as_me:$LINENO: result: no" >&5 | |
4777 | echo "${ECHO_T}no" >&6 | |
4778 | fi | |
4779 | ||
4780 | ||
4781 | ||
4782 | enablestring= | |
4783 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 | |
4784 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
4785 | no_cache=0 | |
4786 | # Check whether --enable-ipc or --disable-ipc was given. | |
4787 | if test "${enable_ipc+set}" = set; then | |
4788 | enableval="$enable_ipc" | |
4789 | ||
4790 | if test "$enableval" = yes; then | |
4791 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
4792 | else | |
4793 | ac_cv_use_ipc='wxUSE_IPC=no' | |
4794 | fi | |
4795 | ||
4796 | else | |
4797 | ||
4798 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
4799 | if test "x$LINE" != x ; then | |
4800 | eval "DEFAULT_$LINE" | |
4801 | else | |
4802 | no_cache=1 | |
4803 | fi | |
4804 | ||
4805 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
4806 | ||
4807 | fi; | |
4808 | ||
4809 | eval "$ac_cv_use_ipc" | |
4810 | if test "$no_cache" != 1; then | |
4811 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
4812 | fi | |
4813 | ||
4814 | if test "$wxUSE_IPC" = yes; then | |
4815 | echo "$as_me:$LINENO: result: yes" >&5 | |
4816 | echo "${ECHO_T}yes" >&6 | |
4817 | else | |
4818 | echo "$as_me:$LINENO: result: no" >&5 | |
4819 | echo "${ECHO_T}no" >&6 | |
4820 | fi | |
4821 | ||
4822 | ||
4823 | ||
4824 | enablestring= | |
4825 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 | |
4826 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
4827 | no_cache=0 | |
4828 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4829 | if test "${enable_apple_ieee+set}" = set; then | |
4830 | enableval="$enable_apple_ieee" | |
4831 | ||
4832 | if test "$enableval" = yes; then | |
4833 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4834 | else | |
4835 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4836 | fi | |
4837 | ||
4838 | else | |
4839 | ||
4840 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
4841 | if test "x$LINE" != x ; then | |
4842 | eval "DEFAULT_$LINE" | |
4843 | else | |
4844 | no_cache=1 | |
4845 | fi | |
4846 | ||
4847 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
4848 | ||
4849 | fi; | |
4850 | ||
4851 | eval "$ac_cv_use_apple_ieee" | |
4852 | if test "$no_cache" != 1; then | |
4853 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4854 | fi | |
4855 | ||
4856 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
4857 | echo "$as_me:$LINENO: result: yes" >&5 | |
4858 | echo "${ECHO_T}yes" >&6 | |
4859 | else | |
4860 | echo "$as_me:$LINENO: result: no" >&5 | |
4861 | echo "${ECHO_T}no" >&6 | |
4862 | fi | |
4863 | ||
4864 | ||
81f90336 MW |
4865 | enablestring= |
4866 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5 | |
4867 | echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6 | |
4868 | no_cache=0 | |
4869 | # Check whether --enable-arcstream or --disable-arcstream was given. | |
4870 | if test "${enable_arcstream+set}" = set; then | |
4871 | enableval="$enable_arcstream" | |
4872 | ||
4873 | if test "$enableval" = yes; then | |
9e8e867f | 4874 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes' |
81f90336 | 4875 | else |
9e8e867f | 4876 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no' |
81f90336 MW |
4877 | fi |
4878 | ||
4879 | else | |
4880 | ||
9e8e867f | 4881 | LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}` |
81f90336 MW |
4882 | if test "x$LINE" != x ; then |
4883 | eval "DEFAULT_$LINE" | |
4884 | else | |
4885 | no_cache=1 | |
4886 | fi | |
4887 | ||
9e8e867f | 4888 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS |
81f90336 MW |
4889 | |
4890 | fi; | |
4891 | ||
4892 | eval "$ac_cv_use_arcstream" | |
4893 | if test "$no_cache" != 1; then | |
4894 | echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp | |
4895 | fi | |
4896 | ||
9e8e867f | 4897 | if test "$wxUSE_ARCHIVE_STREAMS" = yes; then |
81f90336 MW |
4898 | echo "$as_me:$LINENO: result: yes" >&5 |
4899 | echo "${ECHO_T}yes" >&6 | |
4900 | else | |
4901 | echo "$as_me:$LINENO: result: no" >&5 | |
4902 | echo "${ECHO_T}no" >&6 | |
4903 | fi | |
4904 | ||
4905 | ||
a848cd7e | 4906 | enablestring= |
36b6448c VZ |
4907 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5 |
4908 | echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6 | |
a848cd7e | 4909 | no_cache=0 |
36b6448c VZ |
4910 | # Check whether --enable-backtrace or --disable-backtrace was given. |
4911 | if test "${enable_backtrace+set}" = set; then | |
4912 | enableval="$enable_backtrace" | |
a848cd7e SC |
4913 | |
4914 | if test "$enableval" = yes; then | |
36b6448c | 4915 | ac_cv_use_backtrace='wxUSE_STACKWALKER=yes' |
a848cd7e | 4916 | else |
36b6448c | 4917 | ac_cv_use_backtrace='wxUSE_STACKWALKER=no' |
a848cd7e SC |
4918 | fi |
4919 | ||
4920 | else | |
4921 | ||
36b6448c | 4922 | LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}` |
a848cd7e SC |
4923 | if test "x$LINE" != x ; then |
4924 | eval "DEFAULT_$LINE" | |
4925 | else | |
4926 | no_cache=1 | |
4927 | fi | |
4928 | ||
36b6448c | 4929 | ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER |
a848cd7e SC |
4930 | |
4931 | fi; | |
4932 | ||
36b6448c | 4933 | eval "$ac_cv_use_backtrace" |
a848cd7e | 4934 | if test "$no_cache" != 1; then |
36b6448c | 4935 | echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
4936 | fi |
4937 | ||
36b6448c | 4938 | if test "$wxUSE_STACKWALKER" = yes; then |
a848cd7e SC |
4939 | echo "$as_me:$LINENO: result: yes" >&5 |
4940 | echo "${ECHO_T}yes" >&6 | |
4941 | else | |
4942 | echo "$as_me:$LINENO: result: no" >&5 | |
4943 | echo "${ECHO_T}no" >&6 | |
4944 | fi | |
4945 | ||
4946 | ||
eaff0f0d | 4947 | enablestring= |
36b6448c VZ |
4948 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 |
4949 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
eaff0f0d | 4950 | no_cache=0 |
36b6448c VZ |
4951 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. |
4952 | if test "${enable_catch_segvs+set}" = set; then | |
4953 | enableval="$enable_catch_segvs" | |
eaff0f0d VZ |
4954 | |
4955 | if test "$enableval" = yes; then | |
36b6448c | 4956 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' |
eaff0f0d | 4957 | else |
36b6448c | 4958 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' |
eaff0f0d VZ |
4959 | fi |
4960 | ||
4961 | else | |
4962 | ||
36b6448c | 4963 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
eaff0f0d VZ |
4964 | if test "x$LINE" != x ; then |
4965 | eval "DEFAULT_$LINE" | |
4966 | else | |
4967 | no_cache=1 | |
4968 | fi | |
4969 | ||
36b6448c | 4970 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION |
eaff0f0d VZ |
4971 | |
4972 | fi; | |
4973 | ||
36b6448c | 4974 | eval "$ac_cv_use_catch_segvs" |
eaff0f0d | 4975 | if test "$no_cache" != 1; then |
36b6448c | 4976 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp |
eaff0f0d VZ |
4977 | fi |
4978 | ||
36b6448c | 4979 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then |
eaff0f0d VZ |
4980 | echo "$as_me:$LINENO: result: yes" >&5 |
4981 | echo "${ECHO_T}yes" >&6 | |
4982 | else | |
4983 | echo "$as_me:$LINENO: result: no" >&5 | |
4984 | echo "${ECHO_T}no" >&6 | |
4985 | fi | |
4986 | ||
4987 | ||
a848cd7e SC |
4988 | enablestring= |
4989 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 | |
4990 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
4991 | no_cache=0 | |
4992 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
4993 | if test "${enable_cmdline+set}" = set; then | |
4994 | enableval="$enable_cmdline" | |
4995 | ||
4996 | if test "$enableval" = yes; then | |
4997 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
4998 | else | |
4999 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
5000 | fi | |
5001 | ||
5002 | else | |
5003 | ||
5004 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
5005 | if test "x$LINE" != x ; then | |
5006 | eval "DEFAULT_$LINE" | |
5007 | else | |
5008 | no_cache=1 | |
5009 | fi | |
5010 | ||
5011 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
5012 | ||
5013 | fi; | |
5014 | ||
5015 | eval "$ac_cv_use_cmdline" | |
5016 | if test "$no_cache" != 1; then | |
5017 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
5018 | fi | |
5019 | ||
5020 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
5021 | echo "$as_me:$LINENO: result: yes" >&5 | |
5022 | echo "${ECHO_T}yes" >&6 | |
5023 | else | |
5024 | echo "$as_me:$LINENO: result: no" >&5 | |
5025 | echo "${ECHO_T}no" >&6 | |
5026 | fi | |
5027 | ||
5028 | ||
5029 | enablestring= | |
5030 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 | |
5031 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
5032 | no_cache=0 | |
5033 | # Check whether --enable-datetime or --disable-datetime was given. | |
5034 | if test "${enable_datetime+set}" = set; then | |
5035 | enableval="$enable_datetime" | |
5036 | ||
5037 | if test "$enableval" = yes; then | |
5038 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
5039 | else | |
5040 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
5041 | fi | |
5042 | ||
5043 | else | |
5044 | ||
5045 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
5046 | if test "x$LINE" != x ; then | |
5047 | eval "DEFAULT_$LINE" | |
5048 | else | |
5049 | no_cache=1 | |
5050 | fi | |
5051 | ||
5052 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
5053 | ||
5054 | fi; | |
5055 | ||
5056 | eval "$ac_cv_use_datetime" | |
5057 | if test "$no_cache" != 1; then | |
5058 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
5059 | fi | |
5060 | ||
5061 | if test "$wxUSE_DATETIME" = yes; then | |
5062 | echo "$as_me:$LINENO: result: yes" >&5 | |
5063 | echo "${ECHO_T}yes" >&6 | |
5064 | else | |
5065 | echo "$as_me:$LINENO: result: no" >&5 | |
5066 | echo "${ECHO_T}no" >&6 | |
5067 | fi | |
5068 | ||
5069 | ||
36b6448c VZ |
5070 | enablestring= |
5071 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5 | |
5072 | echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6 | |
5073 | no_cache=0 | |
5074 | # Check whether --enable-debugreport or --disable-debugreport was given. | |
5075 | if test "${enable_debugreport+set}" = set; then | |
5076 | enableval="$enable_debugreport" | |
5077 | ||
5078 | if test "$enableval" = yes; then | |
5079 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes' | |
5080 | else | |
5081 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no' | |
5082 | fi | |
5083 | ||
5084 | else | |
5085 | ||
5086 | LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}` | |
5087 | if test "x$LINE" != x ; then | |
5088 | eval "DEFAULT_$LINE" | |
5089 | else | |
5090 | no_cache=1 | |
5091 | fi | |
5092 | ||
5093 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT | |
5094 | ||
5095 | fi; | |
5096 | ||
5097 | eval "$ac_cv_use_debugreport" | |
5098 | if test "$no_cache" != 1; then | |
5099 | echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp | |
5100 | fi | |
5101 | ||
5102 | if test "$wxUSE_DEBUGREPORT" = yes; then | |
5103 | echo "$as_me:$LINENO: result: yes" >&5 | |
5104 | echo "${ECHO_T}yes" >&6 | |
5105 | else | |
5106 | echo "$as_me:$LINENO: result: no" >&5 | |
5107 | echo "${ECHO_T}no" >&6 | |
5108 | fi | |
5109 | ||
5110 | ||
a848cd7e SC |
5111 | enablestring= |
5112 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 | |
5113 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
5114 | no_cache=0 | |
5115 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
5116 | if test "${enable_dialupman+set}" = set; then | |
5117 | enableval="$enable_dialupman" | |
5118 | ||
5119 | if test "$enableval" = yes; then | |
5120 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
5121 | else | |
5122 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
5123 | fi | |
5124 | ||
5125 | else | |
5126 | ||
5127 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
5128 | if test "x$LINE" != x ; then | |
5129 | eval "DEFAULT_$LINE" | |
5130 | else | |
5131 | no_cache=1 | |
5132 | fi | |
5133 | ||
5134 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
5135 | ||
5136 | fi; | |
5137 | ||
5138 | eval "$ac_cv_use_dialupman" | |
5139 | if test "$no_cache" != 1; then | |
5140 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
5141 | fi | |
5142 | ||
5143 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
5144 | echo "$as_me:$LINENO: result: yes" >&5 | |
5145 | echo "${ECHO_T}yes" >&6 | |
5146 | else | |
5147 | echo "$as_me:$LINENO: result: no" >&5 | |
5148 | echo "${ECHO_T}no" >&6 | |
5149 | fi | |
5150 | ||
5151 | ||
5152 | enablestring= | |
5153 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 | |
5154 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
5155 | no_cache=0 | |
5156 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
5157 | if test "${enable_dynlib+set}" = set; then | |
5158 | enableval="$enable_dynlib" | |
5159 | ||
5160 | if test "$enableval" = yes; then | |
5161 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
5162 | else | |
5163 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
5164 | fi | |
5165 | ||
5166 | else | |
5167 | ||
5168 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
5169 | if test "x$LINE" != x ; then | |
5170 | eval "DEFAULT_$LINE" | |
5171 | else | |
5172 | no_cache=1 | |
5173 | fi | |
5174 | ||
5175 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
5176 | ||
5177 | fi; | |
5178 | ||
5179 | eval "$ac_cv_use_dynlib" | |
5180 | if test "$no_cache" != 1; then | |
5181 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
5182 | fi | |
5183 | ||
5184 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
5185 | echo "$as_me:$LINENO: result: yes" >&5 | |
5186 | echo "${ECHO_T}yes" >&6 | |
5187 | else | |
5188 | echo "$as_me:$LINENO: result: no" >&5 | |
5189 | echo "${ECHO_T}no" >&6 | |
5190 | fi | |
5191 | ||
5192 | ||
5193 | enablestring= | |
5194 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 | |
5195 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
5196 | no_cache=0 | |
5197 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
5198 | if test "${enable_dynamicloader+set}" = set; then | |
5199 | enableval="$enable_dynamicloader" | |
5200 | ||
5201 | if test "$enableval" = yes; then | |
5202 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
5203 | else | |
5204 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
5205 | fi | |
5206 | ||
5207 | else | |
5208 | ||
5209 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
5210 | if test "x$LINE" != x ; then | |
5211 | eval "DEFAULT_$LINE" | |
5212 | else | |
5213 | no_cache=1 | |
5214 | fi | |
5215 | ||
5216 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
5217 | ||
5218 | fi; | |
5219 | ||
5220 | eval "$ac_cv_use_dynamicloader" | |
5221 | if test "$no_cache" != 1; then | |
5222 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
5223 | fi | |
5224 | ||
5225 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
5226 | echo "$as_me:$LINENO: result: yes" >&5 | |
5227 | echo "${ECHO_T}yes" >&6 | |
5228 | else | |
5229 | echo "$as_me:$LINENO: result: no" >&5 | |
5230 | echo "${ECHO_T}no" >&6 | |
5231 | fi | |
5232 | ||
5233 | ||
5234 | enablestring= | |
5235 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 | |
5236 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
5237 | no_cache=0 | |
5238 | # Check whether --enable-exceptions or --disable-exceptions was given. | |
5239 | if test "${enable_exceptions+set}" = set; then | |
5240 | enableval="$enable_exceptions" | |
5241 | ||
5242 | if test "$enableval" = yes; then | |
5243 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' | |
5244 | else | |
5245 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' | |
5246 | fi | |
5247 | ||
5248 | else | |
5249 | ||
5250 | LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}` | |
5251 | if test "x$LINE" != x ; then | |
5252 | eval "DEFAULT_$LINE" | |
5253 | else | |
5254 | no_cache=1 | |
5255 | fi | |
5256 | ||
5257 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS | |
5258 | ||
5259 | fi; | |
5260 | ||
5261 | eval "$ac_cv_use_exceptions" | |
5262 | if test "$no_cache" != 1; then | |
5263 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp | |
5264 | fi | |
5265 | ||
5266 | if test "$wxUSE_EXCEPTIONS" = yes; then | |
5267 | echo "$as_me:$LINENO: result: yes" >&5 | |
5268 | echo "${ECHO_T}yes" >&6 | |
5269 | else | |
5270 | echo "$as_me:$LINENO: result: no" >&5 | |
5271 | echo "${ECHO_T}no" >&6 | |
5272 | fi | |
5273 | ||
5274 | ||
5275 | enablestring= | |
5276 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 | |
5277 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
5278 | no_cache=0 | |
5279 | # Check whether --enable-ffile or --disable-ffile was given. | |
5280 | if test "${enable_ffile+set}" = set; then | |
5281 | enableval="$enable_ffile" | |
5282 | ||
5283 | if test "$enableval" = yes; then | |
5284 | ac_cv_use_ffile='wxUSE_FFILE=yes' | |
5285 | else | |
5286 | ac_cv_use_ffile='wxUSE_FFILE=no' | |
5287 | fi | |
5288 | ||
5289 | else | |
5290 | ||
5291 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` | |
5292 | if test "x$LINE" != x ; then | |
5293 | eval "DEFAULT_$LINE" | |
5294 | else | |
5295 | no_cache=1 | |
5296 | fi | |
5297 | ||
5298 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE | |
5299 | ||
5300 | fi; | |
5301 | ||
5302 | eval "$ac_cv_use_ffile" | |
5303 | if test "$no_cache" != 1; then | |
5304 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp | |
5305 | fi | |
5306 | ||
5307 | if test "$wxUSE_FFILE" = yes; then | |
5308 | echo "$as_me:$LINENO: result: yes" >&5 | |
5309 | echo "${ECHO_T}yes" >&6 | |
5310 | else | |
5311 | echo "$as_me:$LINENO: result: no" >&5 | |
5312 | echo "${ECHO_T}no" >&6 | |
5313 | fi | |
5314 | ||
5315 | ||
5316 | enablestring= | |
5317 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 | |
5318 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
5319 | no_cache=0 | |
5320 | # Check whether --enable-file or --disable-file was given. | |
5321 | if test "${enable_file+set}" = set; then | |
5322 | enableval="$enable_file" | |
5323 | ||
5324 | if test "$enableval" = yes; then | |
5325 | ac_cv_use_file='wxUSE_FILE=yes' | |
5326 | else | |
5327 | ac_cv_use_file='wxUSE_FILE=no' | |
5328 | fi | |
5329 | ||
5330 | else | |
5331 | ||
5332 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
5333 | if test "x$LINE" != x ; then | |
5334 | eval "DEFAULT_$LINE" | |
5335 | else | |
5336 | no_cache=1 | |
5337 | fi | |
5338 | ||
5339 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
5340 | ||
5341 | fi; | |
5342 | ||
5343 | eval "$ac_cv_use_file" | |
5344 | if test "$no_cache" != 1; then | |
5345 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
5346 | fi | |
5347 | ||
5348 | if test "$wxUSE_FILE" = yes; then | |
5349 | echo "$as_me:$LINENO: result: yes" >&5 | |
5350 | echo "${ECHO_T}yes" >&6 | |
5351 | else | |
5352 | echo "$as_me:$LINENO: result: no" >&5 | |
5353 | echo "${ECHO_T}no" >&6 | |
5354 | fi | |
5355 | ||
5356 | ||
5357 | enablestring= | |
5358 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 | |
5359 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
5360 | no_cache=0 | |
5361 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
5362 | if test "${enable_filesystem+set}" = set; then | |
5363 | enableval="$enable_filesystem" | |
5364 | ||
5365 | if test "$enableval" = yes; then | |
5366 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
5367 | else | |
5368 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
5369 | fi | |
5370 | ||
5371 | else | |
5372 | ||
5373 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
5374 | if test "x$LINE" != x ; then | |
5375 | eval "DEFAULT_$LINE" | |
5376 | else | |
5377 | no_cache=1 | |
5378 | fi | |
5379 | ||
5380 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
5381 | ||
5382 | fi; | |
5383 | ||
5384 | eval "$ac_cv_use_filesystem" | |
5385 | if test "$no_cache" != 1; then | |
5386 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
5387 | fi | |
5388 | ||
5389 | if test "$wxUSE_FILESYSTEM" = yes; then | |
5390 | echo "$as_me:$LINENO: result: yes" >&5 | |
5391 | echo "${ECHO_T}yes" >&6 | |
5392 | else | |
5393 | echo "$as_me:$LINENO: result: no" >&5 | |
5394 | echo "${ECHO_T}no" >&6 | |
5395 | fi | |
5396 | ||
5397 | ||
5398 | enablestring= | |
5399 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 | |
5400 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
5401 | no_cache=0 | |
5402 | # Check whether --enable-fontmap or --disable-fontmap was given. | |
5403 | if test "${enable_fontmap+set}" = set; then | |
5404 | enableval="$enable_fontmap" | |
5405 | ||
5406 | if test "$enableval" = yes; then | |
5407 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' | |
5408 | else | |
5409 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' | |
5410 | fi | |
5411 | ||
5412 | else | |
5413 | ||
5414 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` | |
5415 | if test "x$LINE" != x ; then | |
5416 | eval "DEFAULT_$LINE" | |
5417 | else | |
5418 | no_cache=1 | |
5419 | fi | |
5420 | ||
5421 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP | |
5422 | ||
5423 | fi; | |
5424 | ||
5425 | eval "$ac_cv_use_fontmap" | |
5426 | if test "$no_cache" != 1; then | |
5427 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp | |
5428 | fi | |
5429 | ||
5430 | if test "$wxUSE_FONTMAP" = yes; then | |
5431 | echo "$as_me:$LINENO: result: yes" >&5 | |
5432 | echo "${ECHO_T}yes" >&6 | |
5433 | else | |
5434 | echo "$as_me:$LINENO: result: no" >&5 | |
5435 | echo "${ECHO_T}no" >&6 | |
5436 | fi | |
5437 | ||
5438 | ||
5439 | enablestring= | |
5440 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 | |
5441 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
5442 | no_cache=0 | |
5443 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5444 | if test "${enable_fs_inet+set}" = set; then | |
5445 | enableval="$enable_fs_inet" | |
5446 | ||
5447 | if test "$enableval" = yes; then | |
5448 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5449 | else | |
5450 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5451 | fi | |
5452 | ||
5453 | else | |
5454 | ||
5455 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
5456 | if test "x$LINE" != x ; then | |
5457 | eval "DEFAULT_$LINE" | |
5458 | else | |
5459 | no_cache=1 | |
5460 | fi | |
5461 | ||
5462 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
5463 | ||
5464 | fi; | |
5465 | ||
5466 | eval "$ac_cv_use_fs_inet" | |
5467 | if test "$no_cache" != 1; then | |
5468 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5469 | fi | |
5470 | ||
5471 | if test "$wxUSE_FS_INET" = yes; then | |
5472 | echo "$as_me:$LINENO: result: yes" >&5 | |
5473 | echo "${ECHO_T}yes" >&6 | |
5474 | else | |
5475 | echo "$as_me:$LINENO: result: no" >&5 | |
5476 | echo "${ECHO_T}no" >&6 | |
5477 | fi | |
5478 | ||
5479 | ||
5480 | enablestring= | |
5481 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 | |
5482 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
5483 | no_cache=0 | |
5484 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5485 | if test "${enable_fs_zip+set}" = set; then | |
5486 | enableval="$enable_fs_zip" | |
5487 | ||
5488 | if test "$enableval" = yes; then | |
5489 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5490 | else | |
5491 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5492 | fi | |
5493 | ||
5494 | else | |
5495 | ||
5496 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
5497 | if test "x$LINE" != x ; then | |
5498 | eval "DEFAULT_$LINE" | |
5499 | else | |
5500 | no_cache=1 | |
5501 | fi | |
5502 | ||
5503 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
5504 | ||
5505 | fi; | |
5506 | ||
5507 | eval "$ac_cv_use_fs_zip" | |
5508 | if test "$no_cache" != 1; then | |
5509 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5510 | fi | |
5511 | ||
5512 | if test "$wxUSE_FS_ZIP" = yes; then | |
5513 | echo "$as_me:$LINENO: result: yes" >&5 | |
5514 | echo "${ECHO_T}yes" >&6 | |
5515 | else | |
5516 | echo "$as_me:$LINENO: result: no" >&5 | |
5517 | echo "${ECHO_T}no" >&6 | |
5518 | fi | |
5519 | ||
5520 | ||
5521 | enablestring= | |
5522 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 | |
5523 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
5524 | no_cache=0 | |
5525 | # Check whether --enable-geometry or --disable-geometry was given. | |
5526 | if test "${enable_geometry+set}" = set; then | |
5527 | enableval="$enable_geometry" | |
5528 | ||
5529 | if test "$enableval" = yes; then | |
5530 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
5531 | else | |
5532 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
5533 | fi | |
5534 | ||
5535 | else | |
5536 | ||
5537 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
5538 | if test "x$LINE" != x ; then | |
5539 | eval "DEFAULT_$LINE" | |
5540 | else | |
5541 | no_cache=1 | |
5542 | fi | |
5543 | ||
5544 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
5545 | ||
5546 | fi; | |
5547 | ||
5548 | eval "$ac_cv_use_geometry" | |
5549 | if test "$no_cache" != 1; then | |
5550 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
5551 | fi | |
5552 | ||
5553 | if test "$wxUSE_GEOMETRY" = yes; then | |
5554 | echo "$as_me:$LINENO: result: yes" >&5 | |
5555 | echo "${ECHO_T}yes" >&6 | |
5556 | else | |
5557 | echo "$as_me:$LINENO: result: no" >&5 | |
5558 | echo "${ECHO_T}no" >&6 | |
5559 | fi | |
5560 | ||
5561 | ||
5562 | enablestring= | |
5563 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 | |
5564 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
5565 | no_cache=0 | |
5566 | # Check whether --enable-log or --disable-log was given. | |
5567 | if test "${enable_log+set}" = set; then | |
5568 | enableval="$enable_log" | |
5569 | ||
5570 | if test "$enableval" = yes; then | |
5571 | ac_cv_use_log='wxUSE_LOG=yes' | |
5572 | else | |
5573 | ac_cv_use_log='wxUSE_LOG=no' | |
5574 | fi | |
5575 | ||
5576 | else | |
5577 | ||
5578 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
5579 | if test "x$LINE" != x ; then | |
5580 | eval "DEFAULT_$LINE" | |
5581 | else | |
5582 | no_cache=1 | |
5583 | fi | |
5584 | ||
5585 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
5586 | ||
5587 | fi; | |
5588 | ||
5589 | eval "$ac_cv_use_log" | |
5590 | if test "$no_cache" != 1; then | |
5591 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
5592 | fi | |
5593 | ||
5594 | if test "$wxUSE_LOG" = yes; then | |
5595 | echo "$as_me:$LINENO: result: yes" >&5 | |
5596 | echo "${ECHO_T}yes" >&6 | |
5597 | else | |
5598 | echo "$as_me:$LINENO: result: no" >&5 | |
5599 | echo "${ECHO_T}no" >&6 | |
5600 | fi | |
5601 | ||
5602 | ||
5603 | enablestring= | |
5604 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 | |
5605 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
5606 | no_cache=0 | |
5607 | # Check whether --enable-longlong or --disable-longlong was given. | |
5608 | if test "${enable_longlong+set}" = set; then | |
5609 | enableval="$enable_longlong" | |
5610 | ||
5611 | if test "$enableval" = yes; then | |
5612 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
5613 | else | |
5614 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
5615 | fi | |
5616 | ||
5617 | else | |
5618 | ||
5619 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
5620 | if test "x$LINE" != x ; then | |
5621 | eval "DEFAULT_$LINE" | |
5622 | else | |
5623 | no_cache=1 | |
5624 | fi | |
5625 | ||
5626 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
5627 | ||
5628 | fi; | |
5629 | ||
5630 | eval "$ac_cv_use_longlong" | |
5631 | if test "$no_cache" != 1; then | |
5632 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
5633 | fi | |
5634 | ||
5635 | if test "$wxUSE_LONGLONG" = yes; then | |
5636 | echo "$as_me:$LINENO: result: yes" >&5 | |
5637 | echo "${ECHO_T}yes" >&6 | |
5638 | else | |
5639 | echo "$as_me:$LINENO: result: no" >&5 | |
5640 | echo "${ECHO_T}no" >&6 | |
5641 | fi | |
5642 | ||
5643 | ||
5644 | enablestring= | |
5645 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5646 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5647 | no_cache=0 | |
5648 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5649 | if test "${enable_mimetype+set}" = set; then | |
5650 | enableval="$enable_mimetype" | |
5651 | ||
5652 | if test "$enableval" = yes; then | |
5653 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5654 | else | |
5655 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5656 | fi | |
5657 | ||
5658 | else | |
5659 | ||
5660 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5661 | if test "x$LINE" != x ; then | |
5662 | eval "DEFAULT_$LINE" | |
5663 | else | |
5664 | no_cache=1 | |
5665 | fi | |
5666 | ||
5667 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5668 | ||
5669 | fi; | |
5670 | ||
5671 | eval "$ac_cv_use_mimetype" | |
5672 | if test "$no_cache" != 1; then | |
5673 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5674 | fi | |
5675 | ||
5676 | if test "$wxUSE_MIMETYPE" = yes; then | |
5677 | echo "$as_me:$LINENO: result: yes" >&5 | |
5678 | echo "${ECHO_T}yes" >&6 | |
5679 | else | |
5680 | echo "$as_me:$LINENO: result: no" >&5 | |
5681 | echo "${ECHO_T}no" >&6 | |
5682 | fi | |
5683 | ||
5684 | ||
5685 | enablestring= | |
5686 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 | |
5687 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
5688 | no_cache=0 | |
5689 | # Check whether --enable-mslu or --disable-mslu was given. | |
5690 | if test "${enable_mslu+set}" = set; then | |
5691 | enableval="$enable_mslu" | |
5692 | ||
5693 | if test "$enableval" = yes; then | |
5694 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5695 | else | |
5696 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5697 | fi | |
5698 | ||
5699 | else | |
5700 | ||
5701 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
5702 | if test "x$LINE" != x ; then | |
5703 | eval "DEFAULT_$LINE" | |
5704 | else | |
5705 | no_cache=1 | |
5706 | fi | |
5707 | ||
5708 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
5709 | ||
5710 | fi; | |
5711 | ||
5712 | eval "$ac_cv_use_mslu" | |
5713 | if test "$no_cache" != 1; then | |
5714 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5715 | fi | |
5716 | ||
5717 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
5718 | echo "$as_me:$LINENO: result: yes" >&5 | |
5719 | echo "${ECHO_T}yes" >&6 | |
5720 | else | |
5721 | echo "$as_me:$LINENO: result: no" >&5 | |
5722 | echo "${ECHO_T}no" >&6 | |
5723 | fi | |
5724 | ||
5725 | ||
5726 | enablestring= | |
5727 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 | |
5728 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
5729 | no_cache=0 | |
5730 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5731 | if test "${enable_snglinst+set}" = set; then | |
5732 | enableval="$enable_snglinst" | |
5733 | ||
5734 | if test "$enableval" = yes; then | |
5735 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5736 | else | |
5737 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5738 | fi | |
5739 | ||
5740 | else | |
5741 | ||
5742 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` | |
5743 | if test "x$LINE" != x ; then | |
5744 | eval "DEFAULT_$LINE" | |
5745 | else | |
5746 | no_cache=1 | |
5747 | fi | |
5748 | ||
5749 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
5750 | ||
5751 | fi; | |
5752 | ||
5753 | eval "$ac_cv_use_snglinst" | |
5754 | if test "$no_cache" != 1; then | |
5755 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5756 | fi | |
5757 | ||
5758 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
5759 | echo "$as_me:$LINENO: result: yes" >&5 | |
5760 | echo "${ECHO_T}yes" >&6 | |
5761 | else | |
5762 | echo "$as_me:$LINENO: result: no" >&5 | |
5763 | echo "${ECHO_T}no" >&6 | |
5764 | fi | |
5765 | ||
5766 | ||
5767 | enablestring= | |
07158944 VZ |
5768 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 |
5769 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
a848cd7e | 5770 | no_cache=0 |
07158944 VZ |
5771 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. |
5772 | if test "${enable_std_iostreams+set}" = set; then | |
5773 | enableval="$enable_std_iostreams" | |
a848cd7e SC |
5774 | |
5775 | if test "$enableval" = yes; then | |
07158944 | 5776 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' |
a848cd7e | 5777 | else |
07158944 | 5778 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' |
a848cd7e SC |
5779 | fi |
5780 | ||
5781 | else | |
5782 | ||
07158944 | 5783 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
a848cd7e SC |
5784 | if test "x$LINE" != x ; then |
5785 | eval "DEFAULT_$LINE" | |
5786 | else | |
5787 | no_cache=1 | |
5788 | fi | |
5789 | ||
07158944 | 5790 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM |
a848cd7e SC |
5791 | |
5792 | fi; | |
5793 | ||
07158944 | 5794 | eval "$ac_cv_use_std_iostreams" |
a848cd7e | 5795 | if test "$no_cache" != 1; then |
07158944 | 5796 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
5797 | fi |
5798 | ||
07158944 | 5799 | if test "$wxUSE_STD_IOSTREAM" = yes; then |
a848cd7e SC |
5800 | echo "$as_me:$LINENO: result: yes" >&5 |
5801 | echo "${ECHO_T}yes" >&6 | |
5802 | else | |
5803 | echo "$as_me:$LINENO: result: no" >&5 | |
5804 | echo "${ECHO_T}no" >&6 | |
5805 | fi | |
5806 | ||
5807 | ||
59746b65 MW |
5808 | enablestring= |
5809 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5 | |
5810 | echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6 | |
5811 | no_cache=0 | |
5812 | # Check whether --enable-std_string or --disable-std_string was given. | |
5813 | if test "${enable_std_string+set}" = set; then | |
5814 | enableval="$enable_std_string" | |
5815 | ||
5816 | if test "$enableval" = yes; then | |
5817 | ac_cv_use_std_string='wxUSE_STD_STRING=yes' | |
5818 | else | |
5819 | ac_cv_use_std_string='wxUSE_STD_STRING=no' | |
5820 | fi | |
5821 | ||
5822 | else | |
5823 | ||
5824 | LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}` | |
5825 | if test "x$LINE" != x ; then | |
5826 | eval "DEFAULT_$LINE" | |
5827 | else | |
5828 | no_cache=1 | |
5829 | fi | |
5830 | ||
5831 | ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING | |
5832 | ||
5833 | fi; | |
5834 | ||
5835 | eval "$ac_cv_use_std_string" | |
5836 | if test "$no_cache" != 1; then | |
5837 | echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp | |
5838 | fi | |
5839 | ||
5840 | if test "$wxUSE_STD_STRING" = yes; then | |
5841 | echo "$as_me:$LINENO: result: yes" >&5 | |
5842 | echo "${ECHO_T}yes" >&6 | |
5843 | else | |
5844 | echo "$as_me:$LINENO: result: no" >&5 | |
5845 | echo "${ECHO_T}no" >&6 | |
5846 | fi | |
5847 | ||
5848 | ||
a848cd7e | 5849 | enablestring= |
07158944 VZ |
5850 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5 |
5851 | echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6 | |
a848cd7e | 5852 | no_cache=0 |
07158944 VZ |
5853 | # Check whether --enable-stdpaths or --disable-stdpaths was given. |
5854 | if test "${enable_stdpaths+set}" = set; then | |
5855 | enableval="$enable_stdpaths" | |
a848cd7e SC |
5856 | |
5857 | if test "$enableval" = yes; then | |
07158944 | 5858 | ac_cv_use_stdpaths='wxUSE_STDPATHS=yes' |
a848cd7e | 5859 | else |
07158944 | 5860 | ac_cv_use_stdpaths='wxUSE_STDPATHS=no' |
a848cd7e SC |
5861 | fi |
5862 | ||
5863 | else | |
5864 | ||
07158944 | 5865 | LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}` |
a848cd7e SC |
5866 | if test "x$LINE" != x ; then |
5867 | eval "DEFAULT_$LINE" | |
5868 | else | |
5869 | no_cache=1 | |
5870 | fi | |
5871 | ||
07158944 | 5872 | ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS |
a848cd7e SC |
5873 | |
5874 | fi; | |
5875 | ||
07158944 | 5876 | eval "$ac_cv_use_stdpaths" |
a848cd7e | 5877 | if test "$no_cache" != 1; then |
07158944 | 5878 | echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
5879 | fi |
5880 | ||
07158944 | 5881 | if test "$wxUSE_STDPATHS" = yes; then |
a848cd7e SC |
5882 | echo "$as_me:$LINENO: result: yes" >&5 |
5883 | echo "${ECHO_T}yes" >&6 | |
5884 | else | |
5885 | echo "$as_me:$LINENO: result: no" >&5 | |
5886 | echo "${ECHO_T}no" >&6 | |
5887 | fi | |
5888 | ||
5889 | ||
5890 | enablestring= | |
5891 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 | |
5892 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
5893 | no_cache=0 | |
5894 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
5895 | if test "${enable_stopwatch+set}" = set; then | |
5896 | enableval="$enable_stopwatch" | |
5897 | ||
5898 | if test "$enableval" = yes; then | |
5899 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
5900 | else | |
5901 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
5902 | fi | |
5903 | ||
5904 | else | |
5905 | ||
5906 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
5907 | if test "x$LINE" != x ; then | |
5908 | eval "DEFAULT_$LINE" | |
5909 | else | |
5910 | no_cache=1 | |
5911 | fi | |
5912 | ||
5913 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
5914 | ||
5915 | fi; | |
5916 | ||
5917 | eval "$ac_cv_use_stopwatch" | |
5918 | if test "$no_cache" != 1; then | |
5919 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
5920 | fi | |
5921 | ||
5922 | if test "$wxUSE_STOPWATCH" = yes; then | |
5923 | echo "$as_me:$LINENO: result: yes" >&5 | |
5924 | echo "${ECHO_T}yes" >&6 | |
5925 | else | |
5926 | echo "$as_me:$LINENO: result: no" >&5 | |
5927 | echo "${ECHO_T}no" >&6 | |
5928 | fi | |
5929 | ||
5930 | ||
07158944 VZ |
5931 | enablestring= |
5932 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
5933 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
5934 | no_cache=0 | |
5935 | # Check whether --enable-streams or --disable-streams was given. | |
5936 | if test "${enable_streams+set}" = set; then | |
5937 | enableval="$enable_streams" | |
5938 | ||
5939 | if test "$enableval" = yes; then | |
5940 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
5941 | else | |
5942 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
5943 | fi | |
5944 | ||
5945 | else | |
5946 | ||
5947 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
5948 | if test "x$LINE" != x ; then | |
5949 | eval "DEFAULT_$LINE" | |
5950 | else | |
5951 | no_cache=1 | |
5952 | fi | |
5953 | ||
5954 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
5955 | ||
5956 | fi; | |
5957 | ||
5958 | eval "$ac_cv_use_streams" | |
5959 | if test "$no_cache" != 1; then | |
5960 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
5961 | fi | |
5962 | ||
5963 | if test "$wxUSE_STREAMS" = yes; then | |
5964 | echo "$as_me:$LINENO: result: yes" >&5 | |
5965 | echo "${ECHO_T}yes" >&6 | |
5966 | else | |
5967 | echo "$as_me:$LINENO: result: no" >&5 | |
5968 | echo "${ECHO_T}no" >&6 | |
5969 | fi | |
5970 | ||
5971 | ||
a848cd7e SC |
5972 | enablestring= |
5973 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 | |
5974 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
5975 | no_cache=0 | |
5976 | # Check whether --enable-system_options or --disable-system_options was given. | |
5977 | if test "${enable_system_options+set}" = set; then | |
5978 | enableval="$enable_system_options" | |
5979 | ||
5980 | if test "$enableval" = yes; then | |
5981 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
5982 | else | |
5983 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
5984 | fi | |
5985 | ||
5986 | else | |
5987 | ||
5988 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
5989 | if test "x$LINE" != x ; then | |
5990 | eval "DEFAULT_$LINE" | |
5991 | else | |
5992 | no_cache=1 | |
5993 | fi | |
5994 | ||
5995 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
5996 | ||
5997 | fi; | |
5998 | ||
5999 | eval "$ac_cv_use_system_options" | |
6000 | if test "$no_cache" != 1; then | |
6001 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
6002 | fi | |
6003 | ||
6004 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
6005 | echo "$as_me:$LINENO: result: yes" >&5 | |
6006 | echo "${ECHO_T}yes" >&6 | |
6007 | else | |
6008 | echo "$as_me:$LINENO: result: no" >&5 | |
6009 | echo "${ECHO_T}no" >&6 | |
6010 | fi | |
6011 | ||
6012 | ||
6013 | enablestring= | |
6014 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 | |
6015 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
6016 | no_cache=0 | |
6017 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
6018 | if test "${enable_textbuf+set}" = set; then | |
6019 | enableval="$enable_textbuf" | |
6020 | ||
6021 | if test "$enableval" = yes; then | |
6022 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
6023 | else | |
6024 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
6025 | fi | |
6026 | ||
6027 | else | |
6028 | ||
6029 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
6030 | if test "x$LINE" != x ; then | |
6031 | eval "DEFAULT_$LINE" | |
6032 | else | |
6033 | no_cache=1 | |
6034 | fi | |
6035 | ||
6036 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
6037 | ||
6038 | fi; | |
6039 | ||
6040 | eval "$ac_cv_use_textbuf" | |
6041 | if test "$no_cache" != 1; then | |
6042 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
6043 | fi | |
6044 | ||
6045 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
6046 | echo "$as_me:$LINENO: result: yes" >&5 | |
6047 | echo "${ECHO_T}yes" >&6 | |
6048 | else | |
6049 | echo "$as_me:$LINENO: result: no" >&5 | |
6050 | echo "${ECHO_T}no" >&6 | |
6051 | fi | |
6052 | ||
6053 | ||
6054 | enablestring= | |
6055 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 | |
6056 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
6057 | no_cache=0 | |
6058 | # Check whether --enable-textfile or --disable-textfile was given. | |
6059 | if test "${enable_textfile+set}" = set; then | |
6060 | enableval="$enable_textfile" | |
6061 | ||
6062 | if test "$enableval" = yes; then | |
6063 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
6064 | else | |
6065 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
6066 | fi | |
6067 | ||
6068 | else | |
6069 | ||
6070 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
6071 | if test "x$LINE" != x ; then | |
6072 | eval "DEFAULT_$LINE" | |
6073 | else | |
6074 | no_cache=1 | |
6075 | fi | |
6076 | ||
6077 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
6078 | ||
6079 | fi; | |
6080 | ||
6081 | eval "$ac_cv_use_textfile" | |
6082 | if test "$no_cache" != 1; then | |
6083 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
6084 | fi | |
6085 | ||
6086 | if test "$wxUSE_TEXTFILE" = yes; then | |
6087 | echo "$as_me:$LINENO: result: yes" >&5 | |
6088 | echo "${ECHO_T}yes" >&6 | |
6089 | else | |
6090 | echo "$as_me:$LINENO: result: no" >&5 | |
6091 | echo "${ECHO_T}no" >&6 | |
6092 | fi | |
6093 | ||
6094 | ||
6095 | enablestring= | |
6096 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 | |
6097 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
6098 | no_cache=0 | |
6099 | # Check whether --enable-timer or --disable-timer was given. | |
6100 | if test "${enable_timer+set}" = set; then | |
6101 | enableval="$enable_timer" | |
6102 | ||
6103 | if test "$enableval" = yes; then | |
6104 | ac_cv_use_timer='wxUSE_TIMER=yes' | |
6105 | else | |
6106 | ac_cv_use_timer='wxUSE_TIMER=no' | |
6107 | fi | |
6108 | ||
6109 | else | |
6110 | ||
6111 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` | |
6112 | if test "x$LINE" != x ; then | |
6113 | eval "DEFAULT_$LINE" | |
6114 | else | |
6115 | no_cache=1 | |
6116 | fi | |
6117 | ||
6118 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER | |
6119 | ||
6120 | fi; | |
6121 | ||
6122 | eval "$ac_cv_use_timer" | |
6123 | if test "$no_cache" != 1; then | |
6124 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp | |
6125 | fi | |
6126 | ||
6127 | if test "$wxUSE_TIMER" = yes; then | |
6128 | echo "$as_me:$LINENO: result: yes" >&5 | |
6129 | echo "${ECHO_T}yes" >&6 | |
6130 | else | |
6131 | echo "$as_me:$LINENO: result: no" >&5 | |
6132 | echo "${ECHO_T}no" >&6 | |
6133 | fi | |
6134 | ||
6135 | ||
6136 | enablestring= | |
6137 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 | |
6138 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
6139 | no_cache=0 | |
6140 | # Check whether --enable-unicode or --disable-unicode was given. | |
6141 | if test "${enable_unicode+set}" = set; then | |
6142 | enableval="$enable_unicode" | |
6143 | ||
6144 | if test "$enableval" = yes; then | |
6145 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
6146 | else | |
6147 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
6148 | fi | |
6149 | ||
6150 | else | |
6151 | ||
6152 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
6153 | if test "x$LINE" != x ; then | |
6154 | eval "DEFAULT_$LINE" | |
6155 | else | |
6156 | no_cache=1 | |
6157 | fi | |
6158 | ||
6159 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
6160 | ||
6161 | fi; | |
6162 | ||
6163 | eval "$ac_cv_use_unicode" | |
6164 | if test "$no_cache" != 1; then | |
6165 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
6166 | fi | |
6167 | ||
6168 | if test "$wxUSE_UNICODE" = yes; then | |
6169 | echo "$as_me:$LINENO: result: yes" >&5 | |
6170 | echo "${ECHO_T}yes" >&6 | |
6171 | else | |
6172 | echo "$as_me:$LINENO: result: no" >&5 | |
6173 | echo "${ECHO_T}no" >&6 | |
6174 | fi | |
6175 | ||
6176 | ||
6177 | enablestring= | |
6178 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5 | |
6179 | echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6 | |
6180 | no_cache=0 | |
6181 | # Check whether --enable-sound or --disable-sound was given. | |
6182 | if test "${enable_sound+set}" = set; then | |
6183 | enableval="$enable_sound" | |
6184 | ||
6185 | if test "$enableval" = yes; then | |
6186 | ac_cv_use_sound='wxUSE_SOUND=yes' | |
6187 | else | |
6188 | ac_cv_use_sound='wxUSE_SOUND=no' | |
6189 | fi | |
6190 | ||
6191 | else | |
6192 | ||
6193 | LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}` | |
6194 | if test "x$LINE" != x ; then | |
6195 | eval "DEFAULT_$LINE" | |
6196 | else | |
6197 | no_cache=1 | |
6198 | fi | |
6199 | ||
6200 | ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND | |
6201 | ||
6202 | fi; | |
6203 | ||
6204 | eval "$ac_cv_use_sound" | |
6205 | if test "$no_cache" != 1; then | |
6206 | echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp | |
6207 | fi | |
6208 | ||
6209 | if test "$wxUSE_SOUND" = yes; then | |
6210 | echo "$as_me:$LINENO: result: yes" >&5 | |
6211 | echo "${ECHO_T}yes" >&6 | |
6212 | else | |
6213 | echo "$as_me:$LINENO: result: no" >&5 | |
6214 | echo "${ECHO_T}no" >&6 | |
6215 | fi | |
6216 | ||
6217 | ||
3b57de8b RL |
6218 | enablestring= |
6219 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5 | |
6220 | echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6 | |
6221 | no_cache=0 | |
6222 | # Check whether --enable-mediactrl or --disable-mediactrl was given. | |
6223 | if test "${enable_mediactrl+set}" = set; then | |
6224 | enableval="$enable_mediactrl" | |
6225 | ||
6226 | if test "$enableval" = yes; then | |
6227 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes' | |
6228 | else | |
6229 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no' | |
6230 | fi | |
6231 | ||
6232 | else | |
6233 | ||
6234 | LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}` | |
6235 | if test "x$LINE" != x ; then | |
6236 | eval "DEFAULT_$LINE" | |
6237 | else | |
6238 | no_cache=1 | |
6239 | fi | |
6240 | ||
6241 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL | |
6242 | ||
6243 | fi; | |
6244 | ||
6245 | eval "$ac_cv_use_mediactrl" | |
6246 | if test "$no_cache" != 1; then | |
6247 | echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp | |
6248 | fi | |
6249 | ||
6250 | if test "$wxUSE_MEDIACTRL" = yes; then | |
6251 | echo "$as_me:$LINENO: result: yes" >&5 | |
6252 | echo "${ECHO_T}yes" >&6 | |
6253 | else | |
6254 | echo "$as_me:$LINENO: result: no" >&5 | |
6255 | echo "${ECHO_T}no" >&6 | |
6256 | fi | |
6257 | ||
6258 | ||
f10e38c4 VZ |
6259 | enablestring= |
6260 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5 | |
6261 | echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6 | |
6262 | no_cache=0 | |
6263 | # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given. | |
6264 | if test "${enable_gstreamer8+set}" = set; then | |
6265 | enableval="$enable_gstreamer8" | |
6266 | ||
6267 | if test "$enableval" = yes; then | |
6268 | ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes' | |
6269 | else | |
6270 | ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no' | |
6271 | fi | |
6272 | ||
6273 | else | |
6274 | ||
6275 | LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}` | |
6276 | if test "x$LINE" != x ; then | |
6277 | eval "DEFAULT_$LINE" | |
6278 | else | |
6279 | no_cache=1 | |
6280 | fi | |
6281 | ||
6282 | ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8 | |
6283 | ||
6284 | fi; | |
6285 | ||
6286 | eval "$ac_cv_use_gstreamer8" | |
6287 | if test "$no_cache" != 1; then | |
6288 | echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp | |
6289 | fi | |
6290 | ||
6291 | if test "$wxUSE_GSTREAMER8" = yes; then | |
6292 | echo "$as_me:$LINENO: result: yes" >&5 | |
6293 | echo "${ECHO_T}yes" >&6 | |
6294 | else | |
6295 | echo "$as_me:$LINENO: result: no" >&5 | |
6296 | echo "${ECHO_T}no" >&6 | |
6297 | fi | |
6298 | ||
6299 | ||
a848cd7e SC |
6300 | enablestring= |
6301 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 | |
6302 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
6303 | no_cache=0 | |
6304 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
6305 | if test "${enable_wxprintfv+set}" = set; then | |
6306 | enableval="$enable_wxprintfv" | |
6307 | ||
6308 | if test "$enableval" = yes; then | |
6309 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
6310 | else | |
6311 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
6312 | fi | |
6313 | ||
6314 | else | |
6315 | ||
6316 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
6317 | if test "x$LINE" != x ; then | |
6318 | eval "DEFAULT_$LINE" | |
6319 | else | |
6320 | no_cache=1 | |
6321 | fi | |
6322 | ||
6323 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
6324 | ||
6325 | fi; | |
6326 | ||
6327 | eval "$ac_cv_use_wxprintfv" | |
6328 | if test "$no_cache" != 1; then | |
6329 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
6330 | fi | |
6331 | ||
6332 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
6333 | echo "$as_me:$LINENO: result: yes" >&5 | |
6334 | echo "${ECHO_T}yes" >&6 | |
6335 | else | |
6336 | echo "$as_me:$LINENO: result: no" >&5 | |
6337 | echo "${ECHO_T}no" >&6 | |
6338 | fi | |
6339 | ||
6340 | ||
6341 | enablestring= | |
6342 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 | |
6343 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
6344 | no_cache=0 | |
6345 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
6346 | if test "${enable_zipstream+set}" = set; then | |
6347 | enableval="$enable_zipstream" | |
6348 | ||
6349 | if test "$enableval" = yes; then | |
6350 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
6351 | else | |
6352 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
6353 | fi | |
6354 | ||
6355 | else | |
6356 | ||
6357 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
6358 | if test "x$LINE" != x ; then | |
6359 | eval "DEFAULT_$LINE" | |
6360 | else | |
6361 | no_cache=1 | |
6362 | fi | |
6363 | ||
6364 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
6365 | ||
6366 | fi; | |
6367 | ||
6368 | eval "$ac_cv_use_zipstream" | |
6369 | if test "$no_cache" != 1; then | |
6370 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
6371 | fi | |
6372 | ||
6373 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
6374 | echo "$as_me:$LINENO: result: yes" >&5 | |
6375 | echo "${ECHO_T}yes" >&6 | |
6376 | else | |
6377 | echo "$as_me:$LINENO: result: no" >&5 | |
6378 | echo "${ECHO_T}no" >&6 | |
6379 | fi | |
6380 | ||
6381 | ||
a848cd7e SC |
6382 | |
6383 | enablestring= | |
6384 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 | |
6385 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
6386 | no_cache=0 | |
6387 | # Check whether --enable-url or --disable-url was given. | |
6388 | if test "${enable_url+set}" = set; then | |
6389 | enableval="$enable_url" | |
6390 | ||
6391 | if test "$enableval" = yes; then | |
6392 | ac_cv_use_url='wxUSE_URL=yes' | |
6393 | else | |
6394 | ac_cv_use_url='wxUSE_URL=no' | |
6395 | fi | |
6396 | ||
6397 | else | |
6398 | ||
6399 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
6400 | if test "x$LINE" != x ; then | |
6401 | eval "DEFAULT_$LINE" | |
6402 | else | |
6403 | no_cache=1 | |
6404 | fi | |
6405 | ||
6406 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
6407 | ||
6408 | fi; | |
6409 | ||
6410 | eval "$ac_cv_use_url" | |
6411 | if test "$no_cache" != 1; then | |
6412 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
6413 | fi | |
6414 | ||
6415 | if test "$wxUSE_URL" = yes; then | |
6416 | echo "$as_me:$LINENO: result: yes" >&5 | |
6417 | echo "${ECHO_T}yes" >&6 | |
6418 | else | |
6419 | echo "$as_me:$LINENO: result: no" >&5 | |
6420 | echo "${ECHO_T}no" >&6 | |
6421 | fi | |
6422 | ||
6423 | ||
6424 | enablestring= | |
6425 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 | |
6426 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
6427 | no_cache=0 | |
6428 | # Check whether --enable-protocol or --disable-protocol was given. | |
6429 | if test "${enable_protocol+set}" = set; then | |
6430 | enableval="$enable_protocol" | |
6431 | ||
6432 | if test "$enableval" = yes; then | |
6433 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
6434 | else | |
6435 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
6436 | fi | |
6437 | ||
6438 | else | |
6439 | ||
6440 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
6441 | if test "x$LINE" != x ; then | |
6442 | eval "DEFAULT_$LINE" | |
6443 | else | |
6444 | no_cache=1 | |
6445 | fi | |
6446 | ||
6447 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
6448 | ||
6449 | fi; | |
6450 | ||
6451 | eval "$ac_cv_use_protocol" | |
6452 | if test "$no_cache" != 1; then | |
6453 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
6454 | fi | |
6455 | ||
6456 | if test "$wxUSE_PROTOCOL" = yes; then | |
6457 | echo "$as_me:$LINENO: result: yes" >&5 | |
6458 | echo "${ECHO_T}yes" >&6 | |
6459 | else | |
6460 | echo "$as_me:$LINENO: result: no" >&5 | |
6461 | echo "${ECHO_T}no" >&6 | |
6462 | fi | |
6463 | ||
6464 | ||
6465 | enablestring= | |
6466 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 | |
6467 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
6468 | no_cache=0 | |
6469 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
6470 | if test "${enable_protocol_http+set}" = set; then | |
6471 | enableval="$enable_protocol_http" | |
6472 | ||
6473 | if test "$enableval" = yes; then | |
6474 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
6475 | else | |
6476 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
6477 | fi | |
6478 | ||
6479 | else | |
6480 | ||
6481 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
6482 | if test "x$LINE" != x ; then | |
6483 | eval "DEFAULT_$LINE" | |
6484 | else | |
6485 | no_cache=1 | |
6486 | fi | |
6487 | ||
6488 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
6489 | ||
6490 | fi; | |
6491 | ||
6492 | eval "$ac_cv_use_protocol_http" | |
6493 | if test "$no_cache" != 1; then | |
6494 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
6495 | fi | |
6496 | ||
6497 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
6498 | echo "$as_me:$LINENO: result: yes" >&5 | |
6499 | echo "${ECHO_T}yes" >&6 | |
6500 | else | |
6501 | echo "$as_me:$LINENO: result: no" >&5 | |
6502 | echo "${ECHO_T}no" >&6 | |
6503 | fi | |
6504 | ||
6505 | ||
6506 | enablestring= | |
6507 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 | |
6508 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
6509 | no_cache=0 | |
6510 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
6511 | if test "${enable_protocol_ftp+set}" = set; then | |
6512 | enableval="$enable_protocol_ftp" | |
6513 | ||
6514 | if test "$enableval" = yes; then | |
6515 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
6516 | else | |
6517 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
6518 | fi | |
6519 | ||
6520 | else | |
6521 | ||
6522 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
6523 | if test "x$LINE" != x ; then | |
6524 | eval "DEFAULT_$LINE" | |
6525 | else | |
6526 | no_cache=1 | |
6527 | fi | |
6528 | ||
6529 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
6530 | ||
6531 | fi; | |
6532 | ||
6533 | eval "$ac_cv_use_protocol_ftp" | |
6534 | if test "$no_cache" != 1; then | |
6535 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
6536 | fi | |
6537 | ||
6538 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
6539 | echo "$as_me:$LINENO: result: yes" >&5 | |
6540 | echo "${ECHO_T}yes" >&6 | |
6541 | else | |
6542 | echo "$as_me:$LINENO: result: no" >&5 | |
6543 | echo "${ECHO_T}no" >&6 | |
6544 | fi | |
6545 | ||
6546 | ||
6547 | enablestring= | |
6548 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 | |
6549 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
6550 | no_cache=0 | |
6551 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
6552 | if test "${enable_protocol_file+set}" = set; then | |
6553 | enableval="$enable_protocol_file" | |
6554 | ||
6555 | if test "$enableval" = yes; then | |
6556 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
6557 | else | |
6558 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
6559 | fi | |
6560 | ||
6561 | else | |
6562 | ||
6563 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
6564 | if test "x$LINE" != x ; then | |
6565 | eval "DEFAULT_$LINE" | |
6566 | else | |
6567 | no_cache=1 | |
6568 | fi | |
6569 | ||
6570 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
6571 | ||
6572 | fi; | |
6573 | ||
6574 | eval "$ac_cv_use_protocol_file" | |
6575 | if test "$no_cache" != 1; then | |
6576 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
6577 | fi | |
6578 | ||
6579 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
6580 | echo "$as_me:$LINENO: result: yes" >&5 | |
6581 | echo "${ECHO_T}yes" >&6 | |
6582 | else | |
6583 | echo "$as_me:$LINENO: result: no" >&5 | |
6584 | echo "${ECHO_T}no" >&6 | |
6585 | fi | |
6586 | ||
6587 | ||
6588 | ||
6589 | ||
6590 | ||
6591 | enablestring= | |
6592 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 | |
6593 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
6594 | no_cache=0 | |
6595 | # Check whether --enable-threads or --disable-threads was given. | |
6596 | if test "${enable_threads+set}" = set; then | |
6597 | enableval="$enable_threads" | |
6598 | ||
6599 | if test "$enableval" = yes; then | |
6600 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
6601 | else | |
6602 | ac_cv_use_threads='wxUSE_THREADS=no' | |
6603 | fi | |
6604 | ||
6605 | else | |
6606 | ||
6607 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
6608 | if test "x$LINE" != x ; then | |
6609 | eval "DEFAULT_$LINE" | |
6610 | else | |
6611 | no_cache=1 | |
6612 | fi | |
6613 | ||
6614 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
6615 | ||
6616 | fi; | |
6617 | ||
6618 | eval "$ac_cv_use_threads" | |
6619 | if test "$no_cache" != 1; then | |
6620 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
6621 | fi | |
6622 | ||
6623 | if test "$wxUSE_THREADS" = yes; then | |
6624 | echo "$as_me:$LINENO: result: yes" >&5 | |
6625 | echo "${ECHO_T}yes" >&6 | |
6626 | else | |
6627 | echo "$as_me:$LINENO: result: no" >&5 | |
6628 | echo "${ECHO_T}no" >&6 | |
6629 | fi | |
6630 | ||
6631 | ||
6632 | if test "$wxUSE_GUI" = "yes"; then | |
6633 | ||
6634 | ||
6635 | ||
6636 | enablestring= | |
6637 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 | |
6638 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
6639 | no_cache=0 | |
6640 | # Check whether --enable-docview or --disable-docview was given. | |
6641 | if test "${enable_docview+set}" = set; then | |
6642 | enableval="$enable_docview" | |
6643 | ||
6644 | if test "$enableval" = yes; then | |
6645 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
6646 | else | |
6647 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
6648 | fi | |
6649 | ||
6650 | else | |
6651 | ||
6652 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
6653 | if test "x$LINE" != x ; then | |
6654 | eval "DEFAULT_$LINE" | |
6655 | else | |
6656 | no_cache=1 | |
6657 | fi | |
6658 | ||
6659 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
6660 | ||
6661 | fi; | |
6662 | ||
6663 | eval "$ac_cv_use_docview" | |
6664 | if test "$no_cache" != 1; then | |
6665 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
6666 | fi | |
6667 | ||
6668 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
6669 | echo "$as_me:$LINENO: result: yes" >&5 | |
6670 | echo "${ECHO_T}yes" >&6 | |
6671 | else | |
6672 | echo "$as_me:$LINENO: result: no" >&5 | |
6673 | echo "${ECHO_T}no" >&6 | |
6674 | fi | |
6675 | ||
6676 | ||
6677 | enablestring= | |
6678 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 | |
6679 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
6680 | no_cache=0 | |
6681 | # Check whether --enable-help or --disable-help was given. | |
6682 | if test "${enable_help+set}" = set; then | |
6683 | enableval="$enable_help" | |
6684 | ||
6685 | if test "$enableval" = yes; then | |
6686 | ac_cv_use_help='wxUSE_HELP=yes' | |
6687 | else | |
6688 | ac_cv_use_help='wxUSE_HELP=no' | |
6689 | fi | |
6690 | ||
6691 | else | |
6692 | ||
6693 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
6694 | if test "x$LINE" != x ; then | |
6695 | eval "DEFAULT_$LINE" | |
6696 | else | |
6697 | no_cache=1 | |
6698 | fi | |
6699 | ||
6700 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
6701 | ||
6702 | fi; | |
6703 | ||
6704 | eval "$ac_cv_use_help" | |
6705 | if test "$no_cache" != 1; then | |
6706 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
6707 | fi | |
6708 | ||
6709 | if test "$wxUSE_HELP" = yes; then | |
6710 | echo "$as_me:$LINENO: result: yes" >&5 | |
6711 | echo "${ECHO_T}yes" >&6 | |
6712 | else | |
6713 | echo "$as_me:$LINENO: result: no" >&5 | |
6714 | echo "${ECHO_T}no" >&6 | |
6715 | fi | |
6716 | ||
6717 | ||
6718 | enablestring= | |
6719 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 | |
6720 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
6721 | no_cache=0 | |
6722 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
6723 | if test "${enable_mshtmlhelp+set}" = set; then | |
6724 | enableval="$enable_mshtmlhelp" | |
6725 | ||
6726 | if test "$enableval" = yes; then | |
6727 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
6728 | else | |
6729 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
6730 | fi | |
6731 | ||
6732 | else | |
6733 | ||
6734 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
6735 | if test "x$LINE" != x ; then | |
6736 | eval "DEFAULT_$LINE" | |
6737 | else | |
6738 | no_cache=1 | |
6739 | fi | |
6740 | ||
6741 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
6742 | ||
6743 | fi; | |
6744 | ||
6745 | eval "$ac_cv_use_mshtmlhelp" | |
6746 | if test "$no_cache" != 1; then | |
6747 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
6748 | fi | |
6749 | ||
6750 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
6751 | echo "$as_me:$LINENO: result: yes" >&5 | |
6752 | echo "${ECHO_T}yes" >&6 | |
6753 | else | |
6754 | echo "$as_me:$LINENO: result: no" >&5 | |
6755 | echo "${ECHO_T}no" >&6 | |
6756 | fi | |
6757 | ||
6758 | ||
6759 | enablestring= | |
6760 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
6761 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
6762 | no_cache=0 | |
6763 | # Check whether --enable-html or --disable-html was given. | |
6764 | if test "${enable_html+set}" = set; then | |
6765 | enableval="$enable_html" | |
6766 | ||
6767 | if test "$enableval" = yes; then | |
6768 | ac_cv_use_html='wxUSE_HTML=yes' | |
6769 | else | |
6770 | ac_cv_use_html='wxUSE_HTML=no' | |
6771 | fi | |
6772 | ||
6773 | else | |
6774 | ||
6775 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
6776 | if test "x$LINE" != x ; then | |
6777 | eval "DEFAULT_$LINE" | |
6778 | else | |
6779 | no_cache=1 | |
6780 | fi | |
6781 | ||
6782 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
6783 | ||
6784 | fi; | |
6785 | ||
6786 | eval "$ac_cv_use_html" | |
6787 | if test "$no_cache" != 1; then | |
6788 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6789 | fi | |
6790 | ||
6791 | if test "$wxUSE_HTML" = yes; then | |
6792 | echo "$as_me:$LINENO: result: yes" >&5 | |
6793 | echo "${ECHO_T}yes" >&6 | |
6794 | else | |
6795 | echo "$as_me:$LINENO: result: no" >&5 | |
6796 | echo "${ECHO_T}no" >&6 | |
6797 | fi | |
6798 | ||
6799 | ||
6800 | enablestring= | |
6801 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 | |
6802 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
6803 | no_cache=0 | |
6804 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
6805 | if test "${enable_htmlhelp+set}" = set; then | |
6806 | enableval="$enable_htmlhelp" | |
6807 | ||
6808 | if test "$enableval" = yes; then | |
6809 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
6810 | else | |
6811 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
6812 | fi | |
6813 | ||
6814 | else | |
6815 | ||
6816 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
6817 | if test "x$LINE" != x ; then | |
6818 | eval "DEFAULT_$LINE" | |
6819 | else | |
6820 | no_cache=1 | |
6821 | fi | |
6822 | ||
6823 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
6824 | ||
6825 | fi; | |
6826 | ||
6827 | eval "$ac_cv_use_htmlhelp" | |
6828 | if test "$no_cache" != 1; then | |
6829 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
6830 | fi | |
6831 | ||
6832 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
6833 | echo "$as_me:$LINENO: result: yes" >&5 | |
6834 | echo "${ECHO_T}yes" >&6 | |
6835 | else | |
6836 | echo "$as_me:$LINENO: result: no" >&5 | |
6837 | echo "${ECHO_T}no" >&6 | |
6838 | fi | |
6839 | ||
6840 | ||
9a8f0513 VS |
6841 | enablestring= |
6842 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5 | |
6843 | echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6 | |
6844 | no_cache=0 | |
6845 | # Check whether --enable-xrc or --disable-xrc was given. | |
6846 | if test "${enable_xrc+set}" = set; then | |
6847 | enableval="$enable_xrc" | |
6848 | ||
6849 | if test "$enableval" = yes; then | |
6850 | ac_cv_use_xrc='wxUSE_XRC=yes' | |
6851 | else | |
6852 | ac_cv_use_xrc='wxUSE_XRC=no' | |
6853 | fi | |
6854 | ||
6855 | else | |
6856 | ||
6857 | LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}` | |
6858 | if test "x$LINE" != x ; then | |
6859 | eval "DEFAULT_$LINE" | |
6860 | else | |
6861 | no_cache=1 | |
6862 | fi | |
6863 | ||
6864 | ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC | |
6865 | ||
6866 | fi; | |
6867 | ||
6868 | eval "$ac_cv_use_xrc" | |
6869 | if test "$no_cache" != 1; then | |
6870 | echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp | |
6871 | fi | |
6872 | ||
6873 | if test "$wxUSE_XRC" = yes; then | |
6874 | echo "$as_me:$LINENO: result: yes" >&5 | |
6875 | echo "${ECHO_T}yes" >&6 | |
6876 | else | |
6877 | echo "$as_me:$LINENO: result: no" >&5 | |
6878 | echo "${ECHO_T}no" >&6 | |
6879 | fi | |
6880 | ||
6881 | ||
a848cd7e SC |
6882 | enablestring= |
6883 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 | |
6884 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
6885 | no_cache=0 | |
6886 | # Check whether --enable-constraints or --disable-constraints was given. | |
6887 | if test "${enable_constraints+set}" = set; then | |
6888 | enableval="$enable_constraints" | |
6889 | ||
6890 | if test "$enableval" = yes; then | |
6891 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
6892 | else | |
6893 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
6894 | fi | |
6895 | ||
6896 | else | |
6897 | ||
6898 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
6899 | if test "x$LINE" != x ; then | |
6900 | eval "DEFAULT_$LINE" | |
6901 | else | |
6902 | no_cache=1 | |
6903 | fi | |
6904 | ||
6905 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
6906 | ||
6907 | fi; | |
6908 | ||
6909 | eval "$ac_cv_use_constraints" | |
6910 | if test "$no_cache" != 1; then | |
6911 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
6912 | fi | |
6913 | ||
6914 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
6915 | echo "$as_me:$LINENO: result: yes" >&5 | |
6916 | echo "${ECHO_T}yes" >&6 | |
6917 | else | |
6918 | echo "$as_me:$LINENO: result: no" >&5 | |
6919 | echo "${ECHO_T}no" >&6 | |
6920 | fi | |
6921 | ||
6922 | ||
6923 | enablestring= | |
6924 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 | |
6925 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
6926 | no_cache=0 | |
6927 | # Check whether --enable-printarch or --disable-printarch was given. | |
6928 | if test "${enable_printarch+set}" = set; then | |
6929 | enableval="$enable_printarch" | |
6930 | ||
6931 | if test "$enableval" = yes; then | |
6932 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
6933 | else | |
6934 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
6935 | fi | |
6936 | ||
6937 | else | |
6938 | ||
6939 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
6940 | if test "x$LINE" != x ; then | |
6941 | eval "DEFAULT_$LINE" | |
6942 | else | |
6943 | no_cache=1 | |
6944 | fi | |
6945 | ||
6946 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
6947 | ||
6948 | fi; | |
6949 | ||
6950 | eval "$ac_cv_use_printarch" | |
6951 | if test "$no_cache" != 1; then | |
6952 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
6953 | fi | |
6954 | ||
6955 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
6956 | echo "$as_me:$LINENO: result: yes" >&5 | |
6957 | echo "${ECHO_T}yes" >&6 | |
6958 | else | |
6959 | echo "$as_me:$LINENO: result: no" >&5 | |
6960 | echo "${ECHO_T}no" >&6 | |
6961 | fi | |
6962 | ||
6963 | ||
6964 | enablestring= | |
6965 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 | |
6966 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
6967 | no_cache=0 | |
6968 | # Check whether --enable-mdi or --disable-mdi was given. | |
6969 | if test "${enable_mdi+set}" = set; then | |
6970 | enableval="$enable_mdi" | |
6971 | ||
6972 | if test "$enableval" = yes; then | |
8a7b1113 | 6973 | ac_cv_use_mdi='wxUSE_MDI=yes' |
a848cd7e | 6974 | else |
8a7b1113 | 6975 | ac_cv_use_mdi='wxUSE_MDI=no' |
a848cd7e SC |
6976 | fi |
6977 | ||
6978 | else | |
6979 | ||
8a7b1113 | 6980 | LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}` |
a848cd7e SC |
6981 | if test "x$LINE" != x ; then |
6982 | eval "DEFAULT_$LINE" | |
6983 | else | |
6984 | no_cache=1 | |
6985 | fi | |
6986 | ||
8a7b1113 | 6987 | ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI |
a848cd7e SC |
6988 | |
6989 | fi; | |
6990 | ||
6991 | eval "$ac_cv_use_mdi" | |
6992 | if test "$no_cache" != 1; then | |
6993 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6994 | fi | |
6995 | ||
8a7b1113 VZ |
6996 | if test "$wxUSE_MDI" = yes; then |
6997 | echo "$as_me:$LINENO: result: yes" >&5 | |
6998 | echo "${ECHO_T}yes" >&6 | |
6999 | else | |
7000 | echo "$as_me:$LINENO: result: no" >&5 | |
7001 | echo "${ECHO_T}no" >&6 | |
7002 | fi | |
7003 | ||
7004 | ||
7005 | enablestring= | |
7006 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5 | |
7007 | echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6 | |
7008 | no_cache=0 | |
7009 | # Check whether --enable-mdidoc or --disable-mdidoc was given. | |
7010 | if test "${enable_mdidoc+set}" = set; then | |
7011 | enableval="$enable_mdidoc" | |
7012 | ||
7013 | if test "$enableval" = yes; then | |
7014 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes' | |
7015 | else | |
7016 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no' | |
7017 | fi | |
7018 | ||
7019 | else | |
7020 | ||
7021 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
7022 | if test "x$LINE" != x ; then | |
7023 | eval "DEFAULT_$LINE" | |
7024 | else | |
7025 | no_cache=1 | |
7026 | fi | |
7027 | ||
7028 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
7029 | ||
7030 | fi; | |
7031 | ||
7032 | eval "$ac_cv_use_mdidoc" | |
7033 | if test "$no_cache" != 1; then | |
7034 | echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp | |
7035 | fi | |
7036 | ||
a848cd7e SC |
7037 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then |
7038 | echo "$as_me:$LINENO: result: yes" >&5 | |
7039 | echo "${ECHO_T}yes" >&6 | |
7040 | else | |
7041 | echo "$as_me:$LINENO: result: no" >&5 | |
7042 | echo "${ECHO_T}no" >&6 | |
7043 | fi | |
7044 | ||
7045 | ||
7046 | enablestring= | |
7047 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 | |
7048 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
7049 | no_cache=0 | |
7050 | # Check whether --enable-loggui or --disable-loggui was given. | |
7051 | if test "${enable_loggui+set}" = set; then | |
7052 | enableval="$enable_loggui" | |
7053 | ||
7054 | if test "$enableval" = yes; then | |
7055 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
7056 | else | |
7057 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
7058 | fi | |
7059 | ||
7060 | else | |
7061 | ||
7062 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
7063 | if test "x$LINE" != x ; then | |
7064 | eval "DEFAULT_$LINE" | |
7065 | else | |
7066 | no_cache=1 | |
7067 | fi | |
7068 | ||
7069 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
7070 | ||
7071 | fi; | |
7072 | ||
7073 | eval "$ac_cv_use_loggui" | |
7074 | if test "$no_cache" != 1; then | |
7075 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
7076 | fi | |
7077 | ||
7078 | if test "$wxUSE_LOGGUI" = yes; then | |
7079 | echo "$as_me:$LINENO: result: yes" >&5 | |
7080 | echo "${ECHO_T}yes" >&6 | |
7081 | else | |
7082 | echo "$as_me:$LINENO: result: no" >&5 | |
7083 | echo "${ECHO_T}no" >&6 | |
7084 | fi | |
7085 | ||
7086 | ||
7087 | enablestring= | |
7088 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 | |
7089 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
7090 | no_cache=0 | |
7091 | # Check whether --enable-logwin or --disable-logwin was given. | |
7092 | if test "${enable_logwin+set}" = set; then | |
7093 | enableval="$enable_logwin" | |
7094 | ||
7095 | if test "$enableval" = yes; then | |
7096 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
7097 | else | |
7098 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
7099 | fi | |
7100 | ||
7101 | else | |
7102 | ||
7103 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
7104 | if test "x$LINE" != x ; then | |
7105 | eval "DEFAULT_$LINE" | |
7106 | else | |
7107 | no_cache=1 | |
7108 | fi | |
7109 | ||
7110 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
7111 | ||
7112 | fi; | |
7113 | ||
7114 | eval "$ac_cv_use_logwin" | |
7115 | if test "$no_cache" != 1; then | |
7116 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
7117 | fi | |
7118 | ||
7119 | if test "$wxUSE_LOGWINDOW" = yes; then | |
7120 | echo "$as_me:$LINENO: result: yes" >&5 | |
7121 | echo "${ECHO_T}yes" >&6 | |
7122 | else | |
7123 | echo "$as_me:$LINENO: result: no" >&5 | |
7124 | echo "${ECHO_T}no" >&6 | |
7125 | fi | |
7126 | ||
7127 | ||
7128 | enablestring= | |
7129 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 | |
7130 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
7131 | no_cache=0 | |
7132 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
7133 | if test "${enable_logdialog+set}" = set; then | |
7134 | enableval="$enable_logdialog" | |
7135 | ||
7136 | if test "$enableval" = yes; then | |
7137 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
7138 | else | |
7139 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
7140 | fi | |
7141 | ||
7142 | else | |
7143 | ||
7144 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
7145 | if test "x$LINE" != x ; then | |
7146 | eval "DEFAULT_$LINE" | |
7147 | else | |
7148 | no_cache=1 | |
7149 | fi | |
7150 | ||
7151 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
7152 | ||
7153 | fi; | |
7154 | ||
7155 | eval "$ac_cv_use_logdialog" | |
7156 | if test "$no_cache" != 1; then | |
7157 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
7158 | fi | |
7159 | ||
7160 | if test "$wxUSE_LOGDIALOG" = yes; then | |
7161 | echo "$as_me:$LINENO: result: yes" >&5 | |
7162 | echo "${ECHO_T}yes" >&6 | |
7163 | else | |
7164 | echo "$as_me:$LINENO: result: no" >&5 | |
7165 | echo "${ECHO_T}no" >&6 | |
7166 | fi | |
7167 | ||
7168 | ||
646b6ec1 VS |
7169 | enablestring= |
7170 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5 | |
7171 | echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6 | |
7172 | no_cache=0 | |
7173 | # Check whether --enable-webkit or --disable-webkit was given. | |
7174 | if test "${enable_webkit+set}" = set; then | |
7175 | enableval="$enable_webkit" | |
7176 | ||
7177 | if test "$enableval" = yes; then | |
7178 | ac_cv_use_webkit='wxUSE_WEBKIT=yes' | |
7179 | else | |
7180 | ac_cv_use_webkit='wxUSE_WEBKIT=no' | |
7181 | fi | |
7182 | ||
7183 | else | |
7184 | ||
7185 | LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}` | |
7186 | if test "x$LINE" != x ; then | |
7187 | eval "DEFAULT_$LINE" | |
7188 | else | |
7189 | no_cache=1 | |
7190 | fi | |
7191 | ||
7192 | ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT | |
7193 | ||
7194 | fi; | |
7195 | ||
7196 | eval "$ac_cv_use_webkit" | |
7197 | if test "$no_cache" != 1; then | |
7198 | echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp | |
7199 | fi | |
7200 | ||
7201 | if test "$wxUSE_WEBKIT" = yes; then | |
7202 | echo "$as_me:$LINENO: result: yes" >&5 | |
7203 | echo "${ECHO_T}yes" >&6 | |
7204 | else | |
7205 | echo "$as_me:$LINENO: result: no" >&5 | |
7206 | echo "${ECHO_T}no" >&6 | |
7207 | fi | |
7208 | ||
7209 | ||
91dea314 MW |
7210 | enablestring= |
7211 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
7212 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
7213 | no_cache=0 | |
7214 | # Check whether --enable-html or --disable-html was given. | |
7215 | if test "${enable_html+set}" = set; then | |
7216 | enableval="$enable_html" | |
7217 | ||
7218 | if test "$enableval" = yes; then | |
7219 | ac_cv_use_html='wxUSE_RICHTEXT=yes' | |
7220 | else | |
7221 | ac_cv_use_html='wxUSE_RICHTEXT=no' | |
7222 | fi | |
7223 | ||
7224 | else | |
7225 | ||
7226 | LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}` | |
7227 | if test "x$LINE" != x ; then | |
7228 | eval "DEFAULT_$LINE" | |
7229 | else | |
7230 | no_cache=1 | |
7231 | fi | |
7232 | ||
7233 | ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT | |
7234 | ||
7235 | fi; | |
7236 | ||
7237 | eval "$ac_cv_use_html" | |
7238 | if test "$no_cache" != 1; then | |
7239 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
7240 | fi | |
7241 | ||
7242 | if test "$wxUSE_RICHTEXT" = yes; then | |
7243 | echo "$as_me:$LINENO: result: yes" >&5 | |
7244 | echo "${ECHO_T}yes" >&6 | |
7245 | else | |
7246 | echo "$as_me:$LINENO: result: no" >&5 | |
7247 | echo "${ECHO_T}no" >&6 | |
7248 | fi | |
7249 | ||
7250 | ||
a848cd7e SC |
7251 | |
7252 | enablestring= | |
7253 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 | |
7254 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
7255 | no_cache=0 | |
7256 | # Check whether --enable-postscript or --disable-postscript was given. | |
7257 | if test "${enable_postscript+set}" = set; then | |
7258 | enableval="$enable_postscript" | |
7259 | ||
7260 | if test "$enableval" = yes; then | |
7261 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
7262 | else | |
7263 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
7264 | fi | |
7265 | ||
7266 | else | |
7267 | ||
7268 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
7269 | if test "x$LINE" != x ; then | |
7270 | eval "DEFAULT_$LINE" | |
7271 | else | |
7272 | no_cache=1 | |
7273 | fi | |
7274 | ||
7275 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
7276 | ||
7277 | fi; | |
7278 | ||
7279 | eval "$ac_cv_use_postscript" | |
7280 | if test "$no_cache" != 1; then | |
7281 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
7282 | fi | |
7283 | ||
7284 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
7285 | echo "$as_me:$LINENO: result: yes" >&5 | |
7286 | echo "${ECHO_T}yes" >&6 | |
7287 | else | |
7288 | echo "$as_me:$LINENO: result: no" >&5 | |
7289 | echo "${ECHO_T}no" >&6 | |
7290 | fi | |
7291 | ||
7292 | ||
7293 | ||
7294 | ||
7295 | ||
7296 | enablestring= | |
7297 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 | |
7298 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
7299 | no_cache=0 | |
7300 | # Check whether --enable-prologio or --disable-prologio was given. | |
7301 | if test "${enable_prologio+set}" = set; then | |
7302 | enableval="$enable_prologio" | |
7303 | ||
7304 | if test "$enableval" = yes; then | |
7305 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
7306 | else | |
7307 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
7308 | fi | |
7309 | ||
7310 | else | |
7311 | ||
7312 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
7313 | if test "x$LINE" != x ; then | |
7314 | eval "DEFAULT_$LINE" | |
7315 | else | |
7316 | no_cache=1 | |
7317 | fi | |
7318 | ||
7319 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
7320 | ||
7321 | fi; | |
7322 | ||
7323 | eval "$ac_cv_use_prologio" | |
7324 | if test "$no_cache" != 1; then | |
7325 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
7326 | fi | |
7327 | ||
7328 | if test "$wxUSE_PROLOGIO" = yes; then | |
7329 | echo "$as_me:$LINENO: result: yes" >&5 | |
7330 | echo "${ECHO_T}yes" >&6 | |
7331 | else | |
7332 | echo "$as_me:$LINENO: result: no" >&5 | |
7333 | echo "${ECHO_T}no" >&6 | |
7334 | fi | |
7335 | ||
7336 | ||
7337 | enablestring= | |
7338 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 | |
7339 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
7340 | no_cache=0 | |
7341 | # Check whether --enable-resources or --disable-resources was given. | |
7342 | if test "${enable_resources+set}" = set; then | |
7343 | enableval="$enable_resources" | |
7344 | ||
7345 | if test "$enableval" = yes; then | |
7346 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
7347 | else | |
7348 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
7349 | fi | |
7350 | ||
7351 | else | |
7352 | ||
7353 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
7354 | if test "x$LINE" != x ; then | |
7355 | eval "DEFAULT_$LINE" | |
7356 | else | |
7357 | no_cache=1 | |
7358 | fi | |
7359 | ||
7360 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
7361 | ||
7362 | fi; | |
7363 | ||
7364 | eval "$ac_cv_use_resources" | |
7365 | if test "$no_cache" != 1; then | |
7366 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
7367 | fi | |
7368 | ||
7369 | if test "$wxUSE_RESOURCES" = yes; then | |
7370 | echo "$as_me:$LINENO: result: yes" >&5 | |
7371 | echo "${ECHO_T}yes" >&6 | |
7372 | else | |
7373 | echo "$as_me:$LINENO: result: no" >&5 | |
7374 | echo "${ECHO_T}no" >&6 | |
7375 | fi | |
7376 | ||
7377 | ||
7378 | ||
7379 | ||
7380 | enablestring= | |
7381 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 | |
7382 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
7383 | no_cache=0 | |
7384 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
7385 | if test "${enable_clipboard+set}" = set; then | |
7386 | enableval="$enable_clipboard" | |
7387 | ||
7388 | if test "$enableval" = yes; then | |
7389 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
7390 | else | |
7391 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
7392 | fi | |
7393 | ||
7394 | else | |
7395 | ||
7396 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
7397 | if test "x$LINE" != x ; then | |
7398 | eval "DEFAULT_$LINE" | |
7399 | else | |
7400 | no_cache=1 | |
7401 | fi | |
7402 | ||
7403 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
7404 | ||
7405 | fi; | |
7406 | ||
7407 | eval "$ac_cv_use_clipboard" | |
7408 | if test "$no_cache" != 1; then | |
7409 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
7410 | fi | |
7411 | ||
7412 | if test "$wxUSE_CLIPBOARD" = yes; then | |
7413 | echo "$as_me:$LINENO: result: yes" >&5 | |
7414 | echo "${ECHO_T}yes" >&6 | |
7415 | else | |
7416 | echo "$as_me:$LINENO: result: no" >&5 | |
7417 | echo "${ECHO_T}no" >&6 | |
7418 | fi | |
7419 | ||
7420 | ||
7421 | enablestring= | |
7422 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 | |
7423 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
7424 | no_cache=0 | |
7425 | # Check whether --enable-dnd or --disable-dnd was given. | |
7426 | if test "${enable_dnd+set}" = set; then | |
7427 | enableval="$enable_dnd" | |
7428 | ||
7429 | if test "$enableval" = yes; then | |
7430 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
7431 | else | |
7432 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
7433 | fi | |
7434 | ||
7435 | else | |
7436 | ||
7437 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
7438 | if test "x$LINE" != x ; then | |
7439 | eval "DEFAULT_$LINE" | |
7440 | else | |
7441 | no_cache=1 | |
7442 | fi | |
7443 | ||
7444 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
7445 | ||
7446 | fi; | |
7447 | ||
7448 | eval "$ac_cv_use_dnd" | |
7449 | if test "$no_cache" != 1; then | |
7450 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
7451 | fi | |
7452 | ||
7453 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
7454 | echo "$as_me:$LINENO: result: yes" >&5 | |
7455 | echo "${ECHO_T}yes" >&6 | |
7456 | else | |
7457 | echo "$as_me:$LINENO: result: no" >&5 | |
7458 | echo "${ECHO_T}no" >&6 | |
7459 | fi | |
7460 | ||
7461 | ||
7462 | enablestring= | |
7463 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
7464 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
7465 | no_cache=0 | |
7466 | # Check whether --enable-metafile or --disable-metafile was given. | |
7467 | if test "${enable_metafile+set}" = set; then | |
7468 | enableval="$enable_metafile" | |
7469 | ||
7470 | if test "$enableval" = yes; then | |
7471 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7472 | else | |
7473 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7474 | fi | |
7475 | ||
7476 | else | |
7477 | ||
7478 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7479 | if test "x$LINE" != x ; then | |
7480 | eval "DEFAULT_$LINE" | |
7481 | else | |
7482 | no_cache=1 | |
7483 | fi | |
7484 | ||
7485 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7486 | ||
7487 | fi; | |
7488 | ||
7489 | eval "$ac_cv_use_metafile" | |
7490 | if test "$no_cache" != 1; then | |
7491 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7492 | fi | |
7493 | ||
7494 | if test "$wxUSE_METAFILE" = yes; then | |
7495 | echo "$as_me:$LINENO: result: yes" >&5 | |
7496 | echo "${ECHO_T}yes" >&6 | |
7497 | else | |
7498 | echo "$as_me:$LINENO: result: no" >&5 | |
7499 | echo "${ECHO_T}no" >&6 | |
7500 | fi | |
7501 | ||
7502 | ||
7503 | ||
7504 | ||
7505 | ||
7506 | enablestring= | |
7507 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 | |
7508 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
7509 | no_cache=0 | |
7510 | # Check whether --enable-controls or --disable-controls was given. | |
7511 | if test "${enable_controls+set}" = set; then | |
7512 | enableval="$enable_controls" | |
7513 | ||
7514 | if test "$enableval" = yes; then | |
7515 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
7516 | else | |
7517 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
7518 | fi | |
7519 | ||
7520 | else | |
7521 | ||
7522 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
7523 | if test "x$LINE" != x ; then | |
7524 | eval "DEFAULT_$LINE" | |
7525 | else | |
7526 | no_cache=1 | |
7527 | fi | |
7528 | ||
7529 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
7530 | ||
7531 | fi; | |
7532 | ||
7533 | eval "$ac_cv_use_controls" | |
7534 | if test "$no_cache" != 1; then | |
7535 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
7536 | fi | |
7537 | ||
7538 | if test "$wxUSE_CONTROLS" = yes; then | |
7539 | echo "$as_me:$LINENO: result: yes" >&5 | |
7540 | echo "${ECHO_T}yes" >&6 | |
7541 | else | |
7542 | echo "$as_me:$LINENO: result: no" >&5 | |
7543 | echo "${ECHO_T}no" >&6 | |
7544 | fi | |
7545 | ||
7546 | ||
7547 | if test "$wxUSE_CONTROLS" = "yes"; then | |
7548 | DEFAULT_wxUSE_ACCEL=yes | |
7549 | DEFAULT_wxUSE_BMPBUTTON=yes | |
7550 | DEFAULT_wxUSE_BUTTON=yes | |
da98e9be | 7551 | DEFAULT_wxUSE_CALCTRL=yes |
a848cd7e SC |
7552 | DEFAULT_wxUSE_CARET=yes |
7553 | DEFAULT_wxUSE_COMBOBOX=yes | |
7554 | DEFAULT_wxUSE_CHECKBOX=yes | |
7555 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
7556 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 7557 | DEFAULT_wxUSE_CHOICEBOOK=yes |
da98e9be | 7558 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
a848cd7e SC |
7559 | DEFAULT_wxUSE_GAUGE=yes |
7560 | DEFAULT_wxUSE_GRID=yes | |
20e34ecc | 7561 | DEFAULT_wxUSE_DATAVIEWCTRL=no |
a848cd7e SC |
7562 | DEFAULT_wxUSE_IMAGLIST=yes |
7563 | DEFAULT_wxUSE_LISTBOOK=yes | |
7564 | DEFAULT_wxUSE_LISTBOX=yes | |
7565 | DEFAULT_wxUSE_LISTCTRL=yes | |
7566 | DEFAULT_wxUSE_NOTEBOOK=yes | |
7567 | DEFAULT_wxUSE_RADIOBOX=yes | |
7568 | DEFAULT_wxUSE_RADIOBTN=yes | |
7569 | DEFAULT_wxUSE_SASH=yes | |
7570 | DEFAULT_wxUSE_SCROLLBAR=yes | |
7571 | DEFAULT_wxUSE_SLIDER=yes | |
7572 | DEFAULT_wxUSE_SPINBTN=yes | |
7573 | DEFAULT_wxUSE_SPINCTRL=yes | |
7574 | DEFAULT_wxUSE_SPLITTER=yes | |
7575 | DEFAULT_wxUSE_STATBMP=yes | |
7576 | DEFAULT_wxUSE_STATBOX=yes | |
7577 | DEFAULT_wxUSE_STATLINE=yes | |
7578 | DEFAULT_wxUSE_STATUSBAR=yes | |
7579 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
7580 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
7581 | DEFAULT_wxUSE_TOOLBAR=yes | |
7582 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
7583 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
7584 | DEFAULT_wxUSE_TOOLTIPS=yes | |
0093c2fc | 7585 | DEFAULT_wxUSE_TREEBOOK=yes |
5ec3bc43 | 7586 | DEFAULT_wxUSE_TOOLBOOK=yes |
a848cd7e SC |
7587 | DEFAULT_wxUSE_TREECTRL=yes |
7588 | DEFAULT_wxUSE_POPUPWIN=yes | |
7589 | DEFAULT_wxUSE_TIPWINDOW=yes | |
7590 | elif test "$wxUSE_CONTROLS" = "no"; then | |
7591 | DEFAULT_wxUSE_ACCEL=no | |
7592 | DEFAULT_wxUSE_BMPBUTTON=no | |
7593 | DEFAULT_wxUSE_BUTTON=no | |
7594 | DEFAULT_wxUSE_CALCTRL=no | |
7595 | DEFAULT_wxUSE_CARET=no | |
7596 | DEFAULT_wxUSE_COMBOBOX=no | |
7597 | DEFAULT_wxUSE_CHECKBOX=no | |
7598 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
7599 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 7600 | DEFAULT_wxUSE_CHOICEBOOK=no |
da98e9be | 7601 | DEFAULT_wxUSE_DATEPICKCTRL=no |
a848cd7e SC |
7602 | DEFAULT_wxUSE_GAUGE=no |
7603 | DEFAULT_wxUSE_GRID=no | |
20e34ecc | 7604 | DEFAULT_wxUSE_DATAVIEWCTRL=no |
a848cd7e SC |
7605 | DEFAULT_wxUSE_IMAGLIST=no |
7606 | DEFAULT_wxUSE_LISTBOOK=no | |
7607 | DEFAULT_wxUSE_LISTBOX=no | |
7608 | DEFAULT_wxUSE_LISTCTRL=no | |
7609 | DEFAULT_wxUSE_NOTEBOOK=no | |
7610 | DEFAULT_wxUSE_RADIOBOX=no | |
7611 | DEFAULT_wxUSE_RADIOBTN=no | |
7612 | DEFAULT_wxUSE_SASH=no | |
7613 | DEFAULT_wxUSE_SCROLLBAR=no | |
7614 | DEFAULT_wxUSE_SLIDER=no | |
7615 | DEFAULT_wxUSE_SPINBTN=no | |
7616 | DEFAULT_wxUSE_SPINCTRL=no | |
7617 | DEFAULT_wxUSE_SPLITTER=no | |
7618 | DEFAULT_wxUSE_STATBMP=no | |
7619 | DEFAULT_wxUSE_STATBOX=no | |
7620 | DEFAULT_wxUSE_STATLINE=no | |
7621 | DEFAULT_wxUSE_STATUSBAR=no | |
7622 | DEFAULT_wxUSE_TAB_DIALOG=no | |
7623 | DEFAULT_wxUSE_TOGGLEBTN=no | |
7624 | DEFAULT_wxUSE_TOOLBAR=no | |
7625 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
7626 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
7627 | DEFAULT_wxUSE_TOOLTIPS=no | |
0093c2fc | 7628 | DEFAULT_wxUSE_TREEBOOK=no |
5ec3bc43 | 7629 | DEFAULT_wxUSE_TOOLBOOK=no |
a848cd7e SC |
7630 | DEFAULT_wxUSE_TREECTRL=no |
7631 | DEFAULT_wxUSE_POPUPWIN=no | |
7632 | DEFAULT_wxUSE_TIPWINDOW=no | |
7633 | fi | |
7634 | ||
a848cd7e SC |
7635 | |
7636 | enablestring= | |
7637 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 | |
7638 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
7639 | no_cache=0 | |
7640 | # Check whether --enable-accel or --disable-accel was given. | |
7641 | if test "${enable_accel+set}" = set; then | |
7642 | enableval="$enable_accel" | |
7643 | ||
7644 | if test "$enableval" = yes; then | |
7645 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
7646 | else | |
7647 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
7648 | fi | |
7649 | ||
7650 | else | |
7651 | ||
7652 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
7653 | if test "x$LINE" != x ; then | |
7654 | eval "DEFAULT_$LINE" | |
7655 | else | |
7656 | no_cache=1 | |
7657 | fi | |
7658 | ||
7659 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
7660 | ||
7661 | fi; | |
7662 | ||
7663 | eval "$ac_cv_use_accel" | |
7664 | if test "$no_cache" != 1; then | |
7665 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
7666 | fi | |
7667 | ||
7668 | if test "$wxUSE_ACCEL" = yes; then | |
7669 | echo "$as_me:$LINENO: result: yes" >&5 | |
7670 | echo "${ECHO_T}yes" >&6 | |
7671 | else | |
7672 | echo "$as_me:$LINENO: result: no" >&5 | |
7673 | echo "${ECHO_T}no" >&6 | |
7674 | fi | |
7675 | ||
7676 | ||
7677 | enablestring= | |
7678 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 | |
7679 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
7680 | no_cache=0 | |
7681 | # Check whether --enable-button or --disable-button was given. | |
7682 | if test "${enable_button+set}" = set; then | |
7683 | enableval="$enable_button" | |
7684 | ||
7685 | if test "$enableval" = yes; then | |
7686 | ac_cv_use_button='wxUSE_BUTTON=yes' | |
7687 | else | |
7688 | ac_cv_use_button='wxUSE_BUTTON=no' | |
7689 | fi | |
7690 | ||
7691 | else | |
7692 | ||
7693 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` | |
7694 | if test "x$LINE" != x ; then | |
7695 | eval "DEFAULT_$LINE" | |
7696 | else | |
7697 | no_cache=1 | |
7698 | fi | |
7699 | ||
7700 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON | |
7701 | ||
7702 | fi; | |
7703 | ||
7704 | eval "$ac_cv_use_button" | |
7705 | if test "$no_cache" != 1; then | |
7706 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp | |
7707 | fi | |
7708 | ||
7709 | if test "$wxUSE_BUTTON" = yes; then | |
7710 | echo "$as_me:$LINENO: result: yes" >&5 | |
7711 | echo "${ECHO_T}yes" >&6 | |
7712 | else | |
7713 | echo "$as_me:$LINENO: result: no" >&5 | |
7714 | echo "${ECHO_T}no" >&6 | |
7715 | fi | |
7716 | ||
7717 | ||
7718 | enablestring= | |
7719 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 | |
7720 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
7721 | no_cache=0 | |
7722 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
7723 | if test "${enable_bmpbutton+set}" = set; then | |
7724 | enableval="$enable_bmpbutton" | |
7725 | ||
7726 | if test "$enableval" = yes; then | |
7727 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
7728 | else | |
7729 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
7730 | fi | |
7731 | ||
7732 | else | |
7733 | ||
7734 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
7735 | if test "x$LINE" != x ; then | |
7736 | eval "DEFAULT_$LINE" | |
7737 | else | |
7738 | no_cache=1 | |
7739 | fi | |
7740 | ||
7741 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
7742 | ||
7743 | fi; | |
7744 | ||
7745 | eval "$ac_cv_use_bmpbutton" | |
7746 | if test "$no_cache" != 1; then | |
7747 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
7748 | fi | |
7749 | ||
7750 | if test "$wxUSE_BMPBUTTON" = yes; then | |
7751 | echo "$as_me:$LINENO: result: yes" >&5 | |
7752 | echo "${ECHO_T}yes" >&6 | |
7753 | else | |
7754 | echo "$as_me:$LINENO: result: no" >&5 | |
7755 | echo "${ECHO_T}no" >&6 | |
7756 | fi | |
7757 | ||
7758 | ||
7759 | enablestring= | |
7760 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 | |
7761 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
7762 | no_cache=0 | |
7763 | # Check whether --enable-calendar or --disable-calendar was given. | |
7764 | if test "${enable_calendar+set}" = set; then | |
7765 | enableval="$enable_calendar" | |
7766 | ||
7767 | if test "$enableval" = yes; then | |
7768 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
7769 | else | |
7770 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
7771 | fi | |
7772 | ||
7773 | else | |
7774 | ||
7775 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
7776 | if test "x$LINE" != x ; then | |
7777 | eval "DEFAULT_$LINE" | |
7778 | else | |
7779 | no_cache=1 | |
7780 | fi | |
7781 | ||
7782 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
7783 | ||
7784 | fi; | |
7785 | ||
7786 | eval "$ac_cv_use_calendar" | |
7787 | if test "$no_cache" != 1; then | |
7788 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
7789 | fi | |
7790 | ||
7791 | if test "$wxUSE_CALCTRL" = yes; then | |
7792 | echo "$as_me:$LINENO: result: yes" >&5 | |
7793 | echo "${ECHO_T}yes" >&6 | |
7794 | else | |
7795 | echo "$as_me:$LINENO: result: no" >&5 | |
7796 | echo "${ECHO_T}no" >&6 | |
7797 | fi | |
7798 | ||
7799 | ||
7800 | enablestring= | |
7801 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 | |
7802 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
7803 | no_cache=0 | |
7804 | # Check whether --enable-caret or --disable-caret was given. | |
7805 | if test "${enable_caret+set}" = set; then | |
7806 | enableval="$enable_caret" | |
7807 | ||
7808 | if test "$enableval" = yes; then | |
7809 | ac_cv_use_caret='wxUSE_CARET=yes' | |
7810 | else | |
7811 | ac_cv_use_caret='wxUSE_CARET=no' | |
7812 | fi | |
7813 | ||
7814 | else | |
7815 | ||
7816 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
7817 | if test "x$LINE" != x ; then | |
7818 | eval "DEFAULT_$LINE" | |
7819 | else | |
7820 | no_cache=1 | |
7821 | fi | |
7822 | ||
7823 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
7824 | ||
7825 | fi; | |
7826 | ||
7827 | eval "$ac_cv_use_caret" | |
7828 | if test "$no_cache" != 1; then | |
7829 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
7830 | fi | |
7831 | ||
7832 | if test "$wxUSE_CARET" = yes; then | |
7833 | echo "$as_me:$LINENO: result: yes" >&5 | |
7834 | echo "${ECHO_T}yes" >&6 | |
7835 | else | |
7836 | echo "$as_me:$LINENO: result: no" >&5 | |
7837 | echo "${ECHO_T}no" >&6 | |
7838 | fi | |
7839 | ||
7840 | ||
7841 | enablestring= | |
7842 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 | |
7843 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
7844 | no_cache=0 | |
7845 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
7846 | if test "${enable_checkbox+set}" = set; then | |
7847 | enableval="$enable_checkbox" | |
7848 | ||
7849 | if test "$enableval" = yes; then | |
7850 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
7851 | else | |
7852 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
7853 | fi | |
7854 | ||
7855 | else | |
7856 | ||
7857 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
7858 | if test "x$LINE" != x ; then | |
7859 | eval "DEFAULT_$LINE" | |
7860 | else | |
7861 | no_cache=1 | |
7862 | fi | |
7863 | ||
7864 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
7865 | ||
7866 | fi; | |
7867 | ||
7868 | eval "$ac_cv_use_checkbox" | |
7869 | if test "$no_cache" != 1; then | |
7870 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
7871 | fi | |
7872 | ||
7873 | if test "$wxUSE_CHECKBOX" = yes; then | |
7874 | echo "$as_me:$LINENO: result: yes" >&5 | |
7875 | echo "${ECHO_T}yes" >&6 | |
7876 | else | |
7877 | echo "$as_me:$LINENO: result: no" >&5 | |
7878 | echo "${ECHO_T}no" >&6 | |
7879 | fi | |
7880 | ||
7881 | ||
7882 | enablestring= | |
7883 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 | |
7884 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
7885 | no_cache=0 | |
7886 | # Check whether --enable-checklst or --disable-checklst was given. | |
7887 | if test "${enable_checklst+set}" = set; then | |
7888 | enableval="$enable_checklst" | |
7889 | ||
7890 | if test "$enableval" = yes; then | |
7891 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
7892 | else | |
7893 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
7894 | fi | |
7895 | ||
7896 | else | |
7897 | ||
7898 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
7899 | if test "x$LINE" != x ; then | |
7900 | eval "DEFAULT_$LINE" | |
7901 | else | |
7902 | no_cache=1 | |
7903 | fi | |
7904 | ||
7905 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
7906 | ||
7907 | fi; | |
7908 | ||
7909 | eval "$ac_cv_use_checklst" | |
7910 | if test "$no_cache" != 1; then | |
7911 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
7912 | fi | |
7913 | ||
7914 | if test "$wxUSE_CHECKLST" = yes; then | |
7915 | echo "$as_me:$LINENO: result: yes" >&5 | |
7916 | echo "${ECHO_T}yes" >&6 | |
7917 | else | |
7918 | echo "$as_me:$LINENO: result: no" >&5 | |
7919 | echo "${ECHO_T}no" >&6 | |
7920 | fi | |
7921 | ||
7922 | ||
7923 | enablestring= | |
7924 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 | |
7925 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
7926 | no_cache=0 | |
7927 | # Check whether --enable-choice or --disable-choice was given. | |
7928 | if test "${enable_choice+set}" = set; then | |
7929 | enableval="$enable_choice" | |
7930 | ||
7931 | if test "$enableval" = yes; then | |
7932 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
7933 | else | |
7934 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
7935 | fi | |
7936 | ||
7937 | else | |
7938 | ||
7939 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
7940 | if test "x$LINE" != x ; then | |
7941 | eval "DEFAULT_$LINE" | |
7942 | else | |
7943 | no_cache=1 | |
7944 | fi | |
7945 | ||
7946 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
7947 | ||
7948 | fi; | |
7949 | ||
7950 | eval "$ac_cv_use_choice" | |
7951 | if test "$no_cache" != 1; then | |
7952 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
7953 | fi | |
7954 | ||
7955 | if test "$wxUSE_CHOICE" = yes; then | |
7956 | echo "$as_me:$LINENO: result: yes" >&5 | |
7957 | echo "${ECHO_T}yes" >&6 | |
7958 | else | |
7959 | echo "$as_me:$LINENO: result: no" >&5 | |
7960 | echo "${ECHO_T}no" >&6 | |
7961 | fi | |
7962 | ||
7963 | ||
92bbdbcd WS |
7964 | enablestring= |
7965 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5 | |
7966 | echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6 | |
7967 | no_cache=0 | |
7968 | # Check whether --enable-choicebook or --disable-choicebook was given. | |
7969 | if test "${enable_choicebook+set}" = set; then | |
7970 | enableval="$enable_choicebook" | |
7971 | ||
7972 | if test "$enableval" = yes; then | |
7973 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes' | |
7974 | else | |
7975 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no' | |
7976 | fi | |
7977 | ||
7978 | else | |
7979 | ||
7980 | LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}` | |
7981 | if test "x$LINE" != x ; then | |
7982 | eval "DEFAULT_$LINE" | |
7983 | else | |
7984 | no_cache=1 | |
7985 | fi | |
7986 | ||
7987 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK | |
7988 | ||
7989 | fi; | |
7990 | ||
7991 | eval "$ac_cv_use_choicebook" | |
7992 | if test "$no_cache" != 1; then | |
7993 | echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp | |
7994 | fi | |
7995 | ||
7996 | if test "$wxUSE_CHOICEBOOK" = yes; then | |
7997 | echo "$as_me:$LINENO: result: yes" >&5 | |
7998 | echo "${ECHO_T}yes" >&6 | |
7999 | else | |
8000 | echo "$as_me:$LINENO: result: no" >&5 | |
8001 | echo "${ECHO_T}no" >&6 | |
8002 | fi | |
8003 | ||
8004 | ||
a848cd7e SC |
8005 | enablestring= |
8006 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 | |
8007 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
8008 | no_cache=0 | |
8009 | # Check whether --enable-combobox or --disable-combobox was given. | |
8010 | if test "${enable_combobox+set}" = set; then | |
8011 | enableval="$enable_combobox" | |
8012 | ||
8013 | if test "$enableval" = yes; then | |
8014 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
8015 | else | |
8016 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
8017 | fi | |
8018 | ||
8019 | else | |
8020 | ||
8021 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
8022 | if test "x$LINE" != x ; then | |
8023 | eval "DEFAULT_$LINE" | |
8024 | else | |
8025 | no_cache=1 | |
8026 | fi | |
8027 | ||
8028 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
8029 | ||
8030 | fi; | |
8031 | ||
8032 | eval "$ac_cv_use_combobox" | |
8033 | if test "$no_cache" != 1; then | |
8034 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
8035 | fi | |
8036 | ||
8037 | if test "$wxUSE_COMBOBOX" = yes; then | |
8038 | echo "$as_me:$LINENO: result: yes" >&5 | |
8039 | echo "${ECHO_T}yes" >&6 | |
8040 | else | |
8041 | echo "$as_me:$LINENO: result: no" >&5 | |
8042 | echo "${ECHO_T}no" >&6 | |
8043 | fi | |
8044 | ||
8045 | ||
642bcba9 VZ |
8046 | enablestring= |
8047 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combocontrol" >&5 | |
8048 | echo $ECHO_N "checking for --${enablestring:-enable}-combocontrol... $ECHO_C" >&6 | |
8049 | no_cache=0 | |
8050 | # Check whether --enable-combocontrol or --disable-combocontrol was given. | |
8051 | if test "${enable_combocontrol+set}" = set; then | |
8052 | enableval="$enable_combocontrol" | |
8053 | ||
8054 | if test "$enableval" = yes; then | |
8055 | ac_cv_use_combocontrol='wxUSE_COMBOCONTROL=yes' | |
8056 | else | |
8057 | ac_cv_use_combocontrol='wxUSE_COMBOCONTROL=no' | |
8058 | fi | |
8059 | ||
8060 | else | |
8061 | ||
8062 | LINE=`grep "wxUSE_COMBOCONTROL" ${wx_arg_cache_file}` | |
8063 | if test "x$LINE" != x ; then | |
8064 | eval "DEFAULT_$LINE" | |
8065 | else | |
8066 | no_cache=1 | |
8067 | fi | |
8068 | ||
8069 | ac_cv_use_combocontrol='wxUSE_COMBOCONTROL='$DEFAULT_wxUSE_COMBOCONTROL | |
8070 | ||
8071 | fi; | |
8072 | ||
8073 | eval "$ac_cv_use_combocontrol" | |
8074 | if test "$no_cache" != 1; then | |
8075 | echo $ac_cv_use_combocontrol >> ${wx_arg_cache_file}.tmp | |
8076 | fi | |
8077 | ||
8078 | if test "$wxUSE_COMBOCONTROL" = yes; then | |
8079 | echo "$as_me:$LINENO: result: yes" >&5 | |
8080 | echo "${ECHO_T}yes" >&6 | |
8081 | else | |
8082 | echo "$as_me:$LINENO: result: no" >&5 | |
8083 | echo "${ECHO_T}no" >&6 | |
8084 | fi | |
8085 | ||
8086 | ||
da98e9be VZ |
8087 | enablestring= |
8088 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5 | |
8089 | echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6 | |
8090 | no_cache=0 | |
8091 | # Check whether --enable-datepick or --disable-datepick was given. | |
8092 | if test "${enable_datepick+set}" = set; then | |
8093 | enableval="$enable_datepick" | |
8094 | ||
8095 | if test "$enableval" = yes; then | |
8096 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes' | |
8097 | else | |
8098 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no' | |
8099 | fi | |
8100 | ||
8101 | else | |
8102 | ||
8103 | LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}` | |
8104 | if test "x$LINE" != x ; then | |
8105 | eval "DEFAULT_$LINE" | |
8106 | else | |
8107 | no_cache=1 | |
8108 | fi | |
8109 | ||
8110 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL | |
8111 | ||
8112 | fi; | |
8113 | ||
8114 | eval "$ac_cv_use_datepick" | |
8115 | if test "$no_cache" != 1; then | |
8116 | echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp | |
8117 | fi | |
8118 | ||
8119 | if test "$wxUSE_DATEPICKCTRL" = yes; then | |
8120 | echo "$as_me:$LINENO: result: yes" >&5 | |
8121 | echo "${ECHO_T}yes" >&6 | |
8122 | else | |
8123 | echo "$as_me:$LINENO: result: no" >&5 | |
8124 | echo "${ECHO_T}no" >&6 | |
8125 | fi | |
8126 | ||
8127 | ||
a848cd7e SC |
8128 | enablestring= |
8129 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 | |
8130 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
8131 | no_cache=0 | |
8132 | # Check whether --enable-display or --disable-display was given. | |
8133 | if test "${enable_display+set}" = set; then | |
8134 | enableval="$enable_display" | |
8135 | ||
8136 | if test "$enableval" = yes; then | |
8137 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
8138 | else | |
8139 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
8140 | fi | |
8141 | ||
8142 | else | |
8143 | ||
8144 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
8145 | if test "x$LINE" != x ; then | |
8146 | eval "DEFAULT_$LINE" | |
8147 | else | |
8148 | no_cache=1 | |
8149 | fi | |
8150 | ||
8151 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
8152 | ||
8153 | fi; | |
8154 | ||
8155 | eval "$ac_cv_use_display" | |
8156 | if test "$no_cache" != 1; then | |
8157 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
8158 | fi | |
8159 | ||
8160 | if test "$wxUSE_DISPLAY" = yes; then | |
8161 | echo "$as_me:$LINENO: result: yes" >&5 | |
8162 | echo "${ECHO_T}yes" >&6 | |
8163 | else | |
8164 | echo "$as_me:$LINENO: result: no" >&5 | |
8165 | echo "${ECHO_T}no" >&6 | |
8166 | fi | |
8167 | ||
8168 | ||
8169 | enablestring= | |
8170 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 | |
8171 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
8172 | no_cache=0 | |
8173 | # Check whether --enable-gauge or --disable-gauge was given. | |
8174 | if test "${enable_gauge+set}" = set; then | |
8175 | enableval="$enable_gauge" | |
8176 | ||
8177 | if test "$enableval" = yes; then | |
8178 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
8179 | else | |
8180 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
8181 | fi | |
8182 | ||
8183 | else | |
8184 | ||
8185 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
8186 | if test "x$LINE" != x ; then | |
8187 | eval "DEFAULT_$LINE" | |
8188 | else | |
8189 | no_cache=1 | |
8190 | fi | |
8191 | ||
8192 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
8193 | ||
8194 | fi; | |
8195 | ||
8196 | eval "$ac_cv_use_gauge" | |
8197 | if test "$no_cache" != 1; then | |
8198 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
8199 | fi | |
8200 | ||
8201 | if test "$wxUSE_GAUGE" = yes; then | |
8202 | echo "$as_me:$LINENO: result: yes" >&5 | |
8203 | echo "${ECHO_T}yes" >&6 | |
8204 | else | |
8205 | echo "$as_me:$LINENO: result: no" >&5 | |
8206 | echo "${ECHO_T}no" >&6 | |
8207 | fi | |
8208 | ||
8209 | ||
8210 | enablestring= | |
8211 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 | |
8212 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
8213 | no_cache=0 | |
8214 | # Check whether --enable-grid or --disable-grid was given. | |
8215 | if test "${enable_grid+set}" = set; then | |
8216 | enableval="$enable_grid" | |
8217 | ||
8218 | if test "$enableval" = yes; then | |
8219 | ac_cv_use_grid='wxUSE_GRID=yes' | |
8220 | else | |
8221 | ac_cv_use_grid='wxUSE_GRID=no' | |
8222 | fi | |
8223 | ||
8224 | else | |
8225 | ||
8226 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
8227 | if test "x$LINE" != x ; then | |
8228 | eval "DEFAULT_$LINE" | |
8229 | else | |
8230 | no_cache=1 | |
8231 | fi | |
8232 | ||
8233 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
8234 | ||
8235 | fi; | |
8236 | ||
8237 | eval "$ac_cv_use_grid" | |
8238 | if test "$no_cache" != 1; then | |
8239 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
8240 | fi | |
8241 | ||
8242 | if test "$wxUSE_GRID" = yes; then | |
8243 | echo "$as_me:$LINENO: result: yes" >&5 | |
8244 | echo "${ECHO_T}yes" >&6 | |
8245 | else | |
8246 | echo "$as_me:$LINENO: result: no" >&5 | |
8247 | echo "${ECHO_T}no" >&6 | |
8248 | fi | |
8249 | ||
8250 | ||
20e34ecc RR |
8251 | enablestring= |
8252 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5 | |
8253 | echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6 | |
8254 | no_cache=0 | |
8255 | # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given. | |
8256 | if test "${enable_dataviewctrl+set}" = set; then | |
8257 | enableval="$enable_dataviewctrl" | |
8258 | ||
8259 | if test "$enableval" = yes; then | |
8260 | ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes' | |
8261 | else | |
8262 | ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no' | |
8263 | fi | |
8264 | ||
8265 | else | |
8266 | ||
8267 | LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}` | |
8268 | if test "x$LINE" != x ; then | |
8269 | eval "DEFAULT_$LINE" | |
8270 | else | |
8271 | no_cache=1 | |
8272 | fi | |
8273 | ||
8274 | ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL | |
8275 | ||
8276 | fi; | |
8277 | ||
8278 | eval "$ac_cv_use_dataviewctrl" | |
8279 | if test "$no_cache" != 1; then | |
8280 | echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp | |
8281 | fi | |
8282 | ||
8283 | if test "$wxUSE_DATAVIEWCTRL" = yes; then | |
8284 | echo "$as_me:$LINENO: result: yes" >&5 | |
8285 | echo "${ECHO_T}yes" >&6 | |
8286 | else | |
8287 | echo "$as_me:$LINENO: result: no" >&5 | |
8288 | echo "${ECHO_T}no" >&6 | |
8289 | fi | |
8290 | ||
8291 | ||
a848cd7e SC |
8292 | enablestring= |
8293 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 | |
8294 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
8295 | no_cache=0 | |
8296 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
8297 | if test "${enable_imaglist+set}" = set; then | |
8298 | enableval="$enable_imaglist" | |
8299 | ||
8300 | if test "$enableval" = yes; then | |
8301 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
8302 | else | |
8303 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
8304 | fi | |
8305 | ||
8306 | else | |
8307 | ||
8308 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
8309 | if test "x$LINE" != x ; then | |
8310 | eval "DEFAULT_$LINE" | |
8311 | else | |
8312 | no_cache=1 | |
8313 | fi | |
8314 | ||
8315 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
8316 | ||
8317 | fi; | |
8318 | ||
8319 | eval "$ac_cv_use_imaglist" | |
8320 | if test "$no_cache" != 1; then | |
8321 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
8322 | fi | |
8323 | ||
8324 | if test "$wxUSE_IMAGLIST" = yes; then | |
8325 | echo "$as_me:$LINENO: result: yes" >&5 | |
8326 | echo "${ECHO_T}yes" >&6 | |
8327 | else | |
8328 | echo "$as_me:$LINENO: result: no" >&5 | |
8329 | echo "${ECHO_T}no" >&6 | |
8330 | fi | |
8331 | ||
8332 | ||
8333 | enablestring= | |
8334 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
8335 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
8336 | no_cache=0 | |
8337 | # Check whether --enable-listbook or --disable-listbook was given. | |
8338 | if test "${enable_listbook+set}" = set; then | |
8339 | enableval="$enable_listbook" | |
8340 | ||
8341 | if test "$enableval" = yes; then | |
8342 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
8343 | else | |
8344 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
8345 | fi | |
8346 | ||
8347 | else | |
8348 | ||
8349 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
8350 | if test "x$LINE" != x ; then | |
8351 | eval "DEFAULT_$LINE" | |
8352 | else | |
8353 | no_cache=1 | |
8354 | fi | |
8355 | ||
8356 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
8357 | ||
8358 | fi; | |
8359 | ||
8360 | eval "$ac_cv_use_listbook" | |
8361 | if test "$no_cache" != 1; then | |
8362 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
8363 | fi | |
8364 | ||
8365 | if test "$wxUSE_LISTBOOK" = yes; then | |
8366 | echo "$as_me:$LINENO: result: yes" >&5 | |
8367 | echo "${ECHO_T}yes" >&6 | |
8368 | else | |
8369 | echo "$as_me:$LINENO: result: no" >&5 | |
8370 | echo "${ECHO_T}no" >&6 | |
8371 | fi | |
8372 | ||
8373 | ||
8374 | enablestring= | |
8375 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 | |
8376 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
8377 | no_cache=0 | |
8378 | # Check whether --enable-listbox or --disable-listbox was given. | |
8379 | if test "${enable_listbox+set}" = set; then | |
8380 | enableval="$enable_listbox" | |
8381 | ||
8382 | if test "$enableval" = yes; then | |
8383 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
8384 | else | |
8385 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
8386 | fi | |
8387 | ||
8388 | else | |
8389 | ||
8390 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
8391 | if test "x$LINE" != x ; then | |
8392 | eval "DEFAULT_$LINE" | |
8393 | else | |
8394 | no_cache=1 | |
8395 | fi | |
8396 | ||
8397 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
8398 | ||
8399 | fi; | |
8400 | ||
8401 | eval "$ac_cv_use_listbox" | |
8402 | if test "$no_cache" != 1; then | |
8403 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
8404 | fi | |
8405 | ||
8406 | if test "$wxUSE_LISTBOX" = yes; then | |
8407 | echo "$as_me:$LINENO: result: yes" >&5 | |
8408 | echo "${ECHO_T}yes" >&6 | |
8409 | else | |
8410 | echo "$as_me:$LINENO: result: no" >&5 | |
8411 | echo "${ECHO_T}no" >&6 | |
8412 | fi | |
8413 | ||
8414 | ||
8415 | enablestring= | |
8416 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 | |
8417 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
8418 | no_cache=0 | |
8419 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
8420 | if test "${enable_listctrl+set}" = set; then | |
8421 | enableval="$enable_listctrl" | |
8422 | ||
8423 | if test "$enableval" = yes; then | |
8424 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
8425 | else | |
8426 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
8427 | fi | |
8428 | ||
8429 | else | |
8430 | ||
8431 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
8432 | if test "x$LINE" != x ; then | |
8433 | eval "DEFAULT_$LINE" | |
8434 | else | |
8435 | no_cache=1 | |
8436 | fi | |
8437 | ||
8438 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
8439 | ||
8440 | fi; | |
8441 | ||
8442 | eval "$ac_cv_use_listctrl" | |
8443 | if test "$no_cache" != 1; then | |
8444 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
8445 | fi | |
8446 | ||
8447 | if test "$wxUSE_LISTCTRL" = yes; then | |
8448 | echo "$as_me:$LINENO: result: yes" >&5 | |
8449 | echo "${ECHO_T}yes" >&6 | |
8450 | else | |
8451 | echo "$as_me:$LINENO: result: no" >&5 | |
8452 | echo "${ECHO_T}no" >&6 | |
8453 | fi | |
8454 | ||
8455 | ||
8456 | enablestring= | |
8457 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 | |
8458 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
8459 | no_cache=0 | |
8460 | # Check whether --enable-notebook or --disable-notebook was given. | |
8461 | if test "${enable_notebook+set}" = set; then | |
8462 | enableval="$enable_notebook" | |
8463 | ||
8464 | if test "$enableval" = yes; then | |
8465 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
8466 | else | |
8467 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
8468 | fi | |
8469 | ||
8470 | else | |
8471 | ||
8472 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
8473 | if test "x$LINE" != x ; then | |
8474 | eval "DEFAULT_$LINE" | |
8475 | else | |
8476 | no_cache=1 | |
8477 | fi | |
8478 | ||
8479 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
8480 | ||
8481 | fi; | |
8482 | ||
8483 | eval "$ac_cv_use_notebook" | |
8484 | if test "$no_cache" != 1; then | |
8485 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
8486 | fi | |
8487 | ||
8488 | if test "$wxUSE_NOTEBOOK" = yes; then | |
8489 | echo "$as_me:$LINENO: result: yes" >&5 | |
8490 | echo "${ECHO_T}yes" >&6 | |
8491 | else | |
8492 | echo "$as_me:$LINENO: result: no" >&5 | |
8493 | echo "${ECHO_T}no" >&6 | |
8494 | fi | |
8495 | ||
8496 | ||
642bcba9 VZ |
8497 | enablestring= |
8498 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombo" >&5 | |
8499 | echo $ECHO_N "checking for --${enablestring:-enable}-odcombo... $ECHO_C" >&6 | |
8500 | no_cache=0 | |
8501 | # Check whether --enable-odcombo or --disable-odcombo was given. | |
8502 | if test "${enable_odcombo+set}" = set; then | |
8503 | enableval="$enable_odcombo" | |
8504 | ||
8505 | if test "$enableval" = yes; then | |
8506 | ac_cv_use_odcombo='wxUSE_OWNERDRAWNCOMBOBOX=yes' | |
8507 | else | |
8508 | ac_cv_use_odcombo='wxUSE_OWNERDRAWNCOMBOBOX=no' | |
8509 | fi | |
8510 | ||
8511 | else | |
8512 | ||
8513 | LINE=`grep "wxUSE_OWNERDRAWNCOMBOBOX" ${wx_arg_cache_file}` | |
8514 | if test "x$LINE" != x ; then | |
8515 | eval "DEFAULT_$LINE" | |
8516 | else | |
8517 | no_cache=1 | |
8518 | fi | |
8519 | ||
8520 | ac_cv_use_odcombo='wxUSE_OWNERDRAWNCOMBOBOX='$DEFAULT_wxUSE_OWNERDRAWNCOMBOBOX | |
8521 | ||
8522 | fi; | |
8523 | ||
8524 | eval "$ac_cv_use_odcombo" | |
8525 | if test "$no_cache" != 1; then | |
8526 | echo $ac_cv_use_odcombo >> ${wx_arg_cache_file}.tmp | |
8527 | fi | |
8528 | ||
8529 | if test "$wxUSE_OWNERDRAWNCOMBOBOX" = yes; then | |
8530 | echo "$as_me:$LINENO: result: yes" >&5 | |
8531 | echo "${ECHO_T}yes" >&6 | |
8532 | else | |
8533 | echo "$as_me:$LINENO: result: no" >&5 | |
8534 | echo "${ECHO_T}no" >&6 | |
8535 | fi | |
8536 | ||
8537 | ||
a848cd7e SC |
8538 | enablestring= |
8539 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 | |
8540 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
8541 | no_cache=0 | |
8542 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
8543 | if test "${enable_radiobox+set}" = set; then | |
8544 | enableval="$enable_radiobox" | |
8545 | ||
8546 | if test "$enableval" = yes; then | |
8547 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
8548 | else | |
8549 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
8550 | fi | |
8551 | ||
8552 | else | |
8553 | ||
8554 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
8555 | if test "x$LINE" != x ; then | |
8556 | eval "DEFAULT_$LINE" | |
8557 | else | |
8558 | no_cache=1 | |
8559 | fi | |
8560 | ||
8561 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
8562 | ||
8563 | fi; | |
8564 | ||
8565 | eval "$ac_cv_use_radiobox" | |
8566 | if test "$no_cache" != 1; then | |
8567 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
8568 | fi | |
8569 | ||
8570 | if test "$wxUSE_RADIOBOX" = yes; then | |
8571 | echo "$as_me:$LINENO: result: yes" >&5 | |
8572 | echo "${ECHO_T}yes" >&6 | |
8573 | else | |
8574 | echo "$as_me:$LINENO: result: no" >&5 | |
8575 | echo "${ECHO_T}no" >&6 | |
8576 | fi | |
8577 | ||
8578 | ||
8579 | enablestring= | |
8580 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 | |
8581 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
8582 | no_cache=0 | |
8583 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
8584 | if test "${enable_radiobtn+set}" = set; then | |
8585 | enableval="$enable_radiobtn" | |
8586 | ||
8587 | if test "$enableval" = yes; then | |
8588 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
8589 | else | |
8590 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
8591 | fi | |
8592 | ||
8593 | else | |
8594 | ||
8595 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
8596 | if test "x$LINE" != x ; then | |
8597 | eval "DEFAULT_$LINE" | |
8598 | else | |
8599 | no_cache=1 | |
8600 | fi | |
8601 | ||
8602 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
8603 | ||
8604 | fi; | |
8605 | ||
8606 | eval "$ac_cv_use_radiobtn" | |
8607 | if test "$no_cache" != 1; then | |
8608 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
8609 | fi | |
8610 | ||
8611 | if test "$wxUSE_RADIOBTN" = yes; then | |
8612 | echo "$as_me:$LINENO: result: yes" >&5 | |
8613 | echo "${ECHO_T}yes" >&6 | |
8614 | else | |
8615 | echo "$as_me:$LINENO: result: no" >&5 | |
8616 | echo "${ECHO_T}no" >&6 | |
8617 | fi | |
8618 | ||
8619 | ||
8620 | enablestring= | |
8621 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 | |
8622 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
8623 | no_cache=0 | |
8624 | # Check whether --enable-sash or --disable-sash was given. | |
8625 | if test "${enable_sash+set}" = set; then | |
8626 | enableval="$enable_sash" | |
8627 | ||
8628 | if test "$enableval" = yes; then | |
8629 | ac_cv_use_sash='wxUSE_SASH=yes' | |
8630 | else | |
8631 | ac_cv_use_sash='wxUSE_SASH=no' | |
8632 | fi | |
8633 | ||
8634 | else | |
8635 | ||
8636 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
8637 | if test "x$LINE" != x ; then | |
8638 | eval "DEFAULT_$LINE" | |
8639 | else | |
8640 | no_cache=1 | |
8641 | fi | |
8642 | ||
8643 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
8644 | ||
8645 | fi; | |
8646 | ||
8647 | eval "$ac_cv_use_sash" | |
8648 | if test "$no_cache" != 1; then | |
8649 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
8650 | fi | |
8651 | ||
8652 | if test "$wxUSE_SASH" = yes; then | |
8653 | echo "$as_me:$LINENO: result: yes" >&5 | |
8654 | echo "${ECHO_T}yes" >&6 | |
8655 | else | |
8656 | echo "$as_me:$LINENO: result: no" >&5 | |
8657 | echo "${ECHO_T}no" >&6 | |
8658 | fi | |
8659 | ||
8660 | ||
8661 | enablestring= | |
8662 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 | |
8663 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
8664 | no_cache=0 | |
8665 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
8666 | if test "${enable_scrollbar+set}" = set; then | |
8667 | enableval="$enable_scrollbar" | |
8668 | ||
8669 | if test "$enableval" = yes; then | |
8670 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
8671 | else | |
8672 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
8673 | fi | |
8674 | ||
8675 | else | |
8676 | ||
8677 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
8678 | if test "x$LINE" != x ; then | |
8679 | eval "DEFAULT_$LINE" | |
8680 | else | |
8681 | no_cache=1 | |
8682 | fi | |
8683 | ||
8684 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
8685 | ||
8686 | fi; | |
8687 | ||
8688 | eval "$ac_cv_use_scrollbar" | |
8689 | if test "$no_cache" != 1; then | |
8690 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
8691 | fi | |
8692 | ||
8693 | if test "$wxUSE_SCROLLBAR" = yes; then | |
8694 | echo "$as_me:$LINENO: result: yes" >&5 | |
8695 | echo "${ECHO_T}yes" >&6 | |
8696 | else | |
8697 | echo "$as_me:$LINENO: result: no" >&5 | |
8698 | echo "${ECHO_T}no" >&6 | |
8699 | fi | |
8700 | ||
8701 | ||
8702 | enablestring= | |
8703 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 | |
8704 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
8705 | no_cache=0 | |
8706 | # Check whether --enable-slider or --disable-slider was given. | |
8707 | if test "${enable_slider+set}" = set; then | |
8708 | enableval="$enable_slider" | |
8709 | ||
8710 | if test "$enableval" = yes; then | |
8711 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
8712 | else | |
8713 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
8714 | fi | |
8715 | ||
8716 | else | |
8717 | ||
8718 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
8719 | if test "x$LINE" != x ; then | |
8720 | eval "DEFAULT_$LINE" | |
8721 | else | |
8722 | no_cache=1 | |
8723 | fi | |
8724 | ||
8725 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
8726 | ||
8727 | fi; | |
8728 | ||
8729 | eval "$ac_cv_use_slider" | |
8730 | if test "$no_cache" != 1; then | |
8731 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
8732 | fi | |
8733 | ||
8734 | if test "$wxUSE_SLIDER" = yes; then | |
8735 | echo "$as_me:$LINENO: result: yes" >&5 | |
8736 | echo "${ECHO_T}yes" >&6 | |
8737 | else | |
8738 | echo "$as_me:$LINENO: result: no" >&5 | |
8739 | echo "${ECHO_T}no" >&6 | |
8740 | fi | |
8741 | ||
8742 | ||
8743 | enablestring= | |
8744 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 | |
8745 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
8746 | no_cache=0 | |
8747 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
8748 | if test "${enable_spinbtn+set}" = set; then | |
8749 | enableval="$enable_spinbtn" | |
8750 | ||
8751 | if test "$enableval" = yes; then | |
8752 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
8753 | else | |
8754 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
8755 | fi | |
8756 | ||
8757 | else | |
8758 | ||
8759 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
8760 | if test "x$LINE" != x ; then | |
8761 | eval "DEFAULT_$LINE" | |
8762 | else | |
8763 | no_cache=1 | |
8764 | fi | |
8765 | ||
8766 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
8767 | ||
8768 | fi; | |
8769 | ||
8770 | eval "$ac_cv_use_spinbtn" | |
8771 | if test "$no_cache" != 1; then | |
8772 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
8773 | fi | |
8774 | ||
8775 | if test "$wxUSE_SPINBTN" = yes; then | |
8776 | echo "$as_me:$LINENO: result: yes" >&5 | |
8777 | echo "${ECHO_T}yes" >&6 | |
8778 | else | |
8779 | echo "$as_me:$LINENO: result: no" >&5 | |
8780 | echo "${ECHO_T}no" >&6 | |
8781 | fi | |
8782 | ||
8783 | ||
8784 | enablestring= | |
8785 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 | |
8786 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
8787 | no_cache=0 | |
8788 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
8789 | if test "${enable_spinctrl+set}" = set; then | |
8790 | enableval="$enable_spinctrl" | |
8791 | ||
8792 | if test "$enableval" = yes; then | |
8793 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
8794 | else | |
8795 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
8796 | fi | |
8797 | ||
8798 | else | |
8799 | ||
8800 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
8801 | if test "x$LINE" != x ; then | |
8802 | eval "DEFAULT_$LINE" | |
8803 | else | |
8804 | no_cache=1 | |
8805 | fi | |
8806 | ||
8807 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
8808 | ||
8809 | fi; | |
8810 | ||
8811 | eval "$ac_cv_use_spinctrl" | |
8812 | if test "$no_cache" != 1; then | |
8813 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
8814 | fi | |
8815 | ||
8816 | if test "$wxUSE_SPINCTRL" = yes; then | |
8817 | echo "$as_me:$LINENO: result: yes" >&5 | |
8818 | echo "${ECHO_T}yes" >&6 | |
8819 | else | |
8820 | echo "$as_me:$LINENO: result: no" >&5 | |
8821 | echo "${ECHO_T}no" >&6 | |
8822 | fi | |
8823 | ||
8824 | ||
8825 | enablestring= | |
8826 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 | |
8827 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
8828 | no_cache=0 | |
8829 | # Check whether --enable-splitter or --disable-splitter was given. | |
8830 | if test "${enable_splitter+set}" = set; then | |
8831 | enableval="$enable_splitter" | |
8832 | ||
8833 | if test "$enableval" = yes; then | |
8834 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
8835 | else | |
8836 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
8837 | fi | |
8838 | ||
8839 | else | |
8840 | ||
8841 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
8842 | if test "x$LINE" != x ; then | |
8843 | eval "DEFAULT_$LINE" | |
8844 | else | |
8845 | no_cache=1 | |
8846 | fi | |
8847 | ||
8848 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
8849 | ||
8850 | fi; | |
8851 | ||
8852 | eval "$ac_cv_use_splitter" | |
8853 | if test "$no_cache" != 1; then | |
8854 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
8855 | fi | |
8856 | ||
8857 | if test "$wxUSE_SPLITTER" = yes; then | |
8858 | echo "$as_me:$LINENO: result: yes" >&5 | |
8859 | echo "${ECHO_T}yes" >&6 | |
8860 | else | |
8861 | echo "$as_me:$LINENO: result: no" >&5 | |
8862 | echo "${ECHO_T}no" >&6 | |
8863 | fi | |
8864 | ||
8865 | ||
8866 | enablestring= | |
8867 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 | |
8868 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
8869 | no_cache=0 | |
8870 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
8871 | if test "${enable_statbmp+set}" = set; then | |
8872 | enableval="$enable_statbmp" | |
8873 | ||
8874 | if test "$enableval" = yes; then | |
8875 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
8876 | else | |
8877 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
8878 | fi | |
8879 | ||
8880 | else | |
8881 | ||
8882 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
8883 | if test "x$LINE" != x ; then | |
8884 | eval "DEFAULT_$LINE" | |
8885 | else | |
8886 | no_cache=1 | |
8887 | fi | |
8888 | ||
8889 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
8890 | ||
8891 | fi; | |
8892 | ||
8893 | eval "$ac_cv_use_statbmp" | |
8894 | if test "$no_cache" != 1; then | |
8895 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
8896 | fi | |
8897 | ||
8898 | if test "$wxUSE_STATBMP" = yes; then | |
8899 | echo "$as_me:$LINENO: result: yes" >&5 | |
8900 | echo "${ECHO_T}yes" >&6 | |
8901 | else | |
8902 | echo "$as_me:$LINENO: result: no" >&5 | |
8903 | echo "${ECHO_T}no" >&6 | |
8904 | fi | |
8905 | ||
8906 | ||
8907 | enablestring= | |
8908 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 | |
8909 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
8910 | no_cache=0 | |
8911 | # Check whether --enable-statbox or --disable-statbox was given. | |
8912 | if test "${enable_statbox+set}" = set; then | |
8913 | enableval="$enable_statbox" | |
8914 | ||
8915 | if test "$enableval" = yes; then | |
8916 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
8917 | else | |
8918 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
8919 | fi | |
8920 | ||
8921 | else | |
8922 | ||
8923 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
8924 | if test "x$LINE" != x ; then | |
8925 | eval "DEFAULT_$LINE" | |
8926 | else | |
8927 | no_cache=1 | |
8928 | fi | |
8929 | ||
8930 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
8931 | ||
8932 | fi; | |
8933 | ||
8934 | eval "$ac_cv_use_statbox" | |
8935 | if test "$no_cache" != 1; then | |
8936 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
8937 | fi | |
8938 | ||
8939 | if test "$wxUSE_STATBOX" = yes; then | |
8940 | echo "$as_me:$LINENO: result: yes" >&5 | |
8941 | echo "${ECHO_T}yes" >&6 | |
8942 | else | |
8943 | echo "$as_me:$LINENO: result: no" >&5 | |
8944 | echo "${ECHO_T}no" >&6 | |
8945 | fi | |
8946 | ||
8947 | ||
8948 | enablestring= | |
8949 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 | |
8950 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
8951 | no_cache=0 | |
8952 | # Check whether --enable-statline or --disable-statline was given. | |
8953 | if test "${enable_statline+set}" = set; then | |
8954 | enableval="$enable_statline" | |
8955 | ||
8956 | if test "$enableval" = yes; then | |
8957 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
8958 | else | |
8959 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
8960 | fi | |
8961 | ||
8962 | else | |
8963 | ||
8964 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
8965 | if test "x$LINE" != x ; then | |
8966 | eval "DEFAULT_$LINE" | |
8967 | else | |
8968 | no_cache=1 | |
8969 | fi | |
8970 | ||
8971 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
8972 | ||
8973 | fi; | |
8974 | ||
8975 | eval "$ac_cv_use_statline" | |
8976 | if test "$no_cache" != 1; then | |
8977 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
8978 | fi | |
8979 | ||
8980 | if test "$wxUSE_STATLINE" = yes; then | |
8981 | echo "$as_me:$LINENO: result: yes" >&5 | |
8982 | echo "${ECHO_T}yes" >&6 | |
8983 | else | |
8984 | echo "$as_me:$LINENO: result: no" >&5 | |
8985 | echo "${ECHO_T}no" >&6 | |
8986 | fi | |
8987 | ||
8988 | ||
8989 | enablestring= | |
8990 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 | |
8991 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
8992 | no_cache=0 | |
8993 | # Check whether --enable-stattext or --disable-stattext was given. | |
8994 | if test "${enable_stattext+set}" = set; then | |
8995 | enableval="$enable_stattext" | |
8996 | ||
8997 | if test "$enableval" = yes; then | |
8998 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
8999 | else | |
9000 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
9001 | fi | |
9002 | ||
9003 | else | |
9004 | ||
9005 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
9006 | if test "x$LINE" != x ; then | |
9007 | eval "DEFAULT_$LINE" | |
9008 | else | |
9009 | no_cache=1 | |
9010 | fi | |
9011 | ||
9012 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
9013 | ||
9014 | fi; | |
9015 | ||
9016 | eval "$ac_cv_use_stattext" | |
9017 | if test "$no_cache" != 1; then | |
9018 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
9019 | fi | |
9020 | ||
9021 | if test "$wxUSE_STATTEXT" = yes; then | |
9022 | echo "$as_me:$LINENO: result: yes" >&5 | |
9023 | echo "${ECHO_T}yes" >&6 | |
9024 | else | |
9025 | echo "$as_me:$LINENO: result: no" >&5 | |
9026 | echo "${ECHO_T}no" >&6 | |
9027 | fi | |
9028 | ||
9029 | ||
9030 | enablestring= | |
9031 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 | |
9032 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
9033 | no_cache=0 | |
9034 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
9035 | if test "${enable_statusbar+set}" = set; then | |
9036 | enableval="$enable_statusbar" | |
9037 | ||
9038 | if test "$enableval" = yes; then | |
9039 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
9040 | else | |
9041 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
9042 | fi | |
9043 | ||
9044 | else | |
9045 | ||
9046 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
9047 | if test "x$LINE" != x ; then | |
9048 | eval "DEFAULT_$LINE" | |
9049 | else | |
9050 | no_cache=1 | |
9051 | fi | |
9052 | ||
9053 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
9054 | ||
9055 | fi; | |
9056 | ||
9057 | eval "$ac_cv_use_statusbar" | |
9058 | if test "$no_cache" != 1; then | |
9059 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
9060 | fi | |
9061 | ||
9062 | if test "$wxUSE_STATUSBAR" = yes; then | |
9063 | echo "$as_me:$LINENO: result: yes" >&5 | |
9064 | echo "${ECHO_T}yes" >&6 | |
9065 | else | |
9066 | echo "$as_me:$LINENO: result: no" >&5 | |
9067 | echo "${ECHO_T}no" >&6 | |
9068 | fi | |
9069 | ||
9070 | ||
9071 | enablestring= | |
9072 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 | |
9073 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
9074 | no_cache=0 | |
9075 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
9076 | if test "${enable_tabdialog+set}" = set; then | |
9077 | enableval="$enable_tabdialog" | |
9078 | ||
9079 | if test "$enableval" = yes; then | |
f10e38c4 | 9080 | ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes' |
a848cd7e | 9081 | else |
f10e38c4 | 9082 | ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no' |
a848cd7e SC |
9083 | fi |
9084 | ||
9085 | else | |
9086 | ||
f10e38c4 | 9087 | LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}` |
a848cd7e SC |
9088 | if test "x$LINE" != x ; then |
9089 | eval "DEFAULT_$LINE" | |
9090 | else | |
9091 | no_cache=1 | |
9092 | fi | |
9093 | ||
f10e38c4 | 9094 | ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG |
a848cd7e SC |
9095 | |
9096 | fi; | |
9097 | ||
9098 | eval "$ac_cv_use_tabdialog" | |
9099 | if test "$no_cache" != 1; then | |
9100 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
9101 | fi | |
9102 | ||
f10e38c4 | 9103 | if test "$wxUSE_TAB_DIALOG" = yes; then |
a848cd7e SC |
9104 | echo "$as_me:$LINENO: result: yes" >&5 |
9105 | echo "${ECHO_T}yes" >&6 | |
9106 | else | |
9107 | echo "$as_me:$LINENO: result: no" >&5 | |
9108 | echo "${ECHO_T}no" >&6 | |
9109 | fi | |
9110 | ||
9111 | ||
9112 | enablestring= | |
9113 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 | |
9114 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
9115 | no_cache=0 | |
9116 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
9117 | if test "${enable_textctrl+set}" = set; then | |
9118 | enableval="$enable_textctrl" | |
9119 | ||
9120 | if test "$enableval" = yes; then | |
9121 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
9122 | else | |
9123 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
9124 | fi | |
9125 | ||
9126 | else | |
9127 | ||
9128 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
9129 | if test "x$LINE" != x ; then | |
9130 | eval "DEFAULT_$LINE" | |
9131 | else | |
9132 | no_cache=1 | |
9133 | fi | |
9134 | ||
9135 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
9136 | ||
9137 | fi; | |
9138 | ||
9139 | eval "$ac_cv_use_textctrl" | |
9140 | if test "$no_cache" != 1; then | |
9141 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
9142 | fi | |
9143 | ||
9144 | if test "$wxUSE_TEXTCTRL" = yes; then | |
9145 | echo "$as_me:$LINENO: result: yes" >&5 | |
9146 | echo "${ECHO_T}yes" >&6 | |
9147 | else | |
9148 | echo "$as_me:$LINENO: result: no" >&5 | |
9149 | echo "${ECHO_T}no" >&6 | |
9150 | fi | |
9151 | ||
9152 | ||
9153 | enablestring= | |
9154 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 | |
9155 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
9156 | no_cache=0 | |
9157 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
9158 | if test "${enable_togglebtn+set}" = set; then | |
9159 | enableval="$enable_togglebtn" | |
9160 | ||
9161 | if test "$enableval" = yes; then | |
9162 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
9163 | else | |
9164 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
9165 | fi | |
9166 | ||
9167 | else | |
9168 | ||
9169 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
9170 | if test "x$LINE" != x ; then | |
9171 | eval "DEFAULT_$LINE" | |
9172 | else | |
9173 | no_cache=1 | |
9174 | fi | |
9175 | ||
9176 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
9177 | ||
9178 | fi; | |
9179 | ||
9180 | eval "$ac_cv_use_togglebtn" | |
9181 | if test "$no_cache" != 1; then | |
9182 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
9183 | fi | |
9184 | ||
9185 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
9186 | echo "$as_me:$LINENO: result: yes" >&5 | |
9187 | echo "${ECHO_T}yes" >&6 | |
9188 | else | |
9189 | echo "$as_me:$LINENO: result: no" >&5 | |
9190 | echo "${ECHO_T}no" >&6 | |
9191 | fi | |
9192 | ||
9193 | ||
9194 | enablestring= | |
9195 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 | |
9196 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
9197 | no_cache=0 | |
9198 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
9199 | if test "${enable_toolbar+set}" = set; then | |
9200 | enableval="$enable_toolbar" | |
9201 | ||
9202 | if test "$enableval" = yes; then | |
9203 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
9204 | else | |
9205 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
9206 | fi | |
9207 | ||
9208 | else | |
9209 | ||
9210 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
9211 | if test "x$LINE" != x ; then | |
9212 | eval "DEFAULT_$LINE" | |
9213 | else | |
9214 | no_cache=1 | |
9215 | fi | |
9216 | ||
9217 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
9218 | ||
9219 | fi; | |
9220 | ||
9221 | eval "$ac_cv_use_toolbar" | |
9222 | if test "$no_cache" != 1; then | |
9223 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
9224 | fi | |
9225 | ||
9226 | if test "$wxUSE_TOOLBAR" = yes; then | |
9227 | echo "$as_me:$LINENO: result: yes" >&5 | |
9228 | echo "${ECHO_T}yes" >&6 | |
9229 | else | |
9230 | echo "$as_me:$LINENO: result: no" >&5 | |
9231 | echo "${ECHO_T}no" >&6 | |
9232 | fi | |
9233 | ||
9234 | ||
9235 | enablestring= | |
9236 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 | |
9237 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
9238 | no_cache=0 | |
9239 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
9240 | if test "${enable_tbarnative+set}" = set; then | |
9241 | enableval="$enable_tbarnative" | |
9242 | ||
9243 | if test "$enableval" = yes; then | |
9244 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
9245 | else | |
9246 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
9247 | fi | |
9248 | ||
9249 | else | |
9250 | ||
9251 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
9252 | if test "x$LINE" != x ; then | |
9253 | eval "DEFAULT_$LINE" | |
9254 | else | |
9255 | no_cache=1 | |
9256 | fi | |
9257 | ||
9258 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
9259 | ||
9260 | fi; | |
9261 | ||
9262 | eval "$ac_cv_use_tbarnative" | |
9263 | if test "$no_cache" != 1; then | |
9264 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
9265 | fi | |
9266 | ||
9267 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
9268 | echo "$as_me:$LINENO: result: yes" >&5 | |
9269 | echo "${ECHO_T}yes" >&6 | |
9270 | else | |
9271 | echo "$as_me:$LINENO: result: no" >&5 | |
9272 | echo "${ECHO_T}no" >&6 | |
9273 | fi | |
9274 | ||
9275 | ||
9276 | enablestring= | |
9277 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 | |
9278 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
9279 | no_cache=0 | |
9280 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
9281 | if test "${enable_tbarsmpl+set}" = set; then | |
9282 | enableval="$enable_tbarsmpl" | |
9283 | ||
9284 | if test "$enableval" = yes; then | |
9285 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
9286 | else | |
9287 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
9288 | fi | |
9289 | ||
9290 | else | |
9291 | ||
9292 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
9293 | if test "x$LINE" != x ; then | |
9294 | eval "DEFAULT_$LINE" | |
9295 | else | |
9296 | no_cache=1 | |
9297 | fi | |
9298 | ||
9299 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
9300 | ||
9301 | fi; | |
9302 | ||
9303 | eval "$ac_cv_use_tbarsmpl" | |
9304 | if test "$no_cache" != 1; then | |
9305 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
9306 | fi | |
9307 | ||
9308 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
9309 | echo "$as_me:$LINENO: result: yes" >&5 | |
9310 | echo "${ECHO_T}yes" >&6 | |
9311 | else | |
9312 | echo "$as_me:$LINENO: result: no" >&5 | |
9313 | echo "${ECHO_T}no" >&6 | |
9314 | fi | |
9315 | ||
9316 | ||
0093c2fc VZ |
9317 | enablestring= |
9318 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5 | |
9319 | echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6 | |
9320 | no_cache=0 | |
9321 | # Check whether --enable-treebook or --disable-treebook was given. | |
9322 | if test "${enable_treebook+set}" = set; then | |
9323 | enableval="$enable_treebook" | |
9324 | ||
9325 | if test "$enableval" = yes; then | |
9326 | ac_cv_use_treebook='wxUSE_TREEBOOK=yes' | |
9327 | else | |
9328 | ac_cv_use_treebook='wxUSE_TREEBOOK=no' | |
9329 | fi | |
9330 | ||
9331 | else | |
9332 | ||
9333 | LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}` | |
9334 | if test "x$LINE" != x ; then | |
9335 | eval "DEFAULT_$LINE" | |
9336 | else | |
9337 | no_cache=1 | |
9338 | fi | |
9339 | ||
9340 | ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK | |
9341 | ||
9342 | fi; | |
9343 | ||
9344 | eval "$ac_cv_use_treebook" | |
9345 | if test "$no_cache" != 1; then | |
9346 | echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp | |
9347 | fi | |
9348 | ||
9349 | if test "$wxUSE_TREEBOOK" = yes; then | |
9350 | echo "$as_me:$LINENO: result: yes" >&5 | |
9351 | echo "${ECHO_T}yes" >&6 | |
9352 | else | |
9353 | echo "$as_me:$LINENO: result: no" >&5 | |
9354 | echo "${ECHO_T}no" >&6 | |
9355 | fi | |
9356 | ||
9357 | ||
5ec3bc43 JS |
9358 | enablestring= |
9359 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5 | |
9360 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6 | |
9361 | no_cache=0 | |
9362 | # Check whether --enable-toolbook or --disable-toolbook was given. | |
9363 | if test "${enable_toolbook+set}" = set; then | |
9364 | enableval="$enable_toolbook" | |
9365 | ||
9366 | if test "$enableval" = yes; then | |
9367 | ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes' | |
9368 | else | |
9369 | ac_cv_use_toolbook='wxUSE_TOOLBOOK=no' | |
9370 | fi | |
9371 | ||
9372 | else | |
9373 | ||
9374 | LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}` | |
9375 | if test "x$LINE" != x ; then | |
9376 | eval "DEFAULT_$LINE" | |
9377 | else | |
9378 | no_cache=1 | |
9379 | fi | |
9380 | ||
9381 | ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK | |
9382 | ||
9383 | fi; | |
9384 | ||
9385 | eval "$ac_cv_use_toolbook" | |
9386 | if test "$no_cache" != 1; then | |
9387 | echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp | |
9388 | fi | |
9389 | ||
9390 | if test "$wxUSE_TOOLBOOK" = yes; then | |
9391 | echo "$as_me:$LINENO: result: yes" >&5 | |
9392 | echo "${ECHO_T}yes" >&6 | |
9393 | else | |
9394 | echo "$as_me:$LINENO: result: no" >&5 | |
9395 | echo "${ECHO_T}no" >&6 | |
9396 | fi | |
9397 | ||
9398 | ||
a848cd7e SC |
9399 | enablestring= |
9400 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 | |
9401 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
9402 | no_cache=0 | |
9403 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
9404 | if test "${enable_treectrl+set}" = set; then | |
9405 | enableval="$enable_treectrl" | |
9406 | ||
9407 | if test "$enableval" = yes; then | |
9408 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
9409 | else | |
9410 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
9411 | fi | |
9412 | ||
9413 | else | |
9414 | ||
9415 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
9416 | if test "x$LINE" != x ; then | |
9417 | eval "DEFAULT_$LINE" | |
9418 | else | |
9419 | no_cache=1 | |
9420 | fi | |
9421 | ||
9422 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
9423 | ||
9424 | fi; | |
9425 | ||
9426 | eval "$ac_cv_use_treectrl" | |
9427 | if test "$no_cache" != 1; then | |
9428 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
9429 | fi | |
9430 | ||
9431 | if test "$wxUSE_TREECTRL" = yes; then | |
9432 | echo "$as_me:$LINENO: result: yes" >&5 | |
9433 | echo "${ECHO_T}yes" >&6 | |
9434 | else | |
9435 | echo "$as_me:$LINENO: result: no" >&5 | |
9436 | echo "${ECHO_T}no" >&6 | |
9437 | fi | |
9438 | ||
9439 | ||
9440 | enablestring= | |
9441 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 | |
9442 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
9443 | no_cache=0 | |
9444 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
9445 | if test "${enable_tipwindow+set}" = set; then | |
9446 | enableval="$enable_tipwindow" | |
9447 | ||
9448 | if test "$enableval" = yes; then | |
9449 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
9450 | else | |
9451 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
9452 | fi | |
9453 | ||
9454 | else | |
9455 | ||
9456 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
9457 | if test "x$LINE" != x ; then | |
9458 | eval "DEFAULT_$LINE" | |
9459 | else | |
9460 | no_cache=1 | |
9461 | fi | |
9462 | ||
9463 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
9464 | ||
9465 | fi; | |
9466 | ||
9467 | eval "$ac_cv_use_tipwindow" | |
9468 | if test "$no_cache" != 1; then | |
9469 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
9470 | fi | |
9471 | ||
9472 | if test "$wxUSE_TIPWINDOW" = yes; then | |
9473 | echo "$as_me:$LINENO: result: yes" >&5 | |
9474 | echo "${ECHO_T}yes" >&6 | |
9475 | else | |
9476 | echo "$as_me:$LINENO: result: no" >&5 | |
9477 | echo "${ECHO_T}no" >&6 | |
9478 | fi | |
9479 | ||
9480 | ||
9481 | enablestring= | |
9482 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 | |
9483 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
9484 | no_cache=0 | |
9485 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
9486 | if test "${enable_popupwin+set}" = set; then | |
9487 | enableval="$enable_popupwin" | |
9488 | ||
9489 | if test "$enableval" = yes; then | |
9490 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
9491 | else | |
9492 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
9493 | fi | |
9494 | ||
9495 | else | |
9496 | ||
9497 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
9498 | if test "x$LINE" != x ; then | |
9499 | eval "DEFAULT_$LINE" | |
9500 | else | |
9501 | no_cache=1 | |
9502 | fi | |
9503 | ||
9504 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
9505 | ||
9506 | fi; | |
9507 | ||
9508 | eval "$ac_cv_use_popupwin" | |
9509 | if test "$no_cache" != 1; then | |
9510 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
9511 | fi | |
9512 | ||
9513 | if test "$wxUSE_POPUPWIN" = yes; then | |
9514 | echo "$as_me:$LINENO: result: yes" >&5 | |
9515 | echo "${ECHO_T}yes" >&6 | |
9516 | else | |
9517 | echo "$as_me:$LINENO: result: no" >&5 | |
9518 | echo "${ECHO_T}no" >&6 | |
9519 | fi | |
9520 | ||
9521 | ||
9522 | ||
9523 | ||
9524 | enablestring= | |
9525 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 | |
9526 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
9527 | no_cache=0 | |
9528 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
9529 | if test "${enable_commondlg+set}" = set; then | |
9530 | enableval="$enable_commondlg" | |
9531 | ||
9532 | if test "$enableval" = yes; then | |
9533 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
9534 | else | |
9535 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
9536 | fi | |
9537 | ||
9538 | else | |
9539 | ||
9540 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
9541 | if test "x$LINE" != x ; then | |
9542 | eval "DEFAULT_$LINE" | |
9543 | else | |
9544 | no_cache=1 | |
9545 | fi | |
9546 | ||
9547 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
9548 | ||
9549 | fi; | |
9550 | ||
9551 | eval "$ac_cv_use_commondlg" | |
9552 | if test "$no_cache" != 1; then | |
9553 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
9554 | fi | |
9555 | ||
9556 | if test "$wxUSE_COMMONDLGS" = yes; then | |
9557 | echo "$as_me:$LINENO: result: yes" >&5 | |
9558 | echo "${ECHO_T}yes" >&6 | |
9559 | else | |
9560 | echo "$as_me:$LINENO: result: no" >&5 | |
9561 | echo "${ECHO_T}no" >&6 | |
9562 | fi | |
9563 | ||
9564 | ||
9565 | enablestring= | |
9566 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 | |
9567 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
9568 | no_cache=0 | |
9569 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
9570 | if test "${enable_choicedlg+set}" = set; then | |
9571 | enableval="$enable_choicedlg" | |
9572 | ||
9573 | if test "$enableval" = yes; then | |
9574 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
9575 | else | |
9576 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
9577 | fi | |
9578 | ||
9579 | else | |
9580 | ||
9581 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
9582 | if test "x$LINE" != x ; then | |
9583 | eval "DEFAULT_$LINE" | |
9584 | else | |
9585 | no_cache=1 | |
9586 | fi | |
9587 | ||
9588 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
9589 | ||
9590 | fi; | |
9591 | ||
9592 | eval "$ac_cv_use_choicedlg" | |
9593 | if test "$no_cache" != 1; then | |
9594 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
9595 | fi | |
9596 | ||
9597 | if test "$wxUSE_CHOICEDLG" = yes; then | |
9598 | echo "$as_me:$LINENO: result: yes" >&5 | |
9599 | echo "${ECHO_T}yes" >&6 | |
9600 | else | |
9601 | echo "$as_me:$LINENO: result: no" >&5 | |
9602 | echo "${ECHO_T}no" >&6 | |
9603 | fi | |
9604 | ||
9605 | ||
9606 | enablestring= | |
9607 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 | |
9608 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
9609 | no_cache=0 | |
9610 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
9611 | if test "${enable_coldlg+set}" = set; then | |
9612 | enableval="$enable_coldlg" | |
9613 | ||
9614 | if test "$enableval" = yes; then | |
9615 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
9616 | else | |
9617 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
9618 | fi | |
9619 | ||
9620 | else | |
9621 | ||
9622 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
9623 | if test "x$LINE" != x ; then | |
9624 | eval "DEFAULT_$LINE" | |
9625 | else | |
9626 | no_cache=1 | |
9627 | fi | |
9628 | ||
9629 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
9630 | ||
9631 | fi; | |
9632 | ||
9633 | eval "$ac_cv_use_coldlg" | |
9634 | if test "$no_cache" != 1; then | |
9635 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
9636 | fi | |
9637 | ||
9638 | if test "$wxUSE_COLOURDLG" = yes; then | |
9639 | echo "$as_me:$LINENO: result: yes" >&5 | |
9640 | echo "${ECHO_T}yes" >&6 | |
9641 | else | |
9642 | echo "$as_me:$LINENO: result: no" >&5 | |
9643 | echo "${ECHO_T}no" >&6 | |
9644 | fi | |
9645 | ||
9646 | ||
9647 | enablestring= | |
9648 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 | |
9649 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
9650 | no_cache=0 | |
9651 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
9652 | if test "${enable_filedlg+set}" = set; then | |
9653 | enableval="$enable_filedlg" | |
9654 | ||
9655 | if test "$enableval" = yes; then | |
9656 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
9657 | else | |
9658 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
9659 | fi | |
9660 | ||
9661 | else | |
9662 | ||
9663 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
9664 | if test "x$LINE" != x ; then | |
9665 | eval "DEFAULT_$LINE" | |
9666 | else | |
9667 | no_cache=1 | |
9668 | fi | |
9669 | ||
9670 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
9671 | ||
9672 | fi; | |
9673 | ||
9674 | eval "$ac_cv_use_filedlg" | |
9675 | if test "$no_cache" != 1; then | |
9676 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
9677 | fi | |
9678 | ||
9679 | if test "$wxUSE_FILEDLG" = yes; then | |
9680 | echo "$as_me:$LINENO: result: yes" >&5 | |
9681 | echo "${ECHO_T}yes" >&6 | |
9682 | else | |
9683 | echo "$as_me:$LINENO: result: no" >&5 | |
9684 | echo "${ECHO_T}no" >&6 | |
9685 | fi | |
9686 | ||
9687 | ||
9688 | enablestring= | |
9689 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 | |
9690 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
9691 | no_cache=0 | |
9692 | # Check whether --enable-finddlg or --disable-finddlg was given. | |
9693 | if test "${enable_finddlg+set}" = set; then | |
9694 | enableval="$enable_finddlg" | |
9695 | ||
9696 | if test "$enableval" = yes; then | |
9697 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' | |
9698 | else | |
9699 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' | |
9700 | fi | |
9701 | ||
9702 | else | |
9703 | ||
9704 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
9705 | if test "x$LINE" != x ; then | |
9706 | eval "DEFAULT_$LINE" | |
9707 | else | |
9708 | no_cache=1 | |
9709 | fi | |
9710 | ||
9711 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
9712 | ||
9713 | fi; | |
9714 | ||
9715 | eval "$ac_cv_use_finddlg" | |
9716 | if test "$no_cache" != 1; then | |
9717 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp | |
9718 | fi | |
9719 | ||
9720 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
9721 | echo "$as_me:$LINENO: result: yes" >&5 | |
9722 | echo "${ECHO_T}yes" >&6 | |
9723 | else | |
9724 | echo "$as_me:$LINENO: result: no" >&5 | |
9725 | echo "${ECHO_T}no" >&6 | |
9726 | fi | |
9727 | ||
9728 | ||
9729 | enablestring= | |
9730 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 | |
9731 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
9732 | no_cache=0 | |
9733 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
9734 | if test "${enable_fontdlg+set}" = set; then | |
9735 | enableval="$enable_fontdlg" | |
9736 | ||
9737 | if test "$enableval" = yes; then | |
9738 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
9739 | else | |
9740 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
9741 | fi | |
9742 | ||
9743 | else | |
9744 | ||
9745 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
9746 | if test "x$LINE" != x ; then | |
9747 | eval "DEFAULT_$LINE" | |
9748 | else | |
9749 | no_cache=1 | |
9750 | fi | |
9751 | ||
9752 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
9753 | ||
9754 | fi; | |
9755 | ||
9756 | eval "$ac_cv_use_fontdlg" | |
9757 | if test "$no_cache" != 1; then | |
9758 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
9759 | fi | |
9760 | ||
9761 | if test "$wxUSE_FONTDLG" = yes; then | |
9762 | echo "$as_me:$LINENO: result: yes" >&5 | |
9763 | echo "${ECHO_T}yes" >&6 | |
9764 | else | |
9765 | echo "$as_me:$LINENO: result: no" >&5 | |
9766 | echo "${ECHO_T}no" >&6 | |
9767 | fi | |
9768 | ||
9769 | ||
9770 | enablestring= | |
9771 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 | |
9772 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
9773 | no_cache=0 | |
9774 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
9775 | if test "${enable_dirdlg+set}" = set; then | |
9776 | enableval="$enable_dirdlg" | |
9777 | ||
9778 | if test "$enableval" = yes; then | |
9779 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
9780 | else | |
9781 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
9782 | fi | |
9783 | ||
9784 | else | |
9785 | ||
9786 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
9787 | if test "x$LINE" != x ; then | |
9788 | eval "DEFAULT_$LINE" | |
9789 | else | |
9790 | no_cache=1 | |
9791 | fi | |
9792 | ||
9793 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
9794 | ||
9795 | fi; | |
9796 | ||
9797 | eval "$ac_cv_use_dirdlg" | |
9798 | if test "$no_cache" != 1; then | |
9799 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
9800 | fi | |
9801 | ||
9802 | if test "$wxUSE_DIRDLG" = yes; then | |
9803 | echo "$as_me:$LINENO: result: yes" >&5 | |
9804 | echo "${ECHO_T}yes" >&6 | |
9805 | else | |
9806 | echo "$as_me:$LINENO: result: no" >&5 | |
9807 | echo "${ECHO_T}no" >&6 | |
9808 | fi | |
9809 | ||
9810 | ||
9811 | enablestring= | |
9812 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 | |
9813 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
9814 | no_cache=0 | |
9815 | # Check whether --enable-msgdlg or --disable-msgdlg was given. | |
9816 | if test "${enable_msgdlg+set}" = set; then | |
9817 | enableval="$enable_msgdlg" | |
9818 | ||
9819 | if test "$enableval" = yes; then | |
9820 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
9821 | else | |
9822 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
9823 | fi | |
9824 | ||
9825 | else | |
9826 | ||
9827 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` | |
9828 | if test "x$LINE" != x ; then | |
9829 | eval "DEFAULT_$LINE" | |
9830 | else | |
9831 | no_cache=1 | |
9832 | fi | |
9833 | ||
9834 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG | |
9835 | ||
9836 | fi; | |
9837 | ||
9838 | eval "$ac_cv_use_msgdlg" | |
9839 | if test "$no_cache" != 1; then | |
9840 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp | |
9841 | fi | |
9842 | ||
9843 | if test "$wxUSE_MSGDLG" = yes; then | |
9844 | echo "$as_me:$LINENO: result: yes" >&5 | |
9845 | echo "${ECHO_T}yes" >&6 | |
9846 | else | |
9847 | echo "$as_me:$LINENO: result: no" >&5 | |
9848 | echo "${ECHO_T}no" >&6 | |
9849 | fi | |
9850 | ||
9851 | ||
9852 | enablestring= | |
9853 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 | |
9854 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
9855 | no_cache=0 | |
9856 | # Check whether --enable-numberdlg or --disable-numberdlg was given. | |
9857 | if test "${enable_numberdlg+set}" = set; then | |
9858 | enableval="$enable_numberdlg" | |
9859 | ||
9860 | if test "$enableval" = yes; then | |
9861 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
9862 | else | |
9863 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
9864 | fi | |
9865 | ||
9866 | else | |
9867 | ||
9868 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` | |
9869 | if test "x$LINE" != x ; then | |
9870 | eval "DEFAULT_$LINE" | |
9871 | else | |
9872 | no_cache=1 | |
9873 | fi | |
9874 | ||
9875 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG | |
9876 | ||
9877 | fi; | |
9878 | ||
9879 | eval "$ac_cv_use_numberdlg" | |
9880 | if test "$no_cache" != 1; then | |
9881 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp | |
9882 | fi | |
9883 | ||
9884 | if test "$wxUSE_NUMBERDLG" = yes; then | |
9885 | echo "$as_me:$LINENO: result: yes" >&5 | |
9886 | echo "${ECHO_T}yes" >&6 | |
9887 | else | |
9888 | echo "$as_me:$LINENO: result: no" >&5 | |
9889 | echo "${ECHO_T}no" >&6 | |
9890 | fi | |
9891 | ||
9892 | ||
9893 | enablestring= | |
9894 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 | |
9895 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
9896 | no_cache=0 | |
9897 | # Check whether --enable-splash or --disable-splash was given. | |
9898 | if test "${enable_splash+set}" = set; then | |
9899 | enableval="$enable_splash" | |
9900 | ||
9901 | if test "$enableval" = yes; then | |
9902 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
9903 | else | |
9904 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
9905 | fi | |
9906 | ||
9907 | else | |
9908 | ||
9909 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
9910 | if test "x$LINE" != x ; then | |
9911 | eval "DEFAULT_$LINE" | |
9912 | else | |
9913 | no_cache=1 | |
9914 | fi | |
9915 | ||
9916 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
9917 | ||
9918 | fi; | |
9919 | ||
9920 | eval "$ac_cv_use_splash" | |
9921 | if test "$no_cache" != 1; then | |
9922 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
9923 | fi | |
9924 | ||
9925 | if test "$wxUSE_SPLASH" = yes; then | |
9926 | echo "$as_me:$LINENO: result: yes" >&5 | |
9927 | echo "${ECHO_T}yes" >&6 | |
9928 | else | |
9929 | echo "$as_me:$LINENO: result: no" >&5 | |
9930 | echo "${ECHO_T}no" >&6 | |
9931 | fi | |
9932 | ||
9933 | ||
9934 | enablestring= | |
9935 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 | |
9936 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
9937 | no_cache=0 | |
9938 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
9939 | if test "${enable_textdlg+set}" = set; then | |
9940 | enableval="$enable_textdlg" | |
9941 | ||
9942 | if test "$enableval" = yes; then | |
9943 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
9944 | else | |
9945 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
9946 | fi | |
9947 | ||
9948 | else | |
9949 | ||
9950 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
9951 | if test "x$LINE" != x ; then | |
9952 | eval "DEFAULT_$LINE" | |
9953 | else | |
9954 | no_cache=1 | |
9955 | fi | |
9956 | ||
9957 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
9958 | ||
9959 | fi; | |
9960 | ||
9961 | eval "$ac_cv_use_textdlg" | |
9962 | if test "$no_cache" != 1; then | |
9963 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
9964 | fi | |
9965 | ||
9966 | if test "$wxUSE_TEXTDLG" = yes; then | |
9967 | echo "$as_me:$LINENO: result: yes" >&5 | |
9968 | echo "${ECHO_T}yes" >&6 | |
9969 | else | |
9970 | echo "$as_me:$LINENO: result: no" >&5 | |
9971 | echo "${ECHO_T}no" >&6 | |
9972 | fi | |
9973 | ||
9974 | ||
9975 | enablestring= | |
9976 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 | |
9977 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
9978 | no_cache=0 | |
9979 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
9980 | if test "${enable_tipdlg+set}" = set; then | |
9981 | enableval="$enable_tipdlg" | |
9982 | ||
9983 | if test "$enableval" = yes; then | |
9984 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
9985 | else | |
9986 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
9987 | fi | |
9988 | ||
9989 | else | |
9990 | ||
9991 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
9992 | if test "x$LINE" != x ; then | |
9993 | eval "DEFAULT_$LINE" | |
9994 | else | |
9995 | no_cache=1 | |
9996 | fi | |
9997 | ||
9998 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
9999 | ||
10000 | fi; | |
10001 | ||
10002 | eval "$ac_cv_use_tipdlg" | |
10003 | if test "$no_cache" != 1; then | |
10004 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
10005 | fi | |
10006 | ||
10007 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
10008 | echo "$as_me:$LINENO: result: yes" >&5 | |
10009 | echo "${ECHO_T}yes" >&6 | |
10010 | else | |
10011 | echo "$as_me:$LINENO: result: no" >&5 | |
10012 | echo "${ECHO_T}no" >&6 | |
10013 | fi | |
10014 | ||
10015 | ||
10016 | enablestring= | |
10017 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 | |
10018 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
10019 | no_cache=0 | |
10020 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
10021 | if test "${enable_progressdlg+set}" = set; then | |
10022 | enableval="$enable_progressdlg" | |
10023 | ||
10024 | if test "$enableval" = yes; then | |
10025 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
10026 | else | |
10027 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
10028 | fi | |
10029 | ||
10030 | else | |
10031 | ||
10032 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
10033 | if test "x$LINE" != x ; then | |
10034 | eval "DEFAULT_$LINE" | |
10035 | else | |
10036 | no_cache=1 | |
10037 | fi | |
10038 | ||
10039 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
10040 | ||
10041 | fi; | |
10042 | ||
10043 | eval "$ac_cv_use_progressdlg" | |
10044 | if test "$no_cache" != 1; then | |
10045 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
10046 | fi | |
10047 | ||
10048 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
10049 | echo "$as_me:$LINENO: result: yes" >&5 | |
10050 | echo "${ECHO_T}yes" >&6 | |
10051 | else | |
10052 | echo "$as_me:$LINENO: result: no" >&5 | |
10053 | echo "${ECHO_T}no" >&6 | |
10054 | fi | |
10055 | ||
10056 | ||
10057 | enablestring= | |
10058 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 | |
10059 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
10060 | no_cache=0 | |
10061 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
10062 | if test "${enable_wizarddlg+set}" = set; then | |
10063 | enableval="$enable_wizarddlg" | |
10064 | ||
10065 | if test "$enableval" = yes; then | |
10066 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
10067 | else | |
10068 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
10069 | fi | |
10070 | ||
10071 | else | |
10072 | ||
10073 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
10074 | if test "x$LINE" != x ; then | |
10075 | eval "DEFAULT_$LINE" | |
10076 | else | |
10077 | no_cache=1 | |
10078 | fi | |
10079 | ||
10080 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
10081 | ||
10082 | fi; | |
10083 | ||
10084 | eval "$ac_cv_use_wizarddlg" | |
10085 | if test "$no_cache" != 1; then | |
10086 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
10087 | fi | |
10088 | ||
10089 | if test "$wxUSE_WIZARDDLG" = yes; then | |
10090 | echo "$as_me:$LINENO: result: yes" >&5 | |
10091 | echo "${ECHO_T}yes" >&6 | |
10092 | else | |
10093 | echo "$as_me:$LINENO: result: no" >&5 | |
10094 | echo "${ECHO_T}no" >&6 | |
10095 | fi | |
10096 | ||
10097 | ||
10098 | ||
10099 | ||
10100 | enablestring= | |
10101 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 | |
10102 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
10103 | no_cache=0 | |
10104 | # Check whether --enable-menus or --disable-menus was given. | |
10105 | if test "${enable_menus+set}" = set; then | |
10106 | enableval="$enable_menus" | |
10107 | ||
10108 | if test "$enableval" = yes; then | |
10109 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
10110 | else | |
10111 | ac_cv_use_menus='wxUSE_MENUS=no' | |
10112 | fi | |
10113 | ||
10114 | else | |
10115 | ||
10116 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
10117 | if test "x$LINE" != x ; then | |
10118 | eval "DEFAULT_$LINE" | |
10119 | else | |
10120 | no_cache=1 | |
10121 | fi | |
10122 | ||
10123 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
10124 | ||
10125 | fi; | |
10126 | ||
10127 | eval "$ac_cv_use_menus" | |
10128 | if test "$no_cache" != 1; then | |
10129 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
10130 | fi | |
10131 | ||
10132 | if test "$wxUSE_MENUS" = yes; then | |
10133 | echo "$as_me:$LINENO: result: yes" >&5 | |
10134 | echo "${ECHO_T}yes" >&6 | |
10135 | else | |
10136 | echo "$as_me:$LINENO: result: no" >&5 | |
10137 | echo "${ECHO_T}no" >&6 | |
10138 | fi | |
10139 | ||
10140 | ||
10141 | enablestring= | |
10142 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 | |
10143 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
10144 | no_cache=0 | |
10145 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
10146 | if test "${enable_miniframe+set}" = set; then | |
10147 | enableval="$enable_miniframe" | |
10148 | ||
10149 | if test "$enableval" = yes; then | |
10150 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
10151 | else | |
10152 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
10153 | fi | |
10154 | ||
10155 | else | |
10156 | ||
10157 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
10158 | if test "x$LINE" != x ; then | |
10159 | eval "DEFAULT_$LINE" | |
10160 | else | |
10161 | no_cache=1 | |
10162 | fi | |
10163 | ||
10164 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
10165 | ||
10166 | fi; | |
10167 | ||
10168 | eval "$ac_cv_use_miniframe" | |
10169 | if test "$no_cache" != 1; then | |
10170 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
10171 | fi | |
10172 | ||
10173 | if test "$wxUSE_MINIFRAME" = yes; then | |
10174 | echo "$as_me:$LINENO: result: yes" >&5 | |
10175 | echo "${ECHO_T}yes" >&6 | |
10176 | else | |
10177 | echo "$as_me:$LINENO: result: no" >&5 | |
10178 | echo "${ECHO_T}no" >&6 | |
10179 | fi | |
10180 | ||
10181 | ||
10182 | enablestring= | |
10183 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 | |
10184 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
10185 | no_cache=0 | |
10186 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
10187 | if test "${enable_tooltips+set}" = set; then | |
10188 | enableval="$enable_tooltips" | |
10189 | ||
10190 | if test "$enableval" = yes; then | |
10191 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
10192 | else | |
10193 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
10194 | fi | |
10195 | ||
10196 | else | |
10197 | ||
10198 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
10199 | if test "x$LINE" != x ; then | |
10200 | eval "DEFAULT_$LINE" | |
10201 | else | |
10202 | no_cache=1 | |
10203 | fi | |
10204 | ||
10205 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
10206 | ||
10207 | fi; | |
10208 | ||
10209 | eval "$ac_cv_use_tooltips" | |
10210 | if test "$no_cache" != 1; then | |
10211 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
10212 | fi | |
10213 | ||
10214 | if test "$wxUSE_TOOLTIPS" = yes; then | |
10215 | echo "$as_me:$LINENO: result: yes" >&5 | |
10216 | echo "${ECHO_T}yes" >&6 | |
10217 | else | |
10218 | echo "$as_me:$LINENO: result: no" >&5 | |
10219 | echo "${ECHO_T}no" >&6 | |
10220 | fi | |
10221 | ||
10222 | ||
10223 | enablestring= | |
10224 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 | |
10225 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
10226 | no_cache=0 | |
10227 | # Check whether --enable-splines or --disable-splines was given. | |
10228 | if test "${enable_splines+set}" = set; then | |
10229 | enableval="$enable_splines" | |
10230 | ||
10231 | if test "$enableval" = yes; then | |
10232 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
10233 | else | |
10234 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
10235 | fi | |
10236 | ||
10237 | else | |
10238 | ||
10239 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
10240 | if test "x$LINE" != x ; then | |
10241 | eval "DEFAULT_$LINE" | |
10242 | else | |
10243 | no_cache=1 | |
10244 | fi | |
10245 | ||
10246 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
10247 | ||
10248 | fi; | |
10249 | ||
10250 | eval "$ac_cv_use_splines" | |
10251 | if test "$no_cache" != 1; then | |
10252 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
10253 | fi | |
10254 | ||
10255 | if test "$wxUSE_SPLINES" = yes; then | |
10256 | echo "$as_me:$LINENO: result: yes" >&5 | |
10257 | echo "${ECHO_T}yes" >&6 | |
10258 | else | |
10259 | echo "$as_me:$LINENO: result: no" >&5 | |
10260 | echo "${ECHO_T}no" >&6 | |
10261 | fi | |
10262 | ||
10263 | ||
fbe2ca43 SN |
10264 | enablestring= |
10265 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5 | |
10266 | echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6 | |
10267 | no_cache=0 | |
10268 | # Check whether --enable-mousewheel or --disable-mousewheel was given. | |
10269 | if test "${enable_mousewheel+set}" = set; then | |
10270 | enableval="$enable_mousewheel" | |
10271 | ||
10272 | if test "$enableval" = yes; then | |
10273 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes' | |
10274 | else | |
10275 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no' | |
10276 | fi | |
10277 | ||
10278 | else | |
10279 | ||
10280 | LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}` | |
10281 | if test "x$LINE" != x ; then | |
10282 | eval "DEFAULT_$LINE" | |
10283 | else | |
10284 | no_cache=1 | |
10285 | fi | |
10286 | ||
10287 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL | |
10288 | ||
10289 | fi; | |
10290 | ||
10291 | eval "$ac_cv_use_mousewheel" | |
10292 | if test "$no_cache" != 1; then | |
10293 | echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp | |
10294 | fi | |
10295 | ||
10296 | if test "$wxUSE_MOUSEWHEEL" = yes; then | |
10297 | echo "$as_me:$LINENO: result: yes" >&5 | |
10298 | echo "${ECHO_T}yes" >&6 | |
10299 | else | |
10300 | echo "$as_me:$LINENO: result: no" >&5 | |
10301 | echo "${ECHO_T}no" >&6 | |
10302 | fi | |
10303 | ||
10304 | ||
a848cd7e SC |
10305 | enablestring= |
10306 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 | |
10307 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
10308 | no_cache=0 | |
10309 | # Check whether --enable-validators or --disable-validators was given. | |
10310 | if test "${enable_validators+set}" = set; then | |
10311 | enableval="$enable_validators" | |
10312 | ||
10313 | if test "$enableval" = yes; then | |
10314 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
10315 | else | |
10316 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
10317 | fi | |
10318 | ||
10319 | else | |
10320 | ||
10321 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
10322 | if test "x$LINE" != x ; then | |
10323 | eval "DEFAULT_$LINE" | |
10324 | else | |
10325 | no_cache=1 | |
10326 | fi | |
10327 | ||
10328 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
10329 | ||
10330 | fi; | |
10331 | ||
10332 | eval "$ac_cv_use_validators" | |
10333 | if test "$no_cache" != 1; then | |
10334 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
10335 | fi | |
10336 | ||
10337 | if test "$wxUSE_VALIDATORS" = yes; then | |
10338 | echo "$as_me:$LINENO: result: yes" >&5 | |
10339 | echo "${ECHO_T}yes" >&6 | |
10340 | else | |
10341 | echo "$as_me:$LINENO: result: no" >&5 | |
10342 | echo "${ECHO_T}no" >&6 | |
10343 | fi | |
10344 | ||
10345 | ||
10346 | enablestring= | |
10347 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 | |
10348 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
10349 | no_cache=0 | |
10350 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
10351 | if test "${enable_busyinfo+set}" = set; then | |
10352 | enableval="$enable_busyinfo" | |
10353 | ||
10354 | if test "$enableval" = yes; then | |
10355 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
10356 | else | |
10357 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
10358 | fi | |
10359 | ||
10360 | else | |
10361 | ||
10362 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
10363 | if test "x$LINE" != x ; then | |
10364 | eval "DEFAULT_$LINE" | |
10365 | else | |
10366 | no_cache=1 | |
10367 | fi | |
10368 | ||
10369 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
10370 | ||
10371 | fi; | |
10372 | ||
10373 | eval "$ac_cv_use_busyinfo" | |
10374 | if test "$no_cache" != 1; then | |
10375 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
10376 | fi | |
10377 | ||
10378 | if test "$wxUSE_BUSYINFO" = yes; then | |
10379 | echo "$as_me:$LINENO: result: yes" >&5 | |
10380 | echo "${ECHO_T}yes" >&6 | |
10381 | else | |
10382 | echo "$as_me:$LINENO: result: no" >&5 | |
10383 | echo "${ECHO_T}no" >&6 | |
10384 | fi | |
10385 | ||
10386 | ||
10387 | enablestring= | |
10388 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 | |
10389 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
10390 | no_cache=0 | |
10391 | # Check whether --enable-joystick or --disable-joystick was given. | |
10392 | if test "${enable_joystick+set}" = set; then | |
10393 | enableval="$enable_joystick" | |
10394 | ||
10395 | if test "$enableval" = yes; then | |
10396 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
10397 | else | |
10398 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
10399 | fi | |
10400 | ||
10401 | else | |
10402 | ||
10403 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
10404 | if test "x$LINE" != x ; then | |
10405 | eval "DEFAULT_$LINE" | |
10406 | else | |
10407 | no_cache=1 | |
10408 | fi | |
10409 | ||
10410 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
10411 | ||
10412 | fi; | |
10413 | ||
10414 | eval "$ac_cv_use_joystick" | |
10415 | if test "$no_cache" != 1; then | |
10416 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
10417 | fi | |
10418 | ||
10419 | if test "$wxUSE_JOYSTICK" = yes; then | |
10420 | echo "$as_me:$LINENO: result: yes" >&5 | |
10421 | echo "${ECHO_T}yes" >&6 | |
10422 | else | |
10423 | echo "$as_me:$LINENO: result: no" >&5 | |
10424 | echo "${ECHO_T}no" >&6 | |
10425 | fi | |
10426 | ||
10427 | ||
10428 | enablestring= | |
10429 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
10430 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
10431 | no_cache=0 | |
10432 | # Check whether --enable-metafile or --disable-metafile was given. | |
10433 | if test "${enable_metafile+set}" = set; then | |
10434 | enableval="$enable_metafile" | |
10435 | ||
10436 | if test "$enableval" = yes; then | |
10437 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
10438 | else | |
10439 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
10440 | fi | |
10441 | ||
10442 | else | |
10443 | ||
10444 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
10445 | if test "x$LINE" != x ; then | |
10446 | eval "DEFAULT_$LINE" | |
10447 | else | |
10448 | no_cache=1 | |
10449 | fi | |
10450 | ||
10451 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
10452 | ||
10453 | fi; | |
10454 | ||
10455 | eval "$ac_cv_use_metafile" | |
10456 | if test "$no_cache" != 1; then | |
10457 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
10458 | fi | |
10459 | ||
10460 | if test "$wxUSE_METAFILE" = yes; then | |
10461 | echo "$as_me:$LINENO: result: yes" >&5 | |
10462 | echo "${ECHO_T}yes" >&6 | |
10463 | else | |
10464 | echo "$as_me:$LINENO: result: no" >&5 | |
10465 | echo "${ECHO_T}no" >&6 | |
10466 | fi | |
10467 | ||
10468 | ||
10469 | enablestring= | |
10470 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 | |
10471 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
10472 | no_cache=0 | |
10473 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
10474 | if test "${enable_dragimage+set}" = set; then | |
10475 | enableval="$enable_dragimage" | |
10476 | ||
10477 | if test "$enableval" = yes; then | |
10478 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
10479 | else | |
10480 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
10481 | fi | |
10482 | ||
10483 | else | |
10484 | ||
10485 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
10486 | if test "x$LINE" != x ; then | |
10487 | eval "DEFAULT_$LINE" | |
10488 | else | |
10489 | no_cache=1 | |
10490 | fi | |
10491 | ||
10492 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
10493 | ||
10494 | fi; | |
10495 | ||
10496 | eval "$ac_cv_use_dragimage" | |
10497 | if test "$no_cache" != 1; then | |
10498 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
10499 | fi | |
10500 | ||
10501 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
10502 | echo "$as_me:$LINENO: result: yes" >&5 | |
10503 | echo "${ECHO_T}yes" >&6 | |
10504 | else | |
10505 | echo "$as_me:$LINENO: result: no" >&5 | |
10506 | echo "${ECHO_T}no" >&6 | |
10507 | fi | |
10508 | ||
10509 | ||
10510 | enablestring= | |
10511 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 | |
10512 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
10513 | no_cache=0 | |
10514 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
10515 | if test "${enable_accessibility+set}" = set; then | |
10516 | enableval="$enable_accessibility" | |
10517 | ||
10518 | if test "$enableval" = yes; then | |
10519 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
10520 | else | |
10521 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
10522 | fi | |
10523 | ||
10524 | else | |
10525 | ||
10526 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` | |
10527 | if test "x$LINE" != x ; then | |
10528 | eval "DEFAULT_$LINE" | |
10529 | else | |
10530 | no_cache=1 | |
10531 | fi | |
10532 | ||
10533 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
10534 | ||
10535 | fi; | |
10536 | ||
10537 | eval "$ac_cv_use_accessibility" | |
10538 | if test "$no_cache" != 1; then | |
10539 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
10540 | fi | |
10541 | ||
10542 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
10543 | echo "$as_me:$LINENO: result: yes" >&5 | |
10544 | echo "${ECHO_T}yes" >&6 | |
10545 | else | |
10546 | echo "$as_me:$LINENO: result: no" >&5 | |
10547 | echo "${ECHO_T}no" >&6 | |
10548 | fi | |
10549 | ||
10550 | ||
38b4a946 VZ |
10551 | if test "$wxUSE_MSW" = "1"; then |
10552 | ||
10553 | enablestring= | |
10554 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5 | |
10555 | echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6 | |
10556 | no_cache=0 | |
10557 | # Check whether --enable-dccache or --disable-dccache was given. | |
10558 | if test "${enable_dccache+set}" = set; then | |
10559 | enableval="$enable_dccache" | |
10560 | ||
10561 | if test "$enableval" = yes; then | |
10562 | ac_cv_use_dccache='wxUSE_DC_CACHEING=yes' | |
10563 | else | |
10564 | ac_cv_use_dccache='wxUSE_DC_CACHEING=no' | |
10565 | fi | |
10566 | ||
10567 | else | |
10568 | ||
10569 | LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}` | |
10570 | if test "x$LINE" != x ; then | |
10571 | eval "DEFAULT_$LINE" | |
10572 | else | |
10573 | no_cache=1 | |
10574 | fi | |
10575 | ||
10576 | ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING | |
10577 | ||
10578 | fi; | |
10579 | ||
10580 | eval "$ac_cv_use_dccache" | |
10581 | if test "$no_cache" != 1; then | |
10582 | echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp | |
10583 | fi | |
10584 | ||
10585 | if test "$wxUSE_DC_CACHEING" = yes; then | |
10586 | echo "$as_me:$LINENO: result: yes" >&5 | |
10587 | echo "${ECHO_T}yes" >&6 | |
10588 | else | |
10589 | echo "$as_me:$LINENO: result: no" >&5 | |
10590 | echo "${ECHO_T}no" >&6 | |
10591 | fi | |
10592 | ||
10593 | fi | |
10594 | ||
a848cd7e SC |
10595 | |
10596 | ||
10597 | enablestring= | |
10598 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 | |
10599 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
10600 | no_cache=0 | |
10601 | # Check whether --enable-palette or --disable-palette was given. | |
10602 | if test "${enable_palette+set}" = set; then | |
10603 | enableval="$enable_palette" | |
10604 | ||
10605 | if test "$enableval" = yes; then | |
10606 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
10607 | else | |
10608 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
10609 | fi | |
10610 | ||
10611 | else | |
10612 | ||
10613 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
10614 | if test "x$LINE" != x ; then | |
10615 | eval "DEFAULT_$LINE" | |
10616 | else | |
10617 | no_cache=1 | |
10618 | fi | |
10619 | ||
10620 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
10621 | ||
10622 | fi; | |
10623 | ||
10624 | eval "$ac_cv_use_palette" | |
10625 | if test "$no_cache" != 1; then | |
10626 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
10627 | fi | |
10628 | ||
10629 | if test "$wxUSE_PALETTE" = yes; then | |
10630 | echo "$as_me:$LINENO: result: yes" >&5 | |
10631 | echo "${ECHO_T}yes" >&6 | |
10632 | else | |
10633 | echo "$as_me:$LINENO: result: no" >&5 | |
10634 | echo "${ECHO_T}no" >&6 | |
10635 | fi | |
10636 | ||
10637 | ||
10638 | enablestring= | |
10639 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 | |
10640 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
10641 | no_cache=0 | |
10642 | # Check whether --enable-image or --disable-image was given. | |
10643 | if test "${enable_image+set}" = set; then | |
10644 | enableval="$enable_image" | |
10645 | ||
10646 | if test "$enableval" = yes; then | |
10647 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
10648 | else | |
10649 | ac_cv_use_image='wxUSE_IMAGE=no' | |
10650 | fi | |
10651 | ||
10652 | else | |
10653 | ||
10654 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
10655 | if test "x$LINE" != x ; then | |
10656 | eval "DEFAULT_$LINE" | |
10657 | else | |
10658 | no_cache=1 | |
10659 | fi | |
10660 | ||
10661 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
10662 | ||
10663 | fi; | |
10664 | ||
10665 | eval "$ac_cv_use_image" | |
10666 | if test "$no_cache" != 1; then | |
10667 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
10668 | fi | |
10669 | ||
10670 | if test "$wxUSE_IMAGE" = yes; then | |
10671 | echo "$as_me:$LINENO: result: yes" >&5 | |
10672 | echo "${ECHO_T}yes" >&6 | |
10673 | else | |
10674 | echo "$as_me:$LINENO: result: no" >&5 | |
10675 | echo "${ECHO_T}no" >&6 | |
10676 | fi | |
10677 | ||
10678 | ||
10679 | enablestring= | |
10680 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 | |
10681 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
10682 | no_cache=0 | |
10683 | # Check whether --enable-gif or --disable-gif was given. | |
10684 | if test "${enable_gif+set}" = set; then | |
10685 | enableval="$enable_gif" | |
10686 | ||
10687 | if test "$enableval" = yes; then | |
10688 | ac_cv_use_gif='wxUSE_GIF=yes' | |
10689 | else | |
10690 | ac_cv_use_gif='wxUSE_GIF=no' | |
10691 | fi | |
10692 | ||
10693 | else | |
10694 | ||
10695 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
10696 | if test "x$LINE" != x ; then | |
10697 | eval "DEFAULT_$LINE" | |
10698 | else | |
10699 | no_cache=1 | |
10700 | fi | |
10701 | ||
10702 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
10703 | ||
10704 | fi; | |
10705 | ||
10706 | eval "$ac_cv_use_gif" | |
10707 | if test "$no_cache" != 1; then | |
10708 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
10709 | fi | |
10710 | ||
10711 | if test "$wxUSE_GIF" = yes; then | |
10712 | echo "$as_me:$LINENO: result: yes" >&5 | |
10713 | echo "${ECHO_T}yes" >&6 | |
10714 | else | |
10715 | echo "$as_me:$LINENO: result: no" >&5 | |
10716 | echo "${ECHO_T}no" >&6 | |
10717 | fi | |
10718 | ||
10719 | ||
10720 | enablestring= | |
10721 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 | |
10722 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
10723 | no_cache=0 | |
10724 | # Check whether --enable-pcx or --disable-pcx was given. | |
10725 | if test "${enable_pcx+set}" = set; then | |
10726 | enableval="$enable_pcx" | |
10727 | ||
10728 | if test "$enableval" = yes; then | |
10729 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
10730 | else | |
10731 | ac_cv_use_pcx='wxUSE_PCX=no' | |
10732 | fi | |
10733 | ||
10734 | else | |
10735 | ||
10736 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
10737 | if test "x$LINE" != x ; then | |
10738 | eval "DEFAULT_$LINE" | |
10739 | else | |
10740 | no_cache=1 | |
10741 | fi | |
10742 | ||
10743 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
10744 | ||
10745 | fi; | |
10746 | ||
10747 | eval "$ac_cv_use_pcx" | |
10748 | if test "$no_cache" != 1; then | |
10749 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
10750 | fi | |
10751 | ||
10752 | if test "$wxUSE_PCX" = yes; then | |
10753 | echo "$as_me:$LINENO: result: yes" >&5 | |
10754 | echo "${ECHO_T}yes" >&6 | |
10755 | else | |
10756 | echo "$as_me:$LINENO: result: no" >&5 | |
10757 | echo "${ECHO_T}no" >&6 | |
10758 | fi | |
10759 | ||
10760 | ||
10761 | enablestring= | |
10762 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 | |
10763 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
10764 | no_cache=0 | |
10765 | # Check whether --enable-iff or --disable-iff was given. | |
10766 | if test "${enable_iff+set}" = set; then | |
10767 | enableval="$enable_iff" | |
10768 | ||
10769 | if test "$enableval" = yes; then | |
10770 | ac_cv_use_iff='wxUSE_IFF=yes' | |
10771 | else | |
10772 | ac_cv_use_iff='wxUSE_IFF=no' | |
10773 | fi | |
10774 | ||
10775 | else | |
10776 | ||
10777 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
10778 | if test "x$LINE" != x ; then | |
10779 | eval "DEFAULT_$LINE" | |
10780 | else | |
10781 | no_cache=1 | |
10782 | fi | |
10783 | ||
10784 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
10785 | ||
10786 | fi; | |
10787 | ||
10788 | eval "$ac_cv_use_iff" | |
10789 | if test "$no_cache" != 1; then | |
10790 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
10791 | fi | |
10792 | ||
10793 | if test "$wxUSE_IFF" = yes; then | |
10794 | echo "$as_me:$LINENO: result: yes" >&5 | |
10795 | echo "${ECHO_T}yes" >&6 | |
10796 | else | |
10797 | echo "$as_me:$LINENO: result: no" >&5 | |
10798 | echo "${ECHO_T}no" >&6 | |
10799 | fi | |
10800 | ||
10801 | ||
10802 | enablestring= | |
10803 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 | |
10804 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
10805 | no_cache=0 | |
10806 | # Check whether --enable-pnm or --disable-pnm was given. | |
10807 | if test "${enable_pnm+set}" = set; then | |
10808 | enableval="$enable_pnm" | |
10809 | ||
10810 | if test "$enableval" = yes; then | |
10811 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
10812 | else | |
10813 | ac_cv_use_pnm='wxUSE_PNM=no' | |
10814 | fi | |
10815 | ||
10816 | else | |
10817 | ||
10818 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
10819 | if test "x$LINE" != x ; then | |
10820 | eval "DEFAULT_$LINE" | |
10821 | else | |
10822 | no_cache=1 | |
10823 | fi | |
10824 | ||
10825 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
10826 | ||
10827 | fi; | |
10828 | ||
10829 | eval "$ac_cv_use_pnm" | |
10830 | if test "$no_cache" != 1; then | |
10831 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
10832 | fi | |
10833 | ||
10834 | if test "$wxUSE_PNM" = yes; then | |
10835 | echo "$as_me:$LINENO: result: yes" >&5 | |
10836 | echo "${ECHO_T}yes" >&6 | |
10837 | else | |
10838 | echo "$as_me:$LINENO: result: no" >&5 | |
10839 | echo "${ECHO_T}no" >&6 | |
10840 | fi | |
10841 | ||
10842 | ||
10843 | enablestring= | |
10844 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 | |
10845 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
10846 | no_cache=0 | |
10847 | # Check whether --enable-xpm or --disable-xpm was given. | |
10848 | if test "${enable_xpm+set}" = set; then | |
10849 | enableval="$enable_xpm" | |
10850 | ||
10851 | if test "$enableval" = yes; then | |
10852 | ac_cv_use_xpm='wxUSE_XPM=yes' | |
10853 | else | |
10854 | ac_cv_use_xpm='wxUSE_XPM=no' | |
10855 | fi | |
10856 | ||
10857 | else | |
10858 | ||
10859 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` | |
10860 | if test "x$LINE" != x ; then | |
10861 | eval "DEFAULT_$LINE" | |
10862 | else | |
10863 | no_cache=1 | |
10864 | fi | |
10865 | ||
10866 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
10867 | ||
10868 | fi; | |
10869 | ||
10870 | eval "$ac_cv_use_xpm" | |
10871 | if test "$no_cache" != 1; then | |
10872 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp | |
10873 | fi | |
10874 | ||
10875 | if test "$wxUSE_XPM" = yes; then | |
10876 | echo "$as_me:$LINENO: result: yes" >&5 | |
10877 | echo "${ECHO_T}yes" >&6 | |
10878 | else | |
10879 | echo "$as_me:$LINENO: result: no" >&5 | |
10880 | echo "${ECHO_T}no" >&6 | |
10881 | fi | |
10882 | ||
10883 | ||
10884 | enablestring= | |
10885 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 | |
10886 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
10887 | no_cache=0 | |
10888 | # Check whether --enable-ico_cur or --disable-ico_cur was given. | |
10889 | if test "${enable_ico_cur+set}" = set; then | |
10890 | enableval="$enable_ico_cur" | |
10891 | ||
10892 | if test "$enableval" = yes; then | |
10893 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' | |
10894 | else | |
10895 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' | |
10896 | fi | |
10897 | ||
10898 | else | |
10899 | ||
10900 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
10901 | if test "x$LINE" != x ; then | |
10902 | eval "DEFAULT_$LINE" | |
10903 | else | |
10904 | no_cache=1 | |
10905 | fi | |
10906 | ||
10907 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR | |
10908 | ||
10909 | fi; | |
10910 | ||
10911 | eval "$ac_cv_use_ico_cur" | |
10912 | if test "$no_cache" != 1; then | |
10913 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp | |
10914 | fi | |
10915 | ||
10916 | if test "$wxUSE_ICO_CUR" = yes; then | |
10917 | echo "$as_me:$LINENO: result: yes" >&5 | |
10918 | echo "${ECHO_T}yes" >&6 | |
10919 | else | |
10920 | echo "$as_me:$LINENO: result: no" >&5 | |
10921 | echo "${ECHO_T}no" >&6 | |
10922 | fi | |
10923 | ||
10924 | ||
10925 | fi | |
10926 | ||
10927 | ||
10928 | ||
ceec2216 RL |
10929 | # Check whether --with-flavour or --without-flavour was given. |
10930 | if test "${with_flavour+set}" = set; then | |
10931 | withval="$with_flavour" | |
10932 | WX_FLAVOUR="$withval" | |
10933 | fi; | |
10934 | ||
10935 | ||
10936 | ||
a848cd7e SC |
10937 | enablestring= |
10938 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
10939 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
10940 | no_cache=0 | |
10941 | # Check whether --enable-official_build or --disable-official_build was given. | |
10942 | if test "${enable_official_build+set}" = set; then | |
10943 | enableval="$enable_official_build" | |
10944 | ||
10945 | if test "$enableval" = yes; then | |
10946 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
10947 | else | |
10948 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
10949 | fi | |
10950 | ||
10951 | else | |
10952 | ||
10953 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
10954 | if test "x$LINE" != x ; then | |
10955 | eval "DEFAULT_$LINE" | |
10956 | else | |
10957 | no_cache=1 | |
10958 | fi | |
10959 | ||
10960 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
10961 | ||
10962 | fi; | |
10963 | ||
10964 | eval "$ac_cv_use_official_build" | |
10965 | if test "$no_cache" != 1; then | |
10966 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
10967 | fi | |
10968 | ||
10969 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
10970 | echo "$as_me:$LINENO: result: yes" >&5 | |
10971 | echo "${ECHO_T}yes" >&6 | |
10972 | else | |
10973 | echo "$as_me:$LINENO: result: no" >&5 | |
10974 | echo "${ECHO_T}no" >&6 | |
10975 | fi | |
10976 | ||
10977 | # Check whether --enable-vendor or --disable-vendor was given. | |
10978 | if test "${enable_vendor+set}" = set; then | |
10979 | enableval="$enable_vendor" | |
10980 | VENDOR="$enableval" | |
10981 | fi; | |
10982 | if test "x$VENDOR" = "x"; then | |
10983 | VENDOR="custom" | |
10984 | fi | |
10985 | ||
a848cd7e SC |
10986 | |
10987 | ||
10988 | ||
10989 | echo "saving argument cache $wx_arg_cache_file" | |
10990 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
10991 | ||
10992 | ||
10993 | ||
10994 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
10995 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
10996 | ||
10997 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
10998 | if test "$wxUSE_WINE" = "yes"; then | |
10999 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
11000 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
11001 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
11002 | wxUSE_SHARED=no | |
11003 | fi | |
11004 | ||
f597b41c | 11005 | |
a848cd7e SC |
11006 | if test "$wxUSE_GUI" = "yes"; then |
11007 | ||
11008 | if test "$USE_BEOS" = 1; then | |
11009 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 | |
11010 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
11011 | { (exit 1); exit 1; }; } | |
11012 | fi | |
11013 | ||
11014 | if test "$TOOLKIT_GIVEN" = 1; then | |
11015 | for toolkit in `echo $ALL_TOOLKITS`; do | |
11016 | var=wxUSE_$toolkit | |
11017 | eval "value=\$${var}" | |
f34ca037 MW |
11018 | if test "x$value" = "xno"; then |
11019 | eval "$var=0" | |
11020 | elif test "x$value" != "x"; then | |
11021 | eval "$var=1" | |
11022 | fi | |
11023 | ||
11024 | if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then | |
11025 | eval "wx${toolkit}_VERSION=$value" | |
11026 | fi | |
a848cd7e SC |
11027 | done |
11028 | else | |
11029 | for toolkit in `echo $ALL_TOOLKITS`; do | |
11030 | if test "$has_toolkit_in_cache" != 1; then | |
11031 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
11032 | else | |
11033 | var=DEFAULT_wxUSE_$toolkit | |
f34ca037 MW |
11034 | |
11035 | eval "version=\$DEFAULT_wx${toolkit}_VERSION" | |
11036 | if test "x$version" != "x"; then | |
11037 | eval "wx${toolkit}_VERSION=$version" | |
11038 | fi | |
a848cd7e SC |
11039 | fi |
11040 | eval "wxUSE_$toolkit=\$${var}" | |
11041 | done | |
11042 | fi | |
11043 | ||
11044 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ | |
11045 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
11046 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
11047 | ||
11048 | case "${host}" in | |
11049 | *-pc-os2_emx | *-pc-os2-emx ) | |
11050 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
11051 | esac | |
11052 | ||
11053 | case "$NUM_TOOLKITS" in | |
11054 | 1) | |
11055 | ;; | |
11056 | 0) | |
11057 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 | |
11058 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
11059 | { (exit 1); exit 1; }; } | |
11060 | ;; | |
11061 | *) | |
11062 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 | |
11063 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
11064 | { (exit 1); exit 1; }; } | |
11065 | esac | |
11066 | ||
f34ca037 MW |
11067 | # to be removed when --disable-gtk2 isn't needed |
11068 | if test "x$wxUSE_GTK2" = "xyes"; then | |
11069 | wxGTK_VERSION=2 | |
11070 | elif test "x$wxUSE_GTK2" = "xno"; then | |
11071 | wxGTK_VERSION=1 | |
11072 | fi | |
11073 | ||
a848cd7e SC |
11074 | for toolkit in `echo $ALL_TOOLKITS`; do |
11075 | var=wxUSE_$toolkit | |
11076 | eval "value=\$${var}" | |
11077 | if test "x$value" != x; then | |
11078 | cache_var=CACHE_$toolkit | |
11079 | eval "cache=\$${cache_var}" | |
11080 | if test "$cache" = 1; then | |
11081 | echo "$var=$value" >> ${wx_arg_cache_file} | |
f34ca037 MW |
11082 | eval "version=\$wx${toolkit}_VERSION" |
11083 | if test "x$version" != "x"; then | |
11084 | echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file} | |
11085 | fi | |
a848cd7e SC |
11086 | fi |
11087 | if test "$value" = 1; then | |
11088 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` | |
11089 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 | |
11090 | echo "${ECHO_T}$toolkit_echo" >&6 | |
11091 | fi | |
11092 | fi | |
11093 | done | |
11094 | else | |
11095 | if test "x$host_alias" != "x"; then | |
11096 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
11097 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 | |
11098 | else | |
11099 | echo "$as_me:$LINENO: result: base only" >&5 | |
11100 | echo "${ECHO_T}base only" >&6 | |
11101 | fi | |
11102 | fi | |
11103 | ||
11104 | wants_win32=0 | |
11105 | doesnt_want_win32=0 | |
11106 | case "${host}" in | |
11107 | *-*-cygwin*) | |
11108 | if test "$wxUSE_MSW" = 1 ; then | |
11109 | wants_win32=1 | |
7275146d | 11110 | BAKEFILE_FORCE_PLATFORM=win32 |
a848cd7e SC |
11111 | else |
11112 | doesnt_want_win32=1 | |
11113 | fi | |
11114 | ;; | |
11115 | *-*-mingw*) | |
11116 | wants_win32=1 | |
11117 | ;; | |
11118 | esac | |
11119 | ||
11120 | if test "$wxUSE_WINE" = "yes"; then | |
11121 | wants_win32=1 | |
11122 | CC=winegcc | |
11123 | CXX=wineg++ | |
a848cd7e SC |
11124 | LDFLAGS_GUI="-mwindows" |
11125 | fi | |
11126 | ||
11127 | if test "$wants_win32" = 1 ; then | |
11128 | USE_UNIX=0 | |
11129 | USE_WIN32=1 | |
11130 | cat >>confdefs.h <<\_ACEOF | |
11131 | #define __WIN32__ 1 | |
11132 | _ACEOF | |
11133 | ||
11134 | cat >>confdefs.h <<\_ACEOF | |
11135 | #define __WIN95__ 1 | |
11136 | _ACEOF | |
11137 | ||
11138 | cat >>confdefs.h <<\_ACEOF | |
11139 | #define __WINDOWS__ 1 | |
11140 | _ACEOF | |
11141 | ||
11142 | cat >>confdefs.h <<\_ACEOF | |
11143 | #define __GNUWIN32__ 1 | |
11144 | _ACEOF | |
11145 | ||
11146 | cat >>confdefs.h <<\_ACEOF | |
11147 | #define STRICT 1 | |
11148 | _ACEOF | |
11149 | ||
11150 | cat >>confdefs.h <<\_ACEOF | |
11151 | #define WINVER 0x0400 | |
11152 | _ACEOF | |
11153 | ||
11154 | fi | |
11155 | if test "$doesnt_want_win32" = 1 ; then | |
11156 | USE_UNIX=1 | |
11157 | USE_WIN32=0 | |
11158 | fi | |
11159 | ||
11160 | if test "$USE_UNIX" = 1 ; then | |
11161 | wxUSE_UNIX=yes | |
11162 | cat >>confdefs.h <<\_ACEOF | |
11163 | #define __UNIX__ 1 | |
11164 | _ACEOF | |
11165 | ||
11166 | fi | |
11167 | ||
11168 | ||
11169 | cat >confcache <<\_ACEOF | |
11170 | # This file is a shell script that caches the results of configure | |
11171 | # tests run on this system so they can be shared between configure | |
11172 | # scripts and configure runs, see configure's option --config-cache. | |
11173 | # It is not useful on other systems. If it contains results you don't | |
11174 | # want to keep, you may remove or edit it. | |
11175 | # | |
11176 | # config.status only pays attention to the cache file if you give it | |
11177 | # the --recheck option to rerun configure. | |
11178 | # | |
11179 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
11180 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
11181 | # following values. | |
11182 | ||
11183 | _ACEOF | |
11184 | ||
11185 | # The following way of writing the cache mishandles newlines in values, | |
11186 | # but we know of no workaround that is simple, portable, and efficient. | |
11187 | # So, don't put newlines in cache variables' values. | |
11188 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
11189 | # and sets the high bit in the cache file unless we assign to the vars. | |
11190 | { | |
11191 | (set) 2>&1 | | |
11192 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
11193 | *ac_space=\ *) | |
11194 | # `set' does not quote correctly, so add quotes (double-quote | |
11195 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
11196 | sed -n \ | |
ac1cb8d3 VS |
11197 | "s/'/'\\\\''/g; |
11198 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
11199 | ;; |
11200 | *) | |
11201 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11202 | sed -n \ | |
ac1cb8d3 | 11203 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
11204 | ;; |
11205 | esac; | |
11206 | } | | |
11207 | sed ' | |
11208 | t clear | |
11209 | : clear | |
11210 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
11211 | t end | |
11212 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
11213 | : end' >>confcache | |
11214 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
11215 | if test -w $cache_file; then | |
11216 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
11217 | cat confcache >$cache_file | |
11218 | else | |
11219 | echo "not updating unwritable cache $cache_file" | |
11220 | fi | |
11221 | fi | |
11222 | rm -f confcache | |
11223 | ||
a848cd7e | 11224 | CFLAGS=${CFLAGS:=} |
6dcfc289 DE |
11225 | |
11226 | ||
3006edc0 | 11227 | |
6dcfc289 | 11228 | ac_ext=c |
a848cd7e SC |
11229 | ac_cpp='$CPP $CPPFLAGS' |
11230 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11231 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11232 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11233 | if test -n "$ac_tool_prefix"; then | |
11234 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
11235 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
11236 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11237 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11238 | if test "${ac_cv_prog_CC+set}" = set; then | |
11239 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11240 | else | |
11241 | if test -n "$CC"; then | |
11242 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
11243 | else | |
11244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11245 | for as_dir in $PATH | |
11246 | do | |
11247 | IFS=$as_save_IFS | |
11248 | test -z "$as_dir" && as_dir=. | |
11249 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11250 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11251 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
11252 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11253 | break 2 | |
11254 | fi | |
11255 | done | |
11256 | done | |
11257 | ||
11258 | fi | |
11259 | fi | |
11260 | CC=$ac_cv_prog_CC | |
11261 | if test -n "$CC"; then | |
11262 | echo "$as_me:$LINENO: result: $CC" >&5 | |
11263 | echo "${ECHO_T}$CC" >&6 | |
11264 | else | |
11265 | echo "$as_me:$LINENO: result: no" >&5 | |
11266 | echo "${ECHO_T}no" >&6 | |
11267 | fi | |
11268 | ||
11269 | fi | |
11270 | if test -z "$ac_cv_prog_CC"; then | |
11271 | ac_ct_CC=$CC | |
11272 | # Extract the first word of "gcc", so it can be a program name with args. | |
11273 | set dummy gcc; ac_word=$2 | |
11274 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11275 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11276 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
11277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11278 | else | |
11279 | if test -n "$ac_ct_CC"; then | |
11280 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
11281 | else | |
11282 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11283 | for as_dir in $PATH | |
11284 | do | |
11285 | IFS=$as_save_IFS | |
11286 | test -z "$as_dir" && as_dir=. | |
11287 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11288 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11289 | ac_cv_prog_ac_ct_CC="gcc" | |
11290 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11291 | break 2 | |
11292 | fi | |
11293 | done | |
11294 | done | |
11295 | ||
11296 | fi | |
11297 | fi | |
11298 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
11299 | if test -n "$ac_ct_CC"; then | |
11300 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
11301 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
11302 | else | |
11303 | echo "$as_me:$LINENO: result: no" >&5 | |
11304 | echo "${ECHO_T}no" >&6 | |
11305 | fi | |
11306 | ||
11307 | CC=$ac_ct_CC | |
11308 | else | |
11309 | CC="$ac_cv_prog_CC" | |
11310 | fi | |
11311 | ||
11312 | if test -z "$CC"; then | |
11313 | if test -n "$ac_tool_prefix"; then | |
11314 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
11315 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
11316 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11317 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11318 | if test "${ac_cv_prog_CC+set}" = set; then | |
11319 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11320 | else | |
11321 | if test -n "$CC"; then | |
11322 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
11323 | else | |
11324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11325 | for as_dir in $PATH | |
11326 | do | |
11327 | IFS=$as_save_IFS | |
11328 | test -z "$as_dir" && as_dir=. | |
11329 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11330 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11331 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
11332 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11333 | break 2 | |
11334 | fi | |
11335 | done | |
11336 | done | |
11337 | ||
11338 | fi | |
11339 | fi | |
11340 | CC=$ac_cv_prog_CC | |
11341 | if test -n "$CC"; then | |
11342 | echo "$as_me:$LINENO: result: $CC" >&5 | |
11343 | echo "${ECHO_T}$CC" >&6 | |
11344 | else | |
11345 | echo "$as_me:$LINENO: result: no" >&5 | |
11346 | echo "${ECHO_T}no" >&6 | |
11347 | fi | |
11348 | ||
11349 | fi | |
11350 | if test -z "$ac_cv_prog_CC"; then | |
11351 | ac_ct_CC=$CC | |
11352 | # Extract the first word of "cc", so it can be a program name with args. | |
11353 | set dummy cc; ac_word=$2 | |
11354 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11355 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11356 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
11357 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11358 | else | |
11359 | if test -n "$ac_ct_CC"; then | |
11360 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
11361 | else | |
11362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11363 | for as_dir in $PATH | |
11364 | do | |
11365 | IFS=$as_save_IFS | |
11366 | test -z "$as_dir" && as_dir=. | |
11367 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11368 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11369 | ac_cv_prog_ac_ct_CC="cc" | |
11370 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11371 | break 2 | |
11372 | fi | |
11373 | done | |
11374 | done | |
11375 | ||
11376 | fi | |
11377 | fi | |
11378 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
11379 | if test -n "$ac_ct_CC"; then | |
11380 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
11381 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
11382 | else | |
11383 | echo "$as_me:$LINENO: result: no" >&5 | |
11384 | echo "${ECHO_T}no" >&6 | |
11385 | fi | |
11386 | ||
11387 | CC=$ac_ct_CC | |
11388 | else | |
11389 | CC="$ac_cv_prog_CC" | |
11390 | fi | |
11391 | ||
11392 | fi | |
11393 | if test -z "$CC"; then | |
11394 | # Extract the first word of "cc", so it can be a program name with args. | |
11395 | set dummy cc; ac_word=$2 | |
11396 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11397 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11398 | if test "${ac_cv_prog_CC+set}" = set; then | |
11399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11400 | else | |
11401 | if test -n "$CC"; then | |
11402 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
11403 | else | |
11404 | ac_prog_rejected=no | |
11405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11406 | for as_dir in $PATH | |
11407 | do | |
11408 | IFS=$as_save_IFS | |
11409 | test -z "$as_dir" && as_dir=. | |
11410 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11411 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11412 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
11413 | ac_prog_rejected=yes | |
11414 | continue | |
11415 | fi | |
11416 | ac_cv_prog_CC="cc" | |
11417 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11418 | break 2 | |
11419 | fi | |
11420 | done | |
11421 | done | |
11422 | ||
11423 | if test $ac_prog_rejected = yes; then | |
11424 | # We found a bogon in the path, so make sure we never use it. | |
11425 | set dummy $ac_cv_prog_CC | |
11426 | shift | |
11427 | if test $# != 0; then | |
11428 | # We chose a different compiler from the bogus one. | |
11429 | # However, it has the same basename, so the bogon will be chosen | |
11430 | # first if we set CC to just the basename; use the full file name. | |
11431 | shift | |
11432 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
11433 | fi | |
11434 | fi | |
11435 | fi | |
11436 | fi | |
11437 | CC=$ac_cv_prog_CC | |
11438 | if test -n "$CC"; then | |
11439 | echo "$as_me:$LINENO: result: $CC" >&5 | |
11440 | echo "${ECHO_T}$CC" >&6 | |
11441 | else | |
11442 | echo "$as_me:$LINENO: result: no" >&5 | |
11443 | echo "${ECHO_T}no" >&6 | |
11444 | fi | |
11445 | ||
11446 | fi | |
11447 | if test -z "$CC"; then | |
11448 | if test -n "$ac_tool_prefix"; then | |
11449 | for ac_prog in cl | |
11450 | do | |
11451 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
11452 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
11453 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11454 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11455 | if test "${ac_cv_prog_CC+set}" = set; then | |
11456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11457 | else | |
11458 | if test -n "$CC"; then | |
11459 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
11460 | else | |
11461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11462 | for as_dir in $PATH | |
11463 | do | |
11464 | IFS=$as_save_IFS | |
11465 | test -z "$as_dir" && as_dir=. | |
11466 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11467 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11468 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
11469 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11470 | break 2 | |
11471 | fi | |
11472 | done | |
11473 | done | |
11474 | ||
11475 | fi | |
11476 | fi | |
11477 | CC=$ac_cv_prog_CC | |
11478 | if test -n "$CC"; then | |
11479 | echo "$as_me:$LINENO: result: $CC" >&5 | |
11480 | echo "${ECHO_T}$CC" >&6 | |
11481 | else | |
11482 | echo "$as_me:$LINENO: result: no" >&5 | |
11483 | echo "${ECHO_T}no" >&6 | |
11484 | fi | |
11485 | ||
11486 | test -n "$CC" && break | |
11487 | done | |
11488 | fi | |
11489 | if test -z "$CC"; then | |
11490 | ac_ct_CC=$CC | |
11491 | for ac_prog in cl | |
11492 | do | |
11493 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11494 | set dummy $ac_prog; ac_word=$2 | |
11495 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11496 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11497 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
11498 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11499 | else | |
11500 | if test -n "$ac_ct_CC"; then | |
11501 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
11502 | else | |
11503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11504 | for as_dir in $PATH | |
11505 | do | |
11506 | IFS=$as_save_IFS | |
11507 | test -z "$as_dir" && as_dir=. | |
11508 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11509 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11510 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
11511 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11512 | break 2 | |
11513 | fi | |
11514 | done | |
11515 | done | |
11516 | ||
11517 | fi | |
11518 | fi | |
11519 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
11520 | if test -n "$ac_ct_CC"; then | |
11521 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
11522 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
11523 | else | |
11524 | echo "$as_me:$LINENO: result: no" >&5 | |
11525 | echo "${ECHO_T}no" >&6 | |
11526 | fi | |
11527 | ||
11528 | test -n "$ac_ct_CC" && break | |
11529 | done | |
11530 | ||
11531 | CC=$ac_ct_CC | |
11532 | fi | |
11533 | ||
11534 | fi | |
11535 | ||
11536 | ||
11537 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
11538 | See \`config.log' for more details." >&5 | |
11539 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
11540 | See \`config.log' for more details." >&2;} | |
11541 | { (exit 1); exit 1; }; } | |
11542 | ||
11543 | # Provide some information about the compiler. | |
11544 | echo "$as_me:$LINENO:" \ | |
11545 | "checking for C compiler version" >&5 | |
11546 | ac_compiler=`set X $ac_compile; echo $2` | |
11547 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11548 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11549 | ac_status=$? | |
11550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11551 | (exit $ac_status); } | |
11552 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11553 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11554 | ac_status=$? | |
11555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11556 | (exit $ac_status); } | |
11557 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11558 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11559 | ac_status=$? | |
11560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11561 | (exit $ac_status); } | |
11562 | ||
11563 | cat >conftest.$ac_ext <<_ACEOF | |
11564 | /* confdefs.h. */ | |
11565 | _ACEOF | |
11566 | cat confdefs.h >>conftest.$ac_ext | |
11567 | cat >>conftest.$ac_ext <<_ACEOF | |
11568 | /* end confdefs.h. */ | |
11569 | ||
11570 | int | |
11571 | main () | |
11572 | { | |
11573 | ||
11574 | ; | |
11575 | return 0; | |
11576 | } | |
11577 | _ACEOF | |
11578 | ac_clean_files_save=$ac_clean_files | |
11579 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
11580 | # Try to create an executable without -o first, disregard a.out. | |
11581 | # It will help us diagnose broken compilers, and finding out an intuition | |
11582 | # of exeext. | |
ac1cb8d3 VS |
11583 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
11584 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
a848cd7e SC |
11585 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
11586 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
11587 | (eval $ac_link_default) 2>&5 | |
11588 | ac_status=$? | |
11589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11590 | (exit $ac_status); }; then | |
11591 | # Find the output, starting from the most likely. This scheme is | |
11592 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
11593 | # resort. | |
11594 | ||
11595 | # Be careful to initialize this variable, since it used to be cached. | |
11596 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
11597 | ac_cv_exeext= | |
11598 | # b.out is created by i960 compilers. | |
11599 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
11600 | do | |
11601 | test -f "$ac_file" || continue | |
11602 | case $ac_file in | |
11603 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
ac1cb8d3 | 11604 | ;; |
a848cd7e | 11605 | conftest.$ac_ext ) |
ac1cb8d3 VS |
11606 | # This is the source file. |
11607 | ;; | |
a848cd7e | 11608 | [ab].out ) |
ac1cb8d3 VS |
11609 | # We found the default executable, but exeext='' is most |
11610 | # certainly right. | |
11611 | break;; | |
a848cd7e | 11612 | *.* ) |
ac1cb8d3 VS |
11613 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
11614 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
11615 | # but it would be cool to find out if it's true. Does anybody | |
11616 | # maintain Libtool? --akim. | |
11617 | export ac_cv_exeext | |
11618 | break;; | |
a848cd7e | 11619 | * ) |
ac1cb8d3 | 11620 | break;; |
a848cd7e SC |
11621 | esac |
11622 | done | |
11623 | else | |
11624 | echo "$as_me: failed program was:" >&5 | |
11625 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11626 | ||
11627 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
11628 | See \`config.log' for more details." >&5 | |
11629 | echo "$as_me: error: C compiler cannot create executables | |
11630 | See \`config.log' for more details." >&2;} | |
11631 | { (exit 77); exit 77; }; } | |
11632 | fi | |
11633 | ||
11634 | ac_exeext=$ac_cv_exeext | |
11635 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
11636 | echo "${ECHO_T}$ac_file" >&6 | |
11637 | ||
11638 | # Check the compiler produces executables we can run. If not, either | |
11639 | # the compiler is broken, or we cross compile. | |
11640 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
11641 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
11642 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
11643 | # If not cross compiling, check that we can run a simple program. | |
11644 | if test "$cross_compiling" != yes; then | |
11645 | if { ac_try='./$ac_file' | |
11646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11647 | (eval $ac_try) 2>&5 | |
11648 | ac_status=$? | |
11649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11650 | (exit $ac_status); }; }; then | |
11651 | cross_compiling=no | |
11652 | else | |
11653 | if test "$cross_compiling" = maybe; then | |
11654 | cross_compiling=yes | |
11655 | else | |
11656 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
11657 | If you meant to cross compile, use \`--host'. | |
11658 | See \`config.log' for more details." >&5 | |
11659 | echo "$as_me: error: cannot run C compiled programs. | |
11660 | If you meant to cross compile, use \`--host'. | |
11661 | See \`config.log' for more details." >&2;} | |
11662 | { (exit 1); exit 1; }; } | |
11663 | fi | |
11664 | fi | |
11665 | fi | |
11666 | echo "$as_me:$LINENO: result: yes" >&5 | |
11667 | echo "${ECHO_T}yes" >&6 | |
11668 | ||
11669 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
11670 | ac_clean_files=$ac_clean_files_save | |
11671 | # Check the compiler produces executables we can run. If not, either | |
11672 | # the compiler is broken, or we cross compile. | |
11673 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
11674 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
11675 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
11676 | echo "${ECHO_T}$cross_compiling" >&6 | |
11677 | ||
11678 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
11679 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
11680 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11681 | (eval $ac_link) 2>&5 | |
11682 | ac_status=$? | |
11683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11684 | (exit $ac_status); }; then | |
11685 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
11686 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
11687 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
11688 | # `rm'. | |
11689 | for ac_file in conftest.exe conftest conftest.*; do | |
11690 | test -f "$ac_file" || continue | |
11691 | case $ac_file in | |
11692 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
11693 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
ac1cb8d3 VS |
11694 | export ac_cv_exeext |
11695 | break;; | |
a848cd7e SC |
11696 | * ) break;; |
11697 | esac | |
11698 | done | |
11699 | else | |
11700 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
11701 | See \`config.log' for more details." >&5 | |
11702 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
11703 | See \`config.log' for more details." >&2;} | |
11704 | { (exit 1); exit 1; }; } | |
11705 | fi | |
11706 | ||
11707 | rm -f conftest$ac_cv_exeext | |
11708 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
11709 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
11710 | ||
11711 | rm -f conftest.$ac_ext | |
11712 | EXEEXT=$ac_cv_exeext | |
11713 | ac_exeext=$EXEEXT | |
11714 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
11715 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
11716 | if test "${ac_cv_objext+set}" = set; then | |
11717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11718 | else | |
11719 | cat >conftest.$ac_ext <<_ACEOF | |
11720 | /* confdefs.h. */ | |
11721 | _ACEOF | |
11722 | cat confdefs.h >>conftest.$ac_ext | |
11723 | cat >>conftest.$ac_ext <<_ACEOF | |
11724 | /* end confdefs.h. */ | |
11725 | ||
11726 | int | |
11727 | main () | |
11728 | { | |
11729 | ||
11730 | ; | |
11731 | return 0; | |
11732 | } | |
11733 | _ACEOF | |
11734 | rm -f conftest.o conftest.obj | |
11735 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11736 | (eval $ac_compile) 2>&5 | |
11737 | ac_status=$? | |
11738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11739 | (exit $ac_status); }; then | |
11740 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
11741 | case $ac_file in | |
11742 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
11743 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
11744 | break;; | |
11745 | esac | |
11746 | done | |
11747 | else | |
11748 | echo "$as_me: failed program was:" >&5 | |
11749 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11750 | ||
11751 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
11752 | See \`config.log' for more details." >&5 | |
11753 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
11754 | See \`config.log' for more details." >&2;} | |
11755 | { (exit 1); exit 1; }; } | |
11756 | fi | |
11757 | ||
11758 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
11759 | fi | |
11760 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
11761 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
11762 | OBJEXT=$ac_cv_objext | |
11763 | ac_objext=$OBJEXT | |
11764 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
11765 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
11766 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
11767 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11768 | else | |
11769 | cat >conftest.$ac_ext <<_ACEOF | |
11770 | /* confdefs.h. */ | |
11771 | _ACEOF | |
11772 | cat confdefs.h >>conftest.$ac_ext | |
11773 | cat >>conftest.$ac_ext <<_ACEOF | |
11774 | /* end confdefs.h. */ | |
11775 | ||
11776 | int | |
11777 | main () | |
11778 | { | |
11779 | #ifndef __GNUC__ | |
11780 | choke me | |
11781 | #endif | |
11782 | ||
11783 | ; | |
11784 | return 0; | |
11785 | } | |
11786 | _ACEOF | |
11787 | rm -f conftest.$ac_objext | |
11788 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11789 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11790 | ac_status=$? |
ac1cb8d3 VS |
11791 | grep -v '^ *+' conftest.er1 >conftest.err |
11792 | rm -f conftest.er1 | |
11793 | cat conftest.err >&5 | |
a848cd7e SC |
11794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11795 | (exit $ac_status); } && | |
5d7b7554 | 11796 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11798 | (eval $ac_try) 2>&5 | |
11799 | ac_status=$? | |
11800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11801 | (exit $ac_status); }; } && | |
11802 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11804 | (eval $ac_try) 2>&5 | |
11805 | ac_status=$? | |
11806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11807 | (exit $ac_status); }; }; then | |
11808 | ac_compiler_gnu=yes | |
11809 | else | |
11810 | echo "$as_me: failed program was:" >&5 | |
11811 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11812 | ||
11813 | ac_compiler_gnu=no | |
11814 | fi | |
ac1cb8d3 | 11815 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11816 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
11817 | ||
11818 | fi | |
11819 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
11820 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
11821 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
11822 | ac_test_CFLAGS=${CFLAGS+set} | |
11823 | ac_save_CFLAGS=$CFLAGS | |
8aeeb05c | 11824 | CFLAGS="-g" |
a848cd7e SC |
11825 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
11826 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
11827 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
11828 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11829 | else | |
11830 | cat >conftest.$ac_ext <<_ACEOF | |
11831 | /* confdefs.h. */ | |
11832 | _ACEOF | |
11833 | cat confdefs.h >>conftest.$ac_ext | |
11834 | cat >>conftest.$ac_ext <<_ACEOF | |
11835 | /* end confdefs.h. */ | |
11836 | ||
11837 | int | |
11838 | main () | |
11839 | { | |
11840 | ||
11841 | ; | |
11842 | return 0; | |
11843 | } | |
11844 | _ACEOF | |
11845 | rm -f conftest.$ac_objext | |
11846 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11847 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11848 | ac_status=$? |
ac1cb8d3 VS |
11849 | grep -v '^ *+' conftest.er1 >conftest.err |
11850 | rm -f conftest.er1 | |
11851 | cat conftest.err >&5 | |
a848cd7e SC |
11852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11853 | (exit $ac_status); } && | |
5d7b7554 | 11854 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11856 | (eval $ac_try) 2>&5 | |
11857 | ac_status=$? | |
11858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11859 | (exit $ac_status); }; } && | |
11860 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11862 | (eval $ac_try) 2>&5 | |
11863 | ac_status=$? | |
11864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11865 | (exit $ac_status); }; }; then | |
11866 | ac_cv_prog_cc_g=yes | |
11867 | else | |
11868 | echo "$as_me: failed program was:" >&5 | |
11869 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11870 | ||
11871 | ac_cv_prog_cc_g=no | |
11872 | fi | |
ac1cb8d3 | 11873 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11874 | fi |
11875 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
11876 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
11877 | if test "$ac_test_CFLAGS" = set; then | |
11878 | CFLAGS=$ac_save_CFLAGS | |
11879 | elif test $ac_cv_prog_cc_g = yes; then | |
11880 | if test "$GCC" = yes; then | |
11881 | CFLAGS="-g -O2" | |
11882 | else | |
11883 | CFLAGS="-g" | |
11884 | fi | |
11885 | else | |
11886 | if test "$GCC" = yes; then | |
11887 | CFLAGS="-O2" | |
11888 | else | |
11889 | CFLAGS= | |
11890 | fi | |
11891 | fi | |
11892 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
11893 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
11894 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
11895 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11896 | else | |
11897 | ac_cv_prog_cc_stdc=no | |
11898 | ac_save_CC=$CC | |
11899 | cat >conftest.$ac_ext <<_ACEOF | |
11900 | /* confdefs.h. */ | |
11901 | _ACEOF | |
11902 | cat confdefs.h >>conftest.$ac_ext | |
11903 | cat >>conftest.$ac_ext <<_ACEOF | |
11904 | /* end confdefs.h. */ | |
11905 | #include <stdarg.h> | |
11906 | #include <stdio.h> | |
11907 | #include <sys/types.h> | |
11908 | #include <sys/stat.h> | |
11909 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
11910 | struct buf { int x; }; | |
11911 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
11912 | static char *e (p, i) | |
11913 | char **p; | |
11914 | int i; | |
11915 | { | |
11916 | return p[i]; | |
11917 | } | |
11918 | static char *f (char * (*g) (char **, int), char **p, ...) | |
11919 | { | |
11920 | char *s; | |
11921 | va_list v; | |
11922 | va_start (v,p); | |
11923 | s = g (p, va_arg (v,int)); | |
11924 | va_end (v); | |
11925 | return s; | |
11926 | } | |
ac1cb8d3 VS |
11927 | |
11928 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
11929 | function prototypes and stuff, but not '\xHH' hex character constants. | |
11930 | These don't provoke an error unfortunately, instead are silently treated | |
11931 | as 'x'. The following induces an error, until -std1 is added to get | |
11932 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
11933 | array size at least. It's necessary to write '\x00'==0 to get something | |
11934 | that's true only with -std1. */ | |
11935 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
11936 | ||
a848cd7e SC |
11937 | int test (int i, double x); |
11938 | struct s1 {int (*f) (int a);}; | |
11939 | struct s2 {int (*f) (double a);}; | |
11940 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
11941 | int argc; | |
11942 | char **argv; | |
11943 | int | |
11944 | main () | |
11945 | { | |
11946 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
11947 | ; | |
11948 | return 0; | |
11949 | } | |
11950 | _ACEOF | |
11951 | # Don't try gcc -ansi; that turns off useful extensions and | |
11952 | # breaks some systems' header files. | |
11953 | # AIX -qlanglvl=ansi | |
11954 | # Ultrix and OSF/1 -std1 | |
11955 | # HP-UX 10.20 and later -Ae | |
11956 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
11957 | # SVR4 -Xc -D__EXTENSIONS__ | |
11958 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
11959 | do | |
11960 | CC="$ac_save_CC $ac_arg" | |
11961 | rm -f conftest.$ac_objext | |
11962 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11963 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11964 | ac_status=$? |
ac1cb8d3 VS |
11965 | grep -v '^ *+' conftest.er1 >conftest.err |
11966 | rm -f conftest.er1 | |
11967 | cat conftest.err >&5 | |
a848cd7e SC |
11968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11969 | (exit $ac_status); } && | |
5d7b7554 | 11970 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
11971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11972 | (eval $ac_try) 2>&5 | |
11973 | ac_status=$? | |
11974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11975 | (exit $ac_status); }; } && | |
11976 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11978 | (eval $ac_try) 2>&5 | |
11979 | ac_status=$? | |
11980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11981 | (exit $ac_status); }; }; then | |
11982 | ac_cv_prog_cc_stdc=$ac_arg | |
11983 | break | |
11984 | else | |
11985 | echo "$as_me: failed program was:" >&5 | |
11986 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11987 | ||
11988 | fi | |
ac1cb8d3 | 11989 | rm -f conftest.err conftest.$ac_objext |
a848cd7e SC |
11990 | done |
11991 | rm -f conftest.$ac_ext conftest.$ac_objext | |
11992 | CC=$ac_save_CC | |
11993 | ||
11994 | fi | |
11995 | ||
11996 | case "x$ac_cv_prog_cc_stdc" in | |
11997 | x|xno) | |
11998 | echo "$as_me:$LINENO: result: none needed" >&5 | |
11999 | echo "${ECHO_T}none needed" >&6 ;; | |
12000 | *) | |
12001 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
12002 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
12003 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
12004 | esac | |
12005 | ||
12006 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
12007 | # in C++ we need to declare it. In case someone uses the same compiler | |
12008 | # for both compiling C and C++ we need to have the C++ compiler decide | |
12009 | # the declaration of exit, since it's the most demanding environment. | |
12010 | cat >conftest.$ac_ext <<_ACEOF | |
12011 | #ifndef __cplusplus | |
12012 | choke me | |
12013 | #endif | |
12014 | _ACEOF | |
12015 | rm -f conftest.$ac_objext | |
12016 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12017 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12018 | ac_status=$? |
ac1cb8d3 VS |
12019 | grep -v '^ *+' conftest.er1 >conftest.err |
12020 | rm -f conftest.er1 | |
12021 | cat conftest.err >&5 | |
a848cd7e SC |
12022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12023 | (exit $ac_status); } && | |
5d7b7554 | 12024 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12026 | (eval $ac_try) 2>&5 | |
12027 | ac_status=$? | |
12028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12029 | (exit $ac_status); }; } && | |
12030 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12032 | (eval $ac_try) 2>&5 | |
12033 | ac_status=$? | |
12034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12035 | (exit $ac_status); }; }; then | |
12036 | for ac_declaration in \ | |
ac1cb8d3 | 12037 | '' \ |
a848cd7e SC |
12038 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
12039 | 'extern "C" void std::exit (int); using std::exit;' \ | |
12040 | 'extern "C" void exit (int) throw ();' \ | |
12041 | 'extern "C" void exit (int);' \ | |
12042 | 'void exit (int);' | |
12043 | do | |
12044 | cat >conftest.$ac_ext <<_ACEOF | |
12045 | /* confdefs.h. */ | |
12046 | _ACEOF | |
12047 | cat confdefs.h >>conftest.$ac_ext | |
12048 | cat >>conftest.$ac_ext <<_ACEOF | |
12049 | /* end confdefs.h. */ | |
de59c161 | 12050 | $ac_declaration |
ac1cb8d3 | 12051 | #include <stdlib.h> |
a848cd7e SC |
12052 | int |
12053 | main () | |
12054 | { | |
12055 | exit (42); | |
12056 | ; | |
12057 | return 0; | |
12058 | } | |
12059 | _ACEOF | |
12060 | rm -f conftest.$ac_objext | |
12061 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12062 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12063 | ac_status=$? |
ac1cb8d3 VS |
12064 | grep -v '^ *+' conftest.er1 >conftest.err |
12065 | rm -f conftest.er1 | |
12066 | cat conftest.err >&5 | |
a848cd7e SC |
12067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12068 | (exit $ac_status); } && | |
5d7b7554 | 12069 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12071 | (eval $ac_try) 2>&5 | |
12072 | ac_status=$? | |
12073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12074 | (exit $ac_status); }; } && | |
12075 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12077 | (eval $ac_try) 2>&5 | |
12078 | ac_status=$? | |
12079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12080 | (exit $ac_status); }; }; then | |
12081 | : | |
12082 | else | |
12083 | echo "$as_me: failed program was:" >&5 | |
12084 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12085 | ||
12086 | continue | |
12087 | fi | |
ac1cb8d3 | 12088 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12089 | cat >conftest.$ac_ext <<_ACEOF |
12090 | /* confdefs.h. */ | |
12091 | _ACEOF | |
12092 | cat confdefs.h >>conftest.$ac_ext | |
12093 | cat >>conftest.$ac_ext <<_ACEOF | |
12094 | /* end confdefs.h. */ | |
12095 | $ac_declaration | |
12096 | int | |
12097 | main () | |
12098 | { | |
12099 | exit (42); | |
12100 | ; | |
12101 | return 0; | |
12102 | } | |
12103 | _ACEOF | |
12104 | rm -f conftest.$ac_objext | |
12105 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12106 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12107 | ac_status=$? |
ac1cb8d3 VS |
12108 | grep -v '^ *+' conftest.er1 >conftest.err |
12109 | rm -f conftest.er1 | |
12110 | cat conftest.err >&5 | |
a848cd7e SC |
12111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12112 | (exit $ac_status); } && | |
5d7b7554 | 12113 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
12114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12115 | (eval $ac_try) 2>&5 | |
12116 | ac_status=$? | |
12117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12118 | (exit $ac_status); }; } && | |
12119 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12121 | (eval $ac_try) 2>&5 | |
12122 | ac_status=$? | |
12123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12124 | (exit $ac_status); }; }; then | |
12125 | break | |
12126 | else | |
12127 | echo "$as_me: failed program was:" >&5 | |
12128 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12129 | ||
12130 | fi | |
ac1cb8d3 | 12131 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12132 | done |
12133 | rm -f conftest* | |
12134 | if test -n "$ac_declaration"; then | |
12135 | echo '#ifdef __cplusplus' >>confdefs.h | |
12136 | echo $ac_declaration >>confdefs.h | |
12137 | echo '#endif' >>confdefs.h | |
12138 | fi | |
12139 | ||
12140 | else | |
12141 | echo "$as_me: failed program was:" >&5 | |
12142 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12143 | ||
12144 | fi | |
ac1cb8d3 | 12145 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12146 | ac_ext=c |
12147 | ac_cpp='$CPP $CPPFLAGS' | |
12148 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12149 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12150 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12151 | ||
ab0ad5f1 VZ |
12152 | |
12153 | ||
12154 | ac_ext=c | |
12155 | ac_cpp='$CPP $CPPFLAGS' | |
12156 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12157 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12158 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12159 | ||
12160 | echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5 | |
12161 | echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6 | |
12162 | if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then | |
12163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12164 | else | |
12165 | cat >conftest.$ac_ext <<_ACEOF | |
12166 | /* confdefs.h. */ | |
12167 | _ACEOF | |
12168 | cat confdefs.h >>conftest.$ac_ext | |
12169 | cat >>conftest.$ac_ext <<_ACEOF | |
12170 | /* end confdefs.h. */ | |
12171 | ||
12172 | int | |
12173 | main () | |
12174 | { | |
12175 | ||
12176 | #ifndef __INTEL_COMPILER | |
12177 | choke me | |
12178 | #endif | |
12179 | ||
12180 | ; | |
12181 | return 0; | |
12182 | } | |
12183 | _ACEOF | |
12184 | rm -f conftest.$ac_objext | |
12185 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12186 | (eval $ac_compile) 2>conftest.er1 | |
12187 | ac_status=$? | |
12188 | grep -v '^ *+' conftest.er1 >conftest.err | |
12189 | rm -f conftest.er1 | |
12190 | cat conftest.err >&5 | |
12191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12192 | (exit $ac_status); } && | |
5d7b7554 | 12193 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ab0ad5f1 VZ |
12194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12195 | (eval $ac_try) 2>&5 | |
12196 | ac_status=$? | |
12197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12198 | (exit $ac_status); }; } && | |
12199 | { ac_try='test -s conftest.$ac_objext' | |
12200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12201 | (eval $ac_try) 2>&5 | |
12202 | ac_status=$? | |
12203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12204 | (exit $ac_status); }; }; then | |
12205 | bakefile_cv_c_compiler___INTEL_COMPILER=yes | |
12206 | else | |
12207 | echo "$as_me: failed program was:" >&5 | |
12208 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12209 | ||
12210 | bakefile_cv_c_compiler___INTEL_COMPILER=no | |
12211 | ||
12212 | fi | |
12213 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12214 | ||
12215 | ||
12216 | fi | |
12217 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5 | |
12218 | echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6 | |
12219 | ac_ext=c | |
12220 | ac_cpp='$CPP $CPPFLAGS' | |
12221 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12222 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12223 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12224 | ||
12225 | if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then | |
12226 | :; INTELCC=yes | |
12227 | else | |
12228 | :; | |
12229 | fi | |
12230 | ||
12231 | ||
12232 | if test "x$GCC" != "xyes"; then | |
3006edc0 VZ |
12233 | if test "xCC" = "xC"; then |
12234 | echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5 | |
480ccd21 | 12235 | echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6 |
0093c2fc | 12236 | if test "${bakefile_cv_c_exto+set}" = set; then |
480ccd21 DE |
12237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12238 | else | |
12239 | cat >conftest.$ac_ext <<_ACEOF | |
12240 | /* confdefs.h. */ | |
12241 | _ACEOF | |
12242 | cat confdefs.h >>conftest.$ac_ext | |
12243 | cat >>conftest.$ac_ext <<_ACEOF | |
12244 | /* end confdefs.h. */ | |
12245 | ||
12246 | int | |
12247 | main () | |
12248 | { | |
12249 | ||
12250 | ; | |
12251 | return 0; | |
12252 | } | |
12253 | _ACEOF | |
12254 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
12255 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12256 | (eval $ac_compile) 2>&5 | |
12257 | ac_status=$? | |
12258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12259 | (exit $ac_status); }; then | |
12260 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
12261 | case $ac_file in | |
12262 | conftest.$ac_ext.o) | |
0093c2fc | 12263 | bakefile_cv_c_exto="-ext o" |
480ccd21 DE |
12264 | ;; |
12265 | *) | |
12266 | ;; | |
12267 | esac | |
12268 | done | |
12269 | else | |
12270 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
12271 | See \`config.log' for more details." >&5 | |
12272 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
12273 | See \`config.log' for more details." >&2;} | |
12274 | { (exit 1); exit 1; }; } | |
12275 | ||
12276 | fi | |
12277 | ||
12278 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
12279 | ||
12280 | fi | |
0093c2fc VZ |
12281 | echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5 |
12282 | echo "${ECHO_T}$bakefile_cv_c_exto" >&6 | |
12283 | if test "x$bakefile_cv_c_exto" '!=' "x"; then | |
480ccd21 | 12284 | if test "c" = "c"; then |
0093c2fc | 12285 | CFLAGS="$bakefile_cv_c_exto $CFLAGS" |
480ccd21 DE |
12286 | fi |
12287 | if test "c" = "cxx"; then | |
0093c2fc | 12288 | CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS" |
480ccd21 DE |
12289 | fi |
12290 | fi | |
12291 | ||
0093c2fc | 12292 | if test "x$bakefile_cv_c_exto" '!=' "x"; then |
3006edc0 VZ |
12293 | unset ac_cv_prog_cc_g |
12294 | ac_test_CFLAGS=${CFLAGS+set} | |
480ccd21 | 12295 | ac_save_CFLAGS=$CFLAGS |
8aeeb05c | 12296 | CFLAGS="-g" |
480ccd21 DE |
12297 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
12298 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
12299 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
12300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12301 | else | |
12302 | cat >conftest.$ac_ext <<_ACEOF | |
12303 | /* confdefs.h. */ | |
12304 | _ACEOF | |
12305 | cat confdefs.h >>conftest.$ac_ext | |
12306 | cat >>conftest.$ac_ext <<_ACEOF | |
12307 | /* end confdefs.h. */ | |
12308 | ||
12309 | int | |
12310 | main () | |
12311 | { | |
12312 | ||
12313 | ; | |
12314 | return 0; | |
12315 | } | |
12316 | _ACEOF | |
12317 | rm -f conftest.$ac_objext | |
12318 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12319 | (eval $ac_compile) 2>conftest.er1 | |
12320 | ac_status=$? | |
12321 | grep -v '^ *+' conftest.er1 >conftest.err | |
12322 | rm -f conftest.er1 | |
12323 | cat conftest.err >&5 | |
12324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12325 | (exit $ac_status); } && | |
5d7b7554 | 12326 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
480ccd21 DE |
12327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12328 | (eval $ac_try) 2>&5 | |
12329 | ac_status=$? | |
12330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12331 | (exit $ac_status); }; } && | |
12332 | { ac_try='test -s conftest.$ac_objext' | |
12333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12334 | (eval $ac_try) 2>&5 | |
12335 | ac_status=$? | |
12336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12337 | (exit $ac_status); }; }; then | |
12338 | ac_cv_prog_cc_g=yes | |
12339 | else | |
12340 | echo "$as_me: failed program was:" >&5 | |
12341 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12342 | ||
12343 | ac_cv_prog_cc_g=no | |
12344 | fi | |
12345 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12346 | fi | |
12347 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
12348 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
12349 | if test "$ac_test_CFLAGS" = set; then | |
12350 | CFLAGS=$ac_save_CFLAGS | |
12351 | elif test $ac_cv_prog_cc_g = yes; then | |
12352 | if test "$GCC" = yes; then | |
12353 | CFLAGS="-g -O2" | |
12354 | else | |
12355 | CFLAGS="-g" | |
12356 | fi | |
12357 | else | |
12358 | if test "$GCC" = yes; then | |
12359 | CFLAGS="-O2" | |
12360 | else | |
12361 | CFLAGS= | |
12362 | fi | |
12363 | fi | |
3006edc0 | 12364 | fi |
ab0ad5f1 | 12365 | fi |
3006edc0 VZ |
12366 | |
12367 | case `uname -s` in | |
12368 | AIX*) | |
12369 | ac_ext=c | |
12370 | ac_cpp='$CPP $CPPFLAGS' | |
12371 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12372 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12373 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12374 | ||
12375 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5 | |
12376 | echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6 | |
0093c2fc | 12377 | if test "${bakefile_cv_c_compiler_xlc+set}" = set; then |
3006edc0 VZ |
12378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12379 | else | |
12380 | cat >conftest.$ac_ext <<_ACEOF | |
12381 | /* confdefs.h. */ | |
12382 | _ACEOF | |
12383 | cat confdefs.h >>conftest.$ac_ext | |
12384 | cat >>conftest.$ac_ext <<_ACEOF | |
12385 | /* end confdefs.h. */ | |
12386 | ||
12387 | int | |
12388 | main () | |
12389 | { | |
12390 | #ifndef __xlC__ | |
12391 | choke me | |
12392 | #endif | |
12393 | ||
12394 | ; | |
12395 | return 0; | |
12396 | } | |
12397 | _ACEOF | |
12398 | rm -f conftest.$ac_objext | |
12399 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12400 | (eval $ac_compile) 2>conftest.er1 | |
12401 | ac_status=$? | |
12402 | grep -v '^ *+' conftest.er1 >conftest.err | |
12403 | rm -f conftest.er1 | |
12404 | cat conftest.err >&5 | |
12405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12406 | (exit $ac_status); } && | |
5d7b7554 | 12407 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3006edc0 VZ |
12408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12409 | (eval $ac_try) 2>&5 | |
12410 | ac_status=$? | |
12411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12412 | (exit $ac_status); }; } && | |
12413 | { ac_try='test -s conftest.$ac_objext' | |
12414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12415 | (eval $ac_try) 2>&5 | |
12416 | ac_status=$? | |
12417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12418 | (exit $ac_status); }; }; then | |
0093c2fc | 12419 | bakefile_compiler_xlc=yes |
3006edc0 VZ |
12420 | else |
12421 | echo "$as_me: failed program was:" >&5 | |
12422 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12423 | ||
0093c2fc | 12424 | bakefile_compiler_xlc=no |
3006edc0 VZ |
12425 | fi |
12426 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 12427 | bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc |
3006edc0 VZ |
12428 | |
12429 | fi | |
0093c2fc VZ |
12430 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5 |
12431 | echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6 | |
3006edc0 | 12432 | |
0093c2fc | 12433 | XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes` |
3006edc0 VZ |
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 | ||
12441 | ;; | |
12442 | ||
12443 | Darwin) | |
12444 | ac_ext=c | |
95986553 DE |
12445 | ac_cpp='$CPP $CPPFLAGS' |
12446 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12447 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12448 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12449 | ||
12450 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5 | |
12451 | echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6 | |
12452 | if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then | |
12453 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12454 | else | |
12455 | cat >conftest.$ac_ext <<_ACEOF | |
12456 | /* confdefs.h. */ | |
12457 | _ACEOF | |
12458 | cat confdefs.h >>conftest.$ac_ext | |
12459 | cat >>conftest.$ac_ext <<_ACEOF | |
12460 | /* end confdefs.h. */ | |
12461 | ||
12462 | int | |
12463 | main () | |
12464 | { | |
12465 | #ifndef __MWERKS__ | |
12466 | choke me | |
12467 | #endif | |
12468 | ||
12469 | ; | |
12470 | return 0; | |
12471 | } | |
12472 | _ACEOF | |
12473 | rm -f conftest.$ac_objext | |
12474 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12475 | (eval $ac_compile) 2>conftest.er1 | |
12476 | ac_status=$? | |
12477 | grep -v '^ *+' conftest.er1 >conftest.err | |
12478 | rm -f conftest.er1 | |
12479 | cat conftest.err >&5 | |
12480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12481 | (exit $ac_status); } && | |
5d7b7554 | 12482 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
95986553 DE |
12483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12484 | (eval $ac_try) 2>&5 | |
12485 | ac_status=$? | |
12486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12487 | (exit $ac_status); }; } && | |
12488 | { ac_try='test -s conftest.$ac_objext' | |
12489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12490 | (eval $ac_try) 2>&5 | |
12491 | ac_status=$? | |
12492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12493 | (exit $ac_status); }; }; then | |
12494 | bakefile_compiler_mwerks=yes | |
12495 | else | |
12496 | echo "$as_me: failed program was:" >&5 | |
12497 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12498 | ||
12499 | bakefile_compiler_mwerks=no | |
12500 | fi | |
12501 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12502 | bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks | |
12503 | ||
12504 | fi | |
12505 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5 | |
12506 | echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6 | |
12507 | ||
0e6fa1d9 | 12508 | MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes` |
95986553 DE |
12509 | ac_ext=c |
12510 | ac_cpp='$CPP $CPPFLAGS' | |
12511 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12512 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12513 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12514 | ||
12515 | ||
3006edc0 | 12516 | ac_ext=c |
9273ffba DE |
12517 | ac_cpp='$CPP $CPPFLAGS' |
12518 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12519 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12520 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12521 | ||
12522 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5 | |
12523 | echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6 | |
0093c2fc | 12524 | if test "${bakefile_cv_c_compiler_xlc+set}" = set; then |
9273ffba DE |
12525 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12526 | else | |
12527 | cat >conftest.$ac_ext <<_ACEOF | |
12528 | /* confdefs.h. */ | |
12529 | _ACEOF | |
12530 | cat confdefs.h >>conftest.$ac_ext | |
12531 | cat >>conftest.$ac_ext <<_ACEOF | |
12532 | /* end confdefs.h. */ | |
12533 | ||
12534 | int | |
12535 | main () | |
12536 | { | |
12537 | #ifndef __xlC__ | |
12538 | choke me | |
12539 | #endif | |
12540 | ||
12541 | ; | |
12542 | return 0; | |
12543 | } | |
12544 | _ACEOF | |
12545 | rm -f conftest.$ac_objext | |
12546 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12547 | (eval $ac_compile) 2>conftest.er1 | |
12548 | ac_status=$? | |
12549 | grep -v '^ *+' conftest.er1 >conftest.err | |
12550 | rm -f conftest.er1 | |
12551 | cat conftest.err >&5 | |
12552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12553 | (exit $ac_status); } && | |
5d7b7554 | 12554 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9273ffba DE |
12555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12556 | (eval $ac_try) 2>&5 | |
12557 | ac_status=$? | |
12558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12559 | (exit $ac_status); }; } && | |
12560 | { ac_try='test -s conftest.$ac_objext' | |
12561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12562 | (eval $ac_try) 2>&5 | |
12563 | ac_status=$? | |
12564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12565 | (exit $ac_status); }; }; then | |
0093c2fc | 12566 | bakefile_compiler_xlc=yes |
9273ffba DE |
12567 | else |
12568 | echo "$as_me: failed program was:" >&5 | |
12569 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12570 | ||
0093c2fc | 12571 | bakefile_compiler_xlc=no |
9273ffba DE |
12572 | fi |
12573 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 12574 | bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc |
9273ffba DE |
12575 | |
12576 | fi | |
0093c2fc VZ |
12577 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5 |
12578 | echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6 | |
9273ffba | 12579 | |
0093c2fc | 12580 | XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes` |
9273ffba DE |
12581 | ac_ext=c |
12582 | ac_cpp='$CPP $CPPFLAGS' | |
12583 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12584 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12585 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12586 | ||
12587 | ||
3006edc0 VZ |
12588 | ;; |
12589 | ||
12590 | IRIX*) | |
a848cd7e | 12591 | |
6dcfc289 | 12592 | |
0ad5d837 VZ |
12593 | ac_ext=c |
12594 | ac_cpp='$CPP $CPPFLAGS' | |
12595 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12596 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12597 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12598 | ||
12599 | echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5 | |
12600 | echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6 | |
12601 | if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then | |
12602 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12603 | else | |
12604 | cat >conftest.$ac_ext <<_ACEOF | |
12605 | /* confdefs.h. */ | |
12606 | _ACEOF | |
12607 | cat confdefs.h >>conftest.$ac_ext | |
12608 | cat >>conftest.$ac_ext <<_ACEOF | |
12609 | /* end confdefs.h. */ | |
12610 | ||
12611 | int | |
12612 | main () | |
12613 | { | |
12614 | ||
12615 | #ifndef _SGI_COMPILER_VERSION | |
12616 | choke me | |
12617 | #endif | |
12618 | ||
12619 | ; | |
12620 | return 0; | |
12621 | } | |
12622 | _ACEOF | |
12623 | rm -f conftest.$ac_objext | |
12624 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12625 | (eval $ac_compile) 2>conftest.er1 | |
12626 | ac_status=$? | |
12627 | grep -v '^ *+' conftest.er1 >conftest.err | |
12628 | rm -f conftest.er1 | |
12629 | cat conftest.err >&5 | |
12630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12631 | (exit $ac_status); } && | |
5d7b7554 | 12632 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
0ad5d837 VZ |
12633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12634 | (eval $ac_try) 2>&5 | |
12635 | ac_status=$? | |
12636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12637 | (exit $ac_status); }; } && | |
12638 | { ac_try='test -s conftest.$ac_objext' | |
12639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12640 | (eval $ac_try) 2>&5 | |
12641 | ac_status=$? | |
12642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12643 | (exit $ac_status); }; }; then | |
12644 | bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes | |
12645 | else | |
12646 | echo "$as_me: failed program was:" >&5 | |
12647 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12648 | ||
12649 | bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no | |
12650 | ||
12651 | fi | |
12652 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12653 | ||
12654 | ||
12655 | fi | |
12656 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5 | |
12657 | echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6 | |
12658 | ac_ext=c | |
12659 | ac_cpp='$CPP $CPPFLAGS' | |
12660 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12661 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12662 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12663 | ||
12664 | if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then | |
12665 | :; SGICC=yes | |
12666 | else | |
12667 | :; | |
12668 | fi | |
12669 | ||
12670 | ||
3006edc0 VZ |
12671 | ;; |
12672 | ||
0093c2fc | 12673 | HP-UX*) |
3006edc0 VZ |
12674 | |
12675 | ||
12676 | ac_ext=c | |
12677 | ac_cpp='$CPP $CPPFLAGS' | |
12678 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12679 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12680 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12681 | ||
0093c2fc VZ |
12682 | echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5 |
12683 | echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6 | |
12684 | if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then | |
3006edc0 VZ |
12685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12686 | else | |
12687 | cat >conftest.$ac_ext <<_ACEOF | |
12688 | /* confdefs.h. */ | |
12689 | _ACEOF | |
12690 | cat confdefs.h >>conftest.$ac_ext | |
12691 | cat >>conftest.$ac_ext <<_ACEOF | |
12692 | /* end confdefs.h. */ | |
12693 | ||
12694 | int | |
12695 | main () | |
12696 | { | |
12697 | ||
0093c2fc | 12698 | #ifndef __HP_cc |
3006edc0 VZ |
12699 | choke me |
12700 | #endif | |
12701 | ||
12702 | ; | |
12703 | return 0; | |
12704 | } | |
12705 | _ACEOF | |
12706 | rm -f conftest.$ac_objext | |
12707 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12708 | (eval $ac_compile) 2>conftest.er1 | |
12709 | ac_status=$? | |
12710 | grep -v '^ *+' conftest.er1 >conftest.err | |
12711 | rm -f conftest.er1 | |
12712 | cat conftest.err >&5 | |
12713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12714 | (exit $ac_status); } && | |
5d7b7554 | 12715 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3006edc0 VZ |
12716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12717 | (eval $ac_try) 2>&5 | |
12718 | ac_status=$? | |
12719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12720 | (exit $ac_status); }; } && | |
12721 | { ac_try='test -s conftest.$ac_objext' | |
12722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12723 | (eval $ac_try) 2>&5 | |
12724 | ac_status=$? | |
12725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12726 | (exit $ac_status); }; }; then | |
0093c2fc | 12727 | bakefile_cv_c_compiler___HP_cc=yes |
3006edc0 VZ |
12728 | else |
12729 | echo "$as_me: failed program was:" >&5 | |
12730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12731 | ||
0093c2fc | 12732 | bakefile_cv_c_compiler___HP_cc=no |
3006edc0 VZ |
12733 | |
12734 | fi | |
12735 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12736 | ||
12737 | ||
12738 | fi | |
0093c2fc VZ |
12739 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5 |
12740 | echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6 | |
3006edc0 VZ |
12741 | ac_ext=c |
12742 | ac_cpp='$CPP $CPPFLAGS' | |
12743 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12744 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12745 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12746 | ||
0093c2fc VZ |
12747 | if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then |
12748 | :; HPCC=yes | |
a1aa0349 VZ |
12749 | else |
12750 | :; | |
12751 | fi | |
12752 | ||
12753 | ||
12754 | ;; | |
12755 | ||
0093c2fc | 12756 | OSF1) |
a1aa0349 VZ |
12757 | |
12758 | ||
12759 | ac_ext=c | |
12760 | ac_cpp='$CPP $CPPFLAGS' | |
12761 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12762 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12763 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12764 | ||
0093c2fc VZ |
12765 | echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5 |
12766 | echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6 | |
12767 | if test "${bakefile_cv_c_compiler___DECC+set}" = set; then | |
a1aa0349 VZ |
12768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12769 | else | |
12770 | cat >conftest.$ac_ext <<_ACEOF | |
12771 | /* confdefs.h. */ | |
12772 | _ACEOF | |
12773 | cat confdefs.h >>conftest.$ac_ext | |
12774 | cat >>conftest.$ac_ext <<_ACEOF | |
12775 | /* end confdefs.h. */ | |
12776 | ||
12777 | int | |
12778 | main () | |
12779 | { | |
12780 | ||
0093c2fc | 12781 | #ifndef __DECC |
a1aa0349 VZ |
12782 | choke me |
12783 | #endif | |
12784 | ||
12785 | ; | |
12786 | return 0; | |
12787 | } | |
12788 | _ACEOF | |
12789 | rm -f conftest.$ac_objext | |
12790 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12791 | (eval $ac_compile) 2>conftest.er1 | |
12792 | ac_status=$? | |
12793 | grep -v '^ *+' conftest.er1 >conftest.err | |
12794 | rm -f conftest.er1 | |
12795 | cat conftest.err >&5 | |
12796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12797 | (exit $ac_status); } && | |
5d7b7554 | 12798 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
a1aa0349 VZ |
12799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12800 | (eval $ac_try) 2>&5 | |
12801 | ac_status=$? | |
12802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12803 | (exit $ac_status); }; } && | |
12804 | { ac_try='test -s conftest.$ac_objext' | |
12805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12806 | (eval $ac_try) 2>&5 | |
12807 | ac_status=$? | |
12808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12809 | (exit $ac_status); }; }; then | |
0093c2fc | 12810 | bakefile_cv_c_compiler___DECC=yes |
a1aa0349 VZ |
12811 | else |
12812 | echo "$as_me: failed program was:" >&5 | |
12813 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12814 | ||
0093c2fc | 12815 | bakefile_cv_c_compiler___DECC=no |
a1aa0349 VZ |
12816 | |
12817 | fi | |
12818 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12819 | ||
12820 | ||
12821 | fi | |
0093c2fc VZ |
12822 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5 |
12823 | echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6 | |
a1aa0349 VZ |
12824 | ac_ext=c |
12825 | ac_cpp='$CPP $CPPFLAGS' | |
12826 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12827 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12828 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12829 | ||
0093c2fc VZ |
12830 | if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then |
12831 | :; COMPAQCC=yes | |
12832 | else | |
12833 | :; | |
12834 | fi | |
12835 | ||
12836 | ||
12837 | ;; | |
12838 | ||
12839 | SunOS) | |
12840 | ||
12841 | ||
12842 | ac_ext=c | |
12843 | ac_cpp='$CPP $CPPFLAGS' | |
12844 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12845 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12846 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12847 | ||
12848 | echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5 | |
12849 | echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6 | |
12850 | if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then | |
12851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12852 | else | |
12853 | cat >conftest.$ac_ext <<_ACEOF | |
12854 | /* confdefs.h. */ | |
12855 | _ACEOF | |
12856 | cat confdefs.h >>conftest.$ac_ext | |
12857 | cat >>conftest.$ac_ext <<_ACEOF | |
12858 | /* end confdefs.h. */ | |
12859 | ||
12860 | int | |
12861 | main () | |
12862 | { | |
12863 | ||
12864 | #ifndef __SUNPRO_C | |
12865 | choke me | |
12866 | #endif | |
12867 | ||
12868 | ; | |
12869 | return 0; | |
12870 | } | |
12871 | _ACEOF | |
12872 | rm -f conftest.$ac_objext | |
12873 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12874 | (eval $ac_compile) 2>conftest.er1 | |
12875 | ac_status=$? | |
12876 | grep -v '^ *+' conftest.er1 >conftest.err | |
12877 | rm -f conftest.er1 | |
12878 | cat conftest.err >&5 | |
12879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12880 | (exit $ac_status); } && | |
5d7b7554 | 12881 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
0093c2fc VZ |
12882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12883 | (eval $ac_try) 2>&5 | |
12884 | ac_status=$? | |
12885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12886 | (exit $ac_status); }; } && | |
12887 | { ac_try='test -s conftest.$ac_objext' | |
12888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12889 | (eval $ac_try) 2>&5 | |
12890 | ac_status=$? | |
12891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12892 | (exit $ac_status); }; }; then | |
12893 | bakefile_cv_c_compiler___SUNPRO_C=yes | |
12894 | else | |
12895 | echo "$as_me: failed program was:" >&5 | |
12896 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12897 | ||
12898 | bakefile_cv_c_compiler___SUNPRO_C=no | |
12899 | ||
12900 | fi | |
12901 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12902 | ||
12903 | ||
12904 | fi | |
12905 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5 | |
12906 | echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6 | |
12907 | ac_ext=c | |
12908 | ac_cpp='$CPP $CPPFLAGS' | |
12909 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12910 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12911 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12912 | ||
12913 | if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then | |
12914 | :; SUNCC=yes | |
3006edc0 VZ |
12915 | else |
12916 | :; | |
12917 | fi | |
12918 | ||
12919 | ||
12920 | ;; | |
12921 | esac | |
ab0ad5f1 | 12922 | fi |
a9e5b1f0 MW |
12923 | |
12924 | ||
3006edc0 | 12925 | |
a848cd7e SC |
12926 | ac_ext=c |
12927 | ac_cpp='$CPP $CPPFLAGS' | |
12928 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12929 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12930 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12931 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
12932 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
12933 | # On Suns, sometimes $CPP names a directory. | |
12934 | if test -n "$CPP" && test -d "$CPP"; then | |
12935 | CPP= | |
12936 | fi | |
12937 | if test -z "$CPP"; then | |
12938 | if test "${ac_cv_prog_CPP+set}" = set; then | |
12939 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12940 | else | |
12941 | # Double quotes because CPP needs to be expanded | |
12942 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
12943 | do | |
12944 | ac_preproc_ok=false | |
12945 | for ac_c_preproc_warn_flag in '' yes | |
12946 | do | |
12947 | # Use a header file that comes with gcc, so configuring glibc | |
12948 | # with a fresh cross-compiler works. | |
12949 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12950 | # <limits.h> exists even on freestanding compilers. | |
12951 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12952 | # not just through cpp. "Syntax error" is here to catch this case. | |
12953 | cat >conftest.$ac_ext <<_ACEOF | |
12954 | /* confdefs.h. */ | |
12955 | _ACEOF | |
12956 | cat confdefs.h >>conftest.$ac_ext | |
12957 | cat >>conftest.$ac_ext <<_ACEOF | |
12958 | /* end confdefs.h. */ | |
12959 | #ifdef __STDC__ | |
12960 | # include <limits.h> | |
12961 | #else | |
12962 | # include <assert.h> | |
12963 | #endif | |
ac1cb8d3 | 12964 | Syntax error |
a848cd7e SC |
12965 | _ACEOF |
12966 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12967 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12968 | ac_status=$? | |
12969 | grep -v '^ *+' conftest.er1 >conftest.err | |
12970 | rm -f conftest.er1 | |
12971 | cat conftest.err >&5 | |
12972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12973 | (exit $ac_status); } >/dev/null; then | |
12974 | if test -s conftest.err; then | |
12975 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12976 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12977 | else |
12978 | ac_cpp_err= | |
12979 | fi | |
12980 | else | |
12981 | ac_cpp_err=yes | |
12982 | fi | |
12983 | if test -z "$ac_cpp_err"; then | |
12984 | : | |
12985 | else | |
12986 | echo "$as_me: failed program was:" >&5 | |
12987 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12988 | ||
12989 | # Broken: fails on valid input. | |
12990 | continue | |
12991 | fi | |
12992 | rm -f conftest.err conftest.$ac_ext | |
12993 | ||
12994 | # OK, works on sane cases. Now check whether non-existent headers | |
12995 | # can be detected and how. | |
12996 | cat >conftest.$ac_ext <<_ACEOF | |
12997 | /* confdefs.h. */ | |
12998 | _ACEOF | |
12999 | cat confdefs.h >>conftest.$ac_ext | |
13000 | cat >>conftest.$ac_ext <<_ACEOF | |
13001 | /* end confdefs.h. */ | |
13002 | #include <ac_nonexistent.h> | |
13003 | _ACEOF | |
13004 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13005 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13006 | ac_status=$? | |
13007 | grep -v '^ *+' conftest.er1 >conftest.err | |
13008 | rm -f conftest.er1 | |
13009 | cat conftest.err >&5 | |
13010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13011 | (exit $ac_status); } >/dev/null; then | |
13012 | if test -s conftest.err; then | |
13013 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13014 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13015 | else |
13016 | ac_cpp_err= | |
13017 | fi | |
13018 | else | |
13019 | ac_cpp_err=yes | |
13020 | fi | |
13021 | if test -z "$ac_cpp_err"; then | |
13022 | # Broken: success on invalid input. | |
13023 | continue | |
13024 | else | |
13025 | echo "$as_me: failed program was:" >&5 | |
13026 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13027 | ||
13028 | # Passes both tests. | |
13029 | ac_preproc_ok=: | |
13030 | break | |
13031 | fi | |
13032 | rm -f conftest.err conftest.$ac_ext | |
13033 | ||
13034 | done | |
13035 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
13036 | rm -f conftest.err conftest.$ac_ext | |
13037 | if $ac_preproc_ok; then | |
13038 | break | |
13039 | fi | |
13040 | ||
13041 | done | |
13042 | ac_cv_prog_CPP=$CPP | |
13043 | ||
13044 | fi | |
13045 | CPP=$ac_cv_prog_CPP | |
13046 | else | |
13047 | ac_cv_prog_CPP=$CPP | |
13048 | fi | |
13049 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
13050 | echo "${ECHO_T}$CPP" >&6 | |
13051 | ac_preproc_ok=false | |
13052 | for ac_c_preproc_warn_flag in '' yes | |
13053 | do | |
13054 | # Use a header file that comes with gcc, so configuring glibc | |
13055 | # with a fresh cross-compiler works. | |
13056 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13057 | # <limits.h> exists even on freestanding compilers. | |
13058 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
13059 | # not just through cpp. "Syntax error" is here to catch this case. | |
13060 | cat >conftest.$ac_ext <<_ACEOF | |
13061 | /* confdefs.h. */ | |
13062 | _ACEOF | |
13063 | cat confdefs.h >>conftest.$ac_ext | |
13064 | cat >>conftest.$ac_ext <<_ACEOF | |
13065 | /* end confdefs.h. */ | |
13066 | #ifdef __STDC__ | |
13067 | # include <limits.h> | |
13068 | #else | |
13069 | # include <assert.h> | |
13070 | #endif | |
ac1cb8d3 | 13071 | Syntax error |
a848cd7e SC |
13072 | _ACEOF |
13073 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13074 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13075 | ac_status=$? | |
13076 | grep -v '^ *+' conftest.er1 >conftest.err | |
13077 | rm -f conftest.er1 | |
13078 | cat conftest.err >&5 | |
13079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13080 | (exit $ac_status); } >/dev/null; then | |
13081 | if test -s conftest.err; then | |
13082 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13083 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13084 | else |
13085 | ac_cpp_err= | |
13086 | fi | |
13087 | else | |
13088 | ac_cpp_err=yes | |
13089 | fi | |
13090 | if test -z "$ac_cpp_err"; then | |
13091 | : | |
13092 | else | |
13093 | echo "$as_me: failed program was:" >&5 | |
13094 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13095 | ||
13096 | # Broken: fails on valid input. | |
13097 | continue | |
13098 | fi | |
13099 | rm -f conftest.err conftest.$ac_ext | |
13100 | ||
13101 | # OK, works on sane cases. Now check whether non-existent headers | |
13102 | # can be detected and how. | |
13103 | cat >conftest.$ac_ext <<_ACEOF | |
13104 | /* confdefs.h. */ | |
13105 | _ACEOF | |
13106 | cat confdefs.h >>conftest.$ac_ext | |
13107 | cat >>conftest.$ac_ext <<_ACEOF | |
13108 | /* end confdefs.h. */ | |
13109 | #include <ac_nonexistent.h> | |
13110 | _ACEOF | |
13111 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13112 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13113 | ac_status=$? | |
13114 | grep -v '^ *+' conftest.er1 >conftest.err | |
13115 | rm -f conftest.er1 | |
13116 | cat conftest.err >&5 | |
13117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13118 | (exit $ac_status); } >/dev/null; then | |
13119 | if test -s conftest.err; then | |
13120 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13121 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13122 | else |
13123 | ac_cpp_err= | |
13124 | fi | |
13125 | else | |
13126 | ac_cpp_err=yes | |
13127 | fi | |
13128 | if test -z "$ac_cpp_err"; then | |
13129 | # Broken: success on invalid input. | |
13130 | continue | |
13131 | else | |
13132 | echo "$as_me: failed program was:" >&5 | |
13133 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13134 | ||
13135 | # Passes both tests. | |
13136 | ac_preproc_ok=: | |
13137 | break | |
13138 | fi | |
13139 | rm -f conftest.err conftest.$ac_ext | |
13140 | ||
13141 | done | |
13142 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
13143 | rm -f conftest.err conftest.$ac_ext | |
13144 | if $ac_preproc_ok; then | |
13145 | : | |
13146 | else | |
13147 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
13148 | See \`config.log' for more details." >&5 | |
13149 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
13150 | See \`config.log' for more details." >&2;} | |
13151 | { (exit 1); exit 1; }; } | |
13152 | fi | |
13153 | ||
13154 | ac_ext=c | |
13155 | ac_cpp='$CPP $CPPFLAGS' | |
13156 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13157 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13158 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13159 | ||
13160 | ||
13161 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
13162 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
13163 | if test "${ac_cv_prog_egrep+set}" = set; then | |
13164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13165 | else | |
13166 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
13167 | then ac_cv_prog_egrep='grep -E' | |
13168 | else ac_cv_prog_egrep='egrep' | |
13169 | fi | |
13170 | fi | |
13171 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
13172 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
13173 | EGREP=$ac_cv_prog_egrep | |
13174 | ||
13175 | ||
13176 | if test $ac_cv_c_compiler_gnu = yes; then | |
13177 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
13178 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
13179 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
13180 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13181 | else | |
13182 | ac_pattern="Autoconf.*'x'" | |
13183 | cat >conftest.$ac_ext <<_ACEOF | |
13184 | /* confdefs.h. */ | |
13185 | _ACEOF | |
13186 | cat confdefs.h >>conftest.$ac_ext | |
13187 | cat >>conftest.$ac_ext <<_ACEOF | |
13188 | /* end confdefs.h. */ | |
13189 | #include <sgtty.h> | |
13190 | Autoconf TIOCGETP | |
13191 | _ACEOF | |
13192 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13193 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
13194 | ac_cv_prog_gcc_traditional=yes | |
13195 | else | |
13196 | ac_cv_prog_gcc_traditional=no | |
13197 | fi | |
13198 | rm -f conftest* | |
13199 | ||
13200 | ||
13201 | if test $ac_cv_prog_gcc_traditional = no; then | |
13202 | cat >conftest.$ac_ext <<_ACEOF | |
13203 | /* confdefs.h. */ | |
13204 | _ACEOF | |
13205 | cat confdefs.h >>conftest.$ac_ext | |
13206 | cat >>conftest.$ac_ext <<_ACEOF | |
13207 | /* end confdefs.h. */ | |
13208 | #include <termio.h> | |
13209 | Autoconf TCGETA | |
13210 | _ACEOF | |
13211 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13212 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
13213 | ac_cv_prog_gcc_traditional=yes | |
13214 | fi | |
13215 | rm -f conftest* | |
13216 | ||
13217 | fi | |
13218 | fi | |
13219 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
13220 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
13221 | if test $ac_cv_prog_gcc_traditional = yes; then | |
13222 | CC="$CC -traditional" | |
13223 | fi | |
13224 | fi | |
13225 | ||
13226 | ||
a848cd7e SC |
13227 | ac_ext=cc |
13228 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13229 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13230 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13231 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13232 | ||
13233 | ||
13234 | CXXFLAGS=${CXXFLAGS:=} | |
6dcfc289 DE |
13235 | |
13236 | ||
3006edc0 | 13237 | |
6dcfc289 | 13238 | ac_ext=cc |
a848cd7e SC |
13239 | ac_cpp='$CXXCPP $CPPFLAGS' |
13240 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13241 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13242 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13243 | if test -n "$ac_tool_prefix"; then | |
13244 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
13245 | do | |
13246 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
13247 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
13248 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13249 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13250 | if test "${ac_cv_prog_CXX+set}" = set; then | |
13251 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13252 | else | |
13253 | if test -n "$CXX"; then | |
13254 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
13255 | else | |
13256 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13257 | for as_dir in $PATH | |
13258 | do | |
13259 | IFS=$as_save_IFS | |
13260 | test -z "$as_dir" && as_dir=. | |
13261 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13262 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13263 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
13264 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13265 | break 2 | |
13266 | fi | |
13267 | done | |
13268 | done | |
13269 | ||
13270 | fi | |
13271 | fi | |
13272 | CXX=$ac_cv_prog_CXX | |
13273 | if test -n "$CXX"; then | |
13274 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
13275 | echo "${ECHO_T}$CXX" >&6 | |
13276 | else | |
13277 | echo "$as_me:$LINENO: result: no" >&5 | |
13278 | echo "${ECHO_T}no" >&6 | |
13279 | fi | |
13280 | ||
13281 | test -n "$CXX" && break | |
13282 | done | |
13283 | fi | |
13284 | if test -z "$CXX"; then | |
13285 | ac_ct_CXX=$CXX | |
13286 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
13287 | do | |
13288 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13289 | set dummy $ac_prog; ac_word=$2 | |
13290 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13291 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13292 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
13293 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13294 | else | |
13295 | if test -n "$ac_ct_CXX"; then | |
13296 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
13297 | else | |
13298 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13299 | for as_dir in $PATH | |
13300 | do | |
13301 | IFS=$as_save_IFS | |
13302 | test -z "$as_dir" && as_dir=. | |
13303 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13304 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13305 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
13306 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13307 | break 2 | |
13308 | fi | |
13309 | done | |
13310 | done | |
13311 | ||
13312 | fi | |
13313 | fi | |
13314 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
13315 | if test -n "$ac_ct_CXX"; then | |
13316 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
13317 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
13318 | else | |
13319 | echo "$as_me:$LINENO: result: no" >&5 | |
13320 | echo "${ECHO_T}no" >&6 | |
13321 | fi | |
13322 | ||
13323 | test -n "$ac_ct_CXX" && break | |
13324 | done | |
13325 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
13326 | ||
13327 | CXX=$ac_ct_CXX | |
13328 | fi | |
13329 | ||
13330 | ||
13331 | # Provide some information about the compiler. | |
13332 | echo "$as_me:$LINENO:" \ | |
13333 | "checking for C++ compiler version" >&5 | |
13334 | ac_compiler=`set X $ac_compile; echo $2` | |
13335 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
13336 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
13337 | ac_status=$? | |
13338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13339 | (exit $ac_status); } | |
13340 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
13341 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
13342 | ac_status=$? | |
13343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13344 | (exit $ac_status); } | |
13345 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
13346 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
13347 | ac_status=$? | |
13348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13349 | (exit $ac_status); } | |
13350 | ||
13351 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
13352 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
13353 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
13354 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13355 | else | |
13356 | cat >conftest.$ac_ext <<_ACEOF | |
13357 | /* confdefs.h. */ | |
13358 | _ACEOF | |
13359 | cat confdefs.h >>conftest.$ac_ext | |
13360 | cat >>conftest.$ac_ext <<_ACEOF | |
13361 | /* end confdefs.h. */ | |
13362 | ||
13363 | int | |
13364 | main () | |
13365 | { | |
13366 | #ifndef __GNUC__ | |
13367 | choke me | |
13368 | #endif | |
13369 | ||
13370 | ; | |
13371 | return 0; | |
13372 | } | |
13373 | _ACEOF | |
13374 | rm -f conftest.$ac_objext | |
13375 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13376 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13377 | ac_status=$? |
ac1cb8d3 VS |
13378 | grep -v '^ *+' conftest.er1 >conftest.err |
13379 | rm -f conftest.er1 | |
13380 | cat conftest.err >&5 | |
a848cd7e SC |
13381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13382 | (exit $ac_status); } && | |
5d7b7554 | 13383 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13385 | (eval $ac_try) 2>&5 | |
13386 | ac_status=$? | |
13387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13388 | (exit $ac_status); }; } && | |
13389 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13391 | (eval $ac_try) 2>&5 | |
13392 | ac_status=$? | |
13393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13394 | (exit $ac_status); }; }; then | |
13395 | ac_compiler_gnu=yes | |
13396 | else | |
13397 | echo "$as_me: failed program was:" >&5 | |
13398 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13399 | ||
13400 | ac_compiler_gnu=no | |
13401 | fi | |
ac1cb8d3 | 13402 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13403 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
13404 | ||
13405 | fi | |
13406 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
13407 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
13408 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
13409 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
13410 | ac_save_CXXFLAGS=$CXXFLAGS | |
13411 | CXXFLAGS="-g" | |
13412 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
13413 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
13414 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
13415 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13416 | else | |
13417 | cat >conftest.$ac_ext <<_ACEOF | |
13418 | /* confdefs.h. */ | |
13419 | _ACEOF | |
13420 | cat confdefs.h >>conftest.$ac_ext | |
13421 | cat >>conftest.$ac_ext <<_ACEOF | |
13422 | /* end confdefs.h. */ | |
13423 | ||
13424 | int | |
13425 | main () | |
13426 | { | |
13427 | ||
13428 | ; | |
13429 | return 0; | |
13430 | } | |
13431 | _ACEOF | |
13432 | rm -f conftest.$ac_objext | |
13433 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13434 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13435 | ac_status=$? |
ac1cb8d3 VS |
13436 | grep -v '^ *+' conftest.er1 >conftest.err |
13437 | rm -f conftest.er1 | |
13438 | cat conftest.err >&5 | |
a848cd7e SC |
13439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13440 | (exit $ac_status); } && | |
5d7b7554 | 13441 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13443 | (eval $ac_try) 2>&5 | |
13444 | ac_status=$? | |
13445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13446 | (exit $ac_status); }; } && | |
13447 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13449 | (eval $ac_try) 2>&5 | |
13450 | ac_status=$? | |
13451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13452 | (exit $ac_status); }; }; then | |
13453 | ac_cv_prog_cxx_g=yes | |
13454 | else | |
13455 | echo "$as_me: failed program was:" >&5 | |
13456 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13457 | ||
13458 | ac_cv_prog_cxx_g=no | |
13459 | fi | |
ac1cb8d3 | 13460 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13461 | fi |
13462 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
13463 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
13464 | if test "$ac_test_CXXFLAGS" = set; then | |
13465 | CXXFLAGS=$ac_save_CXXFLAGS | |
13466 | elif test $ac_cv_prog_cxx_g = yes; then | |
13467 | if test "$GXX" = yes; then | |
8aeeb05c | 13468 | CXXFLAGS="-g -O2" |
a848cd7e | 13469 | else |
8aeeb05c | 13470 | CXXFLAGS="-g" |
a848cd7e SC |
13471 | fi |
13472 | else | |
13473 | if test "$GXX" = yes; then | |
13474 | CXXFLAGS="-O2" | |
13475 | else | |
13476 | CXXFLAGS= | |
13477 | fi | |
13478 | fi | |
13479 | for ac_declaration in \ | |
ac1cb8d3 | 13480 | '' \ |
a848cd7e SC |
13481 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
13482 | 'extern "C" void std::exit (int); using std::exit;' \ | |
13483 | 'extern "C" void exit (int) throw ();' \ | |
13484 | 'extern "C" void exit (int);' \ | |
13485 | 'void exit (int);' | |
13486 | do | |
13487 | cat >conftest.$ac_ext <<_ACEOF | |
13488 | /* confdefs.h. */ | |
13489 | _ACEOF | |
13490 | cat confdefs.h >>conftest.$ac_ext | |
13491 | cat >>conftest.$ac_ext <<_ACEOF | |
13492 | /* end confdefs.h. */ | |
de59c161 | 13493 | $ac_declaration |
ac1cb8d3 | 13494 | #include <stdlib.h> |
a848cd7e SC |
13495 | int |
13496 | main () | |
13497 | { | |
13498 | exit (42); | |
13499 | ; | |
13500 | return 0; | |
13501 | } | |
13502 | _ACEOF | |
13503 | rm -f conftest.$ac_objext | |
13504 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13505 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13506 | ac_status=$? |
ac1cb8d3 VS |
13507 | grep -v '^ *+' conftest.er1 >conftest.err |
13508 | rm -f conftest.er1 | |
13509 | cat conftest.err >&5 | |
a848cd7e SC |
13510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13511 | (exit $ac_status); } && | |
5d7b7554 | 13512 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13514 | (eval $ac_try) 2>&5 | |
13515 | ac_status=$? | |
13516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13517 | (exit $ac_status); }; } && | |
13518 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13520 | (eval $ac_try) 2>&5 | |
13521 | ac_status=$? | |
13522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13523 | (exit $ac_status); }; }; then | |
13524 | : | |
13525 | else | |
13526 | echo "$as_me: failed program was:" >&5 | |
13527 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13528 | ||
13529 | continue | |
13530 | fi | |
ac1cb8d3 | 13531 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13532 | cat >conftest.$ac_ext <<_ACEOF |
13533 | /* confdefs.h. */ | |
13534 | _ACEOF | |
13535 | cat confdefs.h >>conftest.$ac_ext | |
13536 | cat >>conftest.$ac_ext <<_ACEOF | |
13537 | /* end confdefs.h. */ | |
13538 | $ac_declaration | |
13539 | int | |
13540 | main () | |
13541 | { | |
13542 | exit (42); | |
13543 | ; | |
13544 | return 0; | |
13545 | } | |
13546 | _ACEOF | |
13547 | rm -f conftest.$ac_objext | |
13548 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13549 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13550 | ac_status=$? |
ac1cb8d3 VS |
13551 | grep -v '^ *+' conftest.er1 >conftest.err |
13552 | rm -f conftest.er1 | |
13553 | cat conftest.err >&5 | |
a848cd7e SC |
13554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13555 | (exit $ac_status); } && | |
5d7b7554 | 13556 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
13557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13558 | (eval $ac_try) 2>&5 | |
13559 | ac_status=$? | |
13560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13561 | (exit $ac_status); }; } && | |
13562 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13564 | (eval $ac_try) 2>&5 | |
13565 | ac_status=$? | |
13566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13567 | (exit $ac_status); }; }; then | |
13568 | break | |
13569 | else | |
13570 | echo "$as_me: failed program was:" >&5 | |
13571 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13572 | ||
13573 | fi | |
ac1cb8d3 | 13574 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13575 | done |
13576 | rm -f conftest* | |
13577 | if test -n "$ac_declaration"; then | |
13578 | echo '#ifdef __cplusplus' >>confdefs.h | |
13579 | echo $ac_declaration >>confdefs.h | |
13580 | echo '#endif' >>confdefs.h | |
13581 | fi | |
13582 | ||
13583 | ac_ext=cc | |
13584 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13585 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13586 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13587 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13588 | ||
ab0ad5f1 VZ |
13589 | |
13590 | ||
13591 | ac_ext=cc | |
13592 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13593 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13594 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13595 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13596 | ||
13597 | echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5 | |
13598 | echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6 | |
13599 | if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then | |
13600 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13601 | else | |
13602 | cat >conftest.$ac_ext <<_ACEOF | |
13603 | /* confdefs.h. */ | |
13604 | _ACEOF | |
13605 | cat confdefs.h >>conftest.$ac_ext | |
13606 | cat >>conftest.$ac_ext <<_ACEOF | |
13607 | /* end confdefs.h. */ | |
13608 | ||
13609 | int | |
13610 | main () | |
13611 | { | |
13612 | ||
13613 | #ifndef __INTEL_COMPILER | |
13614 | choke me | |
13615 | #endif | |
13616 | ||
13617 | ; | |
13618 | return 0; | |
13619 | } | |
13620 | _ACEOF | |
13621 | rm -f conftest.$ac_objext | |
13622 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13623 | (eval $ac_compile) 2>conftest.er1 | |
13624 | ac_status=$? | |
13625 | grep -v '^ *+' conftest.er1 >conftest.err | |
13626 | rm -f conftest.er1 | |
13627 | cat conftest.err >&5 | |
13628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13629 | (exit $ac_status); } && | |
5d7b7554 | 13630 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ab0ad5f1 VZ |
13631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13632 | (eval $ac_try) 2>&5 | |
13633 | ac_status=$? | |
13634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13635 | (exit $ac_status); }; } && | |
13636 | { ac_try='test -s conftest.$ac_objext' | |
13637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13638 | (eval $ac_try) 2>&5 | |
13639 | ac_status=$? | |
13640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13641 | (exit $ac_status); }; }; then | |
13642 | bakefile_cv_cxx_compiler___INTEL_COMPILER=yes | |
13643 | else | |
13644 | echo "$as_me: failed program was:" >&5 | |
13645 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13646 | ||
13647 | bakefile_cv_cxx_compiler___INTEL_COMPILER=no | |
13648 | ||
13649 | fi | |
13650 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13651 | ||
13652 | ||
13653 | fi | |
13654 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5 | |
13655 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6 | |
13656 | ac_ext=cc | |
13657 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13658 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13659 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13660 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13661 | ||
13662 | if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then | |
13663 | :; INTELCXX=yes | |
13664 | else | |
13665 | :; | |
13666 | fi | |
13667 | ||
13668 | ||
3006edc0 VZ |
13669 | if test "x$GCXX" != "xyes"; then |
13670 | if test "xCXX" = "xC"; then | |
13671 | echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5 | |
480ccd21 | 13672 | echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6 |
0093c2fc | 13673 | if test "${bakefile_cv_cxx_exto+set}" = set; then |
480ccd21 DE |
13674 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13675 | else | |
13676 | cat >conftest.$ac_ext <<_ACEOF | |
13677 | /* confdefs.h. */ | |
13678 | _ACEOF | |
13679 | cat confdefs.h >>conftest.$ac_ext | |
13680 | cat >>conftest.$ac_ext <<_ACEOF | |
13681 | /* end confdefs.h. */ | |
13682 | ||
13683 | int | |
13684 | main () | |
13685 | { | |
13686 | ||
13687 | ; | |
13688 | return 0; | |
13689 | } | |
13690 | _ACEOF | |
13691 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
13692 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13693 | (eval $ac_compile) 2>&5 | |
13694 | ac_status=$? | |
13695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13696 | (exit $ac_status); }; then | |
13697 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
13698 | case $ac_file in | |
13699 | conftest.$ac_ext.o) | |
0093c2fc | 13700 | bakefile_cv_cxx_exto="-ext o" |
480ccd21 DE |
13701 | ;; |
13702 | *) | |
13703 | ;; | |
13704 | esac | |
13705 | done | |
13706 | else | |
13707 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
13708 | See \`config.log' for more details." >&5 | |
13709 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
13710 | See \`config.log' for more details." >&2;} | |
13711 | { (exit 1); exit 1; }; } | |
13712 | ||
13713 | fi | |
13714 | ||
13715 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
13716 | ||
13717 | fi | |
0093c2fc VZ |
13718 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5 |
13719 | echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6 | |
13720 | if test "x$bakefile_cv_cxx_exto" '!=' "x"; then | |
480ccd21 | 13721 | if test "cxx" = "c"; then |
0093c2fc | 13722 | CFLAGS="$bakefile_cv_cxx_exto $CFLAGS" |
480ccd21 DE |
13723 | fi |
13724 | if test "cxx" = "cxx"; then | |
0093c2fc | 13725 | CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS" |
480ccd21 DE |
13726 | fi |
13727 | fi | |
13728 | ||
0093c2fc | 13729 | if test "x$bakefile_cv_c_exto" '!=' "x"; then |
3006edc0 VZ |
13730 | unset ac_cv_prog_cc_g |
13731 | ac_test_CFLAGS=${CFLAGS+set} | |
13732 | ac_save_CFLAGS=$CFLAGS | |
8aeeb05c | 13733 | CFLAGS="-g" |
3006edc0 VZ |
13734 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
13735 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
13736 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
480ccd21 DE |
13737 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13738 | else | |
13739 | cat >conftest.$ac_ext <<_ACEOF | |
13740 | /* confdefs.h. */ | |
13741 | _ACEOF | |
13742 | cat confdefs.h >>conftest.$ac_ext | |
13743 | cat >>conftest.$ac_ext <<_ACEOF | |
13744 | /* end confdefs.h. */ | |
13745 | ||
13746 | int | |
13747 | main () | |
13748 | { | |
13749 | ||
13750 | ; | |
13751 | return 0; | |
13752 | } | |
13753 | _ACEOF | |
13754 | rm -f conftest.$ac_objext | |
13755 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13756 | (eval $ac_compile) 2>conftest.er1 | |
13757 | ac_status=$? | |
13758 | grep -v '^ *+' conftest.er1 >conftest.err | |
13759 | rm -f conftest.er1 | |
13760 | cat conftest.err >&5 | |
13761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13762 | (exit $ac_status); } && | |
5d7b7554 | 13763 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
480ccd21 DE |
13764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13765 | (eval $ac_try) 2>&5 | |
13766 | ac_status=$? | |
13767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13768 | (exit $ac_status); }; } && | |
13769 | { ac_try='test -s conftest.$ac_objext' | |
13770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13771 | (eval $ac_try) 2>&5 | |
13772 | ac_status=$? | |
13773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13774 | (exit $ac_status); }; }; then | |
3006edc0 | 13775 | ac_cv_prog_cc_g=yes |
480ccd21 DE |
13776 | else |
13777 | echo "$as_me: failed program was:" >&5 | |
13778 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13779 | ||
3006edc0 | 13780 | ac_cv_prog_cc_g=no |
480ccd21 DE |
13781 | fi |
13782 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13783 | fi | |
3006edc0 VZ |
13784 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
13785 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
13786 | if test "$ac_test_CFLAGS" = set; then | |
13787 | CFLAGS=$ac_save_CFLAGS | |
13788 | elif test $ac_cv_prog_cc_g = yes; then | |
13789 | if test "$GCC" = yes; then | |
13790 | CFLAGS="-g -O2" | |
480ccd21 | 13791 | else |
3006edc0 | 13792 | CFLAGS="-g" |
480ccd21 DE |
13793 | fi |
13794 | else | |
3006edc0 VZ |
13795 | if test "$GCC" = yes; then |
13796 | CFLAGS="-O2" | |
480ccd21 | 13797 | else |
3006edc0 | 13798 | CFLAGS= |
480ccd21 DE |
13799 | fi |
13800 | fi | |
3006edc0 | 13801 | fi |
ab0ad5f1 | 13802 | fi |
3006edc0 VZ |
13803 | |
13804 | case `uname -s` in | |
13805 | AIX*) | |
13806 | ac_ext=cc | |
13807 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13808 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13809 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13810 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13811 | ||
13812 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5 | |
13813 | echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6 | |
0093c2fc | 13814 | if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then |
3006edc0 VZ |
13815 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13816 | else | |
13817 | cat >conftest.$ac_ext <<_ACEOF | |
13818 | /* confdefs.h. */ | |
13819 | _ACEOF | |
13820 | cat confdefs.h >>conftest.$ac_ext | |
13821 | cat >>conftest.$ac_ext <<_ACEOF | |
13822 | /* end confdefs.h. */ | |
13823 | ||
13824 | int | |
13825 | main () | |
13826 | { | |
13827 | #ifndef __xlC__ | |
13828 | choke me | |
13829 | #endif | |
13830 | ||
13831 | ; | |
13832 | return 0; | |
13833 | } | |
13834 | _ACEOF | |
13835 | rm -f conftest.$ac_objext | |
13836 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13837 | (eval $ac_compile) 2>conftest.er1 | |
13838 | ac_status=$? | |
13839 | grep -v '^ *+' conftest.er1 >conftest.err | |
13840 | rm -f conftest.er1 | |
13841 | cat conftest.err >&5 | |
13842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13843 | (exit $ac_status); } && | |
5d7b7554 | 13844 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
3006edc0 VZ |
13845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13846 | (eval $ac_try) 2>&5 | |
13847 | ac_status=$? | |
13848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13849 | (exit $ac_status); }; } && | |
13850 | { ac_try='test -s conftest.$ac_objext' | |
13851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13852 | (eval $ac_try) 2>&5 | |
13853 | ac_status=$? | |
13854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13855 | (exit $ac_status); }; }; then | |
0093c2fc | 13856 | bakefile_compiler_xlc=yes |
3006edc0 VZ |
13857 | else |
13858 | echo "$as_me: failed program was:" >&5 | |
13859 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13860 | ||
0093c2fc | 13861 | bakefile_compiler_xlc=no |
3006edc0 VZ |
13862 | fi |
13863 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 13864 | bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc |
3006edc0 VZ |
13865 | |
13866 | fi | |
0093c2fc VZ |
13867 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5 |
13868 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6 | |
3006edc0 | 13869 | |
0093c2fc | 13870 | XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes` |
3006edc0 VZ |
13871 | ac_ext=cc |
13872 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13873 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13874 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13875 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13876 | ||
13877 | ||
13878 | ;; | |
13879 | ||
13880 | Darwin) | |
13881 | ac_ext=cc | |
95986553 DE |
13882 | ac_cpp='$CXXCPP $CPPFLAGS' |
13883 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13884 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13885 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13886 | ||
13887 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5 | |
13888 | echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6 | |
13889 | if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then | |
13890 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13891 | else | |
13892 | cat >conftest.$ac_ext <<_ACEOF | |
13893 | /* confdefs.h. */ | |
13894 | _ACEOF | |
13895 | cat confdefs.h >>conftest.$ac_ext | |
13896 | cat >>conftest.$ac_ext <<_ACEOF | |
13897 | /* end confdefs.h. */ | |
13898 | ||
13899 | int | |
13900 | main () | |
13901 | { | |
13902 | #ifndef __MWERKS__ | |
13903 | choke me | |
13904 | #endif | |
13905 | ||
13906 | ; | |
13907 | return 0; | |
13908 | } | |
13909 | _ACEOF | |
13910 | rm -f conftest.$ac_objext | |
13911 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13912 | (eval $ac_compile) 2>conftest.er1 | |
13913 | ac_status=$? | |
13914 | grep -v '^ *+' conftest.er1 >conftest.err | |
13915 | rm -f conftest.er1 | |
13916 | cat conftest.err >&5 | |
13917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13918 | (exit $ac_status); } && | |
5d7b7554 | 13919 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
95986553 DE |
13920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13921 | (eval $ac_try) 2>&5 | |
13922 | ac_status=$? | |
13923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13924 | (exit $ac_status); }; } && | |
13925 | { ac_try='test -s conftest.$ac_objext' | |
13926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13927 | (eval $ac_try) 2>&5 | |
13928 | ac_status=$? | |
13929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13930 | (exit $ac_status); }; }; then | |
13931 | bakefile_compiler_mwerks=yes | |
13932 | else | |
13933 | echo "$as_me: failed program was:" >&5 | |
13934 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13935 | ||
13936 | bakefile_compiler_mwerks=no | |
13937 | fi | |
13938 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13939 | bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks | |
13940 | ||
13941 | fi | |
13942 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5 | |
13943 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6 | |
13944 | ||
0e6fa1d9 | 13945 | MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes` |
95986553 DE |
13946 | ac_ext=cc |
13947 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13948 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13949 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13950 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13951 | ||
13952 | ||
3006edc0 | 13953 | ac_ext=cc |
9273ffba DE |
13954 | ac_cpp='$CXXCPP $CPPFLAGS' |
13955 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13956 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13957 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13958 | ||
13959 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5 | |
13960 | echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6 | |
0093c2fc | 13961 | if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then |
9273ffba DE |
13962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13963 | else | |
13964 | cat >conftest.$ac_ext <<_ACEOF | |
13965 | /* confdefs.h. */ | |
13966 | _ACEOF | |
13967 | cat confdefs.h >>conftest.$ac_ext | |
13968 | cat >>conftest.$ac_ext <<_ACEOF | |
13969 | /* end confdefs.h. */ | |
13970 | ||
13971 | int | |
13972 | main () | |
13973 | { | |
13974 | #ifndef __xlC__ | |
13975 | choke me | |
13976 | #endif | |
13977 | ||
13978 | ; | |
13979 | return 0; | |
13980 | } | |
13981 | _ACEOF | |
13982 | rm -f conftest.$ac_objext | |
13983 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13984 | (eval $ac_compile) 2>conftest.er1 | |
13985 | ac_status=$? | |
13986 | grep -v '^ *+' conftest.er1 >conftest.err | |
13987 | rm -f conftest.er1 | |
13988 | cat conftest.err >&5 | |
13989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13990 | (exit $ac_status); } && | |
5d7b7554 | 13991 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
9273ffba DE |
13992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13993 | (eval $ac_try) 2>&5 | |
13994 | ac_status=$? | |
13995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13996 | (exit $ac_status); }; } && | |
13997 | { ac_try='test -s conftest.$ac_objext' | |
13998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13999 | (eval $ac_try) 2>&5 | |
14000 | ac_status=$? | |
14001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14002 | (exit $ac_status); }; }; then | |
0093c2fc | 14003 | bakefile_compiler_xlc=yes |
9273ffba DE |
14004 | else |
14005 | echo "$as_me: failed program was:" >&5 | |
14006 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14007 | ||
0093c2fc | 14008 | bakefile_compiler_xlc=no |
9273ffba DE |
14009 | fi |
14010 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 14011 | bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc |
9273ffba DE |
14012 | |
14013 | fi | |
0093c2fc VZ |
14014 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5 |
14015 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6 | |
9273ffba | 14016 | |
0093c2fc | 14017 | XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes` |
9273ffba DE |
14018 | ac_ext=cc |
14019 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14020 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14021 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14022 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14023 | ||
14024 | ||
3006edc0 VZ |
14025 | ;; |
14026 | ||
14027 | IRIX*) | |
95986553 | 14028 | |
6dcfc289 | 14029 | |
0ad5d837 VZ |
14030 | ac_ext=cc |
14031 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14032 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14033 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14034 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14035 | ||
14036 | echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5 | |
14037 | echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6 | |
14038 | if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then | |
14039 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14040 | else | |
14041 | cat >conftest.$ac_ext <<_ACEOF | |
14042 | /* confdefs.h. */ | |
14043 | _ACEOF | |
14044 | cat confdefs.h >>conftest.$ac_ext | |
14045 | cat >>conftest.$ac_ext <<_ACEOF | |
14046 | /* end confdefs.h. */ | |
14047 | ||
14048 | int | |
14049 | main () | |
14050 | { | |
14051 | ||
14052 | #ifndef _SGI_COMPILER_VERSION | |
14053 | choke me | |
14054 | #endif | |
14055 | ||
14056 | ; | |
14057 | return 0; | |
14058 | } | |
14059 | _ACEOF | |
14060 | rm -f conftest.$ac_objext | |
14061 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14062 | (eval $ac_compile) 2>conftest.er1 | |
14063 | ac_status=$? | |
14064 | grep -v '^ *+' conftest.er1 >conftest.err | |
14065 | rm -f conftest.er1 | |
14066 | cat conftest.err >&5 | |
14067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14068 | (exit $ac_status); } && | |
5d7b7554 | 14069 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
0ad5d837 VZ |
14070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14071 | (eval $ac_try) 2>&5 | |
14072 | ac_status=$? | |
14073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14074 | (exit $ac_status); }; } && | |
14075 | { ac_try='test -s conftest.$ac_objext' | |
14076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14077 | (eval $ac_try) 2>&5 | |
14078 | ac_status=$? | |
14079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14080 | (exit $ac_status); }; }; then | |
14081 | bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes | |
14082 | else | |
14083 | echo "$as_me: failed program was:" >&5 | |
14084 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14085 | ||
14086 | bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no | |
14087 | ||
14088 | fi | |
14089 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14090 | ||
14091 | ||
14092 | fi | |
14093 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5 | |
14094 | echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6 | |
14095 | ac_ext=cc | |
14096 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14097 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14098 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14099 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14100 | ||
14101 | if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then | |
14102 | :; SGICXX=yes | |
14103 | else | |
14104 | :; | |
14105 | fi | |
14106 | ||
14107 | ||
3006edc0 VZ |
14108 | ;; |
14109 | ||
0093c2fc | 14110 | HP-UX*) |
3006edc0 VZ |
14111 | |
14112 | ||
14113 | ac_ext=cc | |
14114 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14115 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14116 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14117 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14118 | ||
0093c2fc VZ |
14119 | echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5 |
14120 | echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6 | |
14121 | if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then | |
3006edc0 VZ |
14122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14123 | else | |
14124 | cat >conftest.$ac_ext <<_ACEOF | |
14125 | /* confdefs.h. */ | |
14126 | _ACEOF | |
14127 | cat confdefs.h >>conftest.$ac_ext | |
14128 | cat >>conftest.$ac_ext <<_ACEOF | |
14129 | /* end confdefs.h. */ | |
14130 | ||
14131 | int | |
14132 | main () | |
14133 | { | |
14134 | ||
0093c2fc | 14135 | #ifndef __HP_aCC |
3006edc0 VZ |
14136 | choke me |
14137 | #endif | |
14138 | ||
14139 | ; | |
14140 | return 0; | |
14141 | } | |
14142 | _ACEOF | |
14143 | rm -f conftest.$ac_objext | |
14144 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14145 | (eval $ac_compile) 2>conftest.er1 | |
14146 | ac_status=$? | |
14147 | grep -v '^ *+' conftest.er1 >conftest.err | |
14148 | rm -f conftest.er1 | |
14149 | cat conftest.err >&5 | |
14150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14151 | (exit $ac_status); } && | |
5d7b7554 | 14152 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
3006edc0 VZ |
14153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14154 | (eval $ac_try) 2>&5 | |
14155 | ac_status=$? | |
14156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14157 | (exit $ac_status); }; } && | |
14158 | { ac_try='test -s conftest.$ac_objext' | |
14159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14160 | (eval $ac_try) 2>&5 | |
14161 | ac_status=$? | |
14162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14163 | (exit $ac_status); }; }; then | |
0093c2fc | 14164 | bakefile_cv_cxx_compiler___HP_aCC=yes |
3006edc0 VZ |
14165 | else |
14166 | echo "$as_me: failed program was:" >&5 | |
14167 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14168 | ||
0093c2fc | 14169 | bakefile_cv_cxx_compiler___HP_aCC=no |
3006edc0 VZ |
14170 | |
14171 | fi | |
14172 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14173 | ||
14174 | ||
14175 | fi | |
0093c2fc VZ |
14176 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5 |
14177 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6 | |
3006edc0 VZ |
14178 | ac_ext=cc |
14179 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14180 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14181 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14182 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14183 | ||
0093c2fc VZ |
14184 | if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then |
14185 | :; HPCXX=yes | |
a1aa0349 VZ |
14186 | else |
14187 | :; | |
14188 | fi | |
14189 | ||
14190 | ||
14191 | ;; | |
14192 | ||
0093c2fc | 14193 | OSF1) |
a1aa0349 VZ |
14194 | |
14195 | ||
14196 | ac_ext=cc | |
14197 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14198 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14199 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14200 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14201 | ||
0093c2fc VZ |
14202 | echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5 |
14203 | echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6 | |
14204 | if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then | |
a1aa0349 VZ |
14205 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14206 | else | |
14207 | cat >conftest.$ac_ext <<_ACEOF | |
14208 | /* confdefs.h. */ | |
14209 | _ACEOF | |
14210 | cat confdefs.h >>conftest.$ac_ext | |
14211 | cat >>conftest.$ac_ext <<_ACEOF | |
14212 | /* end confdefs.h. */ | |
14213 | ||
14214 | int | |
14215 | main () | |
14216 | { | |
14217 | ||
0093c2fc | 14218 | #ifndef __DECCXX |
a1aa0349 VZ |
14219 | choke me |
14220 | #endif | |
14221 | ||
14222 | ; | |
14223 | return 0; | |
14224 | } | |
14225 | _ACEOF | |
14226 | rm -f conftest.$ac_objext | |
14227 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14228 | (eval $ac_compile) 2>conftest.er1 | |
14229 | ac_status=$? | |
14230 | grep -v '^ *+' conftest.er1 >conftest.err | |
14231 | rm -f conftest.er1 | |
14232 | cat conftest.err >&5 | |
14233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14234 | (exit $ac_status); } && | |
5d7b7554 | 14235 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
a1aa0349 VZ |
14236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14237 | (eval $ac_try) 2>&5 | |
14238 | ac_status=$? | |
14239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14240 | (exit $ac_status); }; } && | |
14241 | { ac_try='test -s conftest.$ac_objext' | |
14242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14243 | (eval $ac_try) 2>&5 | |
14244 | ac_status=$? | |
14245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14246 | (exit $ac_status); }; }; then | |
0093c2fc | 14247 | bakefile_cv_cxx_compiler___DECCXX=yes |
a1aa0349 VZ |
14248 | else |
14249 | echo "$as_me: failed program was:" >&5 | |
14250 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14251 | ||
0093c2fc | 14252 | bakefile_cv_cxx_compiler___DECCXX=no |
a1aa0349 VZ |
14253 | |
14254 | fi | |
14255 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14256 | ||
14257 | ||
14258 | fi | |
0093c2fc VZ |
14259 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5 |
14260 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6 | |
a1aa0349 VZ |
14261 | ac_ext=cc |
14262 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14263 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14264 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14265 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14266 | ||
0093c2fc VZ |
14267 | if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then |
14268 | :; COMPAQCXX=yes | |
14269 | else | |
14270 | :; | |
14271 | fi | |
14272 | ||
14273 | ||
14274 | ;; | |
14275 | ||
14276 | SunOS) | |
14277 | ||
14278 | ||
14279 | ac_ext=cc | |
14280 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14281 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14282 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14283 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14284 | ||
14285 | echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5 | |
14286 | echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6 | |
14287 | if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then | |
14288 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14289 | else | |
14290 | cat >conftest.$ac_ext <<_ACEOF | |
14291 | /* confdefs.h. */ | |
14292 | _ACEOF | |
14293 | cat confdefs.h >>conftest.$ac_ext | |
14294 | cat >>conftest.$ac_ext <<_ACEOF | |
14295 | /* end confdefs.h. */ | |
14296 | ||
14297 | int | |
14298 | main () | |
14299 | { | |
14300 | ||
14301 | #ifndef __SUNPRO_CC | |
14302 | choke me | |
14303 | #endif | |
14304 | ||
14305 | ; | |
14306 | return 0; | |
14307 | } | |
14308 | _ACEOF | |
14309 | rm -f conftest.$ac_objext | |
14310 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14311 | (eval $ac_compile) 2>conftest.er1 | |
14312 | ac_status=$? | |
14313 | grep -v '^ *+' conftest.er1 >conftest.err | |
14314 | rm -f conftest.er1 | |
14315 | cat conftest.err >&5 | |
14316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14317 | (exit $ac_status); } && | |
5d7b7554 | 14318 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
0093c2fc VZ |
14319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14320 | (eval $ac_try) 2>&5 | |
14321 | ac_status=$? | |
14322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14323 | (exit $ac_status); }; } && | |
14324 | { ac_try='test -s conftest.$ac_objext' | |
14325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14326 | (eval $ac_try) 2>&5 | |
14327 | ac_status=$? | |
14328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14329 | (exit $ac_status); }; }; then | |
14330 | bakefile_cv_cxx_compiler___SUNPRO_CC=yes | |
14331 | else | |
14332 | echo "$as_me: failed program was:" >&5 | |
14333 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14334 | ||
14335 | bakefile_cv_cxx_compiler___SUNPRO_CC=no | |
14336 | ||
14337 | fi | |
14338 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14339 | ||
14340 | ||
14341 | fi | |
14342 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5 | |
14343 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6 | |
14344 | ac_ext=cc | |
14345 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14346 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14347 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14348 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14349 | ||
14350 | if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then | |
14351 | :; SUNCXX=yes | |
3006edc0 VZ |
14352 | else |
14353 | :; | |
ab0ad5f1 | 14354 | fi |
a9e5b1f0 MW |
14355 | |
14356 | ||
3006edc0 VZ |
14357 | ;; |
14358 | esac | |
14359 | fi | |
14360 | ||
14361 | ||
14362 | ||
a848cd7e SC |
14363 | if test -n "$ac_tool_prefix"; then |
14364 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
14365 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
14366 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14367 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14368 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
14369 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14370 | else | |
14371 | if test -n "$RANLIB"; then | |
14372 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
14373 | else | |
14374 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14375 | for as_dir in $PATH | |
14376 | do | |
14377 | IFS=$as_save_IFS | |
14378 | test -z "$as_dir" && as_dir=. | |
14379 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14380 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14381 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
14382 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14383 | break 2 | |
14384 | fi | |
14385 | done | |
14386 | done | |
14387 | ||
14388 | fi | |
14389 | fi | |
14390 | RANLIB=$ac_cv_prog_RANLIB | |
14391 | if test -n "$RANLIB"; then | |
14392 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
14393 | echo "${ECHO_T}$RANLIB" >&6 | |
14394 | else | |
14395 | echo "$as_me:$LINENO: result: no" >&5 | |
14396 | echo "${ECHO_T}no" >&6 | |
14397 | fi | |
14398 | ||
14399 | fi | |
14400 | if test -z "$ac_cv_prog_RANLIB"; then | |
14401 | ac_ct_RANLIB=$RANLIB | |
14402 | # Extract the first word of "ranlib", so it can be a program name with args. | |
14403 | set dummy ranlib; ac_word=$2 | |
14404 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14405 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14406 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
14407 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14408 | else | |
14409 | if test -n "$ac_ct_RANLIB"; then | |
14410 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
14411 | else | |
14412 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14413 | for as_dir in $PATH | |
14414 | do | |
14415 | IFS=$as_save_IFS | |
14416 | test -z "$as_dir" && as_dir=. | |
14417 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14418 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14419 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
14420 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14421 | break 2 | |
14422 | fi | |
14423 | done | |
14424 | done | |
14425 | ||
14426 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
14427 | fi | |
14428 | fi | |
14429 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
14430 | if test -n "$ac_ct_RANLIB"; then | |
14431 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
14432 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
14433 | else | |
14434 | echo "$as_me:$LINENO: result: no" >&5 | |
14435 | echo "${ECHO_T}no" >&6 | |
14436 | fi | |
14437 | ||
14438 | RANLIB=$ac_ct_RANLIB | |
14439 | else | |
14440 | RANLIB="$ac_cv_prog_RANLIB" | |
14441 | fi | |
14442 | ||
14443 | ||
8c80d384 DE |
14444 | if test -n "$ac_tool_prefix"; then |
14445 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
14446 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
a848cd7e SC |
14447 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14448 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14449 | if test "${ac_cv_prog_AR+set}" = set; then | |
14450 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14451 | else | |
14452 | if test -n "$AR"; then | |
14453 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
14454 | else | |
14455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14456 | for as_dir in $PATH | |
14457 | do | |
14458 | IFS=$as_save_IFS | |
14459 | test -z "$as_dir" && as_dir=. | |
14460 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14461 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8c80d384 | 14462 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
a848cd7e SC |
14463 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14464 | break 2 | |
14465 | fi | |
14466 | done | |
14467 | done | |
14468 | ||
14469 | fi | |
14470 | fi | |
14471 | AR=$ac_cv_prog_AR | |
14472 | if test -n "$AR"; then | |
14473 | echo "$as_me:$LINENO: result: $AR" >&5 | |
14474 | echo "${ECHO_T}$AR" >&6 | |
14475 | else | |
14476 | echo "$as_me:$LINENO: result: no" >&5 | |
14477 | echo "${ECHO_T}no" >&6 | |
14478 | fi | |
14479 | ||
8c80d384 DE |
14480 | fi |
14481 | if test -z "$ac_cv_prog_AR"; then | |
14482 | ac_ct_AR=$AR | |
14483 | # Extract the first word of "ar", so it can be a program name with args. | |
14484 | set dummy ar; ac_word=$2 | |
14485 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14486 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14487 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
14488 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14489 | else | |
14490 | if test -n "$ac_ct_AR"; then | |
14491 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
14492 | else | |
14493 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14494 | for as_dir in $PATH | |
14495 | do | |
14496 | IFS=$as_save_IFS | |
14497 | test -z "$as_dir" && as_dir=. | |
14498 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14499 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14500 | ac_cv_prog_ac_ct_AR="ar" | |
14501 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14502 | break 2 | |
14503 | fi | |
14504 | done | |
14505 | done | |
14506 | ||
14507 | fi | |
14508 | fi | |
14509 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
14510 | if test -n "$ac_ct_AR"; then | |
14511 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
14512 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
14513 | else | |
14514 | echo "$as_me:$LINENO: result: no" >&5 | |
14515 | echo "${ECHO_T}no" >&6 | |
14516 | fi | |
14517 | ||
14518 | AR=$ac_ct_AR | |
14519 | else | |
14520 | AR="$ac_cv_prog_AR" | |
14521 | fi | |
14522 | ||
a848cd7e | 14523 | if test "x$AR" = "x" ; then |
77ffb593 JS |
14524 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5 |
14525 | echo "$as_me: error: ar is needed to build wxWidgets" >&2;} | |
a848cd7e SC |
14526 | { (exit 1); exit 1; }; } |
14527 | fi | |
14528 | ||
14529 | # Find a good install program. We prefer a C program (faster), | |
14530 | # so one script is as good as another. But avoid the broken or | |
14531 | # incompatible versions: | |
14532 | # SysV /etc/install, /usr/sbin/install | |
14533 | # SunOS /usr/etc/install | |
14534 | # IRIX /sbin/install | |
14535 | # AIX /bin/install | |
14536 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
14537 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
14538 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
14539 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 14540 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
14541 | # ./install, which can be erroneously created by make from ./install.sh. |
14542 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
14543 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
14544 | if test -z "$INSTALL"; then | |
14545 | if test "${ac_cv_path_install+set}" = set; then | |
14546 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14547 | else | |
14548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14549 | for as_dir in $PATH | |
14550 | do | |
14551 | IFS=$as_save_IFS | |
14552 | test -z "$as_dir" && as_dir=. | |
14553 | # Account for people who put trailing slashes in PATH elements. | |
14554 | case $as_dir/ in | |
14555 | ./ | .// | /cC/* | \ | |
14556 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 14557 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
14558 | /usr/ucb/* ) ;; |
14559 | *) | |
14560 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
14561 | # Don't use installbsd from OSF since it installs stuff as root | |
14562 | # by default. | |
14563 | for ac_prog in ginstall scoinst install; do | |
14564 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
14565 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
14566 | if test $ac_prog = install && | |
14567 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
14568 | # AIX install. It has an incompatible calling convention. | |
14569 | : | |
14570 | elif test $ac_prog = install && | |
14571 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
14572 | # program-specific install script used by HP pwplus--don't use. | |
14573 | : | |
14574 | else | |
14575 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
14576 | break 3 | |
14577 | fi | |
14578 | fi | |
a848cd7e SC |
14579 | done |
14580 | done | |
14581 | ;; | |
14582 | esac | |
14583 | done | |
14584 | ||
14585 | ||
14586 | fi | |
14587 | if test "${ac_cv_path_install+set}" = set; then | |
14588 | INSTALL=$ac_cv_path_install | |
14589 | else | |
14590 | # As a last resort, use the slow shell script. We don't cache a | |
14591 | # path for INSTALL within a source directory, because that will | |
14592 | # break other packages using the cache if that directory is | |
14593 | # removed, or if the path is relative. | |
14594 | INSTALL=$ac_install_sh | |
14595 | fi | |
14596 | fi | |
14597 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
14598 | echo "${ECHO_T}$INSTALL" >&6 | |
14599 | ||
14600 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
14601 | # It thinks the first close brace ends the variable substitution. | |
14602 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
14603 | ||
14604 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
14605 | ||
14606 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
14607 | ||
14608 | ||
14609 | case ${INSTALL} in | |
14610 | /* ) # Absolute | |
14611 | ;; | |
14612 | ?:* ) # Drive letter, considered as absolute. | |
14613 | ;; | |
14614 | *) | |
14615 | INSTALL=`pwd`/${INSTALL} ;; | |
14616 | esac | |
14617 | ||
a848cd7e SC |
14618 | |
14619 | case "${host}" in | |
14620 | ||
cfda0ea8 | 14621 | *-*-darwin* ) |
a848cd7e SC |
14622 | INSTALL_PROGRAM="cp -fp" |
14623 | INSTALL_DATA="cp -fp" | |
14624 | ;; | |
14625 | *) | |
14626 | ;; | |
14627 | esac | |
14628 | ||
8c80d384 DE |
14629 | if test -n "$ac_tool_prefix"; then |
14630 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
14631 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
a848cd7e SC |
14632 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14633 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14634 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
14635 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14636 | else | |
14637 | if test -n "$STRIP"; then | |
14638 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
14639 | else | |
14640 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14641 | for as_dir in $PATH | |
14642 | do | |
14643 | IFS=$as_save_IFS | |
14644 | test -z "$as_dir" && as_dir=. | |
14645 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14646 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8c80d384 | 14647 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
a848cd7e SC |
14648 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14649 | break 2 | |
14650 | fi | |
14651 | done | |
14652 | done | |
14653 | ||
a848cd7e SC |
14654 | fi |
14655 | fi | |
14656 | STRIP=$ac_cv_prog_STRIP | |
14657 | if test -n "$STRIP"; then | |
14658 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
14659 | echo "${ECHO_T}$STRIP" >&6 | |
14660 | else | |
14661 | echo "$as_me:$LINENO: result: no" >&5 | |
14662 | echo "${ECHO_T}no" >&6 | |
14663 | fi | |
14664 | ||
8c80d384 DE |
14665 | fi |
14666 | if test -z "$ac_cv_prog_STRIP"; then | |
14667 | ac_ct_STRIP=$STRIP | |
14668 | # Extract the first word of "strip", so it can be a program name with args. | |
14669 | set dummy strip; ac_word=$2 | |
14670 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14671 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14672 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
14673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14674 | else | |
14675 | if test -n "$ac_ct_STRIP"; then | |
14676 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
14677 | else | |
14678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14679 | for as_dir in $PATH | |
14680 | do | |
14681 | IFS=$as_save_IFS | |
14682 | test -z "$as_dir" && as_dir=. | |
14683 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14684 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14685 | ac_cv_prog_ac_ct_STRIP="strip" | |
14686 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14687 | break 2 | |
14688 | fi | |
14689 | done | |
14690 | done | |
14691 | ||
14692 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true" | |
14693 | fi | |
14694 | fi | |
14695 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
14696 | if test -n "$ac_ct_STRIP"; then | |
14697 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
14698 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
14699 | else | |
14700 | echo "$as_me:$LINENO: result: no" >&5 | |
14701 | echo "${ECHO_T}no" >&6 | |
14702 | fi | |
14703 | ||
14704 | STRIP=$ac_ct_STRIP | |
14705 | else | |
14706 | STRIP="$ac_cv_prog_STRIP" | |
14707 | fi | |
14708 | ||
14709 | ||
14710 | if test "$wxUSE_WINE" = "yes"; then | |
14711 | if test -n "$ac_tool_prefix"; then | |
14712 | # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args. | |
14713 | set dummy ${ac_tool_prefix}wrc; ac_word=$2 | |
14714 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14715 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 14716 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
8c80d384 DE |
14717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14718 | else | |
8ced02f6 DE |
14719 | if test -n "$WINDRES"; then |
14720 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
8c80d384 DE |
14721 | else |
14722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14723 | for as_dir in $PATH | |
14724 | do | |
14725 | IFS=$as_save_IFS | |
14726 | test -z "$as_dir" && as_dir=. | |
14727 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14728 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 14729 | ac_cv_prog_WINDRES="${ac_tool_prefix}wrc" |
8c80d384 DE |
14730 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14731 | break 2 | |
14732 | fi | |
14733 | done | |
14734 | done | |
14735 | ||
14736 | fi | |
14737 | fi | |
8ced02f6 DE |
14738 | WINDRES=$ac_cv_prog_WINDRES |
14739 | if test -n "$WINDRES"; then | |
14740 | echo "$as_me:$LINENO: result: $WINDRES" >&5 | |
14741 | echo "${ECHO_T}$WINDRES" >&6 | |
8c80d384 DE |
14742 | else |
14743 | echo "$as_me:$LINENO: result: no" >&5 | |
14744 | echo "${ECHO_T}no" >&6 | |
14745 | fi | |
14746 | ||
14747 | fi | |
8ced02f6 DE |
14748 | if test -z "$ac_cv_prog_WINDRES"; then |
14749 | ac_ct_WINDRES=$WINDRES | |
8c80d384 DE |
14750 | # Extract the first word of "wrc", so it can be a program name with args. |
14751 | set dummy wrc; ac_word=$2 | |
14752 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14753 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 14754 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
8c80d384 DE |
14755 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14756 | else | |
8ced02f6 DE |
14757 | if test -n "$ac_ct_WINDRES"; then |
14758 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
8c80d384 DE |
14759 | else |
14760 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14761 | for as_dir in $PATH | |
14762 | do | |
14763 | IFS=$as_save_IFS | |
14764 | test -z "$as_dir" && as_dir=. | |
14765 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14766 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 14767 | ac_cv_prog_ac_ct_WINDRES="wrc" |
8c80d384 DE |
14768 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14769 | break 2 | |
14770 | fi | |
14771 | done | |
14772 | done | |
14773 | ||
14774 | fi | |
14775 | fi | |
8ced02f6 DE |
14776 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
14777 | if test -n "$ac_ct_WINDRES"; then | |
14778 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 | |
14779 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
8c80d384 DE |
14780 | else |
14781 | echo "$as_me:$LINENO: result: no" >&5 | |
14782 | echo "${ECHO_T}no" >&6 | |
14783 | fi | |
14784 | ||
8ced02f6 | 14785 | WINDRES=$ac_ct_WINDRES |
8c80d384 | 14786 | else |
8ced02f6 | 14787 | WINDRES="$ac_cv_prog_WINDRES" |
8c80d384 DE |
14788 | fi |
14789 | ||
004ee6da | 14790 | RESCOMP="$WINDRES" |
8c80d384 DE |
14791 | else |
14792 | case "${host}" in | |
14793 | *-*-cygwin* | *-*-mingw32* ) | |
004ee6da RL |
14794 | if test -n "$ac_tool_prefix"; then |
14795 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
14796 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
14797 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14798 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14799 | if test "${ac_cv_prog_WINDRES+set}" = set; then | |
14800 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14801 | else | |
14802 | if test -n "$WINDRES"; then | |
14803 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
14804 | else | |
14805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14806 | for as_dir in $PATH | |
14807 | do | |
14808 | IFS=$as_save_IFS | |
14809 | test -z "$as_dir" && as_dir=. | |
14810 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14811 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14812 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" | |
14813 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14814 | break 2 | |
14815 | fi | |
14816 | done | |
14817 | done | |
14818 | ||
14819 | fi | |
14820 | fi | |
14821 | WINDRES=$ac_cv_prog_WINDRES | |
14822 | if test -n "$WINDRES"; then | |
14823 | echo "$as_me:$LINENO: result: $WINDRES" >&5 | |
14824 | echo "${ECHO_T}$WINDRES" >&6 | |
14825 | else | |
14826 | echo "$as_me:$LINENO: result: no" >&5 | |
14827 | echo "${ECHO_T}no" >&6 | |
14828 | fi | |
14829 | ||
14830 | fi | |
14831 | if test -z "$ac_cv_prog_WINDRES"; then | |
14832 | ac_ct_WINDRES=$WINDRES | |
14833 | # Extract the first word of "windres", so it can be a program name with args. | |
14834 | set dummy windres; ac_word=$2 | |
14835 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14836 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14837 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then | |
14838 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14839 | else | |
14840 | if test -n "$ac_ct_WINDRES"; then | |
14841 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
14842 | else | |
14843 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14844 | for as_dir in $PATH | |
14845 | do | |
14846 | IFS=$as_save_IFS | |
14847 | test -z "$as_dir" && as_dir=. | |
14848 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14849 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14850 | ac_cv_prog_ac_ct_WINDRES="windres" | |
14851 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14852 | break 2 | |
14853 | fi | |
14854 | done | |
14855 | done | |
14856 | ||
14857 | fi | |
14858 | fi | |
14859 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES | |
14860 | if test -n "$ac_ct_WINDRES"; then | |
14861 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 | |
14862 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
14863 | else | |
14864 | echo "$as_me:$LINENO: result: no" >&5 | |
14865 | echo "${ECHO_T}no" >&6 | |
14866 | fi | |
14867 | ||
14868 | WINDRES=$ac_ct_WINDRES | |
14869 | else | |
14870 | WINDRES="$ac_cv_prog_WINDRES" | |
14871 | fi | |
14872 | ||
14873 | RESCOMP="$WINDRES" | |
14874 | if test -n "$ac_tool_prefix"; then | |
8c80d384 DE |
14875 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
14876 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
14877 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14878 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14879 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then | |
14880 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14881 | else | |
14882 | if test -n "$DLLTOOL"; then | |
14883 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
14884 | else | |
14885 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14886 | for as_dir in $PATH | |
14887 | do | |
14888 | IFS=$as_save_IFS | |
14889 | test -z "$as_dir" && as_dir=. | |
14890 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14891 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14892 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
14893 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14894 | break 2 | |
14895 | fi | |
14896 | done | |
14897 | done | |
14898 | ||
14899 | fi | |
14900 | fi | |
14901 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
14902 | if test -n "$DLLTOOL"; then | |
14903 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 | |
14904 | echo "${ECHO_T}$DLLTOOL" >&6 | |
14905 | else | |
14906 | echo "$as_me:$LINENO: result: no" >&5 | |
14907 | echo "${ECHO_T}no" >&6 | |
14908 | fi | |
14909 | ||
14910 | fi | |
14911 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
14912 | ac_ct_DLLTOOL=$DLLTOOL | |
14913 | # Extract the first word of "dlltool", so it can be a program name with args. | |
14914 | set dummy dlltool; ac_word=$2 | |
14915 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14916 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14917 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then | |
14918 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14919 | else | |
14920 | if test -n "$ac_ct_DLLTOOL"; then | |
14921 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
14922 | else | |
14923 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14924 | for as_dir in $PATH | |
14925 | do | |
14926 | IFS=$as_save_IFS | |
14927 | test -z "$as_dir" && as_dir=. | |
14928 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14929 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14930 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
14931 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14932 | break 2 | |
14933 | fi | |
14934 | done | |
14935 | done | |
14936 | ||
14937 | fi | |
14938 | fi | |
14939 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
14940 | if test -n "$ac_ct_DLLTOOL"; then | |
14941 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 | |
14942 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 | |
14943 | else | |
14944 | echo "$as_me:$LINENO: result: no" >&5 | |
14945 | echo "${ECHO_T}no" >&6 | |
14946 | fi | |
14947 | ||
14948 | DLLTOOL=$ac_ct_DLLTOOL | |
14949 | else | |
14950 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
14951 | fi | |
14952 | ||
14953 | ;; | |
14954 | esac | |
14955 | fi | |
a848cd7e SC |
14956 | |
14957 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
14958 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
14959 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
14960 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14961 | else | |
14962 | ||
14963 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
14964 | egrep -s GNU > /dev/null); then | |
14965 | wx_cv_prog_makeisgnu="yes" | |
14966 | else | |
14967 | wx_cv_prog_makeisgnu="no" | |
14968 | fi | |
14969 | ||
14970 | fi | |
14971 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 | |
14972 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
14973 | ||
14974 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
14975 | IF_GNU_MAKE="" | |
14976 | else | |
14977 | IF_GNU_MAKE="#" | |
14978 | fi | |
14979 | ||
14980 | ||
14981 | ||
14982 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
14983 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 | |
14984 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
14985 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
14986 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14987 | else | |
14988 | ||
14989 | cat - << EOF > confMake | |
14990 | check : file | |
14991 | cp \$? \$@ | |
14992 | cp \$? final_file | |
14993 | EOF | |
14994 | ||
14995 | if test ! -d sub ; then | |
14996 | mkdir sub | |
14997 | fi | |
14998 | echo dummy > sub/file | |
14999 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
15000 | RESULT=$? | |
15001 | rm -f sub/file check final_file confMake | |
15002 | rmdir sub | |
15003 | if test "$RESULT" = 0; then | |
15004 | wx_cv_prog_makevpath="yes" | |
15005 | else | |
15006 | wx_cv_prog_makevpath="no" | |
15007 | fi | |
15008 | ||
15009 | fi | |
15010 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 | |
15011 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
15012 | ||
15013 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
15014 | { { echo "$as_me:$LINENO: error: | |
15015 | You need a make-utility that is able to use the variable | |
15016 | VPATH correctly. | |
15017 | If your version of make does not support VPATH correctly, | |
15018 | please install GNU-make (possibly as gmake), and start | |
15019 | configure with the following command: | |
15020 | export MAKE=gmake; ./configure for sh-type shells | |
15021 | setenv MAKE gmake; ./configure for csh-type shells | |
15022 | Also please do remember to use gmake in this case every time | |
15023 | you are trying to compile. | |
15024 | " >&5 | |
15025 | echo "$as_me: error: | |
15026 | You need a make-utility that is able to use the variable | |
15027 | VPATH correctly. | |
15028 | If your version of make does not support VPATH correctly, | |
15029 | please install GNU-make (possibly as gmake), and start | |
15030 | configure with the following command: | |
15031 | export MAKE=gmake; ./configure for sh-type shells | |
15032 | setenv MAKE gmake; ./configure for csh-type shells | |
15033 | Also please do remember to use gmake in this case every time | |
15034 | you are trying to compile. | |
15035 | " >&2;} | |
15036 | { (exit 1); exit 1; }; } | |
15037 | fi fi | |
15038 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
15039 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
15040 | LN_S=$as_ln_s | |
15041 | if test "$LN_S" = "ln -s"; then | |
15042 | echo "$as_me:$LINENO: result: yes" >&5 | |
15043 | echo "${ECHO_T}yes" >&6 | |
15044 | else | |
15045 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
15046 | echo "${ECHO_T}no, using $LN_S" >&6 | |
15047 | fi | |
15048 | ||
15049 | ||
bcaab0f9 | 15050 | |
a848cd7e | 15051 | |
2113bc77 | 15052 | if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then |
c92ad099 | 15053 | CXXFLAGS="-qunique $CXXFLAGS" |
9273ffba DE |
15054 | fi |
15055 | ||
4d7ec9f1 DE |
15056 | case "${host}" in |
15057 | powerpc-*-darwin* ) | |
15058 | echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5 | |
15059 | echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6 | |
15060 | cat >conftest.$ac_ext <<_ACEOF | |
15061 | /* confdefs.h. */ | |
15062 | _ACEOF | |
15063 | cat confdefs.h >>conftest.$ac_ext | |
15064 | cat >>conftest.$ac_ext <<_ACEOF | |
15065 | /* end confdefs.h. */ | |
15066 | ||
15067 | int | |
15068 | main () | |
15069 | { | |
15070 | #ifndef __POWERPC__ | |
15071 | choke me for lack of PowerPC | |
15072 | #endif | |
15073 | ||
15074 | ; | |
15075 | return 0; | |
15076 | } | |
15077 | _ACEOF | |
15078 | rm -f conftest.$ac_objext | |
15079 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15080 | (eval $ac_compile) 2>conftest.er1 | |
15081 | ac_status=$? | |
15082 | grep -v '^ *+' conftest.er1 >conftest.err | |
15083 | rm -f conftest.er1 | |
15084 | cat conftest.err >&5 | |
15085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15086 | (exit $ac_status); } && | |
5d7b7554 | 15087 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
15088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15089 | (eval $ac_try) 2>&5 | |
15090 | ac_status=$? | |
15091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15092 | (exit $ac_status); }; } && | |
15093 | { ac_try='test -s conftest.$ac_objext' | |
15094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15095 | (eval $ac_try) 2>&5 | |
15096 | ac_status=$? | |
15097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15098 | (exit $ac_status); }; }; then | |
15099 | echo "$as_me:$LINENO: result: yes" >&5 | |
15100 | echo "${ECHO_T}yes" >&6 | |
15101 | else | |
15102 | echo "$as_me: failed program was:" >&5 | |
15103 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15104 | ||
15105 | echo "$as_me:$LINENO: result: no" >&5 | |
15106 | echo "${ECHO_T}no" >&6 | |
15107 | cat >>confdefs.h <<\_ACEOF | |
15108 | #define __POWERPC__ 1 | |
15109 | _ACEOF | |
15110 | ||
15111 | ||
15112 | fi | |
15113 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
cfda0ea8 DE |
15114 | ;; |
15115 | esac | |
15116 | ||
15117 | case "${host}" in | |
15118 | *-*-darwin* ) | |
4d7ec9f1 DE |
15119 | echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5 |
15120 | echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6 | |
15121 | cat >conftest.$ac_ext <<_ACEOF | |
15122 | /* confdefs.h. */ | |
15123 | _ACEOF | |
15124 | cat confdefs.h >>conftest.$ac_ext | |
15125 | cat >>conftest.$ac_ext <<_ACEOF | |
15126 | /* end confdefs.h. */ | |
15127 | #include <CoreFoundation/CFBase.h> | |
15128 | ||
15129 | int | |
15130 | main () | |
15131 | { | |
15132 | ||
15133 | ; | |
15134 | return 0; | |
15135 | } | |
15136 | _ACEOF | |
15137 | rm -f conftest.$ac_objext | |
15138 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15139 | (eval $ac_compile) 2>conftest.er1 | |
15140 | ac_status=$? | |
15141 | grep -v '^ *+' conftest.er1 >conftest.err | |
15142 | rm -f conftest.er1 | |
15143 | cat conftest.err >&5 | |
15144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15145 | (exit $ac_status); } && | |
5d7b7554 | 15146 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
15147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15148 | (eval $ac_try) 2>&5 | |
15149 | ac_status=$? | |
15150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15151 | (exit $ac_status); }; } && | |
15152 | { ac_try='test -s conftest.$ac_objext' | |
15153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15154 | (eval $ac_try) 2>&5 | |
15155 | ac_status=$? | |
15156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15157 | (exit $ac_status); }; }; then | |
15158 | echo "$as_me:$LINENO: result: yes" >&5 | |
15159 | echo "${ECHO_T}yes" >&6 | |
15160 | else | |
15161 | echo "$as_me: failed program was:" >&5 | |
15162 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15163 | ||
15164 | echo "$as_me:$LINENO: result: no" >&5 | |
15165 | echo "${ECHO_T}no" >&6 | |
15166 | echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5 | |
15167 | echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6 | |
15168 | cat >conftest.$ac_ext <<_ACEOF | |
15169 | /* confdefs.h. */ | |
15170 | _ACEOF | |
15171 | cat confdefs.h >>conftest.$ac_ext | |
15172 | cat >>conftest.$ac_ext <<_ACEOF | |
15173 | /* end confdefs.h. */ | |
15174 | #define __CF_USE_FRAMEWORK_INCLUDES__ | |
15175 | #include <CoreFoundation/CFBase.h> | |
15176 | ||
15177 | int | |
15178 | main () | |
15179 | { | |
15180 | ||
15181 | ; | |
15182 | return 0; | |
15183 | } | |
15184 | _ACEOF | |
15185 | rm -f conftest.$ac_objext | |
15186 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15187 | (eval $ac_compile) 2>conftest.er1 | |
15188 | ac_status=$? | |
15189 | grep -v '^ *+' conftest.er1 >conftest.err | |
15190 | rm -f conftest.er1 | |
15191 | cat conftest.err >&5 | |
15192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15193 | (exit $ac_status); } && | |
5d7b7554 | 15194 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
4d7ec9f1 DE |
15195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15196 | (eval $ac_try) 2>&5 | |
15197 | ac_status=$? | |
15198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15199 | (exit $ac_status); }; } && | |
15200 | { ac_try='test -s conftest.$ac_objext' | |
15201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15202 | (eval $ac_try) 2>&5 | |
15203 | ac_status=$? | |
15204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15205 | (exit $ac_status); }; }; then | |
15206 | echo "$as_me:$LINENO: result: yes" >&5 | |
15207 | echo "${ECHO_T}yes" >&6 | |
c92ad099 | 15208 | CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS" |
4d7ec9f1 DE |
15209 | else |
15210 | echo "$as_me: failed program was:" >&5 | |
15211 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15212 | ||
15213 | { { echo "$as_me:$LINENO: error: no. CoreFoundation not available. | |
15214 | See \`config.log' for more details." >&5 | |
15215 | echo "$as_me: error: no. CoreFoundation not available. | |
15216 | See \`config.log' for more details." >&2;} | |
15217 | { (exit 1); exit 1; }; } | |
15218 | ||
15219 | fi | |
15220 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15221 | ||
15222 | ||
15223 | fi | |
15224 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15225 | ;; | |
15226 | esac | |
15227 | ||
a848cd7e SC |
15228 | case "${host}" in |
15229 | *-pc-os2_emx | *-pc-os2-emx ) | |
6ba87b06 SN |
15230 | ac_ext=c |
15231 | ac_cpp='$CPP $CPPFLAGS' | |
15232 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15233 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15234 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15235 | ||
15236 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
a848cd7e SC |
15237 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 |
15238 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
15239 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
15240 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15241 | else | |
15242 | ac_check_lib_save_LIBS=$LIBS | |
15243 | LIBS="-lcExt $LIBS" | |
15244 | cat >conftest.$ac_ext <<_ACEOF | |
15245 | /* confdefs.h. */ | |
15246 | _ACEOF | |
15247 | cat confdefs.h >>conftest.$ac_ext | |
15248 | cat >>conftest.$ac_ext <<_ACEOF | |
15249 | /* end confdefs.h. */ | |
15250 | ||
15251 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15252 | #ifdef __cplusplus | |
15253 | extern "C" | |
15254 | #endif | |
15255 | /* We use char because int might match the return type of a gcc2 | |
15256 | builtin and then its argument prototype would still apply. */ | |
15257 | char drand48 (); | |
15258 | int | |
15259 | main () | |
15260 | { | |
15261 | drand48 (); | |
15262 | ; | |
15263 | return 0; | |
15264 | } | |
15265 | _ACEOF | |
15266 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15267 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 15268 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 15269 | ac_status=$? |
ac1cb8d3 VS |
15270 | grep -v '^ *+' conftest.er1 >conftest.err |
15271 | rm -f conftest.er1 | |
15272 | cat conftest.err >&5 | |
a848cd7e SC |
15273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15274 | (exit $ac_status); } && | |
1b52ba67 | 15275 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15277 | (eval $ac_try) 2>&5 | |
15278 | ac_status=$? | |
15279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15280 | (exit $ac_status); }; } && | |
15281 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
15282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15283 | (eval $ac_try) 2>&5 | |
15284 | ac_status=$? | |
15285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15286 | (exit $ac_status); }; }; then | |
15287 | ac_cv_lib_cExt_drand48=yes | |
15288 | else | |
15289 | echo "$as_me: failed program was:" >&5 | |
15290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15291 | ||
15292 | ac_cv_lib_cExt_drand48=no | |
15293 | fi | |
ac1cb8d3 VS |
15294 | rm -f conftest.err conftest.$ac_objext \ |
15295 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
15296 | LIBS=$ac_check_lib_save_LIBS |
15297 | fi | |
15298 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
15299 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
15300 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
15301 | LIBS="$LIBS -lcExt" | |
15302 | fi | |
15303 | ||
15304 | else | |
15305 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
15306 | fi | |
69120ee4 VZ |
15307 | echo "$as_me:$LINENO: checking for gcc/libc version" >&5 |
15308 | echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6 | |
a848cd7e SC |
15309 | if test "${wx_cv_gccversion+set}" = set; then |
15310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15311 | else | |
15312 | ||
391a765e VS |
15313 | if test "$cross_compiling" = yes; then |
15314 | wx_cv_gccversion="EMX2" | |
15315 | ||
15316 | else | |
15317 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
15318 | /* confdefs.h. */ |
15319 | _ACEOF | |
15320 | cat confdefs.h >>conftest.$ac_ext | |
15321 | cat >>conftest.$ac_ext <<_ACEOF | |
15322 | /* end confdefs.h. */ | |
15323 | ||
391a765e | 15324 | #include <stdio.h> |
a848cd7e | 15325 | |
391a765e VS |
15326 | int main() |
15327 | { | |
15328 | FILE *f=fopen("conftestval", "w"); | |
15329 | if (!f) exit(1); | |
15330 | fprintf(f, | |
a848cd7e | 15331 | #if (__GNUC__ < 3) |
391a765e VS |
15332 | "EMX2" |
15333 | #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
15334 | "EMX3" | |
15335 | #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2) | |
15336 | "Innotek5" | |
15337 | #else | |
15338 | "Innotek6" | |
a848cd7e | 15339 | #endif |
391a765e VS |
15340 | ); |
15341 | exit(0); | |
15342 | } | |
a848cd7e | 15343 | |
a848cd7e | 15344 | _ACEOF |
391a765e VS |
15345 | rm -f conftest$ac_exeext |
15346 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15347 | (eval $ac_link) 2>&5 | |
ac1cb8d3 VS |
15348 | ac_status=$? |
15349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
391a765e | 15350 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a848cd7e SC |
15351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15352 | (eval $ac_try) 2>&5 | |
15353 | ac_status=$? | |
15354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15355 | (exit $ac_status); }; }; then | |
391a765e | 15356 | wx_cv_gccversion=`cat conftestval` |
a848cd7e | 15357 | else |
391a765e VS |
15358 | echo "$as_me: program exited with status $ac_status" >&5 |
15359 | echo "$as_me: failed program was:" >&5 | |
a848cd7e SC |
15360 | sed 's/^/| /' conftest.$ac_ext >&5 |
15361 | ||
391a765e VS |
15362 | ( exit $ac_status ) |
15363 | wx_cv_gccversion="EMX2" | |
a848cd7e | 15364 | fi |
391a765e | 15365 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15366 | fi |
a848cd7e SC |
15367 | |
15368 | fi | |
15369 | echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5 | |
15370 | echo "${ECHO_T}$wx_cv_gccversion" >&6 | |
6ba87b06 SN |
15371 | ac_ext=cc |
15372 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15373 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15374 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15375 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
15376 | ||
391a765e | 15377 | if test "$wx_cv_gccversion" = "EMX2"; then |
a848cd7e SC |
15378 | LIBS="$LIBS -lstdcpp" |
15379 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
15380 | else | |
391a765e | 15381 | if test "$wx_cv_gccversion" = "EMX3"; then |
ddd14b14 | 15382 | LIBS="$LIBS -lstdcxx -lgcc" |
a848cd7e SC |
15383 | LDFLAGS="$LDFLAGS -Zsysv-signals" |
15384 | else | |
15385 | LIBS="$LIBS -lstdc++" | |
15386 | fi | |
15387 | fi | |
94acd38e DE |
15388 | if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then |
15389 | { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5 | |
15390 | echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;} | |
15391 | wxUSE_OMF=yes | |
2da0c077 | 15392 | enable_omf=yes |
a848cd7e SC |
15393 | fi |
15394 | ;; | |
15395 | *) | |
15396 | ||
95986553 | 15397 | echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 |
a848cd7e SC |
15398 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6 |
15399 | if test "${ac_cv_string_strcasecmp+set}" = set; then | |
15400 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15401 | else | |
15402 | ||
15403 | cat >conftest.$ac_ext <<_ACEOF | |
15404 | /* confdefs.h. */ | |
15405 | _ACEOF | |
15406 | cat confdefs.h >>conftest.$ac_ext | |
15407 | cat >>conftest.$ac_ext <<_ACEOF | |
15408 | /* end confdefs.h. */ | |
15409 | ||
15410 | #include <string.h> | |
15411 | ||
15412 | int | |
15413 | main () | |
15414 | { | |
15415 | ||
15416 | strcasecmp("foo", "bar"); | |
15417 | ||
15418 | ; | |
15419 | return 0; | |
15420 | } | |
15421 | _ACEOF | |
15422 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15423 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 15424 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 15425 | ac_status=$? |
ac1cb8d3 VS |
15426 | grep -v '^ *+' conftest.er1 >conftest.err |
15427 | rm -f conftest.er1 | |
15428 | cat conftest.err >&5 | |
a848cd7e SC |
15429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15430 | (exit $ac_status); } && | |
5d7b7554 | 15431 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15433 | (eval $ac_try) 2>&5 | |
15434 | ac_status=$? | |
15435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15436 | (exit $ac_status); }; } && | |
15437 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
15438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15439 | (eval $ac_try) 2>&5 | |
15440 | ac_status=$? | |
15441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15442 | (exit $ac_status); }; }; then | |
15443 | ac_cv_string_strcasecmp=yes | |
15444 | else | |
15445 | echo "$as_me: failed program was:" >&5 | |
15446 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15447 | ||
15448 | ac_cv_string_strcasecmp=no | |
15449 | ||
15450 | fi | |
ac1cb8d3 VS |
15451 | rm -f conftest.err conftest.$ac_objext \ |
15452 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
15453 | |
15454 | fi | |
15455 | echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 | |
15456 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6 | |
15457 | ||
15458 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
15459 | cat >>confdefs.h <<\_ACEOF | |
15460 | #define HAVE_STRCASECMP_IN_STRING_H 1 | |
15461 | _ACEOF | |
15462 | ||
15463 | else | |
15464 | echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 | |
15465 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6 | |
15466 | if test "${ac_cv_strings_strcasecmp+set}" = set; then | |
15467 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15468 | else | |
15469 | ||
15470 | cat >conftest.$ac_ext <<_ACEOF | |
15471 | /* confdefs.h. */ | |
15472 | _ACEOF | |
15473 | cat confdefs.h >>conftest.$ac_ext | |
15474 | cat >>conftest.$ac_ext <<_ACEOF | |
15475 | /* end confdefs.h. */ | |
15476 | ||
15477 | #include <strings.h> | |
15478 | ||
15479 | int | |
15480 | main () | |
15481 | { | |
15482 | ||
15483 | strcasecmp("foo", "bar"); | |
15484 | ||
15485 | ; | |
15486 | return 0; | |
15487 | } | |
15488 | _ACEOF | |
15489 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15490 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 15491 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 15492 | ac_status=$? |
ac1cb8d3 VS |
15493 | grep -v '^ *+' conftest.er1 >conftest.err |
15494 | rm -f conftest.er1 | |
15495 | cat conftest.err >&5 | |
a848cd7e SC |
15496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15497 | (exit $ac_status); } && | |
5d7b7554 | 15498 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15500 | (eval $ac_try) 2>&5 | |
15501 | ac_status=$? | |
15502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15503 | (exit $ac_status); }; } && | |
15504 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
15505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15506 | (eval $ac_try) 2>&5 | |
15507 | ac_status=$? | |
15508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15509 | (exit $ac_status); }; }; then | |
15510 | ac_cv_strings_strcasecmp=yes | |
15511 | else | |
15512 | echo "$as_me: failed program was:" >&5 | |
15513 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15514 | ||
15515 | ac_cv_strings_strcasecmp=no | |
15516 | ||
15517 | fi | |
ac1cb8d3 VS |
15518 | rm -f conftest.err conftest.$ac_objext \ |
15519 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
15520 | |
15521 | fi | |
15522 | echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 | |
15523 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6 | |
15524 | ||
0c3c69fc | 15525 | if test x"$ac_cv_strings_strcasecmp" = "xyes"; then |
a848cd7e SC |
15526 | cat >>confdefs.h <<\_ACEOF |
15527 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 | |
15528 | _ACEOF | |
15529 | ||
15530 | else | |
15531 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 | |
15532 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} | |
15533 | { (exit 1); exit 1; }; } | |
15534 | fi | |
15535 | fi | |
15536 | ||
a848cd7e SC |
15537 | ;; |
15538 | esac | |
15539 | ||
15540 | ||
5d7b7554 VZ |
15541 | ac_ext=cc |
15542 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15543 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15544 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15545 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
15546 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
15547 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
15548 | if test -z "$CXXCPP"; then | |
15549 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
15550 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15551 | else | |
15552 | # Double quotes because CXXCPP needs to be expanded | |
15553 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
15554 | do | |
15555 | ac_preproc_ok=false | |
15556 | for ac_cxx_preproc_warn_flag in '' yes | |
15557 | do | |
15558 | # Use a header file that comes with gcc, so configuring glibc | |
15559 | # with a fresh cross-compiler works. | |
15560 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15561 | # <limits.h> exists even on freestanding compilers. | |
15562 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
15563 | # not just through cpp. "Syntax error" is here to catch this case. | |
15564 | cat >conftest.$ac_ext <<_ACEOF | |
15565 | /* confdefs.h. */ | |
15566 | _ACEOF | |
15567 | cat confdefs.h >>conftest.$ac_ext | |
15568 | cat >>conftest.$ac_ext <<_ACEOF | |
15569 | /* end confdefs.h. */ | |
15570 | #ifdef __STDC__ | |
15571 | # include <limits.h> | |
15572 | #else | |
15573 | # include <assert.h> | |
15574 | #endif | |
15575 | Syntax error | |
15576 | _ACEOF | |
15577 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15578 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15579 | ac_status=$? | |
15580 | grep -v '^ *+' conftest.er1 >conftest.err | |
15581 | rm -f conftest.er1 | |
15582 | cat conftest.err >&5 | |
15583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15584 | (exit $ac_status); } >/dev/null; then | |
15585 | if test -s conftest.err; then | |
15586 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
15587 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
15588 | else | |
15589 | ac_cpp_err= | |
15590 | fi | |
15591 | else | |
15592 | ac_cpp_err=yes | |
15593 | fi | |
15594 | if test -z "$ac_cpp_err"; then | |
15595 | : | |
15596 | else | |
15597 | echo "$as_me: failed program was:" >&5 | |
15598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15599 | ||
15600 | # Broken: fails on valid input. | |
15601 | continue | |
15602 | fi | |
15603 | rm -f conftest.err conftest.$ac_ext | |
15604 | ||
15605 | # OK, works on sane cases. Now check whether non-existent headers | |
15606 | # can be detected and how. | |
15607 | cat >conftest.$ac_ext <<_ACEOF | |
15608 | /* confdefs.h. */ | |
15609 | _ACEOF | |
15610 | cat confdefs.h >>conftest.$ac_ext | |
15611 | cat >>conftest.$ac_ext <<_ACEOF | |
15612 | /* end confdefs.h. */ | |
15613 | #include <ac_nonexistent.h> | |
15614 | _ACEOF | |
15615 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15616 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15617 | ac_status=$? | |
15618 | grep -v '^ *+' conftest.er1 >conftest.err | |
15619 | rm -f conftest.er1 | |
15620 | cat conftest.err >&5 | |
15621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15622 | (exit $ac_status); } >/dev/null; then | |
15623 | if test -s conftest.err; then | |
15624 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
15625 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
15626 | else | |
15627 | ac_cpp_err= | |
15628 | fi | |
15629 | else | |
15630 | ac_cpp_err=yes | |
15631 | fi | |
15632 | if test -z "$ac_cpp_err"; then | |
15633 | # Broken: success on invalid input. | |
15634 | continue | |
15635 | else | |
15636 | echo "$as_me: failed program was:" >&5 | |
15637 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15638 | ||
15639 | # Passes both tests. | |
15640 | ac_preproc_ok=: | |
15641 | break | |
15642 | fi | |
15643 | rm -f conftest.err conftest.$ac_ext | |
15644 | ||
15645 | done | |
15646 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
15647 | rm -f conftest.err conftest.$ac_ext | |
15648 | if $ac_preproc_ok; then | |
15649 | break | |
15650 | fi | |
15651 | ||
15652 | done | |
15653 | ac_cv_prog_CXXCPP=$CXXCPP | |
15654 | ||
15655 | fi | |
15656 | CXXCPP=$ac_cv_prog_CXXCPP | |
15657 | else | |
15658 | ac_cv_prog_CXXCPP=$CXXCPP | |
15659 | fi | |
15660 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
15661 | echo "${ECHO_T}$CXXCPP" >&6 | |
15662 | ac_preproc_ok=false | |
15663 | for ac_cxx_preproc_warn_flag in '' yes | |
15664 | do | |
15665 | # Use a header file that comes with gcc, so configuring glibc | |
15666 | # with a fresh cross-compiler works. | |
15667 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15668 | # <limits.h> exists even on freestanding compilers. | |
15669 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
15670 | # not just through cpp. "Syntax error" is here to catch this case. | |
15671 | cat >conftest.$ac_ext <<_ACEOF | |
15672 | /* confdefs.h. */ | |
15673 | _ACEOF | |
15674 | cat confdefs.h >>conftest.$ac_ext | |
15675 | cat >>conftest.$ac_ext <<_ACEOF | |
15676 | /* end confdefs.h. */ | |
15677 | #ifdef __STDC__ | |
15678 | # include <limits.h> | |
15679 | #else | |
15680 | # include <assert.h> | |
15681 | #endif | |
15682 | Syntax error | |
15683 | _ACEOF | |
15684 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15685 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15686 | ac_status=$? | |
15687 | grep -v '^ *+' conftest.er1 >conftest.err | |
15688 | rm -f conftest.er1 | |
15689 | cat conftest.err >&5 | |
15690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15691 | (exit $ac_status); } >/dev/null; then | |
15692 | if test -s conftest.err; then | |
15693 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
15694 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
15695 | else | |
15696 | ac_cpp_err= | |
15697 | fi | |
15698 | else | |
15699 | ac_cpp_err=yes | |
15700 | fi | |
15701 | if test -z "$ac_cpp_err"; then | |
15702 | : | |
15703 | else | |
15704 | echo "$as_me: failed program was:" >&5 | |
15705 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15706 | ||
15707 | # Broken: fails on valid input. | |
15708 | continue | |
15709 | fi | |
15710 | rm -f conftest.err conftest.$ac_ext | |
15711 | ||
15712 | # OK, works on sane cases. Now check whether non-existent headers | |
15713 | # can be detected and how. | |
15714 | cat >conftest.$ac_ext <<_ACEOF | |
15715 | /* confdefs.h. */ | |
15716 | _ACEOF | |
15717 | cat confdefs.h >>conftest.$ac_ext | |
15718 | cat >>conftest.$ac_ext <<_ACEOF | |
15719 | /* end confdefs.h. */ | |
15720 | #include <ac_nonexistent.h> | |
15721 | _ACEOF | |
15722 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15723 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15724 | ac_status=$? | |
15725 | grep -v '^ *+' conftest.er1 >conftest.err | |
15726 | rm -f conftest.er1 | |
15727 | cat conftest.err >&5 | |
15728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15729 | (exit $ac_status); } >/dev/null; then | |
15730 | if test -s conftest.err; then | |
15731 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
15732 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
15733 | else | |
15734 | ac_cpp_err= | |
15735 | fi | |
15736 | else | |
15737 | ac_cpp_err=yes | |
15738 | fi | |
15739 | if test -z "$ac_cpp_err"; then | |
15740 | # Broken: success on invalid input. | |
15741 | continue | |
15742 | else | |
15743 | echo "$as_me: failed program was:" >&5 | |
15744 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15745 | ||
15746 | # Passes both tests. | |
15747 | ac_preproc_ok=: | |
15748 | break | |
15749 | fi | |
15750 | rm -f conftest.err conftest.$ac_ext | |
15751 | ||
15752 | done | |
15753 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
15754 | rm -f conftest.err conftest.$ac_ext | |
15755 | if $ac_preproc_ok; then | |
15756 | : | |
15757 | else | |
15758 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
15759 | See \`config.log' for more details." >&5 | |
15760 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
15761 | See \`config.log' for more details." >&2;} | |
15762 | { (exit 1); exit 1; }; } | |
15763 | fi | |
15764 | ||
15765 | ac_ext=cc | |
15766 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15767 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15768 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15769 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
15770 | ||
15771 | ||
a848cd7e SC |
15772 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
15773 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
15774 | if test "${ac_cv_header_stdc+set}" = set; then | |
15775 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15776 | else | |
15777 | cat >conftest.$ac_ext <<_ACEOF | |
15778 | /* confdefs.h. */ | |
15779 | _ACEOF | |
15780 | cat confdefs.h >>conftest.$ac_ext | |
15781 | cat >>conftest.$ac_ext <<_ACEOF | |
15782 | /* end confdefs.h. */ | |
15783 | #include <stdlib.h> | |
15784 | #include <stdarg.h> | |
15785 | #include <string.h> | |
15786 | #include <float.h> | |
15787 | ||
15788 | int | |
15789 | main () | |
15790 | { | |
15791 | ||
15792 | ; | |
15793 | return 0; | |
15794 | } | |
15795 | _ACEOF | |
15796 | rm -f conftest.$ac_objext | |
15797 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15798 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15799 | ac_status=$? |
ac1cb8d3 VS |
15800 | grep -v '^ *+' conftest.er1 >conftest.err |
15801 | rm -f conftest.er1 | |
15802 | cat conftest.err >&5 | |
a848cd7e SC |
15803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15804 | (exit $ac_status); } && | |
5d7b7554 | 15805 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15807 | (eval $ac_try) 2>&5 | |
15808 | ac_status=$? | |
15809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15810 | (exit $ac_status); }; } && | |
15811 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15813 | (eval $ac_try) 2>&5 | |
15814 | ac_status=$? | |
15815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15816 | (exit $ac_status); }; }; then | |
15817 | ac_cv_header_stdc=yes | |
15818 | else | |
15819 | echo "$as_me: failed program was:" >&5 | |
15820 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15821 | ||
15822 | ac_cv_header_stdc=no | |
15823 | fi | |
ac1cb8d3 | 15824 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15825 | |
15826 | if test $ac_cv_header_stdc = yes; then | |
15827 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
15828 | cat >conftest.$ac_ext <<_ACEOF | |
15829 | /* confdefs.h. */ | |
15830 | _ACEOF | |
15831 | cat confdefs.h >>conftest.$ac_ext | |
15832 | cat >>conftest.$ac_ext <<_ACEOF | |
15833 | /* end confdefs.h. */ | |
15834 | #include <string.h> | |
15835 | ||
15836 | _ACEOF | |
15837 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15838 | $EGREP "memchr" >/dev/null 2>&1; then | |
15839 | : | |
15840 | else | |
15841 | ac_cv_header_stdc=no | |
15842 | fi | |
15843 | rm -f conftest* | |
15844 | ||
15845 | fi | |
15846 | ||
15847 | if test $ac_cv_header_stdc = yes; then | |
15848 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
15849 | cat >conftest.$ac_ext <<_ACEOF | |
15850 | /* confdefs.h. */ | |
15851 | _ACEOF | |
15852 | cat confdefs.h >>conftest.$ac_ext | |
15853 | cat >>conftest.$ac_ext <<_ACEOF | |
15854 | /* end confdefs.h. */ | |
15855 | #include <stdlib.h> | |
15856 | ||
15857 | _ACEOF | |
15858 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15859 | $EGREP "free" >/dev/null 2>&1; then | |
15860 | : | |
15861 | else | |
15862 | ac_cv_header_stdc=no | |
15863 | fi | |
15864 | rm -f conftest* | |
15865 | ||
15866 | fi | |
15867 | ||
15868 | if test $ac_cv_header_stdc = yes; then | |
15869 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
15870 | if test "$cross_compiling" = yes; then | |
15871 | : | |
15872 | else | |
15873 | cat >conftest.$ac_ext <<_ACEOF | |
15874 | /* confdefs.h. */ | |
15875 | _ACEOF | |
15876 | cat confdefs.h >>conftest.$ac_ext | |
15877 | cat >>conftest.$ac_ext <<_ACEOF | |
15878 | /* end confdefs.h. */ | |
15879 | #include <ctype.h> | |
15880 | #if ((' ' & 0x0FF) == 0x020) | |
15881 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
15882 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
15883 | #else | |
15884 | # define ISLOWER(c) \ | |
ac1cb8d3 VS |
15885 | (('a' <= (c) && (c) <= 'i') \ |
15886 | || ('j' <= (c) && (c) <= 'r') \ | |
15887 | || ('s' <= (c) && (c) <= 'z')) | |
a848cd7e SC |
15888 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
15889 | #endif | |
15890 | ||
15891 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
15892 | int | |
15893 | main () | |
15894 | { | |
15895 | int i; | |
15896 | for (i = 0; i < 256; i++) | |
15897 | if (XOR (islower (i), ISLOWER (i)) | |
ac1cb8d3 | 15898 | || toupper (i) != TOUPPER (i)) |
a848cd7e SC |
15899 | exit(2); |
15900 | exit (0); | |
15901 | } | |
15902 | _ACEOF | |
15903 | rm -f conftest$ac_exeext | |
15904 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15905 | (eval $ac_link) 2>&5 | |
15906 | ac_status=$? | |
15907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15908 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15910 | (eval $ac_try) 2>&5 | |
15911 | ac_status=$? | |
15912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15913 | (exit $ac_status); }; }; then | |
15914 | : | |
15915 | else | |
15916 | echo "$as_me: program exited with status $ac_status" >&5 | |
15917 | echo "$as_me: failed program was:" >&5 | |
15918 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15919 | ||
15920 | ( exit $ac_status ) | |
15921 | ac_cv_header_stdc=no | |
15922 | fi | |
ac1cb8d3 | 15923 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15924 | fi |
15925 | fi | |
15926 | fi | |
15927 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
15928 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
15929 | if test $ac_cv_header_stdc = yes; then | |
15930 | ||
15931 | cat >>confdefs.h <<\_ACEOF | |
15932 | #define STDC_HEADERS 1 | |
15933 | _ACEOF | |
15934 | ||
15935 | fi | |
15936 | ||
15937 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
15938 | ||
15939 | ||
15940 | ||
15941 | ||
15942 | ||
15943 | ||
15944 | ||
15945 | ||
15946 | ||
15947 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
ac1cb8d3 | 15948 | inttypes.h stdint.h unistd.h |
a848cd7e SC |
15949 | do |
15950 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15951 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15952 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15953 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15954 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15955 | else | |
15956 | cat >conftest.$ac_ext <<_ACEOF | |
15957 | /* confdefs.h. */ | |
15958 | _ACEOF | |
15959 | cat confdefs.h >>conftest.$ac_ext | |
15960 | cat >>conftest.$ac_ext <<_ACEOF | |
15961 | /* end confdefs.h. */ | |
15962 | $ac_includes_default | |
15963 | ||
15964 | #include <$ac_header> | |
15965 | _ACEOF | |
15966 | rm -f conftest.$ac_objext | |
15967 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15968 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15969 | ac_status=$? |
ac1cb8d3 VS |
15970 | grep -v '^ *+' conftest.er1 >conftest.err |
15971 | rm -f conftest.er1 | |
15972 | cat conftest.err >&5 | |
a848cd7e SC |
15973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15974 | (exit $ac_status); } && | |
5d7b7554 | 15975 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
15976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15977 | (eval $ac_try) 2>&5 | |
15978 | ac_status=$? | |
15979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15980 | (exit $ac_status); }; } && | |
15981 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15983 | (eval $ac_try) 2>&5 | |
15984 | ac_status=$? | |
15985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15986 | (exit $ac_status); }; }; then | |
15987 | eval "$as_ac_Header=yes" | |
15988 | else | |
15989 | echo "$as_me: failed program was:" >&5 | |
15990 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15991 | ||
15992 | eval "$as_ac_Header=no" | |
15993 | fi | |
ac1cb8d3 | 15994 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15995 | fi |
15996 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15997 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15998 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15999 | cat >>confdefs.h <<_ACEOF | |
16000 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16001 | _ACEOF | |
16002 | ||
16003 | fi | |
16004 | ||
16005 | done | |
16006 | ||
16007 | ||
16008 | ||
16009 | for ac_header in stdlib.h | |
16010 | do | |
16011 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16012 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16013 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16014 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16015 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16016 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16017 | fi | |
16018 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16019 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16020 | else | |
16021 | # Is the header compilable? | |
16022 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16023 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16024 | cat >conftest.$ac_ext <<_ACEOF | |
16025 | /* confdefs.h. */ | |
16026 | _ACEOF | |
16027 | cat confdefs.h >>conftest.$ac_ext | |
16028 | cat >>conftest.$ac_ext <<_ACEOF | |
16029 | /* end confdefs.h. */ | |
16030 | $ac_includes_default | |
16031 | #include <$ac_header> | |
16032 | _ACEOF | |
16033 | rm -f conftest.$ac_objext | |
16034 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16035 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16036 | ac_status=$? |
ac1cb8d3 VS |
16037 | grep -v '^ *+' conftest.er1 >conftest.err |
16038 | rm -f conftest.er1 | |
16039 | cat conftest.err >&5 | |
a848cd7e SC |
16040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16041 | (exit $ac_status); } && | |
5d7b7554 | 16042 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16044 | (eval $ac_try) 2>&5 | |
16045 | ac_status=$? | |
16046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16047 | (exit $ac_status); }; } && | |
16048 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16050 | (eval $ac_try) 2>&5 | |
16051 | ac_status=$? | |
16052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16053 | (exit $ac_status); }; }; then | |
16054 | ac_header_compiler=yes | |
16055 | else | |
16056 | echo "$as_me: failed program was:" >&5 | |
16057 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16058 | ||
16059 | ac_header_compiler=no | |
16060 | fi | |
ac1cb8d3 | 16061 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16062 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16063 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16064 | ||
16065 | # Is the header present? | |
16066 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16067 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16068 | cat >conftest.$ac_ext <<_ACEOF | |
16069 | /* confdefs.h. */ | |
16070 | _ACEOF | |
16071 | cat confdefs.h >>conftest.$ac_ext | |
16072 | cat >>conftest.$ac_ext <<_ACEOF | |
16073 | /* end confdefs.h. */ | |
16074 | #include <$ac_header> | |
16075 | _ACEOF | |
16076 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16077 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16078 | ac_status=$? | |
16079 | grep -v '^ *+' conftest.er1 >conftest.err | |
16080 | rm -f conftest.er1 | |
16081 | cat conftest.err >&5 | |
16082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16083 | (exit $ac_status); } >/dev/null; then | |
16084 | if test -s conftest.err; then | |
5d7b7554 VZ |
16085 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
16086 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
16087 | else |
16088 | ac_cpp_err= | |
16089 | fi | |
16090 | else | |
16091 | ac_cpp_err=yes | |
16092 | fi | |
16093 | if test -z "$ac_cpp_err"; then | |
16094 | ac_header_preproc=yes | |
16095 | else | |
16096 | echo "$as_me: failed program was:" >&5 | |
16097 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16098 | ||
16099 | ac_header_preproc=no | |
16100 | fi | |
16101 | rm -f conftest.err conftest.$ac_ext | |
16102 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16103 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16104 | ||
16105 | # So? What about this header? | |
5d7b7554 | 16106 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 16107 | yes:no: ) |
a848cd7e SC |
16108 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16109 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16110 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16111 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16112 | ac_header_preproc=yes | |
a848cd7e | 16113 | ;; |
ac1cb8d3 | 16114 | no:yes:* ) |
a848cd7e SC |
16115 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16116 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16117 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16118 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16119 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16120 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16121 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16122 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16123 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16124 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16125 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16126 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16127 | ( |
16128 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16129 | ## ----------------------------------------- ## |
16130 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16131 | ## ----------------------------------------- ## | |
a848cd7e SC |
16132 | _ASBOX |
16133 | ) | | |
16134 | sed "s/^/$as_me: WARNING: /" >&2 | |
16135 | ;; | |
16136 | esac | |
16137 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16138 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16139 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16140 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16141 | else | |
ac1cb8d3 | 16142 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16143 | fi |
16144 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16145 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16146 | ||
16147 | fi | |
16148 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16149 | cat >>confdefs.h <<_ACEOF | |
16150 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16151 | _ACEOF | |
16152 | ||
16153 | fi | |
16154 | ||
16155 | done | |
16156 | ||
16157 | ||
16158 | for ac_header in malloc.h | |
16159 | do | |
16160 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16161 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16162 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16163 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16164 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16166 | fi | |
16167 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16168 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16169 | else | |
16170 | # Is the header compilable? | |
16171 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16172 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16173 | cat >conftest.$ac_ext <<_ACEOF | |
16174 | /* confdefs.h. */ | |
16175 | _ACEOF | |
16176 | cat confdefs.h >>conftest.$ac_ext | |
16177 | cat >>conftest.$ac_ext <<_ACEOF | |
16178 | /* end confdefs.h. */ | |
16179 | $ac_includes_default | |
16180 | #include <$ac_header> | |
16181 | _ACEOF | |
16182 | rm -f conftest.$ac_objext | |
16183 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16184 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16185 | ac_status=$? |
ac1cb8d3 VS |
16186 | grep -v '^ *+' conftest.er1 >conftest.err |
16187 | rm -f conftest.er1 | |
16188 | cat conftest.err >&5 | |
a848cd7e SC |
16189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16190 | (exit $ac_status); } && | |
5d7b7554 | 16191 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16193 | (eval $ac_try) 2>&5 | |
16194 | ac_status=$? | |
16195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16196 | (exit $ac_status); }; } && | |
16197 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16199 | (eval $ac_try) 2>&5 | |
16200 | ac_status=$? | |
16201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16202 | (exit $ac_status); }; }; then | |
16203 | ac_header_compiler=yes | |
16204 | else | |
16205 | echo "$as_me: failed program was:" >&5 | |
16206 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16207 | ||
16208 | ac_header_compiler=no | |
16209 | fi | |
ac1cb8d3 | 16210 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16211 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16212 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16213 | ||
16214 | # Is the header present? | |
16215 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16216 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16217 | cat >conftest.$ac_ext <<_ACEOF | |
16218 | /* confdefs.h. */ | |
16219 | _ACEOF | |
16220 | cat confdefs.h >>conftest.$ac_ext | |
16221 | cat >>conftest.$ac_ext <<_ACEOF | |
16222 | /* end confdefs.h. */ | |
16223 | #include <$ac_header> | |
16224 | _ACEOF | |
16225 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16226 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16227 | ac_status=$? | |
16228 | grep -v '^ *+' conftest.er1 >conftest.err | |
16229 | rm -f conftest.er1 | |
16230 | cat conftest.err >&5 | |
16231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16232 | (exit $ac_status); } >/dev/null; then | |
16233 | if test -s conftest.err; then | |
5d7b7554 VZ |
16234 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
16235 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
16236 | else |
16237 | ac_cpp_err= | |
16238 | fi | |
16239 | else | |
16240 | ac_cpp_err=yes | |
16241 | fi | |
16242 | if test -z "$ac_cpp_err"; then | |
16243 | ac_header_preproc=yes | |
16244 | else | |
16245 | echo "$as_me: failed program was:" >&5 | |
16246 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16247 | ||
16248 | ac_header_preproc=no | |
16249 | fi | |
16250 | rm -f conftest.err conftest.$ac_ext | |
16251 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16252 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16253 | ||
16254 | # So? What about this header? | |
5d7b7554 | 16255 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 16256 | yes:no: ) |
a848cd7e SC |
16257 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16258 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16259 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16260 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16261 | ac_header_preproc=yes | |
a848cd7e | 16262 | ;; |
ac1cb8d3 | 16263 | no:yes:* ) |
a848cd7e SC |
16264 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16265 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16266 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16267 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16268 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16269 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16270 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16271 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16272 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16273 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16274 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16275 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16276 | ( |
16277 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16278 | ## ----------------------------------------- ## |
16279 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16280 | ## ----------------------------------------- ## | |
a848cd7e SC |
16281 | _ASBOX |
16282 | ) | | |
16283 | sed "s/^/$as_me: WARNING: /" >&2 | |
16284 | ;; | |
16285 | esac | |
16286 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16287 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16288 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16289 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16290 | else | |
ac1cb8d3 | 16291 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16292 | fi |
16293 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16294 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16295 | ||
16296 | fi | |
16297 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16298 | cat >>confdefs.h <<_ACEOF | |
16299 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16300 | _ACEOF | |
16301 | ||
16302 | fi | |
16303 | ||
16304 | done | |
16305 | ||
16306 | ||
16307 | for ac_header in unistd.h | |
16308 | do | |
16309 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16310 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16311 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16312 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16313 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16314 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16315 | fi | |
16316 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16317 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16318 | else | |
16319 | # Is the header compilable? | |
16320 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16321 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16322 | cat >conftest.$ac_ext <<_ACEOF | |
16323 | /* confdefs.h. */ | |
16324 | _ACEOF | |
16325 | cat confdefs.h >>conftest.$ac_ext | |
16326 | cat >>conftest.$ac_ext <<_ACEOF | |
16327 | /* end confdefs.h. */ | |
16328 | $ac_includes_default | |
16329 | #include <$ac_header> | |
16330 | _ACEOF | |
16331 | rm -f conftest.$ac_objext | |
16332 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16333 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16334 | ac_status=$? |
ac1cb8d3 VS |
16335 | grep -v '^ *+' conftest.er1 >conftest.err |
16336 | rm -f conftest.er1 | |
16337 | cat conftest.err >&5 | |
a848cd7e SC |
16338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16339 | (exit $ac_status); } && | |
5d7b7554 | 16340 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16342 | (eval $ac_try) 2>&5 | |
16343 | ac_status=$? | |
16344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16345 | (exit $ac_status); }; } && | |
16346 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16348 | (eval $ac_try) 2>&5 | |
16349 | ac_status=$? | |
16350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16351 | (exit $ac_status); }; }; then | |
16352 | ac_header_compiler=yes | |
16353 | else | |
16354 | echo "$as_me: failed program was:" >&5 | |
16355 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16356 | ||
16357 | ac_header_compiler=no | |
16358 | fi | |
ac1cb8d3 | 16359 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16360 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16361 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16362 | ||
16363 | # Is the header present? | |
16364 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16365 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16366 | cat >conftest.$ac_ext <<_ACEOF | |
16367 | /* confdefs.h. */ | |
16368 | _ACEOF | |
16369 | cat confdefs.h >>conftest.$ac_ext | |
16370 | cat >>conftest.$ac_ext <<_ACEOF | |
16371 | /* end confdefs.h. */ | |
16372 | #include <$ac_header> | |
16373 | _ACEOF | |
16374 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16375 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16376 | ac_status=$? | |
16377 | grep -v '^ *+' conftest.er1 >conftest.err | |
16378 | rm -f conftest.er1 | |
16379 | cat conftest.err >&5 | |
16380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16381 | (exit $ac_status); } >/dev/null; then | |
16382 | if test -s conftest.err; then | |
5d7b7554 VZ |
16383 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
16384 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
16385 | else |
16386 | ac_cpp_err= | |
16387 | fi | |
16388 | else | |
16389 | ac_cpp_err=yes | |
16390 | fi | |
16391 | if test -z "$ac_cpp_err"; then | |
16392 | ac_header_preproc=yes | |
16393 | else | |
16394 | echo "$as_me: failed program was:" >&5 | |
16395 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16396 | ||
16397 | ac_header_preproc=no | |
16398 | fi | |
16399 | rm -f conftest.err conftest.$ac_ext | |
16400 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16401 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16402 | ||
16403 | # So? What about this header? | |
5d7b7554 | 16404 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 16405 | yes:no: ) |
a848cd7e SC |
16406 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16407 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16408 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16409 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16410 | ac_header_preproc=yes | |
a848cd7e | 16411 | ;; |
ac1cb8d3 | 16412 | no:yes:* ) |
a848cd7e SC |
16413 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16414 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16415 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16416 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16417 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16418 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16419 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16420 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16421 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16422 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16423 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16424 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16425 | ( |
16426 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16427 | ## ----------------------------------------- ## |
16428 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16429 | ## ----------------------------------------- ## | |
a848cd7e SC |
16430 | _ASBOX |
16431 | ) | | |
16432 | sed "s/^/$as_me: WARNING: /" >&2 | |
16433 | ;; | |
16434 | esac | |
16435 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16436 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16437 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16438 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16439 | else | |
ac1cb8d3 | 16440 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16441 | fi |
16442 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16443 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16444 | ||
16445 | fi | |
16446 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16447 | cat >>confdefs.h <<_ACEOF | |
16448 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16449 | _ACEOF | |
16450 | ||
16451 | fi | |
16452 | ||
16453 | done | |
16454 | ||
16455 | ||
16456 | for ac_header in wchar.h | |
16457 | do | |
16458 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16459 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16460 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16461 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16462 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16463 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16464 | fi | |
16465 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16466 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16467 | else | |
16468 | # Is the header compilable? | |
16469 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16470 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16471 | cat >conftest.$ac_ext <<_ACEOF | |
16472 | /* confdefs.h. */ | |
16473 | _ACEOF | |
16474 | cat confdefs.h >>conftest.$ac_ext | |
16475 | cat >>conftest.$ac_ext <<_ACEOF | |
16476 | /* end confdefs.h. */ | |
16477 | $ac_includes_default | |
16478 | #include <$ac_header> | |
16479 | _ACEOF | |
16480 | rm -f conftest.$ac_objext | |
16481 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16482 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16483 | ac_status=$? |
ac1cb8d3 VS |
16484 | grep -v '^ *+' conftest.er1 >conftest.err |
16485 | rm -f conftest.er1 | |
16486 | cat conftest.err >&5 | |
a848cd7e SC |
16487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16488 | (exit $ac_status); } && | |
5d7b7554 | 16489 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16491 | (eval $ac_try) 2>&5 | |
16492 | ac_status=$? | |
16493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16494 | (exit $ac_status); }; } && | |
16495 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16497 | (eval $ac_try) 2>&5 | |
16498 | ac_status=$? | |
16499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16500 | (exit $ac_status); }; }; then | |
16501 | ac_header_compiler=yes | |
16502 | else | |
16503 | echo "$as_me: failed program was:" >&5 | |
16504 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16505 | ||
16506 | ac_header_compiler=no | |
16507 | fi | |
ac1cb8d3 | 16508 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16509 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16510 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16511 | ||
16512 | # Is the header present? | |
16513 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16514 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16515 | cat >conftest.$ac_ext <<_ACEOF | |
16516 | /* confdefs.h. */ | |
16517 | _ACEOF | |
16518 | cat confdefs.h >>conftest.$ac_ext | |
16519 | cat >>conftest.$ac_ext <<_ACEOF | |
16520 | /* end confdefs.h. */ | |
16521 | #include <$ac_header> | |
16522 | _ACEOF | |
16523 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16524 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16525 | ac_status=$? | |
16526 | grep -v '^ *+' conftest.er1 >conftest.err | |
16527 | rm -f conftest.er1 | |
16528 | cat conftest.err >&5 | |
16529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16530 | (exit $ac_status); } >/dev/null; then | |
16531 | if test -s conftest.err; then | |
5d7b7554 VZ |
16532 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
16533 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
16534 | else |
16535 | ac_cpp_err= | |
16536 | fi | |
16537 | else | |
16538 | ac_cpp_err=yes | |
16539 | fi | |
16540 | if test -z "$ac_cpp_err"; then | |
16541 | ac_header_preproc=yes | |
16542 | else | |
16543 | echo "$as_me: failed program was:" >&5 | |
16544 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16545 | ||
16546 | ac_header_preproc=no | |
16547 | fi | |
16548 | rm -f conftest.err conftest.$ac_ext | |
16549 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16550 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16551 | ||
16552 | # So? What about this header? | |
5d7b7554 | 16553 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 16554 | yes:no: ) |
a848cd7e SC |
16555 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16556 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16557 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16558 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16559 | ac_header_preproc=yes | |
a848cd7e | 16560 | ;; |
ac1cb8d3 | 16561 | no:yes:* ) |
a848cd7e SC |
16562 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16563 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16564 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16565 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16566 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16567 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16568 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16569 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16570 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16571 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16572 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16573 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16574 | ( |
16575 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16576 | ## ----------------------------------------- ## |
16577 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16578 | ## ----------------------------------------- ## | |
a848cd7e SC |
16579 | _ASBOX |
16580 | ) | | |
16581 | sed "s/^/$as_me: WARNING: /" >&2 | |
16582 | ;; | |
16583 | esac | |
16584 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16585 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16586 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16587 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16588 | else | |
ac1cb8d3 | 16589 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16590 | fi |
16591 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16592 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16593 | ||
16594 | fi | |
16595 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16596 | cat >>confdefs.h <<_ACEOF | |
16597 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16598 | _ACEOF | |
16599 | ||
16600 | fi | |
16601 | ||
16602 | done | |
16603 | ||
16604 | ||
16605 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
16606 | ||
16607 | for ac_header in wcstr.h | |
16608 | do | |
16609 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16610 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16611 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16612 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16613 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16614 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16615 | fi | |
16616 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16617 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16618 | else | |
16619 | # Is the header compilable? | |
16620 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16621 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16622 | cat >conftest.$ac_ext <<_ACEOF | |
16623 | /* confdefs.h. */ | |
16624 | _ACEOF | |
16625 | cat confdefs.h >>conftest.$ac_ext | |
16626 | cat >>conftest.$ac_ext <<_ACEOF | |
16627 | /* end confdefs.h. */ | |
16628 | $ac_includes_default | |
16629 | #include <$ac_header> | |
16630 | _ACEOF | |
16631 | rm -f conftest.$ac_objext | |
16632 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16633 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16634 | ac_status=$? |
ac1cb8d3 VS |
16635 | grep -v '^ *+' conftest.er1 >conftest.err |
16636 | rm -f conftest.er1 | |
16637 | cat conftest.err >&5 | |
a848cd7e SC |
16638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16639 | (exit $ac_status); } && | |
5d7b7554 | 16640 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16642 | (eval $ac_try) 2>&5 | |
16643 | ac_status=$? | |
16644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16645 | (exit $ac_status); }; } && | |
16646 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16648 | (eval $ac_try) 2>&5 | |
16649 | ac_status=$? | |
16650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16651 | (exit $ac_status); }; }; then | |
16652 | ac_header_compiler=yes | |
16653 | else | |
16654 | echo "$as_me: failed program was:" >&5 | |
16655 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16656 | ||
16657 | ac_header_compiler=no | |
16658 | fi | |
ac1cb8d3 | 16659 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16660 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16661 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16662 | ||
16663 | # Is the header present? | |
16664 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16665 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
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 | #include <$ac_header> | |
16673 | _ACEOF | |
16674 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16675 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16676 | ac_status=$? | |
16677 | grep -v '^ *+' conftest.er1 >conftest.err | |
16678 | rm -f conftest.er1 | |
16679 | cat conftest.err >&5 | |
16680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16681 | (exit $ac_status); } >/dev/null; then | |
16682 | if test -s conftest.err; then | |
5d7b7554 VZ |
16683 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
16684 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
16685 | else |
16686 | ac_cpp_err= | |
16687 | fi | |
16688 | else | |
16689 | ac_cpp_err=yes | |
16690 | fi | |
16691 | if test -z "$ac_cpp_err"; then | |
16692 | ac_header_preproc=yes | |
16693 | else | |
16694 | echo "$as_me: failed program was:" >&5 | |
16695 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16696 | ||
16697 | ac_header_preproc=no | |
16698 | fi | |
16699 | rm -f conftest.err conftest.$ac_ext | |
16700 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16701 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16702 | ||
16703 | # So? What about this header? | |
5d7b7554 | 16704 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 16705 | yes:no: ) |
a848cd7e SC |
16706 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16707 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16708 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16709 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16710 | ac_header_preproc=yes | |
a848cd7e | 16711 | ;; |
ac1cb8d3 | 16712 | no:yes:* ) |
a848cd7e SC |
16713 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16714 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16715 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16716 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16717 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16718 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16719 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16720 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16721 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16722 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16723 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16724 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16725 | ( |
16726 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16727 | ## ----------------------------------------- ## |
16728 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16729 | ## ----------------------------------------- ## | |
a848cd7e SC |
16730 | _ASBOX |
16731 | ) | | |
16732 | sed "s/^/$as_me: WARNING: /" >&2 | |
16733 | ;; | |
16734 | esac | |
16735 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16736 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16737 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16738 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16739 | else | |
ac1cb8d3 | 16740 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16741 | fi |
16742 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16743 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16744 | ||
16745 | fi | |
16746 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16747 | cat >>confdefs.h <<_ACEOF | |
16748 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16749 | _ACEOF | |
16750 | ||
16751 | fi | |
16752 | ||
16753 | done | |
16754 | ||
16755 | fi | |
16756 | ||
16757 | ||
16758 | for ac_header in fnmatch.h | |
16759 | do | |
16760 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16761 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16762 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16763 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16764 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16765 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16766 | fi | |
16767 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16768 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16769 | else | |
16770 | # Is the header compilable? | |
16771 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16772 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16773 | cat >conftest.$ac_ext <<_ACEOF | |
16774 | /* confdefs.h. */ | |
16775 | _ACEOF | |
16776 | cat confdefs.h >>conftest.$ac_ext | |
16777 | cat >>conftest.$ac_ext <<_ACEOF | |
16778 | /* end confdefs.h. */ | |
16779 | $ac_includes_default | |
16780 | #include <$ac_header> | |
16781 | _ACEOF | |
16782 | rm -f conftest.$ac_objext | |
16783 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16784 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16785 | ac_status=$? |
ac1cb8d3 VS |
16786 | grep -v '^ *+' conftest.er1 >conftest.err |
16787 | rm -f conftest.er1 | |
16788 | cat conftest.err >&5 | |
a848cd7e SC |
16789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16790 | (exit $ac_status); } && | |
5d7b7554 | 16791 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16793 | (eval $ac_try) 2>&5 | |
16794 | ac_status=$? | |
16795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16796 | (exit $ac_status); }; } && | |
16797 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16799 | (eval $ac_try) 2>&5 | |
16800 | ac_status=$? | |
16801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16802 | (exit $ac_status); }; }; then | |
16803 | ac_header_compiler=yes | |
16804 | else | |
16805 | echo "$as_me: failed program was:" >&5 | |
16806 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16807 | ||
16808 | ac_header_compiler=no | |
16809 | fi | |
ac1cb8d3 | 16810 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16811 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16812 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16813 | ||
16814 | # Is the header present? | |
16815 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16816 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16817 | cat >conftest.$ac_ext <<_ACEOF | |
16818 | /* confdefs.h. */ | |
16819 | _ACEOF | |
16820 | cat confdefs.h >>conftest.$ac_ext | |
16821 | cat >>conftest.$ac_ext <<_ACEOF | |
16822 | /* end confdefs.h. */ | |
16823 | #include <$ac_header> | |
16824 | _ACEOF | |
16825 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16826 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16827 | ac_status=$? | |
16828 | grep -v '^ *+' conftest.er1 >conftest.err | |
16829 | rm -f conftest.er1 | |
16830 | cat conftest.err >&5 | |
16831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16832 | (exit $ac_status); } >/dev/null; then | |
16833 | if test -s conftest.err; then | |
5d7b7554 VZ |
16834 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
16835 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
16836 | else |
16837 | ac_cpp_err= | |
16838 | fi | |
16839 | else | |
16840 | ac_cpp_err=yes | |
16841 | fi | |
16842 | if test -z "$ac_cpp_err"; then | |
16843 | ac_header_preproc=yes | |
16844 | else | |
16845 | echo "$as_me: failed program was:" >&5 | |
16846 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16847 | ||
16848 | ac_header_preproc=no | |
16849 | fi | |
16850 | rm -f conftest.err conftest.$ac_ext | |
16851 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16852 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16853 | ||
16854 | # So? What about this header? | |
5d7b7554 | 16855 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 16856 | yes:no: ) |
a848cd7e SC |
16857 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16858 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16859 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16860 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16861 | ac_header_preproc=yes | |
a848cd7e | 16862 | ;; |
ac1cb8d3 | 16863 | no:yes:* ) |
a848cd7e SC |
16864 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16865 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16866 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16867 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16868 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16869 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16870 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16871 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16872 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16873 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16874 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16875 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16876 | ( |
16877 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16878 | ## ----------------------------------------- ## |
16879 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16880 | ## ----------------------------------------- ## | |
a848cd7e SC |
16881 | _ASBOX |
16882 | ) | | |
16883 | sed "s/^/$as_me: WARNING: /" >&2 | |
16884 | ;; | |
16885 | esac | |
16886 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16887 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16888 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16889 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16890 | else | |
ac1cb8d3 | 16891 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16892 | fi |
16893 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16894 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16895 | ||
16896 | fi | |
16897 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16898 | cat >>confdefs.h <<_ACEOF | |
16899 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16900 | _ACEOF | |
16901 | ||
16902 | fi | |
16903 | ||
16904 | done | |
16905 | ||
16906 | ||
a848cd7e SC |
16907 | |
16908 | for ac_header in langinfo.h | |
16909 | do | |
16910 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16911 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16912 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16913 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16914 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16915 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16916 | fi | |
16917 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16918 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16919 | else | |
16920 | # Is the header compilable? | |
16921 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16922 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16923 | cat >conftest.$ac_ext <<_ACEOF | |
16924 | /* confdefs.h. */ | |
16925 | _ACEOF | |
16926 | cat confdefs.h >>conftest.$ac_ext | |
16927 | cat >>conftest.$ac_ext <<_ACEOF | |
16928 | /* end confdefs.h. */ | |
16929 | $ac_includes_default | |
16930 | #include <$ac_header> | |
16931 | _ACEOF | |
16932 | rm -f conftest.$ac_objext | |
16933 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16934 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16935 | ac_status=$? |
ac1cb8d3 VS |
16936 | grep -v '^ *+' conftest.er1 >conftest.err |
16937 | rm -f conftest.er1 | |
16938 | cat conftest.err >&5 | |
a848cd7e SC |
16939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16940 | (exit $ac_status); } && | |
5d7b7554 | 16941 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
16942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16943 | (eval $ac_try) 2>&5 | |
16944 | ac_status=$? | |
16945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16946 | (exit $ac_status); }; } && | |
16947 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16949 | (eval $ac_try) 2>&5 | |
16950 | ac_status=$? | |
16951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16952 | (exit $ac_status); }; }; then | |
16953 | ac_header_compiler=yes | |
16954 | else | |
16955 | echo "$as_me: failed program was:" >&5 | |
16956 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16957 | ||
16958 | ac_header_compiler=no | |
16959 | fi | |
ac1cb8d3 | 16960 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16961 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16962 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16963 | ||
16964 | # Is the header present? | |
16965 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16966 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16967 | cat >conftest.$ac_ext <<_ACEOF | |
16968 | /* confdefs.h. */ | |
16969 | _ACEOF | |
16970 | cat confdefs.h >>conftest.$ac_ext | |
16971 | cat >>conftest.$ac_ext <<_ACEOF | |
16972 | /* end confdefs.h. */ | |
16973 | #include <$ac_header> | |
16974 | _ACEOF | |
16975 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16976 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16977 | ac_status=$? | |
16978 | grep -v '^ *+' conftest.er1 >conftest.err | |
16979 | rm -f conftest.er1 | |
16980 | cat conftest.err >&5 | |
16981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16982 | (exit $ac_status); } >/dev/null; then | |
16983 | if test -s conftest.err; then | |
5d7b7554 VZ |
16984 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
16985 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
16986 | else |
16987 | ac_cpp_err= | |
16988 | fi | |
16989 | else | |
16990 | ac_cpp_err=yes | |
16991 | fi | |
16992 | if test -z "$ac_cpp_err"; then | |
16993 | ac_header_preproc=yes | |
16994 | else | |
16995 | echo "$as_me: failed program was:" >&5 | |
16996 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16997 | ||
16998 | ac_header_preproc=no | |
16999 | fi | |
17000 | rm -f conftest.err conftest.$ac_ext | |
17001 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17002 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17003 | ||
17004 | # So? What about this header? | |
5d7b7554 | 17005 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 17006 | yes:no: ) |
a848cd7e SC |
17007 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17008 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
17009 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
17010 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17011 | ac_header_preproc=yes | |
a848cd7e | 17012 | ;; |
ac1cb8d3 | 17013 | no:yes:* ) |
a848cd7e SC |
17014 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17015 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
17016 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
17017 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17018 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17019 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17020 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17021 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
17022 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
17023 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
17024 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
17025 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
17026 | ( |
17027 | cat <<\_ASBOX | |
ac1cb8d3 VS |
17028 | ## ----------------------------------------- ## |
17029 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
17030 | ## ----------------------------------------- ## | |
a848cd7e SC |
17031 | _ASBOX |
17032 | ) | | |
17033 | sed "s/^/$as_me: WARNING: /" >&2 | |
17034 | ;; | |
17035 | esac | |
17036 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17037 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17038 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17039 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17040 | else | |
ac1cb8d3 | 17041 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
17042 | fi |
17043 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17044 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17045 | ||
17046 | fi | |
17047 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
17048 | cat >>confdefs.h <<_ACEOF | |
17049 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17050 | _ACEOF | |
17051 | ||
17052 | fi | |
17053 | ||
17054 | done | |
17055 | ||
17056 | ||
17057 | case "${host}" in | |
17058 | *-pc-os2_emx | *-pc-os2-emx ) | |
391a765e VS |
17059 | if test $ac_cv_header_langinfo_h = "yes" \ |
17060 | -a \( "$wx_cv_gccversion" = "EMX2" \ | |
17061 | -o "$wx_cv_gccversion" = "EMX3" \ | |
17062 | -o "$wx_cv_gccversion" = "Innotek5" \); then | |
a848cd7e SC |
17063 | LIBS="$LIBS -lintl" |
17064 | fi | |
17065 | ;; | |
17066 | esac | |
17067 | ||
a848cd7e SC |
17068 | |
17069 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
17070 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
17071 | if test "${ac_cv_c_const+set}" = set; then | |
17072 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17073 | else | |
17074 | cat >conftest.$ac_ext <<_ACEOF | |
17075 | /* confdefs.h. */ | |
17076 | _ACEOF | |
17077 | cat confdefs.h >>conftest.$ac_ext | |
17078 | cat >>conftest.$ac_ext <<_ACEOF | |
17079 | /* end confdefs.h. */ | |
17080 | ||
17081 | int | |
17082 | main () | |
17083 | { | |
17084 | /* FIXME: Include the comments suggested by Paul. */ | |
17085 | #ifndef __cplusplus | |
17086 | /* Ultrix mips cc rejects this. */ | |
17087 | typedef int charset[2]; | |
17088 | const charset x; | |
17089 | /* SunOS 4.1.1 cc rejects this. */ | |
17090 | char const *const *ccp; | |
17091 | char **p; | |
17092 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
17093 | struct point {int x, y;}; | |
17094 | static struct point const zero = {0,0}; | |
17095 | /* AIX XL C 1.02.0.0 rejects this. | |
17096 | It does not let you subtract one const X* pointer from another in | |
17097 | an arm of an if-expression whose if-part is not a constant | |
17098 | expression */ | |
17099 | const char *g = "string"; | |
17100 | ccp = &g + (g ? g-g : 0); | |
17101 | /* HPUX 7.0 cc rejects these. */ | |
17102 | ++ccp; | |
17103 | p = (char**) ccp; | |
17104 | ccp = (char const *const *) p; | |
17105 | { /* SCO 3.2v4 cc rejects this. */ | |
17106 | char *t; | |
17107 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
17108 | ||
17109 | *t++ = 0; | |
17110 | } | |
17111 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
17112 | int x[] = {25, 17}; | |
17113 | const int *foo = &x[0]; | |
17114 | ++foo; | |
17115 | } | |
17116 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
17117 | typedef const int *iptr; | |
17118 | iptr p = 0; | |
17119 | ++p; | |
17120 | } | |
17121 | { /* AIX XL C 1.02.0.0 rejects this saying | |
17122 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
17123 | struct s { int j; const int *ap[3]; }; | |
17124 | struct s *b; b->j = 5; | |
17125 | } | |
17126 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
17127 | const int foo = 10; | |
17128 | } | |
17129 | #endif | |
17130 | ||
17131 | ; | |
17132 | return 0; | |
17133 | } | |
17134 | _ACEOF | |
17135 | rm -f conftest.$ac_objext | |
17136 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17137 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17138 | ac_status=$? |
ac1cb8d3 VS |
17139 | grep -v '^ *+' conftest.er1 >conftest.err |
17140 | rm -f conftest.er1 | |
17141 | cat conftest.err >&5 | |
a848cd7e SC |
17142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17143 | (exit $ac_status); } && | |
5d7b7554 | 17144 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17146 | (eval $ac_try) 2>&5 | |
17147 | ac_status=$? | |
17148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17149 | (exit $ac_status); }; } && | |
17150 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17152 | (eval $ac_try) 2>&5 | |
17153 | ac_status=$? | |
17154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17155 | (exit $ac_status); }; }; then | |
17156 | ac_cv_c_const=yes | |
17157 | else | |
17158 | echo "$as_me: failed program was:" >&5 | |
17159 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17160 | ||
17161 | ac_cv_c_const=no | |
17162 | fi | |
ac1cb8d3 | 17163 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17164 | fi |
17165 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
17166 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
17167 | if test $ac_cv_c_const = no; then | |
17168 | ||
17169 | cat >>confdefs.h <<\_ACEOF | |
17170 | #define const | |
17171 | _ACEOF | |
17172 | ||
17173 | fi | |
17174 | ||
17175 | echo "$as_me:$LINENO: checking for inline" >&5 | |
17176 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
17177 | if test "${ac_cv_c_inline+set}" = set; then | |
17178 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17179 | else | |
17180 | ac_cv_c_inline=no | |
17181 | for ac_kw in inline __inline__ __inline; do | |
17182 | cat >conftest.$ac_ext <<_ACEOF | |
17183 | /* confdefs.h. */ | |
17184 | _ACEOF | |
17185 | cat confdefs.h >>conftest.$ac_ext | |
17186 | cat >>conftest.$ac_ext <<_ACEOF | |
17187 | /* end confdefs.h. */ | |
17188 | #ifndef __cplusplus | |
17189 | typedef int foo_t; | |
17190 | static $ac_kw foo_t static_foo () {return 0; } | |
17191 | $ac_kw foo_t foo () {return 0; } | |
17192 | #endif | |
17193 | ||
17194 | _ACEOF | |
17195 | rm -f conftest.$ac_objext | |
17196 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17197 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17198 | ac_status=$? |
ac1cb8d3 VS |
17199 | grep -v '^ *+' conftest.er1 >conftest.err |
17200 | rm -f conftest.er1 | |
17201 | cat conftest.err >&5 | |
a848cd7e SC |
17202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17203 | (exit $ac_status); } && | |
5d7b7554 | 17204 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17206 | (eval $ac_try) 2>&5 | |
17207 | ac_status=$? | |
17208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17209 | (exit $ac_status); }; } && | |
17210 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17212 | (eval $ac_try) 2>&5 | |
17213 | ac_status=$? | |
17214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17215 | (exit $ac_status); }; }; then | |
17216 | ac_cv_c_inline=$ac_kw; break | |
17217 | else | |
17218 | echo "$as_me: failed program was:" >&5 | |
17219 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17220 | ||
17221 | fi | |
ac1cb8d3 | 17222 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17223 | done |
17224 | ||
17225 | fi | |
17226 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
17227 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
ac1cb8d3 VS |
17228 | |
17229 | ||
a848cd7e SC |
17230 | case $ac_cv_c_inline in |
17231 | inline | yes) ;; | |
ac1cb8d3 VS |
17232 | *) |
17233 | case $ac_cv_c_inline in | |
17234 | no) ac_val=;; | |
17235 | *) ac_val=$ac_cv_c_inline;; | |
17236 | esac | |
17237 | cat >>confdefs.h <<_ACEOF | |
17238 | #ifndef __cplusplus | |
17239 | #define inline $ac_val | |
17240 | #endif | |
de59c161 | 17241 | _ACEOF |
ac1cb8d3 | 17242 | ;; |
a848cd7e SC |
17243 | esac |
17244 | ||
17245 | ||
17246 | echo "$as_me:$LINENO: checking for char" >&5 | |
17247 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
17248 | if test "${ac_cv_type_char+set}" = set; then | |
17249 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17250 | else | |
17251 | cat >conftest.$ac_ext <<_ACEOF | |
17252 | /* confdefs.h. */ | |
17253 | _ACEOF | |
17254 | cat confdefs.h >>conftest.$ac_ext | |
17255 | cat >>conftest.$ac_ext <<_ACEOF | |
17256 | /* end confdefs.h. */ | |
17257 | $ac_includes_default | |
17258 | int | |
17259 | main () | |
17260 | { | |
17261 | if ((char *) 0) | |
17262 | return 0; | |
17263 | if (sizeof (char)) | |
17264 | return 0; | |
17265 | ; | |
17266 | return 0; | |
17267 | } | |
17268 | _ACEOF | |
17269 | rm -f conftest.$ac_objext | |
17270 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17271 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17272 | ac_status=$? |
ac1cb8d3 VS |
17273 | grep -v '^ *+' conftest.er1 >conftest.err |
17274 | rm -f conftest.er1 | |
17275 | cat conftest.err >&5 | |
a848cd7e SC |
17276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17277 | (exit $ac_status); } && | |
5d7b7554 | 17278 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17280 | (eval $ac_try) 2>&5 | |
17281 | ac_status=$? | |
17282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17283 | (exit $ac_status); }; } && | |
17284 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17286 | (eval $ac_try) 2>&5 | |
17287 | ac_status=$? | |
17288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17289 | (exit $ac_status); }; }; then | |
17290 | ac_cv_type_char=yes | |
17291 | else | |
17292 | echo "$as_me: failed program was:" >&5 | |
17293 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17294 | ||
17295 | ac_cv_type_char=no | |
17296 | fi | |
ac1cb8d3 | 17297 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17298 | fi |
17299 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
17300 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
17301 | ||
17302 | echo "$as_me:$LINENO: checking size of char" >&5 | |
17303 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
17304 | if test "${ac_cv_sizeof_char+set}" = set; then | |
17305 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17306 | else | |
17307 | if test "$ac_cv_type_char" = yes; then | |
17308 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17309 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17310 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17311 | # This bug is HP SR number 8606223364. | |
17312 | if test "$cross_compiling" = yes; then | |
17313 | # Depending upon the size, compute the lo and hi bounds. | |
17314 | cat >conftest.$ac_ext <<_ACEOF | |
17315 | /* confdefs.h. */ | |
17316 | _ACEOF | |
17317 | cat confdefs.h >>conftest.$ac_ext | |
17318 | cat >>conftest.$ac_ext <<_ACEOF | |
17319 | /* end confdefs.h. */ | |
17320 | $ac_includes_default | |
17321 | int | |
17322 | main () | |
17323 | { | |
17324 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
17325 | test_array [0] = 0 | |
17326 | ||
17327 | ; | |
17328 | return 0; | |
17329 | } | |
17330 | _ACEOF | |
17331 | rm -f conftest.$ac_objext | |
17332 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17333 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17334 | ac_status=$? |
ac1cb8d3 VS |
17335 | grep -v '^ *+' conftest.er1 >conftest.err |
17336 | rm -f conftest.er1 | |
17337 | cat conftest.err >&5 | |
a848cd7e SC |
17338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17339 | (exit $ac_status); } && | |
5d7b7554 | 17340 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17342 | (eval $ac_try) 2>&5 | |
17343 | ac_status=$? | |
17344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17345 | (exit $ac_status); }; } && | |
17346 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17348 | (eval $ac_try) 2>&5 | |
17349 | ac_status=$? | |
17350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17351 | (exit $ac_status); }; }; then | |
17352 | ac_lo=0 ac_mid=0 | |
17353 | while :; do | |
17354 | cat >conftest.$ac_ext <<_ACEOF | |
17355 | /* confdefs.h. */ | |
17356 | _ACEOF | |
17357 | cat confdefs.h >>conftest.$ac_ext | |
17358 | cat >>conftest.$ac_ext <<_ACEOF | |
17359 | /* end confdefs.h. */ | |
17360 | $ac_includes_default | |
17361 | int | |
17362 | main () | |
17363 | { | |
17364 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
17365 | test_array [0] = 0 | |
17366 | ||
17367 | ; | |
17368 | return 0; | |
17369 | } | |
17370 | _ACEOF | |
17371 | rm -f conftest.$ac_objext | |
17372 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17373 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17374 | ac_status=$? |
ac1cb8d3 VS |
17375 | grep -v '^ *+' conftest.er1 >conftest.err |
17376 | rm -f conftest.er1 | |
17377 | cat conftest.err >&5 | |
a848cd7e SC |
17378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17379 | (exit $ac_status); } && | |
5d7b7554 | 17380 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17382 | (eval $ac_try) 2>&5 | |
17383 | ac_status=$? | |
17384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17385 | (exit $ac_status); }; } && | |
17386 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17388 | (eval $ac_try) 2>&5 | |
17389 | ac_status=$? | |
17390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17391 | (exit $ac_status); }; }; then | |
17392 | ac_hi=$ac_mid; break | |
17393 | else | |
17394 | echo "$as_me: failed program was:" >&5 | |
17395 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17396 | ||
17397 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17398 | if test $ac_lo -le $ac_mid; then |
17399 | ac_lo= ac_hi= | |
17400 | break | |
17401 | fi | |
17402 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17403 | fi |
ac1cb8d3 | 17404 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17405 | done |
17406 | else | |
17407 | echo "$as_me: failed program was:" >&5 | |
17408 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17409 | ||
17410 | cat >conftest.$ac_ext <<_ACEOF | |
17411 | /* confdefs.h. */ | |
17412 | _ACEOF | |
17413 | cat confdefs.h >>conftest.$ac_ext | |
17414 | cat >>conftest.$ac_ext <<_ACEOF | |
17415 | /* end confdefs.h. */ | |
17416 | $ac_includes_default | |
17417 | int | |
17418 | main () | |
17419 | { | |
17420 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
17421 | test_array [0] = 0 | |
17422 | ||
17423 | ; | |
17424 | return 0; | |
17425 | } | |
17426 | _ACEOF | |
17427 | rm -f conftest.$ac_objext | |
17428 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17429 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17430 | ac_status=$? |
ac1cb8d3 VS |
17431 | grep -v '^ *+' conftest.er1 >conftest.err |
17432 | rm -f conftest.er1 | |
17433 | cat conftest.err >&5 | |
a848cd7e SC |
17434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17435 | (exit $ac_status); } && | |
5d7b7554 | 17436 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17438 | (eval $ac_try) 2>&5 | |
17439 | ac_status=$? | |
17440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17441 | (exit $ac_status); }; } && | |
17442 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17444 | (eval $ac_try) 2>&5 | |
17445 | ac_status=$? | |
17446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17447 | (exit $ac_status); }; }; then | |
17448 | ac_hi=-1 ac_mid=-1 | |
17449 | while :; do | |
17450 | cat >conftest.$ac_ext <<_ACEOF | |
17451 | /* confdefs.h. */ | |
17452 | _ACEOF | |
17453 | cat confdefs.h >>conftest.$ac_ext | |
17454 | cat >>conftest.$ac_ext <<_ACEOF | |
17455 | /* end confdefs.h. */ | |
17456 | $ac_includes_default | |
17457 | int | |
17458 | main () | |
17459 | { | |
17460 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
17461 | test_array [0] = 0 | |
17462 | ||
17463 | ; | |
17464 | return 0; | |
17465 | } | |
17466 | _ACEOF | |
17467 | rm -f conftest.$ac_objext | |
17468 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17469 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17470 | ac_status=$? |
ac1cb8d3 VS |
17471 | grep -v '^ *+' conftest.er1 >conftest.err |
17472 | rm -f conftest.er1 | |
17473 | cat conftest.err >&5 | |
a848cd7e SC |
17474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17475 | (exit $ac_status); } && | |
5d7b7554 | 17476 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17478 | (eval $ac_try) 2>&5 | |
17479 | ac_status=$? | |
17480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17481 | (exit $ac_status); }; } && | |
17482 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17484 | (eval $ac_try) 2>&5 | |
17485 | ac_status=$? | |
17486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17487 | (exit $ac_status); }; }; then | |
17488 | ac_lo=$ac_mid; break | |
17489 | else | |
17490 | echo "$as_me: failed program was:" >&5 | |
17491 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17492 | ||
17493 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17494 | if test $ac_mid -le $ac_hi; then |
17495 | ac_lo= ac_hi= | |
17496 | break | |
17497 | fi | |
17498 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17499 | fi |
ac1cb8d3 | 17500 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17501 | done |
17502 | else | |
17503 | echo "$as_me: failed program was:" >&5 | |
17504 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17505 | ||
17506 | ac_lo= ac_hi= | |
17507 | fi | |
ac1cb8d3 | 17508 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17509 | fi |
ac1cb8d3 | 17510 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17511 | # Binary search between lo and hi bounds. |
17512 | while test "x$ac_lo" != "x$ac_hi"; do | |
17513 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17514 | cat >conftest.$ac_ext <<_ACEOF | |
17515 | /* confdefs.h. */ | |
17516 | _ACEOF | |
17517 | cat confdefs.h >>conftest.$ac_ext | |
17518 | cat >>conftest.$ac_ext <<_ACEOF | |
17519 | /* end confdefs.h. */ | |
17520 | $ac_includes_default | |
17521 | int | |
17522 | main () | |
17523 | { | |
17524 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
17525 | test_array [0] = 0 | |
17526 | ||
17527 | ; | |
17528 | return 0; | |
17529 | } | |
17530 | _ACEOF | |
17531 | rm -f conftest.$ac_objext | |
17532 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17533 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17534 | ac_status=$? |
ac1cb8d3 VS |
17535 | grep -v '^ *+' conftest.er1 >conftest.err |
17536 | rm -f conftest.er1 | |
17537 | cat conftest.err >&5 | |
a848cd7e SC |
17538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17539 | (exit $ac_status); } && | |
5d7b7554 | 17540 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17542 | (eval $ac_try) 2>&5 | |
17543 | ac_status=$? | |
17544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17545 | (exit $ac_status); }; } && | |
17546 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17548 | (eval $ac_try) 2>&5 | |
17549 | ac_status=$? | |
17550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17551 | (exit $ac_status); }; }; then | |
17552 | ac_hi=$ac_mid | |
17553 | else | |
17554 | echo "$as_me: failed program was:" >&5 | |
17555 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17556 | ||
17557 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17558 | fi | |
ac1cb8d3 | 17559 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17560 | done |
17561 | case $ac_lo in | |
17562 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
17563 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
17564 | See \`config.log' for more details." >&5 | |
17565 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
17566 | See \`config.log' for more details." >&2;} | |
17567 | { (exit 1); exit 1; }; } ;; | |
17568 | esac | |
17569 | else | |
17570 | if test "$cross_compiling" = yes; then | |
5d7b7554 VZ |
17571 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17572 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
17573 | { (exit 1); exit 1; }; } |
17574 | else | |
17575 | cat >conftest.$ac_ext <<_ACEOF | |
17576 | /* confdefs.h. */ | |
17577 | _ACEOF | |
17578 | cat confdefs.h >>conftest.$ac_ext | |
17579 | cat >>conftest.$ac_ext <<_ACEOF | |
17580 | /* end confdefs.h. */ | |
17581 | $ac_includes_default | |
17582 | long longval () { return (long) (sizeof (char)); } | |
17583 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
17584 | #include <stdio.h> | |
17585 | #include <stdlib.h> | |
17586 | int | |
17587 | main () | |
17588 | { | |
17589 | ||
17590 | FILE *f = fopen ("conftest.val", "w"); | |
17591 | if (! f) | |
17592 | exit (1); | |
17593 | if (((long) (sizeof (char))) < 0) | |
17594 | { | |
17595 | long i = longval (); | |
17596 | if (i != ((long) (sizeof (char)))) | |
17597 | exit (1); | |
17598 | fprintf (f, "%ld\n", i); | |
17599 | } | |
17600 | else | |
17601 | { | |
17602 | unsigned long i = ulongval (); | |
17603 | if (i != ((long) (sizeof (char)))) | |
17604 | exit (1); | |
17605 | fprintf (f, "%lu\n", i); | |
17606 | } | |
17607 | exit (ferror (f) || fclose (f) != 0); | |
17608 | ||
17609 | ; | |
17610 | return 0; | |
17611 | } | |
17612 | _ACEOF | |
17613 | rm -f conftest$ac_exeext | |
17614 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17615 | (eval $ac_link) 2>&5 | |
17616 | ac_status=$? | |
17617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17618 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17620 | (eval $ac_try) 2>&5 | |
17621 | ac_status=$? | |
17622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17623 | (exit $ac_status); }; }; then | |
17624 | ac_cv_sizeof_char=`cat conftest.val` | |
17625 | else | |
17626 | echo "$as_me: program exited with status $ac_status" >&5 | |
17627 | echo "$as_me: failed program was:" >&5 | |
17628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17629 | ||
17630 | ( exit $ac_status ) | |
17631 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
17632 | See \`config.log' for more details." >&5 | |
17633 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
17634 | See \`config.log' for more details." >&2;} | |
17635 | { (exit 1); exit 1; }; } | |
17636 | fi | |
ac1cb8d3 | 17637 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17638 | fi |
17639 | fi | |
17640 | rm -f conftest.val | |
17641 | else | |
17642 | ac_cv_sizeof_char=0 | |
17643 | fi | |
17644 | fi | |
17645 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
17646 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
17647 | cat >>confdefs.h <<_ACEOF | |
17648 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
17649 | _ACEOF | |
17650 | ||
17651 | ||
17652 | echo "$as_me:$LINENO: checking for short" >&5 | |
17653 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
17654 | if test "${ac_cv_type_short+set}" = set; then | |
17655 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17656 | else | |
17657 | cat >conftest.$ac_ext <<_ACEOF | |
17658 | /* confdefs.h. */ | |
17659 | _ACEOF | |
17660 | cat confdefs.h >>conftest.$ac_ext | |
17661 | cat >>conftest.$ac_ext <<_ACEOF | |
17662 | /* end confdefs.h. */ | |
17663 | $ac_includes_default | |
17664 | int | |
17665 | main () | |
17666 | { | |
17667 | if ((short *) 0) | |
17668 | return 0; | |
17669 | if (sizeof (short)) | |
17670 | return 0; | |
17671 | ; | |
17672 | return 0; | |
17673 | } | |
17674 | _ACEOF | |
17675 | rm -f conftest.$ac_objext | |
17676 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17677 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17678 | ac_status=$? |
ac1cb8d3 VS |
17679 | grep -v '^ *+' conftest.er1 >conftest.err |
17680 | rm -f conftest.er1 | |
17681 | cat conftest.err >&5 | |
a848cd7e SC |
17682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17683 | (exit $ac_status); } && | |
5d7b7554 | 17684 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17686 | (eval $ac_try) 2>&5 | |
17687 | ac_status=$? | |
17688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17689 | (exit $ac_status); }; } && | |
17690 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17692 | (eval $ac_try) 2>&5 | |
17693 | ac_status=$? | |
17694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17695 | (exit $ac_status); }; }; then | |
17696 | ac_cv_type_short=yes | |
17697 | else | |
17698 | echo "$as_me: failed program was:" >&5 | |
17699 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17700 | ||
17701 | ac_cv_type_short=no | |
17702 | fi | |
ac1cb8d3 | 17703 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17704 | fi |
17705 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
17706 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
17707 | ||
17708 | echo "$as_me:$LINENO: checking size of short" >&5 | |
17709 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
17710 | if test "${ac_cv_sizeof_short+set}" = set; then | |
17711 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17712 | else | |
17713 | if test "$ac_cv_type_short" = yes; then | |
17714 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17715 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17716 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17717 | # This bug is HP SR number 8606223364. | |
17718 | if test "$cross_compiling" = yes; then | |
17719 | # Depending upon the size, compute the lo and hi bounds. | |
17720 | cat >conftest.$ac_ext <<_ACEOF | |
17721 | /* confdefs.h. */ | |
17722 | _ACEOF | |
17723 | cat confdefs.h >>conftest.$ac_ext | |
17724 | cat >>conftest.$ac_ext <<_ACEOF | |
17725 | /* end confdefs.h. */ | |
17726 | $ac_includes_default | |
17727 | int | |
17728 | main () | |
17729 | { | |
17730 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
17731 | test_array [0] = 0 | |
17732 | ||
17733 | ; | |
17734 | return 0; | |
17735 | } | |
17736 | _ACEOF | |
17737 | rm -f conftest.$ac_objext | |
17738 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17739 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17740 | ac_status=$? |
ac1cb8d3 VS |
17741 | grep -v '^ *+' conftest.er1 >conftest.err |
17742 | rm -f conftest.er1 | |
17743 | cat conftest.err >&5 | |
a848cd7e SC |
17744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17745 | (exit $ac_status); } && | |
5d7b7554 | 17746 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17748 | (eval $ac_try) 2>&5 | |
17749 | ac_status=$? | |
17750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17751 | (exit $ac_status); }; } && | |
17752 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17754 | (eval $ac_try) 2>&5 | |
17755 | ac_status=$? | |
17756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17757 | (exit $ac_status); }; }; then | |
17758 | ac_lo=0 ac_mid=0 | |
17759 | while :; do | |
17760 | cat >conftest.$ac_ext <<_ACEOF | |
17761 | /* confdefs.h. */ | |
17762 | _ACEOF | |
17763 | cat confdefs.h >>conftest.$ac_ext | |
17764 | cat >>conftest.$ac_ext <<_ACEOF | |
17765 | /* end confdefs.h. */ | |
17766 | $ac_includes_default | |
17767 | int | |
17768 | main () | |
17769 | { | |
17770 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
17771 | test_array [0] = 0 | |
17772 | ||
17773 | ; | |
17774 | return 0; | |
17775 | } | |
17776 | _ACEOF | |
17777 | rm -f conftest.$ac_objext | |
17778 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17779 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17780 | ac_status=$? |
ac1cb8d3 VS |
17781 | grep -v '^ *+' conftest.er1 >conftest.err |
17782 | rm -f conftest.er1 | |
17783 | cat conftest.err >&5 | |
a848cd7e SC |
17784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17785 | (exit $ac_status); } && | |
5d7b7554 | 17786 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17788 | (eval $ac_try) 2>&5 | |
17789 | ac_status=$? | |
17790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17791 | (exit $ac_status); }; } && | |
17792 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17794 | (eval $ac_try) 2>&5 | |
17795 | ac_status=$? | |
17796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17797 | (exit $ac_status); }; }; then | |
17798 | ac_hi=$ac_mid; break | |
17799 | else | |
17800 | echo "$as_me: failed program was:" >&5 | |
17801 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17802 | ||
17803 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17804 | if test $ac_lo -le $ac_mid; then |
17805 | ac_lo= ac_hi= | |
17806 | break | |
17807 | fi | |
17808 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17809 | fi |
ac1cb8d3 | 17810 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17811 | done |
17812 | else | |
17813 | echo "$as_me: failed program was:" >&5 | |
17814 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17815 | ||
17816 | cat >conftest.$ac_ext <<_ACEOF | |
17817 | /* confdefs.h. */ | |
17818 | _ACEOF | |
17819 | cat confdefs.h >>conftest.$ac_ext | |
17820 | cat >>conftest.$ac_ext <<_ACEOF | |
17821 | /* end confdefs.h. */ | |
17822 | $ac_includes_default | |
17823 | int | |
17824 | main () | |
17825 | { | |
17826 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
17827 | test_array [0] = 0 | |
17828 | ||
17829 | ; | |
17830 | return 0; | |
17831 | } | |
17832 | _ACEOF | |
17833 | rm -f conftest.$ac_objext | |
17834 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17835 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17836 | ac_status=$? |
ac1cb8d3 VS |
17837 | grep -v '^ *+' conftest.er1 >conftest.err |
17838 | rm -f conftest.er1 | |
17839 | cat conftest.err >&5 | |
a848cd7e SC |
17840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17841 | (exit $ac_status); } && | |
5d7b7554 | 17842 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17844 | (eval $ac_try) 2>&5 | |
17845 | ac_status=$? | |
17846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17847 | (exit $ac_status); }; } && | |
17848 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17850 | (eval $ac_try) 2>&5 | |
17851 | ac_status=$? | |
17852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17853 | (exit $ac_status); }; }; then | |
17854 | ac_hi=-1 ac_mid=-1 | |
17855 | while :; do | |
17856 | cat >conftest.$ac_ext <<_ACEOF | |
17857 | /* confdefs.h. */ | |
17858 | _ACEOF | |
17859 | cat confdefs.h >>conftest.$ac_ext | |
17860 | cat >>conftest.$ac_ext <<_ACEOF | |
17861 | /* end confdefs.h. */ | |
17862 | $ac_includes_default | |
17863 | int | |
17864 | main () | |
17865 | { | |
17866 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
17867 | test_array [0] = 0 | |
17868 | ||
17869 | ; | |
17870 | return 0; | |
17871 | } | |
17872 | _ACEOF | |
17873 | rm -f conftest.$ac_objext | |
17874 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17875 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17876 | ac_status=$? |
ac1cb8d3 VS |
17877 | grep -v '^ *+' conftest.er1 >conftest.err |
17878 | rm -f conftest.er1 | |
17879 | cat conftest.err >&5 | |
a848cd7e SC |
17880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17881 | (exit $ac_status); } && | |
5d7b7554 | 17882 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17884 | (eval $ac_try) 2>&5 | |
17885 | ac_status=$? | |
17886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17887 | (exit $ac_status); }; } && | |
17888 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17890 | (eval $ac_try) 2>&5 | |
17891 | ac_status=$? | |
17892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17893 | (exit $ac_status); }; }; then | |
17894 | ac_lo=$ac_mid; break | |
17895 | else | |
17896 | echo "$as_me: failed program was:" >&5 | |
17897 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17898 | ||
17899 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17900 | if test $ac_mid -le $ac_hi; then |
17901 | ac_lo= ac_hi= | |
17902 | break | |
17903 | fi | |
17904 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17905 | fi |
ac1cb8d3 | 17906 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17907 | done |
17908 | else | |
17909 | echo "$as_me: failed program was:" >&5 | |
17910 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17911 | ||
17912 | ac_lo= ac_hi= | |
17913 | fi | |
ac1cb8d3 | 17914 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17915 | fi |
ac1cb8d3 | 17916 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17917 | # Binary search between lo and hi bounds. |
17918 | while test "x$ac_lo" != "x$ac_hi"; do | |
17919 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17920 | cat >conftest.$ac_ext <<_ACEOF | |
17921 | /* confdefs.h. */ | |
17922 | _ACEOF | |
17923 | cat confdefs.h >>conftest.$ac_ext | |
17924 | cat >>conftest.$ac_ext <<_ACEOF | |
17925 | /* end confdefs.h. */ | |
17926 | $ac_includes_default | |
17927 | int | |
17928 | main () | |
17929 | { | |
17930 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
17931 | test_array [0] = 0 | |
17932 | ||
17933 | ; | |
17934 | return 0; | |
17935 | } | |
17936 | _ACEOF | |
17937 | rm -f conftest.$ac_objext | |
17938 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17939 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17940 | ac_status=$? |
ac1cb8d3 VS |
17941 | grep -v '^ *+' conftest.er1 >conftest.err |
17942 | rm -f conftest.er1 | |
17943 | cat conftest.err >&5 | |
a848cd7e SC |
17944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17945 | (exit $ac_status); } && | |
5d7b7554 | 17946 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
17947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17948 | (eval $ac_try) 2>&5 | |
17949 | ac_status=$? | |
17950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17951 | (exit $ac_status); }; } && | |
17952 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17954 | (eval $ac_try) 2>&5 | |
17955 | ac_status=$? | |
17956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17957 | (exit $ac_status); }; }; then | |
17958 | ac_hi=$ac_mid | |
17959 | else | |
17960 | echo "$as_me: failed program was:" >&5 | |
17961 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17962 | ||
17963 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17964 | fi | |
ac1cb8d3 | 17965 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17966 | done |
17967 | case $ac_lo in | |
17968 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
17969 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
17970 | See \`config.log' for more details." >&5 | |
17971 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
17972 | See \`config.log' for more details." >&2;} | |
17973 | { (exit 1); exit 1; }; } ;; | |
17974 | esac | |
17975 | else | |
17976 | if test "$cross_compiling" = yes; then | |
5d7b7554 VZ |
17977 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
17978 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
17979 | { (exit 1); exit 1; }; } |
17980 | else | |
17981 | cat >conftest.$ac_ext <<_ACEOF | |
17982 | /* confdefs.h. */ | |
17983 | _ACEOF | |
17984 | cat confdefs.h >>conftest.$ac_ext | |
17985 | cat >>conftest.$ac_ext <<_ACEOF | |
17986 | /* end confdefs.h. */ | |
17987 | $ac_includes_default | |
17988 | long longval () { return (long) (sizeof (short)); } | |
17989 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
17990 | #include <stdio.h> | |
17991 | #include <stdlib.h> | |
17992 | int | |
17993 | main () | |
17994 | { | |
17995 | ||
17996 | FILE *f = fopen ("conftest.val", "w"); | |
17997 | if (! f) | |
17998 | exit (1); | |
17999 | if (((long) (sizeof (short))) < 0) | |
18000 | { | |
18001 | long i = longval (); | |
18002 | if (i != ((long) (sizeof (short)))) | |
18003 | exit (1); | |
18004 | fprintf (f, "%ld\n", i); | |
18005 | } | |
18006 | else | |
18007 | { | |
18008 | unsigned long i = ulongval (); | |
18009 | if (i != ((long) (sizeof (short)))) | |
18010 | exit (1); | |
18011 | fprintf (f, "%lu\n", i); | |
18012 | } | |
18013 | exit (ferror (f) || fclose (f) != 0); | |
18014 | ||
18015 | ; | |
18016 | return 0; | |
18017 | } | |
18018 | _ACEOF | |
18019 | rm -f conftest$ac_exeext | |
18020 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18021 | (eval $ac_link) 2>&5 | |
18022 | ac_status=$? | |
18023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18024 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18026 | (eval $ac_try) 2>&5 | |
18027 | ac_status=$? | |
18028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18029 | (exit $ac_status); }; }; then | |
18030 | ac_cv_sizeof_short=`cat conftest.val` | |
18031 | else | |
18032 | echo "$as_me: program exited with status $ac_status" >&5 | |
18033 | echo "$as_me: failed program was:" >&5 | |
18034 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18035 | ||
18036 | ( exit $ac_status ) | |
18037 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
18038 | See \`config.log' for more details." >&5 | |
18039 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
18040 | See \`config.log' for more details." >&2;} | |
18041 | { (exit 1); exit 1; }; } | |
18042 | fi | |
ac1cb8d3 | 18043 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18044 | fi |
18045 | fi | |
18046 | rm -f conftest.val | |
18047 | else | |
18048 | ac_cv_sizeof_short=0 | |
18049 | fi | |
18050 | fi | |
18051 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
18052 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
18053 | cat >>confdefs.h <<_ACEOF | |
18054 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
18055 | _ACEOF | |
18056 | ||
18057 | ||
18058 | echo "$as_me:$LINENO: checking for void *" >&5 | |
18059 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
18060 | if test "${ac_cv_type_void_p+set}" = set; then | |
18061 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18062 | else | |
18063 | cat >conftest.$ac_ext <<_ACEOF | |
18064 | /* confdefs.h. */ | |
18065 | _ACEOF | |
18066 | cat confdefs.h >>conftest.$ac_ext | |
18067 | cat >>conftest.$ac_ext <<_ACEOF | |
18068 | /* end confdefs.h. */ | |
18069 | $ac_includes_default | |
18070 | int | |
18071 | main () | |
18072 | { | |
18073 | if ((void * *) 0) | |
18074 | return 0; | |
18075 | if (sizeof (void *)) | |
18076 | return 0; | |
18077 | ; | |
18078 | return 0; | |
18079 | } | |
18080 | _ACEOF | |
18081 | rm -f conftest.$ac_objext | |
18082 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18083 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18084 | ac_status=$? |
ac1cb8d3 VS |
18085 | grep -v '^ *+' conftest.er1 >conftest.err |
18086 | rm -f conftest.er1 | |
18087 | cat conftest.err >&5 | |
a848cd7e SC |
18088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18089 | (exit $ac_status); } && | |
5d7b7554 | 18090 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18092 | (eval $ac_try) 2>&5 | |
18093 | ac_status=$? | |
18094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18095 | (exit $ac_status); }; } && | |
18096 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18098 | (eval $ac_try) 2>&5 | |
18099 | ac_status=$? | |
18100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18101 | (exit $ac_status); }; }; then | |
18102 | ac_cv_type_void_p=yes | |
18103 | else | |
18104 | echo "$as_me: failed program was:" >&5 | |
18105 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18106 | ||
18107 | ac_cv_type_void_p=no | |
18108 | fi | |
ac1cb8d3 | 18109 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18110 | fi |
18111 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
18112 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
18113 | ||
18114 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
18115 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
18116 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
18117 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18118 | else | |
18119 | if test "$ac_cv_type_void_p" = yes; then | |
18120 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18121 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18122 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18123 | # This bug is HP SR number 8606223364. | |
18124 | if test "$cross_compiling" = yes; then | |
18125 | # Depending upon the size, compute the lo and hi bounds. | |
18126 | cat >conftest.$ac_ext <<_ACEOF | |
18127 | /* confdefs.h. */ | |
18128 | _ACEOF | |
18129 | cat confdefs.h >>conftest.$ac_ext | |
18130 | cat >>conftest.$ac_ext <<_ACEOF | |
18131 | /* end confdefs.h. */ | |
18132 | $ac_includes_default | |
18133 | int | |
18134 | main () | |
18135 | { | |
18136 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
18137 | test_array [0] = 0 | |
18138 | ||
18139 | ; | |
18140 | return 0; | |
18141 | } | |
18142 | _ACEOF | |
18143 | rm -f conftest.$ac_objext | |
18144 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18145 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18146 | ac_status=$? |
ac1cb8d3 VS |
18147 | grep -v '^ *+' conftest.er1 >conftest.err |
18148 | rm -f conftest.er1 | |
18149 | cat conftest.err >&5 | |
a848cd7e SC |
18150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18151 | (exit $ac_status); } && | |
5d7b7554 | 18152 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18154 | (eval $ac_try) 2>&5 | |
18155 | ac_status=$? | |
18156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18157 | (exit $ac_status); }; } && | |
18158 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18160 | (eval $ac_try) 2>&5 | |
18161 | ac_status=$? | |
18162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18163 | (exit $ac_status); }; }; then | |
18164 | ac_lo=0 ac_mid=0 | |
18165 | while :; do | |
18166 | cat >conftest.$ac_ext <<_ACEOF | |
18167 | /* confdefs.h. */ | |
18168 | _ACEOF | |
18169 | cat confdefs.h >>conftest.$ac_ext | |
18170 | cat >>conftest.$ac_ext <<_ACEOF | |
18171 | /* end confdefs.h. */ | |
18172 | $ac_includes_default | |
18173 | int | |
18174 | main () | |
18175 | { | |
18176 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
18177 | test_array [0] = 0 | |
18178 | ||
18179 | ; | |
18180 | return 0; | |
18181 | } | |
18182 | _ACEOF | |
18183 | rm -f conftest.$ac_objext | |
18184 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18185 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18186 | ac_status=$? |
ac1cb8d3 VS |
18187 | grep -v '^ *+' conftest.er1 >conftest.err |
18188 | rm -f conftest.er1 | |
18189 | cat conftest.err >&5 | |
a848cd7e SC |
18190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18191 | (exit $ac_status); } && | |
5d7b7554 | 18192 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18194 | (eval $ac_try) 2>&5 | |
18195 | ac_status=$? | |
18196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18197 | (exit $ac_status); }; } && | |
18198 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18200 | (eval $ac_try) 2>&5 | |
18201 | ac_status=$? | |
18202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18203 | (exit $ac_status); }; }; then | |
18204 | ac_hi=$ac_mid; break | |
18205 | else | |
18206 | echo "$as_me: failed program was:" >&5 | |
18207 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18208 | ||
18209 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18210 | if test $ac_lo -le $ac_mid; then |
18211 | ac_lo= ac_hi= | |
18212 | break | |
18213 | fi | |
18214 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18215 | fi |
ac1cb8d3 | 18216 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18217 | done |
18218 | else | |
18219 | echo "$as_me: failed program was:" >&5 | |
18220 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18221 | ||
18222 | cat >conftest.$ac_ext <<_ACEOF | |
18223 | /* confdefs.h. */ | |
18224 | _ACEOF | |
18225 | cat confdefs.h >>conftest.$ac_ext | |
18226 | cat >>conftest.$ac_ext <<_ACEOF | |
18227 | /* end confdefs.h. */ | |
18228 | $ac_includes_default | |
18229 | int | |
18230 | main () | |
18231 | { | |
18232 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
18233 | test_array [0] = 0 | |
18234 | ||
18235 | ; | |
18236 | return 0; | |
18237 | } | |
18238 | _ACEOF | |
18239 | rm -f conftest.$ac_objext | |
18240 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18241 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18242 | ac_status=$? |
ac1cb8d3 VS |
18243 | grep -v '^ *+' conftest.er1 >conftest.err |
18244 | rm -f conftest.er1 | |
18245 | cat conftest.err >&5 | |
a848cd7e SC |
18246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18247 | (exit $ac_status); } && | |
5d7b7554 | 18248 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18250 | (eval $ac_try) 2>&5 | |
18251 | ac_status=$? | |
18252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18253 | (exit $ac_status); }; } && | |
18254 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18256 | (eval $ac_try) 2>&5 | |
18257 | ac_status=$? | |
18258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18259 | (exit $ac_status); }; }; then | |
18260 | ac_hi=-1 ac_mid=-1 | |
18261 | while :; do | |
18262 | cat >conftest.$ac_ext <<_ACEOF | |
18263 | /* confdefs.h. */ | |
18264 | _ACEOF | |
18265 | cat confdefs.h >>conftest.$ac_ext | |
18266 | cat >>conftest.$ac_ext <<_ACEOF | |
18267 | /* end confdefs.h. */ | |
18268 | $ac_includes_default | |
18269 | int | |
18270 | main () | |
18271 | { | |
18272 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
18273 | test_array [0] = 0 | |
18274 | ||
18275 | ; | |
18276 | return 0; | |
18277 | } | |
18278 | _ACEOF | |
18279 | rm -f conftest.$ac_objext | |
18280 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18281 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18282 | ac_status=$? |
ac1cb8d3 VS |
18283 | grep -v '^ *+' conftest.er1 >conftest.err |
18284 | rm -f conftest.er1 | |
18285 | cat conftest.err >&5 | |
a848cd7e SC |
18286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18287 | (exit $ac_status); } && | |
5d7b7554 | 18288 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18290 | (eval $ac_try) 2>&5 | |
18291 | ac_status=$? | |
18292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18293 | (exit $ac_status); }; } && | |
18294 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18296 | (eval $ac_try) 2>&5 | |
18297 | ac_status=$? | |
18298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18299 | (exit $ac_status); }; }; then | |
18300 | ac_lo=$ac_mid; break | |
18301 | else | |
18302 | echo "$as_me: failed program was:" >&5 | |
18303 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18304 | ||
18305 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18306 | if test $ac_mid -le $ac_hi; then |
18307 | ac_lo= ac_hi= | |
18308 | break | |
18309 | fi | |
18310 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18311 | fi |
ac1cb8d3 | 18312 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18313 | done |
18314 | else | |
18315 | echo "$as_me: failed program was:" >&5 | |
18316 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18317 | ||
18318 | ac_lo= ac_hi= | |
18319 | fi | |
ac1cb8d3 | 18320 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18321 | fi |
ac1cb8d3 | 18322 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18323 | # Binary search between lo and hi bounds. |
18324 | while test "x$ac_lo" != "x$ac_hi"; do | |
18325 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18326 | cat >conftest.$ac_ext <<_ACEOF | |
18327 | /* confdefs.h. */ | |
18328 | _ACEOF | |
18329 | cat confdefs.h >>conftest.$ac_ext | |
18330 | cat >>conftest.$ac_ext <<_ACEOF | |
18331 | /* end confdefs.h. */ | |
18332 | $ac_includes_default | |
18333 | int | |
18334 | main () | |
18335 | { | |
18336 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
18337 | test_array [0] = 0 | |
18338 | ||
18339 | ; | |
18340 | return 0; | |
18341 | } | |
18342 | _ACEOF | |
18343 | rm -f conftest.$ac_objext | |
18344 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18345 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18346 | ac_status=$? |
ac1cb8d3 VS |
18347 | grep -v '^ *+' conftest.er1 >conftest.err |
18348 | rm -f conftest.er1 | |
18349 | cat conftest.err >&5 | |
a848cd7e SC |
18350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18351 | (exit $ac_status); } && | |
5d7b7554 | 18352 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18354 | (eval $ac_try) 2>&5 | |
18355 | ac_status=$? | |
18356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18357 | (exit $ac_status); }; } && | |
18358 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18360 | (eval $ac_try) 2>&5 | |
18361 | ac_status=$? | |
18362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18363 | (exit $ac_status); }; }; then | |
18364 | ac_hi=$ac_mid | |
18365 | else | |
18366 | echo "$as_me: failed program was:" >&5 | |
18367 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18368 | ||
18369 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18370 | fi | |
ac1cb8d3 | 18371 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18372 | done |
18373 | case $ac_lo in | |
18374 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
18375 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
18376 | See \`config.log' for more details." >&5 | |
18377 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
18378 | See \`config.log' for more details." >&2;} | |
18379 | { (exit 1); exit 1; }; } ;; | |
18380 | esac | |
18381 | else | |
18382 | if test "$cross_compiling" = yes; then | |
5d7b7554 VZ |
18383 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
18384 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
18385 | { (exit 1); exit 1; }; } |
18386 | else | |
18387 | cat >conftest.$ac_ext <<_ACEOF | |
18388 | /* confdefs.h. */ | |
18389 | _ACEOF | |
18390 | cat confdefs.h >>conftest.$ac_ext | |
18391 | cat >>conftest.$ac_ext <<_ACEOF | |
18392 | /* end confdefs.h. */ | |
18393 | $ac_includes_default | |
18394 | long longval () { return (long) (sizeof (void *)); } | |
18395 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
18396 | #include <stdio.h> | |
18397 | #include <stdlib.h> | |
18398 | int | |
18399 | main () | |
18400 | { | |
18401 | ||
18402 | FILE *f = fopen ("conftest.val", "w"); | |
18403 | if (! f) | |
18404 | exit (1); | |
18405 | if (((long) (sizeof (void *))) < 0) | |
18406 | { | |
18407 | long i = longval (); | |
18408 | if (i != ((long) (sizeof (void *)))) | |
18409 | exit (1); | |
18410 | fprintf (f, "%ld\n", i); | |
18411 | } | |
18412 | else | |
18413 | { | |
18414 | unsigned long i = ulongval (); | |
18415 | if (i != ((long) (sizeof (void *)))) | |
18416 | exit (1); | |
18417 | fprintf (f, "%lu\n", i); | |
18418 | } | |
18419 | exit (ferror (f) || fclose (f) != 0); | |
18420 | ||
18421 | ; | |
18422 | return 0; | |
18423 | } | |
18424 | _ACEOF | |
18425 | rm -f conftest$ac_exeext | |
18426 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18427 | (eval $ac_link) 2>&5 | |
18428 | ac_status=$? | |
18429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18430 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18432 | (eval $ac_try) 2>&5 | |
18433 | ac_status=$? | |
18434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18435 | (exit $ac_status); }; }; then | |
18436 | ac_cv_sizeof_void_p=`cat conftest.val` | |
18437 | else | |
18438 | echo "$as_me: program exited with status $ac_status" >&5 | |
18439 | echo "$as_me: failed program was:" >&5 | |
18440 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18441 | ||
18442 | ( exit $ac_status ) | |
18443 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
18444 | See \`config.log' for more details." >&5 | |
18445 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
18446 | See \`config.log' for more details." >&2;} | |
18447 | { (exit 1); exit 1; }; } | |
18448 | fi | |
ac1cb8d3 | 18449 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18450 | fi |
18451 | fi | |
18452 | rm -f conftest.val | |
18453 | else | |
18454 | ac_cv_sizeof_void_p=0 | |
18455 | fi | |
18456 | fi | |
18457 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
18458 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
18459 | cat >>confdefs.h <<_ACEOF | |
18460 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
18461 | _ACEOF | |
18462 | ||
18463 | ||
18464 | echo "$as_me:$LINENO: checking for int" >&5 | |
18465 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
18466 | if test "${ac_cv_type_int+set}" = set; then | |
18467 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18468 | else | |
18469 | cat >conftest.$ac_ext <<_ACEOF | |
18470 | /* confdefs.h. */ | |
18471 | _ACEOF | |
18472 | cat confdefs.h >>conftest.$ac_ext | |
18473 | cat >>conftest.$ac_ext <<_ACEOF | |
18474 | /* end confdefs.h. */ | |
18475 | $ac_includes_default | |
18476 | int | |
18477 | main () | |
18478 | { | |
18479 | if ((int *) 0) | |
18480 | return 0; | |
18481 | if (sizeof (int)) | |
18482 | return 0; | |
18483 | ; | |
18484 | return 0; | |
18485 | } | |
18486 | _ACEOF | |
18487 | rm -f conftest.$ac_objext | |
18488 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18489 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18490 | ac_status=$? |
ac1cb8d3 VS |
18491 | grep -v '^ *+' conftest.er1 >conftest.err |
18492 | rm -f conftest.er1 | |
18493 | cat conftest.err >&5 | |
a848cd7e SC |
18494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18495 | (exit $ac_status); } && | |
5d7b7554 | 18496 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18498 | (eval $ac_try) 2>&5 | |
18499 | ac_status=$? | |
18500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18501 | (exit $ac_status); }; } && | |
18502 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18504 | (eval $ac_try) 2>&5 | |
18505 | ac_status=$? | |
18506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18507 | (exit $ac_status); }; }; then | |
18508 | ac_cv_type_int=yes | |
18509 | else | |
18510 | echo "$as_me: failed program was:" >&5 | |
18511 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18512 | ||
18513 | ac_cv_type_int=no | |
18514 | fi | |
ac1cb8d3 | 18515 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18516 | fi |
18517 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
18518 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
18519 | ||
18520 | echo "$as_me:$LINENO: checking size of int" >&5 | |
18521 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
18522 | if test "${ac_cv_sizeof_int+set}" = set; then | |
18523 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18524 | else | |
18525 | if test "$ac_cv_type_int" = yes; then | |
18526 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18527 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18528 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18529 | # This bug is HP SR number 8606223364. | |
18530 | if test "$cross_compiling" = yes; then | |
18531 | # Depending upon the size, compute the lo and hi bounds. | |
18532 | cat >conftest.$ac_ext <<_ACEOF | |
18533 | /* confdefs.h. */ | |
18534 | _ACEOF | |
18535 | cat confdefs.h >>conftest.$ac_ext | |
18536 | cat >>conftest.$ac_ext <<_ACEOF | |
18537 | /* end confdefs.h. */ | |
18538 | $ac_includes_default | |
18539 | int | |
18540 | main () | |
18541 | { | |
18542 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
18543 | test_array [0] = 0 | |
18544 | ||
18545 | ; | |
18546 | return 0; | |
18547 | } | |
18548 | _ACEOF | |
18549 | rm -f conftest.$ac_objext | |
18550 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18551 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18552 | ac_status=$? |
ac1cb8d3 VS |
18553 | grep -v '^ *+' conftest.er1 >conftest.err |
18554 | rm -f conftest.er1 | |
18555 | cat conftest.err >&5 | |
a848cd7e SC |
18556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18557 | (exit $ac_status); } && | |
5d7b7554 | 18558 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18560 | (eval $ac_try) 2>&5 | |
18561 | ac_status=$? | |
18562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18563 | (exit $ac_status); }; } && | |
18564 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18566 | (eval $ac_try) 2>&5 | |
18567 | ac_status=$? | |
18568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18569 | (exit $ac_status); }; }; then | |
18570 | ac_lo=0 ac_mid=0 | |
18571 | while :; do | |
18572 | cat >conftest.$ac_ext <<_ACEOF | |
18573 | /* confdefs.h. */ | |
18574 | _ACEOF | |
18575 | cat confdefs.h >>conftest.$ac_ext | |
18576 | cat >>conftest.$ac_ext <<_ACEOF | |
18577 | /* end confdefs.h. */ | |
18578 | $ac_includes_default | |
18579 | int | |
18580 | main () | |
18581 | { | |
18582 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
18583 | test_array [0] = 0 | |
18584 | ||
18585 | ; | |
18586 | return 0; | |
18587 | } | |
18588 | _ACEOF | |
18589 | rm -f conftest.$ac_objext | |
18590 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18591 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18592 | ac_status=$? |
ac1cb8d3 VS |
18593 | grep -v '^ *+' conftest.er1 >conftest.err |
18594 | rm -f conftest.er1 | |
18595 | cat conftest.err >&5 | |
a848cd7e SC |
18596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18597 | (exit $ac_status); } && | |
5d7b7554 | 18598 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18600 | (eval $ac_try) 2>&5 | |
18601 | ac_status=$? | |
18602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18603 | (exit $ac_status); }; } && | |
18604 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18606 | (eval $ac_try) 2>&5 | |
18607 | ac_status=$? | |
18608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18609 | (exit $ac_status); }; }; then | |
18610 | ac_hi=$ac_mid; break | |
18611 | else | |
18612 | echo "$as_me: failed program was:" >&5 | |
18613 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18614 | ||
18615 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18616 | if test $ac_lo -le $ac_mid; then |
18617 | ac_lo= ac_hi= | |
18618 | break | |
18619 | fi | |
18620 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18621 | fi |
ac1cb8d3 | 18622 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18623 | done |
18624 | else | |
18625 | echo "$as_me: failed program was:" >&5 | |
18626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18627 | ||
18628 | cat >conftest.$ac_ext <<_ACEOF | |
18629 | /* confdefs.h. */ | |
18630 | _ACEOF | |
18631 | cat confdefs.h >>conftest.$ac_ext | |
18632 | cat >>conftest.$ac_ext <<_ACEOF | |
18633 | /* end confdefs.h. */ | |
18634 | $ac_includes_default | |
18635 | int | |
18636 | main () | |
18637 | { | |
18638 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
18639 | test_array [0] = 0 | |
18640 | ||
18641 | ; | |
18642 | return 0; | |
18643 | } | |
18644 | _ACEOF | |
18645 | rm -f conftest.$ac_objext | |
18646 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18647 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18648 | ac_status=$? |
ac1cb8d3 VS |
18649 | grep -v '^ *+' conftest.er1 >conftest.err |
18650 | rm -f conftest.er1 | |
18651 | cat conftest.err >&5 | |
a848cd7e SC |
18652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18653 | (exit $ac_status); } && | |
5d7b7554 | 18654 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18656 | (eval $ac_try) 2>&5 | |
18657 | ac_status=$? | |
18658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18659 | (exit $ac_status); }; } && | |
18660 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18662 | (eval $ac_try) 2>&5 | |
18663 | ac_status=$? | |
18664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18665 | (exit $ac_status); }; }; then | |
18666 | ac_hi=-1 ac_mid=-1 | |
18667 | while :; do | |
18668 | cat >conftest.$ac_ext <<_ACEOF | |
18669 | /* confdefs.h. */ | |
18670 | _ACEOF | |
18671 | cat confdefs.h >>conftest.$ac_ext | |
18672 | cat >>conftest.$ac_ext <<_ACEOF | |
18673 | /* end confdefs.h. */ | |
18674 | $ac_includes_default | |
18675 | int | |
18676 | main () | |
18677 | { | |
18678 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
18679 | test_array [0] = 0 | |
18680 | ||
18681 | ; | |
18682 | return 0; | |
18683 | } | |
18684 | _ACEOF | |
18685 | rm -f conftest.$ac_objext | |
18686 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18687 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18688 | ac_status=$? |
ac1cb8d3 VS |
18689 | grep -v '^ *+' conftest.er1 >conftest.err |
18690 | rm -f conftest.er1 | |
18691 | cat conftest.err >&5 | |
a848cd7e SC |
18692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18693 | (exit $ac_status); } && | |
5d7b7554 | 18694 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18696 | (eval $ac_try) 2>&5 | |
18697 | ac_status=$? | |
18698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18699 | (exit $ac_status); }; } && | |
18700 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18702 | (eval $ac_try) 2>&5 | |
18703 | ac_status=$? | |
18704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18705 | (exit $ac_status); }; }; then | |
18706 | ac_lo=$ac_mid; break | |
18707 | else | |
18708 | echo "$as_me: failed program was:" >&5 | |
18709 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18710 | ||
18711 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18712 | if test $ac_mid -le $ac_hi; then |
18713 | ac_lo= ac_hi= | |
18714 | break | |
18715 | fi | |
18716 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18717 | fi |
ac1cb8d3 | 18718 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18719 | done |
18720 | else | |
18721 | echo "$as_me: failed program was:" >&5 | |
18722 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18723 | ||
18724 | ac_lo= ac_hi= | |
18725 | fi | |
ac1cb8d3 | 18726 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18727 | fi |
ac1cb8d3 | 18728 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18729 | # Binary search between lo and hi bounds. |
18730 | while test "x$ac_lo" != "x$ac_hi"; do | |
18731 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18732 | cat >conftest.$ac_ext <<_ACEOF | |
18733 | /* confdefs.h. */ | |
18734 | _ACEOF | |
18735 | cat confdefs.h >>conftest.$ac_ext | |
18736 | cat >>conftest.$ac_ext <<_ACEOF | |
18737 | /* end confdefs.h. */ | |
18738 | $ac_includes_default | |
18739 | int | |
18740 | main () | |
18741 | { | |
18742 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
18743 | test_array [0] = 0 | |
18744 | ||
18745 | ; | |
18746 | return 0; | |
18747 | } | |
18748 | _ACEOF | |
18749 | rm -f conftest.$ac_objext | |
18750 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18751 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18752 | ac_status=$? |
ac1cb8d3 VS |
18753 | grep -v '^ *+' conftest.er1 >conftest.err |
18754 | rm -f conftest.er1 | |
18755 | cat conftest.err >&5 | |
a848cd7e SC |
18756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18757 | (exit $ac_status); } && | |
5d7b7554 | 18758 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18760 | (eval $ac_try) 2>&5 | |
18761 | ac_status=$? | |
18762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18763 | (exit $ac_status); }; } && | |
18764 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18766 | (eval $ac_try) 2>&5 | |
18767 | ac_status=$? | |
18768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18769 | (exit $ac_status); }; }; then | |
18770 | ac_hi=$ac_mid | |
18771 | else | |
18772 | echo "$as_me: failed program was:" >&5 | |
18773 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18774 | ||
18775 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18776 | fi | |
ac1cb8d3 | 18777 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18778 | done |
18779 | case $ac_lo in | |
18780 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
18781 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
18782 | See \`config.log' for more details." >&5 | |
18783 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
18784 | See \`config.log' for more details." >&2;} | |
18785 | { (exit 1); exit 1; }; } ;; | |
18786 | esac | |
18787 | else | |
18788 | if test "$cross_compiling" = yes; then | |
5d7b7554 VZ |
18789 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
18790 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
18791 | { (exit 1); exit 1; }; } |
18792 | else | |
18793 | cat >conftest.$ac_ext <<_ACEOF | |
18794 | /* confdefs.h. */ | |
18795 | _ACEOF | |
18796 | cat confdefs.h >>conftest.$ac_ext | |
18797 | cat >>conftest.$ac_ext <<_ACEOF | |
18798 | /* end confdefs.h. */ | |
18799 | $ac_includes_default | |
18800 | long longval () { return (long) (sizeof (int)); } | |
18801 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
18802 | #include <stdio.h> | |
18803 | #include <stdlib.h> | |
18804 | int | |
18805 | main () | |
18806 | { | |
18807 | ||
18808 | FILE *f = fopen ("conftest.val", "w"); | |
18809 | if (! f) | |
18810 | exit (1); | |
18811 | if (((long) (sizeof (int))) < 0) | |
18812 | { | |
18813 | long i = longval (); | |
18814 | if (i != ((long) (sizeof (int)))) | |
18815 | exit (1); | |
18816 | fprintf (f, "%ld\n", i); | |
18817 | } | |
18818 | else | |
18819 | { | |
18820 | unsigned long i = ulongval (); | |
18821 | if (i != ((long) (sizeof (int)))) | |
18822 | exit (1); | |
18823 | fprintf (f, "%lu\n", i); | |
18824 | } | |
18825 | exit (ferror (f) || fclose (f) != 0); | |
18826 | ||
18827 | ; | |
18828 | return 0; | |
18829 | } | |
18830 | _ACEOF | |
18831 | rm -f conftest$ac_exeext | |
18832 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18833 | (eval $ac_link) 2>&5 | |
18834 | ac_status=$? | |
18835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18836 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18838 | (eval $ac_try) 2>&5 | |
18839 | ac_status=$? | |
18840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18841 | (exit $ac_status); }; }; then | |
18842 | ac_cv_sizeof_int=`cat conftest.val` | |
18843 | else | |
18844 | echo "$as_me: program exited with status $ac_status" >&5 | |
18845 | echo "$as_me: failed program was:" >&5 | |
18846 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18847 | ||
18848 | ( exit $ac_status ) | |
18849 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
18850 | See \`config.log' for more details." >&5 | |
18851 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
18852 | See \`config.log' for more details." >&2;} | |
18853 | { (exit 1); exit 1; }; } | |
18854 | fi | |
ac1cb8d3 | 18855 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18856 | fi |
18857 | fi | |
18858 | rm -f conftest.val | |
18859 | else | |
18860 | ac_cv_sizeof_int=0 | |
18861 | fi | |
18862 | fi | |
18863 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
18864 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
18865 | cat >>confdefs.h <<_ACEOF | |
18866 | #define SIZEOF_INT $ac_cv_sizeof_int | |
18867 | _ACEOF | |
18868 | ||
18869 | ||
18870 | echo "$as_me:$LINENO: checking for long" >&5 | |
18871 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
18872 | if test "${ac_cv_type_long+set}" = set; then | |
18873 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18874 | else | |
18875 | cat >conftest.$ac_ext <<_ACEOF | |
18876 | /* confdefs.h. */ | |
18877 | _ACEOF | |
18878 | cat confdefs.h >>conftest.$ac_ext | |
18879 | cat >>conftest.$ac_ext <<_ACEOF | |
18880 | /* end confdefs.h. */ | |
18881 | $ac_includes_default | |
18882 | int | |
18883 | main () | |
18884 | { | |
18885 | if ((long *) 0) | |
18886 | return 0; | |
18887 | if (sizeof (long)) | |
18888 | return 0; | |
18889 | ; | |
18890 | return 0; | |
18891 | } | |
18892 | _ACEOF | |
18893 | rm -f conftest.$ac_objext | |
18894 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18895 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18896 | ac_status=$? |
ac1cb8d3 VS |
18897 | grep -v '^ *+' conftest.er1 >conftest.err |
18898 | rm -f conftest.er1 | |
18899 | cat conftest.err >&5 | |
a848cd7e SC |
18900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18901 | (exit $ac_status); } && | |
5d7b7554 | 18902 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18904 | (eval $ac_try) 2>&5 | |
18905 | ac_status=$? | |
18906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18907 | (exit $ac_status); }; } && | |
18908 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18910 | (eval $ac_try) 2>&5 | |
18911 | ac_status=$? | |
18912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18913 | (exit $ac_status); }; }; then | |
18914 | ac_cv_type_long=yes | |
18915 | else | |
18916 | echo "$as_me: failed program was:" >&5 | |
18917 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18918 | ||
18919 | ac_cv_type_long=no | |
18920 | fi | |
ac1cb8d3 | 18921 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18922 | fi |
18923 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
18924 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
18925 | ||
18926 | echo "$as_me:$LINENO: checking size of long" >&5 | |
18927 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
18928 | if test "${ac_cv_sizeof_long+set}" = set; then | |
18929 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18930 | else | |
18931 | if test "$ac_cv_type_long" = yes; then | |
18932 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18933 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18934 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18935 | # This bug is HP SR number 8606223364. | |
18936 | if test "$cross_compiling" = yes; then | |
18937 | # Depending upon the size, compute the lo and hi bounds. | |
18938 | cat >conftest.$ac_ext <<_ACEOF | |
18939 | /* confdefs.h. */ | |
18940 | _ACEOF | |
18941 | cat confdefs.h >>conftest.$ac_ext | |
18942 | cat >>conftest.$ac_ext <<_ACEOF | |
18943 | /* end confdefs.h. */ | |
18944 | $ac_includes_default | |
18945 | int | |
18946 | main () | |
18947 | { | |
18948 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
18949 | test_array [0] = 0 | |
18950 | ||
18951 | ; | |
18952 | return 0; | |
18953 | } | |
18954 | _ACEOF | |
18955 | rm -f conftest.$ac_objext | |
18956 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18957 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18958 | ac_status=$? |
ac1cb8d3 VS |
18959 | grep -v '^ *+' conftest.er1 >conftest.err |
18960 | rm -f conftest.er1 | |
18961 | cat conftest.err >&5 | |
a848cd7e SC |
18962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18963 | (exit $ac_status); } && | |
5d7b7554 | 18964 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
18965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18966 | (eval $ac_try) 2>&5 | |
18967 | ac_status=$? | |
18968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18969 | (exit $ac_status); }; } && | |
18970 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18972 | (eval $ac_try) 2>&5 | |
18973 | ac_status=$? | |
18974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18975 | (exit $ac_status); }; }; then | |
18976 | ac_lo=0 ac_mid=0 | |
18977 | while :; do | |
18978 | cat >conftest.$ac_ext <<_ACEOF | |
18979 | /* confdefs.h. */ | |
18980 | _ACEOF | |
18981 | cat confdefs.h >>conftest.$ac_ext | |
18982 | cat >>conftest.$ac_ext <<_ACEOF | |
18983 | /* end confdefs.h. */ | |
18984 | $ac_includes_default | |
18985 | int | |
18986 | main () | |
18987 | { | |
18988 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
18989 | test_array [0] = 0 | |
18990 | ||
18991 | ; | |
18992 | return 0; | |
18993 | } | |
18994 | _ACEOF | |
18995 | rm -f conftest.$ac_objext | |
18996 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18997 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18998 | ac_status=$? |
ac1cb8d3 VS |
18999 | grep -v '^ *+' conftest.er1 >conftest.err |
19000 | rm -f conftest.er1 | |
19001 | cat conftest.err >&5 | |
a848cd7e SC |
19002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19003 | (exit $ac_status); } && | |
5d7b7554 | 19004 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19006 | (eval $ac_try) 2>&5 | |
19007 | ac_status=$? | |
19008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19009 | (exit $ac_status); }; } && | |
19010 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19012 | (eval $ac_try) 2>&5 | |
19013 | ac_status=$? | |
19014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19015 | (exit $ac_status); }; }; then | |
19016 | ac_hi=$ac_mid; break | |
19017 | else | |
19018 | echo "$as_me: failed program was:" >&5 | |
19019 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19020 | ||
19021 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
19022 | if test $ac_lo -le $ac_mid; then |
19023 | ac_lo= ac_hi= | |
19024 | break | |
19025 | fi | |
19026 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 19027 | fi |
ac1cb8d3 | 19028 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19029 | done |
19030 | else | |
19031 | echo "$as_me: failed program was:" >&5 | |
19032 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19033 | ||
19034 | cat >conftest.$ac_ext <<_ACEOF | |
19035 | /* confdefs.h. */ | |
19036 | _ACEOF | |
19037 | cat confdefs.h >>conftest.$ac_ext | |
19038 | cat >>conftest.$ac_ext <<_ACEOF | |
19039 | /* end confdefs.h. */ | |
19040 | $ac_includes_default | |
19041 | int | |
19042 | main () | |
19043 | { | |
19044 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
19045 | test_array [0] = 0 | |
19046 | ||
19047 | ; | |
19048 | return 0; | |
19049 | } | |
19050 | _ACEOF | |
19051 | rm -f conftest.$ac_objext | |
19052 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19053 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19054 | ac_status=$? |
ac1cb8d3 VS |
19055 | grep -v '^ *+' conftest.er1 >conftest.err |
19056 | rm -f conftest.er1 | |
19057 | cat conftest.err >&5 | |
a848cd7e SC |
19058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19059 | (exit $ac_status); } && | |
5d7b7554 | 19060 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19062 | (eval $ac_try) 2>&5 | |
19063 | ac_status=$? | |
19064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19065 | (exit $ac_status); }; } && | |
19066 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19068 | (eval $ac_try) 2>&5 | |
19069 | ac_status=$? | |
19070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19071 | (exit $ac_status); }; }; then | |
19072 | ac_hi=-1 ac_mid=-1 | |
19073 | while :; do | |
19074 | cat >conftest.$ac_ext <<_ACEOF | |
19075 | /* confdefs.h. */ | |
19076 | _ACEOF | |
19077 | cat confdefs.h >>conftest.$ac_ext | |
19078 | cat >>conftest.$ac_ext <<_ACEOF | |
19079 | /* end confdefs.h. */ | |
19080 | $ac_includes_default | |
19081 | int | |
19082 | main () | |
19083 | { | |
19084 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
19085 | test_array [0] = 0 | |
19086 | ||
19087 | ; | |
19088 | return 0; | |
19089 | } | |
19090 | _ACEOF | |
19091 | rm -f conftest.$ac_objext | |
19092 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19093 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19094 | ac_status=$? |
ac1cb8d3 VS |
19095 | grep -v '^ *+' conftest.er1 >conftest.err |
19096 | rm -f conftest.er1 | |
19097 | cat conftest.err >&5 | |
a848cd7e SC |
19098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19099 | (exit $ac_status); } && | |
5d7b7554 | 19100 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19102 | (eval $ac_try) 2>&5 | |
19103 | ac_status=$? | |
19104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19105 | (exit $ac_status); }; } && | |
19106 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19108 | (eval $ac_try) 2>&5 | |
19109 | ac_status=$? | |
19110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19111 | (exit $ac_status); }; }; then | |
19112 | ac_lo=$ac_mid; break | |
19113 | else | |
19114 | echo "$as_me: failed program was:" >&5 | |
19115 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19116 | ||
19117 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
19118 | if test $ac_mid -le $ac_hi; then |
19119 | ac_lo= ac_hi= | |
19120 | break | |
19121 | fi | |
19122 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 19123 | fi |
ac1cb8d3 | 19124 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19125 | done |
19126 | else | |
19127 | echo "$as_me: failed program was:" >&5 | |
19128 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19129 | ||
19130 | ac_lo= ac_hi= | |
19131 | fi | |
ac1cb8d3 | 19132 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19133 | fi |
ac1cb8d3 | 19134 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19135 | # Binary search between lo and hi bounds. |
19136 | while test "x$ac_lo" != "x$ac_hi"; do | |
19137 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19138 | cat >conftest.$ac_ext <<_ACEOF | |
19139 | /* confdefs.h. */ | |
19140 | _ACEOF | |
19141 | cat confdefs.h >>conftest.$ac_ext | |
19142 | cat >>conftest.$ac_ext <<_ACEOF | |
19143 | /* end confdefs.h. */ | |
19144 | $ac_includes_default | |
19145 | int | |
19146 | main () | |
19147 | { | |
19148 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
19149 | test_array [0] = 0 | |
19150 | ||
19151 | ; | |
19152 | return 0; | |
19153 | } | |
19154 | _ACEOF | |
19155 | rm -f conftest.$ac_objext | |
19156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19157 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19158 | ac_status=$? |
ac1cb8d3 VS |
19159 | grep -v '^ *+' conftest.er1 >conftest.err |
19160 | rm -f conftest.er1 | |
19161 | cat conftest.err >&5 | |
a848cd7e SC |
19162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19163 | (exit $ac_status); } && | |
5d7b7554 | 19164 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19166 | (eval $ac_try) 2>&5 | |
19167 | ac_status=$? | |
19168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19169 | (exit $ac_status); }; } && | |
19170 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19172 | (eval $ac_try) 2>&5 | |
19173 | ac_status=$? | |
19174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19175 | (exit $ac_status); }; }; then | |
19176 | ac_hi=$ac_mid | |
19177 | else | |
19178 | echo "$as_me: failed program was:" >&5 | |
19179 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19180 | ||
19181 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19182 | fi | |
ac1cb8d3 | 19183 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19184 | done |
19185 | case $ac_lo in | |
19186 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
19187 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
19188 | See \`config.log' for more details." >&5 | |
19189 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
19190 | See \`config.log' for more details." >&2;} | |
19191 | { (exit 1); exit 1; }; } ;; | |
19192 | esac | |
19193 | else | |
19194 | if test "$cross_compiling" = yes; then | |
5d7b7554 VZ |
19195 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
19196 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
19197 | { (exit 1); exit 1; }; } |
19198 | else | |
19199 | cat >conftest.$ac_ext <<_ACEOF | |
19200 | /* confdefs.h. */ | |
19201 | _ACEOF | |
19202 | cat confdefs.h >>conftest.$ac_ext | |
19203 | cat >>conftest.$ac_ext <<_ACEOF | |
19204 | /* end confdefs.h. */ | |
19205 | $ac_includes_default | |
19206 | long longval () { return (long) (sizeof (long)); } | |
19207 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
19208 | #include <stdio.h> | |
19209 | #include <stdlib.h> | |
19210 | int | |
19211 | main () | |
19212 | { | |
19213 | ||
19214 | FILE *f = fopen ("conftest.val", "w"); | |
19215 | if (! f) | |
19216 | exit (1); | |
19217 | if (((long) (sizeof (long))) < 0) | |
19218 | { | |
19219 | long i = longval (); | |
19220 | if (i != ((long) (sizeof (long)))) | |
19221 | exit (1); | |
19222 | fprintf (f, "%ld\n", i); | |
19223 | } | |
19224 | else | |
19225 | { | |
19226 | unsigned long i = ulongval (); | |
19227 | if (i != ((long) (sizeof (long)))) | |
19228 | exit (1); | |
19229 | fprintf (f, "%lu\n", i); | |
19230 | } | |
19231 | exit (ferror (f) || fclose (f) != 0); | |
19232 | ||
19233 | ; | |
19234 | return 0; | |
19235 | } | |
19236 | _ACEOF | |
19237 | rm -f conftest$ac_exeext | |
19238 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19239 | (eval $ac_link) 2>&5 | |
19240 | ac_status=$? | |
19241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19242 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19244 | (eval $ac_try) 2>&5 | |
19245 | ac_status=$? | |
19246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19247 | (exit $ac_status); }; }; then | |
19248 | ac_cv_sizeof_long=`cat conftest.val` | |
19249 | else | |
19250 | echo "$as_me: program exited with status $ac_status" >&5 | |
19251 | echo "$as_me: failed program was:" >&5 | |
19252 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19253 | ||
19254 | ( exit $ac_status ) | |
19255 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
19256 | See \`config.log' for more details." >&5 | |
19257 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
19258 | See \`config.log' for more details." >&2;} | |
19259 | { (exit 1); exit 1; }; } | |
19260 | fi | |
ac1cb8d3 | 19261 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19262 | fi |
19263 | fi | |
19264 | rm -f conftest.val | |
19265 | else | |
19266 | ac_cv_sizeof_long=0 | |
19267 | fi | |
19268 | fi | |
19269 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
19270 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
19271 | cat >>confdefs.h <<_ACEOF | |
19272 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
19273 | _ACEOF | |
19274 | ||
19275 | ||
19276 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
19277 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
19278 | if test "${ac_cv_type_size_t+set}" = set; then | |
19279 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19280 | else | |
19281 | cat >conftest.$ac_ext <<_ACEOF | |
19282 | /* confdefs.h. */ | |
19283 | _ACEOF | |
19284 | cat confdefs.h >>conftest.$ac_ext | |
19285 | cat >>conftest.$ac_ext <<_ACEOF | |
19286 | /* end confdefs.h. */ | |
19287 | $ac_includes_default | |
19288 | int | |
19289 | main () | |
19290 | { | |
19291 | if ((size_t *) 0) | |
19292 | return 0; | |
19293 | if (sizeof (size_t)) | |
19294 | return 0; | |
19295 | ; | |
19296 | return 0; | |
19297 | } | |
19298 | _ACEOF | |
19299 | rm -f conftest.$ac_objext | |
19300 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19301 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19302 | ac_status=$? |
ac1cb8d3 VS |
19303 | grep -v '^ *+' conftest.er1 >conftest.err |
19304 | rm -f conftest.er1 | |
19305 | cat conftest.err >&5 | |
a848cd7e SC |
19306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19307 | (exit $ac_status); } && | |
5d7b7554 | 19308 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19310 | (eval $ac_try) 2>&5 | |
19311 | ac_status=$? | |
19312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19313 | (exit $ac_status); }; } && | |
19314 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19316 | (eval $ac_try) 2>&5 | |
19317 | ac_status=$? | |
19318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19319 | (exit $ac_status); }; }; then | |
19320 | ac_cv_type_size_t=yes | |
19321 | else | |
19322 | echo "$as_me: failed program was:" >&5 | |
19323 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19324 | ||
19325 | ac_cv_type_size_t=no | |
19326 | fi | |
ac1cb8d3 | 19327 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19328 | fi |
19329 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
19330 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
19331 | ||
19332 | echo "$as_me:$LINENO: checking size of size_t" >&5 | |
19333 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
19334 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
19335 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19336 | else | |
19337 | if test "$ac_cv_type_size_t" = yes; then | |
19338 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19339 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19340 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19341 | # This bug is HP SR number 8606223364. | |
19342 | if test "$cross_compiling" = yes; then | |
19343 | # Depending upon the size, compute the lo and hi bounds. | |
19344 | cat >conftest.$ac_ext <<_ACEOF | |
19345 | /* confdefs.h. */ | |
19346 | _ACEOF | |
19347 | cat confdefs.h >>conftest.$ac_ext | |
19348 | cat >>conftest.$ac_ext <<_ACEOF | |
19349 | /* end confdefs.h. */ | |
19350 | $ac_includes_default | |
19351 | int | |
19352 | main () | |
19353 | { | |
19354 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
19355 | test_array [0] = 0 | |
19356 | ||
19357 | ; | |
19358 | return 0; | |
19359 | } | |
19360 | _ACEOF | |
19361 | rm -f conftest.$ac_objext | |
19362 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19363 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19364 | ac_status=$? |
ac1cb8d3 VS |
19365 | grep -v '^ *+' conftest.er1 >conftest.err |
19366 | rm -f conftest.er1 | |
19367 | cat conftest.err >&5 | |
a848cd7e SC |
19368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19369 | (exit $ac_status); } && | |
5d7b7554 | 19370 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19372 | (eval $ac_try) 2>&5 | |
19373 | ac_status=$? | |
19374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19375 | (exit $ac_status); }; } && | |
19376 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19378 | (eval $ac_try) 2>&5 | |
19379 | ac_status=$? | |
19380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19381 | (exit $ac_status); }; }; then | |
19382 | ac_lo=0 ac_mid=0 | |
19383 | while :; do | |
19384 | cat >conftest.$ac_ext <<_ACEOF | |
19385 | /* confdefs.h. */ | |
19386 | _ACEOF | |
19387 | cat confdefs.h >>conftest.$ac_ext | |
19388 | cat >>conftest.$ac_ext <<_ACEOF | |
19389 | /* end confdefs.h. */ | |
19390 | $ac_includes_default | |
19391 | int | |
19392 | main () | |
19393 | { | |
19394 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
19395 | test_array [0] = 0 | |
19396 | ||
19397 | ; | |
19398 | return 0; | |
19399 | } | |
19400 | _ACEOF | |
19401 | rm -f conftest.$ac_objext | |
19402 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19403 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19404 | ac_status=$? |
ac1cb8d3 VS |
19405 | grep -v '^ *+' conftest.er1 >conftest.err |
19406 | rm -f conftest.er1 | |
19407 | cat conftest.err >&5 | |
a848cd7e SC |
19408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19409 | (exit $ac_status); } && | |
5d7b7554 | 19410 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19412 | (eval $ac_try) 2>&5 | |
19413 | ac_status=$? | |
19414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19415 | (exit $ac_status); }; } && | |
19416 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19418 | (eval $ac_try) 2>&5 | |
19419 | ac_status=$? | |
19420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19421 | (exit $ac_status); }; }; then | |
19422 | ac_hi=$ac_mid; break | |
19423 | else | |
19424 | echo "$as_me: failed program was:" >&5 | |
19425 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19426 | ||
19427 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
19428 | if test $ac_lo -le $ac_mid; then |
19429 | ac_lo= ac_hi= | |
19430 | break | |
19431 | fi | |
19432 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 19433 | fi |
ac1cb8d3 | 19434 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19435 | done |
19436 | else | |
19437 | echo "$as_me: failed program was:" >&5 | |
19438 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19439 | ||
19440 | cat >conftest.$ac_ext <<_ACEOF | |
19441 | /* confdefs.h. */ | |
19442 | _ACEOF | |
19443 | cat confdefs.h >>conftest.$ac_ext | |
19444 | cat >>conftest.$ac_ext <<_ACEOF | |
19445 | /* end confdefs.h. */ | |
19446 | $ac_includes_default | |
19447 | int | |
19448 | main () | |
19449 | { | |
19450 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; | |
19451 | test_array [0] = 0 | |
19452 | ||
19453 | ; | |
19454 | return 0; | |
19455 | } | |
19456 | _ACEOF | |
19457 | rm -f conftest.$ac_objext | |
19458 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19459 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19460 | ac_status=$? |
ac1cb8d3 VS |
19461 | grep -v '^ *+' conftest.er1 >conftest.err |
19462 | rm -f conftest.er1 | |
19463 | cat conftest.err >&5 | |
a848cd7e SC |
19464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19465 | (exit $ac_status); } && | |
5d7b7554 | 19466 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19468 | (eval $ac_try) 2>&5 | |
19469 | ac_status=$? | |
19470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19471 | (exit $ac_status); }; } && | |
19472 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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_hi=-1 ac_mid=-1 | |
19479 | while :; do | |
19480 | cat >conftest.$ac_ext <<_ACEOF | |
19481 | /* confdefs.h. */ | |
19482 | _ACEOF | |
19483 | cat confdefs.h >>conftest.$ac_ext | |
19484 | cat >>conftest.$ac_ext <<_ACEOF | |
19485 | /* end confdefs.h. */ | |
19486 | $ac_includes_default | |
19487 | int | |
19488 | main () | |
19489 | { | |
19490 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
19491 | test_array [0] = 0 | |
19492 | ||
19493 | ; | |
19494 | return 0; | |
19495 | } | |
19496 | _ACEOF | |
19497 | rm -f conftest.$ac_objext | |
19498 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19499 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19500 | ac_status=$? |
ac1cb8d3 VS |
19501 | grep -v '^ *+' conftest.er1 >conftest.err |
19502 | rm -f conftest.er1 | |
19503 | cat conftest.err >&5 | |
a848cd7e SC |
19504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19505 | (exit $ac_status); } && | |
5d7b7554 | 19506 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19508 | (eval $ac_try) 2>&5 | |
19509 | ac_status=$? | |
19510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19511 | (exit $ac_status); }; } && | |
19512 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19514 | (eval $ac_try) 2>&5 | |
19515 | ac_status=$? | |
19516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19517 | (exit $ac_status); }; }; then | |
19518 | ac_lo=$ac_mid; break | |
19519 | else | |
19520 | echo "$as_me: failed program was:" >&5 | |
19521 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19522 | ||
19523 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
19524 | if test $ac_mid -le $ac_hi; then |
19525 | ac_lo= ac_hi= | |
19526 | break | |
19527 | fi | |
19528 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 19529 | fi |
ac1cb8d3 | 19530 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19531 | done |
19532 | else | |
19533 | echo "$as_me: failed program was:" >&5 | |
19534 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19535 | ||
19536 | ac_lo= ac_hi= | |
19537 | fi | |
ac1cb8d3 | 19538 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19539 | fi |
ac1cb8d3 | 19540 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19541 | # Binary search between lo and hi bounds. |
19542 | while test "x$ac_lo" != "x$ac_hi"; do | |
19543 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19544 | cat >conftest.$ac_ext <<_ACEOF | |
19545 | /* confdefs.h. */ | |
19546 | _ACEOF | |
19547 | cat confdefs.h >>conftest.$ac_ext | |
19548 | cat >>conftest.$ac_ext <<_ACEOF | |
19549 | /* end confdefs.h. */ | |
19550 | $ac_includes_default | |
19551 | int | |
19552 | main () | |
19553 | { | |
19554 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
19555 | test_array [0] = 0 | |
19556 | ||
19557 | ; | |
19558 | return 0; | |
19559 | } | |
19560 | _ACEOF | |
19561 | rm -f conftest.$ac_objext | |
19562 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19563 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19564 | ac_status=$? |
ac1cb8d3 VS |
19565 | grep -v '^ *+' conftest.er1 >conftest.err |
19566 | rm -f conftest.er1 | |
19567 | cat conftest.err >&5 | |
a848cd7e SC |
19568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19569 | (exit $ac_status); } && | |
5d7b7554 | 19570 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19572 | (eval $ac_try) 2>&5 | |
19573 | ac_status=$? | |
19574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19575 | (exit $ac_status); }; } && | |
19576 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19578 | (eval $ac_try) 2>&5 | |
19579 | ac_status=$? | |
19580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19581 | (exit $ac_status); }; }; then | |
19582 | ac_hi=$ac_mid | |
19583 | else | |
19584 | echo "$as_me: failed program was:" >&5 | |
19585 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19586 | ||
19587 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19588 | fi | |
ac1cb8d3 | 19589 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19590 | done |
19591 | case $ac_lo in | |
19592 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
19593 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
19594 | See \`config.log' for more details." >&5 | |
19595 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
19596 | See \`config.log' for more details." >&2;} | |
19597 | { (exit 1); exit 1; }; } ;; | |
19598 | esac | |
19599 | else | |
19600 | if test "$cross_compiling" = yes; then | |
5d7b7554 VZ |
19601 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
19602 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
19603 | { (exit 1); exit 1; }; } |
19604 | else | |
19605 | cat >conftest.$ac_ext <<_ACEOF | |
19606 | /* confdefs.h. */ | |
19607 | _ACEOF | |
19608 | cat confdefs.h >>conftest.$ac_ext | |
19609 | cat >>conftest.$ac_ext <<_ACEOF | |
19610 | /* end confdefs.h. */ | |
19611 | $ac_includes_default | |
19612 | long longval () { return (long) (sizeof (size_t)); } | |
19613 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
19614 | #include <stdio.h> | |
19615 | #include <stdlib.h> | |
19616 | int | |
19617 | main () | |
19618 | { | |
19619 | ||
19620 | FILE *f = fopen ("conftest.val", "w"); | |
19621 | if (! f) | |
19622 | exit (1); | |
19623 | if (((long) (sizeof (size_t))) < 0) | |
19624 | { | |
19625 | long i = longval (); | |
19626 | if (i != ((long) (sizeof (size_t)))) | |
19627 | exit (1); | |
19628 | fprintf (f, "%ld\n", i); | |
19629 | } | |
19630 | else | |
19631 | { | |
19632 | unsigned long i = ulongval (); | |
19633 | if (i != ((long) (sizeof (size_t)))) | |
19634 | exit (1); | |
19635 | fprintf (f, "%lu\n", i); | |
19636 | } | |
19637 | exit (ferror (f) || fclose (f) != 0); | |
19638 | ||
19639 | ; | |
19640 | return 0; | |
19641 | } | |
19642 | _ACEOF | |
19643 | rm -f conftest$ac_exeext | |
19644 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19645 | (eval $ac_link) 2>&5 | |
19646 | ac_status=$? | |
19647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19648 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
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_cv_sizeof_size_t=`cat conftest.val` | |
19655 | else | |
19656 | echo "$as_me: program exited with status $ac_status" >&5 | |
19657 | echo "$as_me: failed program was:" >&5 | |
19658 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19659 | ||
19660 | ( exit $ac_status ) | |
19661 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
19662 | See \`config.log' for more details." >&5 | |
19663 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
19664 | See \`config.log' for more details." >&2;} | |
19665 | { (exit 1); exit 1; }; } | |
19666 | fi | |
ac1cb8d3 | 19667 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19668 | fi |
19669 | fi | |
19670 | rm -f conftest.val | |
19671 | else | |
19672 | ac_cv_sizeof_size_t=0 | |
19673 | fi | |
19674 | fi | |
19675 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 | |
19676 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
19677 | cat >>confdefs.h <<_ACEOF | |
19678 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
19679 | _ACEOF | |
19680 | ||
19681 | ||
19682 | ||
19683 | case "${host}" in | |
19684 | arm-*-linux* ) | |
19685 | echo "$as_me:$LINENO: checking for long long" >&5 | |
19686 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
19687 | if test "${ac_cv_type_long_long+set}" = set; then | |
19688 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19689 | else | |
19690 | cat >conftest.$ac_ext <<_ACEOF | |
19691 | /* confdefs.h. */ | |
19692 | _ACEOF | |
19693 | cat confdefs.h >>conftest.$ac_ext | |
19694 | cat >>conftest.$ac_ext <<_ACEOF | |
19695 | /* end confdefs.h. */ | |
19696 | $ac_includes_default | |
19697 | int | |
19698 | main () | |
19699 | { | |
19700 | if ((long long *) 0) | |
19701 | return 0; | |
19702 | if (sizeof (long long)) | |
19703 | return 0; | |
19704 | ; | |
19705 | return 0; | |
19706 | } | |
19707 | _ACEOF | |
19708 | rm -f conftest.$ac_objext | |
19709 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19710 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19711 | ac_status=$? |
ac1cb8d3 VS |
19712 | grep -v '^ *+' conftest.er1 >conftest.err |
19713 | rm -f conftest.er1 | |
19714 | cat conftest.err >&5 | |
a848cd7e SC |
19715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19716 | (exit $ac_status); } && | |
5d7b7554 | 19717 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19719 | (eval $ac_try) 2>&5 | |
19720 | ac_status=$? | |
19721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19722 | (exit $ac_status); }; } && | |
19723 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19725 | (eval $ac_try) 2>&5 | |
19726 | ac_status=$? | |
19727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19728 | (exit $ac_status); }; }; then | |
19729 | ac_cv_type_long_long=yes | |
19730 | else | |
19731 | echo "$as_me: failed program was:" >&5 | |
19732 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19733 | ||
19734 | ac_cv_type_long_long=no | |
19735 | fi | |
ac1cb8d3 | 19736 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19737 | fi |
19738 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
19739 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
19740 | ||
19741 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
19742 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
19743 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
19744 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19745 | else | |
19746 | if test "$ac_cv_type_long_long" = yes; then | |
19747 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19748 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19749 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19750 | # This bug is HP SR number 8606223364. | |
19751 | if test "$cross_compiling" = yes; then | |
19752 | # Depending upon the size, compute the lo and hi bounds. | |
19753 | cat >conftest.$ac_ext <<_ACEOF | |
19754 | /* confdefs.h. */ | |
19755 | _ACEOF | |
19756 | cat confdefs.h >>conftest.$ac_ext | |
19757 | cat >>conftest.$ac_ext <<_ACEOF | |
19758 | /* end confdefs.h. */ | |
19759 | $ac_includes_default | |
19760 | int | |
19761 | main () | |
19762 | { | |
19763 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
19764 | test_array [0] = 0 | |
19765 | ||
19766 | ; | |
19767 | return 0; | |
19768 | } | |
19769 | _ACEOF | |
19770 | rm -f conftest.$ac_objext | |
19771 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19772 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19773 | ac_status=$? |
ac1cb8d3 VS |
19774 | grep -v '^ *+' conftest.er1 >conftest.err |
19775 | rm -f conftest.er1 | |
19776 | cat conftest.err >&5 | |
a848cd7e SC |
19777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19778 | (exit $ac_status); } && | |
5d7b7554 | 19779 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19781 | (eval $ac_try) 2>&5 | |
19782 | ac_status=$? | |
19783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19784 | (exit $ac_status); }; } && | |
19785 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19787 | (eval $ac_try) 2>&5 | |
19788 | ac_status=$? | |
19789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19790 | (exit $ac_status); }; }; then | |
19791 | ac_lo=0 ac_mid=0 | |
19792 | while :; do | |
19793 | cat >conftest.$ac_ext <<_ACEOF | |
19794 | /* confdefs.h. */ | |
19795 | _ACEOF | |
19796 | cat confdefs.h >>conftest.$ac_ext | |
19797 | cat >>conftest.$ac_ext <<_ACEOF | |
19798 | /* end confdefs.h. */ | |
19799 | $ac_includes_default | |
19800 | int | |
19801 | main () | |
19802 | { | |
19803 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
19804 | test_array [0] = 0 | |
19805 | ||
19806 | ; | |
19807 | return 0; | |
19808 | } | |
19809 | _ACEOF | |
19810 | rm -f conftest.$ac_objext | |
19811 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19812 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19813 | ac_status=$? |
ac1cb8d3 VS |
19814 | grep -v '^ *+' conftest.er1 >conftest.err |
19815 | rm -f conftest.er1 | |
19816 | cat conftest.err >&5 | |
a848cd7e SC |
19817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19818 | (exit $ac_status); } && | |
5d7b7554 | 19819 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19821 | (eval $ac_try) 2>&5 | |
19822 | ac_status=$? | |
19823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19824 | (exit $ac_status); }; } && | |
19825 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19827 | (eval $ac_try) 2>&5 | |
19828 | ac_status=$? | |
19829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19830 | (exit $ac_status); }; }; then | |
19831 | ac_hi=$ac_mid; break | |
19832 | else | |
19833 | echo "$as_me: failed program was:" >&5 | |
19834 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19835 | ||
19836 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
19837 | if test $ac_lo -le $ac_mid; then |
19838 | ac_lo= ac_hi= | |
19839 | break | |
19840 | fi | |
19841 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 19842 | fi |
ac1cb8d3 | 19843 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19844 | done |
19845 | else | |
19846 | echo "$as_me: failed program was:" >&5 | |
19847 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19848 | ||
19849 | cat >conftest.$ac_ext <<_ACEOF | |
19850 | /* confdefs.h. */ | |
19851 | _ACEOF | |
19852 | cat confdefs.h >>conftest.$ac_ext | |
19853 | cat >>conftest.$ac_ext <<_ACEOF | |
19854 | /* end confdefs.h. */ | |
19855 | $ac_includes_default | |
19856 | int | |
19857 | main () | |
19858 | { | |
19859 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
19860 | test_array [0] = 0 | |
19861 | ||
19862 | ; | |
19863 | return 0; | |
19864 | } | |
19865 | _ACEOF | |
19866 | rm -f conftest.$ac_objext | |
19867 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19868 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19869 | ac_status=$? |
ac1cb8d3 VS |
19870 | grep -v '^ *+' conftest.er1 >conftest.err |
19871 | rm -f conftest.er1 | |
19872 | cat conftest.err >&5 | |
a848cd7e SC |
19873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19874 | (exit $ac_status); } && | |
5d7b7554 | 19875 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19877 | (eval $ac_try) 2>&5 | |
19878 | ac_status=$? | |
19879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19880 | (exit $ac_status); }; } && | |
19881 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19883 | (eval $ac_try) 2>&5 | |
19884 | ac_status=$? | |
19885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19886 | (exit $ac_status); }; }; then | |
19887 | ac_hi=-1 ac_mid=-1 | |
19888 | while :; do | |
19889 | cat >conftest.$ac_ext <<_ACEOF | |
19890 | /* confdefs.h. */ | |
19891 | _ACEOF | |
19892 | cat confdefs.h >>conftest.$ac_ext | |
19893 | cat >>conftest.$ac_ext <<_ACEOF | |
19894 | /* end confdefs.h. */ | |
19895 | $ac_includes_default | |
19896 | int | |
19897 | main () | |
19898 | { | |
19899 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
19900 | test_array [0] = 0 | |
19901 | ||
19902 | ; | |
19903 | return 0; | |
19904 | } | |
19905 | _ACEOF | |
19906 | rm -f conftest.$ac_objext | |
19907 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19908 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19909 | ac_status=$? |
ac1cb8d3 VS |
19910 | grep -v '^ *+' conftest.er1 >conftest.err |
19911 | rm -f conftest.er1 | |
19912 | cat conftest.err >&5 | |
a848cd7e SC |
19913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19914 | (exit $ac_status); } && | |
5d7b7554 | 19915 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19917 | (eval $ac_try) 2>&5 | |
19918 | ac_status=$? | |
19919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19920 | (exit $ac_status); }; } && | |
19921 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19923 | (eval $ac_try) 2>&5 | |
19924 | ac_status=$? | |
19925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19926 | (exit $ac_status); }; }; then | |
19927 | ac_lo=$ac_mid; break | |
19928 | else | |
19929 | echo "$as_me: failed program was:" >&5 | |
19930 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19931 | ||
19932 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
19933 | if test $ac_mid -le $ac_hi; then |
19934 | ac_lo= ac_hi= | |
19935 | break | |
19936 | fi | |
19937 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 19938 | fi |
ac1cb8d3 | 19939 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19940 | done |
19941 | else | |
19942 | echo "$as_me: failed program was:" >&5 | |
19943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19944 | ||
19945 | ac_lo= ac_hi= | |
19946 | fi | |
ac1cb8d3 | 19947 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19948 | fi |
ac1cb8d3 | 19949 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19950 | # Binary search between lo and hi bounds. |
19951 | while test "x$ac_lo" != "x$ac_hi"; do | |
19952 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19953 | cat >conftest.$ac_ext <<_ACEOF | |
19954 | /* confdefs.h. */ | |
19955 | _ACEOF | |
19956 | cat confdefs.h >>conftest.$ac_ext | |
19957 | cat >>conftest.$ac_ext <<_ACEOF | |
19958 | /* end confdefs.h. */ | |
19959 | $ac_includes_default | |
19960 | int | |
19961 | main () | |
19962 | { | |
19963 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
19964 | test_array [0] = 0 | |
19965 | ||
19966 | ; | |
19967 | return 0; | |
19968 | } | |
19969 | _ACEOF | |
19970 | rm -f conftest.$ac_objext | |
19971 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19972 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19973 | ac_status=$? |
ac1cb8d3 VS |
19974 | grep -v '^ *+' conftest.er1 >conftest.err |
19975 | rm -f conftest.er1 | |
19976 | cat conftest.err >&5 | |
a848cd7e SC |
19977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19978 | (exit $ac_status); } && | |
5d7b7554 | 19979 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
19980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19981 | (eval $ac_try) 2>&5 | |
19982 | ac_status=$? | |
19983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19984 | (exit $ac_status); }; } && | |
19985 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19987 | (eval $ac_try) 2>&5 | |
19988 | ac_status=$? | |
19989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19990 | (exit $ac_status); }; }; then | |
19991 | ac_hi=$ac_mid | |
19992 | else | |
19993 | echo "$as_me: failed program was:" >&5 | |
19994 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19995 | ||
19996 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19997 | fi | |
ac1cb8d3 | 19998 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19999 | done |
20000 | case $ac_lo in | |
20001 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
20002 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20003 | See \`config.log' for more details." >&5 | |
20004 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20005 | See \`config.log' for more details." >&2;} | |
20006 | { (exit 1); exit 1; }; } ;; | |
20007 | esac | |
20008 | else | |
20009 | if test "$cross_compiling" = yes; then | |
5d7b7554 VZ |
20010 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
20011 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
20012 | { (exit 1); exit 1; }; } |
20013 | else | |
20014 | cat >conftest.$ac_ext <<_ACEOF | |
20015 | /* confdefs.h. */ | |
20016 | _ACEOF | |
20017 | cat confdefs.h >>conftest.$ac_ext | |
20018 | cat >>conftest.$ac_ext <<_ACEOF | |
20019 | /* end confdefs.h. */ | |
20020 | $ac_includes_default | |
20021 | long longval () { return (long) (sizeof (long long)); } | |
20022 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
20023 | #include <stdio.h> | |
20024 | #include <stdlib.h> | |
20025 | int | |
20026 | main () | |
20027 | { | |
20028 | ||
20029 | FILE *f = fopen ("conftest.val", "w"); | |
20030 | if (! f) | |
20031 | exit (1); | |
20032 | if (((long) (sizeof (long long))) < 0) | |
20033 | { | |
20034 | long i = longval (); | |
20035 | if (i != ((long) (sizeof (long long)))) | |
20036 | exit (1); | |
20037 | fprintf (f, "%ld\n", i); | |
20038 | } | |
20039 | else | |
20040 | { | |
20041 | unsigned long i = ulongval (); | |
20042 | if (i != ((long) (sizeof (long long)))) | |
20043 | exit (1); | |
20044 | fprintf (f, "%lu\n", i); | |
20045 | } | |
20046 | exit (ferror (f) || fclose (f) != 0); | |
20047 | ||
20048 | ; | |
20049 | return 0; | |
20050 | } | |
20051 | _ACEOF | |
20052 | rm -f conftest$ac_exeext | |
20053 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20054 | (eval $ac_link) 2>&5 | |
20055 | ac_status=$? | |
20056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20057 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20059 | (eval $ac_try) 2>&5 | |
20060 | ac_status=$? | |
20061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20062 | (exit $ac_status); }; }; then | |
20063 | ac_cv_sizeof_long_long=`cat conftest.val` | |
20064 | else | |
20065 | echo "$as_me: program exited with status $ac_status" >&5 | |
20066 | echo "$as_me: failed program was:" >&5 | |
20067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20068 | ||
20069 | ( exit $ac_status ) | |
20070 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20071 | See \`config.log' for more details." >&5 | |
20072 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20073 | See \`config.log' for more details." >&2;} | |
20074 | { (exit 1); exit 1; }; } | |
20075 | fi | |
ac1cb8d3 | 20076 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20077 | fi |
20078 | fi | |
20079 | rm -f conftest.val | |
20080 | else | |
20081 | ac_cv_sizeof_long_long=0 | |
20082 | fi | |
20083 | fi | |
20084 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
20085 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
20086 | cat >>confdefs.h <<_ACEOF | |
20087 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
20088 | _ACEOF | |
20089 | ||
20090 | ||
20091 | ;; | |
20092 | *-hp-hpux* ) | |
20093 | echo "$as_me:$LINENO: checking for long long" >&5 | |
20094 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
20095 | if test "${ac_cv_type_long_long+set}" = set; then | |
20096 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20097 | else | |
20098 | cat >conftest.$ac_ext <<_ACEOF | |
20099 | /* confdefs.h. */ | |
20100 | _ACEOF | |
20101 | cat confdefs.h >>conftest.$ac_ext | |
20102 | cat >>conftest.$ac_ext <<_ACEOF | |
20103 | /* end confdefs.h. */ | |
20104 | $ac_includes_default | |
20105 | int | |
20106 | main () | |
20107 | { | |
20108 | if ((long long *) 0) | |
20109 | return 0; | |
20110 | if (sizeof (long long)) | |
20111 | return 0; | |
20112 | ; | |
20113 | return 0; | |
20114 | } | |
20115 | _ACEOF | |
20116 | rm -f conftest.$ac_objext | |
20117 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20118 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20119 | ac_status=$? |
ac1cb8d3 VS |
20120 | grep -v '^ *+' conftest.er1 >conftest.err |
20121 | rm -f conftest.er1 | |
20122 | cat conftest.err >&5 | |
a848cd7e SC |
20123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20124 | (exit $ac_status); } && | |
5d7b7554 | 20125 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20127 | (eval $ac_try) 2>&5 | |
20128 | ac_status=$? | |
20129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20130 | (exit $ac_status); }; } && | |
20131 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20133 | (eval $ac_try) 2>&5 | |
20134 | ac_status=$? | |
20135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20136 | (exit $ac_status); }; }; then | |
20137 | ac_cv_type_long_long=yes | |
20138 | else | |
20139 | echo "$as_me: failed program was:" >&5 | |
20140 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20141 | ||
20142 | ac_cv_type_long_long=no | |
20143 | fi | |
ac1cb8d3 | 20144 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20145 | fi |
20146 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
20147 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
20148 | ||
20149 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
20150 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
20151 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
20152 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20153 | else | |
20154 | if test "$ac_cv_type_long_long" = yes; then | |
20155 | # The cast to unsigned long works around a bug in the HP C Compiler | |
20156 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20157 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20158 | # This bug is HP SR number 8606223364. | |
20159 | if test "$cross_compiling" = yes; then | |
20160 | # Depending upon the size, compute the lo and hi bounds. | |
20161 | cat >conftest.$ac_ext <<_ACEOF | |
20162 | /* confdefs.h. */ | |
20163 | _ACEOF | |
20164 | cat confdefs.h >>conftest.$ac_ext | |
20165 | cat >>conftest.$ac_ext <<_ACEOF | |
20166 | /* end confdefs.h. */ | |
20167 | $ac_includes_default | |
20168 | int | |
20169 | main () | |
20170 | { | |
20171 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
20172 | test_array [0] = 0 | |
20173 | ||
20174 | ; | |
20175 | return 0; | |
20176 | } | |
20177 | _ACEOF | |
20178 | rm -f conftest.$ac_objext | |
20179 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20180 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20181 | ac_status=$? |
ac1cb8d3 VS |
20182 | grep -v '^ *+' conftest.er1 >conftest.err |
20183 | rm -f conftest.er1 | |
20184 | cat conftest.err >&5 | |
a848cd7e SC |
20185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20186 | (exit $ac_status); } && | |
5d7b7554 | 20187 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20189 | (eval $ac_try) 2>&5 | |
20190 | ac_status=$? | |
20191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20192 | (exit $ac_status); }; } && | |
20193 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20195 | (eval $ac_try) 2>&5 | |
20196 | ac_status=$? | |
20197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20198 | (exit $ac_status); }; }; then | |
20199 | ac_lo=0 ac_mid=0 | |
20200 | while :; do | |
20201 | cat >conftest.$ac_ext <<_ACEOF | |
20202 | /* confdefs.h. */ | |
20203 | _ACEOF | |
20204 | cat confdefs.h >>conftest.$ac_ext | |
20205 | cat >>conftest.$ac_ext <<_ACEOF | |
20206 | /* end confdefs.h. */ | |
20207 | $ac_includes_default | |
20208 | int | |
20209 | main () | |
20210 | { | |
20211 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20212 | test_array [0] = 0 | |
20213 | ||
20214 | ; | |
20215 | return 0; | |
20216 | } | |
20217 | _ACEOF | |
20218 | rm -f conftest.$ac_objext | |
20219 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20220 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20221 | ac_status=$? |
ac1cb8d3 VS |
20222 | grep -v '^ *+' conftest.er1 >conftest.err |
20223 | rm -f conftest.er1 | |
20224 | cat conftest.err >&5 | |
a848cd7e SC |
20225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20226 | (exit $ac_status); } && | |
5d7b7554 | 20227 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20229 | (eval $ac_try) 2>&5 | |
20230 | ac_status=$? | |
20231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20232 | (exit $ac_status); }; } && | |
20233 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20235 | (eval $ac_try) 2>&5 | |
20236 | ac_status=$? | |
20237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20238 | (exit $ac_status); }; }; then | |
20239 | ac_hi=$ac_mid; break | |
20240 | else | |
20241 | echo "$as_me: failed program was:" >&5 | |
20242 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20243 | ||
20244 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
20245 | if test $ac_lo -le $ac_mid; then |
20246 | ac_lo= ac_hi= | |
20247 | break | |
20248 | fi | |
20249 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 20250 | fi |
ac1cb8d3 | 20251 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20252 | done |
20253 | else | |
20254 | echo "$as_me: failed program was:" >&5 | |
20255 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20256 | ||
20257 | cat >conftest.$ac_ext <<_ACEOF | |
20258 | /* confdefs.h. */ | |
20259 | _ACEOF | |
20260 | cat confdefs.h >>conftest.$ac_ext | |
20261 | cat >>conftest.$ac_ext <<_ACEOF | |
20262 | /* end confdefs.h. */ | |
20263 | $ac_includes_default | |
20264 | int | |
20265 | main () | |
20266 | { | |
20267 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
20268 | test_array [0] = 0 | |
20269 | ||
20270 | ; | |
20271 | return 0; | |
20272 | } | |
20273 | _ACEOF | |
20274 | rm -f conftest.$ac_objext | |
20275 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20276 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20277 | ac_status=$? |
ac1cb8d3 VS |
20278 | grep -v '^ *+' conftest.er1 >conftest.err |
20279 | rm -f conftest.er1 | |
20280 | cat conftest.err >&5 | |
a848cd7e SC |
20281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20282 | (exit $ac_status); } && | |
5d7b7554 | 20283 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20285 | (eval $ac_try) 2>&5 | |
20286 | ac_status=$? | |
20287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20288 | (exit $ac_status); }; } && | |
20289 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20291 | (eval $ac_try) 2>&5 | |
20292 | ac_status=$? | |
20293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20294 | (exit $ac_status); }; }; then | |
20295 | ac_hi=-1 ac_mid=-1 | |
20296 | while :; do | |
20297 | cat >conftest.$ac_ext <<_ACEOF | |
20298 | /* confdefs.h. */ | |
20299 | _ACEOF | |
20300 | cat confdefs.h >>conftest.$ac_ext | |
20301 | cat >>conftest.$ac_ext <<_ACEOF | |
20302 | /* end confdefs.h. */ | |
20303 | $ac_includes_default | |
20304 | int | |
20305 | main () | |
20306 | { | |
20307 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
20308 | test_array [0] = 0 | |
20309 | ||
20310 | ; | |
20311 | return 0; | |
20312 | } | |
20313 | _ACEOF | |
20314 | rm -f conftest.$ac_objext | |
20315 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20316 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20317 | ac_status=$? |
ac1cb8d3 VS |
20318 | grep -v '^ *+' conftest.er1 >conftest.err |
20319 | rm -f conftest.er1 | |
20320 | cat conftest.err >&5 | |
a848cd7e SC |
20321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20322 | (exit $ac_status); } && | |
5d7b7554 | 20323 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20325 | (eval $ac_try) 2>&5 | |
20326 | ac_status=$? | |
20327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20328 | (exit $ac_status); }; } && | |
20329 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20331 | (eval $ac_try) 2>&5 | |
20332 | ac_status=$? | |
20333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20334 | (exit $ac_status); }; }; then | |
20335 | ac_lo=$ac_mid; break | |
20336 | else | |
20337 | echo "$as_me: failed program was:" >&5 | |
20338 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20339 | ||
20340 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
20341 | if test $ac_mid -le $ac_hi; then |
20342 | ac_lo= ac_hi= | |
20343 | break | |
20344 | fi | |
20345 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 20346 | fi |
ac1cb8d3 | 20347 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20348 | done |
20349 | else | |
20350 | echo "$as_me: failed program was:" >&5 | |
20351 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20352 | ||
20353 | ac_lo= ac_hi= | |
20354 | fi | |
ac1cb8d3 | 20355 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 20356 | fi |
ac1cb8d3 | 20357 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20358 | # Binary search between lo and hi bounds. |
20359 | while test "x$ac_lo" != "x$ac_hi"; do | |
20360 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20361 | cat >conftest.$ac_ext <<_ACEOF | |
20362 | /* confdefs.h. */ | |
20363 | _ACEOF | |
20364 | cat confdefs.h >>conftest.$ac_ext | |
20365 | cat >>conftest.$ac_ext <<_ACEOF | |
20366 | /* end confdefs.h. */ | |
20367 | $ac_includes_default | |
20368 | int | |
20369 | main () | |
20370 | { | |
20371 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20372 | test_array [0] = 0 | |
20373 | ||
20374 | ; | |
20375 | return 0; | |
20376 | } | |
20377 | _ACEOF | |
20378 | rm -f conftest.$ac_objext | |
20379 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20380 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20381 | ac_status=$? |
ac1cb8d3 VS |
20382 | grep -v '^ *+' conftest.er1 >conftest.err |
20383 | rm -f conftest.er1 | |
20384 | cat conftest.err >&5 | |
a848cd7e SC |
20385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20386 | (exit $ac_status); } && | |
5d7b7554 | 20387 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20389 | (eval $ac_try) 2>&5 | |
20390 | ac_status=$? | |
20391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20392 | (exit $ac_status); }; } && | |
20393 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20395 | (eval $ac_try) 2>&5 | |
20396 | ac_status=$? | |
20397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20398 | (exit $ac_status); }; }; then | |
20399 | ac_hi=$ac_mid | |
20400 | else | |
20401 | echo "$as_me: failed program was:" >&5 | |
20402 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20403 | ||
20404 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
20405 | fi | |
ac1cb8d3 | 20406 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20407 | done |
20408 | case $ac_lo in | |
20409 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
20410 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20411 | See \`config.log' for more details." >&5 | |
20412 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20413 | See \`config.log' for more details." >&2;} | |
20414 | { (exit 1); exit 1; }; } ;; | |
20415 | esac | |
20416 | else | |
20417 | if test "$cross_compiling" = yes; then | |
5d7b7554 VZ |
20418 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
20419 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
20420 | { (exit 1); exit 1; }; } |
20421 | else | |
20422 | cat >conftest.$ac_ext <<_ACEOF | |
20423 | /* confdefs.h. */ | |
20424 | _ACEOF | |
20425 | cat confdefs.h >>conftest.$ac_ext | |
20426 | cat >>conftest.$ac_ext <<_ACEOF | |
20427 | /* end confdefs.h. */ | |
20428 | $ac_includes_default | |
20429 | long longval () { return (long) (sizeof (long long)); } | |
20430 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
20431 | #include <stdio.h> | |
20432 | #include <stdlib.h> | |
20433 | int | |
20434 | main () | |
20435 | { | |
20436 | ||
20437 | FILE *f = fopen ("conftest.val", "w"); | |
20438 | if (! f) | |
20439 | exit (1); | |
20440 | if (((long) (sizeof (long long))) < 0) | |
20441 | { | |
20442 | long i = longval (); | |
20443 | if (i != ((long) (sizeof (long long)))) | |
20444 | exit (1); | |
20445 | fprintf (f, "%ld\n", i); | |
20446 | } | |
20447 | else | |
20448 | { | |
20449 | unsigned long i = ulongval (); | |
20450 | if (i != ((long) (sizeof (long long)))) | |
20451 | exit (1); | |
20452 | fprintf (f, "%lu\n", i); | |
20453 | } | |
20454 | exit (ferror (f) || fclose (f) != 0); | |
20455 | ||
20456 | ; | |
20457 | return 0; | |
20458 | } | |
20459 | _ACEOF | |
20460 | rm -f conftest$ac_exeext | |
20461 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20462 | (eval $ac_link) 2>&5 | |
20463 | ac_status=$? | |
20464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20465 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20467 | (eval $ac_try) 2>&5 | |
20468 | ac_status=$? | |
20469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20470 | (exit $ac_status); }; }; then | |
20471 | ac_cv_sizeof_long_long=`cat conftest.val` | |
20472 | else | |
20473 | echo "$as_me: program exited with status $ac_status" >&5 | |
20474 | echo "$as_me: failed program was:" >&5 | |
20475 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20476 | ||
20477 | ( exit $ac_status ) | |
20478 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20479 | See \`config.log' for more details." >&5 | |
20480 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20481 | See \`config.log' for more details." >&2;} | |
20482 | { (exit 1); exit 1; }; } | |
20483 | fi | |
ac1cb8d3 | 20484 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20485 | fi |
20486 | fi | |
20487 | rm -f conftest.val | |
20488 | else | |
20489 | ac_cv_sizeof_long_long=0 | |
20490 | fi | |
20491 | fi | |
20492 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
20493 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
20494 | cat >>confdefs.h <<_ACEOF | |
20495 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
20496 | _ACEOF | |
20497 | ||
20498 | ||
20499 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
c92ad099 | 20500 | CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS" |
a848cd7e SC |
20501 | fi |
20502 | ;; | |
20503 | * ) | |
20504 | echo "$as_me:$LINENO: checking for long long" >&5 | |
20505 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
20506 | if test "${ac_cv_type_long_long+set}" = set; then | |
20507 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20508 | else | |
20509 | cat >conftest.$ac_ext <<_ACEOF | |
20510 | /* confdefs.h. */ | |
20511 | _ACEOF | |
20512 | cat confdefs.h >>conftest.$ac_ext | |
20513 | cat >>conftest.$ac_ext <<_ACEOF | |
20514 | /* end confdefs.h. */ | |
20515 | $ac_includes_default | |
20516 | int | |
20517 | main () | |
20518 | { | |
20519 | if ((long long *) 0) | |
20520 | return 0; | |
20521 | if (sizeof (long long)) | |
20522 | return 0; | |
20523 | ; | |
20524 | return 0; | |
20525 | } | |
20526 | _ACEOF | |
20527 | rm -f conftest.$ac_objext | |
20528 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20529 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20530 | ac_status=$? |
ac1cb8d3 VS |
20531 | grep -v '^ *+' conftest.er1 >conftest.err |
20532 | rm -f conftest.er1 | |
20533 | cat conftest.err >&5 | |
a848cd7e SC |
20534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20535 | (exit $ac_status); } && | |
5d7b7554 | 20536 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20538 | (eval $ac_try) 2>&5 | |
20539 | ac_status=$? | |
20540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20541 | (exit $ac_status); }; } && | |
20542 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20544 | (eval $ac_try) 2>&5 | |
20545 | ac_status=$? | |
20546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20547 | (exit $ac_status); }; }; then | |
20548 | ac_cv_type_long_long=yes | |
20549 | else | |
20550 | echo "$as_me: failed program was:" >&5 | |
20551 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20552 | ||
20553 | ac_cv_type_long_long=no | |
20554 | fi | |
ac1cb8d3 | 20555 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20556 | fi |
20557 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
20558 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
20559 | ||
20560 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
20561 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
20562 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
20563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20564 | else | |
20565 | if test "$ac_cv_type_long_long" = yes; then | |
20566 | # The cast to unsigned long works around a bug in the HP C Compiler | |
20567 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20568 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20569 | # This bug is HP SR number 8606223364. | |
20570 | if test "$cross_compiling" = yes; then | |
20571 | # Depending upon the size, compute the lo and hi bounds. | |
20572 | cat >conftest.$ac_ext <<_ACEOF | |
20573 | /* confdefs.h. */ | |
20574 | _ACEOF | |
20575 | cat confdefs.h >>conftest.$ac_ext | |
20576 | cat >>conftest.$ac_ext <<_ACEOF | |
20577 | /* end confdefs.h. */ | |
20578 | $ac_includes_default | |
20579 | int | |
20580 | main () | |
20581 | { | |
20582 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
20583 | test_array [0] = 0 | |
20584 | ||
20585 | ; | |
20586 | return 0; | |
20587 | } | |
20588 | _ACEOF | |
20589 | rm -f conftest.$ac_objext | |
20590 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20591 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20592 | ac_status=$? |
ac1cb8d3 VS |
20593 | grep -v '^ *+' conftest.er1 >conftest.err |
20594 | rm -f conftest.er1 | |
20595 | cat conftest.err >&5 | |
a848cd7e SC |
20596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20597 | (exit $ac_status); } && | |
5d7b7554 | 20598 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20600 | (eval $ac_try) 2>&5 | |
20601 | ac_status=$? | |
20602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20603 | (exit $ac_status); }; } && | |
20604 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20606 | (eval $ac_try) 2>&5 | |
20607 | ac_status=$? | |
20608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20609 | (exit $ac_status); }; }; then | |
20610 | ac_lo=0 ac_mid=0 | |
20611 | while :; do | |
20612 | cat >conftest.$ac_ext <<_ACEOF | |
20613 | /* confdefs.h. */ | |
20614 | _ACEOF | |
20615 | cat confdefs.h >>conftest.$ac_ext | |
20616 | cat >>conftest.$ac_ext <<_ACEOF | |
20617 | /* end confdefs.h. */ | |
20618 | $ac_includes_default | |
20619 | int | |
20620 | main () | |
20621 | { | |
20622 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20623 | test_array [0] = 0 | |
20624 | ||
20625 | ; | |
20626 | return 0; | |
20627 | } | |
20628 | _ACEOF | |
20629 | rm -f conftest.$ac_objext | |
20630 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20631 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20632 | ac_status=$? |
ac1cb8d3 VS |
20633 | grep -v '^ *+' conftest.er1 >conftest.err |
20634 | rm -f conftest.er1 | |
20635 | cat conftest.err >&5 | |
a848cd7e SC |
20636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20637 | (exit $ac_status); } && | |
5d7b7554 | 20638 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20640 | (eval $ac_try) 2>&5 | |
20641 | ac_status=$? | |
20642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20643 | (exit $ac_status); }; } && | |
20644 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20646 | (eval $ac_try) 2>&5 | |
20647 | ac_status=$? | |
20648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20649 | (exit $ac_status); }; }; then | |
20650 | ac_hi=$ac_mid; break | |
20651 | else | |
20652 | echo "$as_me: failed program was:" >&5 | |
20653 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20654 | ||
20655 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
20656 | if test $ac_lo -le $ac_mid; then |
20657 | ac_lo= ac_hi= | |
20658 | break | |
20659 | fi | |
20660 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 20661 | fi |
ac1cb8d3 | 20662 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20663 | done |
20664 | else | |
20665 | echo "$as_me: failed program was:" >&5 | |
20666 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20667 | ||
20668 | cat >conftest.$ac_ext <<_ACEOF | |
20669 | /* confdefs.h. */ | |
20670 | _ACEOF | |
20671 | cat confdefs.h >>conftest.$ac_ext | |
20672 | cat >>conftest.$ac_ext <<_ACEOF | |
20673 | /* end confdefs.h. */ | |
20674 | $ac_includes_default | |
20675 | int | |
20676 | main () | |
20677 | { | |
20678 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
20679 | test_array [0] = 0 | |
20680 | ||
20681 | ; | |
20682 | return 0; | |
20683 | } | |
20684 | _ACEOF | |
20685 | rm -f conftest.$ac_objext | |
20686 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20687 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20688 | ac_status=$? |
ac1cb8d3 VS |
20689 | grep -v '^ *+' conftest.er1 >conftest.err |
20690 | rm -f conftest.er1 | |
20691 | cat conftest.err >&5 | |
a848cd7e SC |
20692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20693 | (exit $ac_status); } && | |
5d7b7554 | 20694 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20696 | (eval $ac_try) 2>&5 | |
20697 | ac_status=$? | |
20698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20699 | (exit $ac_status); }; } && | |
20700 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20702 | (eval $ac_try) 2>&5 | |
20703 | ac_status=$? | |
20704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20705 | (exit $ac_status); }; }; then | |
20706 | ac_hi=-1 ac_mid=-1 | |
20707 | while :; do | |
20708 | cat >conftest.$ac_ext <<_ACEOF | |
20709 | /* confdefs.h. */ | |
20710 | _ACEOF | |
20711 | cat confdefs.h >>conftest.$ac_ext | |
20712 | cat >>conftest.$ac_ext <<_ACEOF | |
20713 | /* end confdefs.h. */ | |
20714 | $ac_includes_default | |
20715 | int | |
20716 | main () | |
20717 | { | |
20718 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
20719 | test_array [0] = 0 | |
20720 | ||
20721 | ; | |
20722 | return 0; | |
20723 | } | |
20724 | _ACEOF | |
20725 | rm -f conftest.$ac_objext | |
20726 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20727 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20728 | ac_status=$? |
ac1cb8d3 VS |
20729 | grep -v '^ *+' conftest.er1 >conftest.err |
20730 | rm -f conftest.er1 | |
20731 | cat conftest.err >&5 | |
a848cd7e SC |
20732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20733 | (exit $ac_status); } && | |
5d7b7554 | 20734 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20736 | (eval $ac_try) 2>&5 | |
20737 | ac_status=$? | |
20738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20739 | (exit $ac_status); }; } && | |
20740 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20742 | (eval $ac_try) 2>&5 | |
20743 | ac_status=$? | |
20744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20745 | (exit $ac_status); }; }; then | |
20746 | ac_lo=$ac_mid; break | |
20747 | else | |
20748 | echo "$as_me: failed program was:" >&5 | |
20749 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20750 | ||
20751 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
20752 | if test $ac_mid -le $ac_hi; then |
20753 | ac_lo= ac_hi= | |
20754 | break | |
20755 | fi | |
20756 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 20757 | fi |
ac1cb8d3 | 20758 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20759 | done |
20760 | else | |
20761 | echo "$as_me: failed program was:" >&5 | |
20762 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20763 | ||
20764 | ac_lo= ac_hi= | |
20765 | fi | |
ac1cb8d3 | 20766 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 20767 | fi |
ac1cb8d3 | 20768 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20769 | # Binary search between lo and hi bounds. |
20770 | while test "x$ac_lo" != "x$ac_hi"; do | |
20771 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20772 | cat >conftest.$ac_ext <<_ACEOF | |
20773 | /* confdefs.h. */ | |
20774 | _ACEOF | |
20775 | cat confdefs.h >>conftest.$ac_ext | |
20776 | cat >>conftest.$ac_ext <<_ACEOF | |
20777 | /* end confdefs.h. */ | |
20778 | $ac_includes_default | |
20779 | int | |
20780 | main () | |
20781 | { | |
20782 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20783 | test_array [0] = 0 | |
20784 | ||
20785 | ; | |
20786 | return 0; | |
20787 | } | |
20788 | _ACEOF | |
20789 | rm -f conftest.$ac_objext | |
20790 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20791 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20792 | ac_status=$? |
ac1cb8d3 VS |
20793 | grep -v '^ *+' conftest.er1 >conftest.err |
20794 | rm -f conftest.er1 | |
20795 | cat conftest.err >&5 | |
a848cd7e SC |
20796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20797 | (exit $ac_status); } && | |
5d7b7554 | 20798 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
20799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20800 | (eval $ac_try) 2>&5 | |
20801 | ac_status=$? | |
20802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20803 | (exit $ac_status); }; } && | |
20804 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20806 | (eval $ac_try) 2>&5 | |
20807 | ac_status=$? | |
20808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20809 | (exit $ac_status); }; }; then | |
20810 | ac_hi=$ac_mid | |
20811 | else | |
20812 | echo "$as_me: failed program was:" >&5 | |
20813 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20814 | ||
20815 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
20816 | fi | |
ac1cb8d3 | 20817 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20818 | done |
20819 | case $ac_lo in | |
20820 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
20821 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20822 | See \`config.log' for more details." >&5 | |
20823 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20824 | See \`config.log' for more details." >&2;} | |
20825 | { (exit 1); exit 1; }; } ;; | |
20826 | esac | |
20827 | else | |
20828 | if test "$cross_compiling" = yes; then | |
5d7b7554 VZ |
20829 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
20830 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
a848cd7e SC |
20831 | { (exit 1); exit 1; }; } |
20832 | else | |
20833 | cat >conftest.$ac_ext <<_ACEOF | |
20834 | /* confdefs.h. */ | |
20835 | _ACEOF | |
20836 | cat confdefs.h >>conftest.$ac_ext | |
20837 | cat >>conftest.$ac_ext <<_ACEOF | |
20838 | /* end confdefs.h. */ | |
20839 | $ac_includes_default | |
20840 | long longval () { return (long) (sizeof (long long)); } | |
20841 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
20842 | #include <stdio.h> | |
20843 | #include <stdlib.h> | |
20844 | int | |
20845 | main () | |
20846 | { | |
20847 | ||
20848 | FILE *f = fopen ("conftest.val", "w"); | |
20849 | if (! f) | |
20850 | exit (1); | |
20851 | if (((long) (sizeof (long long))) < 0) | |
20852 | { | |
20853 | long i = longval (); | |
20854 | if (i != ((long) (sizeof (long long)))) | |
20855 | exit (1); | |
20856 | fprintf (f, "%ld\n", i); | |
20857 | } | |
20858 | else | |
20859 | { | |
20860 | unsigned long i = ulongval (); | |
20861 | if (i != ((long) (sizeof (long long)))) | |
20862 | exit (1); | |
20863 | fprintf (f, "%lu\n", i); | |
20864 | } | |
20865 | exit (ferror (f) || fclose (f) != 0); | |
20866 | ||
20867 | ; | |
20868 | return 0; | |
20869 | } | |
20870 | _ACEOF | |
20871 | rm -f conftest$ac_exeext | |
20872 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20873 | (eval $ac_link) 2>&5 | |
20874 | ac_status=$? | |
20875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20876 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20878 | (eval $ac_try) 2>&5 | |
20879 | ac_status=$? | |
20880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20881 | (exit $ac_status); }; }; then | |
20882 | ac_cv_sizeof_long_long=`cat conftest.val` | |
20883 | else | |
20884 | echo "$as_me: program exited with status $ac_status" >&5 | |
20885 | echo "$as_me: failed program was:" >&5 | |
20886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20887 | ||
20888 | ( exit $ac_status ) | |
20889 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20890 | See \`config.log' for more details." >&5 | |
20891 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20892 | See \`config.log' for more details." >&2;} | |
20893 | { (exit 1); exit 1; }; } | |
20894 | fi | |
ac1cb8d3 | 20895 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20896 | fi |
20897 | fi | |
20898 | rm -f conftest.val | |
20899 | else | |
20900 | ac_cv_sizeof_long_long=0 | |
20901 | fi | |
20902 | fi | |
20903 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
20904 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
20905 | cat >>confdefs.h <<_ACEOF | |
20906 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
20907 | _ACEOF | |
20908 | ||
20909 | ||
20910 | esac | |
20911 | ||
238ecede MW |
20912 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
20913 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 | |
20914 | if test "${ac_cv_type_wchar_t+set}" = set; then | |
20915 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20916 | else | |
20917 | cat >conftest.$ac_ext <<_ACEOF | |
20918 | /* confdefs.h. */ | |
20919 | _ACEOF | |
20920 | cat confdefs.h >>conftest.$ac_ext | |
20921 | cat >>conftest.$ac_ext <<_ACEOF | |
20922 | /* end confdefs.h. */ | |
20923 | ||
83d8eb47 MW |
20924 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20925 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20926 | # error "fake wchar_t" |
20927 | #endif | |
20928 | #ifdef HAVE_WCHAR_H | |
20929 | # ifdef __CYGWIN__ | |
20930 | # include <stddef.h> | |
20931 | # endif | |
20932 | # include <wchar.h> | |
20933 | #endif | |
20934 | #ifdef HAVE_STDLIB_H | |
20935 | # include <stdlib.h> | |
20936 | #endif | |
20937 | #include <stdio.h> | |
20938 | ||
20939 | ||
20940 | ||
20941 | int | |
20942 | main () | |
20943 | { | |
20944 | if ((wchar_t *) 0) | |
20945 | return 0; | |
20946 | if (sizeof (wchar_t)) | |
20947 | return 0; | |
20948 | ; | |
20949 | return 0; | |
20950 | } | |
20951 | _ACEOF | |
20952 | rm -f conftest.$ac_objext | |
20953 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20954 | (eval $ac_compile) 2>conftest.er1 | |
20955 | ac_status=$? | |
20956 | grep -v '^ *+' conftest.er1 >conftest.err | |
20957 | rm -f conftest.er1 | |
20958 | cat conftest.err >&5 | |
20959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20960 | (exit $ac_status); } && | |
5d7b7554 | 20961 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
238ecede MW |
20962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20963 | (eval $ac_try) 2>&5 | |
20964 | ac_status=$? | |
20965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20966 | (exit $ac_status); }; } && | |
20967 | { ac_try='test -s conftest.$ac_objext' | |
20968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20969 | (eval $ac_try) 2>&5 | |
20970 | ac_status=$? | |
20971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20972 | (exit $ac_status); }; }; then | |
20973 | ac_cv_type_wchar_t=yes | |
20974 | else | |
20975 | echo "$as_me: failed program was:" >&5 | |
20976 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20977 | ||
20978 | ac_cv_type_wchar_t=no | |
20979 | fi | |
20980 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20981 | fi | |
20982 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 | |
20983 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 | |
20984 | ||
a848cd7e SC |
20985 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
20986 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
238ecede | 20987 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
a848cd7e SC |
20988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20989 | else | |
238ecede MW |
20990 | if test "$ac_cv_type_wchar_t" = yes; then |
20991 | # The cast to unsigned long works around a bug in the HP C Compiler | |
20992 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20993 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20994 | # This bug is HP SR number 8606223364. | |
20995 | if test "$cross_compiling" = yes; then | |
20996 | # Depending upon the size, compute the lo and hi bounds. | |
20997 | cat >conftest.$ac_ext <<_ACEOF | |
20998 | /* confdefs.h. */ | |
20999 | _ACEOF | |
21000 | cat confdefs.h >>conftest.$ac_ext | |
21001 | cat >>conftest.$ac_ext <<_ACEOF | |
21002 | /* end confdefs.h. */ | |
21003 | ||
83d8eb47 MW |
21004 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21005 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21006 | # error "fake wchar_t" |
21007 | #endif | |
21008 | #ifdef HAVE_WCHAR_H | |
21009 | # ifdef __CYGWIN__ | |
21010 | # include <stddef.h> | |
21011 | # endif | |
21012 | # include <wchar.h> | |
21013 | #endif | |
21014 | #ifdef HAVE_STDLIB_H | |
21015 | # include <stdlib.h> | |
21016 | #endif | |
21017 | #include <stdio.h> | |
21018 | ||
21019 | ||
21020 | ||
21021 | int | |
21022 | main () | |
21023 | { | |
21024 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; | |
21025 | test_array [0] = 0 | |
21026 | ||
21027 | ; | |
21028 | return 0; | |
21029 | } | |
21030 | _ACEOF | |
21031 | rm -f conftest.$ac_objext | |
21032 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21033 | (eval $ac_compile) 2>conftest.er1 | |
21034 | ac_status=$? | |
21035 | grep -v '^ *+' conftest.er1 >conftest.err | |
21036 | rm -f conftest.er1 | |
21037 | cat conftest.err >&5 | |
21038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21039 | (exit $ac_status); } && | |
5d7b7554 | 21040 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
238ecede MW |
21041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21042 | (eval $ac_try) 2>&5 | |
21043 | ac_status=$? | |
21044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21045 | (exit $ac_status); }; } && | |
21046 | { ac_try='test -s conftest.$ac_objext' | |
21047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21048 | (eval $ac_try) 2>&5 | |
21049 | ac_status=$? | |
21050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21051 | (exit $ac_status); }; }; then | |
21052 | ac_lo=0 ac_mid=0 | |
21053 | while :; do | |
21054 | cat >conftest.$ac_ext <<_ACEOF | |
21055 | /* confdefs.h. */ | |
21056 | _ACEOF | |
21057 | cat confdefs.h >>conftest.$ac_ext | |
21058 | cat >>conftest.$ac_ext <<_ACEOF | |
21059 | /* end confdefs.h. */ | |
21060 | ||
83d8eb47 MW |
21061 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21062 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21063 | # error "fake wchar_t" |
21064 | #endif | |
21065 | #ifdef HAVE_WCHAR_H | |
21066 | # ifdef __CYGWIN__ | |
21067 | # include <stddef.h> | |
21068 | # endif | |
21069 | # include <wchar.h> | |
21070 | #endif | |
21071 | #ifdef HAVE_STDLIB_H | |
21072 | # include <stdlib.h> | |
21073 | #endif | |
21074 | #include <stdio.h> | |
21075 | ||
21076 | ||
21077 | ||
21078 | int | |
21079 | main () | |
21080 | { | |
21081 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
21082 | test_array [0] = 0 | |
21083 | ||
21084 | ; | |
21085 | return 0; | |
21086 | } | |
21087 | _ACEOF | |
21088 | rm -f conftest.$ac_objext | |
21089 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21090 | (eval $ac_compile) 2>conftest.er1 | |
21091 | ac_status=$? | |
21092 | grep -v '^ *+' conftest.er1 >conftest.err | |
21093 | rm -f conftest.er1 | |
21094 | cat conftest.err >&5 | |
21095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21096 | (exit $ac_status); } && | |
5d7b7554 | 21097 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
238ecede MW |
21098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21099 | (eval $ac_try) 2>&5 | |
21100 | ac_status=$? | |
21101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21102 | (exit $ac_status); }; } && | |
21103 | { ac_try='test -s conftest.$ac_objext' | |
21104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21105 | (eval $ac_try) 2>&5 | |
21106 | ac_status=$? | |
21107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21108 | (exit $ac_status); }; }; then | |
21109 | ac_hi=$ac_mid; break | |
21110 | else | |
21111 | echo "$as_me: failed program was:" >&5 | |
21112 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21113 | ||
21114 | ac_lo=`expr $ac_mid + 1` | |
21115 | if test $ac_lo -le $ac_mid; then | |
21116 | ac_lo= ac_hi= | |
21117 | break | |
21118 | fi | |
21119 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
21120 | fi | |
21121 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21122 | done | |
21123 | else | |
21124 | echo "$as_me: failed program was:" >&5 | |
21125 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21126 | ||
21127 | cat >conftest.$ac_ext <<_ACEOF | |
21128 | /* confdefs.h. */ | |
21129 | _ACEOF | |
21130 | cat confdefs.h >>conftest.$ac_ext | |
21131 | cat >>conftest.$ac_ext <<_ACEOF | |
21132 | /* end confdefs.h. */ | |
21133 | ||
83d8eb47 MW |
21134 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21135 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21136 | # error "fake wchar_t" |
21137 | #endif | |
21138 | #ifdef HAVE_WCHAR_H | |
21139 | # ifdef __CYGWIN__ | |
21140 | # include <stddef.h> | |
21141 | # endif | |
21142 | # include <wchar.h> | |
21143 | #endif | |
21144 | #ifdef HAVE_STDLIB_H | |
21145 | # include <stdlib.h> | |
21146 | #endif | |
21147 | #include <stdio.h> | |
21148 | ||
21149 | ||
21150 | ||
21151 | int | |
21152 | main () | |
21153 | { | |
21154 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; | |
21155 | test_array [0] = 0 | |
21156 | ||
21157 | ; | |
21158 | return 0; | |
21159 | } | |
21160 | _ACEOF | |
21161 | rm -f conftest.$ac_objext | |
21162 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21163 | (eval $ac_compile) 2>conftest.er1 | |
21164 | ac_status=$? | |
21165 | grep -v '^ *+' conftest.er1 >conftest.err | |
21166 | rm -f conftest.er1 | |
21167 | cat conftest.err >&5 | |
21168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21169 | (exit $ac_status); } && | |
5d7b7554 | 21170 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
238ecede MW |
21171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21172 | (eval $ac_try) 2>&5 | |
21173 | ac_status=$? | |
21174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21175 | (exit $ac_status); }; } && | |
21176 | { ac_try='test -s conftest.$ac_objext' | |
21177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21178 | (eval $ac_try) 2>&5 | |
21179 | ac_status=$? | |
21180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21181 | (exit $ac_status); }; }; then | |
21182 | ac_hi=-1 ac_mid=-1 | |
21183 | while :; do | |
21184 | cat >conftest.$ac_ext <<_ACEOF | |
21185 | /* confdefs.h. */ | |
21186 | _ACEOF | |
21187 | cat confdefs.h >>conftest.$ac_ext | |
21188 | cat >>conftest.$ac_ext <<_ACEOF | |
21189 | /* end confdefs.h. */ | |
21190 | ||
83d8eb47 MW |
21191 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21192 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21193 | # error "fake wchar_t" |
21194 | #endif | |
21195 | #ifdef HAVE_WCHAR_H | |
21196 | # ifdef __CYGWIN__ | |
21197 | # include <stddef.h> | |
21198 | # endif | |
21199 | # include <wchar.h> | |
21200 | #endif | |
21201 | #ifdef HAVE_STDLIB_H | |
21202 | # include <stdlib.h> | |
21203 | #endif | |
21204 | #include <stdio.h> | |
21205 | ||
21206 | ||
21207 | ||
21208 | int | |
21209 | main () | |
21210 | { | |
21211 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; | |
21212 | test_array [0] = 0 | |
21213 | ||
21214 | ; | |
21215 | return 0; | |
21216 | } | |
21217 | _ACEOF | |
21218 | rm -f conftest.$ac_objext | |
21219 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21220 | (eval $ac_compile) 2>conftest.er1 | |
21221 | ac_status=$? | |
21222 | grep -v '^ *+' conftest.er1 >conftest.err | |
21223 | rm -f conftest.er1 | |
21224 | cat conftest.err >&5 | |
21225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21226 | (exit $ac_status); } && | |
5d7b7554 | 21227 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
238ecede MW |
21228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21229 | (eval $ac_try) 2>&5 | |
21230 | ac_status=$? | |
21231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21232 | (exit $ac_status); }; } && | |
21233 | { ac_try='test -s conftest.$ac_objext' | |
21234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21235 | (eval $ac_try) 2>&5 | |
21236 | ac_status=$? | |
21237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21238 | (exit $ac_status); }; }; then | |
21239 | ac_lo=$ac_mid; break | |
21240 | else | |
21241 | echo "$as_me: failed program was:" >&5 | |
21242 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21243 | ||
21244 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
21245 | if test $ac_mid -le $ac_hi; then | |
21246 | ac_lo= ac_hi= | |
21247 | break | |
21248 | fi | |
21249 | ac_mid=`expr 2 '*' $ac_mid` | |
21250 | fi | |
21251 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21252 | done | |
21253 | else | |
21254 | echo "$as_me: failed program was:" >&5 | |
21255 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21256 | ||
21257 | ac_lo= ac_hi= | |
21258 | fi | |
21259 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21260 | fi | |
21261 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21262 | # Binary search between lo and hi bounds. | |
21263 | while test "x$ac_lo" != "x$ac_hi"; do | |
21264 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
21265 | cat >conftest.$ac_ext <<_ACEOF | |
21266 | /* confdefs.h. */ | |
21267 | _ACEOF | |
21268 | cat confdefs.h >>conftest.$ac_ext | |
21269 | cat >>conftest.$ac_ext <<_ACEOF | |
21270 | /* end confdefs.h. */ | |
21271 | ||
83d8eb47 MW |
21272 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21273 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21274 | # error "fake wchar_t" |
21275 | #endif | |
21276 | #ifdef HAVE_WCHAR_H | |
21277 | # ifdef __CYGWIN__ | |
21278 | # include <stddef.h> | |
21279 | # endif | |
21280 | # include <wchar.h> | |
21281 | #endif | |
21282 | #ifdef HAVE_STDLIB_H | |
21283 | # include <stdlib.h> | |
21284 | #endif | |
21285 | #include <stdio.h> | |
a848cd7e | 21286 | |
a848cd7e | 21287 | |
a848cd7e | 21288 | |
238ecede MW |
21289 | int |
21290 | main () | |
21291 | { | |
21292 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
21293 | test_array [0] = 0 | |
a848cd7e | 21294 | |
238ecede MW |
21295 | ; |
21296 | return 0; | |
21297 | } | |
21298 | _ACEOF | |
21299 | rm -f conftest.$ac_objext | |
21300 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21301 | (eval $ac_compile) 2>conftest.er1 | |
21302 | ac_status=$? | |
21303 | grep -v '^ *+' conftest.er1 >conftest.err | |
21304 | rm -f conftest.er1 | |
21305 | cat conftest.err >&5 | |
21306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21307 | (exit $ac_status); } && | |
5d7b7554 | 21308 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
238ecede MW |
21309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21310 | (eval $ac_try) 2>&5 | |
21311 | ac_status=$? | |
21312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21313 | (exit $ac_status); }; } && | |
21314 | { ac_try='test -s conftest.$ac_objext' | |
21315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21316 | (eval $ac_try) 2>&5 | |
21317 | ac_status=$? | |
21318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21319 | (exit $ac_status); }; }; then | |
21320 | ac_hi=$ac_mid | |
21321 | else | |
21322 | echo "$as_me: failed program was:" >&5 | |
21323 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21324 | ||
21325 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
21326 | fi | |
21327 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21328 | done | |
21329 | case $ac_lo in | |
21330 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; | |
21331 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 | |
21332 | See \`config.log' for more details." >&5 | |
21333 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
21334 | See \`config.log' for more details." >&2;} | |
21335 | { (exit 1); exit 1; }; } ;; | |
21336 | esac | |
21337 | else | |
21338 | if test "$cross_compiling" = yes; then | |
5d7b7554 VZ |
21339 | { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5 |
21340 | echo "$as_me: error: internal error: not reached in cross-compile" >&2;} | |
238ecede | 21341 | { (exit 1); exit 1; }; } |
a848cd7e SC |
21342 | else |
21343 | cat >conftest.$ac_ext <<_ACEOF | |
21344 | /* confdefs.h. */ | |
21345 | _ACEOF | |
21346 | cat confdefs.h >>conftest.$ac_ext | |
21347 | cat >>conftest.$ac_ext <<_ACEOF | |
21348 | /* end confdefs.h. */ | |
21349 | ||
83d8eb47 MW |
21350 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21351 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21352 | # error "fake wchar_t" |
21353 | #endif | |
21354 | #ifdef HAVE_WCHAR_H | |
21355 | # ifdef __CYGWIN__ | |
21356 | # include <stddef.h> | |
21357 | # endif | |
21358 | # include <wchar.h> | |
21359 | #endif | |
21360 | #ifdef HAVE_STDLIB_H | |
21361 | # include <stdlib.h> | |
21362 | #endif | |
21363 | #include <stdio.h> | |
21364 | ||
21365 | ||
21366 | ||
21367 | long longval () { return (long) (sizeof (wchar_t)); } | |
21368 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } | |
21369 | #include <stdio.h> | |
21370 | #include <stdlib.h> | |
21371 | int | |
21372 | main () | |
21373 | { | |
a848cd7e | 21374 | |
238ecede MW |
21375 | FILE *f = fopen ("conftest.val", "w"); |
21376 | if (! f) | |
21377 | exit (1); | |
21378 | if (((long) (sizeof (wchar_t))) < 0) | |
21379 | { | |
21380 | long i = longval (); | |
21381 | if (i != ((long) (sizeof (wchar_t)))) | |
21382 | exit (1); | |
21383 | fprintf (f, "%ld\n", i); | |
21384 | } | |
21385 | else | |
21386 | { | |
21387 | unsigned long i = ulongval (); | |
21388 | if (i != ((long) (sizeof (wchar_t)))) | |
21389 | exit (1); | |
21390 | fprintf (f, "%lu\n", i); | |
21391 | } | |
21392 | exit (ferror (f) || fclose (f) != 0); | |
21393 | ||
21394 | ; | |
21395 | return 0; | |
21396 | } | |
a848cd7e SC |
21397 | _ACEOF |
21398 | rm -f conftest$ac_exeext | |
21399 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21400 | (eval $ac_link) 2>&5 | |
21401 | ac_status=$? | |
21402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21403 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21405 | (eval $ac_try) 2>&5 | |
21406 | ac_status=$? | |
21407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21408 | (exit $ac_status); }; }; then | |
238ecede | 21409 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
a848cd7e SC |
21410 | else |
21411 | echo "$as_me: program exited with status $ac_status" >&5 | |
21412 | echo "$as_me: failed program was:" >&5 | |
21413 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21414 | ||
21415 | ( exit $ac_status ) | |
238ecede MW |
21416 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
21417 | See \`config.log' for more details." >&5 | |
21418 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
21419 | See \`config.log' for more details." >&2;} | |
21420 | { (exit 1); exit 1; }; } | |
a848cd7e | 21421 | fi |
ac1cb8d3 | 21422 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 21423 | fi |
a848cd7e | 21424 | fi |
238ecede MW |
21425 | rm -f conftest.val |
21426 | else | |
21427 | ac_cv_sizeof_wchar_t=0 | |
21428 | fi | |
21429 | fi | |
21430 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 | |
21431 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 | |
a848cd7e | 21432 | cat >>confdefs.h <<_ACEOF |
238ecede | 21433 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
a848cd7e SC |
21434 | _ACEOF |
21435 | ||
21436 | ||
47a7e797 MW |
21437 | if test "$ac_cv_sizeof_wchar_t" != "0"; then |
21438 | wxUSE_WCHAR_T=yes | |
21439 | else | |
21440 | wxUSE_WCHAR_T=no | |
21441 | fi | |
238ecede | 21442 | |
ba3d13e1 VZ |
21443 | echo "$as_me:$LINENO: checking for va_copy" >&5 |
21444 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6 | |
21445 | if test "${wx_cv_func_va_copy+set}" = set; then | |
21446 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21447 | else | |
21448 | ||
21449 | cat >conftest.$ac_ext <<_ACEOF | |
21450 | ||
21451 | #include <stdarg.h> | |
21452 | void foo(char *f, ...) | |
21453 | { | |
21454 | va_list ap1, ap2; | |
21455 | va_start(ap1, f); | |
21456 | va_copy(ap2, ap1); | |
21457 | va_end(ap2); | |
21458 | va_end(ap1); | |
21459 | } | |
5886b072 VZ |
21460 | int main() |
21461 | { | |
b902e639 VZ |
21462 | foo("hi", 17); |
21463 | return 0; | |
5886b072 | 21464 | } |
ba3d13e1 VZ |
21465 | _ACEOF |
21466 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21467 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21468 | (eval $ac_link) 2>conftest.er1 | |
21469 | ac_status=$? | |
21470 | grep -v '^ *+' conftest.er1 >conftest.err | |
21471 | rm -f conftest.er1 | |
21472 | cat conftest.err >&5 | |
21473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21474 | (exit $ac_status); } && | |
5d7b7554 | 21475 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ba3d13e1 VZ |
21476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21477 | (eval $ac_try) 2>&5 | |
21478 | ac_status=$? | |
21479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21480 | (exit $ac_status); }; } && | |
21481 | { ac_try='test -s conftest$ac_exeext' | |
21482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21483 | (eval $ac_try) 2>&5 | |
21484 | ac_status=$? | |
21485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21486 | (exit $ac_status); }; }; then | |
21487 | wx_cv_func_va_copy=yes | |
21488 | else | |
21489 | echo "$as_me: failed program was:" >&5 | |
21490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21491 | ||
21492 | wx_cv_func_va_copy=no | |
21493 | ||
21494 | fi | |
21495 | rm -f conftest.err conftest.$ac_objext \ | |
21496 | conftest$ac_exeext conftest.$ac_ext | |
21497 | ||
21498 | ||
21499 | fi | |
21500 | echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5 | |
21501 | echo "${ECHO_T}$wx_cv_func_va_copy" >&6 | |
21502 | ||
21503 | if test $wx_cv_func_va_copy = "yes"; then | |
21504 | cat >>confdefs.h <<\_ACEOF | |
21505 | #define HAVE_VA_COPY 1 | |
21506 | _ACEOF | |
21507 | ||
21508 | else | |
21509 | echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5 | |
21510 | echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6 | |
21511 | if test "${wx_cv_type_va_list_lvalue+set}" = set; then | |
21512 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21513 | else | |
21514 | ||
21515 | if test "$cross_compiling" = yes; then | |
21516 | wx_cv_type_va_list_lvalue=yes | |
21517 | ||
21518 | else | |
21519 | cat >conftest.$ac_ext <<_ACEOF | |
21520 | ||
21521 | #include <stdarg.h> | |
21522 | int foo(char *f, ...) | |
21523 | { | |
21524 | va_list ap1, ap2; | |
21525 | va_start(ap1, f); | |
21526 | ap2 = ap1; | |
21527 | if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 ) | |
21528 | return 1; | |
21529 | va_end(ap2); | |
21530 | va_end(ap1); | |
21531 | return 0; | |
21532 | } | |
21533 | int main() | |
21534 | { | |
21535 | return foo("hi", 17); | |
21536 | } | |
21537 | _ACEOF | |
21538 | rm -f conftest$ac_exeext | |
21539 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21540 | (eval $ac_link) 2>&5 | |
21541 | ac_status=$? | |
21542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21543 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21545 | (eval $ac_try) 2>&5 | |
21546 | ac_status=$? | |
21547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21548 | (exit $ac_status); }; }; then | |
21549 | wx_cv_type_va_list_lvalue=yes | |
21550 | else | |
21551 | echo "$as_me: program exited with status $ac_status" >&5 | |
21552 | echo "$as_me: failed program was:" >&5 | |
21553 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21554 | ||
21555 | ( exit $ac_status ) | |
21556 | wx_cv_type_va_list_lvalue=no | |
21557 | fi | |
21558 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
21559 | fi | |
21560 | ||
21561 | ||
21562 | fi | |
21563 | echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5 | |
21564 | echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6 | |
21565 | ||
21566 | if test $wx_cv_type_va_list_lvalue != "yes"; then | |
21567 | cat >>confdefs.h <<\_ACEOF | |
21568 | #define VA_LIST_IS_ARRAY 1 | |
21569 | _ACEOF | |
21570 | ||
21571 | fi | |
21572 | fi | |
21573 | ||
a848cd7e SC |
21574 | # Check whether --enable-largefile or --disable-largefile was given. |
21575 | if test "${enable_largefile+set}" = set; then | |
21576 | enableval="$enable_largefile" | |
21577 | ||
21578 | fi; | |
21579 | if test "$enable_largefile" != no; then | |
21580 | wx_largefile=no | |
21581 | ||
21582 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
21583 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
21584 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
21585 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21586 | else | |
21587 | ||
21588 | cat >conftest.$ac_ext <<_ACEOF | |
21589 | /* confdefs.h. */ | |
21590 | _ACEOF | |
21591 | cat confdefs.h >>conftest.$ac_ext | |
21592 | cat >>conftest.$ac_ext <<_ACEOF | |
21593 | /* end confdefs.h. */ | |
21594 | #define _FILE_OFFSET_BITS 64 | |
21595 | #include <sys/types.h> | |
21596 | int | |
21597 | main () | |
21598 | { | |
21599 | typedef struct { | |
21600 | unsigned int field: sizeof(off_t) == 8; | |
21601 | } wxlf; | |
21602 | ||
21603 | ; | |
21604 | return 0; | |
21605 | } | |
21606 | _ACEOF | |
21607 | rm -f conftest.$ac_objext | |
21608 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21609 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21610 | ac_status=$? |
ac1cb8d3 VS |
21611 | grep -v '^ *+' conftest.er1 >conftest.err |
21612 | rm -f conftest.er1 | |
21613 | cat conftest.err >&5 | |
a848cd7e SC |
21614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21615 | (exit $ac_status); } && | |
5d7b7554 | 21616 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21618 | (eval $ac_try) 2>&5 | |
21619 | ac_status=$? | |
21620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21621 | (exit $ac_status); }; } && | |
21622 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21624 | (eval $ac_try) 2>&5 | |
21625 | ac_status=$? | |
21626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21627 | (exit $ac_status); }; }; then | |
21628 | ac_cv_sys_file_offset_bits=64 | |
21629 | else | |
21630 | echo "$as_me: failed program was:" >&5 | |
21631 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21632 | ||
21633 | ac_cv_sys_file_offset_bits=no | |
21634 | fi | |
ac1cb8d3 | 21635 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21636 | |
21637 | ||
21638 | fi | |
21639 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
21640 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
21641 | ||
21642 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
21643 | wx_largefile=yes | |
21644 | cat >>confdefs.h <<_ACEOF | |
21645 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
21646 | _ACEOF | |
21647 | ||
21648 | fi | |
21649 | ||
21650 | if test "x$wx_largefile" != "xyes"; then | |
21651 | ||
21652 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
21653 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
21654 | if test "${ac_cv_sys_large_files+set}" = set; then | |
21655 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21656 | else | |
21657 | ||
21658 | cat >conftest.$ac_ext <<_ACEOF | |
21659 | /* confdefs.h. */ | |
21660 | _ACEOF | |
21661 | cat confdefs.h >>conftest.$ac_ext | |
21662 | cat >>conftest.$ac_ext <<_ACEOF | |
21663 | /* end confdefs.h. */ | |
21664 | #define _LARGE_FILES 1 | |
21665 | #include <sys/types.h> | |
21666 | int | |
21667 | main () | |
21668 | { | |
21669 | typedef struct { | |
21670 | unsigned int field: sizeof(off_t) == 8; | |
21671 | } wxlf; | |
21672 | ||
21673 | ; | |
21674 | return 0; | |
21675 | } | |
21676 | _ACEOF | |
21677 | rm -f conftest.$ac_objext | |
21678 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21679 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21680 | ac_status=$? |
ac1cb8d3 VS |
21681 | grep -v '^ *+' conftest.er1 >conftest.err |
21682 | rm -f conftest.er1 | |
21683 | cat conftest.err >&5 | |
a848cd7e SC |
21684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21685 | (exit $ac_status); } && | |
5d7b7554 | 21686 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
21687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21688 | (eval $ac_try) 2>&5 | |
21689 | ac_status=$? | |
21690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21691 | (exit $ac_status); }; } && | |
21692 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21694 | (eval $ac_try) 2>&5 | |
21695 | ac_status=$? | |
21696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21697 | (exit $ac_status); }; }; then | |
21698 | ac_cv_sys_large_files=1 | |
21699 | else | |
21700 | echo "$as_me: failed program was:" >&5 | |
21701 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21702 | ||
21703 | ac_cv_sys_large_files=no | |
21704 | fi | |
ac1cb8d3 | 21705 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21706 | |
21707 | ||
21708 | fi | |
21709 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
21710 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
21711 | ||
21712 | if test "$ac_cv_sys_large_files" != no; then | |
21713 | wx_largefile=yes | |
21714 | cat >>confdefs.h <<_ACEOF | |
21715 | #define _LARGE_FILES $ac_cv_sys_large_files | |
21716 | _ACEOF | |
21717 | ||
21718 | fi | |
21719 | ||
21720 | fi | |
21721 | ||
21722 | echo "$as_me:$LINENO: checking if large file support is available" >&5 | |
21723 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
21724 | if test "x$wx_largefile" = "xyes"; then | |
21725 | cat >>confdefs.h <<\_ACEOF | |
21726 | #define HAVE_LARGEFILE_SUPPORT 1 | |
21727 | _ACEOF | |
21728 | ||
21729 | fi | |
21730 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 | |
21731 | echo "${ECHO_T}$wx_largefile" >&6 | |
21732 | fi | |
21733 | ||
5b674b9d DE |
21734 | |
21735 | if test "x$wx_largefile" = "xyes"; then | |
21736 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then | |
5ff751d6 | 21737 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" |
00421666 MW |
21738 | |
21739 | if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then | |
21740 | echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5 | |
21741 | echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6 | |
21742 | if test "${wx_cv_STDC_EXT_required+set}" = set; then | |
21743 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21744 | else | |
21745 | ||
00421666 MW |
21746 | cat >conftest.$ac_ext <<_ACEOF |
21747 | /* confdefs.h. */ | |
21748 | _ACEOF | |
21749 | cat confdefs.h >>conftest.$ac_ext | |
21750 | cat >>conftest.$ac_ext <<_ACEOF | |
21751 | /* end confdefs.h. */ | |
21752 | ||
21753 | int | |
21754 | main () | |
21755 | { | |
21756 | ||
21757 | #ifndef __STDC_EXT__ | |
21758 | choke me | |
21759 | #endif | |
21760 | ||
21761 | ; | |
21762 | return 0; | |
21763 | } | |
21764 | _ACEOF | |
21765 | rm -f conftest.$ac_objext | |
21766 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21767 | (eval $ac_compile) 2>conftest.er1 | |
21768 | ac_status=$? | |
21769 | grep -v '^ *+' conftest.er1 >conftest.err | |
21770 | rm -f conftest.er1 | |
21771 | cat conftest.err >&5 | |
21772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21773 | (exit $ac_status); } && | |
5d7b7554 | 21774 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
00421666 MW |
21775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21776 | (eval $ac_try) 2>&5 | |
21777 | ac_status=$? | |
21778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21779 | (exit $ac_status); }; } && | |
21780 | { ac_try='test -s conftest.$ac_objext' | |
21781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21782 | (eval $ac_try) 2>&5 | |
21783 | ac_status=$? | |
21784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21785 | (exit $ac_status); }; }; then | |
21786 | wx_cv_STDC_EXT_required=no | |
21787 | else | |
21788 | echo "$as_me: failed program was:" >&5 | |
21789 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21790 | ||
21791 | wx_cv_STDC_EXT_required=yes | |
21792 | ||
21793 | fi | |
21794 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
00421666 MW |
21795 | |
21796 | ||
21797 | fi | |
21798 | echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5 | |
21799 | echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6 | |
21800 | if test "x$wx_cv_STDC_EXT_required" = "xyes"; then | |
5ff751d6 | 21801 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__" |
00421666 MW |
21802 | fi |
21803 | fi | |
5b674b9d | 21804 | else |
5ff751d6 | 21805 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES" |
5b674b9d DE |
21806 | fi |
21807 | echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | |
5294a27e VZ |
21808 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
21809 | if test "${ac_cv_sys_largefile_source+set}" = set; then | |
21810 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21811 | else | |
21812 | while :; do | |
21813 | ac_cv_sys_largefile_source=no | |
21814 | cat >conftest.$ac_ext <<_ACEOF | |
21815 | /* confdefs.h. */ | |
21816 | _ACEOF | |
21817 | cat confdefs.h >>conftest.$ac_ext | |
21818 | cat >>conftest.$ac_ext <<_ACEOF | |
21819 | /* end confdefs.h. */ | |
21820 | #include <stdio.h> | |
21821 | int | |
21822 | main () | |
21823 | { | |
21824 | return !fseeko; | |
21825 | ; | |
21826 | return 0; | |
21827 | } | |
21828 | _ACEOF | |
21829 | rm -f conftest.$ac_objext | |
21830 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21831 | (eval $ac_compile) 2>conftest.er1 | |
21832 | ac_status=$? | |
21833 | grep -v '^ *+' conftest.er1 >conftest.err | |
21834 | rm -f conftest.er1 | |
21835 | cat conftest.err >&5 | |
21836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21837 | (exit $ac_status); } && | |
5d7b7554 | 21838 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
21839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21840 | (eval $ac_try) 2>&5 | |
21841 | ac_status=$? | |
21842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21843 | (exit $ac_status); }; } && | |
21844 | { ac_try='test -s conftest.$ac_objext' | |
21845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21846 | (eval $ac_try) 2>&5 | |
21847 | ac_status=$? | |
21848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21849 | (exit $ac_status); }; }; then | |
21850 | break | |
21851 | else | |
21852 | echo "$as_me: failed program was:" >&5 | |
21853 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21854 | ||
21855 | fi | |
21856 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21857 | cat >conftest.$ac_ext <<_ACEOF | |
21858 | /* confdefs.h. */ | |
21859 | _ACEOF | |
21860 | cat confdefs.h >>conftest.$ac_ext | |
21861 | cat >>conftest.$ac_ext <<_ACEOF | |
21862 | /* end confdefs.h. */ | |
21863 | #define _LARGEFILE_SOURCE 1 | |
21864 | #include <stdio.h> | |
21865 | int | |
21866 | main () | |
21867 | { | |
21868 | return !fseeko; | |
21869 | ; | |
21870 | return 0; | |
21871 | } | |
21872 | _ACEOF | |
21873 | rm -f conftest.$ac_objext | |
21874 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21875 | (eval $ac_compile) 2>conftest.er1 | |
21876 | ac_status=$? | |
21877 | grep -v '^ *+' conftest.er1 >conftest.err | |
21878 | rm -f conftest.er1 | |
21879 | cat conftest.err >&5 | |
21880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21881 | (exit $ac_status); } && | |
5d7b7554 | 21882 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
21883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21884 | (eval $ac_try) 2>&5 | |
21885 | ac_status=$? | |
21886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21887 | (exit $ac_status); }; } && | |
21888 | { ac_try='test -s conftest.$ac_objext' | |
21889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21890 | (eval $ac_try) 2>&5 | |
21891 | ac_status=$? | |
21892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21893 | (exit $ac_status); }; }; then | |
21894 | ac_cv_sys_largefile_source=1; break | |
21895 | else | |
21896 | echo "$as_me: failed program was:" >&5 | |
21897 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21898 | ||
21899 | fi | |
21900 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21901 | break | |
21902 | done | |
21903 | fi | |
21904 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 | |
21905 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 | |
21906 | if test "$ac_cv_sys_largefile_source" != no; then | |
21907 | ||
21908 | cat >>confdefs.h <<_ACEOF | |
21909 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
21910 | _ACEOF | |
21911 | ||
21912 | fi | |
21913 | rm -f conftest* | |
21914 | ||
21915 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | |
21916 | # in glibc 2.1.3, but that breaks too many other things. | |
21917 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
21918 | echo "$as_me:$LINENO: checking for fseeko" >&5 | |
21919 | echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 | |
21920 | if test "${ac_cv_func_fseeko+set}" = set; then | |
21921 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21922 | else | |
21923 | cat >conftest.$ac_ext <<_ACEOF | |
21924 | /* confdefs.h. */ | |
21925 | _ACEOF | |
21926 | cat confdefs.h >>conftest.$ac_ext | |
21927 | cat >>conftest.$ac_ext <<_ACEOF | |
21928 | /* end confdefs.h. */ | |
21929 | #include <stdio.h> | |
21930 | int | |
21931 | main () | |
21932 | { | |
21933 | return fseeko && fseeko (stdin, 0, 0); | |
21934 | ; | |
21935 | return 0; | |
21936 | } | |
21937 | _ACEOF | |
21938 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21939 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21940 | (eval $ac_link) 2>conftest.er1 | |
21941 | ac_status=$? | |
21942 | grep -v '^ *+' conftest.er1 >conftest.err | |
21943 | rm -f conftest.er1 | |
21944 | cat conftest.err >&5 | |
21945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21946 | (exit $ac_status); } && | |
5d7b7554 | 21947 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5294a27e VZ |
21948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21949 | (eval $ac_try) 2>&5 | |
21950 | ac_status=$? | |
21951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21952 | (exit $ac_status); }; } && | |
21953 | { ac_try='test -s conftest$ac_exeext' | |
21954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21955 | (eval $ac_try) 2>&5 | |
21956 | ac_status=$? | |
21957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21958 | (exit $ac_status); }; }; then | |
21959 | ac_cv_func_fseeko=yes | |
21960 | else | |
21961 | echo "$as_me: failed program was:" >&5 | |
21962 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21963 | ||
21964 | ac_cv_func_fseeko=no | |
21965 | fi | |
21966 | rm -f conftest.err conftest.$ac_objext \ | |
21967 | conftest$ac_exeext conftest.$ac_ext | |
21968 | fi | |
21969 | echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 | |
21970 | echo "${ECHO_T}$ac_cv_func_fseeko" >&6 | |
21971 | if test $ac_cv_func_fseeko = yes; then | |
21972 | ||
21973 | cat >>confdefs.h <<\_ACEOF | |
21974 | #define HAVE_FSEEKO 1 | |
21975 | _ACEOF | |
21976 | ||
21977 | fi | |
21978 | ||
5b674b9d | 21979 | if test "$ac_cv_sys_largefile_source" != no; then |
5ff751d6 | 21980 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source" |
a848cd7e | 21981 | fi |
a848cd7e SC |
21982 | fi |
21983 | ||
21984 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
21985 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
21986 | if test "${ac_cv_c_bigendian+set}" = set; then | |
21987 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21988 | else | |
21989 | ac_cv_c_bigendian=unknown | |
21990 | # See if sys/param.h defines the BYTE_ORDER macro. | |
21991 | cat >conftest.$ac_ext <<_ACEOF | |
21992 | /* confdefs.h. */ | |
21993 | _ACEOF | |
21994 | cat confdefs.h >>conftest.$ac_ext | |
21995 | cat >>conftest.$ac_ext <<_ACEOF | |
21996 | /* end confdefs.h. */ | |
21997 | #include <sys/types.h> | |
21998 | #include <sys/param.h> | |
21999 | int | |
22000 | main () | |
22001 | { | |
22002 | ||
22003 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
22004 | bogus endian macros | |
22005 | #endif | |
22006 | ; | |
22007 | return 0; | |
22008 | } | |
22009 | _ACEOF | |
22010 | rm -f conftest.$ac_objext | |
22011 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22012 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22013 | ac_status=$? |
ac1cb8d3 VS |
22014 | grep -v '^ *+' conftest.er1 >conftest.err |
22015 | rm -f conftest.er1 | |
22016 | cat conftest.err >&5 | |
a848cd7e SC |
22017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22018 | (exit $ac_status); } && | |
5d7b7554 | 22019 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22021 | (eval $ac_try) 2>&5 | |
22022 | ac_status=$? | |
22023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22024 | (exit $ac_status); }; } && | |
22025 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22027 | (eval $ac_try) 2>&5 | |
22028 | ac_status=$? | |
22029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22030 | (exit $ac_status); }; }; then | |
22031 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
22032 | cat >conftest.$ac_ext <<_ACEOF | |
22033 | /* confdefs.h. */ | |
22034 | _ACEOF | |
22035 | cat confdefs.h >>conftest.$ac_ext | |
22036 | cat >>conftest.$ac_ext <<_ACEOF | |
22037 | /* end confdefs.h. */ | |
22038 | #include <sys/types.h> | |
22039 | #include <sys/param.h> | |
22040 | int | |
22041 | main () | |
22042 | { | |
22043 | ||
22044 | #if BYTE_ORDER != BIG_ENDIAN | |
22045 | not big endian | |
22046 | #endif | |
22047 | ; | |
22048 | return 0; | |
22049 | } | |
22050 | _ACEOF | |
22051 | rm -f conftest.$ac_objext | |
22052 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22053 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22054 | ac_status=$? |
ac1cb8d3 VS |
22055 | grep -v '^ *+' conftest.er1 >conftest.err |
22056 | rm -f conftest.er1 | |
22057 | cat conftest.err >&5 | |
a848cd7e SC |
22058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22059 | (exit $ac_status); } && | |
5d7b7554 | 22060 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22062 | (eval $ac_try) 2>&5 | |
22063 | ac_status=$? | |
22064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22065 | (exit $ac_status); }; } && | |
22066 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22068 | (eval $ac_try) 2>&5 | |
22069 | ac_status=$? | |
22070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22071 | (exit $ac_status); }; }; then | |
22072 | ac_cv_c_bigendian=yes | |
22073 | else | |
22074 | echo "$as_me: failed program was:" >&5 | |
22075 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22076 | ||
22077 | ac_cv_c_bigendian=no | |
22078 | fi | |
ac1cb8d3 | 22079 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22080 | else |
22081 | echo "$as_me: failed program was:" >&5 | |
22082 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22083 | ||
22084 | fi | |
ac1cb8d3 | 22085 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22086 | if test $ac_cv_c_bigendian = unknown; then |
22087 | if test "$cross_compiling" = yes; then | |
22088 | ac_cv_c_bigendian=unknown | |
22089 | else | |
22090 | cat >conftest.$ac_ext <<_ACEOF | |
22091 | /* confdefs.h. */ | |
22092 | _ACEOF | |
22093 | cat confdefs.h >>conftest.$ac_ext | |
22094 | cat >>conftest.$ac_ext <<_ACEOF | |
22095 | /* end confdefs.h. */ | |
22096 | main () { | |
22097 | /* Are we little or big endian? From Harbison&Steele. */ | |
22098 | union | |
22099 | { | |
22100 | long l; | |
22101 | char c[sizeof (long)]; | |
22102 | } u; | |
22103 | u.l = 1; | |
22104 | exit (u.c[sizeof (long) - 1] == 1); | |
22105 | } | |
22106 | _ACEOF | |
22107 | rm -f conftest$ac_exeext | |
22108 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22109 | (eval $ac_link) 2>&5 | |
22110 | ac_status=$? | |
22111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22112 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22114 | (eval $ac_try) 2>&5 | |
22115 | ac_status=$? | |
22116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22117 | (exit $ac_status); }; }; then | |
22118 | ac_cv_c_bigendian=no | |
22119 | else | |
22120 | echo "$as_me: program exited with status $ac_status" >&5 | |
22121 | echo "$as_me: failed program was:" >&5 | |
22122 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22123 | ||
22124 | ( exit $ac_status ) | |
22125 | ac_cv_c_bigendian=yes | |
22126 | fi | |
ac1cb8d3 | 22127 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22128 | fi |
22129 | fi | |
22130 | fi | |
22131 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
22132 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
22133 | if test $ac_cv_c_bigendian = unknown; then | |
22134 | { 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 | |
22135 | 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;} | |
22136 | fi | |
22137 | if test $ac_cv_c_bigendian = yes; then | |
22138 | cat >>confdefs.h <<\_ACEOF | |
22139 | #define WORDS_BIGENDIAN 1 | |
22140 | _ACEOF | |
22141 | ||
22142 | fi | |
22143 | ||
22144 | ||
a848cd7e SC |
22145 | |
22146 | ||
22147 | ||
22148 | ac_ext=cc | |
22149 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22150 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22151 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22152 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22153 | ||
22154 | ||
22155 | ||
22156 | for ac_header in iostream | |
22157 | do | |
22158 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
22159 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22160 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22161 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22162 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22164 | fi | |
22165 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22166 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22167 | else | |
22168 | # Is the header compilable? | |
22169 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
22170 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
22171 | cat >conftest.$ac_ext <<_ACEOF | |
22172 | /* confdefs.h. */ | |
22173 | _ACEOF | |
22174 | cat confdefs.h >>conftest.$ac_ext | |
22175 | cat >>conftest.$ac_ext <<_ACEOF | |
22176 | /* end confdefs.h. */ | |
22177 | $ac_includes_default | |
22178 | #include <$ac_header> | |
22179 | _ACEOF | |
22180 | rm -f conftest.$ac_objext | |
22181 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22182 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22183 | ac_status=$? |
ac1cb8d3 VS |
22184 | grep -v '^ *+' conftest.er1 >conftest.err |
22185 | rm -f conftest.er1 | |
22186 | cat conftest.err >&5 | |
a848cd7e SC |
22187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22188 | (exit $ac_status); } && | |
5d7b7554 | 22189 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22191 | (eval $ac_try) 2>&5 | |
22192 | ac_status=$? | |
22193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22194 | (exit $ac_status); }; } && | |
22195 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22197 | (eval $ac_try) 2>&5 | |
22198 | ac_status=$? | |
22199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22200 | (exit $ac_status); }; }; then | |
22201 | ac_header_compiler=yes | |
22202 | else | |
22203 | echo "$as_me: failed program was:" >&5 | |
22204 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22205 | ||
22206 | ac_header_compiler=no | |
22207 | fi | |
ac1cb8d3 | 22208 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22209 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22210 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22211 | ||
22212 | # Is the header present? | |
22213 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
22214 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
22215 | cat >conftest.$ac_ext <<_ACEOF | |
22216 | /* confdefs.h. */ | |
22217 | _ACEOF | |
22218 | cat confdefs.h >>conftest.$ac_ext | |
22219 | cat >>conftest.$ac_ext <<_ACEOF | |
22220 | /* end confdefs.h. */ | |
22221 | #include <$ac_header> | |
22222 | _ACEOF | |
22223 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22224 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22225 | ac_status=$? | |
22226 | grep -v '^ *+' conftest.er1 >conftest.err | |
22227 | rm -f conftest.er1 | |
22228 | cat conftest.err >&5 | |
22229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22230 | (exit $ac_status); } >/dev/null; then | |
22231 | if test -s conftest.err; then | |
22232 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 22233 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
22234 | else |
22235 | ac_cpp_err= | |
22236 | fi | |
22237 | else | |
22238 | ac_cpp_err=yes | |
22239 | fi | |
22240 | if test -z "$ac_cpp_err"; then | |
22241 | ac_header_preproc=yes | |
22242 | else | |
22243 | echo "$as_me: failed program was:" >&5 | |
22244 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22245 | ||
22246 | ac_header_preproc=no | |
22247 | fi | |
22248 | rm -f conftest.err conftest.$ac_ext | |
22249 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22250 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22251 | ||
22252 | # So? What about this header? | |
ac1cb8d3 VS |
22253 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
22254 | yes:no: ) | |
a848cd7e SC |
22255 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
22256 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22257 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
22258 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
22259 | ac_header_preproc=yes | |
a848cd7e | 22260 | ;; |
ac1cb8d3 | 22261 | no:yes:* ) |
a848cd7e SC |
22262 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
22263 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22264 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
22265 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
22266 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
22267 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
22268 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
22269 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22270 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
22271 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22272 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
22273 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22274 | ( |
22275 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22276 | ## ----------------------------------------- ## |
22277 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22278 | ## ----------------------------------------- ## | |
a848cd7e SC |
22279 | _ASBOX |
22280 | ) | | |
22281 | sed "s/^/$as_me: WARNING: /" >&2 | |
22282 | ;; | |
22283 | esac | |
22284 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22285 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22286 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22288 | else | |
ac1cb8d3 | 22289 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
22290 | fi |
22291 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22292 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22293 | ||
22294 | fi | |
22295 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
22296 | cat >>confdefs.h <<_ACEOF | |
22297 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
22298 | _ACEOF | |
22299 | ||
22300 | fi | |
22301 | ||
22302 | done | |
22303 | ||
22304 | ||
22305 | if test "$ac_cv_header_iostream" = "yes" ; then | |
22306 | : | |
22307 | else | |
22308 | cat >>confdefs.h <<\_ACEOF | |
22309 | #define wxUSE_IOSTREAMH 1 | |
22310 | _ACEOF | |
22311 | ||
22312 | fi | |
22313 | ||
5d7b7554 VZ |
22314 | ac_ext=cc |
22315 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22316 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22317 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22318 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
a848cd7e SC |
22319 | |
22320 | ||
22321 | ||
22322 | ||
22323 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 | |
22324 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
22325 | if test "${wx_cv_cpp_bool+set}" = set; then | |
22326 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22327 | else | |
22328 | ||
22329 | ||
22330 | ||
22331 | ac_ext=cc | |
22332 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22333 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22334 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22335 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22336 | ||
22337 | ||
22338 | cat >conftest.$ac_ext <<_ACEOF | |
22339 | /* confdefs.h. */ | |
22340 | _ACEOF | |
22341 | cat confdefs.h >>conftest.$ac_ext | |
22342 | cat >>conftest.$ac_ext <<_ACEOF | |
22343 | /* end confdefs.h. */ | |
22344 | ||
22345 | ||
22346 | int | |
22347 | main () | |
22348 | { | |
22349 | ||
22350 | bool b = true; | |
22351 | ||
22352 | return 0; | |
22353 | ||
22354 | ; | |
22355 | return 0; | |
22356 | } | |
22357 | _ACEOF | |
22358 | rm -f conftest.$ac_objext | |
22359 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22360 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22361 | ac_status=$? |
ac1cb8d3 VS |
22362 | grep -v '^ *+' conftest.er1 >conftest.err |
22363 | rm -f conftest.er1 | |
22364 | cat conftest.err >&5 | |
a848cd7e SC |
22365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22366 | (exit $ac_status); } && | |
5d7b7554 | 22367 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22369 | (eval $ac_try) 2>&5 | |
22370 | ac_status=$? | |
22371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22372 | (exit $ac_status); }; } && | |
22373 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22375 | (eval $ac_try) 2>&5 | |
22376 | ac_status=$? | |
22377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22378 | (exit $ac_status); }; }; then | |
22379 | ||
22380 | wx_cv_cpp_bool=yes | |
22381 | ||
22382 | else | |
22383 | echo "$as_me: failed program was:" >&5 | |
22384 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22385 | ||
22386 | ||
22387 | wx_cv_cpp_bool=no | |
22388 | ||
22389 | ||
22390 | fi | |
ac1cb8d3 | 22391 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 22392 | |
5d7b7554 VZ |
22393 | ac_ext=cc |
22394 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22395 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22396 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22397 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
a848cd7e SC |
22398 | |
22399 | ||
22400 | fi | |
22401 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
22402 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
22403 | ||
22404 | if test "$wx_cv_cpp_bool" = "yes"; then | |
22405 | cat >>confdefs.h <<\_ACEOF | |
22406 | #define HAVE_BOOL 1 | |
22407 | _ACEOF | |
22408 | ||
22409 | fi | |
22410 | ||
22411 | ||
22412 | ||
22413 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 | |
22414 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
22415 | if test "${wx_cv_explicit+set}" = set; then | |
22416 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22417 | else | |
22418 | ||
22419 | ||
22420 | ||
22421 | ac_ext=cc | |
22422 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22423 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22424 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22425 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22426 | ||
22427 | ||
22428 | cat >conftest.$ac_ext <<_ACEOF | |
22429 | /* confdefs.h. */ | |
22430 | _ACEOF | |
22431 | cat confdefs.h >>conftest.$ac_ext | |
22432 | cat >>conftest.$ac_ext <<_ACEOF | |
22433 | /* end confdefs.h. */ | |
22434 | ||
22435 | class Foo { public: explicit Foo(int) {} }; | |
22436 | ||
22437 | int | |
22438 | main () | |
22439 | { | |
22440 | ||
22441 | return 0; | |
22442 | ||
22443 | ; | |
22444 | return 0; | |
22445 | } | |
22446 | _ACEOF | |
22447 | rm -f conftest.$ac_objext | |
22448 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22449 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22450 | ac_status=$? |
ac1cb8d3 VS |
22451 | grep -v '^ *+' conftest.er1 >conftest.err |
22452 | rm -f conftest.er1 | |
22453 | cat conftest.err >&5 | |
a848cd7e SC |
22454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22455 | (exit $ac_status); } && | |
5d7b7554 | 22456 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22458 | (eval $ac_try) 2>&5 | |
22459 | ac_status=$? | |
22460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22461 | (exit $ac_status); }; } && | |
22462 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22464 | (eval $ac_try) 2>&5 | |
22465 | ac_status=$? | |
22466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22467 | (exit $ac_status); }; }; then | |
22468 | ||
22469 | cat >conftest.$ac_ext <<_ACEOF | |
22470 | /* confdefs.h. */ | |
22471 | _ACEOF | |
22472 | cat confdefs.h >>conftest.$ac_ext | |
22473 | cat >>conftest.$ac_ext <<_ACEOF | |
22474 | /* end confdefs.h. */ | |
22475 | ||
22476 | class Foo { public: explicit Foo(int) {} }; | |
22477 | static void TakeFoo(const Foo& foo) { } | |
22478 | ||
22479 | int | |
22480 | main () | |
22481 | { | |
22482 | ||
22483 | TakeFoo(17); | |
22484 | return 0; | |
22485 | ||
22486 | ; | |
22487 | return 0; | |
22488 | } | |
22489 | _ACEOF | |
22490 | rm -f conftest.$ac_objext | |
22491 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22492 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22493 | ac_status=$? |
ac1cb8d3 VS |
22494 | grep -v '^ *+' conftest.er1 >conftest.err |
22495 | rm -f conftest.er1 | |
22496 | cat conftest.err >&5 | |
a848cd7e SC |
22497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22498 | (exit $ac_status); } && | |
5d7b7554 | 22499 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22501 | (eval $ac_try) 2>&5 | |
22502 | ac_status=$? | |
22503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22504 | (exit $ac_status); }; } && | |
22505 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22507 | (eval $ac_try) 2>&5 | |
22508 | ac_status=$? | |
22509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22510 | (exit $ac_status); }; }; then | |
22511 | wx_cv_explicit=no | |
22512 | else | |
22513 | echo "$as_me: failed program was:" >&5 | |
22514 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22515 | ||
22516 | wx_cv_explicit=yes | |
22517 | ||
22518 | fi | |
ac1cb8d3 | 22519 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22520 | |
22521 | else | |
22522 | echo "$as_me: failed program was:" >&5 | |
22523 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22524 | ||
22525 | wx_cv_explicit=no | |
22526 | ||
22527 | fi | |
ac1cb8d3 | 22528 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 22529 | |
5d7b7554 VZ |
22530 | ac_ext=cc |
22531 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22532 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22533 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22534 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
a848cd7e SC |
22535 | |
22536 | ||
22537 | fi | |
22538 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
22539 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
22540 | ||
22541 | if test "$wx_cv_explicit" = "yes"; then | |
22542 | cat >>confdefs.h <<\_ACEOF | |
22543 | #define HAVE_EXPLICIT 1 | |
22544 | _ACEOF | |
22545 | ||
22546 | fi | |
22547 | ||
22548 | ||
22549 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 | |
22550 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
22551 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
22552 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22553 | else | |
22554 | ||
22555 | ||
22556 | ac_ext=cc | |
22557 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22558 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22559 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22560 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22561 | ||
22562 | cat >conftest.$ac_ext <<_ACEOF | |
22563 | /* confdefs.h. */ | |
22564 | _ACEOF | |
22565 | cat confdefs.h >>conftest.$ac_ext | |
22566 | cat >>conftest.$ac_ext <<_ACEOF | |
22567 | /* end confdefs.h. */ | |
22568 | ||
22569 | int | |
22570 | main () | |
22571 | { | |
22572 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
22573 | ; | |
22574 | return 0; | |
22575 | } | |
22576 | _ACEOF | |
22577 | rm -f conftest.$ac_objext | |
22578 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22579 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22580 | ac_status=$? |
ac1cb8d3 VS |
22581 | grep -v '^ *+' conftest.er1 >conftest.err |
22582 | rm -f conftest.er1 | |
22583 | cat conftest.err >&5 | |
a848cd7e SC |
22584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22585 | (exit $ac_status); } && | |
5d7b7554 | 22586 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22588 | (eval $ac_try) 2>&5 | |
22589 | ac_status=$? | |
22590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22591 | (exit $ac_status); }; } && | |
22592 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22594 | (eval $ac_try) 2>&5 | |
22595 | ac_status=$? | |
22596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22597 | (exit $ac_status); }; }; then | |
22598 | ac_cv_cxx_const_cast=yes | |
22599 | else | |
22600 | echo "$as_me: failed program was:" >&5 | |
22601 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22602 | ||
22603 | ac_cv_cxx_const_cast=no | |
22604 | fi | |
ac1cb8d3 | 22605 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5d7b7554 VZ |
22606 | ac_ext=cc |
22607 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22608 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22609 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22610 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
a848cd7e SC |
22611 | |
22612 | ||
22613 | fi | |
22614 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 | |
22615 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
22616 | if test "$ac_cv_cxx_const_cast" = yes; then | |
22617 | ||
22618 | cat >>confdefs.h <<\_ACEOF | |
22619 | #define HAVE_CONST_CAST | |
22620 | _ACEOF | |
22621 | ||
22622 | fi | |
22623 | ||
7714864e RL |
22624 | echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5 |
22625 | echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6 | |
22626 | if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then | |
22627 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22628 | else | |
22629 | ||
22630 | ||
22631 | ac_ext=cc | |
22632 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22633 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22634 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22635 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22636 | ||
22637 | cat >conftest.$ac_ext <<_ACEOF | |
22638 | /* confdefs.h. */ | |
22639 | _ACEOF | |
22640 | cat confdefs.h >>conftest.$ac_ext | |
22641 | cat >>conftest.$ac_ext <<_ACEOF | |
22642 | /* end confdefs.h. */ | |
22643 | #include <typeinfo> | |
22644 | class Base { public : Base () {} virtual void f () = 0;}; | |
22645 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
22646 | class Unrelated { public : Unrelated () {} }; | |
22647 | int g (Unrelated&) { return 0; } | |
22648 | int | |
22649 | main () | |
22650 | { | |
22651 | ||
22652 | Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e); | |
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); } && | |
5d7b7554 | 22666 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
7714864e RL |
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_cxx_reinterpret_cast=yes | |
22679 | else | |
22680 | echo "$as_me: failed program was:" >&5 | |
22681 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22682 | ||
22683 | ac_cv_cxx_reinterpret_cast=no | |
22684 | fi | |
22685 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5d7b7554 VZ |
22686 | ac_ext=cc |
22687 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22688 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22689 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22690 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7714864e RL |
22691 | |
22692 | ||
22693 | fi | |
22694 | echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5 | |
22695 | echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6 | |
22696 | if test "$ac_cv_cxx_reinterpret_cast" = yes; then | |
22697 | ||
22698 | cat >>confdefs.h <<\_ACEOF | |
22699 | #define HAVE_REINTERPRET_CAST | |
22700 | _ACEOF | |
22701 | ||
22702 | fi | |
22703 | ||
a848cd7e SC |
22704 | echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5 |
22705 | echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6 | |
22706 | if test "${ac_cv_cxx_static_cast+set}" = set; then | |
22707 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22708 | else | |
22709 | ||
22710 | ||
22711 | ac_ext=cc | |
22712 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22713 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22714 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22715 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22716 | ||
22717 | cat >conftest.$ac_ext <<_ACEOF | |
22718 | /* confdefs.h. */ | |
22719 | _ACEOF | |
22720 | cat confdefs.h >>conftest.$ac_ext | |
22721 | cat >>conftest.$ac_ext <<_ACEOF | |
22722 | /* end confdefs.h. */ | |
22723 | #include <typeinfo> | |
22724 | class Base { public : Base () {} virtual void f () = 0; }; | |
22725 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
22726 | int g (Derived&) { return 0; } | |
22727 | int | |
22728 | main () | |
22729 | { | |
22730 | ||
22731 | Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); | |
22732 | ; | |
22733 | return 0; | |
22734 | } | |
22735 | _ACEOF | |
22736 | rm -f conftest.$ac_objext | |
22737 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22738 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22739 | ac_status=$? |
ac1cb8d3 VS |
22740 | grep -v '^ *+' conftest.er1 >conftest.err |
22741 | rm -f conftest.er1 | |
22742 | cat conftest.err >&5 | |
a848cd7e SC |
22743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22744 | (exit $ac_status); } && | |
5d7b7554 | 22745 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22747 | (eval $ac_try) 2>&5 | |
22748 | ac_status=$? | |
22749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22750 | (exit $ac_status); }; } && | |
22751 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22753 | (eval $ac_try) 2>&5 | |
22754 | ac_status=$? | |
22755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22756 | (exit $ac_status); }; }; then | |
22757 | ac_cv_cxx_static_cast=yes | |
22758 | else | |
22759 | echo "$as_me: failed program was:" >&5 | |
22760 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22761 | ||
22762 | ac_cv_cxx_static_cast=no | |
22763 | fi | |
ac1cb8d3 | 22764 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5d7b7554 VZ |
22765 | ac_ext=cc |
22766 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22767 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22768 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22769 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
a848cd7e SC |
22770 | |
22771 | ||
22772 | fi | |
22773 | echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5 | |
22774 | echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6 | |
22775 | if test "$ac_cv_cxx_static_cast" = yes; then | |
22776 | ||
22777 | cat >>confdefs.h <<\_ACEOF | |
22778 | #define HAVE_STATIC_CAST | |
22779 | _ACEOF | |
22780 | ||
22781 | fi | |
22782 | ||
22783 | ||
3c28b7cb | 22784 | if test "x$SUNCXX" = xyes; then |
c92ad099 | 22785 | CXXFLAGS="-features=tmplife $CXXFLAGS" |
3c28b7cb MW |
22786 | fi |
22787 | ||
9122d155 | 22788 | if test "x$SUNCC" = xyes; then |
c92ad099 | 22789 | CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS" |
9122d155 VZ |
22790 | fi |
22791 | ||
0ad5d837 | 22792 | if test "x$SGICC" = "xyes"; then |
c92ad099 | 22793 | CFLAGS="-woff 3970 $CFLAGS" |
0ad5d837 VZ |
22794 | fi |
22795 | if test "x$SGICXX" = "xyes"; then | |
c92ad099 | 22796 | CXXFLAGS="-woff 3970 $CXXFLAGS" |
0ad5d837 VZ |
22797 | fi |
22798 | ||
2eef8513 | 22799 | if test "x$HPCC" = "xyes"; then |
c92ad099 | 22800 | CFLAGS="+W 2011,2450 $CFLAGS" |
2eef8513 VZ |
22801 | fi |
22802 | if test "x$HPCXX" = "xyes"; then | |
c92ad099 | 22803 | CXXFLAGS="+W 2340 $CXXFLAGS" |
2eef8513 VZ |
22804 | fi |
22805 | ||
22806 | if test "x$COMPAQCXX" = "xyes"; then | |
22807 | CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit" | |
22808 | fi | |
22809 | ||
f56c22b4 | 22810 | if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then |
f56c22b4 MW |
22811 | if test "$wxUSE_UNICODE" = "yes"; then |
22812 | std_string="std::wstring" | |
22813 | char_type="wchar_t" | |
22814 | else | |
22815 | std_string="std::string" | |
22816 | char_type="char" | |
22817 | fi | |
22818 | ||
22819 | echo "$as_me:$LINENO: checking for $std_string in <string>" >&5 | |
22820 | echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6 | |
a848cd7e SC |
22821 | cat >conftest.$ac_ext <<_ACEOF |
22822 | /* confdefs.h. */ | |
22823 | _ACEOF | |
22824 | cat confdefs.h >>conftest.$ac_ext | |
22825 | cat >>conftest.$ac_ext <<_ACEOF | |
22826 | /* end confdefs.h. */ | |
22827 | #include <string> | |
a848cd7e SC |
22828 | int |
22829 | main () | |
22830 | { | |
f56c22b4 | 22831 | $std_string foo; |
a848cd7e SC |
22832 | ; |
22833 | return 0; | |
22834 | } | |
22835 | _ACEOF | |
22836 | rm -f conftest.$ac_objext | |
22837 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22838 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22839 | ac_status=$? |
ac1cb8d3 VS |
22840 | grep -v '^ *+' conftest.er1 >conftest.err |
22841 | rm -f conftest.er1 | |
22842 | cat conftest.err >&5 | |
a848cd7e SC |
22843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22844 | (exit $ac_status); } && | |
5d7b7554 | 22845 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
22846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22847 | (eval $ac_try) 2>&5 | |
22848 | ac_status=$? | |
22849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22850 | (exit $ac_status); }; } && | |
22851 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22853 | (eval $ac_try) 2>&5 | |
22854 | ac_status=$? | |
22855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22856 | (exit $ac_status); }; }; then | |
22857 | echo "$as_me:$LINENO: result: yes" >&5 | |
22858 | echo "${ECHO_T}yes" >&6 | |
0a08f02a MB |
22859 | cat >>confdefs.h <<\_ACEOF |
22860 | #define HAVE_STD_WSTRING 1 | |
22861 | _ACEOF | |
22862 | ||
a848cd7e SC |
22863 | else |
22864 | echo "$as_me: failed program was:" >&5 | |
22865 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22866 | ||
22867 | echo "$as_me:$LINENO: result: no" >&5 | |
22868 | echo "${ECHO_T}no" >&6 | |
f56c22b4 MW |
22869 | echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5 |
22870 | echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6 | |
0a08f02a MB |
22871 | cat >conftest.$ac_ext <<_ACEOF |
22872 | /* confdefs.h. */ | |
22873 | _ACEOF | |
22874 | cat confdefs.h >>conftest.$ac_ext | |
22875 | cat >>conftest.$ac_ext <<_ACEOF | |
22876 | /* end confdefs.h. */ | |
22877 | ||
22878 | #ifdef HAVE_WCHAR_H | |
22879 | # ifdef __CYGWIN__ | |
22880 | # include <stddef.h> | |
22881 | # endif | |
22882 | # include <wchar.h> | |
22883 | #endif | |
22884 | #ifdef HAVE_STDLIB_H | |
22885 | # include <stdlib.h> | |
22886 | #endif | |
22887 | #include <stdio.h> | |
22888 | #include <string> | |
22889 | ||
22890 | int | |
22891 | main () | |
22892 | { | |
f56c22b4 MW |
22893 | std::basic_string<$char_type> foo; |
22894 | const $char_type* dummy = foo.c_str(); | |
0a08f02a MB |
22895 | ; |
22896 | return 0; | |
22897 | } | |
22898 | _ACEOF | |
22899 | rm -f conftest.$ac_objext | |
22900 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22901 | (eval $ac_compile) 2>conftest.er1 | |
22902 | ac_status=$? | |
22903 | grep -v '^ *+' conftest.er1 >conftest.err | |
22904 | rm -f conftest.er1 | |
22905 | cat conftest.err >&5 | |
22906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22907 | (exit $ac_status); } && | |
5d7b7554 | 22908 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
0a08f02a MB |
22909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22910 | (eval $ac_try) 2>&5 | |
22911 | ac_status=$? | |
22912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22913 | (exit $ac_status); }; } && | |
22914 | { ac_try='test -s conftest.$ac_objext' | |
22915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22916 | (eval $ac_try) 2>&5 | |
22917 | ac_status=$? | |
22918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22919 | (exit $ac_status); }; }; then | |
22920 | echo "$as_me:$LINENO: result: yes" >&5 | |
22921 | echo "${ECHO_T}yes" >&6 | |
22922 | else | |
22923 | echo "$as_me: failed program was:" >&5 | |
22924 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22925 | ||
22926 | echo "$as_me:$LINENO: result: no" >&5 | |
22927 | echo "${ECHO_T}no" >&6 | |
f56c22b4 | 22928 | if test "$wxUSE_STL" = "yes"; then |
4b9918c5 MW |
22929 | { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5 |
22930 | echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;} | |
22931 | { (exit 1); exit 1; }; } | |
22932 | elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then | |
22933 | { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5 | |
22934 | echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;} | |
a848cd7e | 22935 | { (exit 1); exit 1; }; } |
f56c22b4 MW |
22936 | else |
22937 | { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5 | |
22938 | echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;} | |
22939 | wxUSE_STD_STRING=no | |
22940 | fi | |
22941 | ||
0a08f02a | 22942 | |
a848cd7e | 22943 | fi |
ac1cb8d3 | 22944 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 22945 | |
0a08f02a MB |
22946 | fi |
22947 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
f56c22b4 MW |
22948 | fi |
22949 | ||
22950 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
f56c22b4 MW |
22951 | echo "$as_me:$LINENO: checking for std::istream" >&5 |
22952 | echo $ECHO_N "checking for std::istream... $ECHO_C" >&6 | |
22953 | if test "${ac_cv_type_std__istream+set}" = set; then | |
22954 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22955 | else | |
22956 | cat >conftest.$ac_ext <<_ACEOF | |
22957 | /* confdefs.h. */ | |
22958 | _ACEOF | |
22959 | cat confdefs.h >>conftest.$ac_ext | |
22960 | cat >>conftest.$ac_ext <<_ACEOF | |
22961 | /* end confdefs.h. */ | |
22962 | #include <iostream> | |
22963 | ||
22964 | int | |
22965 | main () | |
22966 | { | |
22967 | if ((std::istream *) 0) | |
22968 | return 0; | |
22969 | if (sizeof (std::istream)) | |
22970 | return 0; | |
22971 | ; | |
22972 | return 0; | |
22973 | } | |
22974 | _ACEOF | |
22975 | rm -f conftest.$ac_objext | |
22976 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22977 | (eval $ac_compile) 2>conftest.er1 | |
22978 | ac_status=$? | |
22979 | grep -v '^ *+' conftest.er1 >conftest.err | |
22980 | rm -f conftest.er1 | |
22981 | cat conftest.err >&5 | |
22982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22983 | (exit $ac_status); } && | |
5d7b7554 | 22984 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
f56c22b4 MW |
22985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22986 | (eval $ac_try) 2>&5 | |
22987 | ac_status=$? | |
22988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22989 | (exit $ac_status); }; } && | |
22990 | { ac_try='test -s conftest.$ac_objext' | |
22991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22992 | (eval $ac_try) 2>&5 | |
22993 | ac_status=$? | |
22994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22995 | (exit $ac_status); }; }; then | |
22996 | ac_cv_type_std__istream=yes | |
22997 | else | |
22998 | echo "$as_me: failed program was:" >&5 | |
22999 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23000 | ||
23001 | ac_cv_type_std__istream=no | |
23002 | fi | |
23003 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
23004 | fi | |
23005 | echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5 | |
23006 | echo "${ECHO_T}$ac_cv_type_std__istream" >&6 | |
23007 | if test $ac_cv_type_std__istream = yes; then | |
23008 | ||
23009 | cat >>confdefs.h <<_ACEOF | |
23010 | #define HAVE_STD__ISTREAM 1 | |
23011 | _ACEOF | |
23012 | ||
23013 | ||
23014 | else | |
23015 | wxUSE_STD_IOSTREAM=no | |
23016 | fi | |
23017 | echo "$as_me:$LINENO: checking for std::ostream" >&5 | |
23018 | echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6 | |
23019 | if test "${ac_cv_type_std__ostream+set}" = set; then | |
23020 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23021 | else | |
23022 | cat >conftest.$ac_ext <<_ACEOF | |
23023 | /* confdefs.h. */ | |
23024 | _ACEOF | |
23025 | cat confdefs.h >>conftest.$ac_ext | |
23026 | cat >>conftest.$ac_ext <<_ACEOF | |
23027 | /* end confdefs.h. */ | |
23028 | #include <iostream> | |
23029 | ||
23030 | int | |
23031 | main () | |
23032 | { | |
23033 | if ((std::ostream *) 0) | |
23034 | return 0; | |
23035 | if (sizeof (std::ostream)) | |
23036 | return 0; | |
23037 | ; | |
23038 | return 0; | |
23039 | } | |
23040 | _ACEOF | |
23041 | rm -f conftest.$ac_objext | |
23042 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23043 | (eval $ac_compile) 2>conftest.er1 | |
23044 | ac_status=$? | |
23045 | grep -v '^ *+' conftest.er1 >conftest.err | |
23046 | rm -f conftest.er1 | |
23047 | cat conftest.err >&5 | |
23048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23049 | (exit $ac_status); } && | |
5d7b7554 | 23050 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
f56c22b4 MW |
23051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23052 | (eval $ac_try) 2>&5 | |
23053 | ac_status=$? | |
23054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23055 | (exit $ac_status); }; } && | |
23056 | { ac_try='test -s conftest.$ac_objext' | |
23057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23058 | (eval $ac_try) 2>&5 | |
23059 | ac_status=$? | |
23060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23061 | (exit $ac_status); }; }; then | |
23062 | ac_cv_type_std__ostream=yes | |
23063 | else | |
23064 | echo "$as_me: failed program was:" >&5 | |
23065 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23066 | ||
23067 | ac_cv_type_std__ostream=no | |
23068 | fi | |
23069 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
23070 | fi | |
23071 | echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5 | |
23072 | echo "${ECHO_T}$ac_cv_type_std__ostream" >&6 | |
23073 | if test $ac_cv_type_std__ostream = yes; then | |
23074 | ||
23075 | cat >>confdefs.h <<_ACEOF | |
23076 | #define HAVE_STD__OSTREAM 1 | |
23077 | _ACEOF | |
23078 | ||
23079 | ||
23080 | else | |
23081 | wxUSE_STD_IOSTREAM=no | |
23082 | fi | |
23083 | ||
23084 | ||
23085 | if test "$wxUSE_STD_IOSTREAM" != "yes"; then | |
4b9918c5 MW |
23086 | if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then |
23087 | { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5 | |
23088 | echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;} | |
23089 | { (exit 1); exit 1; }; } | |
23090 | else | |
23091 | { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5 | |
f56c22b4 | 23092 | echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;} |
4b9918c5 | 23093 | fi |
f56c22b4 | 23094 | fi |
0a08f02a MB |
23095 | fi |
23096 | ||
23097 | if test "$wxUSE_STL" = "yes"; then | |
0a08f02a MB |
23098 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 |
23099 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
a848cd7e SC |
23100 | cat >conftest.$ac_ext <<_ACEOF |
23101 | /* confdefs.h. */ | |
23102 | _ACEOF | |
23103 | cat confdefs.h >>conftest.$ac_ext | |
23104 | cat >>conftest.$ac_ext <<_ACEOF | |
23105 | /* end confdefs.h. */ | |
23106 | #include <string> | |
0a08f02a MB |
23107 | #include <functional> |
23108 | #include <algorithm> | |
23109 | #include <vector> | |
23110 | #include <list> | |
a848cd7e SC |
23111 | int |
23112 | main () | |
23113 | { | |
0a08f02a MB |
23114 | std::vector<int> moo; |
23115 | std::list<int> foo; | |
23116 | std::vector<int>::iterator it = | |
23117 | std::find_if(moo.begin(), moo.end(), | |
23118 | std::bind2nd(std::less<int>(), 3)); | |
a848cd7e SC |
23119 | ; |
23120 | return 0; | |
23121 | } | |
23122 | _ACEOF | |
23123 | rm -f conftest.$ac_objext | |
23124 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23125 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23126 | ac_status=$? |
ac1cb8d3 VS |
23127 | grep -v '^ *+' conftest.er1 >conftest.err |
23128 | rm -f conftest.er1 | |
23129 | cat conftest.err >&5 | |
a848cd7e SC |
23130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23131 | (exit $ac_status); } && | |
5d7b7554 | 23132 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23134 | (eval $ac_try) 2>&5 | |
23135 | ac_status=$? | |
23136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23137 | (exit $ac_status); }; } && | |
23138 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23140 | (eval $ac_try) 2>&5 | |
23141 | ac_status=$? | |
23142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23143 | (exit $ac_status); }; }; then | |
23144 | echo "$as_me:$LINENO: result: yes" >&5 | |
23145 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
23146 | else |
23147 | echo "$as_me: failed program was:" >&5 | |
23148 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23149 | ||
23150 | echo "$as_me:$LINENO: result: no" >&5 | |
23151 | echo "${ECHO_T}no" >&6 | |
0a08f02a MB |
23152 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 |
23153 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
23154 | { (exit 1); exit 1; }; } | |
a848cd7e | 23155 | fi |
ac1cb8d3 | 23156 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23157 | |
23158 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
23159 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
23160 | cat >conftest.$ac_ext <<_ACEOF | |
23161 | /* confdefs.h. */ | |
23162 | _ACEOF | |
23163 | cat confdefs.h >>conftest.$ac_ext | |
23164 | cat >>conftest.$ac_ext <<_ACEOF | |
23165 | /* end confdefs.h. */ | |
23166 | #include <string> | |
23167 | int | |
23168 | main () | |
23169 | { | |
23170 | std::string foo, bar; | |
23171 | foo.compare(bar); | |
23172 | foo.compare(1, 1, bar); | |
23173 | foo.compare(1, 1, bar, 1, 1); | |
23174 | foo.compare(""); | |
23175 | foo.compare(1, 1, ""); | |
23176 | foo.compare(1, 1, "", 2); | |
23177 | ; | |
23178 | return 0; | |
23179 | } | |
23180 | _ACEOF | |
23181 | rm -f conftest.$ac_objext | |
23182 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23183 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23184 | ac_status=$? |
ac1cb8d3 VS |
23185 | grep -v '^ *+' conftest.er1 >conftest.err |
23186 | rm -f conftest.er1 | |
23187 | cat conftest.err >&5 | |
a848cd7e SC |
23188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23189 | (exit $ac_status); } && | |
5d7b7554 | 23190 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23192 | (eval $ac_try) 2>&5 | |
23193 | ac_status=$? | |
23194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23195 | (exit $ac_status); }; } && | |
23196 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23198 | (eval $ac_try) 2>&5 | |
23199 | ac_status=$? | |
23200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23201 | (exit $ac_status); }; }; then | |
23202 | echo "$as_me:$LINENO: result: yes" >&5 | |
23203 | echo "${ECHO_T}yes" >&6 | |
23204 | cat >>confdefs.h <<\_ACEOF | |
23205 | #define HAVE_STD_STRING_COMPARE 1 | |
23206 | _ACEOF | |
23207 | ||
23208 | else | |
23209 | echo "$as_me: failed program was:" >&5 | |
23210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23211 | ||
23212 | echo "$as_me:$LINENO: result: no" >&5 | |
23213 | echo "${ECHO_T}no" >&6 | |
23214 | fi | |
ac1cb8d3 | 23215 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23216 | |
23217 | if test "${ac_cv_header_hash_map+set}" = set; then | |
23218 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
23219 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
23220 | if test "${ac_cv_header_hash_map+set}" = set; then | |
23221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23222 | fi | |
23223 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
23224 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
23225 | else | |
23226 | # Is the header compilable? | |
23227 | echo "$as_me:$LINENO: checking hash_map usability" >&5 | |
23228 | echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6 | |
23229 | cat >conftest.$ac_ext <<_ACEOF | |
23230 | /* confdefs.h. */ | |
23231 | _ACEOF | |
23232 | cat confdefs.h >>conftest.$ac_ext | |
23233 | cat >>conftest.$ac_ext <<_ACEOF | |
23234 | /* end confdefs.h. */ | |
23235 | $ac_includes_default | |
23236 | #include <hash_map> | |
23237 | _ACEOF | |
23238 | rm -f conftest.$ac_objext | |
23239 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23240 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 23241 | ac_status=$? |
ac1cb8d3 VS |
23242 | grep -v '^ *+' conftest.er1 >conftest.err |
23243 | rm -f conftest.er1 | |
23244 | cat conftest.err >&5 | |
bdcade0a MB |
23245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23246 | (exit $ac_status); } && | |
5d7b7554 | 23247 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23249 | (eval $ac_try) 2>&5 | |
23250 | ac_status=$? | |
23251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23252 | (exit $ac_status); }; } && | |
23253 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
23254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23255 | (eval $ac_try) 2>&5 | |
23256 | ac_status=$? | |
23257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23258 | (exit $ac_status); }; }; then | |
23259 | ac_header_compiler=yes | |
23260 | else | |
23261 | echo "$as_me: failed program was:" >&5 | |
23262 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23263 | ||
23264 | ac_header_compiler=no | |
23265 | fi | |
ac1cb8d3 | 23266 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23267 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23268 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23269 | ||
23270 | # Is the header present? | |
23271 | echo "$as_me:$LINENO: checking hash_map presence" >&5 | |
23272 | echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6 | |
23273 | cat >conftest.$ac_ext <<_ACEOF | |
23274 | /* confdefs.h. */ | |
23275 | _ACEOF | |
23276 | cat confdefs.h >>conftest.$ac_ext | |
23277 | cat >>conftest.$ac_ext <<_ACEOF | |
23278 | /* end confdefs.h. */ | |
23279 | #include <hash_map> | |
23280 | _ACEOF | |
23281 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23282 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23283 | ac_status=$? | |
23284 | grep -v '^ *+' conftest.er1 >conftest.err | |
23285 | rm -f conftest.er1 | |
23286 | cat conftest.err >&5 | |
23287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23288 | (exit $ac_status); } >/dev/null; then | |
23289 | if test -s conftest.err; then | |
23290 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 23291 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
23292 | else |
23293 | ac_cpp_err= | |
23294 | fi | |
23295 | else | |
23296 | ac_cpp_err=yes | |
23297 | fi | |
23298 | if test -z "$ac_cpp_err"; then | |
23299 | ac_header_preproc=yes | |
23300 | else | |
23301 | echo "$as_me: failed program was:" >&5 | |
23302 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23303 | ||
23304 | ac_header_preproc=no | |
23305 | fi | |
23306 | rm -f conftest.err conftest.$ac_ext | |
23307 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23308 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23309 | ||
23310 | # So? What about this header? | |
ac1cb8d3 VS |
23311 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
23312 | yes:no: ) | |
bdcade0a MB |
23313 | { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
23314 | echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23315 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5 |
23316 | echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;} | |
23317 | ac_header_preproc=yes | |
bdcade0a | 23318 | ;; |
ac1cb8d3 | 23319 | no:yes:* ) |
bdcade0a MB |
23320 | { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5 |
23321 | echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23322 | { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5 |
23323 | echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;} | |
23324 | { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5 | |
23325 | echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;} | |
23326 | { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
23327 | echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
23328 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5 |
23329 | echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23330 | { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5 |
23331 | echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
23332 | ( |
23333 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23334 | ## ----------------------------------------- ## |
23335 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23336 | ## ----------------------------------------- ## | |
bdcade0a MB |
23337 | _ASBOX |
23338 | ) | | |
23339 | sed "s/^/$as_me: WARNING: /" >&2 | |
23340 | ;; | |
23341 | esac | |
23342 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
23343 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
23344 | if test "${ac_cv_header_hash_map+set}" = set; then | |
23345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23346 | else | |
23347 | ac_cv_header_hash_map=$ac_header_preproc | |
23348 | fi | |
23349 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
23350 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
23351 | ||
23352 | fi | |
23353 | if test $ac_cv_header_hash_map = yes; then | |
23354 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
23355 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
23356 | cat >conftest.$ac_ext <<_ACEOF | |
23357 | /* confdefs.h. */ | |
23358 | _ACEOF | |
23359 | cat confdefs.h >>conftest.$ac_ext | |
23360 | cat >>conftest.$ac_ext <<_ACEOF | |
23361 | /* end confdefs.h. */ | |
23362 | #include <hash_map> | |
23363 | #include <hash_set> | |
23364 | int | |
23365 | main () | |
23366 | { | |
23367 | std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1; | |
23368 | std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2; | |
23369 | ; | |
23370 | return 0; | |
23371 | } | |
23372 | _ACEOF | |
23373 | rm -f conftest.$ac_objext | |
23374 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23375 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 23376 | ac_status=$? |
ac1cb8d3 VS |
23377 | grep -v '^ *+' conftest.er1 >conftest.err |
23378 | rm -f conftest.er1 | |
23379 | cat conftest.err >&5 | |
bdcade0a MB |
23380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23381 | (exit $ac_status); } && | |
5d7b7554 | 23382 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23384 | (eval $ac_try) 2>&5 | |
23385 | ac_status=$? | |
23386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23387 | (exit $ac_status); }; } && | |
23388 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
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); }; }; then | |
23394 | echo "$as_me:$LINENO: result: yes" >&5 | |
23395 | echo "${ECHO_T}yes" >&6 | |
23396 | cat >>confdefs.h <<\_ACEOF | |
23397 | #define HAVE_HASH_MAP 1 | |
23398 | _ACEOF | |
23399 | ||
23400 | cat >>confdefs.h <<\_ACEOF | |
23401 | #define HAVE_STD_HASH_MAP 1 | |
23402 | _ACEOF | |
23403 | ||
23404 | else | |
23405 | echo "$as_me: failed program was:" >&5 | |
23406 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23407 | ||
23408 | echo "$as_me:$LINENO: result: no" >&5 | |
23409 | echo "${ECHO_T}no" >&6 | |
23410 | fi | |
ac1cb8d3 | 23411 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23412 | |
23413 | fi | |
23414 | ||
23415 | ||
23416 | ||
23417 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
23418 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
23419 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
23420 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
23421 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23422 | fi | |
23423 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
23424 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
23425 | else | |
23426 | # Is the header compilable? | |
23427 | echo "$as_me:$LINENO: checking ext/hash_map usability" >&5 | |
23428 | echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6 | |
23429 | cat >conftest.$ac_ext <<_ACEOF | |
23430 | /* confdefs.h. */ | |
23431 | _ACEOF | |
23432 | cat confdefs.h >>conftest.$ac_ext | |
23433 | cat >>conftest.$ac_ext <<_ACEOF | |
23434 | /* end confdefs.h. */ | |
23435 | $ac_includes_default | |
23436 | #include <ext/hash_map> | |
23437 | _ACEOF | |
23438 | rm -f conftest.$ac_objext | |
23439 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23440 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 23441 | ac_status=$? |
ac1cb8d3 VS |
23442 | grep -v '^ *+' conftest.er1 >conftest.err |
23443 | rm -f conftest.er1 | |
23444 | cat conftest.err >&5 | |
bdcade0a MB |
23445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23446 | (exit $ac_status); } && | |
5d7b7554 | 23447 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23449 | (eval $ac_try) 2>&5 | |
23450 | ac_status=$? | |
23451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23452 | (exit $ac_status); }; } && | |
23453 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
23454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23455 | (eval $ac_try) 2>&5 | |
23456 | ac_status=$? | |
23457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23458 | (exit $ac_status); }; }; then | |
23459 | ac_header_compiler=yes | |
23460 | else | |
23461 | echo "$as_me: failed program was:" >&5 | |
23462 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23463 | ||
23464 | ac_header_compiler=no | |
23465 | fi | |
ac1cb8d3 | 23466 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23467 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23468 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23469 | ||
23470 | # Is the header present? | |
23471 | echo "$as_me:$LINENO: checking ext/hash_map presence" >&5 | |
23472 | echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6 | |
23473 | cat >conftest.$ac_ext <<_ACEOF | |
23474 | /* confdefs.h. */ | |
23475 | _ACEOF | |
23476 | cat confdefs.h >>conftest.$ac_ext | |
23477 | cat >>conftest.$ac_ext <<_ACEOF | |
23478 | /* end confdefs.h. */ | |
23479 | #include <ext/hash_map> | |
23480 | _ACEOF | |
23481 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23482 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23483 | ac_status=$? | |
23484 | grep -v '^ *+' conftest.er1 >conftest.err | |
23485 | rm -f conftest.er1 | |
23486 | cat conftest.err >&5 | |
23487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23488 | (exit $ac_status); } >/dev/null; then | |
23489 | if test -s conftest.err; then | |
23490 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 23491 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
23492 | else |
23493 | ac_cpp_err= | |
23494 | fi | |
23495 | else | |
23496 | ac_cpp_err=yes | |
23497 | fi | |
23498 | if test -z "$ac_cpp_err"; then | |
23499 | ac_header_preproc=yes | |
23500 | else | |
23501 | echo "$as_me: failed program was:" >&5 | |
23502 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23503 | ||
23504 | ac_header_preproc=no | |
23505 | fi | |
23506 | rm -f conftest.err conftest.$ac_ext | |
23507 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23508 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23509 | ||
23510 | # So? What about this header? | |
ac1cb8d3 VS |
23511 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
23512 | yes:no: ) | |
bdcade0a MB |
23513 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
23514 | echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23515 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5 |
23516 | echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;} | |
23517 | ac_header_preproc=yes | |
bdcade0a | 23518 | ;; |
ac1cb8d3 | 23519 | no:yes:* ) |
bdcade0a MB |
23520 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5 |
23521 | echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23522 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5 |
23523 | echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;} | |
23524 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5 | |
23525 | echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;} | |
23526 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
23527 | echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
23528 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5 |
23529 | echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23530 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5 |
23531 | echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
23532 | ( |
23533 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23534 | ## ----------------------------------------- ## |
23535 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23536 | ## ----------------------------------------- ## | |
bdcade0a MB |
23537 | _ASBOX |
23538 | ) | | |
23539 | sed "s/^/$as_me: WARNING: /" >&2 | |
23540 | ;; | |
23541 | esac | |
23542 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
23543 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
23544 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
23545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23546 | else | |
23547 | ac_cv_header_ext_hash_map=$ac_header_preproc | |
23548 | fi | |
23549 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
23550 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
23551 | ||
23552 | fi | |
23553 | if test $ac_cv_header_ext_hash_map = yes; then | |
23554 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
23555 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
23556 | cat >conftest.$ac_ext <<_ACEOF | |
23557 | /* confdefs.h. */ | |
23558 | _ACEOF | |
23559 | cat confdefs.h >>conftest.$ac_ext | |
23560 | cat >>conftest.$ac_ext <<_ACEOF | |
23561 | /* end confdefs.h. */ | |
23562 | #include <ext/hash_map> | |
23563 | #include <ext/hash_set> | |
23564 | int | |
23565 | main () | |
23566 | { | |
23567 | __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1; | |
23568 | __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2; | |
23569 | ; | |
23570 | return 0; | |
23571 | } | |
23572 | _ACEOF | |
23573 | rm -f conftest.$ac_objext | |
23574 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23575 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 23576 | ac_status=$? |
ac1cb8d3 VS |
23577 | grep -v '^ *+' conftest.er1 >conftest.err |
23578 | rm -f conftest.er1 | |
23579 | cat conftest.err >&5 | |
bdcade0a MB |
23580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23581 | (exit $ac_status); } && | |
5d7b7554 | 23582 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23584 | (eval $ac_try) 2>&5 | |
23585 | ac_status=$? | |
23586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23587 | (exit $ac_status); }; } && | |
23588 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
23589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23590 | (eval $ac_try) 2>&5 | |
23591 | ac_status=$? | |
23592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23593 | (exit $ac_status); }; }; then | |
23594 | echo "$as_me:$LINENO: result: yes" >&5 | |
23595 | echo "${ECHO_T}yes" >&6 | |
23596 | cat >>confdefs.h <<\_ACEOF | |
23597 | #define HAVE_EXT_HASH_MAP 1 | |
23598 | _ACEOF | |
23599 | ||
23600 | cat >>confdefs.h <<\_ACEOF | |
23601 | #define HAVE_GNU_CXX_HASH_MAP 1 | |
23602 | _ACEOF | |
23603 | ||
23604 | else | |
23605 | echo "$as_me: failed program was:" >&5 | |
23606 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23607 | ||
23608 | echo "$as_me:$LINENO: result: no" >&5 | |
23609 | echo "${ECHO_T}no" >&6 | |
23610 | fi | |
ac1cb8d3 | 23611 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23612 | |
23613 | fi | |
23614 | ||
23615 | ||
a848cd7e SC |
23616 | fi |
23617 | ||
23618 | ||
23619 | SEARCH_INCLUDE="\ | |
23620 | /usr/local/include \ | |
23621 | \ | |
23622 | /usr/Motif-2.1/include \ | |
23623 | /usr/Motif-1.2/include \ | |
23624 | /usr/include/Motif1.2 \ | |
a848cd7e SC |
23625 | \ |
23626 | /usr/dt/include \ | |
23627 | /usr/openwin/include \ | |
23628 | \ | |
23629 | /usr/include/Xm \ | |
23630 | \ | |
23631 | /usr/X11R6/include \ | |
23632 | /usr/X11R6.4/include \ | |
23633 | /usr/X11R5/include \ | |
23634 | /usr/X11R4/include \ | |
23635 | \ | |
23636 | /usr/include/X11R6 \ | |
23637 | /usr/include/X11R5 \ | |
23638 | /usr/include/X11R4 \ | |
23639 | \ | |
23640 | /usr/local/X11R6/include \ | |
23641 | /usr/local/X11R5/include \ | |
23642 | /usr/local/X11R4/include \ | |
23643 | \ | |
23644 | /usr/local/include/X11R6 \ | |
23645 | /usr/local/include/X11R5 \ | |
23646 | /usr/local/include/X11R4 \ | |
23647 | \ | |
23648 | /usr/X11/include \ | |
23649 | /usr/include/X11 \ | |
23650 | /usr/local/X11/include \ | |
23651 | /usr/local/include/X11 \ | |
23652 | \ | |
a848cd7e | 23653 | /usr/XFree86/include/X11 \ |
e051b34e MW |
23654 | /usr/pkg/include \ |
23655 | \ | |
a848cd7e SC |
23656 | /usr/openwin/share/include" |
23657 | ||
6f9cf1e6 | 23658 | echo "$as_me:$LINENO: checking for libraries directory" >&5 |
0ad5d837 | 23659 | echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6 |
6f9cf1e6 MW |
23660 | |
23661 | case "${host}" in | |
23662 | *-*-irix6* ) | |
23663 | if test "${wx_cv_std_libpath+set}" = set; then | |
0ad5d837 VZ |
23664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23665 | else | |
23666 | ||
c687b303 VZ |
23667 | for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do |
23668 | for e in a so sl dylib dll.a; do | |
23669 | libc="$d/libc.$e" | |
23670 | if test -f $libc; then | |
23671 | save_LIBS="$LIBS" | |
23672 | LIBS="$libc" | |
23673 | cat >conftest.$ac_ext <<_ACEOF | |
0ad5d837 VZ |
23674 | int main() { return 0; } |
23675 | _ACEOF | |
23676 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23677 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23678 | (eval $ac_link) 2>conftest.er1 | |
23679 | ac_status=$? | |
23680 | grep -v '^ *+' conftest.er1 >conftest.err | |
23681 | rm -f conftest.er1 | |
23682 | cat conftest.err >&5 | |
23683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23684 | (exit $ac_status); } && | |
5d7b7554 | 23685 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
0ad5d837 VZ |
23686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23687 | (eval $ac_try) 2>&5 | |
23688 | ac_status=$? | |
23689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23690 | (exit $ac_status); }; } && | |
23691 | { ac_try='test -s conftest$ac_exeext' | |
23692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23693 | (eval $ac_try) 2>&5 | |
23694 | ac_status=$? | |
23695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23696 | (exit $ac_status); }; }; then | |
23697 | wx_cv_std_libpath=`echo $d | sed s@/usr/@@` | |
23698 | else | |
23699 | echo "$as_me: failed program was:" >&5 | |
23700 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23701 | ||
23702 | fi | |
23703 | rm -f conftest.err conftest.$ac_objext \ | |
23704 | conftest$ac_exeext conftest.$ac_ext | |
c687b303 VZ |
23705 | LIBS="$save_LIBS" |
23706 | if test "x$wx_cv_std_libpath" != "x"; then | |
23707 | break 2 | |
23708 | fi | |
23709 | fi | |
23710 | done | |
23711 | done | |
23712 | if test "x$wx_cv_std_libpath" = "x"; then | |
23713 | wx_cv_std_libpath="lib" | |
0ad5d837 | 23714 | fi |
0ad5d837 VZ |
23715 | |
23716 | ||
23717 | fi | |
6f9cf1e6 MW |
23718 | |
23719 | ;; | |
23720 | ||
23721 | *-*-solaris2* ) | |
23722 | if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then | |
23723 | wx_cv_std_libpath="lib/64" | |
23724 | else | |
23725 | wx_cv_std_libpath="lib" | |
23726 | fi | |
23727 | ;; | |
23728 | ||
23729 | *-*-linux* ) | |
23730 | if test "$ac_cv_sizeof_void_p" = 8 -a \ | |
23731 | -d "/usr/lib64" -a ! -h "/usr/lib64"; then | |
23732 | wx_cv_std_libpath="lib64" | |
23733 | else | |
23734 | wx_cv_std_libpath="lib" | |
23735 | fi | |
c687b303 VZ |
23736 | ;; |
23737 | ||
23738 | *) | |
23739 | wx_cv_std_libpath="lib"; | |
23740 | ;; | |
23741 | esac | |
0ad5d837 | 23742 | |
6f9cf1e6 MW |
23743 | echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5 |
23744 | echo "${ECHO_T}$wx_cv_std_libpath" >&6 | |
23745 | ||
23746 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath" | |
a848cd7e | 23747 | |
3eca31dc MW |
23748 | if test "$build" != "$host" -a "$GCC" = yes; then |
23749 | if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then | |
23750 | cross_root=`dirname $cross_root` | |
23751 | cross_root=`dirname $cross_root` | |
23752 | ||
23753 | SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"` | |
23754 | SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"` | |
5c60e845 | 23755 | SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include" |
3eca31dc MW |
23756 | |
23757 | if test -z "$PKG_CONFIG_PATH"; then | |
23758 | PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig" | |
23759 | export PKG_CONFIG_PATH | |
23760 | fi | |
23761 | ||
23762 | if test -z "$x_includes" -o "$x_includes" = NONE; then | |
23763 | ||
23764 | ac_find_includes= | |
23765 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
23766 | do | |
23767 | if test -f "$ac_dir/X11/Intrinsic.h"; then | |
23768 | ac_find_includes=$ac_dir | |
23769 | break | |
23770 | fi | |
23771 | done | |
23772 | ||
23773 | x_includes=$ac_find_includes | |
23774 | fi | |
23775 | if test -z "$x_libraries" -o "$x_libraries" = NONE; then | |
23776 | ||
0ad5d837 VZ |
23777 | ac_find_libraries= |
23778 | for ac_dir in $SEARCH_LIB; | |
3eca31dc MW |
23779 | do |
23780 | for ac_extension in a so sl dylib dll.a; do | |
23781 | if test -f "$ac_dir/libXt.$ac_extension"; then | |
23782 | ac_find_libraries=$ac_dir | |
23783 | break 2 | |
23784 | fi | |
23785 | done | |
23786 | done | |
23787 | ||
23788 | x_libraries=$ac_find_libraries | |
23789 | fi | |
23790 | fi | |
23791 | fi | |
23792 | ||
a848cd7e SC |
23793 | |
23794 | cat >confcache <<\_ACEOF | |
23795 | # This file is a shell script that caches the results of configure | |
23796 | # tests run on this system so they can be shared between configure | |
23797 | # scripts and configure runs, see configure's option --config-cache. | |
23798 | # It is not useful on other systems. If it contains results you don't | |
23799 | # want to keep, you may remove or edit it. | |
23800 | # | |
23801 | # config.status only pays attention to the cache file if you give it | |
23802 | # the --recheck option to rerun configure. | |
23803 | # | |
23804 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
23805 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
23806 | # following values. | |
23807 | ||
23808 | _ACEOF | |
23809 | ||
23810 | # The following way of writing the cache mishandles newlines in values, | |
23811 | # but we know of no workaround that is simple, portable, and efficient. | |
23812 | # So, don't put newlines in cache variables' values. | |
23813 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
23814 | # and sets the high bit in the cache file unless we assign to the vars. | |
23815 | { | |
23816 | (set) 2>&1 | | |
23817 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
23818 | *ac_space=\ *) | |
23819 | # `set' does not quote correctly, so add quotes (double-quote | |
23820 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
23821 | sed -n \ | |
ac1cb8d3 VS |
23822 | "s/'/'\\\\''/g; |
23823 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
23824 | ;; |
23825 | *) | |
23826 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
23827 | sed -n \ | |
ac1cb8d3 | 23828 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
23829 | ;; |
23830 | esac; | |
23831 | } | | |
23832 | sed ' | |
23833 | t clear | |
23834 | : clear | |
23835 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
23836 | t end | |
23837 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
23838 | : end' >>confcache | |
23839 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
23840 | if test -w $cache_file; then | |
23841 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
23842 | cat confcache >$cache_file | |
23843 | else | |
23844 | echo "not updating unwritable cache $cache_file" | |
23845 | fi | |
23846 | fi | |
23847 | rm -f confcache | |
23848 | ||
23849 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then | |
23850 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 | |
23851 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
23852 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
23853 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23854 | else | |
23855 | ||
23856 | cat >conftest.$ac_ext <<_ACEOF | |
23857 | /* confdefs.h. */ | |
23858 | _ACEOF | |
23859 | cat confdefs.h >>conftest.$ac_ext | |
23860 | cat >>conftest.$ac_ext <<_ACEOF | |
23861 | /* end confdefs.h. */ | |
23862 | #include <features.h> | |
23863 | int | |
23864 | main () | |
23865 | { | |
23866 | ||
23867 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) | |
04e525a0 | 23868 | not glibc 2.1 |
a848cd7e SC |
23869 | #endif |
23870 | ||
23871 | ; | |
23872 | return 0; | |
23873 | } | |
23874 | _ACEOF | |
23875 | rm -f conftest.$ac_objext | |
23876 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23877 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23878 | ac_status=$? |
ac1cb8d3 VS |
23879 | grep -v '^ *+' conftest.er1 >conftest.err |
23880 | rm -f conftest.er1 | |
23881 | cat conftest.err >&5 | |
a848cd7e SC |
23882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23883 | (exit $ac_status); } && | |
5d7b7554 | 23884 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
23885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23886 | (eval $ac_try) 2>&5 | |
23887 | ac_status=$? | |
23888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23889 | (exit $ac_status); }; } && | |
23890 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23892 | (eval $ac_try) 2>&5 | |
23893 | ac_status=$? | |
23894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23895 | (exit $ac_status); }; }; then | |
23896 | ||
23897 | wx_cv_lib_glibc21=yes | |
23898 | ||
23899 | else | |
23900 | echo "$as_me: failed program was:" >&5 | |
23901 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23902 | ||
23903 | ||
23904 | wx_cv_lib_glibc21=no | |
23905 | ||
23906 | ||
23907 | fi | |
ac1cb8d3 | 23908 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23909 | |
23910 | fi | |
23911 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
23912 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
23913 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
23914 | cat >>confdefs.h <<\_ACEOF | |
23915 | #define wxHAVE_GLIBC2 1 | |
23916 | _ACEOF | |
23917 | ||
23918 | fi | |
23919 | fi | |
23920 | ||
23921 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
23922 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
23923 | cat >>confdefs.h <<\_ACEOF | |
23924 | #define _GNU_SOURCE 1 | |
23925 | _ACEOF | |
23926 | ||
23927 | fi | |
23928 | fi | |
23929 | ||
5d7b7554 VZ |
23930 | have_cos=0 |
23931 | have_floor=0 | |
a848cd7e | 23932 | |
5d7b7554 VZ |
23933 | for ac_func in cos |
23934 | do | |
23935 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
23936 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
23937 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
23938 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
a848cd7e | 23939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 23940 | else |
5d7b7554 | 23941 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
23942 | /* confdefs.h. */ |
23943 | _ACEOF | |
23944 | cat confdefs.h >>conftest.$ac_ext | |
23945 | cat >>conftest.$ac_ext <<_ACEOF | |
23946 | /* end confdefs.h. */ | |
5d7b7554 VZ |
23947 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
23948 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
23949 | #define $ac_func innocuous_$ac_func | |
23950 | ||
23951 | /* System header to define __stub macros and hopefully few prototypes, | |
23952 | which can conflict with char $ac_func (); below. | |
23953 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23954 | <limits.h> exists even on freestanding compilers. */ | |
23955 | ||
23956 | #ifdef __STDC__ | |
23957 | # include <limits.h> | |
23958 | #else | |
23959 | # include <assert.h> | |
23960 | #endif | |
23961 | ||
23962 | #undef $ac_func | |
23963 | ||
23964 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23965 | #ifdef __cplusplus | |
23966 | extern "C" | |
23967 | { | |
23968 | #endif | |
23969 | /* We use char because int might match the return type of a gcc2 | |
23970 | builtin and then its argument prototype would still apply. */ | |
23971 | char $ac_func (); | |
23972 | /* The GNU C library defines this for functions which it implements | |
23973 | to always fail with ENOSYS. Some functions are actually named | |
23974 | something starting with __ and the normal name is an alias. */ | |
23975 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
23976 | choke me | |
23977 | #else | |
23978 | char (*f) () = $ac_func; | |
23979 | #endif | |
23980 | #ifdef __cplusplus | |
23981 | } | |
23982 | #endif | |
23983 | ||
23984 | int | |
23985 | main () | |
23986 | { | |
23987 | return f != $ac_func; | |
23988 | ; | |
23989 | return 0; | |
23990 | } | |
a848cd7e | 23991 | _ACEOF |
5d7b7554 VZ |
23992 | rm -f conftest.$ac_objext conftest$ac_exeext |
23993 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23994 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 23995 | ac_status=$? |
ac1cb8d3 VS |
23996 | grep -v '^ *+' conftest.er1 >conftest.err |
23997 | rm -f conftest.er1 | |
23998 | cat conftest.err >&5 | |
a848cd7e SC |
23999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24000 | (exit $ac_status); } && | |
5d7b7554 | 24001 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24003 | (eval $ac_try) 2>&5 | |
24004 | ac_status=$? | |
24005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24006 | (exit $ac_status); }; } && | |
5d7b7554 | 24007 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
24008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24009 | (eval $ac_try) 2>&5 | |
24010 | ac_status=$? | |
24011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24012 | (exit $ac_status); }; }; then | |
5d7b7554 | 24013 | eval "$as_ac_var=yes" |
a848cd7e SC |
24014 | else |
24015 | echo "$as_me: failed program was:" >&5 | |
24016 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24017 | ||
5d7b7554 | 24018 | eval "$as_ac_var=no" |
a848cd7e | 24019 | fi |
5d7b7554 VZ |
24020 | rm -f conftest.err conftest.$ac_objext \ |
24021 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e | 24022 | fi |
5d7b7554 VZ |
24023 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
24024 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24025 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24026 | cat >>confdefs.h <<_ACEOF | |
24027 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24028 | _ACEOF | |
24029 | have_cos=1 | |
a848cd7e | 24030 | fi |
5d7b7554 | 24031 | done |
a848cd7e | 24032 | |
ab0f0edd | 24033 | |
5d7b7554 | 24034 | for ac_func in floor |
a848cd7e SC |
24035 | do |
24036 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
24037 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24038 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24039 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24040 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24041 | else | |
24042 | cat >conftest.$ac_ext <<_ACEOF | |
24043 | /* confdefs.h. */ | |
24044 | _ACEOF | |
24045 | cat confdefs.h >>conftest.$ac_ext | |
24046 | cat >>conftest.$ac_ext <<_ACEOF | |
24047 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24048 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
24049 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24050 | #define $ac_func innocuous_$ac_func | |
24051 | ||
a848cd7e SC |
24052 | /* System header to define __stub macros and hopefully few prototypes, |
24053 | which can conflict with char $ac_func (); below. | |
24054 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24055 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24056 | |
a848cd7e SC |
24057 | #ifdef __STDC__ |
24058 | # include <limits.h> | |
24059 | #else | |
24060 | # include <assert.h> | |
24061 | #endif | |
ac1cb8d3 VS |
24062 | |
24063 | #undef $ac_func | |
24064 | ||
a848cd7e SC |
24065 | /* Override any gcc2 internal prototype to avoid an error. */ |
24066 | #ifdef __cplusplus | |
24067 | extern "C" | |
24068 | { | |
24069 | #endif | |
24070 | /* We use char because int might match the return type of a gcc2 | |
24071 | builtin and then its argument prototype would still apply. */ | |
24072 | char $ac_func (); | |
24073 | /* The GNU C library defines this for functions which it implements | |
24074 | to always fail with ENOSYS. Some functions are actually named | |
24075 | something starting with __ and the normal name is an alias. */ | |
24076 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24077 | choke me | |
24078 | #else | |
24079 | char (*f) () = $ac_func; | |
24080 | #endif | |
24081 | #ifdef __cplusplus | |
24082 | } | |
24083 | #endif | |
24084 | ||
24085 | int | |
24086 | main () | |
24087 | { | |
24088 | return f != $ac_func; | |
24089 | ; | |
24090 | return 0; | |
24091 | } | |
24092 | _ACEOF | |
24093 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24094 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24095 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24096 | ac_status=$? |
ac1cb8d3 VS |
24097 | grep -v '^ *+' conftest.er1 >conftest.err |
24098 | rm -f conftest.er1 | |
24099 | cat conftest.err >&5 | |
a848cd7e SC |
24100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24101 | (exit $ac_status); } && | |
5d7b7554 VZ |
24102 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
24103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24104 | (eval $ac_try) 2>&5 | |
24105 | ac_status=$? | |
24106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24107 | (exit $ac_status); }; } && | |
24108 | { ac_try='test -s conftest$ac_exeext' | |
24109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24110 | (eval $ac_try) 2>&5 | |
24111 | ac_status=$? | |
24112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24113 | (exit $ac_status); }; }; then | |
24114 | eval "$as_ac_var=yes" | |
24115 | else | |
24116 | echo "$as_me: failed program was:" >&5 | |
24117 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24118 | ||
24119 | eval "$as_ac_var=no" | |
24120 | fi | |
24121 | rm -f conftest.err conftest.$ac_objext \ | |
24122 | conftest$ac_exeext conftest.$ac_ext | |
24123 | fi | |
24124 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24125 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24126 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24127 | cat >>confdefs.h <<_ACEOF | |
24128 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24129 | _ACEOF | |
24130 | have_floor=1 | |
24131 | fi | |
24132 | done | |
24133 | ||
24134 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 | |
24135 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
24136 | if test "$have_cos" = 1 -a "$have_floor" = 1; then | |
24137 | echo "$as_me:$LINENO: result: yes" >&5 | |
24138 | echo "${ECHO_T}yes" >&6 | |
24139 | else | |
24140 | echo "$as_me:$LINENO: result: no" >&5 | |
24141 | echo "${ECHO_T}no" >&6 | |
24142 | LIBS="$LIBS -lm" | |
24143 | # use different functions to avoid configure caching | |
24144 | have_sin=0 | |
24145 | have_ceil=0 | |
24146 | ||
24147 | for ac_func in sin | |
24148 | do | |
24149 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
24150 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24151 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24152 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24153 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24154 | else | |
24155 | cat >conftest.$ac_ext <<_ACEOF | |
24156 | /* confdefs.h. */ | |
24157 | _ACEOF | |
24158 | cat confdefs.h >>conftest.$ac_ext | |
24159 | cat >>conftest.$ac_ext <<_ACEOF | |
24160 | /* end confdefs.h. */ | |
24161 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
24162 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24163 | #define $ac_func innocuous_$ac_func | |
24164 | ||
24165 | /* System header to define __stub macros and hopefully few prototypes, | |
24166 | which can conflict with char $ac_func (); below. | |
24167 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24168 | <limits.h> exists even on freestanding compilers. */ | |
24169 | ||
24170 | #ifdef __STDC__ | |
24171 | # include <limits.h> | |
24172 | #else | |
24173 | # include <assert.h> | |
24174 | #endif | |
24175 | ||
24176 | #undef $ac_func | |
24177 | ||
24178 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24179 | #ifdef __cplusplus | |
24180 | extern "C" | |
24181 | { | |
24182 | #endif | |
24183 | /* We use char because int might match the return type of a gcc2 | |
24184 | builtin and then its argument prototype would still apply. */ | |
24185 | char $ac_func (); | |
24186 | /* The GNU C library defines this for functions which it implements | |
24187 | to always fail with ENOSYS. Some functions are actually named | |
24188 | something starting with __ and the normal name is an alias. */ | |
24189 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24190 | choke me | |
24191 | #else | |
24192 | char (*f) () = $ac_func; | |
24193 | #endif | |
24194 | #ifdef __cplusplus | |
24195 | } | |
24196 | #endif | |
24197 | ||
24198 | int | |
24199 | main () | |
24200 | { | |
24201 | return f != $ac_func; | |
24202 | ; | |
24203 | return 0; | |
24204 | } | |
24205 | _ACEOF | |
24206 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24207 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24208 | (eval $ac_link) 2>conftest.er1 | |
24209 | ac_status=$? | |
24210 | grep -v '^ *+' conftest.er1 >conftest.err | |
24211 | rm -f conftest.er1 | |
24212 | cat conftest.err >&5 | |
24213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24214 | (exit $ac_status); } && | |
24215 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
24216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24217 | (eval $ac_try) 2>&5 | |
24218 | ac_status=$? | |
24219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24220 | (exit $ac_status); }; } && | |
24221 | { ac_try='test -s conftest$ac_exeext' | |
24222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24223 | (eval $ac_try) 2>&5 | |
24224 | ac_status=$? | |
24225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24226 | (exit $ac_status); }; }; then | |
24227 | eval "$as_ac_var=yes" | |
24228 | else | |
24229 | echo "$as_me: failed program was:" >&5 | |
24230 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24231 | ||
24232 | eval "$as_ac_var=no" | |
24233 | fi | |
24234 | rm -f conftest.err conftest.$ac_objext \ | |
24235 | conftest$ac_exeext conftest.$ac_ext | |
24236 | fi | |
24237 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24238 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24239 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24240 | cat >>confdefs.h <<_ACEOF | |
24241 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24242 | _ACEOF | |
24243 | have_sin=1 | |
24244 | fi | |
24245 | done | |
24246 | ||
24247 | ||
24248 | for ac_func in ceil | |
24249 | do | |
24250 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
24251 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24252 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24253 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24254 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24255 | else | |
24256 | cat >conftest.$ac_ext <<_ACEOF | |
24257 | /* confdefs.h. */ | |
24258 | _ACEOF | |
24259 | cat confdefs.h >>conftest.$ac_ext | |
24260 | cat >>conftest.$ac_ext <<_ACEOF | |
24261 | /* end confdefs.h. */ | |
24262 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
24263 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24264 | #define $ac_func innocuous_$ac_func | |
24265 | ||
24266 | /* System header to define __stub macros and hopefully few prototypes, | |
24267 | which can conflict with char $ac_func (); below. | |
24268 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24269 | <limits.h> exists even on freestanding compilers. */ | |
24270 | ||
24271 | #ifdef __STDC__ | |
24272 | # include <limits.h> | |
24273 | #else | |
24274 | # include <assert.h> | |
24275 | #endif | |
24276 | ||
24277 | #undef $ac_func | |
24278 | ||
24279 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24280 | #ifdef __cplusplus | |
24281 | extern "C" | |
24282 | { | |
24283 | #endif | |
24284 | /* We use char because int might match the return type of a gcc2 | |
24285 | builtin and then its argument prototype would still apply. */ | |
24286 | char $ac_func (); | |
24287 | /* The GNU C library defines this for functions which it implements | |
24288 | to always fail with ENOSYS. Some functions are actually named | |
24289 | something starting with __ and the normal name is an alias. */ | |
24290 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24291 | choke me | |
24292 | #else | |
24293 | char (*f) () = $ac_func; | |
24294 | #endif | |
24295 | #ifdef __cplusplus | |
24296 | } | |
24297 | #endif | |
24298 | ||
24299 | int | |
24300 | main () | |
24301 | { | |
24302 | return f != $ac_func; | |
24303 | ; | |
24304 | return 0; | |
24305 | } | |
24306 | _ACEOF | |
24307 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24308 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24309 | (eval $ac_link) 2>conftest.er1 | |
24310 | ac_status=$? | |
24311 | grep -v '^ *+' conftest.er1 >conftest.err | |
24312 | rm -f conftest.er1 | |
24313 | cat conftest.err >&5 | |
24314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24315 | (exit $ac_status); } && | |
24316 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
24317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24318 | (eval $ac_try) 2>&5 | |
24319 | ac_status=$? | |
24320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24321 | (exit $ac_status); }; } && | |
24322 | { ac_try='test -s conftest$ac_exeext' | |
24323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24324 | (eval $ac_try) 2>&5 | |
24325 | ac_status=$? | |
24326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24327 | (exit $ac_status); }; }; then | |
24328 | eval "$as_ac_var=yes" | |
24329 | else | |
24330 | echo "$as_me: failed program was:" >&5 | |
24331 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24332 | ||
24333 | eval "$as_ac_var=no" | |
24334 | fi | |
24335 | rm -f conftest.err conftest.$ac_objext \ | |
24336 | conftest$ac_exeext conftest.$ac_ext | |
24337 | fi | |
24338 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24339 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24340 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24341 | cat >>confdefs.h <<_ACEOF | |
24342 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24343 | _ACEOF | |
24344 | have_ceil=1 | |
24345 | fi | |
24346 | done | |
24347 | ||
24348 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 | |
24349 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
24350 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then | |
24351 | echo "$as_me:$LINENO: result: yes" >&5 | |
24352 | echo "${ECHO_T}yes" >&6 | |
24353 | else | |
24354 | echo "$as_me:$LINENO: result: no" >&5 | |
24355 | echo "${ECHO_T}no" >&6 | |
24356 | # not sure we should warn the user, crash, etc. | |
24357 | fi | |
24358 | fi | |
24359 | ||
24360 | ||
24361 | ||
24362 | if test "$wxUSE_REGEX" != "no"; then | |
24363 | cat >>confdefs.h <<\_ACEOF | |
24364 | #define wxUSE_REGEX 1 | |
24365 | _ACEOF | |
24366 | ||
24367 | ||
24368 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then | |
24369 | { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5 | |
24370 | echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;} | |
24371 | wxUSE_REGEX=builtin | |
24372 | fi | |
24373 | ||
24374 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
24375 | if test "${ac_cv_header_regex_h+set}" = set; then | |
24376 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
24377 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
24378 | if test "${ac_cv_header_regex_h+set}" = set; then | |
24379 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24380 | fi | |
24381 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
24382 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
24383 | else | |
24384 | # Is the header compilable? | |
24385 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
24386 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
24387 | cat >conftest.$ac_ext <<_ACEOF | |
24388 | /* confdefs.h. */ | |
24389 | _ACEOF | |
24390 | cat confdefs.h >>conftest.$ac_ext | |
24391 | cat >>conftest.$ac_ext <<_ACEOF | |
24392 | /* end confdefs.h. */ | |
24393 | $ac_includes_default | |
24394 | #include <regex.h> | |
24395 | _ACEOF | |
24396 | rm -f conftest.$ac_objext | |
24397 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24398 | (eval $ac_compile) 2>conftest.er1 | |
24399 | ac_status=$? | |
24400 | grep -v '^ *+' conftest.er1 >conftest.err | |
24401 | rm -f conftest.er1 | |
24402 | cat conftest.err >&5 | |
24403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24404 | (exit $ac_status); } && | |
24405 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
24406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24407 | (eval $ac_try) 2>&5 | |
24408 | ac_status=$? | |
24409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24410 | (exit $ac_status); }; } && | |
24411 | { ac_try='test -s conftest.$ac_objext' | |
24412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24413 | (eval $ac_try) 2>&5 | |
24414 | ac_status=$? | |
24415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24416 | (exit $ac_status); }; }; then | |
24417 | ac_header_compiler=yes | |
24418 | else | |
24419 | echo "$as_me: failed program was:" >&5 | |
24420 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24421 | ||
24422 | ac_header_compiler=no | |
24423 | fi | |
24424 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
24425 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
24426 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24427 | ||
24428 | # Is the header present? | |
24429 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
24430 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
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 | #include <regex.h> | |
24438 | _ACEOF | |
24439 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24440 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24441 | ac_status=$? | |
24442 | grep -v '^ *+' conftest.er1 >conftest.err | |
24443 | rm -f conftest.er1 | |
24444 | cat conftest.err >&5 | |
24445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24446 | (exit $ac_status); } >/dev/null; then | |
24447 | if test -s conftest.err; then | |
24448 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
24449 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
24450 | else | |
24451 | ac_cpp_err= | |
24452 | fi | |
24453 | else | |
24454 | ac_cpp_err=yes | |
24455 | fi | |
24456 | if test -z "$ac_cpp_err"; then | |
24457 | ac_header_preproc=yes | |
24458 | else | |
24459 | echo "$as_me: failed program was:" >&5 | |
24460 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24461 | ||
24462 | ac_header_preproc=no | |
24463 | fi | |
24464 | rm -f conftest.err conftest.$ac_ext | |
24465 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24466 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24467 | ||
24468 | # So? What about this header? | |
24469 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in | |
24470 | yes:no: ) | |
24471 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
24472 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
24473 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5 | |
24474 | echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;} | |
24475 | ac_header_preproc=yes | |
24476 | ;; | |
24477 | no:yes:* ) | |
24478 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 | |
24479 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
24480 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 | |
24481 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
24482 | { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5 | |
24483 | echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;} | |
24484 | { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24485 | echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
24486 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 | |
24487 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
24488 | { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5 | |
24489 | echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;} | |
24490 | ( | |
24491 | cat <<\_ASBOX | |
24492 | ## ----------------------------------------- ## | |
24493 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24494 | ## ----------------------------------------- ## | |
24495 | _ASBOX | |
24496 | ) | | |
24497 | sed "s/^/$as_me: WARNING: /" >&2 | |
24498 | ;; | |
24499 | esac | |
24500 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
24501 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
24502 | if test "${ac_cv_header_regex_h+set}" = set; then | |
24503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24504 | else | |
24505 | ac_cv_header_regex_h=$ac_header_preproc | |
24506 | fi | |
24507 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
24508 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
24509 | ||
24510 | fi | |
24511 | if test $ac_cv_header_regex_h = yes; then | |
24512 | ||
24513 | ||
24514 | for ac_func in regcomp re_search | |
24515 | do | |
24516 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
24517 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24518 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24519 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24520 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24521 | else | |
24522 | cat >conftest.$ac_ext <<_ACEOF | |
24523 | /* confdefs.h. */ | |
24524 | _ACEOF | |
24525 | cat confdefs.h >>conftest.$ac_ext | |
24526 | cat >>conftest.$ac_ext <<_ACEOF | |
24527 | /* end confdefs.h. */ | |
24528 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
24529 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24530 | #define $ac_func innocuous_$ac_func | |
24531 | ||
24532 | /* System header to define __stub macros and hopefully few prototypes, | |
24533 | which can conflict with char $ac_func (); below. | |
24534 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24535 | <limits.h> exists even on freestanding compilers. */ | |
24536 | ||
24537 | #ifdef __STDC__ | |
24538 | # include <limits.h> | |
24539 | #else | |
24540 | # include <assert.h> | |
24541 | #endif | |
24542 | ||
24543 | #undef $ac_func | |
24544 | ||
24545 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24546 | #ifdef __cplusplus | |
24547 | extern "C" | |
24548 | { | |
24549 | #endif | |
24550 | /* We use char because int might match the return type of a gcc2 | |
24551 | builtin and then its argument prototype would still apply. */ | |
24552 | char $ac_func (); | |
24553 | /* The GNU C library defines this for functions which it implements | |
24554 | to always fail with ENOSYS. Some functions are actually named | |
24555 | something starting with __ and the normal name is an alias. */ | |
24556 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24557 | choke me | |
24558 | #else | |
24559 | char (*f) () = $ac_func; | |
24560 | #endif | |
24561 | #ifdef __cplusplus | |
24562 | } | |
24563 | #endif | |
24564 | ||
24565 | int | |
24566 | main () | |
24567 | { | |
24568 | return f != $ac_func; | |
24569 | ; | |
24570 | return 0; | |
24571 | } | |
24572 | _ACEOF | |
24573 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24574 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24575 | (eval $ac_link) 2>conftest.er1 | |
24576 | ac_status=$? | |
24577 | grep -v '^ *+' conftest.er1 >conftest.err | |
24578 | rm -f conftest.er1 | |
24579 | cat conftest.err >&5 | |
24580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24581 | (exit $ac_status); } && | |
24582 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | |
ac1cb8d3 VS |
24583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24584 | (eval $ac_try) 2>&5 | |
24585 | ac_status=$? | |
24586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24587 | (exit $ac_status); }; } && | |
24588 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24590 | (eval $ac_try) 2>&5 | |
24591 | ac_status=$? | |
24592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24593 | (exit $ac_status); }; }; then | |
24594 | eval "$as_ac_var=yes" | |
24595 | else | |
24596 | echo "$as_me: failed program was:" >&5 | |
24597 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24598 | ||
24599 | eval "$as_ac_var=no" | |
24600 | fi | |
ac1cb8d3 VS |
24601 | rm -f conftest.err conftest.$ac_objext \ |
24602 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24603 | fi |
24604 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24605 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24606 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24607 | cat >>confdefs.h <<_ACEOF | |
24608 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24609 | _ACEOF | |
24610 | ||
24611 | fi | |
24612 | done | |
24613 | ||
24614 | fi | |
24615 | ||
24616 | ||
24617 | ||
24618 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
24619 | if test "$wxUSE_REGEX" = "sys" ; then | |
24620 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 | |
24621 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
24622 | { (exit 1); exit 1; }; } | |
24623 | else | |
24624 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 | |
24625 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
24626 | wxUSE_REGEX=builtin | |
24627 | fi | |
24628 | else | |
24629 | wxUSE_REGEX=sys | |
24630 | cat >>confdefs.h <<\_ACEOF | |
24631 | #define WX_NO_REGEX_ADVANCED 1 | |
24632 | _ACEOF | |
24633 | ||
24634 | fi | |
24635 | fi | |
24636 | fi | |
24637 | ||
24638 | ||
24639 | ZLIB_LINK= | |
24640 | if test "$wxUSE_ZLIB" != "no" ; then | |
24641 | cat >>confdefs.h <<\_ACEOF | |
24642 | #define wxUSE_ZLIB 1 | |
24643 | _ACEOF | |
24644 | ||
24645 | ||
24646 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
24647 | if test "$USE_DARWIN" = 1; then | |
24648 | system_zlib_h_ok="yes" | |
24649 | else | |
24650 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 | |
24651 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
24652 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
24653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24654 | else | |
24655 | if test "$cross_compiling" = yes; then | |
24656 | unset ac_cv_header_zlib_h | |
24657 | ||
24658 | else | |
24659 | cat >conftest.$ac_ext <<_ACEOF | |
24660 | /* confdefs.h. */ | |
24661 | _ACEOF | |
24662 | cat confdefs.h >>conftest.$ac_ext | |
24663 | cat >>conftest.$ac_ext <<_ACEOF | |
24664 | /* end confdefs.h. */ | |
24665 | ||
24666 | #include <zlib.h> | |
24667 | #include <stdio.h> | |
24668 | ||
24669 | int main() | |
24670 | { | |
24671 | FILE *f=fopen("conftestval", "w"); | |
24672 | if (!f) exit(1); | |
24673 | fprintf(f, "%s", | |
24674 | ZLIB_VERSION[0] == '1' && | |
24675 | (ZLIB_VERSION[2] > '1' || | |
24676 | (ZLIB_VERSION[2] == '1' && | |
24677 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
24678 | exit(0); | |
24679 | } | |
24680 | ||
24681 | _ACEOF | |
24682 | rm -f conftest$ac_exeext | |
24683 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24684 | (eval $ac_link) 2>&5 | |
24685 | ac_status=$? | |
24686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24687 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
24688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24689 | (eval $ac_try) 2>&5 | |
24690 | ac_status=$? | |
24691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24692 | (exit $ac_status); }; }; then | |
24693 | ac_cv_header_zlib_h=`cat conftestval` | |
24694 | else | |
24695 | echo "$as_me: program exited with status $ac_status" >&5 | |
24696 | echo "$as_me: failed program was:" >&5 | |
24697 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24698 | ||
24699 | ( exit $ac_status ) | |
24700 | ac_cv_header_zlib_h=no | |
24701 | fi | |
ac1cb8d3 | 24702 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24703 | fi |
24704 | ||
24705 | fi | |
24706 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
24707 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
24708 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
24709 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
24710 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
24711 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
24712 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24713 | fi | |
24714 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
24715 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
24716 | else | |
24717 | # Is the header compilable? | |
24718 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
24719 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
24720 | cat >conftest.$ac_ext <<_ACEOF | |
24721 | /* confdefs.h. */ | |
24722 | _ACEOF | |
24723 | cat confdefs.h >>conftest.$ac_ext | |
24724 | cat >>conftest.$ac_ext <<_ACEOF | |
24725 | /* end confdefs.h. */ | |
24726 | $ac_includes_default | |
24727 | #include <zlib.h> | |
24728 | _ACEOF | |
24729 | rm -f conftest.$ac_objext | |
24730 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24731 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24732 | ac_status=$? |
ac1cb8d3 VS |
24733 | grep -v '^ *+' conftest.er1 >conftest.err |
24734 | rm -f conftest.er1 | |
24735 | cat conftest.err >&5 | |
a848cd7e SC |
24736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24737 | (exit $ac_status); } && | |
5d7b7554 | 24738 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24740 | (eval $ac_try) 2>&5 | |
24741 | ac_status=$? | |
24742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24743 | (exit $ac_status); }; } && | |
24744 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24746 | (eval $ac_try) 2>&5 | |
24747 | ac_status=$? | |
24748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24749 | (exit $ac_status); }; }; then | |
24750 | ac_header_compiler=yes | |
24751 | else | |
24752 | echo "$as_me: failed program was:" >&5 | |
24753 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24754 | ||
24755 | ac_header_compiler=no | |
24756 | fi | |
ac1cb8d3 | 24757 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24758 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24759 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24760 | ||
24761 | # Is the header present? | |
24762 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
24763 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
24764 | cat >conftest.$ac_ext <<_ACEOF | |
24765 | /* confdefs.h. */ | |
24766 | _ACEOF | |
24767 | cat confdefs.h >>conftest.$ac_ext | |
24768 | cat >>conftest.$ac_ext <<_ACEOF | |
24769 | /* end confdefs.h. */ | |
24770 | #include <zlib.h> | |
24771 | _ACEOF | |
24772 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24773 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24774 | ac_status=$? | |
24775 | grep -v '^ *+' conftest.er1 >conftest.err | |
24776 | rm -f conftest.er1 | |
24777 | cat conftest.err >&5 | |
24778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24779 | (exit $ac_status); } >/dev/null; then | |
24780 | if test -s conftest.err; then | |
5d7b7554 VZ |
24781 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
24782 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
24783 | else |
24784 | ac_cpp_err= | |
24785 | fi | |
24786 | else | |
24787 | ac_cpp_err=yes | |
24788 | fi | |
24789 | if test -z "$ac_cpp_err"; then | |
24790 | ac_header_preproc=yes | |
24791 | else | |
24792 | echo "$as_me: failed program was:" >&5 | |
24793 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24794 | ||
24795 | ac_header_preproc=no | |
24796 | fi | |
24797 | rm -f conftest.err conftest.$ac_ext | |
24798 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24799 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24800 | ||
24801 | # So? What about this header? | |
5d7b7554 | 24802 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 24803 | yes:no: ) |
a848cd7e SC |
24804 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
24805 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24806 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
24807 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
24808 | ac_header_preproc=yes | |
a848cd7e | 24809 | ;; |
ac1cb8d3 | 24810 | no:yes:* ) |
a848cd7e SC |
24811 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
24812 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24813 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
24814 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
24815 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
24816 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
24817 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24818 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
24819 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
24820 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24821 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
24822 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
24823 | ( |
24824 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24825 | ## ----------------------------------------- ## |
24826 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24827 | ## ----------------------------------------- ## | |
a848cd7e SC |
24828 | _ASBOX |
24829 | ) | | |
24830 | sed "s/^/$as_me: WARNING: /" >&2 | |
24831 | ;; | |
24832 | esac | |
24833 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
24834 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
24835 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
24836 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24837 | else | |
24838 | ac_cv_header_zlib_h=$ac_header_preproc | |
24839 | fi | |
24840 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
24841 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
24842 | ||
24843 | fi | |
24844 | ||
24845 | ||
24846 | ||
24847 | system_zlib_h_ok=$ac_cv_header_zlib_h | |
24848 | fi | |
24849 | ||
24850 | if test "$system_zlib_h_ok" = "yes"; then | |
24851 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | |
24852 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
24853 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
24854 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24855 | else | |
24856 | ac_check_lib_save_LIBS=$LIBS | |
24857 | LIBS="-lz $LIBS" | |
24858 | cat >conftest.$ac_ext <<_ACEOF | |
24859 | /* confdefs.h. */ | |
24860 | _ACEOF | |
24861 | cat confdefs.h >>conftest.$ac_ext | |
24862 | cat >>conftest.$ac_ext <<_ACEOF | |
24863 | /* end confdefs.h. */ | |
24864 | ||
24865 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24866 | #ifdef __cplusplus | |
24867 | extern "C" | |
24868 | #endif | |
24869 | /* We use char because int might match the return type of a gcc2 | |
24870 | builtin and then its argument prototype would still apply. */ | |
24871 | char deflate (); | |
24872 | int | |
24873 | main () | |
24874 | { | |
24875 | deflate (); | |
24876 | ; | |
24877 | return 0; | |
24878 | } | |
24879 | _ACEOF | |
24880 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24881 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24882 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24883 | ac_status=$? |
ac1cb8d3 VS |
24884 | grep -v '^ *+' conftest.er1 >conftest.err |
24885 | rm -f conftest.er1 | |
24886 | cat conftest.err >&5 | |
a848cd7e SC |
24887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24888 | (exit $ac_status); } && | |
5d7b7554 | 24889 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
24890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24891 | (eval $ac_try) 2>&5 | |
24892 | ac_status=$? | |
24893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24894 | (exit $ac_status); }; } && | |
24895 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24897 | (eval $ac_try) 2>&5 | |
24898 | ac_status=$? | |
24899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24900 | (exit $ac_status); }; }; then | |
24901 | ac_cv_lib_z_deflate=yes | |
24902 | else | |
24903 | echo "$as_me: failed program was:" >&5 | |
24904 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24905 | ||
24906 | ac_cv_lib_z_deflate=no | |
24907 | fi | |
ac1cb8d3 VS |
24908 | rm -f conftest.err conftest.$ac_objext \ |
24909 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24910 | LIBS=$ac_check_lib_save_LIBS |
24911 | fi | |
24912 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
24913 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
24914 | if test $ac_cv_lib_z_deflate = yes; then | |
24915 | ZLIB_LINK=" -lz" | |
24916 | fi | |
24917 | ||
24918 | fi | |
24919 | ||
24920 | if test "x$ZLIB_LINK" = "x" ; then | |
24921 | if test "$wxUSE_ZLIB" = "sys" ; then | |
24922 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 | |
24923 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
24924 | { (exit 1); exit 1; }; } | |
24925 | else | |
24926 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 | |
24927 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
24928 | wxUSE_ZLIB=builtin | |
24929 | fi | |
24930 | else | |
24931 | wxUSE_ZLIB=sys | |
24932 | fi | |
24933 | fi | |
24934 | fi | |
24935 | ||
24936 | ||
24937 | PNG_LINK= | |
24938 | if test "$wxUSE_LIBPNG" != "no" ; then | |
24939 | cat >>confdefs.h <<\_ACEOF | |
24940 | #define wxUSE_LIBPNG 1 | |
24941 | _ACEOF | |
24942 | ||
24943 | ||
24944 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
24945 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 | |
24946 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
24947 | wxUSE_LIBPNG=sys | |
24948 | fi | |
24949 | ||
24950 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
24951 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 | |
24952 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
24953 | wxUSE_LIBPNG=builtin | |
24954 | fi | |
24955 | ||
24956 | if test "$wxUSE_MGL" != 1 ; then | |
24957 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
24958 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 | |
24959 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
24960 | if test "${ac_cv_header_png_h+set}" = set; then | |
24961 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24962 | else | |
24963 | if test "$cross_compiling" = yes; then | |
24964 | unset ac_cv_header_png_h | |
24965 | ||
24966 | else | |
24967 | cat >conftest.$ac_ext <<_ACEOF | |
24968 | /* confdefs.h. */ | |
24969 | _ACEOF | |
24970 | cat confdefs.h >>conftest.$ac_ext | |
24971 | cat >>conftest.$ac_ext <<_ACEOF | |
24972 | /* end confdefs.h. */ | |
24973 | ||
24974 | #include <png.h> | |
24975 | #include <stdio.h> | |
24976 | ||
24977 | int main() | |
24978 | { | |
24979 | FILE *f=fopen("conftestval", "w"); | |
24980 | if (!f) exit(1); | |
24981 | fprintf(f, "%s", | |
24982 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
24983 | exit(0); | |
24984 | } | |
24985 | ||
24986 | _ACEOF | |
24987 | rm -f conftest$ac_exeext | |
24988 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24989 | (eval $ac_link) 2>&5 | |
24990 | ac_status=$? | |
24991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24992 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
24993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24994 | (eval $ac_try) 2>&5 | |
24995 | ac_status=$? | |
24996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24997 | (exit $ac_status); }; }; then | |
24998 | ac_cv_header_png_h=`cat conftestval` | |
24999 | else | |
25000 | echo "$as_me: program exited with status $ac_status" >&5 | |
25001 | echo "$as_me: failed program was:" >&5 | |
25002 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25003 | ||
25004 | ( exit $ac_status ) | |
25005 | ac_cv_header_png_h=no | |
25006 | fi | |
ac1cb8d3 | 25007 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25008 | fi |
25009 | ||
25010 | fi | |
25011 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
25012 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
25013 | if test "${ac_cv_header_png_h+set}" = set; then | |
25014 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
25015 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
25016 | if test "${ac_cv_header_png_h+set}" = set; then | |
25017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25018 | fi | |
25019 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
25020 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
25021 | else | |
25022 | # Is the header compilable? | |
25023 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
25024 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
25025 | cat >conftest.$ac_ext <<_ACEOF | |
25026 | /* confdefs.h. */ | |
25027 | _ACEOF | |
25028 | cat confdefs.h >>conftest.$ac_ext | |
25029 | cat >>conftest.$ac_ext <<_ACEOF | |
25030 | /* end confdefs.h. */ | |
25031 | $ac_includes_default | |
25032 | #include <png.h> | |
25033 | _ACEOF | |
25034 | rm -f conftest.$ac_objext | |
25035 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25036 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25037 | ac_status=$? |
ac1cb8d3 VS |
25038 | grep -v '^ *+' conftest.er1 >conftest.err |
25039 | rm -f conftest.er1 | |
25040 | cat conftest.err >&5 | |
a848cd7e SC |
25041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25042 | (exit $ac_status); } && | |
5d7b7554 | 25043 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25045 | (eval $ac_try) 2>&5 | |
25046 | ac_status=$? | |
25047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25048 | (exit $ac_status); }; } && | |
25049 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25051 | (eval $ac_try) 2>&5 | |
25052 | ac_status=$? | |
25053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25054 | (exit $ac_status); }; }; then | |
25055 | ac_header_compiler=yes | |
25056 | else | |
25057 | echo "$as_me: failed program was:" >&5 | |
25058 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25059 | ||
25060 | ac_header_compiler=no | |
25061 | fi | |
ac1cb8d3 | 25062 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25063 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25064 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25065 | ||
25066 | # Is the header present? | |
25067 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
25068 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
25069 | cat >conftest.$ac_ext <<_ACEOF | |
25070 | /* confdefs.h. */ | |
25071 | _ACEOF | |
25072 | cat confdefs.h >>conftest.$ac_ext | |
25073 | cat >>conftest.$ac_ext <<_ACEOF | |
25074 | /* end confdefs.h. */ | |
25075 | #include <png.h> | |
25076 | _ACEOF | |
25077 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25078 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25079 | ac_status=$? | |
25080 | grep -v '^ *+' conftest.er1 >conftest.err | |
25081 | rm -f conftest.er1 | |
25082 | cat conftest.err >&5 | |
25083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25084 | (exit $ac_status); } >/dev/null; then | |
25085 | if test -s conftest.err; then | |
5d7b7554 VZ |
25086 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
25087 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
25088 | else |
25089 | ac_cpp_err= | |
25090 | fi | |
25091 | else | |
25092 | ac_cpp_err=yes | |
25093 | fi | |
25094 | if test -z "$ac_cpp_err"; then | |
25095 | ac_header_preproc=yes | |
25096 | else | |
25097 | echo "$as_me: failed program was:" >&5 | |
25098 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25099 | ||
25100 | ac_header_preproc=no | |
25101 | fi | |
25102 | rm -f conftest.err conftest.$ac_ext | |
25103 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25104 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25105 | ||
25106 | # So? What about this header? | |
5d7b7554 | 25107 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 25108 | yes:no: ) |
a848cd7e SC |
25109 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
25110 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25111 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
25112 | echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} | |
25113 | ac_header_preproc=yes | |
a848cd7e | 25114 | ;; |
ac1cb8d3 | 25115 | no:yes:* ) |
a848cd7e SC |
25116 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
25117 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25118 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
25119 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
25120 | { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 | |
25121 | echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} | |
25122 | { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 | |
25123 | echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25124 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
25125 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25126 | { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
25127 | echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25128 | ( |
25129 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25130 | ## ----------------------------------------- ## |
25131 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25132 | ## ----------------------------------------- ## | |
a848cd7e SC |
25133 | _ASBOX |
25134 | ) | | |
25135 | sed "s/^/$as_me: WARNING: /" >&2 | |
25136 | ;; | |
25137 | esac | |
25138 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
25139 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
25140 | if test "${ac_cv_header_png_h+set}" = set; then | |
25141 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25142 | else | |
25143 | ac_cv_header_png_h=$ac_header_preproc | |
25144 | fi | |
25145 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
25146 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
25147 | ||
25148 | fi | |
25149 | ||
25150 | ||
25151 | ||
25152 | if test "$ac_cv_header_png_h" = "yes"; then | |
25153 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 | |
25154 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
25155 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
25156 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25157 | else | |
25158 | ac_check_lib_save_LIBS=$LIBS | |
25159 | LIBS="-lpng -lz -lm $LIBS" | |
25160 | cat >conftest.$ac_ext <<_ACEOF | |
25161 | /* confdefs.h. */ | |
25162 | _ACEOF | |
25163 | cat confdefs.h >>conftest.$ac_ext | |
25164 | cat >>conftest.$ac_ext <<_ACEOF | |
25165 | /* end confdefs.h. */ | |
25166 | ||
25167 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25168 | #ifdef __cplusplus | |
25169 | extern "C" | |
25170 | #endif | |
25171 | /* We use char because int might match the return type of a gcc2 | |
25172 | builtin and then its argument prototype would still apply. */ | |
25173 | char png_check_sig (); | |
25174 | int | |
25175 | main () | |
25176 | { | |
25177 | png_check_sig (); | |
25178 | ; | |
25179 | return 0; | |
25180 | } | |
25181 | _ACEOF | |
25182 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25183 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25184 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25185 | ac_status=$? |
ac1cb8d3 VS |
25186 | grep -v '^ *+' conftest.er1 >conftest.err |
25187 | rm -f conftest.er1 | |
25188 | cat conftest.err >&5 | |
a848cd7e SC |
25189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25190 | (exit $ac_status); } && | |
5d7b7554 | 25191 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25193 | (eval $ac_try) 2>&5 | |
25194 | ac_status=$? | |
25195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25196 | (exit $ac_status); }; } && | |
25197 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25199 | (eval $ac_try) 2>&5 | |
25200 | ac_status=$? | |
25201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25202 | (exit $ac_status); }; }; then | |
25203 | ac_cv_lib_png_png_check_sig=yes | |
25204 | else | |
25205 | echo "$as_me: failed program was:" >&5 | |
25206 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25207 | ||
25208 | ac_cv_lib_png_png_check_sig=no | |
25209 | fi | |
ac1cb8d3 VS |
25210 | rm -f conftest.err conftest.$ac_objext \ |
25211 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25212 | LIBS=$ac_check_lib_save_LIBS |
25213 | fi | |
25214 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
25215 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
25216 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
25217 | PNG_LINK=" -lpng -lz" | |
25218 | fi | |
25219 | ||
25220 | fi | |
25221 | ||
25222 | if test "x$PNG_LINK" = "x" ; then | |
25223 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
25224 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 | |
25225 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
25226 | { (exit 1); exit 1; }; } | |
25227 | else | |
25228 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 | |
25229 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
25230 | wxUSE_LIBPNG=builtin | |
25231 | fi | |
25232 | else | |
25233 | wxUSE_LIBPNG=sys | |
25234 | fi | |
25235 | fi | |
25236 | fi | |
25237 | ||
25238 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
25239 | fi | |
25240 | ||
25241 | ||
25242 | JPEG_LINK= | |
25243 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
25244 | cat >>confdefs.h <<\_ACEOF | |
25245 | #define wxUSE_LIBJPEG 1 | |
25246 | _ACEOF | |
25247 | ||
25248 | ||
25249 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
25250 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 | |
25251 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
25252 | wxUSE_LIBJPEG=sys | |
25253 | fi | |
25254 | ||
25255 | if test "$wxUSE_MGL" != 1 ; then | |
25256 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
25257 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 | |
25258 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
25259 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
25260 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25261 | else | |
25262 | cat >conftest.$ac_ext <<_ACEOF | |
25263 | /* confdefs.h. */ | |
25264 | _ACEOF | |
25265 | cat confdefs.h >>conftest.$ac_ext | |
25266 | cat >>conftest.$ac_ext <<_ACEOF | |
25267 | /* end confdefs.h. */ | |
25268 | ||
25269 | #undef HAVE_STDLIB_H | |
25270 | #include <stdio.h> | |
25271 | #include <jpeglib.h> | |
25272 | ||
25273 | int | |
25274 | main () | |
25275 | { | |
25276 | ||
25277 | ||
25278 | ; | |
25279 | return 0; | |
25280 | } | |
25281 | _ACEOF | |
25282 | rm -f conftest.$ac_objext | |
25283 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25284 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25285 | ac_status=$? |
ac1cb8d3 VS |
25286 | grep -v '^ *+' conftest.er1 >conftest.err |
25287 | rm -f conftest.er1 | |
25288 | cat conftest.err >&5 | |
a848cd7e SC |
25289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25290 | (exit $ac_status); } && | |
5d7b7554 | 25291 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25293 | (eval $ac_try) 2>&5 | |
25294 | ac_status=$? | |
25295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25296 | (exit $ac_status); }; } && | |
25297 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25299 | (eval $ac_try) 2>&5 | |
25300 | ac_status=$? | |
25301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25302 | (exit $ac_status); }; }; then | |
25303 | ac_cv_header_jpeglib_h=yes | |
25304 | else | |
25305 | echo "$as_me: failed program was:" >&5 | |
25306 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25307 | ||
25308 | ac_cv_header_jpeglib_h=no | |
25309 | ||
25310 | fi | |
ac1cb8d3 | 25311 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25312 | |
25313 | fi | |
25314 | ||
25315 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 | |
25316 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
25317 | ||
25318 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
25319 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 | |
25320 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
25321 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
25322 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25323 | else | |
25324 | ac_check_lib_save_LIBS=$LIBS | |
25325 | LIBS="-ljpeg $LIBS" | |
25326 | cat >conftest.$ac_ext <<_ACEOF | |
25327 | /* confdefs.h. */ | |
25328 | _ACEOF | |
25329 | cat confdefs.h >>conftest.$ac_ext | |
25330 | cat >>conftest.$ac_ext <<_ACEOF | |
25331 | /* end confdefs.h. */ | |
25332 | ||
25333 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25334 | #ifdef __cplusplus | |
25335 | extern "C" | |
25336 | #endif | |
25337 | /* We use char because int might match the return type of a gcc2 | |
25338 | builtin and then its argument prototype would still apply. */ | |
25339 | char jpeg_read_header (); | |
25340 | int | |
25341 | main () | |
25342 | { | |
25343 | jpeg_read_header (); | |
25344 | ; | |
25345 | return 0; | |
25346 | } | |
25347 | _ACEOF | |
25348 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25349 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25350 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25351 | ac_status=$? |
ac1cb8d3 VS |
25352 | grep -v '^ *+' conftest.er1 >conftest.err |
25353 | rm -f conftest.er1 | |
25354 | cat conftest.err >&5 | |
a848cd7e SC |
25355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25356 | (exit $ac_status); } && | |
5d7b7554 | 25357 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25359 | (eval $ac_try) 2>&5 | |
25360 | ac_status=$? | |
25361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25362 | (exit $ac_status); }; } && | |
25363 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25365 | (eval $ac_try) 2>&5 | |
25366 | ac_status=$? | |
25367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25368 | (exit $ac_status); }; }; then | |
25369 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
25370 | else | |
25371 | echo "$as_me: failed program was:" >&5 | |
25372 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25373 | ||
25374 | ac_cv_lib_jpeg_jpeg_read_header=no | |
25375 | fi | |
ac1cb8d3 VS |
25376 | rm -f conftest.err conftest.$ac_objext \ |
25377 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25378 | LIBS=$ac_check_lib_save_LIBS |
25379 | fi | |
25380 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
25381 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
25382 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
25383 | JPEG_LINK=" -ljpeg" | |
25384 | fi | |
25385 | ||
25386 | fi | |
25387 | ||
25388 | if test "x$JPEG_LINK" = "x" ; then | |
25389 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
25390 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 | |
25391 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
25392 | { (exit 1); exit 1; }; } | |
25393 | else | |
25394 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 | |
25395 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
25396 | wxUSE_LIBJPEG=builtin | |
25397 | fi | |
25398 | else | |
25399 | wxUSE_LIBJPEG=sys | |
25400 | fi | |
25401 | fi | |
25402 | fi | |
25403 | fi | |
25404 | ||
25405 | ||
25406 | TIFF_LINK= | |
25407 | TIFF_PREREQ_LINKS=-lm | |
25408 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
25409 | cat >>confdefs.h <<\_ACEOF | |
25410 | #define wxUSE_LIBTIFF 1 | |
25411 | _ACEOF | |
25412 | ||
25413 | ||
25414 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
25415 | if test "$wxUSE_LIBJPEG" = "sys"; then | |
25416 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
25417 | fi | |
25418 | if test "$wxUSE_ZLIB" = "sys"; then | |
25419 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
25420 | fi | |
25421 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
25422 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
25423 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
25424 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
25425 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25426 | fi | |
25427 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
25428 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
25429 | else | |
25430 | # Is the header compilable? | |
25431 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
25432 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
25433 | cat >conftest.$ac_ext <<_ACEOF | |
25434 | /* confdefs.h. */ | |
25435 | _ACEOF | |
25436 | cat confdefs.h >>conftest.$ac_ext | |
25437 | cat >>conftest.$ac_ext <<_ACEOF | |
25438 | /* end confdefs.h. */ | |
25439 | $ac_includes_default | |
25440 | #include <tiffio.h> | |
25441 | _ACEOF | |
25442 | rm -f conftest.$ac_objext | |
25443 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25444 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25445 | ac_status=$? |
ac1cb8d3 VS |
25446 | grep -v '^ *+' conftest.er1 >conftest.err |
25447 | rm -f conftest.er1 | |
25448 | cat conftest.err >&5 | |
a848cd7e SC |
25449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25450 | (exit $ac_status); } && | |
5d7b7554 | 25451 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25453 | (eval $ac_try) 2>&5 | |
25454 | ac_status=$? | |
25455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25456 | (exit $ac_status); }; } && | |
25457 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25459 | (eval $ac_try) 2>&5 | |
25460 | ac_status=$? | |
25461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25462 | (exit $ac_status); }; }; then | |
25463 | ac_header_compiler=yes | |
25464 | else | |
25465 | echo "$as_me: failed program was:" >&5 | |
25466 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25467 | ||
25468 | ac_header_compiler=no | |
25469 | fi | |
ac1cb8d3 | 25470 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25471 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25472 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25473 | ||
25474 | # Is the header present? | |
25475 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
25476 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
25477 | cat >conftest.$ac_ext <<_ACEOF | |
25478 | /* confdefs.h. */ | |
25479 | _ACEOF | |
25480 | cat confdefs.h >>conftest.$ac_ext | |
25481 | cat >>conftest.$ac_ext <<_ACEOF | |
25482 | /* end confdefs.h. */ | |
25483 | #include <tiffio.h> | |
25484 | _ACEOF | |
25485 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25486 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25487 | ac_status=$? | |
25488 | grep -v '^ *+' conftest.er1 >conftest.err | |
25489 | rm -f conftest.er1 | |
25490 | cat conftest.err >&5 | |
25491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25492 | (exit $ac_status); } >/dev/null; then | |
25493 | if test -s conftest.err; then | |
5d7b7554 VZ |
25494 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
25495 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
25496 | else |
25497 | ac_cpp_err= | |
25498 | fi | |
25499 | else | |
25500 | ac_cpp_err=yes | |
25501 | fi | |
25502 | if test -z "$ac_cpp_err"; then | |
25503 | ac_header_preproc=yes | |
25504 | else | |
25505 | echo "$as_me: failed program was:" >&5 | |
25506 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25507 | ||
25508 | ac_header_preproc=no | |
25509 | fi | |
25510 | rm -f conftest.err conftest.$ac_ext | |
25511 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25512 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25513 | ||
25514 | # So? What about this header? | |
5d7b7554 | 25515 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 25516 | yes:no: ) |
a848cd7e SC |
25517 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
25518 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25519 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
25520 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
25521 | ac_header_preproc=yes | |
a848cd7e | 25522 | ;; |
ac1cb8d3 | 25523 | no:yes:* ) |
a848cd7e SC |
25524 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
25525 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25526 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
25527 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
25528 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
25529 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
25530 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
25531 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25532 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
25533 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25534 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
25535 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25536 | ( |
25537 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25538 | ## ----------------------------------------- ## |
25539 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25540 | ## ----------------------------------------- ## | |
a848cd7e SC |
25541 | _ASBOX |
25542 | ) | | |
25543 | sed "s/^/$as_me: WARNING: /" >&2 | |
25544 | ;; | |
25545 | esac | |
25546 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
25547 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
25548 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
25549 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25550 | else | |
25551 | ac_cv_header_tiffio_h=$ac_header_preproc | |
25552 | fi | |
25553 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
25554 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
25555 | ||
25556 | fi | |
25557 | if test $ac_cv_header_tiffio_h = yes; then | |
25558 | ||
25559 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
25560 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
25561 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
25562 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25563 | else | |
25564 | ac_check_lib_save_LIBS=$LIBS | |
25565 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" | |
25566 | cat >conftest.$ac_ext <<_ACEOF | |
25567 | /* confdefs.h. */ | |
25568 | _ACEOF | |
25569 | cat confdefs.h >>conftest.$ac_ext | |
25570 | cat >>conftest.$ac_ext <<_ACEOF | |
25571 | /* end confdefs.h. */ | |
25572 | ||
25573 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25574 | #ifdef __cplusplus | |
25575 | extern "C" | |
25576 | #endif | |
25577 | /* We use char because int might match the return type of a gcc2 | |
25578 | builtin and then its argument prototype would still apply. */ | |
25579 | char TIFFError (); | |
25580 | int | |
25581 | main () | |
25582 | { | |
25583 | TIFFError (); | |
25584 | ; | |
25585 | return 0; | |
25586 | } | |
25587 | _ACEOF | |
25588 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25589 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25590 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25591 | ac_status=$? |
ac1cb8d3 VS |
25592 | grep -v '^ *+' conftest.er1 >conftest.err |
25593 | rm -f conftest.er1 | |
25594 | cat conftest.err >&5 | |
a848cd7e SC |
25595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25596 | (exit $ac_status); } && | |
5d7b7554 | 25597 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25599 | (eval $ac_try) 2>&5 | |
25600 | ac_status=$? | |
25601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25602 | (exit $ac_status); }; } && | |
25603 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25605 | (eval $ac_try) 2>&5 | |
25606 | ac_status=$? | |
25607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25608 | (exit $ac_status); }; }; then | |
25609 | ac_cv_lib_tiff_TIFFError=yes | |
25610 | else | |
25611 | echo "$as_me: failed program was:" >&5 | |
25612 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25613 | ||
25614 | ac_cv_lib_tiff_TIFFError=no | |
25615 | fi | |
ac1cb8d3 VS |
25616 | rm -f conftest.err conftest.$ac_objext \ |
25617 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25618 | LIBS=$ac_check_lib_save_LIBS |
25619 | fi | |
25620 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
25621 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
25622 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
25623 | TIFF_LINK=" -ltiff" | |
25624 | fi | |
25625 | ||
25626 | ||
25627 | ||
25628 | fi | |
25629 | ||
25630 | ||
25631 | ||
25632 | if test "x$TIFF_LINK" = "x" ; then | |
25633 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
25634 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 | |
25635 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
25636 | { (exit 1); exit 1; }; } | |
25637 | else | |
25638 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 | |
25639 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
25640 | wxUSE_LIBTIFF=builtin | |
25641 | fi | |
25642 | else | |
25643 | wxUSE_LIBTIFF=sys | |
25644 | fi | |
25645 | fi | |
25646 | fi | |
25647 | ||
25648 | ||
47a7e797 MW |
25649 | if test "$wxUSE_WCHAR_T" != "yes"; then |
25650 | if test "$wxUSE_EXPAT" != "no"; then | |
25651 | { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5 | |
25652 | echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;} | |
25653 | wxUSE_EXPAT=no | |
25654 | fi | |
25655 | if test "$wxUSE_XML" != "no"; then | |
25656 | { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5 | |
25657 | echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;} | |
25658 | wxUSE_XML=no | |
25659 | fi | |
25660 | fi | |
25661 | ||
a848cd7e SC |
25662 | if test "$wxUSE_EXPAT" != "no"; then |
25663 | wxUSE_XML=yes | |
25664 | cat >>confdefs.h <<\_ACEOF | |
25665 | #define wxUSE_EXPAT 1 | |
25666 | _ACEOF | |
25667 | ||
25668 | cat >>confdefs.h <<\_ACEOF | |
25669 | #define wxUSE_XML 1 | |
25670 | _ACEOF | |
25671 | ||
25672 | ||
25673 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
25674 | if test "${ac_cv_header_expat_h+set}" = set; then | |
25675 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
25676 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
25677 | if test "${ac_cv_header_expat_h+set}" = set; then | |
25678 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25679 | fi | |
25680 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
25681 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
25682 | else | |
25683 | # Is the header compilable? | |
25684 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
25685 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
25686 | cat >conftest.$ac_ext <<_ACEOF | |
25687 | /* confdefs.h. */ | |
25688 | _ACEOF | |
25689 | cat confdefs.h >>conftest.$ac_ext | |
25690 | cat >>conftest.$ac_ext <<_ACEOF | |
25691 | /* end confdefs.h. */ | |
25692 | $ac_includes_default | |
25693 | #include <expat.h> | |
25694 | _ACEOF | |
25695 | rm -f conftest.$ac_objext | |
25696 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25697 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25698 | ac_status=$? |
ac1cb8d3 VS |
25699 | grep -v '^ *+' conftest.er1 >conftest.err |
25700 | rm -f conftest.er1 | |
25701 | cat conftest.err >&5 | |
a848cd7e SC |
25702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25703 | (exit $ac_status); } && | |
5d7b7554 | 25704 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25706 | (eval $ac_try) 2>&5 | |
25707 | ac_status=$? | |
25708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25709 | (exit $ac_status); }; } && | |
25710 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25712 | (eval $ac_try) 2>&5 | |
25713 | ac_status=$? | |
25714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25715 | (exit $ac_status); }; }; then | |
25716 | ac_header_compiler=yes | |
25717 | else | |
25718 | echo "$as_me: failed program was:" >&5 | |
25719 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25720 | ||
25721 | ac_header_compiler=no | |
25722 | fi | |
ac1cb8d3 | 25723 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25724 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25725 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25726 | ||
25727 | # Is the header present? | |
25728 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
25729 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
25730 | cat >conftest.$ac_ext <<_ACEOF | |
25731 | /* confdefs.h. */ | |
25732 | _ACEOF | |
25733 | cat confdefs.h >>conftest.$ac_ext | |
25734 | cat >>conftest.$ac_ext <<_ACEOF | |
25735 | /* end confdefs.h. */ | |
25736 | #include <expat.h> | |
25737 | _ACEOF | |
25738 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25739 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25740 | ac_status=$? | |
25741 | grep -v '^ *+' conftest.er1 >conftest.err | |
25742 | rm -f conftest.er1 | |
25743 | cat conftest.err >&5 | |
25744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25745 | (exit $ac_status); } >/dev/null; then | |
25746 | if test -s conftest.err; then | |
5d7b7554 VZ |
25747 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
25748 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
25749 | else |
25750 | ac_cpp_err= | |
25751 | fi | |
25752 | else | |
25753 | ac_cpp_err=yes | |
25754 | fi | |
25755 | if test -z "$ac_cpp_err"; then | |
25756 | ac_header_preproc=yes | |
25757 | else | |
25758 | echo "$as_me: failed program was:" >&5 | |
25759 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25760 | ||
25761 | ac_header_preproc=no | |
25762 | fi | |
25763 | rm -f conftest.err conftest.$ac_ext | |
25764 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25765 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25766 | ||
25767 | # So? What about this header? | |
5d7b7554 | 25768 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 25769 | yes:no: ) |
a848cd7e SC |
25770 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
25771 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25772 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 |
25773 | echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} | |
25774 | ac_header_preproc=yes | |
a848cd7e | 25775 | ;; |
ac1cb8d3 | 25776 | no:yes:* ) |
a848cd7e SC |
25777 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
25778 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25779 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
25780 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
25781 | { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 | |
25782 | echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} | |
25783 | { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 | |
25784 | echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25785 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
25786 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25787 | { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 |
25788 | echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25789 | ( |
25790 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25791 | ## ----------------------------------------- ## |
25792 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25793 | ## ----------------------------------------- ## | |
a848cd7e SC |
25794 | _ASBOX |
25795 | ) | | |
25796 | sed "s/^/$as_me: WARNING: /" >&2 | |
25797 | ;; | |
25798 | esac | |
25799 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
25800 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
25801 | if test "${ac_cv_header_expat_h+set}" = set; then | |
25802 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25803 | else | |
25804 | ac_cv_header_expat_h=$ac_header_preproc | |
25805 | fi | |
25806 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
25807 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
25808 | ||
25809 | fi | |
25810 | if test $ac_cv_header_expat_h = yes; then | |
25811 | found_expat_h=1 | |
25812 | fi | |
25813 | ||
25814 | ||
25815 | if test "x$found_expat_h" = "x1"; then | |
25816 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
25817 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
25818 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
25819 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25820 | else | |
25821 | ||
a848cd7e SC |
25822 | cat >conftest.$ac_ext <<_ACEOF |
25823 | /* confdefs.h. */ | |
25824 | _ACEOF | |
25825 | cat confdefs.h >>conftest.$ac_ext | |
25826 | cat >>conftest.$ac_ext <<_ACEOF | |
25827 | /* end confdefs.h. */ | |
25828 | #include <expat.h> | |
25829 | int | |
25830 | main () | |
25831 | { | |
25832 | ||
25833 | ; | |
25834 | return 0; | |
25835 | } | |
25836 | _ACEOF | |
25837 | rm -f conftest.$ac_objext | |
25838 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25839 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25840 | ac_status=$? |
ac1cb8d3 VS |
25841 | grep -v '^ *+' conftest.er1 >conftest.err |
25842 | rm -f conftest.er1 | |
25843 | cat conftest.err >&5 | |
a848cd7e SC |
25844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25845 | (exit $ac_status); } && | |
5d7b7554 | 25846 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25848 | (eval $ac_try) 2>&5 | |
25849 | ac_status=$? | |
25850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25851 | (exit $ac_status); }; } && | |
25852 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25854 | (eval $ac_try) 2>&5 | |
25855 | ac_status=$? | |
25856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25857 | (exit $ac_status); }; }; then | |
25858 | wx_cv_expat_is_not_broken=yes | |
25859 | else | |
25860 | echo "$as_me: failed program was:" >&5 | |
25861 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25862 | ||
25863 | wx_cv_expat_is_not_broken=no | |
25864 | ||
25865 | fi | |
ac1cb8d3 | 25866 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25867 | |
25868 | ||
25869 | fi | |
25870 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
25871 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
25872 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
25873 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
25874 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 | |
25875 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
25876 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25877 | else | |
25878 | ac_check_lib_save_LIBS=$LIBS | |
25879 | LIBS="-lexpat $LIBS" | |
25880 | cat >conftest.$ac_ext <<_ACEOF | |
25881 | /* confdefs.h. */ | |
25882 | _ACEOF | |
25883 | cat confdefs.h >>conftest.$ac_ext | |
25884 | cat >>conftest.$ac_ext <<_ACEOF | |
25885 | /* end confdefs.h. */ | |
25886 | ||
25887 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25888 | #ifdef __cplusplus | |
25889 | extern "C" | |
25890 | #endif | |
25891 | /* We use char because int might match the return type of a gcc2 | |
25892 | builtin and then its argument prototype would still apply. */ | |
25893 | char XML_ParserCreate (); | |
25894 | int | |
25895 | main () | |
25896 | { | |
25897 | XML_ParserCreate (); | |
25898 | ; | |
25899 | return 0; | |
25900 | } | |
25901 | _ACEOF | |
25902 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25903 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25904 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25905 | ac_status=$? |
ac1cb8d3 VS |
25906 | grep -v '^ *+' conftest.er1 >conftest.err |
25907 | rm -f conftest.er1 | |
25908 | cat conftest.err >&5 | |
a848cd7e SC |
25909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25910 | (exit $ac_status); } && | |
5d7b7554 | 25911 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25913 | (eval $ac_try) 2>&5 | |
25914 | ac_status=$? | |
25915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25916 | (exit $ac_status); }; } && | |
25917 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25919 | (eval $ac_try) 2>&5 | |
25920 | ac_status=$? | |
25921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25922 | (exit $ac_status); }; }; then | |
25923 | ac_cv_lib_expat_XML_ParserCreate=yes | |
25924 | else | |
25925 | echo "$as_me: failed program was:" >&5 | |
25926 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25927 | ||
25928 | ac_cv_lib_expat_XML_ParserCreate=no | |
25929 | fi | |
ac1cb8d3 VS |
25930 | rm -f conftest.err conftest.$ac_objext \ |
25931 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25932 | LIBS=$ac_check_lib_save_LIBS |
25933 | fi | |
25934 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
25935 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
25936 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
25937 | EXPAT_LINK=" -lexpat" | |
25938 | fi | |
25939 | ||
25940 | fi | |
25941 | fi | |
25942 | if test "x$EXPAT_LINK" = "x" ; then | |
25943 | if test "$wxUSE_EXPAT" = "sys" ; then | |
25944 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
25945 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
25946 | { (exit 1); exit 1; }; } | |
25947 | else | |
25948 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
25949 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
25950 | wxUSE_EXPAT=builtin | |
25951 | fi | |
25952 | else | |
25953 | wxUSE_EXPAT=sys | |
25954 | fi | |
25955 | fi | |
25956 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
25957 | ||
25958 | ||
25959 | subdirs="$subdirs src/expat" | |
25960 | ||
25961 | fi | |
25962 | fi | |
25963 | ||
25964 | ||
25965 | ||
25966 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
a848cd7e SC |
25967 | if test "${ac_cv_header_mspack_h+set}" = set; then |
25968 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
25969 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
25970 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
25971 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25972 | fi | |
25973 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
25974 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
25975 | else | |
25976 | # Is the header compilable? | |
25977 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
25978 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
25979 | cat >conftest.$ac_ext <<_ACEOF | |
25980 | /* confdefs.h. */ | |
25981 | _ACEOF | |
25982 | cat confdefs.h >>conftest.$ac_ext | |
25983 | cat >>conftest.$ac_ext <<_ACEOF | |
25984 | /* end confdefs.h. */ | |
25985 | $ac_includes_default | |
25986 | #include <mspack.h> | |
25987 | _ACEOF | |
25988 | rm -f conftest.$ac_objext | |
25989 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25990 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25991 | ac_status=$? |
ac1cb8d3 VS |
25992 | grep -v '^ *+' conftest.er1 >conftest.err |
25993 | rm -f conftest.er1 | |
25994 | cat conftest.err >&5 | |
a848cd7e SC |
25995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25996 | (exit $ac_status); } && | |
5d7b7554 | 25997 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
25998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25999 | (eval $ac_try) 2>&5 | |
26000 | ac_status=$? | |
26001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26002 | (exit $ac_status); }; } && | |
26003 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26005 | (eval $ac_try) 2>&5 | |
26006 | ac_status=$? | |
26007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26008 | (exit $ac_status); }; }; then | |
26009 | ac_header_compiler=yes | |
26010 | else | |
26011 | echo "$as_me: failed program was:" >&5 | |
26012 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26013 | ||
26014 | ac_header_compiler=no | |
26015 | fi | |
ac1cb8d3 | 26016 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26017 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26018 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26019 | ||
26020 | # Is the header present? | |
26021 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
26022 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
26023 | cat >conftest.$ac_ext <<_ACEOF | |
26024 | /* confdefs.h. */ | |
26025 | _ACEOF | |
26026 | cat confdefs.h >>conftest.$ac_ext | |
26027 | cat >>conftest.$ac_ext <<_ACEOF | |
26028 | /* end confdefs.h. */ | |
26029 | #include <mspack.h> | |
26030 | _ACEOF | |
26031 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26032 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26033 | ac_status=$? | |
26034 | grep -v '^ *+' conftest.er1 >conftest.err | |
26035 | rm -f conftest.er1 | |
26036 | cat conftest.err >&5 | |
26037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26038 | (exit $ac_status); } >/dev/null; then | |
26039 | if test -s conftest.err; then | |
5d7b7554 VZ |
26040 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
26041 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
26042 | else |
26043 | ac_cpp_err= | |
26044 | fi | |
26045 | else | |
26046 | ac_cpp_err=yes | |
26047 | fi | |
26048 | if test -z "$ac_cpp_err"; then | |
26049 | ac_header_preproc=yes | |
26050 | else | |
26051 | echo "$as_me: failed program was:" >&5 | |
26052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26053 | ||
26054 | ac_header_preproc=no | |
26055 | fi | |
26056 | rm -f conftest.err conftest.$ac_ext | |
26057 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26058 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26059 | ||
26060 | # So? What about this header? | |
5d7b7554 | 26061 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 26062 | yes:no: ) |
a848cd7e SC |
26063 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
26064 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
26065 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5 |
26066 | echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;} | |
26067 | ac_header_preproc=yes | |
a848cd7e | 26068 | ;; |
ac1cb8d3 | 26069 | no:yes:* ) |
a848cd7e SC |
26070 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
26071 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
26072 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
26073 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
26074 | { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5 | |
26075 | echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;} | |
26076 | { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5 | |
26077 | echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
26078 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
26079 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
26080 | { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5 |
26081 | echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
26082 | ( |
26083 | cat <<\_ASBOX | |
ac1cb8d3 VS |
26084 | ## ----------------------------------------- ## |
26085 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
26086 | ## ----------------------------------------- ## | |
a848cd7e SC |
26087 | _ASBOX |
26088 | ) | | |
26089 | sed "s/^/$as_me: WARNING: /" >&2 | |
26090 | ;; | |
26091 | esac | |
26092 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
26093 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
26094 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
26095 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26096 | else | |
26097 | ac_cv_header_mspack_h=$ac_header_preproc | |
26098 | fi | |
26099 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
26100 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
26101 | ||
26102 | fi | |
26103 | if test $ac_cv_header_mspack_h = yes; then | |
26104 | found_mspack_h=1 | |
26105 | fi | |
26106 | ||
26107 | ||
26108 | if test "x$found_mspack_h" = "x1"; then | |
26109 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
26110 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
26111 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
26112 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26113 | else | |
26114 | ac_check_lib_save_LIBS=$LIBS | |
26115 | LIBS="-lmspack $LIBS" | |
26116 | cat >conftest.$ac_ext <<_ACEOF | |
26117 | /* confdefs.h. */ | |
26118 | _ACEOF | |
26119 | cat confdefs.h >>conftest.$ac_ext | |
26120 | cat >>conftest.$ac_ext <<_ACEOF | |
26121 | /* end confdefs.h. */ | |
26122 | ||
26123 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26124 | #ifdef __cplusplus | |
26125 | extern "C" | |
26126 | #endif | |
26127 | /* We use char because int might match the return type of a gcc2 | |
26128 | builtin and then its argument prototype would still apply. */ | |
26129 | char mspack_create_chm_decompressor (); | |
26130 | int | |
26131 | main () | |
26132 | { | |
26133 | mspack_create_chm_decompressor (); | |
26134 | ; | |
26135 | return 0; | |
26136 | } | |
26137 | _ACEOF | |
26138 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26139 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26140 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26141 | ac_status=$? |
ac1cb8d3 VS |
26142 | grep -v '^ *+' conftest.er1 >conftest.err |
26143 | rm -f conftest.er1 | |
26144 | cat conftest.err >&5 | |
a848cd7e SC |
26145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26146 | (exit $ac_status); } && | |
5d7b7554 | 26147 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26149 | (eval $ac_try) 2>&5 | |
26150 | ac_status=$? | |
26151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26152 | (exit $ac_status); }; } && | |
26153 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26155 | (eval $ac_try) 2>&5 | |
26156 | ac_status=$? | |
26157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26158 | (exit $ac_status); }; }; then | |
26159 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
26160 | else | |
26161 | echo "$as_me: failed program was:" >&5 | |
26162 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26163 | ||
26164 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
26165 | fi | |
ac1cb8d3 VS |
26166 | rm -f conftest.err conftest.$ac_objext \ |
26167 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26168 | LIBS=$ac_check_lib_save_LIBS |
26169 | fi | |
26170 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
26171 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
26172 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
26173 | MSPACK_LINK=" -lmspack" | |
26174 | fi | |
26175 | ||
26176 | fi | |
26177 | if test "x$MSPACK_LINK" = "x" ; then | |
26178 | wxUSE_LIBMSPACK=no | |
dd3a2d96 VZ |
26179 | fi |
26180 | fi | |
26181 | ||
26182 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
26183 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
26184 | #define wxUSE_LIBMSPACK 1 |
26185 | _ACEOF | |
26186 | ||
a848cd7e SC |
26187 | fi |
26188 | ||
26189 | ||
26190 | ||
26191 | AFMINSTALL= | |
26192 | WIN32INSTALL= | |
26193 | ||
26194 | TOOLKIT= | |
26195 | TOOLKIT_INCLUDE= | |
26196 | WIDGET_SET= | |
26197 | ||
26198 | if test "$USE_WIN32" = 1 ; then | |
26199 | ||
26200 | for ac_header in w32api.h | |
26201 | do | |
26202 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
26203 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
26204 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
26205 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
26206 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
26207 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26208 | fi | |
26209 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
26210 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
26211 | else | |
26212 | # Is the header compilable? | |
26213 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
26214 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
26215 | cat >conftest.$ac_ext <<_ACEOF | |
26216 | /* confdefs.h. */ | |
26217 | _ACEOF | |
26218 | cat confdefs.h >>conftest.$ac_ext | |
26219 | cat >>conftest.$ac_ext <<_ACEOF | |
26220 | /* end confdefs.h. */ | |
26221 | $ac_includes_default | |
26222 | #include <$ac_header> | |
26223 | _ACEOF | |
26224 | rm -f conftest.$ac_objext | |
26225 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26226 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26227 | ac_status=$? |
ac1cb8d3 VS |
26228 | grep -v '^ *+' conftest.er1 >conftest.err |
26229 | rm -f conftest.er1 | |
26230 | cat conftest.err >&5 | |
a848cd7e SC |
26231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26232 | (exit $ac_status); } && | |
5d7b7554 | 26233 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26235 | (eval $ac_try) 2>&5 | |
26236 | ac_status=$? | |
26237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26238 | (exit $ac_status); }; } && | |
26239 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26241 | (eval $ac_try) 2>&5 | |
26242 | ac_status=$? | |
26243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26244 | (exit $ac_status); }; }; then | |
26245 | ac_header_compiler=yes | |
26246 | else | |
26247 | echo "$as_me: failed program was:" >&5 | |
26248 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26249 | ||
26250 | ac_header_compiler=no | |
26251 | fi | |
ac1cb8d3 | 26252 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26253 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26254 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26255 | ||
26256 | # Is the header present? | |
26257 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
26258 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
26259 | cat >conftest.$ac_ext <<_ACEOF | |
26260 | /* confdefs.h. */ | |
26261 | _ACEOF | |
26262 | cat confdefs.h >>conftest.$ac_ext | |
26263 | cat >>conftest.$ac_ext <<_ACEOF | |
26264 | /* end confdefs.h. */ | |
26265 | #include <$ac_header> | |
26266 | _ACEOF | |
26267 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26268 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26269 | ac_status=$? | |
26270 | grep -v '^ *+' conftest.er1 >conftest.err | |
26271 | rm -f conftest.er1 | |
26272 | cat conftest.err >&5 | |
26273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26274 | (exit $ac_status); } >/dev/null; then | |
26275 | if test -s conftest.err; then | |
5d7b7554 VZ |
26276 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
26277 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
26278 | else |
26279 | ac_cpp_err= | |
26280 | fi | |
26281 | else | |
26282 | ac_cpp_err=yes | |
26283 | fi | |
26284 | if test -z "$ac_cpp_err"; then | |
26285 | ac_header_preproc=yes | |
26286 | else | |
26287 | echo "$as_me: failed program was:" >&5 | |
26288 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26289 | ||
26290 | ac_header_preproc=no | |
26291 | fi | |
26292 | rm -f conftest.err conftest.$ac_ext | |
26293 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26294 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26295 | ||
26296 | # So? What about this header? | |
5d7b7554 | 26297 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 26298 | yes:no: ) |
a848cd7e SC |
26299 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
26300 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
26301 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
26302 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
26303 | ac_header_preproc=yes | |
a848cd7e | 26304 | ;; |
ac1cb8d3 | 26305 | no:yes:* ) |
a848cd7e SC |
26306 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
26307 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
26308 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
26309 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
26310 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
26311 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
26312 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
26313 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
26314 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
26315 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
26316 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
26317 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
26318 | ( |
26319 | cat <<\_ASBOX | |
ac1cb8d3 VS |
26320 | ## ----------------------------------------- ## |
26321 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
26322 | ## ----------------------------------------- ## | |
a848cd7e SC |
26323 | _ASBOX |
26324 | ) | | |
26325 | sed "s/^/$as_me: WARNING: /" >&2 | |
26326 | ;; | |
26327 | esac | |
26328 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
26329 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
26330 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
26331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26332 | else | |
ac1cb8d3 | 26333 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
26334 | fi |
26335 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
26336 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
26337 | ||
26338 | fi | |
26339 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
26340 | cat >>confdefs.h <<_ACEOF | |
26341 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
26342 | _ACEOF | |
26343 | ||
26344 | fi | |
26345 | ||
26346 | done | |
26347 | ||
26348 | if test "${ac_cv_header_windows_h+set}" = set; then | |
26349 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
26350 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
26351 | if test "${ac_cv_header_windows_h+set}" = set; then | |
26352 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26353 | fi | |
26354 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
26355 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
26356 | else | |
26357 | # Is the header compilable? | |
26358 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
26359 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
26360 | cat >conftest.$ac_ext <<_ACEOF | |
26361 | /* confdefs.h. */ | |
26362 | _ACEOF | |
26363 | cat confdefs.h >>conftest.$ac_ext | |
26364 | cat >>conftest.$ac_ext <<_ACEOF | |
26365 | /* end confdefs.h. */ | |
26366 | $ac_includes_default | |
26367 | #include <windows.h> | |
26368 | _ACEOF | |
26369 | rm -f conftest.$ac_objext | |
26370 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26371 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26372 | ac_status=$? |
ac1cb8d3 VS |
26373 | grep -v '^ *+' conftest.er1 >conftest.err |
26374 | rm -f conftest.er1 | |
26375 | cat conftest.err >&5 | |
a848cd7e SC |
26376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26377 | (exit $ac_status); } && | |
5d7b7554 | 26378 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26380 | (eval $ac_try) 2>&5 | |
26381 | ac_status=$? | |
26382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26383 | (exit $ac_status); }; } && | |
26384 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26386 | (eval $ac_try) 2>&5 | |
26387 | ac_status=$? | |
26388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26389 | (exit $ac_status); }; }; then | |
26390 | ac_header_compiler=yes | |
26391 | else | |
26392 | echo "$as_me: failed program was:" >&5 | |
26393 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26394 | ||
26395 | ac_header_compiler=no | |
26396 | fi | |
ac1cb8d3 | 26397 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26398 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26399 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26400 | ||
26401 | # Is the header present? | |
26402 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
26403 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
26404 | cat >conftest.$ac_ext <<_ACEOF | |
26405 | /* confdefs.h. */ | |
26406 | _ACEOF | |
26407 | cat confdefs.h >>conftest.$ac_ext | |
26408 | cat >>conftest.$ac_ext <<_ACEOF | |
26409 | /* end confdefs.h. */ | |
26410 | #include <windows.h> | |
26411 | _ACEOF | |
26412 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26413 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26414 | ac_status=$? | |
26415 | grep -v '^ *+' conftest.er1 >conftest.err | |
26416 | rm -f conftest.er1 | |
26417 | cat conftest.err >&5 | |
26418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26419 | (exit $ac_status); } >/dev/null; then | |
26420 | if test -s conftest.err; then | |
5d7b7554 VZ |
26421 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
26422 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
26423 | else |
26424 | ac_cpp_err= | |
26425 | fi | |
26426 | else | |
26427 | ac_cpp_err=yes | |
26428 | fi | |
26429 | if test -z "$ac_cpp_err"; then | |
26430 | ac_header_preproc=yes | |
26431 | else | |
26432 | echo "$as_me: failed program was:" >&5 | |
26433 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26434 | ||
26435 | ac_header_preproc=no | |
26436 | fi | |
26437 | rm -f conftest.err conftest.$ac_ext | |
26438 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26439 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26440 | ||
26441 | # So? What about this header? | |
5d7b7554 | 26442 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 26443 | yes:no: ) |
a848cd7e SC |
26444 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
26445 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
26446 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 |
26447 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
26448 | ac_header_preproc=yes | |
a848cd7e | 26449 | ;; |
ac1cb8d3 | 26450 | no:yes:* ) |
a848cd7e SC |
26451 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
26452 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
26453 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
26454 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
26455 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
26456 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
26457 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
26458 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
26459 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
26460 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
26461 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 |
26462 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
26463 | ( |
26464 | cat <<\_ASBOX | |
ac1cb8d3 VS |
26465 | ## ----------------------------------------- ## |
26466 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
26467 | ## ----------------------------------------- ## | |
a848cd7e SC |
26468 | _ASBOX |
26469 | ) | | |
26470 | sed "s/^/$as_me: WARNING: /" >&2 | |
26471 | ;; | |
26472 | esac | |
26473 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
26474 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
26475 | if test "${ac_cv_header_windows_h+set}" = set; then | |
26476 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26477 | else | |
26478 | ac_cv_header_windows_h=$ac_header_preproc | |
26479 | fi | |
26480 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
26481 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
26482 | ||
26483 | fi | |
26484 | if test $ac_cv_header_windows_h = yes; then | |
26485 | : | |
26486 | else | |
26487 | ||
26488 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 | |
26489 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
26490 | { (exit 1); exit 1; }; } | |
26491 | ||
26492 | fi | |
26493 | ||
26494 | ||
26495 | ||
26496 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" | |
26497 | ||
26498 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then | |
26499 | LIBS="$LIBS -loleacc" | |
26500 | fi | |
26501 | ||
26502 | case "${host}" in | |
26503 | *-*-cygwin* ) | |
26504 | LIBS="$LIBS -lkernel32 -luser32" | |
a848cd7e SC |
26505 | esac |
26506 | ||
26507 | if test "$wxUSE_ODBC" = "sys" ; then | |
26508 | wxUSE_ODBC = "yes" | |
26509 | fi | |
26510 | if test "$wxUSE_ODBC" = "yes" ; then | |
26511 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
26512 | cat >>confdefs.h <<\_ACEOF | |
26513 | #define wxUSE_ODBC 1 | |
26514 | _ACEOF | |
26515 | ||
26516 | fi | |
26517 | ||
370d2fd7 | 26518 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
a848cd7e SC |
26519 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" |
26520 | ||
004ee6da | 26521 | WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
370d2fd7 | 26522 | |
a848cd7e SC |
26523 | WIN32INSTALL=win32install |
26524 | fi | |
26525 | ||
26526 | if test "$wxUSE_GUI" = "yes"; then | |
26527 | USE_GUI=1 | |
26528 | ||
26529 | GUI_TK_LIBRARY= | |
26530 | ||
26531 | WXGTK12= | |
26532 | WXGTK127= | |
26533 | WXGTK20= | |
26534 | WXGPE= | |
26535 | ||
207bc66c RN |
26536 | if test "$wxUSE_COCOA" = 1 ; then |
26537 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then | |
26538 | { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5 | |
26539 | echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;} | |
26540 | wxUSE_PRINTING_ARCHITECTURE=no | |
26541 | fi | |
26542 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
26543 | { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5 | |
26544 | echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;} | |
26545 | wxUSE_DRAG_AND_DROP=no | |
26546 | fi | |
26547 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
26548 | { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5 | |
26549 | echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;} | |
26550 | wxUSE_DRAGIMAGE=no | |
26551 | fi | |
26552 | fi | |
26553 | ||
a848cd7e SC |
26554 | if test "$wxUSE_MSW" = 1 ; then |
26555 | TOOLKIT=MSW | |
26556 | GUIDIST=MSW_DIST | |
26557 | ||
ceec2216 | 26558 | case "${host}" in |
a848cd7e SC |
26559 | *-*-mingw32* ) |
26560 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
26561 | esac | |
26562 | fi | |
26563 | ||
26564 | if test "$wxUSE_GTK" = 1; then | |
5d7b7554 VZ |
26565 | ac_ext=c |
26566 | ac_cpp='$CPP $CPPFLAGS' | |
26567 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
26568 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26569 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
26570 | ||
26571 | ||
a848cd7e SC |
26572 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 |
26573 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
26574 | ||
26575 | gtk_version_cached=1 | |
26576 | if test "${wx_cv_lib_gtk+set}" = set; then | |
26577 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26578 | else | |
26579 | ||
26580 | gtk_version_cached=0 | |
26581 | echo "$as_me:$LINENO: result: " >&5 | |
26582 | echo "${ECHO_T}" >&6 | |
26583 | ||
26584 | GTK_MODULES= | |
26585 | if test "$wxUSE_THREADS" = "yes"; then | |
26586 | GTK_MODULES=gthread | |
26587 | fi | |
26588 | ||
f597b41c | 26589 | wx_cv_lib_gtk= |
5001df0d MW |
26590 | if test "x$wxGTK_VERSION" != "x1" |
26591 | then | |
26592 | case "${host}" in | |
26593 | *-*-solaris2* ) | |
26594 | if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then | |
5ff751d6 | 26595 | enable_gtktest=no |
5001df0d MW |
26596 | fi |
26597 | esac | |
26598 | ||
a848cd7e SC |
26599 | # Check whether --enable-gtktest or --disable-gtktest was given. |
26600 | if test "${enable_gtktest+set}" = set; then | |
26601 | enableval="$enable_gtktest" | |
26602 | ||
26603 | else | |
26604 | enable_gtktest=yes | |
26605 | fi; | |
26606 | ||
26607 | pkg_config_args=gtk+-2.0 | |
26608 | for module in . $GTK_MODULES | |
26609 | do | |
26610 | case "$module" in | |
26611 | gthread) | |
26612 | pkg_config_args="$pkg_config_args gthread-2.0" | |
26613 | ;; | |
26614 | esac | |
26615 | done | |
26616 | ||
26617 | no_gtk="" | |
26618 | ||
26619 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
26620 | set dummy pkg-config; ac_word=$2 | |
26621 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
26622 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
26623 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
26624 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26625 | else | |
26626 | case $PKG_CONFIG in | |
26627 | [\\/]* | ?:[\\/]*) | |
26628 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
26629 | ;; | |
26630 | *) | |
26631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26632 | for as_dir in $PATH | |
26633 | do | |
26634 | IFS=$as_save_IFS | |
26635 | test -z "$as_dir" && as_dir=. | |
26636 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26637 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
26638 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
26639 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
26640 | break 2 | |
26641 | fi | |
26642 | done | |
26643 | done | |
26644 | ||
26645 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
26646 | ;; | |
26647 | esac | |
26648 | fi | |
26649 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
26650 | ||
26651 | if test -n "$PKG_CONFIG"; then | |
26652 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
26653 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
26654 | else | |
26655 | echo "$as_me:$LINENO: result: no" >&5 | |
26656 | echo "${ECHO_T}no" >&6 | |
26657 | fi | |
26658 | ||
26659 | ||
26660 | if test x$PKG_CONFIG != xno ; then | |
26661 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
26662 | : | |
26663 | else | |
c2218763 | 26664 | echo "*** pkg-config too old; version 0.7 or better required." |
a848cd7e SC |
26665 | no_gtk=yes |
26666 | PKG_CONFIG=no | |
26667 | fi | |
26668 | else | |
26669 | no_gtk=yes | |
26670 | fi | |
26671 | ||
26672 | min_gtk_version=2.0.0 | |
26673 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 | |
26674 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
26675 | ||
26676 | if test x$PKG_CONFIG != xno ; then | |
26677 | ## don't try to run the test against uninstalled libtool libs | |
26678 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
26679 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
26680 | enable_gtktest=no | |
26681 | fi | |
26682 | ||
26683 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
26684 | : | |
26685 | else | |
26686 | no_gtk=yes | |
26687 | fi | |
26688 | fi | |
26689 | ||
26690 | if test x"$no_gtk" = x ; then | |
26691 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
26692 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
26693 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
26694 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
26695 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
26696 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
26697 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
26698 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
26699 | if test "x$enable_gtktest" = "xyes" ; then | |
26700 | ac_save_CFLAGS="$CFLAGS" | |
26701 | ac_save_LIBS="$LIBS" | |
26702 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
26703 | LIBS="$GTK_LIBS $LIBS" | |
26704 | rm -f conf.gtktest | |
26705 | if test "$cross_compiling" = yes; then | |
26706 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
26707 | else | |
26708 | cat >conftest.$ac_ext <<_ACEOF | |
26709 | /* confdefs.h. */ | |
26710 | _ACEOF | |
26711 | cat confdefs.h >>conftest.$ac_ext | |
26712 | cat >>conftest.$ac_ext <<_ACEOF | |
26713 | /* end confdefs.h. */ | |
26714 | ||
26715 | #include <gtk/gtk.h> | |
26716 | #include <stdio.h> | |
26717 | #include <stdlib.h> | |
26718 | ||
26719 | int | |
26720 | main () | |
26721 | { | |
26722 | int major, minor, micro; | |
26723 | char *tmp_version; | |
26724 | ||
26725 | system ("touch conf.gtktest"); | |
26726 | ||
26727 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
26728 | tmp_version = g_strdup("$min_gtk_version"); | |
26729 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
26730 | printf("%s, bad version string\n", "$min_gtk_version"); | |
26731 | exit(1); | |
26732 | } | |
26733 | ||
26734 | if ((gtk_major_version != $gtk_config_major_version) || | |
26735 | (gtk_minor_version != $gtk_config_minor_version) || | |
26736 | (gtk_micro_version != $gtk_config_micro_version)) | |
26737 | { | |
26738 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
26739 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
26740 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26741 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
26742 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
26743 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
26744 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
26745 | printf("*** required on your system.\n"); | |
26746 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
26747 | printf("*** to point to the correct configuration files\n"); | |
26748 | } | |
26749 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
26750 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
26751 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
26752 | { | |
26753 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
26754 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
26755 | printf("*** library (version %d.%d.%d)\n", | |
26756 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26757 | } | |
26758 | else | |
26759 | { | |
26760 | if ((gtk_major_version > major) || | |
26761 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
26762 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
26763 | { | |
26764 | return 0; | |
26765 | } | |
26766 | else | |
26767 | { | |
26768 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
26769 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26770 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
26771 | major, minor, micro); | |
26772 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
26773 | printf("***\n"); | |
26774 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
26775 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
26776 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
26777 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
26778 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
26779 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
26780 | printf("*** so that the correct libraries are found at run-time))\n"); | |
26781 | } | |
26782 | } | |
26783 | return 1; | |
26784 | } | |
26785 | ||
26786 | _ACEOF | |
26787 | rm -f conftest$ac_exeext | |
26788 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26789 | (eval $ac_link) 2>&5 | |
26790 | ac_status=$? | |
26791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26792 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
26793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26794 | (eval $ac_try) 2>&5 | |
26795 | ac_status=$? | |
26796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26797 | (exit $ac_status); }; }; then | |
26798 | : | |
26799 | else | |
26800 | echo "$as_me: program exited with status $ac_status" >&5 | |
26801 | echo "$as_me: failed program was:" >&5 | |
26802 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26803 | ||
26804 | ( exit $ac_status ) | |
26805 | no_gtk=yes | |
26806 | fi | |
ac1cb8d3 | 26807 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26808 | fi |
26809 | CFLAGS="$ac_save_CFLAGS" | |
26810 | LIBS="$ac_save_LIBS" | |
26811 | fi | |
26812 | fi | |
26813 | if test "x$no_gtk" = x ; then | |
26814 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | |
26815 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
26816 | wx_cv_lib_gtk=2.0 | |
26817 | else | |
26818 | echo "$as_me:$LINENO: result: no" >&5 | |
26819 | echo "${ECHO_T}no" >&6 | |
26820 | if test "$PKG_CONFIG" = "no" ; then | |
26821 | echo "*** A new enough version of pkg-config was not found." | |
26822 | echo "*** See http://pkgconfig.sourceforge.net" | |
26823 | else | |
26824 | if test -f conf.gtktest ; then | |
26825 | : | |
26826 | else | |
26827 | echo "*** Could not run GTK+ test program, checking why..." | |
26828 | ac_save_CFLAGS="$CFLAGS" | |
26829 | ac_save_LIBS="$LIBS" | |
26830 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
26831 | LIBS="$LIBS $GTK_LIBS" | |
26832 | cat >conftest.$ac_ext <<_ACEOF | |
26833 | /* confdefs.h. */ | |
26834 | _ACEOF | |
26835 | cat confdefs.h >>conftest.$ac_ext | |
26836 | cat >>conftest.$ac_ext <<_ACEOF | |
26837 | /* end confdefs.h. */ | |
26838 | ||
26839 | #include <gtk/gtk.h> | |
26840 | #include <stdio.h> | |
26841 | ||
26842 | int | |
26843 | main () | |
26844 | { | |
26845 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
26846 | ; | |
26847 | return 0; | |
26848 | } | |
26849 | _ACEOF | |
26850 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26851 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26852 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26853 | ac_status=$? |
ac1cb8d3 VS |
26854 | grep -v '^ *+' conftest.er1 >conftest.err |
26855 | rm -f conftest.er1 | |
26856 | cat conftest.err >&5 | |
a848cd7e SC |
26857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26858 | (exit $ac_status); } && | |
5d7b7554 | 26859 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
26860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26861 | (eval $ac_try) 2>&5 | |
26862 | ac_status=$? | |
26863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26864 | (exit $ac_status); }; } && | |
26865 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26867 | (eval $ac_try) 2>&5 | |
26868 | ac_status=$? | |
26869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26870 | (exit $ac_status); }; }; then | |
26871 | echo "*** The test program compiled, but did not run. This usually means" | |
26872 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
26873 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
26874 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
26875 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
26876 | echo "*** is required on your system" | |
26877 | echo "***" | |
26878 | echo "*** If you have an old version installed, it is best to remove it, although" | |
26879 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
26880 | else | |
26881 | echo "$as_me: failed program was:" >&5 | |
26882 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26883 | ||
26884 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
26885 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | |
26886 | fi | |
ac1cb8d3 VS |
26887 | rm -f conftest.err conftest.$ac_objext \ |
26888 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26889 | CFLAGS="$ac_save_CFLAGS" |
26890 | LIBS="$ac_save_LIBS" | |
26891 | fi | |
26892 | fi | |
26893 | GTK_CFLAGS="" | |
26894 | GTK_LIBS="" | |
26895 | : | |
26896 | fi | |
26897 | ||
26898 | ||
26899 | rm -f conf.gtktest | |
26900 | ||
5001df0d MW |
26901 | |
26902 | case "${host}" in | |
26903 | *-*-solaris2* ) | |
26904 | if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then | |
26905 | GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'` | |
26906 | GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'` | |
26907 | fi | |
26908 | if test "$wxUSE_SHARED" != "yes"; then | |
26909 | GTK_LIBS="$GTK_LIBS -lX11" | |
26910 | fi | |
26911 | esac | |
f597b41c MW |
26912 | fi |
26913 | ||
f34ca037 MW |
26914 | if test -z "$wx_cv_lib_gtk"; then |
26915 | if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then | |
a848cd7e SC |
26916 | |
26917 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
26918 | if test "${with_gtk_prefix+set}" = set; then | |
26919 | withval="$with_gtk_prefix" | |
26920 | gtk_config_prefix="$withval" | |
26921 | else | |
26922 | gtk_config_prefix="" | |
26923 | fi; | |
26924 | ||
26925 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
26926 | if test "${with_gtk_exec_prefix+set}" = set; then | |
26927 | withval="$with_gtk_exec_prefix" | |
26928 | gtk_config_exec_prefix="$withval" | |
26929 | else | |
26930 | gtk_config_exec_prefix="" | |
26931 | fi; | |
26932 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
26933 | if test "${enable_gtktest+set}" = set; then | |
26934 | enableval="$enable_gtktest" | |
26935 | ||
26936 | else | |
26937 | enable_gtktest=yes | |
26938 | fi; | |
26939 | ||
26940 | for module in . $GTK_MODULES | |
26941 | do | |
26942 | case "$module" in | |
26943 | gthread) | |
26944 | gtk_config_args="$gtk_config_args gthread" | |
26945 | ;; | |
26946 | esac | |
26947 | done | |
26948 | ||
26949 | if test x$gtk_config_exec_prefix != x ; then | |
26950 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
26951 | if test x${GTK_CONFIG+set} != xset ; then | |
26952 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
26953 | fi | |
26954 | fi | |
26955 | if test x$gtk_config_prefix != x ; then | |
26956 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
26957 | if test x${GTK_CONFIG+set} != xset ; then | |
26958 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
26959 | fi | |
26960 | fi | |
26961 | ||
26962 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
26963 | set dummy gtk-config; ac_word=$2 | |
26964 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
26965 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
26966 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
26967 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26968 | else | |
26969 | case $GTK_CONFIG in | |
26970 | [\\/]* | ?:[\\/]*) | |
26971 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
26972 | ;; | |
26973 | *) | |
26974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26975 | for as_dir in $PATH | |
26976 | do | |
26977 | IFS=$as_save_IFS | |
26978 | test -z "$as_dir" && as_dir=. | |
26979 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26980 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
26981 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
26982 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
26983 | break 2 | |
26984 | fi | |
26985 | done | |
26986 | done | |
26987 | ||
26988 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
26989 | ;; | |
26990 | esac | |
26991 | fi | |
26992 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
26993 | ||
26994 | if test -n "$GTK_CONFIG"; then | |
26995 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
26996 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
26997 | else | |
26998 | echo "$as_me:$LINENO: result: no" >&5 | |
26999 | echo "${ECHO_T}no" >&6 | |
27000 | fi | |
27001 | ||
27002 | min_gtk_version=1.2.7 | |
27003 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
27004 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
27005 | no_gtk="" | |
27006 | if test "$GTK_CONFIG" = "no" ; then | |
27007 | no_gtk=yes | |
27008 | else | |
27009 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
27010 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
27011 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
27012 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
27013 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
27014 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
27015 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
27016 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
27017 | if test "x$enable_gtktest" = "xyes" ; then | |
27018 | ac_save_CFLAGS="$CFLAGS" | |
27019 | ac_save_LIBS="$LIBS" | |
27020 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
27021 | LIBS="$GTK_LIBS $LIBS" | |
27022 | rm -f conf.gtktest | |
27023 | if test "$cross_compiling" = yes; then | |
27024 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
27025 | else | |
27026 | cat >conftest.$ac_ext <<_ACEOF | |
27027 | /* confdefs.h. */ | |
27028 | _ACEOF | |
27029 | cat confdefs.h >>conftest.$ac_ext | |
27030 | cat >>conftest.$ac_ext <<_ACEOF | |
27031 | /* end confdefs.h. */ | |
27032 | ||
27033 | #include <gtk/gtk.h> | |
27034 | #include <stdio.h> | |
27035 | #include <stdlib.h> | |
27036 | ||
27037 | int | |
27038 | main () | |
27039 | { | |
27040 | int major, minor, micro; | |
27041 | char *tmp_version; | |
27042 | ||
27043 | system ("touch conf.gtktest"); | |
27044 | ||
27045 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
27046 | tmp_version = g_strdup("$min_gtk_version"); | |
27047 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
27048 | printf("%s, bad version string\n", "$min_gtk_version"); | |
27049 | exit(1); | |
27050 | } | |
27051 | ||
27052 | if ((gtk_major_version != $gtk_config_major_version) || | |
27053 | (gtk_minor_version != $gtk_config_minor_version) || | |
27054 | (gtk_micro_version != $gtk_config_micro_version)) | |
27055 | { | |
27056 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
27057 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
27058 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27059 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
27060 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
27061 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
27062 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
27063 | printf("*** required on your system.\n"); | |
27064 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
27065 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
27066 | printf("*** before re-running configure\n"); | |
27067 | } | |
27068 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
27069 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
27070 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
27071 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
27072 | { | |
27073 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
27074 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
27075 | printf("*** library (version %d.%d.%d)\n", | |
27076 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27077 | } | |
27078 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
27079 | else | |
27080 | { | |
27081 | if ((gtk_major_version > major) || | |
27082 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
27083 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
27084 | { | |
27085 | return 0; | |
27086 | } | |
27087 | else | |
27088 | { | |
27089 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
27090 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27091 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
27092 | major, minor, micro); | |
27093 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
27094 | printf("***\n"); | |
27095 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
27096 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
27097 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
27098 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
27099 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
27100 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
27101 | printf("*** so that the correct libraries are found at run-time))\n"); | |
27102 | } | |
27103 | } | |
27104 | return 1; | |
27105 | } | |
27106 | ||
27107 | _ACEOF | |
27108 | rm -f conftest$ac_exeext | |
27109 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27110 | (eval $ac_link) 2>&5 | |
27111 | ac_status=$? | |
27112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27113 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
27114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27115 | (eval $ac_try) 2>&5 | |
27116 | ac_status=$? | |
27117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27118 | (exit $ac_status); }; }; then | |
27119 | : | |
27120 | else | |
27121 | echo "$as_me: program exited with status $ac_status" >&5 | |
27122 | echo "$as_me: failed program was:" >&5 | |
27123 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27124 | ||
27125 | ( exit $ac_status ) | |
27126 | no_gtk=yes | |
27127 | fi | |
ac1cb8d3 | 27128 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27129 | fi |
27130 | CFLAGS="$ac_save_CFLAGS" | |
27131 | LIBS="$ac_save_LIBS" | |
27132 | fi | |
27133 | fi | |
27134 | if test "x$no_gtk" = x ; then | |
27135 | echo "$as_me:$LINENO: result: yes" >&5 | |
27136 | echo "${ECHO_T}yes" >&6 | |
27137 | wx_cv_lib_gtk=1.2.7 | |
27138 | else | |
27139 | echo "$as_me:$LINENO: result: no" >&5 | |
27140 | echo "${ECHO_T}no" >&6 | |
27141 | if test "$GTK_CONFIG" = "no" ; then | |
27142 | echo "*** The gtk-config script installed by GTK could not be found" | |
27143 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
27144 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
27145 | echo "*** full path to gtk-config." | |
27146 | else | |
27147 | if test -f conf.gtktest ; then | |
27148 | : | |
27149 | else | |
27150 | echo "*** Could not run GTK test program, checking why..." | |
27151 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
27152 | LIBS="$LIBS $GTK_LIBS" | |
27153 | cat >conftest.$ac_ext <<_ACEOF | |
27154 | /* confdefs.h. */ | |
27155 | _ACEOF | |
27156 | cat confdefs.h >>conftest.$ac_ext | |
27157 | cat >>conftest.$ac_ext <<_ACEOF | |
27158 | /* end confdefs.h. */ | |
27159 | ||
27160 | #include <gtk/gtk.h> | |
27161 | #include <stdio.h> | |
27162 | ||
27163 | int | |
27164 | main () | |
27165 | { | |
27166 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
27167 | ; | |
27168 | return 0; | |
27169 | } | |
27170 | _ACEOF | |
27171 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27172 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27173 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27174 | ac_status=$? |
ac1cb8d3 VS |
27175 | grep -v '^ *+' conftest.er1 >conftest.err |
27176 | rm -f conftest.er1 | |
27177 | cat conftest.err >&5 | |
a848cd7e SC |
27178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27179 | (exit $ac_status); } && | |
5d7b7554 | 27180 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27182 | (eval $ac_try) 2>&5 | |
27183 | ac_status=$? | |
27184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27185 | (exit $ac_status); }; } && | |
27186 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27188 | (eval $ac_try) 2>&5 | |
27189 | ac_status=$? | |
27190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27191 | (exit $ac_status); }; }; then | |
27192 | echo "*** The test program compiled, but did not run. This usually means" | |
27193 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
27194 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
27195 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
27196 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
27197 | echo "*** is required on your system" | |
27198 | echo "***" | |
27199 | echo "*** If you have an old version installed, it is best to remove it, although" | |
27200 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
27201 | echo "***" | |
27202 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
27203 | echo "*** came with the system with the command" | |
27204 | echo "***" | |
27205 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
27206 | else | |
27207 | echo "$as_me: failed program was:" >&5 | |
27208 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27209 | ||
27210 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
27211 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
27212 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
27213 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
27214 | fi | |
ac1cb8d3 VS |
27215 | rm -f conftest.err conftest.$ac_objext \ |
27216 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27217 | CFLAGS="$ac_save_CFLAGS" |
27218 | LIBS="$ac_save_LIBS" | |
27219 | fi | |
27220 | fi | |
27221 | GTK_CFLAGS="" | |
27222 | GTK_LIBS="" | |
27223 | : | |
27224 | fi | |
27225 | ||
27226 | ||
27227 | rm -f conf.gtktest | |
27228 | ||
27229 | ||
f34ca037 | 27230 | if test -z "$wx_cv_lib_gtk"; then |
a848cd7e SC |
27231 | |
27232 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
27233 | if test "${with_gtk_prefix+set}" = set; then | |
27234 | withval="$with_gtk_prefix" | |
27235 | gtk_config_prefix="$withval" | |
27236 | else | |
27237 | gtk_config_prefix="" | |
27238 | fi; | |
27239 | ||
27240 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
27241 | if test "${with_gtk_exec_prefix+set}" = set; then | |
27242 | withval="$with_gtk_exec_prefix" | |
27243 | gtk_config_exec_prefix="$withval" | |
27244 | else | |
27245 | gtk_config_exec_prefix="" | |
27246 | fi; | |
27247 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
27248 | if test "${enable_gtktest+set}" = set; then | |
27249 | enableval="$enable_gtktest" | |
27250 | ||
27251 | else | |
27252 | enable_gtktest=yes | |
27253 | fi; | |
27254 | ||
27255 | for module in . $GTK_MODULES | |
27256 | do | |
27257 | case "$module" in | |
27258 | gthread) | |
27259 | gtk_config_args="$gtk_config_args gthread" | |
27260 | ;; | |
27261 | esac | |
27262 | done | |
27263 | ||
27264 | if test x$gtk_config_exec_prefix != x ; then | |
27265 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
27266 | if test x${GTK_CONFIG+set} != xset ; then | |
27267 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
27268 | fi | |
27269 | fi | |
27270 | if test x$gtk_config_prefix != x ; then | |
27271 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
27272 | if test x${GTK_CONFIG+set} != xset ; then | |
27273 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
27274 | fi | |
27275 | fi | |
27276 | ||
27277 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
27278 | set dummy gtk-config; ac_word=$2 | |
27279 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27280 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27281 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
27282 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27283 | else | |
27284 | case $GTK_CONFIG in | |
27285 | [\\/]* | ?:[\\/]*) | |
27286 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
27287 | ;; | |
27288 | *) | |
27289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27290 | for as_dir in $PATH | |
27291 | do | |
27292 | IFS=$as_save_IFS | |
27293 | test -z "$as_dir" && as_dir=. | |
27294 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27295 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27296 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
27297 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27298 | break 2 | |
27299 | fi | |
27300 | done | |
27301 | done | |
27302 | ||
27303 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
27304 | ;; | |
27305 | esac | |
27306 | fi | |
27307 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
27308 | ||
27309 | if test -n "$GTK_CONFIG"; then | |
27310 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
27311 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
27312 | else | |
27313 | echo "$as_me:$LINENO: result: no" >&5 | |
27314 | echo "${ECHO_T}no" >&6 | |
27315 | fi | |
27316 | ||
27317 | min_gtk_version=1.2.3 | |
27318 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
27319 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
27320 | no_gtk="" | |
27321 | if test "$GTK_CONFIG" = "no" ; then | |
27322 | no_gtk=yes | |
27323 | else | |
27324 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
27325 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
27326 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
27327 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
27328 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
27329 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
27330 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
27331 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
27332 | if test "x$enable_gtktest" = "xyes" ; then | |
27333 | ac_save_CFLAGS="$CFLAGS" | |
27334 | ac_save_LIBS="$LIBS" | |
27335 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
27336 | LIBS="$GTK_LIBS $LIBS" | |
27337 | rm -f conf.gtktest | |
27338 | if test "$cross_compiling" = yes; then | |
27339 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
27340 | else | |
27341 | cat >conftest.$ac_ext <<_ACEOF | |
27342 | /* confdefs.h. */ | |
27343 | _ACEOF | |
27344 | cat confdefs.h >>conftest.$ac_ext | |
27345 | cat >>conftest.$ac_ext <<_ACEOF | |
27346 | /* end confdefs.h. */ | |
27347 | ||
27348 | #include <gtk/gtk.h> | |
27349 | #include <stdio.h> | |
27350 | #include <stdlib.h> | |
27351 | ||
27352 | int | |
27353 | main () | |
27354 | { | |
27355 | int major, minor, micro; | |
27356 | char *tmp_version; | |
27357 | ||
27358 | system ("touch conf.gtktest"); | |
27359 | ||
27360 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
27361 | tmp_version = g_strdup("$min_gtk_version"); | |
27362 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
27363 | printf("%s, bad version string\n", "$min_gtk_version"); | |
27364 | exit(1); | |
27365 | } | |
27366 | ||
27367 | if ((gtk_major_version != $gtk_config_major_version) || | |
27368 | (gtk_minor_version != $gtk_config_minor_version) || | |
27369 | (gtk_micro_version != $gtk_config_micro_version)) | |
27370 | { | |
27371 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
27372 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
27373 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27374 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
27375 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
27376 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
27377 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
27378 | printf("*** required on your system.\n"); | |
27379 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
27380 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
27381 | printf("*** before re-running configure\n"); | |
27382 | } | |
27383 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
27384 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
27385 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
27386 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
27387 | { | |
27388 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
27389 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
27390 | printf("*** library (version %d.%d.%d)\n", | |
27391 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27392 | } | |
27393 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
27394 | else | |
27395 | { | |
27396 | if ((gtk_major_version > major) || | |
27397 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
27398 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
27399 | { | |
27400 | return 0; | |
27401 | } | |
27402 | else | |
27403 | { | |
27404 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
27405 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27406 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
27407 | major, minor, micro); | |
27408 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
27409 | printf("***\n"); | |
27410 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
27411 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
27412 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
27413 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
27414 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
27415 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
27416 | printf("*** so that the correct libraries are found at run-time))\n"); | |
27417 | } | |
27418 | } | |
27419 | return 1; | |
27420 | } | |
27421 | ||
27422 | _ACEOF | |
27423 | rm -f conftest$ac_exeext | |
27424 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27425 | (eval $ac_link) 2>&5 | |
27426 | ac_status=$? | |
27427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27428 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
27429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27430 | (eval $ac_try) 2>&5 | |
27431 | ac_status=$? | |
27432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27433 | (exit $ac_status); }; }; then | |
27434 | : | |
27435 | else | |
27436 | echo "$as_me: program exited with status $ac_status" >&5 | |
27437 | echo "$as_me: failed program was:" >&5 | |
27438 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27439 | ||
27440 | ( exit $ac_status ) | |
27441 | no_gtk=yes | |
27442 | fi | |
ac1cb8d3 | 27443 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27444 | fi |
27445 | CFLAGS="$ac_save_CFLAGS" | |
27446 | LIBS="$ac_save_LIBS" | |
27447 | fi | |
27448 | fi | |
27449 | if test "x$no_gtk" = x ; then | |
27450 | echo "$as_me:$LINENO: result: yes" >&5 | |
27451 | echo "${ECHO_T}yes" >&6 | |
27452 | wx_cv_lib_gtk=1.2.3 | |
27453 | else | |
27454 | echo "$as_me:$LINENO: result: no" >&5 | |
27455 | echo "${ECHO_T}no" >&6 | |
27456 | if test "$GTK_CONFIG" = "no" ; then | |
27457 | echo "*** The gtk-config script installed by GTK could not be found" | |
27458 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
27459 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
27460 | echo "*** full path to gtk-config." | |
27461 | else | |
27462 | if test -f conf.gtktest ; then | |
27463 | : | |
27464 | else | |
27465 | echo "*** Could not run GTK test program, checking why..." | |
27466 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
27467 | LIBS="$LIBS $GTK_LIBS" | |
27468 | cat >conftest.$ac_ext <<_ACEOF | |
27469 | /* confdefs.h. */ | |
27470 | _ACEOF | |
27471 | cat confdefs.h >>conftest.$ac_ext | |
27472 | cat >>conftest.$ac_ext <<_ACEOF | |
27473 | /* end confdefs.h. */ | |
27474 | ||
27475 | #include <gtk/gtk.h> | |
27476 | #include <stdio.h> | |
27477 | ||
27478 | int | |
27479 | main () | |
27480 | { | |
27481 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
27482 | ; | |
27483 | return 0; | |
27484 | } | |
27485 | _ACEOF | |
27486 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27487 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27488 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27489 | ac_status=$? |
ac1cb8d3 VS |
27490 | grep -v '^ *+' conftest.er1 >conftest.err |
27491 | rm -f conftest.er1 | |
27492 | cat conftest.err >&5 | |
a848cd7e SC |
27493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27494 | (exit $ac_status); } && | |
5d7b7554 | 27495 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27497 | (eval $ac_try) 2>&5 | |
27498 | ac_status=$? | |
27499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27500 | (exit $ac_status); }; } && | |
27501 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27503 | (eval $ac_try) 2>&5 | |
27504 | ac_status=$? | |
27505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27506 | (exit $ac_status); }; }; then | |
27507 | echo "*** The test program compiled, but did not run. This usually means" | |
27508 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
27509 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
27510 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
27511 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
27512 | echo "*** is required on your system" | |
27513 | echo "***" | |
27514 | echo "*** If you have an old version installed, it is best to remove it, although" | |
27515 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
27516 | echo "***" | |
27517 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
27518 | echo "*** came with the system with the command" | |
27519 | echo "***" | |
27520 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
27521 | else | |
27522 | echo "$as_me: failed program was:" >&5 | |
27523 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27524 | ||
27525 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
27526 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
27527 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
27528 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
27529 | fi | |
ac1cb8d3 VS |
27530 | rm -f conftest.err conftest.$ac_objext \ |
27531 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27532 | CFLAGS="$ac_save_CFLAGS" |
27533 | LIBS="$ac_save_LIBS" | |
27534 | fi | |
27535 | fi | |
27536 | GTK_CFLAGS="" | |
27537 | GTK_LIBS="" | |
27538 | : | |
27539 | fi | |
27540 | ||
27541 | ||
27542 | rm -f conf.gtktest | |
27543 | ||
f34ca037 | 27544 | fi |
a848cd7e SC |
27545 | fi |
27546 | fi | |
27547 | ||
27548 | if test -z "$wx_cv_lib_gtk"; then | |
27549 | wx_cv_lib_gtk=none | |
27550 | else | |
27551 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
d2822091 | 27552 | wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'` |
a848cd7e SC |
27553 | fi |
27554 | ||
27555 | ||
27556 | fi | |
27557 | ||
27558 | ||
27559 | if test "$gtk_version_cached" = 1; then | |
27560 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 | |
27561 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
27562 | fi | |
27563 | ||
27564 | case "$wx_cv_lib_gtk" in | |
27565 | 2.0) WXGTK20=1 | |
27566 | TOOLKIT_VERSION=2 | |
27567 | ;; | |
27568 | 1.2.7) WXGTK127=1 | |
27569 | WXGTK12=1 | |
27570 | ;; | |
27571 | 1.2.3) WXGTK12=1 | |
27572 | ;; | |
27573 | *) { { echo "$as_me:$LINENO: error: | |
f597b41c MW |
27574 | The development files for GTK+ were not found. For GTK+ 2, please |
27575 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
27576 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
27577 | and that the version is 1.2.3 or above. Also check that the | |
27578 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
27579 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e SC |
27580 | " >&5 |
27581 | echo "$as_me: error: | |
f597b41c MW |
27582 | The development files for GTK+ were not found. For GTK+ 2, please |
27583 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
27584 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
27585 | and that the version is 1.2.3 or above. Also check that the | |
27586 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
27587 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e SC |
27588 | " >&2;} |
27589 | { (exit 1); exit 1; }; } | |
27590 | ;; | |
27591 | esac | |
27592 | ||
27593 | if test "$WXGTK20" = 1; then | |
e56f4f9e | 27594 | save_CXXFLAGS="$CFLAGS" |
304205f1 | 27595 | save_LIBS="$LIBS" |
c92ad099 | 27596 | CFLAGS="$wx_cv_cflags_gtk $CFLAGS" |
abc736fd | 27597 | LIBS="$LIBS $wx_cv_libs_gtk" |
304205f1 | 27598 | |
d12aef51 VZ |
27599 | echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5 |
27600 | echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6 | |
27601 | cat >conftest.$ac_ext <<_ACEOF | |
304205f1 VS |
27602 | /* confdefs.h. */ |
27603 | _ACEOF | |
27604 | cat confdefs.h >>conftest.$ac_ext | |
27605 | cat >>conftest.$ac_ext <<_ACEOF | |
27606 | /* end confdefs.h. */ | |
304205f1 | 27607 | |
d12aef51 | 27608 | #include <gtk/gtk.h> |
304205f1 | 27609 | |
d12aef51 VZ |
27610 | int |
27611 | main () | |
27612 | { | |
304205f1 | 27613 | |
d12aef51 | 27614 | void *f = gtk_icon_size_lookup; |
abc736fd MW |
27615 | |
27616 | ; | |
27617 | return 0; | |
27618 | } | |
27619 | _ACEOF | |
27620 | rm -f conftest.$ac_objext | |
27621 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27622 | (eval $ac_compile) 2>conftest.er1 | |
27623 | ac_status=$? | |
27624 | grep -v '^ *+' conftest.er1 >conftest.err | |
27625 | rm -f conftest.er1 | |
27626 | cat conftest.err >&5 | |
27627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27628 | (exit $ac_status); } && | |
e56f4f9e | 27629 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
abc736fd MW |
27630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27631 | (eval $ac_try) 2>&5 | |
27632 | ac_status=$? | |
27633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27634 | (exit $ac_status); }; } && | |
27635 | { ac_try='test -s conftest.$ac_objext' | |
27636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27637 | (eval $ac_try) 2>&5 | |
27638 | ac_status=$? | |
27639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27640 | (exit $ac_status); }; }; then | |
27641 | ||
27642 | echo "$as_me:$LINENO: result: no" >&5 | |
27643 | echo "${ECHO_T}no" >&6 | |
27644 | ||
27645 | else | |
27646 | echo "$as_me: failed program was:" >&5 | |
27647 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27648 | ||
27649 | ||
27650 | cat >>confdefs.h <<\_ACEOF | |
27651 | #define NEED_GTK_ICON_SIZE_LOOKUP 1 | |
27652 | _ACEOF | |
27653 | ||
27654 | echo "$as_me:$LINENO: result: yes" >&5 | |
27655 | echo "${ECHO_T}yes" >&6 | |
27656 | ||
27657 | fi | |
27658 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
27659 | ||
9755e73b VS |
27660 | echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5 |
27661 | echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6 | |
27662 | cat >conftest.$ac_ext <<_ACEOF | |
27663 | /* confdefs.h. */ | |
27664 | _ACEOF | |
27665 | cat confdefs.h >>conftest.$ac_ext | |
27666 | cat >>conftest.$ac_ext <<_ACEOF | |
27667 | /* end confdefs.h. */ | |
27668 | ||
27669 | #include <gtk/gtk.h> | |
27670 | ||
27671 | int | |
27672 | main () | |
27673 | { | |
27674 | ||
27675 | #if !GTK_CHECK_VERSION(2,4,0) | |
04e525a0 | 27676 | Not GTK+ 2.4 |
9755e73b VS |
27677 | #endif |
27678 | ||
27679 | ; | |
27680 | return 0; | |
27681 | } | |
27682 | _ACEOF | |
27683 | rm -f conftest.$ac_objext | |
27684 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27685 | (eval $ac_compile) 2>conftest.er1 | |
27686 | ac_status=$? | |
27687 | grep -v '^ *+' conftest.er1 >conftest.err | |
27688 | rm -f conftest.er1 | |
27689 | cat conftest.err >&5 | |
27690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27691 | (exit $ac_status); } && | |
e56f4f9e | 27692 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9755e73b VS |
27693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27694 | (eval $ac_try) 2>&5 | |
27695 | ac_status=$? | |
27696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27697 | (exit $ac_status); }; } && | |
27698 | { ac_try='test -s conftest.$ac_objext' | |
27699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27700 | (eval $ac_try) 2>&5 | |
27701 | ac_status=$? | |
27702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27703 | (exit $ac_status); }; }; then | |
27704 | ||
27705 | cat >>confdefs.h <<\_ACEOF | |
27706 | #define __WXGTK24__ 1 | |
27707 | _ACEOF | |
27708 | ||
27709 | echo "$as_me:$LINENO: result: yes" >&5 | |
27710 | echo "${ECHO_T}yes" >&6 | |
27711 | ||
27712 | else | |
27713 | echo "$as_me: failed program was:" >&5 | |
27714 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27715 | ||
27716 | ||
27717 | echo "$as_me:$LINENO: result: no" >&5 | |
27718 | echo "${ECHO_T}no" >&6 | |
27719 | ||
27720 | fi | |
27721 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
27722 | ||
304205f1 VS |
27723 | CFLAGS="$save_CFLAGS" |
27724 | LIBS="$save_LIBS" | |
a848cd7e SC |
27725 | else |
27726 | if test "$wxUSE_UNICODE" = "yes"; then | |
27727 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 | |
27728 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
27729 | wxUSE_UNICODE=no | |
27730 | fi | |
27731 | fi | |
27732 | ||
e56f4f9e VZ |
27733 | ac_ext=cc |
27734 | ac_cpp='$CXXCPP $CPPFLAGS' | |
27735 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
27736 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27737 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
27738 | ||
27739 | ||
a848cd7e SC |
27740 | if test "$USE_DARWIN" != 1; then |
27741 | ||
27742 | for ac_func in poll | |
27743 | do | |
27744 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
27745 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27746 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27747 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27748 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27749 | else | |
27750 | cat >conftest.$ac_ext <<_ACEOF | |
27751 | /* confdefs.h. */ | |
27752 | _ACEOF | |
27753 | cat confdefs.h >>conftest.$ac_ext | |
27754 | cat >>conftest.$ac_ext <<_ACEOF | |
27755 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
27756 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
27757 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
27758 | #define $ac_func innocuous_$ac_func | |
27759 | ||
a848cd7e SC |
27760 | /* System header to define __stub macros and hopefully few prototypes, |
27761 | which can conflict with char $ac_func (); below. | |
27762 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27763 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 27764 | |
a848cd7e SC |
27765 | #ifdef __STDC__ |
27766 | # include <limits.h> | |
27767 | #else | |
27768 | # include <assert.h> | |
27769 | #endif | |
ac1cb8d3 VS |
27770 | |
27771 | #undef $ac_func | |
27772 | ||
a848cd7e SC |
27773 | /* Override any gcc2 internal prototype to avoid an error. */ |
27774 | #ifdef __cplusplus | |
27775 | extern "C" | |
27776 | { | |
27777 | #endif | |
27778 | /* We use char because int might match the return type of a gcc2 | |
27779 | builtin and then its argument prototype would still apply. */ | |
27780 | char $ac_func (); | |
27781 | /* The GNU C library defines this for functions which it implements | |
27782 | to always fail with ENOSYS. Some functions are actually named | |
27783 | something starting with __ and the normal name is an alias. */ | |
27784 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27785 | choke me | |
27786 | #else | |
27787 | char (*f) () = $ac_func; | |
27788 | #endif | |
27789 | #ifdef __cplusplus | |
27790 | } | |
27791 | #endif | |
27792 | ||
27793 | int | |
27794 | main () | |
27795 | { | |
27796 | return f != $ac_func; | |
27797 | ; | |
27798 | return 0; | |
27799 | } | |
27800 | _ACEOF | |
27801 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27802 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27803 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27804 | ac_status=$? |
ac1cb8d3 VS |
27805 | grep -v '^ *+' conftest.er1 >conftest.err |
27806 | rm -f conftest.er1 | |
27807 | cat conftest.err >&5 | |
a848cd7e SC |
27808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27809 | (exit $ac_status); } && | |
5d7b7554 | 27810 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
27811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27812 | (eval $ac_try) 2>&5 | |
27813 | ac_status=$? | |
27814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27815 | (exit $ac_status); }; } && | |
27816 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27818 | (eval $ac_try) 2>&5 | |
27819 | ac_status=$? | |
27820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27821 | (exit $ac_status); }; }; then | |
27822 | eval "$as_ac_var=yes" | |
27823 | else | |
27824 | echo "$as_me: failed program was:" >&5 | |
27825 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27826 | ||
27827 | eval "$as_ac_var=no" | |
27828 | fi | |
ac1cb8d3 VS |
27829 | rm -f conftest.err conftest.$ac_objext \ |
27830 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27831 | fi |
27832 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27833 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27834 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27835 | cat >>confdefs.h <<_ACEOF | |
27836 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27837 | _ACEOF | |
27838 | ||
27839 | fi | |
27840 | done | |
27841 | ||
27842 | fi | |
27843 | ||
27844 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
27845 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" | |
27846 | ||
27847 | AFMINSTALL=afminstall | |
27848 | TOOLKIT=GTK | |
27849 | GUIDIST=GTK_DIST | |
27850 | ||
27851 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 | |
27852 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
27853 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
27854 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27855 | else | |
27856 | ac_check_lib_save_LIBS=$LIBS | |
27857 | LIBS="-lgdk $LIBS" | |
27858 | cat >conftest.$ac_ext <<_ACEOF | |
27859 | /* confdefs.h. */ | |
27860 | _ACEOF | |
27861 | cat confdefs.h >>conftest.$ac_ext | |
27862 | cat >>conftest.$ac_ext <<_ACEOF | |
27863 | /* end confdefs.h. */ | |
27864 | ||
27865 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27866 | #ifdef __cplusplus | |
27867 | extern "C" | |
27868 | #endif | |
27869 | /* We use char because int might match the return type of a gcc2 | |
27870 | builtin and then its argument prototype would still apply. */ | |
27871 | char gdk_im_open (); | |
27872 | int | |
27873 | main () | |
27874 | { | |
27875 | gdk_im_open (); | |
27876 | ; | |
27877 | return 0; | |
27878 | } | |
27879 | _ACEOF | |
27880 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27881 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27882 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27883 | ac_status=$? |
ac1cb8d3 VS |
27884 | grep -v '^ *+' conftest.er1 >conftest.err |
27885 | rm -f conftest.er1 | |
27886 | cat conftest.err >&5 | |
a848cd7e SC |
27887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27888 | (exit $ac_status); } && | |
5d7b7554 | 27889 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
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); }; } && | |
27895 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27897 | (eval $ac_try) 2>&5 | |
27898 | ac_status=$? | |
27899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27900 | (exit $ac_status); }; }; then | |
27901 | ac_cv_lib_gdk_gdk_im_open=yes | |
27902 | else | |
27903 | echo "$as_me: failed program was:" >&5 | |
27904 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27905 | ||
27906 | ac_cv_lib_gdk_gdk_im_open=no | |
27907 | fi | |
ac1cb8d3 VS |
27908 | rm -f conftest.err conftest.$ac_objext \ |
27909 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27910 | LIBS=$ac_check_lib_save_LIBS |
27911 | fi | |
27912 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
27913 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
27914 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
27915 | cat >>confdefs.h <<\_ACEOF | |
27916 | #define HAVE_XIM 1 | |
27917 | _ACEOF | |
27918 | ||
27919 | fi | |
27920 | ||
27921 | ||
27922 | ||
27923 | if test "$wxUSE_GPE" = "yes"; then | |
27924 | echo "$as_me:$LINENO: checking for gpewidget library" >&5 | |
27925 | echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6 | |
27926 | ||
0ad5d837 VZ |
27927 | ac_find_libraries= |
27928 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 27929 | do |
3eca31dc | 27930 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
27931 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then |
27932 | ac_find_libraries=$ac_dir | |
27933 | break 2 | |
27934 | fi | |
27935 | done | |
27936 | done | |
27937 | ||
27938 | if test "$ac_find_libraries" != "" ; then | |
27939 | ||
0ad5d837 | 27940 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
27941 | ac_path_to_link="" |
27942 | else | |
0ad5d837 VZ |
27943 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
27944 | result=$? | |
27945 | if test $result = 0; then | |
27946 | ac_path_to_link="" | |
27947 | else | |
27948 | ac_path_to_link=" -L$ac_find_libraries" | |
27949 | fi | |
a848cd7e SC |
27950 | fi |
27951 | ||
27952 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
27953 | WXGPE=1 | |
0ad5d837 VZ |
27954 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 |
27955 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e SC |
27956 | else |
27957 | echo "$as_me:$LINENO: result: not found" >&5 | |
27958 | echo "${ECHO_T}not found" >&6 | |
27959 | fi | |
27960 | ||
27961 | fi | |
27962 | fi | |
27963 | ||
27964 | if test "$wxUSE_MGL" = 1; then | |
27965 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 | |
27966 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
27967 | if test "x$MGL_ROOT" = x ; then | |
27968 | echo "$as_me:$LINENO: result: not found" >&5 | |
27969 | echo "${ECHO_T}not found" >&6 | |
27970 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
27971 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
27972 | { (exit 1); exit 1; }; } | |
27973 | else | |
27974 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 | |
27975 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
27976 | fi | |
27977 | ||
27978 | echo "$as_me:$LINENO: checking for libmgl location" >&5 | |
27979 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
27980 | case "${host}" in | |
27981 | *-*-linux* ) | |
27982 | if test "x$wxUSE_SHARED" = xyes ; then | |
27983 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
27984 | else | |
27985 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" | |
27986 | fi | |
27987 | ;; | |
27988 | *-pc-msdosdjgpp ) | |
27989 | mgl_os_candidates="dos32/dj2" | |
27990 | ;; | |
27991 | *) | |
27992 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 | |
27993 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
27994 | { (exit 1); exit 1; }; } | |
27995 | esac | |
27996 | ||
27997 | mgl_lib_type="" | |
27998 | mgl_os="" | |
27999 | ||
28000 | for mgl_os_i in $mgl_os_candidates ; do | |
28001 | if test "x$mgl_os" = x ; then | |
28002 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
28003 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
28004 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
28005 | mgl_lib_type=debug | |
28006 | mgl_os=$mgl_os_i | |
28007 | fi | |
28008 | fi | |
28009 | if test "x$mgl_lib_type" = x ; then | |
28010 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
28011 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
28012 | mgl_lib_type=release | |
28013 | mgl_os=$mgl_os_i | |
28014 | fi | |
28015 | fi | |
28016 | fi | |
28017 | done | |
28018 | ||
28019 | if test "x$mgl_os" = x ; then | |
28020 | echo "$as_me:$LINENO: result: not found" >&5 | |
28021 | echo "${ECHO_T}not found" >&6 | |
28022 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
28023 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
28024 | { (exit 1); exit 1; }; } | |
28025 | fi | |
28026 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 | |
28027 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
28028 | ||
28029 | wxUSE_UNIVERSAL="yes" | |
28030 | ||
28031 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
28032 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
28033 | ||
28034 | AFMINSTALL=afminstall | |
28035 | TOOLKIT=MGL | |
28036 | GUIDIST=MGL_DIST | |
28037 | fi | |
28038 | ||
28039 | if test "$wxUSE_MICROWIN" = 1; then | |
28040 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 | |
28041 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
28042 | if test "x$MICROWINDOWS" = x ; then | |
28043 | echo "$as_me:$LINENO: result: not found" >&5 | |
28044 | echo "${ECHO_T}not found" >&6 | |
28045 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
28046 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
28047 | { (exit 1); exit 1; }; } | |
28048 | else | |
28049 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 | |
28050 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
28051 | fi | |
28052 | ||
28053 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
28054 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 | |
28055 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
28056 | else | |
28057 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 | |
28058 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
28059 | { (exit 1); exit 1; }; } | |
28060 | fi | |
28061 | ||
28062 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
28063 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
28064 | ||
28065 | wxUSE_UNIVERSAL="yes" | |
28066 | ||
28067 | AFMINSTALL=afminstall | |
28068 | TOOLKIT=MICROWIN | |
28069 | GUIDIST=MICROWIN_DIST | |
28070 | ||
28071 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
28072 | fi | |
28073 | ||
74b84332 | 28074 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
5d7b7554 VZ |
28075 | |
28076 | if test "x$ac_path_x_has_been_run" != xyes; then | |
28077 | echo "$as_me:$LINENO: checking for X" >&5 | |
a848cd7e SC |
28078 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
28079 | ||
5d7b7554 | 28080 | ac_path_x_has_been_run=yes |
a848cd7e SC |
28081 | |
28082 | # Check whether --with-x or --without-x was given. | |
28083 | if test "${with_x+set}" = set; then | |
28084 | withval="$with_x" | |
28085 | ||
28086 | fi; | |
28087 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
28088 | if test "x$with_x" = xno; then | |
28089 | # The user explicitly disabled X. | |
28090 | have_x=disabled | |
28091 | else | |
28092 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
28093 | # Both variables are already set. | |
28094 | have_x=yes | |
28095 | else | |
28096 | if test "${ac_cv_have_x+set}" = set; then | |
28097 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28098 | else | |
28099 | # One or both of the vars are not set, and there is no cached value. | |
28100 | ac_x_includes=no ac_x_libraries=no | |
28101 | rm -fr conftest.dir | |
28102 | if mkdir conftest.dir; then | |
28103 | cd conftest.dir | |
28104 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
28105 | cat >Imakefile <<'_ACEOF' | |
28106 | acfindx: | |
28107 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
28108 | _ACEOF | |
28109 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
28110 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
28111 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
28112 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
28113 | for ac_extension in a so sl; do | |
28114 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
ac1cb8d3 VS |
28115 | test -f $ac_im_libdir/libX11.$ac_extension; then |
28116 | ac_im_usrlibdir=$ac_im_libdir; break | |
a848cd7e SC |
28117 | fi |
28118 | done | |
28119 | # Screen out bogus values from the imake configuration. They are | |
28120 | # bogus both because they are the default anyway, and because | |
28121 | # using them would break gcc on systems where it needs fixed includes. | |
28122 | case $ac_im_incroot in | |
28123 | /usr/include) ;; | |
28124 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
28125 | esac | |
28126 | case $ac_im_usrlibdir in | |
28127 | /usr/lib | /lib) ;; | |
28128 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
28129 | esac | |
28130 | fi | |
28131 | cd .. | |
28132 | rm -fr conftest.dir | |
28133 | fi | |
28134 | ||
28135 | # Standard set of common directories for X headers. | |
28136 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
28137 | ac_x_header_dirs=' | |
28138 | /usr/X11/include | |
28139 | /usr/X11R6/include | |
28140 | /usr/X11R5/include | |
28141 | /usr/X11R4/include | |
28142 | ||
28143 | /usr/include/X11 | |
28144 | /usr/include/X11R6 | |
28145 | /usr/include/X11R5 | |
28146 | /usr/include/X11R4 | |
28147 | ||
28148 | /usr/local/X11/include | |
28149 | /usr/local/X11R6/include | |
28150 | /usr/local/X11R5/include | |
28151 | /usr/local/X11R4/include | |
28152 | ||
28153 | /usr/local/include/X11 | |
28154 | /usr/local/include/X11R6 | |
28155 | /usr/local/include/X11R5 | |
28156 | /usr/local/include/X11R4 | |
28157 | ||
28158 | /usr/X386/include | |
28159 | /usr/x386/include | |
28160 | /usr/XFree86/include/X11 | |
28161 | ||
28162 | /usr/include | |
28163 | /usr/local/include | |
28164 | /usr/unsupported/include | |
28165 | /usr/athena/include | |
28166 | /usr/local/x11r5/include | |
28167 | /usr/lpp/Xamples/include | |
28168 | ||
28169 | /usr/openwin/include | |
28170 | /usr/openwin/share/include' | |
28171 | ||
28172 | if test "$ac_x_includes" = no; then | |
5d7b7554 | 28173 | # Guess where to find include files, by looking for a specified header file. |
a848cd7e SC |
28174 | # First, try using that file with no special directory specified. |
28175 | cat >conftest.$ac_ext <<_ACEOF | |
28176 | /* confdefs.h. */ | |
28177 | _ACEOF | |
28178 | cat confdefs.h >>conftest.$ac_ext | |
28179 | cat >>conftest.$ac_ext <<_ACEOF | |
28180 | /* end confdefs.h. */ | |
1b52ba67 | 28181 | #include <X11/Xlib.h> |
a848cd7e SC |
28182 | _ACEOF |
28183 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
28184 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
28185 | ac_status=$? | |
28186 | grep -v '^ *+' conftest.er1 >conftest.err | |
28187 | rm -f conftest.er1 | |
28188 | cat conftest.err >&5 | |
28189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28190 | (exit $ac_status); } >/dev/null; then | |
28191 | if test -s conftest.err; then | |
5d7b7554 VZ |
28192 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
28193 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
28194 | else |
28195 | ac_cpp_err= | |
28196 | fi | |
28197 | else | |
28198 | ac_cpp_err=yes | |
28199 | fi | |
28200 | if test -z "$ac_cpp_err"; then | |
28201 | # We can compile using X headers with no special include directory. | |
28202 | ac_x_includes= | |
28203 | else | |
28204 | echo "$as_me: failed program was:" >&5 | |
28205 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28206 | ||
28207 | for ac_dir in $ac_x_header_dirs; do | |
1b52ba67 | 28208 | if test -r "$ac_dir/X11/Xlib.h"; then |
a848cd7e SC |
28209 | ac_x_includes=$ac_dir |
28210 | break | |
28211 | fi | |
28212 | done | |
28213 | fi | |
28214 | rm -f conftest.err conftest.$ac_ext | |
28215 | fi # $ac_x_includes = no | |
28216 | ||
28217 | if test "$ac_x_libraries" = no; then | |
28218 | # Check for the libraries. | |
28219 | # See if we find them without any special options. | |
28220 | # Don't add to $LIBS permanently. | |
28221 | ac_save_LIBS=$LIBS | |
1b52ba67 | 28222 | LIBS="-lX11 $LIBS" |
a848cd7e SC |
28223 | cat >conftest.$ac_ext <<_ACEOF |
28224 | /* confdefs.h. */ | |
28225 | _ACEOF | |
28226 | cat confdefs.h >>conftest.$ac_ext | |
28227 | cat >>conftest.$ac_ext <<_ACEOF | |
28228 | /* end confdefs.h. */ | |
1b52ba67 | 28229 | #include <X11/Xlib.h> |
a848cd7e SC |
28230 | int |
28231 | main () | |
28232 | { | |
1b52ba67 | 28233 | XrmInitialize () |
a848cd7e SC |
28234 | ; |
28235 | return 0; | |
28236 | } | |
28237 | _ACEOF | |
28238 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28239 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28240 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28241 | ac_status=$? |
ac1cb8d3 VS |
28242 | grep -v '^ *+' conftest.er1 >conftest.err |
28243 | rm -f conftest.er1 | |
28244 | cat conftest.err >&5 | |
a848cd7e SC |
28245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28246 | (exit $ac_status); } && | |
5d7b7554 | 28247 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28249 | (eval $ac_try) 2>&5 | |
28250 | ac_status=$? | |
28251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28252 | (exit $ac_status); }; } && | |
28253 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28255 | (eval $ac_try) 2>&5 | |
28256 | ac_status=$? | |
28257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28258 | (exit $ac_status); }; }; then | |
28259 | LIBS=$ac_save_LIBS | |
28260 | # We can link X programs with no special library path. | |
28261 | ac_x_libraries= | |
28262 | else | |
28263 | echo "$as_me: failed program was:" >&5 | |
28264 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28265 | ||
28266 | LIBS=$ac_save_LIBS | |
28267 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
28268 | do | |
28269 | # Don't even attempt the hair of trying to link an X program! | |
28270 | for ac_extension in a so sl; do | |
1b52ba67 | 28271 | if test -r $ac_dir/libX11.$ac_extension; then |
a848cd7e SC |
28272 | ac_x_libraries=$ac_dir |
28273 | break 2 | |
28274 | fi | |
28275 | done | |
28276 | done | |
28277 | fi | |
ac1cb8d3 VS |
28278 | rm -f conftest.err conftest.$ac_objext \ |
28279 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28280 | fi # $ac_x_libraries = no |
28281 | ||
28282 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
28283 | # Didn't find X anywhere. Cache the known absence of X. | |
28284 | ac_cv_have_x="have_x=no" | |
28285 | else | |
28286 | # Record where we found X for the cache. | |
28287 | ac_cv_have_x="have_x=yes \ | |
ac1cb8d3 | 28288 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
a848cd7e SC |
28289 | fi |
28290 | fi | |
28291 | ||
28292 | fi | |
28293 | eval "$ac_cv_have_x" | |
28294 | fi # $with_x != no | |
28295 | ||
28296 | if test "$have_x" != yes; then | |
28297 | echo "$as_me:$LINENO: result: $have_x" >&5 | |
28298 | echo "${ECHO_T}$have_x" >&6 | |
28299 | no_x=yes | |
28300 | else | |
28301 | # If each of the values was on the command line, it overrides each guess. | |
28302 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
28303 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
28304 | # Update the cache value to reflect the command line values. | |
28305 | ac_cv_have_x="have_x=yes \ | |
28306 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
5d7b7554 VZ |
28307 | # It might be that x_includes is empty (headers are found in the |
28308 | # standard search path. Then output the corresponding message | |
28309 | ac_out_x_includes=$x_includes | |
28310 | test "x$x_includes" = x && ac_out_x_includes="in standard search path" | |
28311 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5 | |
28312 | echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6 | |
a848cd7e SC |
28313 | fi |
28314 | ||
5d7b7554 | 28315 | fi |
a848cd7e SC |
28316 | if test "$no_x" = yes; then |
28317 | # Not all programs may use this symbol, but it does not hurt to define it. | |
28318 | ||
28319 | cat >>confdefs.h <<\_ACEOF | |
28320 | #define X_DISPLAY_MISSING 1 | |
28321 | _ACEOF | |
28322 | ||
28323 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
28324 | else | |
28325 | if test -n "$x_includes"; then | |
28326 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
28327 | fi | |
28328 | ||
28329 | # It would also be nice to do this for all -L options, not just this one. | |
28330 | if test -n "$x_libraries"; then | |
28331 | X_LIBS="$X_LIBS -L$x_libraries" | |
28332 | # For Solaris; some versions of Sun CC require a space after -R and | |
28333 | # others require no space. Words are not sufficient . . . . | |
28334 | case `(uname -sr) 2>/dev/null` in | |
28335 | "SunOS 5"*) | |
28336 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
28337 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
28338 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
28339 | cat >conftest.$ac_ext <<_ACEOF | |
28340 | /* confdefs.h. */ | |
28341 | _ACEOF | |
28342 | cat confdefs.h >>conftest.$ac_ext | |
28343 | cat >>conftest.$ac_ext <<_ACEOF | |
28344 | /* end confdefs.h. */ | |
28345 | ||
28346 | int | |
28347 | main () | |
28348 | { | |
28349 | ||
28350 | ; | |
28351 | return 0; | |
28352 | } | |
28353 | _ACEOF | |
28354 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28355 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28356 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28357 | ac_status=$? |
ac1cb8d3 VS |
28358 | grep -v '^ *+' conftest.er1 >conftest.err |
28359 | rm -f conftest.er1 | |
28360 | cat conftest.err >&5 | |
a848cd7e SC |
28361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28362 | (exit $ac_status); } && | |
5d7b7554 | 28363 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28365 | (eval $ac_try) 2>&5 | |
28366 | ac_status=$? | |
28367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28368 | (exit $ac_status); }; } && | |
28369 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28371 | (eval $ac_try) 2>&5 | |
28372 | ac_status=$? | |
28373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28374 | (exit $ac_status); }; }; then | |
28375 | ac_R_nospace=yes | |
28376 | else | |
28377 | echo "$as_me: failed program was:" >&5 | |
28378 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28379 | ||
28380 | ac_R_nospace=no | |
28381 | fi | |
ac1cb8d3 VS |
28382 | rm -f conftest.err conftest.$ac_objext \ |
28383 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28384 | if test $ac_R_nospace = yes; then |
28385 | echo "$as_me:$LINENO: result: no" >&5 | |
28386 | echo "${ECHO_T}no" >&6 | |
28387 | X_LIBS="$X_LIBS -R$x_libraries" | |
28388 | else | |
28389 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
28390 | cat >conftest.$ac_ext <<_ACEOF | |
28391 | /* confdefs.h. */ | |
28392 | _ACEOF | |
28393 | cat confdefs.h >>conftest.$ac_ext | |
28394 | cat >>conftest.$ac_ext <<_ACEOF | |
28395 | /* end confdefs.h. */ | |
28396 | ||
28397 | int | |
28398 | main () | |
28399 | { | |
28400 | ||
28401 | ; | |
28402 | return 0; | |
28403 | } | |
28404 | _ACEOF | |
28405 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28406 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28407 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28408 | ac_status=$? |
ac1cb8d3 VS |
28409 | grep -v '^ *+' conftest.er1 >conftest.err |
28410 | rm -f conftest.er1 | |
28411 | cat conftest.err >&5 | |
a848cd7e SC |
28412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28413 | (exit $ac_status); } && | |
5d7b7554 | 28414 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28416 | (eval $ac_try) 2>&5 | |
28417 | ac_status=$? | |
28418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28419 | (exit $ac_status); }; } && | |
28420 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28422 | (eval $ac_try) 2>&5 | |
28423 | ac_status=$? | |
28424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28425 | (exit $ac_status); }; }; then | |
28426 | ac_R_space=yes | |
28427 | else | |
28428 | echo "$as_me: failed program was:" >&5 | |
28429 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28430 | ||
28431 | ac_R_space=no | |
28432 | fi | |
ac1cb8d3 VS |
28433 | rm -f conftest.err conftest.$ac_objext \ |
28434 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28435 | if test $ac_R_space = yes; then |
28436 | echo "$as_me:$LINENO: result: yes" >&5 | |
28437 | echo "${ECHO_T}yes" >&6 | |
28438 | X_LIBS="$X_LIBS -R $x_libraries" | |
28439 | else | |
28440 | echo "$as_me:$LINENO: result: neither works" >&5 | |
28441 | echo "${ECHO_T}neither works" >&6 | |
28442 | fi | |
28443 | fi | |
28444 | LIBS=$ac_xsave_LIBS | |
28445 | esac | |
28446 | fi | |
28447 | ||
28448 | # Check for system-dependent libraries X programs must link with. | |
28449 | # Do this before checking for the system-independent R6 libraries | |
28450 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
28451 | ||
28452 | if test "$ISC" = yes; then | |
28453 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
28454 | else | |
28455 | # Martyn Johnson says this is needed for Ultrix, if the X | |
28456 | # libraries were built with DECnet support. And Karl Berry says | |
28457 | # the Alpha needs dnet_stub (dnet does not exist). | |
28458 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
28459 | cat >conftest.$ac_ext <<_ACEOF | |
28460 | /* confdefs.h. */ | |
28461 | _ACEOF | |
28462 | cat confdefs.h >>conftest.$ac_ext | |
28463 | cat >>conftest.$ac_ext <<_ACEOF | |
28464 | /* end confdefs.h. */ | |
28465 | ||
28466 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28467 | #ifdef __cplusplus | |
28468 | extern "C" | |
28469 | #endif | |
28470 | /* We use char because int might match the return type of a gcc2 | |
28471 | builtin and then its argument prototype would still apply. */ | |
28472 | char XOpenDisplay (); | |
28473 | int | |
28474 | main () | |
28475 | { | |
28476 | XOpenDisplay (); | |
28477 | ; | |
28478 | return 0; | |
28479 | } | |
28480 | _ACEOF | |
28481 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28482 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28483 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28484 | ac_status=$? |
ac1cb8d3 VS |
28485 | grep -v '^ *+' conftest.er1 >conftest.err |
28486 | rm -f conftest.er1 | |
28487 | cat conftest.err >&5 | |
a848cd7e SC |
28488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28489 | (exit $ac_status); } && | |
5d7b7554 | 28490 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28492 | (eval $ac_try) 2>&5 | |
28493 | ac_status=$? | |
28494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28495 | (exit $ac_status); }; } && | |
28496 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28498 | (eval $ac_try) 2>&5 | |
28499 | ac_status=$? | |
28500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28501 | (exit $ac_status); }; }; then | |
28502 | : | |
28503 | else | |
28504 | echo "$as_me: failed program was:" >&5 | |
28505 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28506 | ||
28507 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
28508 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
28509 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
28510 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28511 | else | |
28512 | ac_check_lib_save_LIBS=$LIBS | |
28513 | LIBS="-ldnet $LIBS" | |
28514 | cat >conftest.$ac_ext <<_ACEOF | |
28515 | /* confdefs.h. */ | |
28516 | _ACEOF | |
28517 | cat confdefs.h >>conftest.$ac_ext | |
28518 | cat >>conftest.$ac_ext <<_ACEOF | |
28519 | /* end confdefs.h. */ | |
28520 | ||
28521 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28522 | #ifdef __cplusplus | |
28523 | extern "C" | |
28524 | #endif | |
28525 | /* We use char because int might match the return type of a gcc2 | |
28526 | builtin and then its argument prototype would still apply. */ | |
28527 | char dnet_ntoa (); | |
28528 | int | |
28529 | main () | |
28530 | { | |
28531 | dnet_ntoa (); | |
28532 | ; | |
28533 | return 0; | |
28534 | } | |
28535 | _ACEOF | |
28536 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28537 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28538 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28539 | ac_status=$? |
ac1cb8d3 VS |
28540 | grep -v '^ *+' conftest.er1 >conftest.err |
28541 | rm -f conftest.er1 | |
28542 | cat conftest.err >&5 | |
a848cd7e SC |
28543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28544 | (exit $ac_status); } && | |
5d7b7554 | 28545 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28547 | (eval $ac_try) 2>&5 | |
28548 | ac_status=$? | |
28549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28550 | (exit $ac_status); }; } && | |
28551 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28553 | (eval $ac_try) 2>&5 | |
28554 | ac_status=$? | |
28555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28556 | (exit $ac_status); }; }; then | |
28557 | ac_cv_lib_dnet_dnet_ntoa=yes | |
28558 | else | |
28559 | echo "$as_me: failed program was:" >&5 | |
28560 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28561 | ||
28562 | ac_cv_lib_dnet_dnet_ntoa=no | |
28563 | fi | |
ac1cb8d3 VS |
28564 | rm -f conftest.err conftest.$ac_objext \ |
28565 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28566 | LIBS=$ac_check_lib_save_LIBS |
28567 | fi | |
28568 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
28569 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
28570 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
28571 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
28572 | fi | |
28573 | ||
28574 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
28575 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
28576 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
28577 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
28578 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28579 | else | |
28580 | ac_check_lib_save_LIBS=$LIBS | |
28581 | LIBS="-ldnet_stub $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 dnet_ntoa (); | |
28596 | int | |
28597 | main () | |
28598 | { | |
28599 | dnet_ntoa (); | |
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); } && | |
5d7b7554 | 28613 | { ac_try='test -z "$ac_cxx_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_dnet_stub_dnet_ntoa=yes | |
28626 | else | |
28627 | echo "$as_me: failed program was:" >&5 | |
28628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28629 | ||
28630 | ac_cv_lib_dnet_stub_dnet_ntoa=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_dnet_stub_dnet_ntoa" >&5 | |
28637 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
28638 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
28639 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
28640 | fi | |
28641 | ||
28642 | fi | |
28643 | fi | |
ac1cb8d3 VS |
28644 | rm -f conftest.err conftest.$ac_objext \ |
28645 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28646 | LIBS="$ac_xsave_LIBS" |
28647 | ||
28648 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
28649 | # to get the SysV transport functions. | |
28650 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
28651 | # needs -lnsl. | |
28652 | # The nsl library prevents programs from opening the X display | |
28653 | # on Irix 5.2, according to T.E. Dickey. | |
28654 | # The functions gethostbyname, getservbyname, and inet_addr are | |
28655 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
28656 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
28657 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
28658 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
28659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28660 | else | |
28661 | cat >conftest.$ac_ext <<_ACEOF | |
28662 | /* confdefs.h. */ | |
28663 | _ACEOF | |
28664 | cat confdefs.h >>conftest.$ac_ext | |
28665 | cat >>conftest.$ac_ext <<_ACEOF | |
28666 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28667 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
28668 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28669 | #define gethostbyname innocuous_gethostbyname | |
28670 | ||
a848cd7e SC |
28671 | /* System header to define __stub macros and hopefully few prototypes, |
28672 | which can conflict with char gethostbyname (); below. | |
28673 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28674 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28675 | |
a848cd7e SC |
28676 | #ifdef __STDC__ |
28677 | # include <limits.h> | |
28678 | #else | |
28679 | # include <assert.h> | |
28680 | #endif | |
ac1cb8d3 VS |
28681 | |
28682 | #undef gethostbyname | |
28683 | ||
a848cd7e SC |
28684 | /* Override any gcc2 internal prototype to avoid an error. */ |
28685 | #ifdef __cplusplus | |
28686 | extern "C" | |
28687 | { | |
28688 | #endif | |
28689 | /* We use char because int might match the return type of a gcc2 | |
28690 | builtin and then its argument prototype would still apply. */ | |
28691 | char gethostbyname (); | |
28692 | /* The GNU C library defines this for functions which it implements | |
28693 | to always fail with ENOSYS. Some functions are actually named | |
28694 | something starting with __ and the normal name is an alias. */ | |
28695 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
28696 | choke me | |
28697 | #else | |
28698 | char (*f) () = gethostbyname; | |
28699 | #endif | |
28700 | #ifdef __cplusplus | |
28701 | } | |
28702 | #endif | |
28703 | ||
28704 | int | |
28705 | main () | |
28706 | { | |
28707 | return f != gethostbyname; | |
28708 | ; | |
28709 | return 0; | |
28710 | } | |
28711 | _ACEOF | |
28712 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28713 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28714 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28715 | ac_status=$? |
ac1cb8d3 VS |
28716 | grep -v '^ *+' conftest.er1 >conftest.err |
28717 | rm -f conftest.er1 | |
28718 | cat conftest.err >&5 | |
a848cd7e SC |
28719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28720 | (exit $ac_status); } && | |
5d7b7554 | 28721 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28723 | (eval $ac_try) 2>&5 | |
28724 | ac_status=$? | |
28725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28726 | (exit $ac_status); }; } && | |
28727 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28729 | (eval $ac_try) 2>&5 | |
28730 | ac_status=$? | |
28731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28732 | (exit $ac_status); }; }; then | |
28733 | ac_cv_func_gethostbyname=yes | |
28734 | else | |
28735 | echo "$as_me: failed program was:" >&5 | |
28736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28737 | ||
28738 | ac_cv_func_gethostbyname=no | |
28739 | fi | |
ac1cb8d3 VS |
28740 | rm -f conftest.err conftest.$ac_objext \ |
28741 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28742 | fi |
28743 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
28744 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
28745 | ||
28746 | if test $ac_cv_func_gethostbyname = no; then | |
28747 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
28748 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
28749 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
28750 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28751 | else | |
28752 | ac_check_lib_save_LIBS=$LIBS | |
28753 | LIBS="-lnsl $LIBS" | |
28754 | cat >conftest.$ac_ext <<_ACEOF | |
28755 | /* confdefs.h. */ | |
28756 | _ACEOF | |
28757 | cat confdefs.h >>conftest.$ac_ext | |
28758 | cat >>conftest.$ac_ext <<_ACEOF | |
28759 | /* end confdefs.h. */ | |
28760 | ||
28761 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28762 | #ifdef __cplusplus | |
28763 | extern "C" | |
28764 | #endif | |
28765 | /* We use char because int might match the return type of a gcc2 | |
28766 | builtin and then its argument prototype would still apply. */ | |
28767 | char gethostbyname (); | |
28768 | int | |
28769 | main () | |
28770 | { | |
28771 | gethostbyname (); | |
28772 | ; | |
28773 | return 0; | |
28774 | } | |
28775 | _ACEOF | |
28776 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28777 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 VS |
28778 | (eval $ac_link) 2>conftest.er1 |
28779 | ac_status=$? | |
28780 | grep -v '^ *+' conftest.er1 >conftest.err | |
28781 | rm -f conftest.er1 | |
28782 | cat conftest.err >&5 | |
28783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28784 | (exit $ac_status); } && | |
5d7b7554 | 28785 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28787 | (eval $ac_try) 2>&5 | |
28788 | ac_status=$? | |
28789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28790 | (exit $ac_status); }; } && | |
28791 | { ac_try='test -s conftest$ac_exeext' | |
28792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28793 | (eval $ac_try) 2>&5 | |
28794 | ac_status=$? | |
28795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28796 | (exit $ac_status); }; }; then | |
28797 | ac_cv_lib_nsl_gethostbyname=yes | |
28798 | else | |
28799 | echo "$as_me: failed program was:" >&5 | |
28800 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28801 | ||
28802 | ac_cv_lib_nsl_gethostbyname=no | |
28803 | fi | |
28804 | rm -f conftest.err conftest.$ac_objext \ | |
28805 | conftest$ac_exeext conftest.$ac_ext | |
28806 | LIBS=$ac_check_lib_save_LIBS | |
28807 | fi | |
28808 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
28809 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
28810 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
28811 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
28812 | fi | |
28813 | ||
28814 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
28815 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
28816 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
28817 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
28818 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28819 | else | |
28820 | ac_check_lib_save_LIBS=$LIBS | |
28821 | LIBS="-lbsd $LIBS" | |
28822 | cat >conftest.$ac_ext <<_ACEOF | |
28823 | /* confdefs.h. */ | |
28824 | _ACEOF | |
28825 | cat confdefs.h >>conftest.$ac_ext | |
28826 | cat >>conftest.$ac_ext <<_ACEOF | |
28827 | /* end confdefs.h. */ | |
28828 | ||
28829 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28830 | #ifdef __cplusplus | |
28831 | extern "C" | |
28832 | #endif | |
28833 | /* We use char because int might match the return type of a gcc2 | |
28834 | builtin and then its argument prototype would still apply. */ | |
28835 | char gethostbyname (); | |
28836 | int | |
28837 | main () | |
28838 | { | |
28839 | gethostbyname (); | |
28840 | ; | |
28841 | return 0; | |
28842 | } | |
28843 | _ACEOF | |
28844 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28845 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28846 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 28847 | ac_status=$? |
ac1cb8d3 VS |
28848 | grep -v '^ *+' conftest.er1 >conftest.err |
28849 | rm -f conftest.er1 | |
28850 | cat conftest.err >&5 | |
a848cd7e SC |
28851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28852 | (exit $ac_status); } && | |
5d7b7554 | 28853 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
a848cd7e SC |
28854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28855 | (eval $ac_try) 2>&5 | |
28856 | ac_status=$? | |
28857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ac1cb8d3 VS |
28858 | (exit $ac_status); }; } && |
28859 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28861 | (eval $ac_try) 2>&5 | |
28862 | ac_status=$? | |
28863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28864 | (exit $ac_status); }; }; then | |
28865 | ac_cv_lib_bsd_gethostbyname=yes | |
28866 | else | |
28867 | echo "$as_me: failed program was:" >&5 | |
28868 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28869 | ||
28870 | ac_cv_lib_bsd_gethostbyname=no | |
28871 | fi | |
ac1cb8d3 VS |
28872 | rm -f conftest.err conftest.$ac_objext \ |
28873 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28874 | LIBS=$ac_check_lib_save_LIBS |
28875 | fi | |
28876 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
28877 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
28878 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
28879 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
28880 | fi | |
28881 | ||
28882 | fi | |
28883 | fi | |
28884 | ||
28885 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
28886 | # socket/setsockopt and other routines are undefined under SCO ODT | |
28887 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
28888 | # on later versions), says Simon Leinen: it contains gethostby* | |
28889 | # variants that don't use the name server (or something). -lsocket | |
28890 | # must be given before -lnsl if both are needed. We assume that | |
28891 | # if connect needs -lnsl, so does gethostbyname. | |
28892 | echo "$as_me:$LINENO: checking for connect" >&5 | |
28893 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
28894 | if test "${ac_cv_func_connect+set}" = set; then | |
28895 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28896 | else | |
28897 | cat >conftest.$ac_ext <<_ACEOF | |
28898 | /* confdefs.h. */ | |
28899 | _ACEOF | |
28900 | cat confdefs.h >>conftest.$ac_ext | |
28901 | cat >>conftest.$ac_ext <<_ACEOF | |
28902 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28903 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
28904 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28905 | #define connect innocuous_connect | |
28906 | ||
a848cd7e SC |
28907 | /* System header to define __stub macros and hopefully few prototypes, |
28908 | which can conflict with char connect (); below. | |
28909 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28910 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28911 | |
a848cd7e SC |
28912 | #ifdef __STDC__ |
28913 | # include <limits.h> | |
28914 | #else | |
28915 | # include <assert.h> | |
28916 | #endif | |
ac1cb8d3 VS |
28917 | |
28918 | #undef connect | |
28919 | ||
a848cd7e SC |
28920 | /* Override any gcc2 internal prototype to avoid an error. */ |
28921 | #ifdef __cplusplus | |
28922 | extern "C" | |
28923 | { | |
28924 | #endif | |
28925 | /* We use char because int might match the return type of a gcc2 | |
28926 | builtin and then its argument prototype would still apply. */ | |
28927 | char connect (); | |
28928 | /* The GNU C library defines this for functions which it implements | |
28929 | to always fail with ENOSYS. Some functions are actually named | |
28930 | something starting with __ and the normal name is an alias. */ | |
28931 | #if defined (__stub_connect) || defined (__stub___connect) | |
28932 | choke me | |
28933 | #else | |
28934 | char (*f) () = connect; | |
28935 | #endif | |
28936 | #ifdef __cplusplus | |
28937 | } | |
28938 | #endif | |
28939 | ||
28940 | int | |
28941 | main () | |
28942 | { | |
28943 | return f != connect; | |
28944 | ; | |
28945 | return 0; | |
28946 | } | |
28947 | _ACEOF | |
28948 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28949 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28950 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28951 | ac_status=$? |
ac1cb8d3 VS |
28952 | grep -v '^ *+' conftest.er1 >conftest.err |
28953 | rm -f conftest.er1 | |
28954 | cat conftest.err >&5 | |
a848cd7e SC |
28955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28956 | (exit $ac_status); } && | |
5d7b7554 | 28957 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
28958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28959 | (eval $ac_try) 2>&5 | |
28960 | ac_status=$? | |
28961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28962 | (exit $ac_status); }; } && | |
28963 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28965 | (eval $ac_try) 2>&5 | |
28966 | ac_status=$? | |
28967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28968 | (exit $ac_status); }; }; then | |
28969 | ac_cv_func_connect=yes | |
28970 | else | |
28971 | echo "$as_me: failed program was:" >&5 | |
28972 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28973 | ||
28974 | ac_cv_func_connect=no | |
28975 | fi | |
ac1cb8d3 VS |
28976 | rm -f conftest.err conftest.$ac_objext \ |
28977 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28978 | fi |
28979 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
28980 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
28981 | ||
28982 | if test $ac_cv_func_connect = no; then | |
28983 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
28984 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
28985 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
28986 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28987 | else | |
28988 | ac_check_lib_save_LIBS=$LIBS | |
28989 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
28990 | cat >conftest.$ac_ext <<_ACEOF | |
28991 | /* confdefs.h. */ | |
28992 | _ACEOF | |
28993 | cat confdefs.h >>conftest.$ac_ext | |
28994 | cat >>conftest.$ac_ext <<_ACEOF | |
28995 | /* end confdefs.h. */ | |
28996 | ||
28997 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28998 | #ifdef __cplusplus | |
28999 | extern "C" | |
29000 | #endif | |
29001 | /* We use char because int might match the return type of a gcc2 | |
29002 | builtin and then its argument prototype would still apply. */ | |
29003 | char connect (); | |
29004 | int | |
29005 | main () | |
29006 | { | |
29007 | connect (); | |
29008 | ; | |
29009 | return 0; | |
29010 | } | |
29011 | _ACEOF | |
29012 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29013 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29014 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29015 | ac_status=$? |
ac1cb8d3 VS |
29016 | grep -v '^ *+' conftest.er1 >conftest.err |
29017 | rm -f conftest.er1 | |
29018 | cat conftest.err >&5 | |
a848cd7e SC |
29019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29020 | (exit $ac_status); } && | |
5d7b7554 | 29021 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29023 | (eval $ac_try) 2>&5 | |
29024 | ac_status=$? | |
29025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29026 | (exit $ac_status); }; } && | |
29027 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29029 | (eval $ac_try) 2>&5 | |
29030 | ac_status=$? | |
29031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29032 | (exit $ac_status); }; }; then | |
29033 | ac_cv_lib_socket_connect=yes | |
29034 | else | |
29035 | echo "$as_me: failed program was:" >&5 | |
29036 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29037 | ||
29038 | ac_cv_lib_socket_connect=no | |
29039 | fi | |
ac1cb8d3 VS |
29040 | rm -f conftest.err conftest.$ac_objext \ |
29041 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29042 | LIBS=$ac_check_lib_save_LIBS |
29043 | fi | |
29044 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
29045 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
29046 | if test $ac_cv_lib_socket_connect = yes; then | |
29047 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
29048 | fi | |
29049 | ||
29050 | fi | |
29051 | ||
29052 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
29053 | echo "$as_me:$LINENO: checking for remove" >&5 | |
29054 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
29055 | if test "${ac_cv_func_remove+set}" = set; then | |
29056 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29057 | else | |
29058 | cat >conftest.$ac_ext <<_ACEOF | |
29059 | /* confdefs.h. */ | |
29060 | _ACEOF | |
29061 | cat confdefs.h >>conftest.$ac_ext | |
29062 | cat >>conftest.$ac_ext <<_ACEOF | |
29063 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29064 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
29065 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29066 | #define remove innocuous_remove | |
29067 | ||
a848cd7e SC |
29068 | /* System header to define __stub macros and hopefully few prototypes, |
29069 | which can conflict with char remove (); below. | |
29070 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29071 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29072 | |
a848cd7e SC |
29073 | #ifdef __STDC__ |
29074 | # include <limits.h> | |
29075 | #else | |
29076 | # include <assert.h> | |
29077 | #endif | |
ac1cb8d3 VS |
29078 | |
29079 | #undef remove | |
29080 | ||
a848cd7e SC |
29081 | /* Override any gcc2 internal prototype to avoid an error. */ |
29082 | #ifdef __cplusplus | |
29083 | extern "C" | |
29084 | { | |
29085 | #endif | |
29086 | /* We use char because int might match the return type of a gcc2 | |
29087 | builtin and then its argument prototype would still apply. */ | |
29088 | char remove (); | |
29089 | /* The GNU C library defines this for functions which it implements | |
29090 | to always fail with ENOSYS. Some functions are actually named | |
29091 | something starting with __ and the normal name is an alias. */ | |
29092 | #if defined (__stub_remove) || defined (__stub___remove) | |
29093 | choke me | |
29094 | #else | |
29095 | char (*f) () = remove; | |
29096 | #endif | |
29097 | #ifdef __cplusplus | |
29098 | } | |
29099 | #endif | |
29100 | ||
29101 | int | |
29102 | main () | |
29103 | { | |
29104 | return f != remove; | |
29105 | ; | |
29106 | return 0; | |
29107 | } | |
29108 | _ACEOF | |
29109 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29110 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29111 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29112 | ac_status=$? |
ac1cb8d3 VS |
29113 | grep -v '^ *+' conftest.er1 >conftest.err |
29114 | rm -f conftest.er1 | |
29115 | cat conftest.err >&5 | |
a848cd7e SC |
29116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29117 | (exit $ac_status); } && | |
5d7b7554 | 29118 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29120 | (eval $ac_try) 2>&5 | |
29121 | ac_status=$? | |
29122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29123 | (exit $ac_status); }; } && | |
29124 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29126 | (eval $ac_try) 2>&5 | |
29127 | ac_status=$? | |
29128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29129 | (exit $ac_status); }; }; then | |
29130 | ac_cv_func_remove=yes | |
29131 | else | |
29132 | echo "$as_me: failed program was:" >&5 | |
29133 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29134 | ||
29135 | ac_cv_func_remove=no | |
29136 | fi | |
ac1cb8d3 VS |
29137 | rm -f conftest.err conftest.$ac_objext \ |
29138 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29139 | fi |
29140 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
29141 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
29142 | ||
29143 | if test $ac_cv_func_remove = no; then | |
29144 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
29145 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
29146 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
29147 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29148 | else | |
29149 | ac_check_lib_save_LIBS=$LIBS | |
29150 | LIBS="-lposix $LIBS" | |
29151 | cat >conftest.$ac_ext <<_ACEOF | |
29152 | /* confdefs.h. */ | |
29153 | _ACEOF | |
29154 | cat confdefs.h >>conftest.$ac_ext | |
29155 | cat >>conftest.$ac_ext <<_ACEOF | |
29156 | /* end confdefs.h. */ | |
29157 | ||
29158 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29159 | #ifdef __cplusplus | |
29160 | extern "C" | |
29161 | #endif | |
29162 | /* We use char because int might match the return type of a gcc2 | |
29163 | builtin and then its argument prototype would still apply. */ | |
29164 | char remove (); | |
29165 | int | |
29166 | main () | |
29167 | { | |
29168 | remove (); | |
29169 | ; | |
29170 | return 0; | |
29171 | } | |
29172 | _ACEOF | |
29173 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29174 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29175 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29176 | ac_status=$? |
ac1cb8d3 VS |
29177 | grep -v '^ *+' conftest.er1 >conftest.err |
29178 | rm -f conftest.er1 | |
29179 | cat conftest.err >&5 | |
a848cd7e SC |
29180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29181 | (exit $ac_status); } && | |
5d7b7554 | 29182 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29184 | (eval $ac_try) 2>&5 | |
29185 | ac_status=$? | |
29186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29187 | (exit $ac_status); }; } && | |
29188 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29190 | (eval $ac_try) 2>&5 | |
29191 | ac_status=$? | |
29192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29193 | (exit $ac_status); }; }; then | |
29194 | ac_cv_lib_posix_remove=yes | |
29195 | else | |
29196 | echo "$as_me: failed program was:" >&5 | |
29197 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29198 | ||
29199 | ac_cv_lib_posix_remove=no | |
29200 | fi | |
ac1cb8d3 VS |
29201 | rm -f conftest.err conftest.$ac_objext \ |
29202 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29203 | LIBS=$ac_check_lib_save_LIBS |
29204 | fi | |
29205 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
29206 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
29207 | if test $ac_cv_lib_posix_remove = yes; then | |
29208 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
29209 | fi | |
29210 | ||
29211 | fi | |
29212 | ||
29213 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
29214 | echo "$as_me:$LINENO: checking for shmat" >&5 | |
29215 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
29216 | if test "${ac_cv_func_shmat+set}" = set; then | |
29217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29218 | else | |
29219 | cat >conftest.$ac_ext <<_ACEOF | |
29220 | /* confdefs.h. */ | |
29221 | _ACEOF | |
29222 | cat confdefs.h >>conftest.$ac_ext | |
29223 | cat >>conftest.$ac_ext <<_ACEOF | |
29224 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29225 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
29226 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29227 | #define shmat innocuous_shmat | |
29228 | ||
a848cd7e SC |
29229 | /* System header to define __stub macros and hopefully few prototypes, |
29230 | which can conflict with char shmat (); below. | |
29231 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29232 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29233 | |
a848cd7e SC |
29234 | #ifdef __STDC__ |
29235 | # include <limits.h> | |
29236 | #else | |
29237 | # include <assert.h> | |
29238 | #endif | |
ac1cb8d3 VS |
29239 | |
29240 | #undef shmat | |
29241 | ||
a848cd7e SC |
29242 | /* Override any gcc2 internal prototype to avoid an error. */ |
29243 | #ifdef __cplusplus | |
29244 | extern "C" | |
29245 | { | |
29246 | #endif | |
29247 | /* We use char because int might match the return type of a gcc2 | |
29248 | builtin and then its argument prototype would still apply. */ | |
29249 | char shmat (); | |
29250 | /* The GNU C library defines this for functions which it implements | |
29251 | to always fail with ENOSYS. Some functions are actually named | |
29252 | something starting with __ and the normal name is an alias. */ | |
29253 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
29254 | choke me | |
29255 | #else | |
29256 | char (*f) () = shmat; | |
29257 | #endif | |
29258 | #ifdef __cplusplus | |
29259 | } | |
29260 | #endif | |
29261 | ||
29262 | int | |
29263 | main () | |
29264 | { | |
29265 | return f != shmat; | |
29266 | ; | |
29267 | return 0; | |
29268 | } | |
29269 | _ACEOF | |
29270 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29271 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29272 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29273 | ac_status=$? |
ac1cb8d3 VS |
29274 | grep -v '^ *+' conftest.er1 >conftest.err |
29275 | rm -f conftest.er1 | |
29276 | cat conftest.err >&5 | |
a848cd7e SC |
29277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29278 | (exit $ac_status); } && | |
5d7b7554 | 29279 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29281 | (eval $ac_try) 2>&5 | |
29282 | ac_status=$? | |
29283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29284 | (exit $ac_status); }; } && | |
29285 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29287 | (eval $ac_try) 2>&5 | |
29288 | ac_status=$? | |
29289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29290 | (exit $ac_status); }; }; then | |
29291 | ac_cv_func_shmat=yes | |
29292 | else | |
29293 | echo "$as_me: failed program was:" >&5 | |
29294 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29295 | ||
29296 | ac_cv_func_shmat=no | |
29297 | fi | |
ac1cb8d3 VS |
29298 | rm -f conftest.err conftest.$ac_objext \ |
29299 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29300 | fi |
29301 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
29302 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
29303 | ||
29304 | if test $ac_cv_func_shmat = no; then | |
29305 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
29306 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
29307 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
29308 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29309 | else | |
29310 | ac_check_lib_save_LIBS=$LIBS | |
29311 | LIBS="-lipc $LIBS" | |
29312 | cat >conftest.$ac_ext <<_ACEOF | |
29313 | /* confdefs.h. */ | |
29314 | _ACEOF | |
29315 | cat confdefs.h >>conftest.$ac_ext | |
29316 | cat >>conftest.$ac_ext <<_ACEOF | |
29317 | /* end confdefs.h. */ | |
29318 | ||
29319 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29320 | #ifdef __cplusplus | |
29321 | extern "C" | |
29322 | #endif | |
29323 | /* We use char because int might match the return type of a gcc2 | |
29324 | builtin and then its argument prototype would still apply. */ | |
29325 | char shmat (); | |
29326 | int | |
29327 | main () | |
29328 | { | |
29329 | shmat (); | |
29330 | ; | |
29331 | return 0; | |
29332 | } | |
29333 | _ACEOF | |
29334 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29335 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29336 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29337 | ac_status=$? |
ac1cb8d3 VS |
29338 | grep -v '^ *+' conftest.er1 >conftest.err |
29339 | rm -f conftest.er1 | |
29340 | cat conftest.err >&5 | |
a848cd7e SC |
29341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29342 | (exit $ac_status); } && | |
5d7b7554 | 29343 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29345 | (eval $ac_try) 2>&5 | |
29346 | ac_status=$? | |
29347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29348 | (exit $ac_status); }; } && | |
29349 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29351 | (eval $ac_try) 2>&5 | |
29352 | ac_status=$? | |
29353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29354 | (exit $ac_status); }; }; then | |
29355 | ac_cv_lib_ipc_shmat=yes | |
29356 | else | |
29357 | echo "$as_me: failed program was:" >&5 | |
29358 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29359 | ||
29360 | ac_cv_lib_ipc_shmat=no | |
29361 | fi | |
ac1cb8d3 VS |
29362 | rm -f conftest.err conftest.$ac_objext \ |
29363 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29364 | LIBS=$ac_check_lib_save_LIBS |
29365 | fi | |
29366 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
29367 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
29368 | if test $ac_cv_lib_ipc_shmat = yes; then | |
29369 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
29370 | fi | |
29371 | ||
29372 | fi | |
29373 | fi | |
29374 | ||
29375 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
29376 | ac_save_LDFLAGS=$LDFLAGS | |
29377 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
29378 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
29379 | # check for ICE first), but we must link in the order -lSM -lICE or | |
29380 | # we get undefined symbols. So assume we have SM if we have ICE. | |
29381 | # These have to be linked with before -lX11, unlike the other | |
29382 | # libraries we check for below, so use a different variable. | |
29383 | # John Interrante, Karl Berry | |
29384 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
29385 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
29386 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
29387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29388 | else | |
29389 | ac_check_lib_save_LIBS=$LIBS | |
29390 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
29391 | cat >conftest.$ac_ext <<_ACEOF | |
29392 | /* confdefs.h. */ | |
29393 | _ACEOF | |
29394 | cat confdefs.h >>conftest.$ac_ext | |
29395 | cat >>conftest.$ac_ext <<_ACEOF | |
29396 | /* end confdefs.h. */ | |
29397 | ||
29398 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29399 | #ifdef __cplusplus | |
29400 | extern "C" | |
29401 | #endif | |
29402 | /* We use char because int might match the return type of a gcc2 | |
29403 | builtin and then its argument prototype would still apply. */ | |
29404 | char IceConnectionNumber (); | |
29405 | int | |
29406 | main () | |
29407 | { | |
29408 | IceConnectionNumber (); | |
29409 | ; | |
29410 | return 0; | |
29411 | } | |
29412 | _ACEOF | |
29413 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29414 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29415 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29416 | ac_status=$? |
ac1cb8d3 VS |
29417 | grep -v '^ *+' conftest.er1 >conftest.err |
29418 | rm -f conftest.er1 | |
29419 | cat conftest.err >&5 | |
a848cd7e SC |
29420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29421 | (exit $ac_status); } && | |
5d7b7554 | 29422 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29424 | (eval $ac_try) 2>&5 | |
29425 | ac_status=$? | |
29426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29427 | (exit $ac_status); }; } && | |
29428 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29430 | (eval $ac_try) 2>&5 | |
29431 | ac_status=$? | |
29432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29433 | (exit $ac_status); }; }; then | |
29434 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
29435 | else | |
29436 | echo "$as_me: failed program was:" >&5 | |
29437 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29438 | ||
29439 | ac_cv_lib_ICE_IceConnectionNumber=no | |
29440 | fi | |
ac1cb8d3 VS |
29441 | rm -f conftest.err conftest.$ac_objext \ |
29442 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29443 | LIBS=$ac_check_lib_save_LIBS |
29444 | fi | |
29445 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
29446 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
29447 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
29448 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
29449 | fi | |
29450 | ||
29451 | LDFLAGS=$ac_save_LDFLAGS | |
29452 | ||
29453 | fi | |
29454 | ||
29455 | ||
29456 | if test "$no_x" = "yes"; then | |
89d90d6d VZ |
29457 | { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5 |
29458 | echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;} | |
29459 | { (exit 1); exit 1; }; } | |
a848cd7e SC |
29460 | fi |
29461 | ||
74b84332 VS |
29462 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'` |
29463 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
a848cd7e SC |
29464 | AFMINSTALL=afminstall |
29465 | COMPILED_X_PROGRAM=0 | |
29466 | ||
74b84332 VS |
29467 | fi |
29468 | ||
29469 | if test "$wxUSE_X11" = 1; then | |
a848cd7e SC |
29470 | if test "$wxUSE_NANOX" = "yes"; then |
29471 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 | |
29472 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
29473 | if test "x$MICROWIN" = x ; then | |
29474 | echo "$as_me:$LINENO: result: not found" >&5 | |
29475 | echo "${ECHO_T}not found" >&6 | |
29476 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
29477 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
29478 | { (exit 1); exit 1; }; } | |
29479 | else | |
29480 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 | |
29481 | echo "${ECHO_T}$MICROWIN" >&6 | |
29482 | cat >>confdefs.h <<\_ACEOF | |
29483 | #define wxUSE_NANOX 1 | |
29484 | _ACEOF | |
29485 | ||
29486 | fi | |
29487 | fi | |
29488 | ||
29489 | if test "$wxUSE_UNICODE" = "yes"; then | |
29490 | ||
29491 | succeeded=no | |
29492 | ||
29493 | if test -z "$PKG_CONFIG"; then | |
29494 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
29495 | set dummy pkg-config; ac_word=$2 | |
29496 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
29497 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
29498 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
29499 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29500 | else | |
29501 | case $PKG_CONFIG in | |
29502 | [\\/]* | ?:[\\/]*) | |
29503 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
29504 | ;; | |
29505 | *) | |
29506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29507 | for as_dir in $PATH | |
29508 | do | |
29509 | IFS=$as_save_IFS | |
29510 | test -z "$as_dir" && as_dir=. | |
29511 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29512 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
29513 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
29514 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
29515 | break 2 | |
29516 | fi | |
29517 | done | |
29518 | done | |
29519 | ||
29520 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
29521 | ;; | |
29522 | esac | |
29523 | fi | |
29524 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
29525 | ||
29526 | if test -n "$PKG_CONFIG"; then | |
29527 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
29528 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
29529 | else | |
29530 | echo "$as_me:$LINENO: result: no" >&5 | |
29531 | echo "${ECHO_T}no" >&6 | |
29532 | fi | |
29533 | ||
29534 | fi | |
29535 | ||
29536 | if test "$PKG_CONFIG" = "no" ; then | |
29537 | echo "*** The pkg-config script could not be found. Make sure it is" | |
29538 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
29539 | echo "*** to the full path to pkg-config." | |
29540 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
29541 | else | |
29542 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
29543 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
29544 | echo "$as_me:$LINENO: checking for pangox" >&5 | |
29545 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
29546 | ||
29547 | if $PKG_CONFIG --exists "pangox" ; then | |
29548 | echo "$as_me:$LINENO: result: yes" >&5 | |
29549 | echo "${ECHO_T}yes" >&6 | |
29550 | succeeded=yes | |
29551 | ||
29552 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 | |
29553 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
29554 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` | |
29555 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 | |
29556 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
29557 | ||
29558 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 | |
29559 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
29560 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` | |
29561 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 | |
29562 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
29563 | else | |
29564 | PANGOX_CFLAGS="" | |
29565 | PANGOX_LIBS="" | |
29566 | ## If we have a custom action on failure, don't print errors, but | |
29567 | ## do set a variable so people can do so. | |
29568 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
29569 | ||
29570 | fi | |
29571 | ||
29572 | ||
29573 | ||
29574 | else | |
29575 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
29576 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
29577 | fi | |
29578 | fi | |
29579 | ||
29580 | if test $succeeded = yes; then | |
29581 | ||
c92ad099 | 29582 | CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS" |
a848cd7e SC |
29583 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" |
29584 | ||
29585 | else | |
29586 | ||
29587 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
29588 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
29589 | { (exit 1); exit 1; }; } | |
29590 | ||
29591 | ||
29592 | fi | |
29593 | ||
29594 | ||
29595 | succeeded=no | |
29596 | ||
29597 | if test -z "$PKG_CONFIG"; then | |
29598 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
29599 | set dummy pkg-config; ac_word=$2 | |
29600 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
29601 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
29602 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
29603 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29604 | else | |
29605 | case $PKG_CONFIG in | |
29606 | [\\/]* | ?:[\\/]*) | |
29607 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
29608 | ;; | |
29609 | *) | |
29610 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29611 | for as_dir in $PATH | |
29612 | do | |
29613 | IFS=$as_save_IFS | |
29614 | test -z "$as_dir" && as_dir=. | |
29615 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29616 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
29617 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
29618 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
29619 | break 2 | |
29620 | fi | |
29621 | done | |
29622 | done | |
29623 | ||
29624 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
29625 | ;; | |
29626 | esac | |
29627 | fi | |
29628 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
29629 | ||
29630 | if test -n "$PKG_CONFIG"; then | |
29631 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
29632 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
29633 | else | |
29634 | echo "$as_me:$LINENO: result: no" >&5 | |
29635 | echo "${ECHO_T}no" >&6 | |
29636 | fi | |
29637 | ||
29638 | fi | |
29639 | ||
29640 | if test "$PKG_CONFIG" = "no" ; then | |
29641 | echo "*** The pkg-config script could not be found. Make sure it is" | |
29642 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
29643 | echo "*** to the full path to pkg-config." | |
29644 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
29645 | else | |
29646 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
29647 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
29648 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
29649 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
29650 | ||
29651 | if $PKG_CONFIG --exists "pangoft2" ; then | |
29652 | echo "$as_me:$LINENO: result: yes" >&5 | |
29653 | echo "${ECHO_T}yes" >&6 | |
29654 | succeeded=yes | |
29655 | ||
29656 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
29657 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
29658 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
29659 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
29660 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
29661 | ||
29662 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
29663 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
29664 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
29665 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
29666 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
29667 | else | |
29668 | PANGOFT2_CFLAGS="" | |
29669 | PANGOFT2_LIBS="" | |
29670 | ## If we have a custom action on failure, don't print errors, but | |
29671 | ## do set a variable so people can do so. | |
29672 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
29673 | ||
29674 | fi | |
29675 | ||
29676 | ||
29677 | ||
29678 | else | |
29679 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
29680 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
29681 | fi | |
29682 | fi | |
29683 | ||
29684 | if test $succeeded = yes; then | |
29685 | ||
c92ad099 | 29686 | CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS" |
a848cd7e SC |
29687 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" |
29688 | ||
29689 | else | |
29690 | ||
29691 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
29692 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
29693 | wxUSE_PRINTING_ARCHITECTURE="no" | |
29694 | ||
29695 | ||
29696 | fi | |
29697 | ||
29698 | ||
29699 | succeeded=no | |
29700 | ||
29701 | if test -z "$PKG_CONFIG"; then | |
29702 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
29703 | set dummy pkg-config; ac_word=$2 | |
29704 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
29705 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
29706 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
29707 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29708 | else | |
29709 | case $PKG_CONFIG in | |
29710 | [\\/]* | ?:[\\/]*) | |
29711 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
29712 | ;; | |
29713 | *) | |
29714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29715 | for as_dir in $PATH | |
29716 | do | |
29717 | IFS=$as_save_IFS | |
29718 | test -z "$as_dir" && as_dir=. | |
29719 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29720 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
29721 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
29722 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
29723 | break 2 | |
29724 | fi | |
29725 | done | |
29726 | done | |
29727 | ||
29728 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
29729 | ;; | |
29730 | esac | |
29731 | fi | |
29732 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
29733 | ||
29734 | if test -n "$PKG_CONFIG"; then | |
29735 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
29736 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
29737 | else | |
29738 | echo "$as_me:$LINENO: result: no" >&5 | |
29739 | echo "${ECHO_T}no" >&6 | |
29740 | fi | |
29741 | ||
29742 | fi | |
29743 | ||
29744 | if test "$PKG_CONFIG" = "no" ; then | |
29745 | echo "*** The pkg-config script could not be found. Make sure it is" | |
29746 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
29747 | echo "*** to the full path to pkg-config." | |
29748 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
29749 | else | |
29750 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
29751 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
29752 | echo "$as_me:$LINENO: checking for pangoxft" >&5 | |
29753 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
29754 | ||
29755 | if $PKG_CONFIG --exists "pangoxft" ; then | |
29756 | echo "$as_me:$LINENO: result: yes" >&5 | |
29757 | echo "${ECHO_T}yes" >&6 | |
29758 | succeeded=yes | |
29759 | ||
29760 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 | |
29761 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
29762 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` | |
29763 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 | |
29764 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
29765 | ||
29766 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 | |
29767 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
29768 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` | |
29769 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 | |
29770 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
29771 | else | |
29772 | PANGOXFT_CFLAGS="" | |
29773 | PANGOXFT_LIBS="" | |
29774 | ## If we have a custom action on failure, don't print errors, but | |
29775 | ## do set a variable so people can do so. | |
29776 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
29777 | ||
29778 | fi | |
29779 | ||
29780 | ||
29781 | ||
29782 | else | |
29783 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
29784 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
29785 | fi | |
29786 | fi | |
29787 | ||
29788 | if test $succeeded = yes; then | |
29789 | ||
4ae1af05 MB |
29790 | cat >>confdefs.h <<\_ACEOF |
29791 | #define HAVE_PANGO_XFT 1 | |
29792 | _ACEOF | |
29793 | ||
c92ad099 | 29794 | CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS" |
a848cd7e SC |
29795 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" |
29796 | ||
29797 | else | |
29798 | ||
29799 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
29800 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
29801 | ||
29802 | ||
29803 | fi | |
29804 | ||
e56f4f9e | 29805 | save_CXXFLAGS="$CXXFLAGS" |
304205f1 | 29806 | save_LIBS="$LIBS" |
e56f4f9e | 29807 | CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS" |
304205f1 VS |
29808 | LIBS="$LIBS $PANGOX_LIBS" |
29809 | ||
29810 | for ac_func in pango_font_family_is_monospace | |
29811 | do | |
29812 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29813 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29814 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29815 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29816 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29817 | else | |
29818 | cat >conftest.$ac_ext <<_ACEOF | |
29819 | /* confdefs.h. */ | |
29820 | _ACEOF | |
29821 | cat confdefs.h >>conftest.$ac_ext | |
29822 | cat >>conftest.$ac_ext <<_ACEOF | |
29823 | /* end confdefs.h. */ | |
29824 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
29825 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29826 | #define $ac_func innocuous_$ac_func | |
29827 | ||
29828 | /* System header to define __stub macros and hopefully few prototypes, | |
29829 | which can conflict with char $ac_func (); below. | |
29830 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29831 | <limits.h> exists even on freestanding compilers. */ | |
29832 | ||
29833 | #ifdef __STDC__ | |
29834 | # include <limits.h> | |
29835 | #else | |
29836 | # include <assert.h> | |
29837 | #endif | |
29838 | ||
29839 | #undef $ac_func | |
29840 | ||
29841 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29842 | #ifdef __cplusplus | |
29843 | extern "C" | |
29844 | { | |
29845 | #endif | |
29846 | /* We use char because int might match the return type of a gcc2 | |
29847 | builtin and then its argument prototype would still apply. */ | |
29848 | char $ac_func (); | |
29849 | /* The GNU C library defines this for functions which it implements | |
29850 | to always fail with ENOSYS. Some functions are actually named | |
29851 | something starting with __ and the normal name is an alias. */ | |
29852 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29853 | choke me | |
29854 | #else | |
29855 | char (*f) () = $ac_func; | |
29856 | #endif | |
29857 | #ifdef __cplusplus | |
29858 | } | |
29859 | #endif | |
29860 | ||
29861 | int | |
29862 | main () | |
29863 | { | |
29864 | return f != $ac_func; | |
29865 | ; | |
29866 | return 0; | |
29867 | } | |
29868 | _ACEOF | |
29869 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29870 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29871 | (eval $ac_link) 2>conftest.er1 | |
29872 | ac_status=$? | |
29873 | grep -v '^ *+' conftest.er1 >conftest.err | |
29874 | rm -f conftest.er1 | |
29875 | cat conftest.err >&5 | |
29876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29877 | (exit $ac_status); } && | |
5d7b7554 | 29878 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
304205f1 VS |
29879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29880 | (eval $ac_try) 2>&5 | |
29881 | ac_status=$? | |
29882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29883 | (exit $ac_status); }; } && | |
29884 | { ac_try='test -s conftest$ac_exeext' | |
29885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29886 | (eval $ac_try) 2>&5 | |
29887 | ac_status=$? | |
29888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29889 | (exit $ac_status); }; }; then | |
29890 | eval "$as_ac_var=yes" | |
29891 | else | |
29892 | echo "$as_me: failed program was:" >&5 | |
29893 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29894 | ||
29895 | eval "$as_ac_var=no" | |
29896 | fi | |
29897 | rm -f conftest.err conftest.$ac_objext \ | |
29898 | conftest$ac_exeext conftest.$ac_ext | |
29899 | fi | |
29900 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29901 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29902 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29903 | cat >>confdefs.h <<_ACEOF | |
29904 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29905 | _ACEOF | |
29906 | ||
29907 | fi | |
29908 | done | |
29909 | ||
e56f4f9e | 29910 | CXXFLAGS="$save_CXXFLAGS" |
304205f1 | 29911 | LIBS="$save_LIBS" |
a848cd7e SC |
29912 | fi |
29913 | ||
29914 | wxUSE_UNIVERSAL="yes" | |
29915 | ||
29916 | if test "$wxUSE_NANOX" = "yes"; then | |
29917 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
29918 | 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" | |
29919 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
29920 | else | |
29921 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" | |
29922 | fi | |
29923 | ||
a848cd7e SC |
29924 | TOOLKIT=X11 |
29925 | GUIDIST=X11_DIST | |
29926 | fi | |
29927 | ||
29928 | if test "$wxUSE_MOTIF" = 1; then | |
0a08f02a MB |
29929 | if test "$wxUSE_UNICODE" = "yes"; then |
29930 | { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5 | |
29931 | echo "$as_me: error: Unicode configuration not supported with Motif" >&2;} | |
29932 | { (exit 1); exit 1; }; } | |
29933 | fi | |
29934 | ||
74b84332 VS |
29935 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
29936 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
a848cd7e | 29937 | |
74b84332 VS |
29938 | ac_find_includes= |
29939 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
29940 | do | |
29941 | if test -f "$ac_dir/Xm/Xm.h"; then | |
29942 | ac_find_includes=$ac_dir | |
29943 | break | |
29944 | fi | |
29945 | done | |
a848cd7e | 29946 | |
74b84332 VS |
29947 | if test "$ac_find_includes" != "" ; then |
29948 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
29949 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
29950 | ||
29951 | if test "x$ac_find_includes" = "x/usr/include"; then | |
29952 | ac_path_to_include="" | |
29953 | else | |
29954 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
29955 | result=$? | |
29956 | if test $result = 0; then | |
29957 | ac_path_to_include="" | |
29958 | else | |
29959 | ac_path_to_include=" -I$ac_find_includes" | |
29960 | fi | |
a848cd7e SC |
29961 | fi |
29962 | ||
74b84332 VS |
29963 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" |
29964 | else | |
e56f4f9e VZ |
29965 | save_CXXFLAGS=$CXXFLAGS |
29966 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
e051b34e | 29967 | |
74b84332 | 29968 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
29969 | /* confdefs.h. */ |
29970 | _ACEOF | |
29971 | cat confdefs.h >>conftest.$ac_ext | |
29972 | cat >>conftest.$ac_ext <<_ACEOF | |
29973 | /* end confdefs.h. */ | |
29974 | ||
74b84332 VS |
29975 | #include <Xm/Xm.h> |
29976 | ||
a848cd7e SC |
29977 | int |
29978 | main () | |
29979 | { | |
29980 | ||
74b84332 VS |
29981 | int version; |
29982 | version = xmUseVersion; | |
29983 | ||
a848cd7e SC |
29984 | ; |
29985 | return 0; | |
29986 | } | |
29987 | _ACEOF | |
74b84332 VS |
29988 | rm -f conftest.$ac_objext |
29989 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29990 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 29991 | ac_status=$? |
ac1cb8d3 VS |
29992 | grep -v '^ *+' conftest.er1 >conftest.err |
29993 | rm -f conftest.er1 | |
29994 | cat conftest.err >&5 | |
a848cd7e SC |
29995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29996 | (exit $ac_status); } && | |
5d7b7554 | 29997 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
29998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29999 | (eval $ac_try) 2>&5 | |
30000 | ac_status=$? | |
30001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30002 | (exit $ac_status); }; } && | |
74b84332 | 30003 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
30004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30005 | (eval $ac_try) 2>&5 | |
30006 | ac_status=$? | |
30007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30008 | (exit $ac_status); }; }; then | |
74b84332 VS |
30009 | |
30010 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
30011 | echo "${ECHO_T}found in default search path" >&6 | |
30012 | COMPILED_X_PROGRAM=1 | |
30013 | ||
a848cd7e SC |
30014 | else |
30015 | echo "$as_me: failed program was:" >&5 | |
30016 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30017 | ||
a848cd7e | 30018 | |
74b84332 VS |
30019 | echo "$as_me:$LINENO: result: no" >&5 |
30020 | echo "${ECHO_T}no" >&6 | |
e051b34e MW |
30021 | { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5 |
30022 | echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;} | |
74b84332 | 30023 | { (exit 1); exit 1; }; } |
a848cd7e | 30024 | |
a848cd7e | 30025 | |
a848cd7e | 30026 | fi |
74b84332 | 30027 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e051b34e | 30028 | |
e56f4f9e | 30029 | CXXFLAGS=$save_CXXFLAGS |
74b84332 VS |
30030 | fi |
30031 | ||
0ad5d837 VZ |
30032 | |
30033 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 | |
74b84332 VS |
30034 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 |
30035 | ||
0ad5d837 VZ |
30036 | ac_find_libraries= |
30037 | for ac_dir in $SEARCH_LIB; | |
74b84332 | 30038 | do |
3eca31dc | 30039 | for ac_extension in a so sl dylib dll.a; do |
74b84332 VS |
30040 | if test -f "$ac_dir/libXm.$ac_extension"; then |
30041 | ac_find_libraries=$ac_dir | |
30042 | break 2 | |
a848cd7e | 30043 | fi |
74b84332 VS |
30044 | done |
30045 | done | |
a848cd7e | 30046 | |
0ad5d837 VZ |
30047 | |
30048 | if test "x$ac_find_libraries" != "x" ; then | |
30049 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 | |
30050 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e | 30051 | |
74b84332 | 30052 | |
0ad5d837 | 30053 | if test "$ac_find_libraries" = "default location"; then |
74b84332 | 30054 | ac_path_to_link="" |
a848cd7e | 30055 | else |
0ad5d837 VZ |
30056 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
30057 | result=$? | |
30058 | if test $result = 0; then | |
30059 | ac_path_to_link="" | |
30060 | else | |
30061 | ac_path_to_link=" -L$ac_find_libraries" | |
30062 | fi | |
74b84332 VS |
30063 | fi |
30064 | ||
0ad5d837 VZ |
30065 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
30066 | else | |
e56f4f9e VZ |
30067 | save_CXXFLAGS=$CXXFLAGS |
30068 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
6f9cf1e6 MW |
30069 | save_LIBS="$LIBS" |
30070 | LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11" | |
74b84332 | 30071 | |
0ad5d837 | 30072 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
30073 | /* confdefs.h. */ |
30074 | _ACEOF | |
30075 | cat confdefs.h >>conftest.$ac_ext | |
30076 | cat >>conftest.$ac_ext <<_ACEOF | |
30077 | /* end confdefs.h. */ | |
30078 | ||
0ad5d837 | 30079 | #include <Xm/Xm.h> |
74b84332 | 30080 | |
a848cd7e SC |
30081 | int |
30082 | main () | |
30083 | { | |
74b84332 | 30084 | |
0ad5d837 VZ |
30085 | int version; |
30086 | version = xmUseVersion; | |
74b84332 | 30087 | |
a848cd7e SC |
30088 | ; |
30089 | return 0; | |
30090 | } | |
30091 | _ACEOF | |
0ad5d837 VZ |
30092 | rm -f conftest.$ac_objext conftest$ac_exeext |
30093 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30094 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 30095 | ac_status=$? |
ac1cb8d3 VS |
30096 | grep -v '^ *+' conftest.er1 >conftest.err |
30097 | rm -f conftest.er1 | |
30098 | cat conftest.err >&5 | |
a848cd7e SC |
30099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30100 | (exit $ac_status); } && | |
5d7b7554 | 30101 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30103 | (eval $ac_try) 2>&5 | |
30104 | ac_status=$? | |
30105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30106 | (exit $ac_status); }; } && | |
0ad5d837 | 30107 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
30108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30109 | (eval $ac_try) 2>&5 | |
30110 | ac_status=$? | |
30111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30112 | (exit $ac_status); }; }; then | |
74b84332 | 30113 | |
0ad5d837 | 30114 | echo "$as_me:$LINENO: result: found in default search path" >&5 |
74b84332 | 30115 | echo "${ECHO_T}found in default search path" >&6 |
0ad5d837 | 30116 | COMPILED_X_PROGRAM=1 |
74b84332 | 30117 | |
a848cd7e SC |
30118 | else |
30119 | echo "$as_me: failed program was:" >&5 | |
30120 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30121 | ||
74b84332 | 30122 | |
6f9cf1e6 | 30123 | echo "$as_me:$LINENO: result: no" >&5 |
74b84332 | 30124 | echo "${ECHO_T}no" >&6 |
6f9cf1e6 | 30125 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 |
74b84332 VS |
30126 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} |
30127 | { (exit 1); exit 1; }; } | |
30128 | ||
30129 | ||
30130 | fi | |
0ad5d837 VZ |
30131 | rm -f conftest.err conftest.$ac_objext \ |
30132 | conftest$ac_exeext conftest.$ac_ext | |
74b84332 | 30133 | |
e56f4f9e | 30134 | CXXFLAGS=$save_CXXFLAGS |
6f9cf1e6 | 30135 | LIBS="$save_LIBS" |
74b84332 VS |
30136 | fi |
30137 | ||
30138 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 | |
30139 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
30140 | libp_link="" | |
30141 | libsm_ice_link="" | |
30142 | libs_found=0 | |
30143 | for libp in "" " -lXp"; do | |
30144 | if test "$libs_found" = "0"; then | |
30145 | for libsm_ice in "" " -lSM -lICE"; do | |
30146 | if test "$libs_found" = "0"; then | |
30147 | save_LIBS="$LIBS" | |
30148 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
e56f4f9e VZ |
30149 | save_CXXFLAGS=$CXXFLAGS |
30150 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
74b84332 VS |
30151 | |
30152 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
30153 | /* confdefs.h. */ |
30154 | _ACEOF | |
30155 | cat confdefs.h >>conftest.$ac_ext | |
30156 | cat >>conftest.$ac_ext <<_ACEOF | |
30157 | /* end confdefs.h. */ | |
30158 | ||
74b84332 VS |
30159 | #include <Xm/Xm.h> |
30160 | #include <Xm/List.h> | |
30161 | ||
a848cd7e SC |
30162 | int |
30163 | main () | |
30164 | { | |
74b84332 VS |
30165 | |
30166 | XmString string = NULL; | |
30167 | Widget w = NULL; | |
30168 | int position = 0; | |
30169 | XmListAddItem(w, string, position); | |
30170 | ||
a848cd7e SC |
30171 | ; |
30172 | return 0; | |
30173 | } | |
30174 | _ACEOF | |
30175 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30176 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30177 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30178 | ac_status=$? |
ac1cb8d3 VS |
30179 | grep -v '^ *+' conftest.er1 >conftest.err |
30180 | rm -f conftest.er1 | |
30181 | cat conftest.err >&5 | |
a848cd7e SC |
30182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30183 | (exit $ac_status); } && | |
5d7b7554 | 30184 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30186 | (eval $ac_try) 2>&5 | |
30187 | ac_status=$? | |
30188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30189 | (exit $ac_status); }; } && | |
30190 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30192 | (eval $ac_try) 2>&5 | |
30193 | ac_status=$? | |
30194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30195 | (exit $ac_status); }; }; then | |
30196 | ||
30197 | libp_link="$libp" | |
30198 | libsm_ice_link="$libsm_ice" | |
30199 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 | |
30200 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
30201 | libs_found=1 | |
30202 | ||
30203 | else | |
30204 | echo "$as_me: failed program was:" >&5 | |
30205 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30206 | ||
30207 | ||
30208 | ||
30209 | fi | |
ac1cb8d3 VS |
30210 | rm -f conftest.err conftest.$ac_objext \ |
30211 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30212 | |
30213 | LIBS="$save_LIBS" | |
e56f4f9e | 30214 | CXXFLAGS=$save_CXXFLAGS |
a848cd7e SC |
30215 | fi |
30216 | done | |
30217 | fi | |
30218 | done | |
30219 | ||
30220 | if test "$libs_found" = "0"; then | |
30221 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 | |
30222 | echo "${ECHO_T}can't find the right libraries" >&6 | |
30223 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
30224 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
30225 | { (exit 1); exit 1; }; } | |
30226 | fi | |
30227 | ||
62fa8b3a MW |
30228 | echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5 |
30229 | echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6 | |
30230 | if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then | |
30231 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30232 | else | |
30233 | ac_check_lib_save_LIBS=$LIBS | |
30234 | LIBS="-lSgm $LIBS" | |
30235 | cat >conftest.$ac_ext <<_ACEOF | |
30236 | /* confdefs.h. */ | |
30237 | _ACEOF | |
30238 | cat confdefs.h >>conftest.$ac_ext | |
30239 | cat >>conftest.$ac_ext <<_ACEOF | |
30240 | /* end confdefs.h. */ | |
30241 | ||
30242 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30243 | #ifdef __cplusplus | |
30244 | extern "C" | |
30245 | #endif | |
30246 | /* We use char because int might match the return type of a gcc2 | |
30247 | builtin and then its argument prototype would still apply. */ | |
30248 | char SgCreateList (); | |
30249 | int | |
30250 | main () | |
30251 | { | |
30252 | SgCreateList (); | |
30253 | ; | |
30254 | return 0; | |
30255 | } | |
30256 | _ACEOF | |
30257 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30258 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30259 | (eval $ac_link) 2>conftest.er1 | |
30260 | ac_status=$? | |
30261 | grep -v '^ *+' conftest.er1 >conftest.err | |
30262 | rm -f conftest.er1 | |
30263 | cat conftest.err >&5 | |
30264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30265 | (exit $ac_status); } && | |
5d7b7554 | 30266 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
62fa8b3a MW |
30267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30268 | (eval $ac_try) 2>&5 | |
30269 | ac_status=$? | |
30270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30271 | (exit $ac_status); }; } && | |
30272 | { ac_try='test -s conftest$ac_exeext' | |
30273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30274 | (eval $ac_try) 2>&5 | |
30275 | ac_status=$? | |
30276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30277 | (exit $ac_status); }; }; then | |
30278 | ac_cv_lib_Sgm_SgCreateList=yes | |
30279 | else | |
30280 | echo "$as_me: failed program was:" >&5 | |
30281 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30282 | ||
30283 | ac_cv_lib_Sgm_SgCreateList=no | |
30284 | fi | |
30285 | rm -f conftest.err conftest.$ac_objext \ | |
30286 | conftest$ac_exeext conftest.$ac_ext | |
30287 | LIBS=$ac_check_lib_save_LIBS | |
30288 | fi | |
30289 | echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5 | |
30290 | echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6 | |
30291 | if test $ac_cv_lib_Sgm_SgCreateList = yes; then | |
30292 | libsgm_link=" -lSgm" | |
30293 | fi | |
30294 | ||
30295 | ||
e56f4f9e VZ |
30296 | save_CXXFLAGS=$CXXFLAGS |
30297 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
0ad5d837 | 30298 | |
a848cd7e SC |
30299 | echo "$as_me:$LINENO: checking for Motif 2" >&5 |
30300 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
0ad5d837 VZ |
30301 | if test "${wx_cv_lib_motif2+set}" = set; then |
30302 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30303 | else | |
30304 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
30305 | /* confdefs.h. */ |
30306 | _ACEOF | |
30307 | cat confdefs.h >>conftest.$ac_ext | |
30308 | cat >>conftest.$ac_ext <<_ACEOF | |
30309 | /* end confdefs.h. */ | |
30310 | ||
0ad5d837 | 30311 | #include <Xm/Xm.h> |
a848cd7e SC |
30312 | |
30313 | int | |
30314 | main () | |
30315 | { | |
30316 | ||
0ad5d837 VZ |
30317 | #if XmVersion < 2000 |
30318 | Not Motif 2 | |
30319 | #endif | |
a848cd7e SC |
30320 | |
30321 | ; | |
30322 | return 0; | |
30323 | } | |
30324 | _ACEOF | |
30325 | rm -f conftest.$ac_objext | |
30326 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30327 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30328 | ac_status=$? |
ac1cb8d3 VS |
30329 | grep -v '^ *+' conftest.er1 >conftest.err |
30330 | rm -f conftest.er1 | |
30331 | cat conftest.err >&5 | |
a848cd7e SC |
30332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30333 | (exit $ac_status); } && | |
5d7b7554 | 30334 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30336 | (eval $ac_try) 2>&5 | |
30337 | ac_status=$? | |
30338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30339 | (exit $ac_status); }; } && | |
30340 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30342 | (eval $ac_try) 2>&5 | |
30343 | ac_status=$? | |
30344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30345 | (exit $ac_status); }; }; then | |
0ad5d837 | 30346 | wx_cv_lib_motif2="yes" |
a848cd7e SC |
30347 | else |
30348 | echo "$as_me: failed program was:" >&5 | |
30349 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30350 | ||
0ad5d837 VZ |
30351 | wx_cv_lib_motif2="no" |
30352 | fi | |
30353 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30354 | fi | |
30355 | echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5 | |
30356 | echo "${ECHO_T}$wx_cv_lib_motif2" >&6 | |
30357 | if test "$wx_cv_lib_motif2" = "yes"; then | |
30358 | cat >>confdefs.h <<\_ACEOF | |
30359 | #define __WXMOTIF20__ 1 | |
30360 | _ACEOF | |
a848cd7e | 30361 | |
0ad5d837 VZ |
30362 | else |
30363 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
30364 | #define __WXMOTIF20__ 0 |
30365 | _ACEOF | |
30366 | ||
0ad5d837 | 30367 | fi |
2113bc77 MW |
30368 | |
30369 | echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5 | |
30370 | echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6 | |
0ad5d837 VZ |
30371 | if test "${wx_cv_lib_lesstif+set}" = set; then |
30372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30373 | else | |
30374 | cat >conftest.$ac_ext <<_ACEOF | |
2113bc77 MW |
30375 | /* confdefs.h. */ |
30376 | _ACEOF | |
30377 | cat confdefs.h >>conftest.$ac_ext | |
30378 | cat >>conftest.$ac_ext <<_ACEOF | |
30379 | /* end confdefs.h. */ | |
30380 | ||
0ad5d837 | 30381 | #include <Xm/Xm.h> |
2113bc77 MW |
30382 | |
30383 | int | |
30384 | main () | |
30385 | { | |
30386 | ||
0ad5d837 VZ |
30387 | #if !defined(LesstifVersion) || LesstifVersion <= 0 |
30388 | Not Lesstif | |
30389 | #endif | |
2113bc77 MW |
30390 | |
30391 | ; | |
30392 | return 0; | |
30393 | } | |
30394 | _ACEOF | |
30395 | rm -f conftest.$ac_objext | |
30396 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30397 | (eval $ac_compile) 2>conftest.er1 | |
30398 | ac_status=$? | |
30399 | grep -v '^ *+' conftest.er1 >conftest.err | |
30400 | rm -f conftest.er1 | |
30401 | cat conftest.err >&5 | |
30402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30403 | (exit $ac_status); } && | |
5d7b7554 | 30404 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
2113bc77 MW |
30405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30406 | (eval $ac_try) 2>&5 | |
30407 | ac_status=$? | |
30408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30409 | (exit $ac_status); }; } && | |
30410 | { ac_try='test -s conftest.$ac_objext' | |
30411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30412 | (eval $ac_try) 2>&5 | |
30413 | ac_status=$? | |
30414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30415 | (exit $ac_status); }; }; then | |
0ad5d837 | 30416 | wx_cv_lib_lesstif="yes" |
2113bc77 MW |
30417 | else |
30418 | echo "$as_me: failed program was:" >&5 | |
30419 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30420 | ||
0ad5d837 VZ |
30421 | wx_cv_lib_lesstif="no" |
30422 | fi | |
30423 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2113bc77 | 30424 | |
0ad5d837 VZ |
30425 | fi |
30426 | echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5 | |
30427 | echo "${ECHO_T}$wx_cv_lib_lesstif" >&6 | |
30428 | if test "$wx_cv_lib_lesstif" = "yes"; then | |
30429 | cat >>confdefs.h <<\_ACEOF | |
30430 | #define __WXLESSTIF__ 1 | |
30431 | _ACEOF | |
30432 | ||
30433 | else | |
30434 | cat >>confdefs.h <<\_ACEOF | |
2113bc77 MW |
30435 | #define __WXLESSTIF__ 0 |
30436 | _ACEOF | |
30437 | ||
0ad5d837 | 30438 | fi |
2113bc77 | 30439 | |
e56f4f9e | 30440 | CXXFLAGS=$save_CXXFLAGS |
a848cd7e | 30441 | |
62fa8b3a | 30442 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" |
a848cd7e SC |
30443 | TOOLKIT=MOTIF |
30444 | GUIDIST=MOTIF_DIST | |
30445 | fi | |
30446 | ||
74b84332 | 30447 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
a848cd7e SC |
30448 | if test "$wxUSE_LIBXPM" = "sys"; then |
30449 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
30450 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
30451 | ||
0ad5d837 VZ |
30452 | ac_find_libraries= |
30453 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 30454 | do |
3eca31dc | 30455 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
30456 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
30457 | ac_find_libraries=$ac_dir | |
30458 | break 2 | |
30459 | fi | |
30460 | done | |
30461 | done | |
30462 | ||
30463 | if test "$ac_find_libraries" != "" ; then | |
30464 | ||
0ad5d837 | 30465 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
30466 | ac_path_to_link="" |
30467 | else | |
0ad5d837 VZ |
30468 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
30469 | result=$? | |
30470 | if test $result = 0; then | |
30471 | ac_path_to_link="" | |
30472 | else | |
30473 | ac_path_to_link=" -L$ac_find_libraries" | |
30474 | fi | |
a848cd7e SC |
30475 | fi |
30476 | ||
30477 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
0ad5d837 VZ |
30478 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 |
30479 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e SC |
30480 | |
30481 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
30482 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
30483 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
30484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30485 | else | |
30486 | ||
e56f4f9e VZ |
30487 | save_CXXFLAGS=$CXXFLAGS |
30488 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
a848cd7e SC |
30489 | |
30490 | cat >conftest.$ac_ext <<_ACEOF | |
30491 | /* confdefs.h. */ | |
30492 | _ACEOF | |
30493 | cat confdefs.h >>conftest.$ac_ext | |
30494 | cat >>conftest.$ac_ext <<_ACEOF | |
30495 | /* end confdefs.h. */ | |
30496 | ||
30497 | #include <X11/xpm.h> | |
30498 | ||
30499 | int | |
30500 | main () | |
30501 | { | |
30502 | ||
30503 | int version; | |
30504 | version = XpmLibraryVersion(); | |
30505 | ||
30506 | ; | |
30507 | return 0; | |
30508 | } | |
30509 | _ACEOF | |
30510 | rm -f conftest.$ac_objext | |
30511 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30512 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30513 | ac_status=$? |
ac1cb8d3 VS |
30514 | grep -v '^ *+' conftest.er1 >conftest.err |
30515 | rm -f conftest.er1 | |
30516 | cat conftest.err >&5 | |
a848cd7e SC |
30517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30518 | (exit $ac_status); } && | |
5d7b7554 | 30519 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30521 | (eval $ac_try) 2>&5 | |
30522 | ac_status=$? | |
30523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30524 | (exit $ac_status); }; } && | |
30525 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30527 | (eval $ac_try) 2>&5 | |
30528 | ac_status=$? | |
30529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30530 | (exit $ac_status); }; }; then | |
30531 | wx_cv_x11_xpm_h=yes | |
30532 | else | |
30533 | echo "$as_me: failed program was:" >&5 | |
30534 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30535 | ||
30536 | wx_cv_x11_xpm_h=no | |
30537 | ||
30538 | fi | |
ac1cb8d3 | 30539 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 30540 | |
e56f4f9e | 30541 | CXXFLAGS=$save_CXXFLAGS |
a848cd7e SC |
30542 | |
30543 | ||
30544 | fi | |
30545 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
30546 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
30547 | ||
30548 | if test $wx_cv_x11_xpm_h = "yes"; then | |
30549 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" | |
30550 | cat >>confdefs.h <<\_ACEOF | |
30551 | #define wxHAVE_LIB_XPM 1 | |
30552 | _ACEOF | |
30553 | ||
30554 | else | |
30555 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
30556 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
30557 | fi | |
30558 | fi | |
30559 | ||
30560 | fi | |
30561 | ||
30562 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
30563 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
30564 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
30565 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30566 | else | |
30567 | ac_check_lib_save_LIBS=$LIBS | |
30568 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
30569 | cat >conftest.$ac_ext <<_ACEOF | |
30570 | /* confdefs.h. */ | |
30571 | _ACEOF | |
30572 | cat confdefs.h >>conftest.$ac_ext | |
30573 | cat >>conftest.$ac_ext <<_ACEOF | |
30574 | /* end confdefs.h. */ | |
30575 | ||
30576 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30577 | #ifdef __cplusplus | |
30578 | extern "C" | |
30579 | #endif | |
30580 | /* We use char because int might match the return type of a gcc2 | |
30581 | builtin and then its argument prototype would still apply. */ | |
30582 | char XShapeQueryExtension (); | |
30583 | int | |
30584 | main () | |
30585 | { | |
30586 | XShapeQueryExtension (); | |
30587 | ; | |
30588 | return 0; | |
30589 | } | |
30590 | _ACEOF | |
30591 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30592 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30593 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30594 | ac_status=$? |
ac1cb8d3 VS |
30595 | grep -v '^ *+' conftest.er1 >conftest.err |
30596 | rm -f conftest.er1 | |
30597 | cat conftest.err >&5 | |
a848cd7e SC |
30598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30599 | (exit $ac_status); } && | |
5d7b7554 | 30600 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30602 | (eval $ac_try) 2>&5 | |
30603 | ac_status=$? | |
30604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30605 | (exit $ac_status); }; } && | |
30606 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30608 | (eval $ac_try) 2>&5 | |
30609 | ac_status=$? | |
30610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30611 | (exit $ac_status); }; }; then | |
30612 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
30613 | else | |
30614 | echo "$as_me: failed program was:" >&5 | |
30615 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30616 | ||
30617 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
30618 | fi | |
ac1cb8d3 VS |
30619 | rm -f conftest.err conftest.$ac_objext \ |
30620 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30621 | LIBS=$ac_check_lib_save_LIBS |
30622 | fi | |
30623 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
30624 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
30625 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
30626 | ||
30627 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
30628 | wxHAVE_XEXT_LIB=1 | |
30629 | ||
30630 | fi | |
30631 | ||
30632 | ||
30633 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
e56f4f9e VZ |
30634 | save_CXXFLAGS="$CXXFLAGS" |
30635 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
a848cd7e SC |
30636 | |
30637 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
30638 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
30639 | cat >conftest.$ac_ext <<_ACEOF | |
30640 | /* confdefs.h. */ | |
30641 | _ACEOF | |
30642 | cat confdefs.h >>conftest.$ac_ext | |
30643 | cat >>conftest.$ac_ext <<_ACEOF | |
30644 | /* end confdefs.h. */ | |
30645 | ||
30646 | #include <X11/Xlib.h> | |
30647 | #include <X11/extensions/shape.h> | |
30648 | ||
30649 | int | |
30650 | main () | |
30651 | { | |
30652 | ||
30653 | int dummy1, dummy2; | |
30654 | XShapeQueryExtension((Display*)NULL, | |
30655 | (int*)NULL, (int*)NULL); | |
30656 | ||
30657 | ; | |
30658 | return 0; | |
30659 | } | |
30660 | _ACEOF | |
30661 | rm -f conftest.$ac_objext | |
30662 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30663 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30664 | ac_status=$? |
ac1cb8d3 VS |
30665 | grep -v '^ *+' conftest.er1 >conftest.err |
30666 | rm -f conftest.er1 | |
30667 | cat conftest.err >&5 | |
a848cd7e SC |
30668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30669 | (exit $ac_status); } && | |
5d7b7554 | 30670 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30672 | (eval $ac_try) 2>&5 | |
30673 | ac_status=$? | |
30674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30675 | (exit $ac_status); }; } && | |
30676 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30678 | (eval $ac_try) 2>&5 | |
30679 | ac_status=$? | |
30680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30681 | (exit $ac_status); }; }; then | |
30682 | ||
30683 | cat >>confdefs.h <<\_ACEOF | |
30684 | #define HAVE_XSHAPE 1 | |
30685 | _ACEOF | |
30686 | ||
30687 | echo "$as_me:$LINENO: result: found" >&5 | |
30688 | echo "${ECHO_T}found" >&6 | |
30689 | ||
30690 | else | |
30691 | echo "$as_me: failed program was:" >&5 | |
30692 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30693 | ||
30694 | ||
30695 | echo "$as_me:$LINENO: result: not found" >&5 | |
30696 | echo "${ECHO_T}not found" >&6 | |
30697 | ||
30698 | fi | |
ac1cb8d3 | 30699 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e56f4f9e | 30700 | CXXFLAGS="$save_CXXFLAGS" |
a848cd7e SC |
30701 | |
30702 | fi | |
30703 | fi | |
30704 | ||
30705 | if test "$wxUSE_MAC" = 1; then | |
30706 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 | |
30707 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
30708 | if test "$GCC" = yes; then | |
30709 | echo "$as_me:$LINENO: result: gcc" >&5 | |
30710 | echo "${ECHO_T}gcc" >&6 | |
30711 | CPPFLAGS_PASCAL="-fpascal-strings" | |
30712 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
30713 | echo "$as_me:$LINENO: result: xlc" >&5 | |
30714 | echo "${ECHO_T}xlc" >&6 | |
30715 | CPPFLAGS_PASCAL="-qmacpstr" | |
30716 | else | |
30717 | echo "$as_me:$LINENO: result: none" >&5 | |
30718 | echo "${ECHO_T}none" >&6 | |
30719 | fi | |
30720 | ||
1e9e8aba | 30721 | if test "x$wxUSE_UNIX" = "xyes"; then |
c92ad099 | 30722 | CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS" |
1e9e8aba | 30723 | else |
c92ad099 | 30724 | CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS" |
1e9e8aba | 30725 | fi |
a848cd7e | 30726 | |
a848cd7e SC |
30727 | TOOLKIT=MAC |
30728 | GUIDIST=MACX_DIST | |
dd21ced8 | 30729 | WXBASEPORT="_carbon" |
a848cd7e SC |
30730 | fi |
30731 | ||
30732 | if test "$wxUSE_COCOA" = 1; then | |
a848cd7e SC |
30733 | TOOLKIT=COCOA |
30734 | GUIDIST=COCOA_DIST | |
30735 | fi | |
30736 | ||
30737 | if test "$wxUSE_PM" = 1; then | |
30738 | TOOLKIT=PM | |
de59c161 RD |
30739 | GUIDIST=PM_DIST |
30740 | echo "$as_me:$LINENO: checking for type SPBCDATA" >&5 | |
30741 | echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6 | |
30742 | if test "${wx_cv_spbcdata+set}" = set; then | |
30743 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30744 | else | |
30745 | ||
30746 | cat >conftest.$ac_ext <<_ACEOF | |
de59c161 RD |
30747 | /* confdefs.h. */ |
30748 | _ACEOF | |
30749 | cat confdefs.h >>conftest.$ac_ext | |
30750 | cat >>conftest.$ac_ext <<_ACEOF | |
30751 | /* end confdefs.h. */ | |
30752 | ||
30753 | #define INCL_PM | |
30754 | #include <os2.h> | |
30755 | ||
30756 | int | |
30757 | main () | |
30758 | { | |
30759 | ||
30760 | SPBCDATA test; | |
30761 | ||
30762 | ; | |
30763 | return 0; | |
30764 | } | |
30765 | _ACEOF | |
30766 | rm -f conftest.$ac_objext | |
30767 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30768 | (eval $ac_compile) 2>conftest.er1 |
de59c161 | 30769 | ac_status=$? |
ac1cb8d3 VS |
30770 | grep -v '^ *+' conftest.er1 >conftest.err |
30771 | rm -f conftest.er1 | |
30772 | cat conftest.err >&5 | |
de59c161 RD |
30773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30774 | (exit $ac_status); } && | |
5d7b7554 | 30775 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
30776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30777 | (eval $ac_try) 2>&5 | |
30778 | ac_status=$? | |
30779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30780 | (exit $ac_status); }; } && | |
30781 | { ac_try='test -s conftest.$ac_objext' | |
de59c161 RD |
30782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30783 | (eval $ac_try) 2>&5 | |
30784 | ac_status=$? | |
30785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30786 | (exit $ac_status); }; }; then | |
30787 | wx_cv_spbcdata=yes | |
30788 | else | |
30789 | echo "$as_me: failed program was:" >&5 | |
30790 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30791 | ||
30792 | wx_cv_spbcdata=no | |
30793 | ||
30794 | fi | |
ac1cb8d3 | 30795 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
de59c161 RD |
30796 | |
30797 | ||
30798 | fi | |
30799 | echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5 | |
30800 | echo "${ECHO_T}$wx_cv_spbcdata" >&6 | |
30801 | ||
30802 | if test $wx_cv_spbcdata = "yes"; then | |
30803 | cat >>confdefs.h <<\_ACEOF | |
30804 | #define HAVE_SPBCDATA 1 | |
30805 | _ACEOF | |
30806 | ||
30807 | fi | |
a848cd7e SC |
30808 | fi |
30809 | ||
30810 | if test "$TOOLKIT" = "PM" ; then | |
30811 | TOOLKIT_DIR="os2" | |
30812 | else | |
30813 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
30814 | fi | |
30815 | ||
a848cd7e | 30816 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
a848cd7e SC |
30817 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" |
30818 | WIDGET_SET=univ | |
a848cd7e SC |
30819 | fi |
30820 | ||
30821 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
30822 | DISTDIR="wx\$(TOOLKIT)" | |
30823 | else | |
30824 | USE_GUI=0 | |
30825 | ||
30826 | TOOLKIT_DIR="base" | |
30827 | ||
30828 | if test "$USE_WIN32" = 1 ; then | |
a848cd7e | 30829 | TOOLKIT="MSW" |
a848cd7e SC |
30830 | fi |
30831 | ||
a848cd7e SC |
30832 | GUIDIST="BASE_DIST" |
30833 | DISTDIR="wxBase" | |
30834 | fi | |
30835 | ||
30836 | ||
d12aef51 VZ |
30837 | if test "$wxUSE_GUI" = "yes"; then |
30838 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then | |
30839 | ||
30840 | for ac_header in X11/Xlib.h | |
30841 | do | |
30842 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
30843 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30844 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
30845 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
30846 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30848 | fi | |
30849 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
30850 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
30851 | else | |
30852 | # Is the header compilable? | |
30853 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
30854 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
30855 | cat >conftest.$ac_ext <<_ACEOF | |
30856 | /* confdefs.h. */ | |
30857 | _ACEOF | |
30858 | cat confdefs.h >>conftest.$ac_ext | |
30859 | cat >>conftest.$ac_ext <<_ACEOF | |
30860 | /* end confdefs.h. */ | |
30861 | $ac_includes_default | |
30862 | #include <$ac_header> | |
30863 | _ACEOF | |
30864 | rm -f conftest.$ac_objext | |
30865 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30866 | (eval $ac_compile) 2>conftest.er1 | |
30867 | ac_status=$? | |
30868 | grep -v '^ *+' conftest.er1 >conftest.err | |
30869 | rm -f conftest.er1 | |
30870 | cat conftest.err >&5 | |
30871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30872 | (exit $ac_status); } && | |
5d7b7554 | 30873 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
d12aef51 VZ |
30874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30875 | (eval $ac_try) 2>&5 | |
30876 | ac_status=$? | |
30877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30878 | (exit $ac_status); }; } && | |
30879 | { ac_try='test -s conftest.$ac_objext' | |
30880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30881 | (eval $ac_try) 2>&5 | |
30882 | ac_status=$? | |
30883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30884 | (exit $ac_status); }; }; then | |
30885 | ac_header_compiler=yes | |
30886 | else | |
30887 | echo "$as_me: failed program was:" >&5 | |
30888 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30889 | ||
30890 | ac_header_compiler=no | |
30891 | fi | |
30892 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30893 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
30894 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
30895 | ||
30896 | # Is the header present? | |
30897 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
30898 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
30899 | cat >conftest.$ac_ext <<_ACEOF | |
30900 | /* confdefs.h. */ | |
30901 | _ACEOF | |
30902 | cat confdefs.h >>conftest.$ac_ext | |
30903 | cat >>conftest.$ac_ext <<_ACEOF | |
30904 | /* end confdefs.h. */ | |
30905 | #include <$ac_header> | |
30906 | _ACEOF | |
30907 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
30908 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
30909 | ac_status=$? | |
30910 | grep -v '^ *+' conftest.er1 >conftest.err | |
30911 | rm -f conftest.er1 | |
30912 | cat conftest.err >&5 | |
30913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30914 | (exit $ac_status); } >/dev/null; then | |
30915 | if test -s conftest.err; then | |
5d7b7554 VZ |
30916 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
30917 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
d12aef51 VZ |
30918 | else |
30919 | ac_cpp_err= | |
30920 | fi | |
30921 | else | |
30922 | ac_cpp_err=yes | |
30923 | fi | |
30924 | if test -z "$ac_cpp_err"; then | |
30925 | ac_header_preproc=yes | |
30926 | else | |
30927 | echo "$as_me: failed program was:" >&5 | |
30928 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30929 | ||
30930 | ac_header_preproc=no | |
30931 | fi | |
30932 | rm -f conftest.err conftest.$ac_ext | |
30933 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
30934 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
30935 | ||
30936 | # So? What about this header? | |
5d7b7554 | 30937 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
d12aef51 VZ |
30938 | yes:no: ) |
30939 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
30940 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
30941 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
30942 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
30943 | ac_header_preproc=yes | |
30944 | ;; | |
30945 | no:yes:* ) | |
30946 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
30947 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
30948 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
30949 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
30950 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
30951 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
30952 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
30953 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
30954 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
30955 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
30956 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
30957 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
30958 | ( | |
30959 | cat <<\_ASBOX | |
30960 | ## ----------------------------------------- ## | |
30961 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
30962 | ## ----------------------------------------- ## | |
30963 | _ASBOX | |
30964 | ) | | |
30965 | sed "s/^/$as_me: WARNING: /" >&2 | |
30966 | ;; | |
30967 | esac | |
30968 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
30969 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
30970 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30971 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30972 | else | |
30973 | eval "$as_ac_Header=\$ac_header_preproc" | |
30974 | fi | |
30975 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
30976 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
30977 | ||
30978 | fi | |
30979 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
30980 | cat >>confdefs.h <<_ACEOF | |
30981 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
30982 | _ACEOF | |
30983 | ||
30984 | fi | |
30985 | ||
30986 | done | |
30987 | ||
30988 | ||
30989 | for ac_header in X11/XKBlib.h | |
30990 | do | |
30991 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
30992 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
30993 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
30994 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30995 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30996 | else | |
30997 | cat >conftest.$ac_ext <<_ACEOF | |
30998 | /* confdefs.h. */ | |
30999 | _ACEOF | |
31000 | cat confdefs.h >>conftest.$ac_ext | |
31001 | cat >>conftest.$ac_ext <<_ACEOF | |
31002 | /* end confdefs.h. */ | |
31003 | ||
31004 | #if HAVE_X11_XLIB_H | |
31005 | #include <X11/Xlib.h> | |
31006 | #endif | |
31007 | ||
31008 | ||
31009 | #include <$ac_header> | |
31010 | _ACEOF | |
31011 | rm -f conftest.$ac_objext | |
31012 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31013 | (eval $ac_compile) 2>conftest.er1 | |
31014 | ac_status=$? | |
31015 | grep -v '^ *+' conftest.er1 >conftest.err | |
31016 | rm -f conftest.er1 | |
31017 | cat conftest.err >&5 | |
31018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31019 | (exit $ac_status); } && | |
5d7b7554 | 31020 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
d12aef51 VZ |
31021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31022 | (eval $ac_try) 2>&5 | |
31023 | ac_status=$? | |
31024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31025 | (exit $ac_status); }; } && | |
31026 | { ac_try='test -s conftest.$ac_objext' | |
31027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31028 | (eval $ac_try) 2>&5 | |
31029 | ac_status=$? | |
31030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31031 | (exit $ac_status); }; }; then | |
31032 | eval "$as_ac_Header=yes" | |
31033 | else | |
31034 | echo "$as_me: failed program was:" >&5 | |
31035 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31036 | ||
31037 | eval "$as_ac_Header=no" | |
31038 | fi | |
31039 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31040 | fi | |
31041 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31042 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31043 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
31044 | cat >>confdefs.h <<_ACEOF | |
31045 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31046 | _ACEOF | |
31047 | ||
31048 | fi | |
31049 | ||
31050 | done | |
31051 | ||
31052 | fi | |
31053 | fi | |
31054 | ||
a848cd7e SC |
31055 | |
31056 | ||
31057 | IODBC_C_SRC="" | |
31058 | ||
31059 | ||
31060 | if test "$TOOLKIT" != "MSW" ; then | |
31061 | ||
31062 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then | |
31063 | ||
31064 | if test "${ac_cv_header_sql_h+set}" = set; then | |
31065 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
31066 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
31067 | if test "${ac_cv_header_sql_h+set}" = set; then | |
31068 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31069 | fi | |
31070 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
31071 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
31072 | else | |
31073 | # Is the header compilable? | |
31074 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
31075 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
31076 | cat >conftest.$ac_ext <<_ACEOF | |
31077 | /* confdefs.h. */ | |
31078 | _ACEOF | |
31079 | cat confdefs.h >>conftest.$ac_ext | |
31080 | cat >>conftest.$ac_ext <<_ACEOF | |
31081 | /* end confdefs.h. */ | |
31082 | $ac_includes_default | |
31083 | #include <sql.h> | |
31084 | _ACEOF | |
31085 | rm -f conftest.$ac_objext | |
31086 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31087 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31088 | ac_status=$? |
ac1cb8d3 VS |
31089 | grep -v '^ *+' conftest.er1 >conftest.err |
31090 | rm -f conftest.er1 | |
31091 | cat conftest.err >&5 | |
a848cd7e SC |
31092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31093 | (exit $ac_status); } && | |
5d7b7554 | 31094 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31096 | (eval $ac_try) 2>&5 | |
31097 | ac_status=$? | |
31098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31099 | (exit $ac_status); }; } && | |
31100 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31102 | (eval $ac_try) 2>&5 | |
31103 | ac_status=$? | |
31104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31105 | (exit $ac_status); }; }; then | |
31106 | ac_header_compiler=yes | |
31107 | else | |
31108 | echo "$as_me: failed program was:" >&5 | |
31109 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31110 | ||
31111 | ac_header_compiler=no | |
31112 | fi | |
ac1cb8d3 | 31113 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31114 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
31115 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31116 | ||
31117 | # Is the header present? | |
31118 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
31119 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
31120 | cat >conftest.$ac_ext <<_ACEOF | |
31121 | /* confdefs.h. */ | |
31122 | _ACEOF | |
31123 | cat confdefs.h >>conftest.$ac_ext | |
31124 | cat >>conftest.$ac_ext <<_ACEOF | |
31125 | /* end confdefs.h. */ | |
31126 | #include <sql.h> | |
31127 | _ACEOF | |
31128 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31129 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31130 | ac_status=$? | |
31131 | grep -v '^ *+' conftest.er1 >conftest.err | |
31132 | rm -f conftest.er1 | |
31133 | cat conftest.err >&5 | |
31134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31135 | (exit $ac_status); } >/dev/null; then | |
31136 | if test -s conftest.err; then | |
5d7b7554 VZ |
31137 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
31138 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
31139 | else |
31140 | ac_cpp_err= | |
31141 | fi | |
31142 | else | |
31143 | ac_cpp_err=yes | |
31144 | fi | |
31145 | if test -z "$ac_cpp_err"; then | |
31146 | ac_header_preproc=yes | |
31147 | else | |
31148 | echo "$as_me: failed program was:" >&5 | |
31149 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31150 | ||
31151 | ac_header_preproc=no | |
31152 | fi | |
31153 | rm -f conftest.err conftest.$ac_ext | |
31154 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31155 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31156 | ||
31157 | # So? What about this header? | |
5d7b7554 | 31158 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 31159 | yes:no: ) |
a848cd7e SC |
31160 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
31161 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
31162 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 |
31163 | echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} | |
31164 | ac_header_preproc=yes | |
a848cd7e | 31165 | ;; |
ac1cb8d3 | 31166 | no:yes:* ) |
a848cd7e SC |
31167 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
31168 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
31169 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
31170 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
31171 | { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 | |
31172 | echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} | |
31173 | { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 | |
31174 | echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
31175 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
31176 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
31177 | { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 |
31178 | echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
31179 | ( |
31180 | cat <<\_ASBOX | |
ac1cb8d3 VS |
31181 | ## ----------------------------------------- ## |
31182 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
31183 | ## ----------------------------------------- ## | |
a848cd7e SC |
31184 | _ASBOX |
31185 | ) | | |
31186 | sed "s/^/$as_me: WARNING: /" >&2 | |
31187 | ;; | |
31188 | esac | |
31189 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
31190 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
31191 | if test "${ac_cv_header_sql_h+set}" = set; then | |
31192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31193 | else | |
31194 | ac_cv_header_sql_h=$ac_header_preproc | |
31195 | fi | |
31196 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
31197 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
31198 | ||
31199 | fi | |
31200 | if test $ac_cv_header_sql_h = yes; then | |
31201 | found_sql_h=1 | |
31202 | fi | |
31203 | ||
31204 | ||
31205 | if test "x$found_sql_h" = "x1" ; then | |
31206 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 | |
31207 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
31208 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
31209 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31210 | else | |
31211 | ac_check_lib_save_LIBS=$LIBS | |
31212 | LIBS="-liodbc $LIBS" | |
31213 | cat >conftest.$ac_ext <<_ACEOF | |
31214 | /* confdefs.h. */ | |
31215 | _ACEOF | |
31216 | cat confdefs.h >>conftest.$ac_ext | |
31217 | cat >>conftest.$ac_ext <<_ACEOF | |
31218 | /* end confdefs.h. */ | |
31219 | ||
31220 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31221 | #ifdef __cplusplus | |
31222 | extern "C" | |
31223 | #endif | |
31224 | /* We use char because int might match the return type of a gcc2 | |
31225 | builtin and then its argument prototype would still apply. */ | |
31226 | char SQLAllocEnv (); | |
31227 | int | |
31228 | main () | |
31229 | { | |
31230 | SQLAllocEnv (); | |
31231 | ; | |
31232 | return 0; | |
31233 | } | |
31234 | _ACEOF | |
31235 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31236 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31237 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31238 | ac_status=$? |
ac1cb8d3 VS |
31239 | grep -v '^ *+' conftest.er1 >conftest.err |
31240 | rm -f conftest.er1 | |
31241 | cat conftest.err >&5 | |
a848cd7e SC |
31242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31243 | (exit $ac_status); } && | |
5d7b7554 | 31244 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31246 | (eval $ac_try) 2>&5 | |
31247 | ac_status=$? | |
31248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31249 | (exit $ac_status); }; } && | |
31250 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31252 | (eval $ac_try) 2>&5 | |
31253 | ac_status=$? | |
31254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31255 | (exit $ac_status); }; }; then | |
31256 | ac_cv_lib_iodbc_SQLAllocEnv=yes | |
31257 | else | |
31258 | echo "$as_me: failed program was:" >&5 | |
31259 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31260 | ||
31261 | ac_cv_lib_iodbc_SQLAllocEnv=no | |
31262 | fi | |
ac1cb8d3 VS |
31263 | rm -f conftest.err conftest.$ac_objext \ |
31264 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31265 | LIBS=$ac_check_lib_save_LIBS |
31266 | fi | |
31267 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 | |
31268 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
31269 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
31270 | ODBC_LINK=" -liodbc" | |
31271 | else | |
31272 | ||
31273 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 | |
31274 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
31275 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
31276 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31277 | else | |
31278 | ac_check_lib_save_LIBS=$LIBS | |
31279 | LIBS="-lunixodbc $LIBS" | |
31280 | cat >conftest.$ac_ext <<_ACEOF | |
31281 | /* confdefs.h. */ | |
31282 | _ACEOF | |
31283 | cat confdefs.h >>conftest.$ac_ext | |
31284 | cat >>conftest.$ac_ext <<_ACEOF | |
31285 | /* end confdefs.h. */ | |
31286 | ||
31287 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31288 | #ifdef __cplusplus | |
31289 | extern "C" | |
31290 | #endif | |
31291 | /* We use char because int might match the return type of a gcc2 | |
31292 | builtin and then its argument prototype would still apply. */ | |
31293 | char SQLAllocEnv (); | |
31294 | int | |
31295 | main () | |
31296 | { | |
31297 | SQLAllocEnv (); | |
31298 | ; | |
31299 | return 0; | |
31300 | } | |
31301 | _ACEOF | |
31302 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31303 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31304 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31305 | ac_status=$? |
ac1cb8d3 VS |
31306 | grep -v '^ *+' conftest.er1 >conftest.err |
31307 | rm -f conftest.er1 | |
31308 | cat conftest.err >&5 | |
a848cd7e SC |
31309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31310 | (exit $ac_status); } && | |
5d7b7554 | 31311 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31313 | (eval $ac_try) 2>&5 | |
31314 | ac_status=$? | |
31315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31316 | (exit $ac_status); }; } && | |
31317 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31319 | (eval $ac_try) 2>&5 | |
31320 | ac_status=$? | |
31321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31322 | (exit $ac_status); }; }; then | |
31323 | ac_cv_lib_unixodbc_SQLAllocEnv=yes | |
31324 | else | |
31325 | echo "$as_me: failed program was:" >&5 | |
31326 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31327 | ||
31328 | ac_cv_lib_unixodbc_SQLAllocEnv=no | |
31329 | fi | |
ac1cb8d3 VS |
31330 | rm -f conftest.err conftest.$ac_objext \ |
31331 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31332 | LIBS=$ac_check_lib_save_LIBS |
31333 | fi | |
31334 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 | |
31335 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
31336 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
31337 | ODBC_LINK=" -lunixodbc" | |
31338 | else | |
31339 | ||
31340 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 | |
31341 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
31342 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
31343 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31344 | else | |
31345 | ac_check_lib_save_LIBS=$LIBS | |
31346 | LIBS="-lodbc $LIBS" | |
31347 | cat >conftest.$ac_ext <<_ACEOF | |
31348 | /* confdefs.h. */ | |
31349 | _ACEOF | |
31350 | cat confdefs.h >>conftest.$ac_ext | |
31351 | cat >>conftest.$ac_ext <<_ACEOF | |
31352 | /* end confdefs.h. */ | |
31353 | ||
31354 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31355 | #ifdef __cplusplus | |
31356 | extern "C" | |
31357 | #endif | |
31358 | /* We use char because int might match the return type of a gcc2 | |
31359 | builtin and then its argument prototype would still apply. */ | |
31360 | char SQLAllocEnv (); | |
31361 | int | |
31362 | main () | |
31363 | { | |
31364 | SQLAllocEnv (); | |
31365 | ; | |
31366 | return 0; | |
31367 | } | |
31368 | _ACEOF | |
31369 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31370 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31371 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31372 | ac_status=$? |
ac1cb8d3 VS |
31373 | grep -v '^ *+' conftest.er1 >conftest.err |
31374 | rm -f conftest.er1 | |
31375 | cat conftest.err >&5 | |
a848cd7e SC |
31376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31377 | (exit $ac_status); } && | |
5d7b7554 | 31378 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31380 | (eval $ac_try) 2>&5 | |
31381 | ac_status=$? | |
31382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31383 | (exit $ac_status); }; } && | |
31384 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31386 | (eval $ac_try) 2>&5 | |
31387 | ac_status=$? | |
31388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31389 | (exit $ac_status); }; }; then | |
31390 | ac_cv_lib_odbc_SQLAllocEnv=yes | |
31391 | else | |
31392 | echo "$as_me: failed program was:" >&5 | |
31393 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31394 | ||
31395 | ac_cv_lib_odbc_SQLAllocEnv=no | |
31396 | fi | |
ac1cb8d3 VS |
31397 | rm -f conftest.err conftest.$ac_objext \ |
31398 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31399 | LIBS=$ac_check_lib_save_LIBS |
31400 | fi | |
31401 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 | |
31402 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
31403 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
31404 | ODBC_LINK=" -lodbc" | |
31405 | fi | |
31406 | ||
31407 | ||
31408 | fi | |
31409 | ||
31410 | ||
31411 | fi | |
31412 | ||
31413 | fi | |
31414 | if test "x$ODBC_LINK" = "x" ; then | |
31415 | if test "$wxUSE_ODBC" = "sys" ; then | |
31416 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
31417 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
31418 | { (exit 1); exit 1; }; } | |
31419 | else | |
31420 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
31421 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
31422 | wxUSE_ODBC=builtin | |
31423 | fi | |
31424 | else | |
31425 | wxUSE_ODBC=sys | |
31426 | fi | |
31427 | fi | |
a848cd7e | 31428 | |
2da0c077 RD |
31429 | if test "$wxUSE_ODBC" = "builtin" ; then |
31430 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
31431 | #define wxUSE_BUILTIN_IODBC 1 |
31432 | _ACEOF | |
31433 | ||
a848cd7e SC |
31434 | fi |
31435 | fi | |
31436 | ||
2da0c077 RD |
31437 | if test "$wxUSE_ODBC" != "no" ; then |
31438 | cat >>confdefs.h <<\_ACEOF | |
31439 | #define wxUSE_ODBC 1 | |
31440 | _ACEOF | |
31441 | ||
31442 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
31443 | ||
5ff751d6 | 31444 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_" |
2da0c077 | 31445 | fi |
a848cd7e | 31446 | |
01cb68df | 31447 | |
a848cd7e | 31448 | if test "$wxUSE_DISPLAY" = "yes"; then |
2a5d7a98 | 31449 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then |
a848cd7e SC |
31450 | echo "$as_me:$LINENO: checking for Xinerama" >&5 |
31451 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
31452 | ||
0ad5d837 VZ |
31453 | ac_find_libraries= |
31454 | for ac_dir in $SEARCH_LIB; | |
31455 | do | |
31456 | for ac_extension in a so sl dylib dll.a; do | |
31457 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
31458 | ac_find_libraries=$ac_dir | |
31459 | break 2 | |
31460 | fi | |
31461 | done | |
31462 | done | |
31463 | ||
a848cd7e SC |
31464 | if test "$ac_find_libraries" != "" ; then |
31465 | ||
0ad5d837 | 31466 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
31467 | ac_path_to_link="" |
31468 | else | |
0ad5d837 VZ |
31469 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
31470 | result=$? | |
31471 | if test $result = 0; then | |
31472 | ac_path_to_link="" | |
31473 | else | |
31474 | ac_path_to_link=" -L$ac_find_libraries" | |
31475 | fi | |
a848cd7e SC |
31476 | fi |
31477 | ||
31478 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
31479 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
31480 | fi | |
31481 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
31482 | echo "$as_me:$LINENO: result: yes" >&5 | |
31483 | echo "${ECHO_T}yes" >&6 | |
31484 | ||
31485 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
31486 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
31487 | ||
0ad5d837 VZ |
31488 | ac_find_libraries= |
31489 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 31490 | do |
3eca31dc | 31491 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
31492 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then |
31493 | ac_find_libraries=$ac_dir | |
31494 | break 2 | |
31495 | fi | |
31496 | done | |
31497 | done | |
31498 | ||
31499 | if test "$ac_find_libraries" != "" ; then | |
31500 | echo "$as_me:$LINENO: result: yes" >&5 | |
31501 | echo "${ECHO_T}yes" >&6 | |
31502 | ||
31503 | for ac_header in X11/extensions/xf86vmode.h | |
31504 | do | |
31505 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
31506 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31507 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31508 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31509 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31510 | else | |
31511 | cat >conftest.$ac_ext <<_ACEOF | |
31512 | /* confdefs.h. */ | |
31513 | _ACEOF | |
31514 | cat confdefs.h >>conftest.$ac_ext | |
31515 | cat >>conftest.$ac_ext <<_ACEOF | |
31516 | /* end confdefs.h. */ | |
31517 | ||
31518 | #if HAVE_X11_XLIB_H | |
31519 | #include <X11/Xlib.h> | |
31520 | #endif | |
31521 | ||
31522 | ||
31523 | #include <$ac_header> | |
31524 | _ACEOF | |
31525 | rm -f conftest.$ac_objext | |
31526 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31527 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31528 | ac_status=$? |
ac1cb8d3 VS |
31529 | grep -v '^ *+' conftest.er1 >conftest.err |
31530 | rm -f conftest.er1 | |
31531 | cat conftest.err >&5 | |
a848cd7e SC |
31532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31533 | (exit $ac_status); } && | |
5d7b7554 | 31534 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31536 | (eval $ac_try) 2>&5 | |
31537 | ac_status=$? | |
31538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31539 | (exit $ac_status); }; } && | |
31540 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31542 | (eval $ac_try) 2>&5 | |
31543 | ac_status=$? | |
31544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31545 | (exit $ac_status); }; }; then | |
31546 | eval "$as_ac_Header=yes" | |
31547 | else | |
31548 | echo "$as_me: failed program was:" >&5 | |
31549 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31550 | ||
31551 | eval "$as_ac_Header=no" | |
31552 | fi | |
ac1cb8d3 | 31553 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31554 | fi |
31555 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31556 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31557 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
31558 | cat >>confdefs.h <<_ACEOF | |
31559 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31560 | _ACEOF | |
31561 | ||
31562 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
31563 | ||
31564 | fi | |
31565 | ||
31566 | done | |
31567 | ||
31568 | else | |
31569 | echo "$as_me:$LINENO: result: no" >&5 | |
31570 | echo "${ECHO_T}no" >&6 | |
31571 | fi | |
31572 | ||
31573 | else | |
31574 | echo "$as_me:$LINENO: result: no" >&5 | |
31575 | echo "${ECHO_T}no" >&6 | |
dcc1b6ad VS |
31576 | { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5 |
31577 | echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;} | |
a848cd7e SC |
31578 | wxUSE_DISPLAY="no" |
31579 | fi | |
01cb68df RG |
31580 | elif test "$wxUSE_MSW" = 1; then |
31581 | ||
e5efa97e | 31582 | for ac_header in ddraw.h |
01cb68df RG |
31583 | do |
31584 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5294a27e | 31585 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
01cb68df RG |
31586 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
31587 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31588 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
01cb68df | 31589 | else |
5294a27e | 31590 | cat >conftest.$ac_ext <<_ACEOF |
01cb68df RG |
31591 | /* confdefs.h. */ |
31592 | _ACEOF | |
31593 | cat confdefs.h >>conftest.$ac_ext | |
31594 | cat >>conftest.$ac_ext <<_ACEOF | |
31595 | /* end confdefs.h. */ | |
5294a27e VZ |
31596 | #include <windows.h> |
31597 | ||
01cb68df RG |
31598 | #include <$ac_header> |
31599 | _ACEOF | |
31600 | rm -f conftest.$ac_objext | |
31601 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31602 | (eval $ac_compile) 2>conftest.er1 |
01cb68df | 31603 | ac_status=$? |
ac1cb8d3 VS |
31604 | grep -v '^ *+' conftest.er1 >conftest.err |
31605 | rm -f conftest.er1 | |
31606 | cat conftest.err >&5 | |
01cb68df RG |
31607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31608 | (exit $ac_status); } && | |
5d7b7554 | 31609 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31611 | (eval $ac_try) 2>&5 | |
31612 | ac_status=$? | |
31613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31614 | (exit $ac_status); }; } && | |
31615 | { ac_try='test -s conftest.$ac_objext' | |
01cb68df RG |
31616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31617 | (eval $ac_try) 2>&5 | |
31618 | ac_status=$? | |
31619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31620 | (exit $ac_status); }; }; then | |
5294a27e | 31621 | eval "$as_ac_Header=yes" |
01cb68df RG |
31622 | else |
31623 | echo "$as_me: failed program was:" >&5 | |
31624 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31625 | ||
5294a27e | 31626 | eval "$as_ac_Header=no" |
01cb68df | 31627 | fi |
ac1cb8d3 | 31628 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
01cb68df RG |
31629 | fi |
31630 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31631 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
01cb68df RG |
31632 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
31633 | cat >>confdefs.h <<_ACEOF | |
31634 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31635 | _ACEOF | |
31636 | ||
01cb68df RG |
31637 | fi |
31638 | ||
31639 | done | |
31640 | ||
a848cd7e SC |
31641 | fi |
31642 | fi | |
31643 | ||
31644 | ||
31645 | USE_OPENGL=0 | |
31646 | if test "$wxUSE_OPENGL" = "yes"; then | |
31647 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
31648 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
31649 | elif test "$wxUSE_MSW" = 1; then | |
31650 | OPENGL_LIBS="-lopengl32 -lglu32" | |
31651 | else | |
31652 | ||
31653 | ||
31654 | ac_find_includes= | |
31655 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
31656 | do | |
31657 | if test -f "$ac_dir/GL/gl.h"; then | |
31658 | ac_find_includes=$ac_dir | |
31659 | break | |
31660 | fi | |
31661 | done | |
31662 | ||
31663 | if test "$ac_find_includes" != "" ; then | |
31664 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
31665 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
31666 | ||
31667 | if test "x$ac_find_includes" = "x/usr/include"; then | |
31668 | ac_path_to_include="" | |
31669 | else | |
31670 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
31671 | result=$? | |
31672 | if test $result = 0; then | |
31673 | ac_path_to_include="" | |
31674 | else | |
31675 | ac_path_to_include=" -I$ac_find_includes" | |
31676 | fi | |
31677 | fi | |
31678 | ||
c92ad099 | 31679 | CPPFLAGS="$ac_path_to_include $CPPFLAGS" |
a848cd7e SC |
31680 | fi |
31681 | ||
31682 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
31683 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
31684 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
31685 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
31686 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31687 | fi | |
31688 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
31689 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
31690 | else | |
31691 | # Is the header compilable? | |
31692 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
31693 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
31694 | cat >conftest.$ac_ext <<_ACEOF | |
31695 | /* confdefs.h. */ | |
31696 | _ACEOF | |
31697 | cat confdefs.h >>conftest.$ac_ext | |
31698 | cat >>conftest.$ac_ext <<_ACEOF | |
31699 | /* end confdefs.h. */ | |
31700 | $ac_includes_default | |
31701 | #include <GL/gl.h> | |
31702 | _ACEOF | |
31703 | rm -f conftest.$ac_objext | |
31704 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31705 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31706 | ac_status=$? |
ac1cb8d3 VS |
31707 | grep -v '^ *+' conftest.er1 >conftest.err |
31708 | rm -f conftest.er1 | |
31709 | cat conftest.err >&5 | |
a848cd7e SC |
31710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31711 | (exit $ac_status); } && | |
5d7b7554 | 31712 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
31713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31714 | (eval $ac_try) 2>&5 | |
31715 | ac_status=$? | |
31716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31717 | (exit $ac_status); }; } && | |
31718 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31720 | (eval $ac_try) 2>&5 | |
31721 | ac_status=$? | |
31722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31723 | (exit $ac_status); }; }; then | |
31724 | ac_header_compiler=yes | |
31725 | else | |
31726 | echo "$as_me: failed program was:" >&5 | |
31727 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31728 | ||
31729 | ac_header_compiler=no | |
31730 | fi | |
ac1cb8d3 | 31731 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31732 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
31733 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31734 | ||
31735 | # Is the header present? | |
31736 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
31737 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
31738 | cat >conftest.$ac_ext <<_ACEOF | |
31739 | /* confdefs.h. */ | |
31740 | _ACEOF | |
31741 | cat confdefs.h >>conftest.$ac_ext | |
31742 | cat >>conftest.$ac_ext <<_ACEOF | |
31743 | /* end confdefs.h. */ | |
31744 | #include <GL/gl.h> | |
31745 | _ACEOF | |
31746 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31747 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31748 | ac_status=$? | |
31749 | grep -v '^ *+' conftest.er1 >conftest.err | |
31750 | rm -f conftest.er1 | |
31751 | cat conftest.err >&5 | |
31752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31753 | (exit $ac_status); } >/dev/null; then | |
31754 | if test -s conftest.err; then | |
5d7b7554 VZ |
31755 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
31756 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
31757 | else |
31758 | ac_cpp_err= | |
31759 | fi | |
31760 | else | |
31761 | ac_cpp_err=yes | |
31762 | fi | |
31763 | if test -z "$ac_cpp_err"; then | |
31764 | ac_header_preproc=yes | |
31765 | else | |
31766 | echo "$as_me: failed program was:" >&5 | |
31767 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31768 | ||
31769 | ac_header_preproc=no | |
31770 | fi | |
31771 | rm -f conftest.err conftest.$ac_ext | |
31772 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31773 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31774 | ||
31775 | # So? What about this header? | |
5d7b7554 | 31776 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 31777 | yes:no: ) |
a848cd7e SC |
31778 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
31779 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
31780 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 |
31781 | echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} | |
31782 | ac_header_preproc=yes | |
a848cd7e | 31783 | ;; |
ac1cb8d3 | 31784 | no:yes:* ) |
a848cd7e SC |
31785 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
31786 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
31787 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
31788 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
31789 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 | |
31790 | echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} | |
31791 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
31792 | echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
31793 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
31794 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
31795 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 |
31796 | echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
31797 | ( |
31798 | cat <<\_ASBOX | |
ac1cb8d3 VS |
31799 | ## ----------------------------------------- ## |
31800 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
31801 | ## ----------------------------------------- ## | |
a848cd7e SC |
31802 | _ASBOX |
31803 | ) | | |
31804 | sed "s/^/$as_me: WARNING: /" >&2 | |
31805 | ;; | |
31806 | esac | |
31807 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
31808 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
31809 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
31810 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31811 | else | |
31812 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
31813 | fi | |
31814 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
31815 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
31816 | ||
31817 | fi | |
31818 | if test $ac_cv_header_GL_gl_h = yes; then | |
31819 | ||
31820 | found_gl=0 | |
31821 | ||
31822 | echo "$as_me:$LINENO: checking for -lGL" >&5 | |
31823 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
31824 | ||
0ad5d837 VZ |
31825 | ac_find_libraries= |
31826 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 31827 | do |
3eca31dc | 31828 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
31829 | if test -f "$ac_dir/libGL.$ac_extension"; then |
31830 | ac_find_libraries=$ac_dir | |
31831 | break 2 | |
31832 | fi | |
31833 | done | |
31834 | done | |
31835 | ||
31836 | if test "$ac_find_libraries" != "" ; then | |
69120ee4 VZ |
31837 | echo "$as_me:$LINENO: result: yes" >&5 |
31838 | echo "${ECHO_T}yes" >&6 | |
31839 | ||
a848cd7e | 31840 | |
0ad5d837 | 31841 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
31842 | ac_path_to_link="" |
31843 | else | |
0ad5d837 VZ |
31844 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
31845 | result=$? | |
31846 | if test $result = 0; then | |
31847 | ac_path_to_link="" | |
31848 | else | |
31849 | ac_path_to_link=" -L$ac_find_libraries" | |
31850 | fi | |
a848cd7e SC |
31851 | fi |
31852 | ||
31853 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
31854 | LDFLAGS_GL="$ac_path_to_link" | |
31855 | fi | |
31856 | ||
69120ee4 VZ |
31857 | echo "$as_me:$LINENO: checking for -lGLU" >&5 |
31858 | echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6 | |
a848cd7e | 31859 | |
0ad5d837 VZ |
31860 | ac_find_libraries= |
31861 | for ac_dir in $SEARCH_LIB; | |
31862 | do | |
31863 | for ac_extension in a so sl dylib dll.a; do | |
31864 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
31865 | ac_find_libraries=$ac_dir | |
31866 | break 2 | |
31867 | fi | |
31868 | done | |
31869 | done | |
31870 | ||
a848cd7e SC |
31871 | if test "$ac_find_libraries" != "" ; then |
31872 | ||
0ad5d837 | 31873 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
31874 | ac_path_to_link="" |
31875 | else | |
0ad5d837 VZ |
31876 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
31877 | result=$? | |
31878 | if test $result = 0; then | |
31879 | ac_path_to_link="" | |
31880 | else | |
31881 | ac_path_to_link=" -L$ac_find_libraries" | |
31882 | fi | |
a848cd7e SC |
31883 | fi |
31884 | ||
31885 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
31886 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
31887 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
31888 | fi | |
31889 | ||
31890 | found_gl=1 | |
31891 | OPENGL_LIBS="-lGL -lGLU" | |
31892 | echo "$as_me:$LINENO: result: yes" >&5 | |
31893 | echo "${ECHO_T}yes" >&6 | |
69120ee4 VZ |
31894 | else |
31895 | echo "$as_me:$LINENO: result: no" >&5 | |
31896 | echo "${ECHO_T}no" >&6 | |
a848cd7e | 31897 | fi |
69120ee4 VZ |
31898 | else |
31899 | echo "$as_me:$LINENO: result: no" >&5 | |
31900 | echo "${ECHO_T}no" >&6 | |
a848cd7e SC |
31901 | fi |
31902 | ||
31903 | if test "$found_gl" != 1; then | |
a848cd7e SC |
31904 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 |
31905 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
31906 | ||
0ad5d837 VZ |
31907 | ac_find_libraries= |
31908 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 31909 | do |
3eca31dc | 31910 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
31911 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then |
31912 | ac_find_libraries=$ac_dir | |
31913 | break 2 | |
31914 | fi | |
31915 | done | |
31916 | done | |
31917 | ||
31918 | if test "$ac_find_libraries" != "" ; then | |
31919 | ||
0ad5d837 | 31920 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
31921 | ac_path_to_link="" |
31922 | else | |
0ad5d837 VZ |
31923 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
31924 | result=$? | |
31925 | if test $result = 0; then | |
31926 | ac_path_to_link="" | |
31927 | else | |
31928 | ac_path_to_link=" -L$ac_find_libraries" | |
31929 | fi | |
a848cd7e SC |
31930 | fi |
31931 | ||
31932 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
31933 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
31934 | echo "$as_me:$LINENO: result: yes" >&5 | |
31935 | echo "${ECHO_T}yes" >&6 | |
31936 | else | |
31937 | echo "$as_me:$LINENO: result: no" >&5 | |
31938 | echo "${ECHO_T}no" >&6 | |
31939 | fi | |
31940 | fi | |
31941 | ||
31942 | fi | |
31943 | ||
31944 | ||
31945 | ||
31946 | if test "x$OPENGL_LIBS" = "x"; then | |
31947 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 | |
31948 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
31949 | { (exit 1); exit 1; }; } | |
31950 | fi | |
31951 | fi | |
31952 | ||
31953 | if test "$wxUSE_OPENGL" = "yes"; then | |
31954 | USE_OPENGL=1 | |
31955 | cat >>confdefs.h <<\_ACEOF | |
31956 | #define wxUSE_OPENGL 1 | |
31957 | _ACEOF | |
31958 | ||
31959 | cat >>confdefs.h <<\_ACEOF | |
31960 | #define wxUSE_GLCANVAS 1 | |
31961 | _ACEOF | |
31962 | ||
31963 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" | |
31964 | fi | |
31965 | fi | |
31966 | ||
a848cd7e SC |
31967 | |
31968 | if test -n "$TOOLKIT" ; then | |
31969 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
31970 | fi | |
31971 | ||
a848cd7e SC |
31972 | |
31973 | ||
31974 | if test "$wxUSE_SHARED" = "yes"; then | |
31975 | case "${host}" in | |
31976 | *-pc-msdosdjgpp ) | |
31977 | wxUSE_SHARED=no | |
31978 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 | |
31979 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
31980 | ;; | |
31981 | esac | |
31982 | fi | |
31983 | ||
a848cd7e | 31984 | if test "$wxUSE_SHARED" = "yes"; then |
a848cd7e SC |
31985 | |
31986 | ||
31987 | found_versioning=no | |
31988 | ||
31989 | ||
31990 | if test $found_versioning = no ; then | |
31991 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 | |
31992 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
31993 | if test "${wx_cv_version_script+set}" = set; then | |
31994 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31995 | else | |
31996 | ||
31997 | echo "VER_1 { *; };" >conftest.sym | |
31998 | echo "int main() { return 0; }" >conftest.cpp | |
31999 | ||
32000 | if { ac_try=' | |
32001 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
32002 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' | |
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 | if test -s conftest.stderr ; then | |
32009 | wx_cv_version_script=no | |
32010 | else | |
32011 | wx_cv_version_script=yes | |
32012 | fi | |
32013 | else | |
32014 | wx_cv_version_script=no | |
32015 | fi | |
e5d4b470 MW |
32016 | |
32017 | if test $wx_cv_version_script = yes | |
32018 | then | |
32019 | echo "struct B { virtual ~B() { } }; \ | |
32020 | struct D : public B { }; \ | |
32021 | void F() { D d; }" > conftest.cpp | |
32022 | ||
32023 | if { ac_try=' | |
32024 | $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
32025 | -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null' | |
32026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32027 | (eval $ac_try) 2>&5 | |
32028 | ac_status=$? | |
32029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32030 | (exit $ac_status); }; } && | |
32031 | { ac_try=' | |
32032 | $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
32033 | -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null' | |
32034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32035 | (eval $ac_try) 2>&5 | |
32036 | ac_status=$? | |
32037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32038 | (exit $ac_status); }; } | |
32039 | then | |
32040 | if { ac_try=' | |
32041 | $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
32042 | -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null' | |
32043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32044 | (eval $ac_try) 2>&5 | |
32045 | ac_status=$? | |
32046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32047 | (exit $ac_status); }; } | |
32048 | then | |
32049 | wx_cv_version_script=yes | |
32050 | else | |
32051 | wx_cv_version_script=no | |
32052 | fi | |
32053 | fi | |
32054 | fi | |
32055 | ||
a848cd7e | 32056 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp |
e5d4b470 | 32057 | rm -f conftest1.output conftest2.output conftest3.output |
a848cd7e SC |
32058 | |
32059 | fi | |
32060 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
32061 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
32062 | if test $wx_cv_version_script = yes ; then | |
32063 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" | |
32064 | fi | |
32065 | fi | |
32066 | ||
32067 | ||
32068 | case "${host}" in | |
32069 | *-*-linux* | *-*-gnu* ) | |
32070 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 32071 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
6ebeb4c7 | 32072 | ;; |
a848cd7e SC |
32073 | |
32074 | *-*-solaris2* ) | |
32075 | if test "$GCC" = yes ; then | |
c92ad099 | 32076 | CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS" |
a848cd7e SC |
32077 | |
32078 | saveLdflags="$LDFLAGS" | |
32079 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
32080 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 | |
32081 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
32082 | cat >conftest.$ac_ext <<_ACEOF | |
32083 | /* confdefs.h. */ | |
32084 | _ACEOF | |
32085 | cat confdefs.h >>conftest.$ac_ext | |
32086 | cat >>conftest.$ac_ext <<_ACEOF | |
32087 | /* end confdefs.h. */ | |
32088 | ||
32089 | int | |
32090 | main () | |
32091 | { | |
32092 | ||
32093 | ; | |
32094 | return 0; | |
32095 | } | |
32096 | _ACEOF | |
32097 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32098 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32099 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32100 | ac_status=$? |
ac1cb8d3 VS |
32101 | grep -v '^ *+' conftest.er1 >conftest.err |
32102 | rm -f conftest.er1 | |
32103 | cat conftest.err >&5 | |
a848cd7e SC |
32104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32105 | (exit $ac_status); } && | |
5d7b7554 | 32106 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32108 | (eval $ac_try) 2>&5 | |
32109 | ac_status=$? | |
32110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32111 | (exit $ac_status); }; } && | |
32112 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32114 | (eval $ac_try) 2>&5 | |
32115 | ac_status=$? | |
32116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32117 | (exit $ac_status); }; }; then | |
32118 | ||
32119 | echo "$as_me:$LINENO: result: yes" >&5 | |
32120 | echo "${ECHO_T}yes" >&6 | |
32121 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 32122 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
32123 | |
32124 | else | |
32125 | echo "$as_me: failed program was:" >&5 | |
32126 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32127 | ||
32128 | ||
32129 | echo "$as_me:$LINENO: result: no" >&5 | |
32130 | echo "${ECHO_T}no" >&6 | |
32131 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
32132 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
32133 | LDFLAGS="$saveLdflags -Wl,-R,/" | |
32134 | cat >conftest.$ac_ext <<_ACEOF | |
32135 | /* confdefs.h. */ | |
32136 | _ACEOF | |
32137 | cat confdefs.h >>conftest.$ac_ext | |
32138 | cat >>conftest.$ac_ext <<_ACEOF | |
32139 | /* end confdefs.h. */ | |
32140 | ||
32141 | int | |
32142 | main () | |
32143 | { | |
32144 | ||
32145 | ; | |
32146 | return 0; | |
32147 | } | |
32148 | _ACEOF | |
32149 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32150 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32151 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32152 | ac_status=$? |
ac1cb8d3 VS |
32153 | grep -v '^ *+' conftest.er1 >conftest.err |
32154 | rm -f conftest.er1 | |
32155 | cat conftest.err >&5 | |
a848cd7e SC |
32156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32157 | (exit $ac_status); } && | |
5d7b7554 | 32158 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32160 | (eval $ac_try) 2>&5 | |
32161 | ac_status=$? | |
32162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32163 | (exit $ac_status); }; } && | |
32164 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32166 | (eval $ac_try) 2>&5 | |
32167 | ac_status=$? | |
32168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32169 | (exit $ac_status); }; }; then | |
32170 | ||
ffa0583f | 32171 | echo "$as_me:$LINENO: result: yes" >&5 |
a848cd7e | 32172 | echo "${ECHO_T}yes" >&6 |
ffa0583f RL |
32173 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" |
32174 | WXCONFIG_RPATH="-Wl,-R,\$libdir" | |
32175 | ||
a848cd7e SC |
32176 | else |
32177 | echo "$as_me: failed program was:" >&5 | |
32178 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32179 | ||
32180 | ||
32181 | echo "$as_me:$LINENO: result: no" >&5 | |
32182 | echo "${ECHO_T}no" >&6 | |
32183 | ||
32184 | fi | |
ac1cb8d3 VS |
32185 | rm -f conftest.err conftest.$ac_objext \ |
32186 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32187 | |
32188 | fi | |
ac1cb8d3 VS |
32189 | rm -f conftest.err conftest.$ac_objext \ |
32190 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32191 | LDFLAGS="$saveLdflags" |
32192 | else | |
a848cd7e | 32193 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
ffa0583f | 32194 | WXCONFIG_RPATH="-R\$libdir" |
a848cd7e SC |
32195 | fi |
32196 | ;; | |
32197 | ||
cfda0ea8 | 32198 | *-*-darwin* ) |
0caebc27 MW |
32199 | install_name_tool=`which install_name_tool` |
32200 | if test "$install_name_tool" -a -x "$install_name_tool"; then | |
32201 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" | |
32202 | cat <<EOF >change-install-names | |
a848cd7e SC |
32203 | #!/bin/sh |
32204 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
32205 | inst_cmd="install_name_tool " | |
32206 | for i in \${libnames} ; do | |
32207 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
32208 | done | |
32209 | \${inst_cmd} \${3} | |
32210 | EOF | |
0caebc27 MW |
32211 | chmod +x change-install-names |
32212 | fi | |
a848cd7e SC |
32213 | ;; |
32214 | ||
32215 | *-*-cygwin* | *-*-mingw32* ) | |
5ff751d6 VZ |
32216 | WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL" |
32217 | ;; | |
a848cd7e | 32218 | |
81f90336 MW |
32219 | *-*-hpux* ) |
32220 | SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib" | |
32221 | WXCONFIG_RPATH="-Wl,+b,\$libdir" | |
5ff751d6 | 32222 | ;; |
81f90336 | 32223 | |
a848cd7e | 32224 | esac |
ceec2216 | 32225 | |
ffa0583f RL |
32226 | if test $wxUSE_RPATH = "no"; then |
32227 | SAMPLES_RPATH_FLAG='' | |
32228 | SAMPLES_RPATH_POSTLINK='' | |
32229 | WXCONFIG_RPATH='' | |
32230 | fi | |
32231 | ||
32232 | SHARED=1 | |
32233 | ||
32234 | else | |
32235 | ||
ceec2216 RL |
32236 | config_linkage_component="-static" |
32237 | SHARED=0 | |
ffa0583f | 32238 | |
ceec2216 | 32239 | fi |
a848cd7e | 32240 | |
a848cd7e | 32241 | |
ceec2216 RL |
32242 | UNICODE=0 |
32243 | lib_unicode_suffix= | |
32244 | WX_CHARTYPE="ansi" | |
32245 | if test "$wxUSE_UNICODE" = "yes"; then | |
32246 | lib_unicode_suffix=u | |
32247 | WX_CHARTYPE="unicode" | |
32248 | UNICODE=1 | |
a848cd7e SC |
32249 | fi |
32250 | ||
ceec2216 RL |
32251 | lib_debug_suffix= |
32252 | WX_DEBUGTYPE="release" | |
32253 | DEBUG_FLAG=0 | |
32254 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
32255 | lib_debug_suffix=d | |
32256 | WX_DEBUGTYPE="debug" | |
32257 | DEBUG_FLAG=1 | |
32258 | fi | |
a848cd7e | 32259 | |
ceec2216 RL |
32260 | WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR} |
32261 | WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'` | |
a848cd7e | 32262 | |
ceec2216 RL |
32263 | DEBUG_INFO=0 |
32264 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
32265 | DEBUG_INFO=1 | |
32266 | fi | |
a848cd7e | 32267 | |
ceec2216 | 32268 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
a848cd7e | 32269 | |
ceec2216 | 32270 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}" |
a848cd7e | 32271 | |
ceec2216 | 32272 | TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}" |
a848cd7e | 32273 | |
ceec2216 RL |
32274 | if test "$cross_compiling" = "yes"; then |
32275 | HOST_SUFFIX="-$host_alias" | |
32276 | TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX" | |
32277 | TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME" | |
a848cd7e SC |
32278 | fi |
32279 | ||
dd21ced8 | 32280 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
abc736fd MW |
32281 | if test "${TOOLKIT_DIR}" = "os2"; then |
32282 | WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" | |
32283 | else | |
32284 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" | |
32285 | fi | |
ceec2216 RL |
32286 | |
32287 | ||
32288 | ||
1d1af5ea DE |
32289 | if test "$wxUSE_COCOA" = 1; then |
32290 | ||
32291 | ||
32292 | ac_ext=c | |
32293 | ac_cpp='$CPP $CPPFLAGS' | |
32294 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32295 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32296 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
32297 | ||
32298 | ac_ext=m | |
32299 | ||
32300 | echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5 | |
32301 | echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6 | |
32302 | cat >conftest.$ac_ext <<_ACEOF | |
32303 | /* confdefs.h. */ | |
32304 | _ACEOF | |
32305 | cat confdefs.h >>conftest.$ac_ext | |
32306 | cat >>conftest.$ac_ext <<_ACEOF | |
32307 | /* end confdefs.h. */ | |
32308 | #include <AppKit/NSEvent.h> | |
32309 | #include <CoreFoundation/CoreFoundation.h> | |
32310 | ||
32311 | int | |
32312 | main () | |
32313 | { | |
32314 | ||
32315 | ; | |
32316 | return 0; | |
32317 | } | |
32318 | _ACEOF | |
32319 | rm -f conftest.$ac_objext | |
32320 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32321 | (eval $ac_compile) 2>conftest.er1 | |
32322 | ac_status=$? | |
32323 | grep -v '^ *+' conftest.er1 >conftest.err | |
32324 | rm -f conftest.er1 | |
32325 | cat conftest.err >&5 | |
32326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32327 | (exit $ac_status); } && | |
5d7b7554 | 32328 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1d1af5ea DE |
32329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32330 | (eval $ac_try) 2>&5 | |
32331 | ac_status=$? | |
32332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32333 | (exit $ac_status); }; } && | |
32334 | { ac_try='test -s conftest.$ac_objext' | |
32335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32336 | (eval $ac_try) 2>&5 | |
32337 | ac_status=$? | |
32338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32339 | (exit $ac_status); }; }; then | |
32340 | echo "$as_me:$LINENO: result: no" >&5 | |
32341 | echo "${ECHO_T}no" >&6 | |
32342 | else | |
32343 | echo "$as_me: failed program was:" >&5 | |
32344 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32345 | ||
32346 | echo "$as_me:$LINENO: result: yes" >&5 | |
32347 | echo "${ECHO_T}yes" >&6 | |
32348 | echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5 | |
32349 | echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6 | |
32350 | cat >conftest.$ac_ext <<_ACEOF | |
32351 | /* confdefs.h. */ | |
32352 | _ACEOF | |
32353 | cat confdefs.h >>conftest.$ac_ext | |
32354 | cat >>conftest.$ac_ext <<_ACEOF | |
32355 | /* end confdefs.h. */ | |
32356 | #define __Point__ 1 | |
32357 | #include <AppKit/NSEvent.h> | |
32358 | #include <CoreFoundation/CoreFoundation.h> | |
32359 | ||
32360 | int | |
32361 | main () | |
32362 | { | |
32363 | ||
32364 | ; | |
32365 | return 0; | |
32366 | } | |
32367 | _ACEOF | |
32368 | rm -f conftest.$ac_objext | |
32369 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32370 | (eval $ac_compile) 2>conftest.er1 | |
32371 | ac_status=$? | |
32372 | grep -v '^ *+' conftest.er1 >conftest.err | |
32373 | rm -f conftest.er1 | |
32374 | cat conftest.err >&5 | |
32375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32376 | (exit $ac_status); } && | |
5d7b7554 | 32377 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
1d1af5ea DE |
32378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32379 | (eval $ac_try) 2>&5 | |
32380 | ac_status=$? | |
32381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32382 | (exit $ac_status); }; } && | |
32383 | { ac_try='test -s conftest.$ac_objext' | |
32384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32385 | (eval $ac_try) 2>&5 | |
32386 | ac_status=$? | |
32387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32388 | (exit $ac_status); }; }; then | |
32389 | echo "$as_me:$LINENO: result: yes" >&5 | |
32390 | echo "${ECHO_T}yes" >&6 | |
32391 | cat >>confdefs.h <<\_ACEOF | |
32392 | #define __Point__ 1 | |
32393 | _ACEOF | |
32394 | ||
32395 | ||
32396 | else | |
32397 | echo "$as_me: failed program was:" >&5 | |
32398 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32399 | ||
32400 | { { echo "$as_me:$LINENO: error: no | |
32401 | See \`config.log' for more details." >&5 | |
32402 | echo "$as_me: error: no | |
32403 | See \`config.log' for more details." >&2;} | |
32404 | { (exit 1); exit 1; }; } | |
32405 | ||
32406 | fi | |
32407 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32408 | ||
32409 | fi | |
32410 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5d7b7554 VZ |
32411 | ac_ext=cc |
32412 | ac_cpp='$CXXCPP $CPPFLAGS' | |
32413 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32414 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32415 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
1d1af5ea DE |
32416 | |
32417 | fi | |
32418 | ||
a848cd7e | 32419 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
abb9aae7 VZ |
32420 | WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r" |
32421 | WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc" | |
ceec2216 | 32422 | |
a848cd7e | 32423 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
a848cd7e SC |
32424 | |
32425 | # Extract the first word of "Rez", so it can be a program name with args. | |
32426 | set dummy Rez; ac_word=$2 | |
32427 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
32428 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 32429 | if test "${ac_cv_prog_REZ+set}" = set; then |
a848cd7e SC |
32430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
32431 | else | |
8ced02f6 DE |
32432 | if test -n "$REZ"; then |
32433 | ac_cv_prog_REZ="$REZ" # Let the user override the test. | |
a848cd7e SC |
32434 | else |
32435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
32436 | for as_dir in $PATH | |
32437 | do | |
32438 | IFS=$as_save_IFS | |
32439 | test -z "$as_dir" && as_dir=. | |
32440 | for ac_exec_ext in '' $ac_executable_extensions; do | |
32441 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 32442 | ac_cv_prog_REZ="Rez" |
a848cd7e SC |
32443 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
32444 | break 2 | |
32445 | fi | |
32446 | done | |
32447 | done | |
32448 | ||
8ced02f6 | 32449 | test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez" |
a848cd7e SC |
32450 | fi |
32451 | fi | |
8ced02f6 DE |
32452 | REZ=$ac_cv_prog_REZ |
32453 | if test -n "$REZ"; then | |
32454 | echo "$as_me:$LINENO: result: $REZ" >&5 | |
32455 | echo "${ECHO_T}$REZ" >&6 | |
a848cd7e SC |
32456 | else |
32457 | echo "$as_me:$LINENO: result: no" >&5 | |
32458 | echo "${ECHO_T}no" >&6 | |
32459 | fi | |
32460 | ||
32461 | # Extract the first word of "DeRez", so it can be a program name with args. | |
32462 | set dummy DeRez; ac_word=$2 | |
32463 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
32464 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
32465 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
32466 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32467 | else | |
32468 | if test -n "$DEREZ"; then | |
32469 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
32470 | else | |
32471 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
32472 | for as_dir in $PATH | |
32473 | do | |
32474 | IFS=$as_save_IFS | |
32475 | test -z "$as_dir" && as_dir=. | |
32476 | for ac_exec_ext in '' $ac_executable_extensions; do | |
32477 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
32478 | ac_cv_prog_DEREZ="DeRez" | |
32479 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
32480 | break 2 | |
32481 | fi | |
32482 | done | |
32483 | done | |
32484 | ||
32485 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
32486 | fi | |
32487 | fi | |
32488 | DEREZ=$ac_cv_prog_DEREZ | |
32489 | if test -n "$DEREZ"; then | |
32490 | echo "$as_me:$LINENO: result: $DEREZ" >&5 | |
32491 | echo "${ECHO_T}$DEREZ" >&6 | |
32492 | else | |
32493 | echo "$as_me:$LINENO: result: no" >&5 | |
32494 | echo "${ECHO_T}no" >&6 | |
32495 | fi | |
32496 | ||
32497 | # Extract the first word of "SetFile", so it can be a program name with args. | |
32498 | set dummy SetFile; ac_word=$2 | |
32499 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
32500 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
32501 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
32502 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32503 | else | |
32504 | if test -n "$SETFILE"; then | |
32505 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
32506 | else | |
32507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
32508 | for as_dir in $PATH | |
32509 | do | |
32510 | IFS=$as_save_IFS | |
32511 | test -z "$as_dir" && as_dir=. | |
32512 | for ac_exec_ext in '' $ac_executable_extensions; do | |
32513 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
32514 | ac_cv_prog_SETFILE="SetFile" | |
32515 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
32516 | break 2 | |
32517 | fi | |
32518 | done | |
32519 | done | |
32520 | ||
32521 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
32522 | fi | |
32523 | fi | |
32524 | SETFILE=$ac_cv_prog_SETFILE | |
32525 | if test -n "$SETFILE"; then | |
32526 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
32527 | echo "${ECHO_T}$SETFILE" >&6 | |
32528 | else | |
32529 | echo "$as_me:$LINENO: result: no" >&5 | |
32530 | echo "${ECHO_T}no" >&6 | |
32531 | fi | |
32532 | ||
32533 | ||
32534 | MACSETFILE="\$(SETFILE)" | |
32535 | ||
32536 | if test "$wxUSE_MAC" = 1; then | |
8ced02f6 | 32537 | POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o" |
004ee6da RL |
32538 | RESCOMP="$REZ" |
32539 | WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o" | |
a848cd7e | 32540 | else |
004ee6da RL |
32541 | POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}" |
32542 | RESCOMP="echo -n \| $REZ" | |
32543 | WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII" | |
a848cd7e | 32544 | fi |
004ee6da | 32545 | |
a848cd7e | 32546 | else |
ffa0583f | 32547 | MACSETFILE="@true" |
a848cd7e | 32548 | |
8ced02f6 | 32549 | if test "$wxUSE_PM" = 1; then |
004ee6da RL |
32550 | RESCOMP="emxbind" |
32551 | WXCONFIG_RESFLAGS="-ep" | |
32552 | ||
32553 | POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS" | |
a848cd7e | 32554 | else |
8ced02f6 | 32555 | POSTLINK_COMMAND="@true" |
a848cd7e | 32556 | fi |
004ee6da | 32557 | |
a848cd7e SC |
32558 | fi |
32559 | ||
32560 | ||
32561 | ||
32562 | echo "$as_me:$LINENO: checking for mode_t" >&5 | |
32563 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
32564 | if test "${ac_cv_type_mode_t+set}" = set; then | |
32565 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32566 | else | |
32567 | cat >conftest.$ac_ext <<_ACEOF | |
32568 | /* confdefs.h. */ | |
32569 | _ACEOF | |
32570 | cat confdefs.h >>conftest.$ac_ext | |
32571 | cat >>conftest.$ac_ext <<_ACEOF | |
32572 | /* end confdefs.h. */ | |
32573 | $ac_includes_default | |
32574 | int | |
32575 | main () | |
32576 | { | |
32577 | if ((mode_t *) 0) | |
32578 | return 0; | |
32579 | if (sizeof (mode_t)) | |
32580 | return 0; | |
32581 | ; | |
32582 | return 0; | |
32583 | } | |
32584 | _ACEOF | |
32585 | rm -f conftest.$ac_objext | |
32586 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32587 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32588 | ac_status=$? |
ac1cb8d3 VS |
32589 | grep -v '^ *+' conftest.er1 >conftest.err |
32590 | rm -f conftest.er1 | |
32591 | cat conftest.err >&5 | |
a848cd7e SC |
32592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32593 | (exit $ac_status); } && | |
5d7b7554 | 32594 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32596 | (eval $ac_try) 2>&5 | |
32597 | ac_status=$? | |
32598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32599 | (exit $ac_status); }; } && | |
32600 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32602 | (eval $ac_try) 2>&5 | |
32603 | ac_status=$? | |
32604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32605 | (exit $ac_status); }; }; then | |
32606 | ac_cv_type_mode_t=yes | |
32607 | else | |
32608 | echo "$as_me: failed program was:" >&5 | |
32609 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32610 | ||
32611 | ac_cv_type_mode_t=no | |
32612 | fi | |
ac1cb8d3 | 32613 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32614 | fi |
32615 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
32616 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
32617 | if test $ac_cv_type_mode_t = yes; then | |
32618 | : | |
32619 | else | |
32620 | ||
32621 | cat >>confdefs.h <<_ACEOF | |
32622 | #define mode_t int | |
32623 | _ACEOF | |
32624 | ||
32625 | fi | |
32626 | ||
32627 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
32628 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
32629 | if test "${ac_cv_type_off_t+set}" = set; then | |
32630 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32631 | else | |
32632 | cat >conftest.$ac_ext <<_ACEOF | |
32633 | /* confdefs.h. */ | |
32634 | _ACEOF | |
32635 | cat confdefs.h >>conftest.$ac_ext | |
32636 | cat >>conftest.$ac_ext <<_ACEOF | |
32637 | /* end confdefs.h. */ | |
32638 | $ac_includes_default | |
32639 | int | |
32640 | main () | |
32641 | { | |
32642 | if ((off_t *) 0) | |
32643 | return 0; | |
32644 | if (sizeof (off_t)) | |
32645 | return 0; | |
32646 | ; | |
32647 | return 0; | |
32648 | } | |
32649 | _ACEOF | |
32650 | rm -f conftest.$ac_objext | |
32651 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32652 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32653 | ac_status=$? |
ac1cb8d3 VS |
32654 | grep -v '^ *+' conftest.er1 >conftest.err |
32655 | rm -f conftest.er1 | |
32656 | cat conftest.err >&5 | |
a848cd7e SC |
32657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32658 | (exit $ac_status); } && | |
5d7b7554 | 32659 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32661 | (eval $ac_try) 2>&5 | |
32662 | ac_status=$? | |
32663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32664 | (exit $ac_status); }; } && | |
32665 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32667 | (eval $ac_try) 2>&5 | |
32668 | ac_status=$? | |
32669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32670 | (exit $ac_status); }; }; then | |
32671 | ac_cv_type_off_t=yes | |
32672 | else | |
32673 | echo "$as_me: failed program was:" >&5 | |
32674 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32675 | ||
32676 | ac_cv_type_off_t=no | |
32677 | fi | |
ac1cb8d3 | 32678 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32679 | fi |
32680 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
32681 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
32682 | if test $ac_cv_type_off_t = yes; then | |
32683 | : | |
32684 | else | |
32685 | ||
32686 | cat >>confdefs.h <<_ACEOF | |
32687 | #define off_t long | |
32688 | _ACEOF | |
32689 | ||
32690 | fi | |
32691 | ||
32692 | echo "$as_me:$LINENO: checking for pid_t" >&5 | |
32693 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
32694 | if test "${ac_cv_type_pid_t+set}" = set; then | |
32695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32696 | else | |
32697 | cat >conftest.$ac_ext <<_ACEOF | |
32698 | /* confdefs.h. */ | |
32699 | _ACEOF | |
32700 | cat confdefs.h >>conftest.$ac_ext | |
32701 | cat >>conftest.$ac_ext <<_ACEOF | |
32702 | /* end confdefs.h. */ | |
32703 | $ac_includes_default | |
32704 | int | |
32705 | main () | |
32706 | { | |
32707 | if ((pid_t *) 0) | |
32708 | return 0; | |
32709 | if (sizeof (pid_t)) | |
32710 | return 0; | |
32711 | ; | |
32712 | return 0; | |
32713 | } | |
32714 | _ACEOF | |
32715 | rm -f conftest.$ac_objext | |
32716 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32717 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32718 | ac_status=$? |
ac1cb8d3 VS |
32719 | grep -v '^ *+' conftest.er1 >conftest.err |
32720 | rm -f conftest.er1 | |
32721 | cat conftest.err >&5 | |
a848cd7e SC |
32722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32723 | (exit $ac_status); } && | |
5d7b7554 | 32724 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32726 | (eval $ac_try) 2>&5 | |
32727 | ac_status=$? | |
32728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32729 | (exit $ac_status); }; } && | |
32730 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32732 | (eval $ac_try) 2>&5 | |
32733 | ac_status=$? | |
32734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32735 | (exit $ac_status); }; }; then | |
32736 | ac_cv_type_pid_t=yes | |
32737 | else | |
32738 | echo "$as_me: failed program was:" >&5 | |
32739 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32740 | ||
32741 | ac_cv_type_pid_t=no | |
32742 | fi | |
ac1cb8d3 | 32743 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32744 | fi |
32745 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
32746 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
32747 | if test $ac_cv_type_pid_t = yes; then | |
32748 | : | |
32749 | else | |
32750 | ||
32751 | cat >>confdefs.h <<_ACEOF | |
32752 | #define pid_t int | |
32753 | _ACEOF | |
32754 | ||
32755 | fi | |
32756 | ||
32757 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
32758 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
32759 | if test "${ac_cv_type_size_t+set}" = set; then | |
32760 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32761 | else | |
32762 | cat >conftest.$ac_ext <<_ACEOF | |
32763 | /* confdefs.h. */ | |
32764 | _ACEOF | |
32765 | cat confdefs.h >>conftest.$ac_ext | |
32766 | cat >>conftest.$ac_ext <<_ACEOF | |
32767 | /* end confdefs.h. */ | |
32768 | $ac_includes_default | |
32769 | int | |
32770 | main () | |
32771 | { | |
32772 | if ((size_t *) 0) | |
32773 | return 0; | |
32774 | if (sizeof (size_t)) | |
32775 | return 0; | |
32776 | ; | |
32777 | return 0; | |
32778 | } | |
32779 | _ACEOF | |
32780 | rm -f conftest.$ac_objext | |
32781 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32782 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32783 | ac_status=$? |
ac1cb8d3 VS |
32784 | grep -v '^ *+' conftest.er1 >conftest.err |
32785 | rm -f conftest.er1 | |
32786 | cat conftest.err >&5 | |
a848cd7e SC |
32787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32788 | (exit $ac_status); } && | |
5d7b7554 | 32789 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32791 | (eval $ac_try) 2>&5 | |
32792 | ac_status=$? | |
32793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32794 | (exit $ac_status); }; } && | |
32795 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32797 | (eval $ac_try) 2>&5 | |
32798 | ac_status=$? | |
32799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32800 | (exit $ac_status); }; }; then | |
32801 | ac_cv_type_size_t=yes | |
32802 | else | |
32803 | echo "$as_me: failed program was:" >&5 | |
32804 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32805 | ||
32806 | ac_cv_type_size_t=no | |
32807 | fi | |
ac1cb8d3 | 32808 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32809 | fi |
32810 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
32811 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
32812 | if test $ac_cv_type_size_t = yes; then | |
32813 | : | |
32814 | else | |
32815 | ||
32816 | cat >>confdefs.h <<_ACEOF | |
32817 | #define size_t unsigned | |
32818 | _ACEOF | |
32819 | ||
32820 | fi | |
32821 | ||
32822 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 | |
32823 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
32824 | if test "${ac_cv_type_uid_t+set}" = set; then | |
32825 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32826 | else | |
32827 | cat >conftest.$ac_ext <<_ACEOF | |
32828 | /* confdefs.h. */ | |
32829 | _ACEOF | |
32830 | cat confdefs.h >>conftest.$ac_ext | |
32831 | cat >>conftest.$ac_ext <<_ACEOF | |
32832 | /* end confdefs.h. */ | |
32833 | #include <sys/types.h> | |
32834 | ||
32835 | _ACEOF | |
32836 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
32837 | $EGREP "uid_t" >/dev/null 2>&1; then | |
32838 | ac_cv_type_uid_t=yes | |
32839 | else | |
32840 | ac_cv_type_uid_t=no | |
32841 | fi | |
32842 | rm -f conftest* | |
32843 | ||
32844 | fi | |
32845 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 | |
32846 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
32847 | if test $ac_cv_type_uid_t = no; then | |
32848 | ||
32849 | cat >>confdefs.h <<\_ACEOF | |
32850 | #define uid_t int | |
32851 | _ACEOF | |
32852 | ||
32853 | ||
32854 | cat >>confdefs.h <<\_ACEOF | |
32855 | #define gid_t int | |
32856 | _ACEOF | |
32857 | ||
32858 | fi | |
32859 | ||
32860 | ||
d51253e8 RL |
32861 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
32862 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | |
32863 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
32864 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32865 | else | |
32866 | cat >conftest.$ac_ext <<_ACEOF | |
32867 | /* confdefs.h. */ | |
32868 | _ACEOF | |
32869 | cat confdefs.h >>conftest.$ac_ext | |
32870 | cat >>conftest.$ac_ext <<_ACEOF | |
32871 | /* end confdefs.h. */ | |
32872 | $ac_includes_default | |
32873 | int | |
32874 | main () | |
32875 | { | |
32876 | if ((ssize_t *) 0) | |
32877 | return 0; | |
32878 | if (sizeof (ssize_t)) | |
32879 | return 0; | |
32880 | ; | |
32881 | return 0; | |
32882 | } | |
32883 | _ACEOF | |
32884 | rm -f conftest.$ac_objext | |
32885 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32886 | (eval $ac_compile) 2>conftest.er1 | |
32887 | ac_status=$? | |
32888 | grep -v '^ *+' conftest.er1 >conftest.err | |
32889 | rm -f conftest.er1 | |
32890 | cat conftest.err >&5 | |
32891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32892 | (exit $ac_status); } && | |
5d7b7554 | 32893 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
d51253e8 RL |
32894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32895 | (eval $ac_try) 2>&5 | |
32896 | ac_status=$? | |
32897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32898 | (exit $ac_status); }; } && | |
32899 | { ac_try='test -s conftest.$ac_objext' | |
32900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32901 | (eval $ac_try) 2>&5 | |
32902 | ac_status=$? | |
32903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32904 | (exit $ac_status); }; }; then | |
32905 | ac_cv_type_ssize_t=yes | |
32906 | else | |
32907 | echo "$as_me: failed program was:" >&5 | |
32908 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32909 | ||
32910 | ac_cv_type_ssize_t=no | |
32911 | fi | |
32912 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32913 | fi | |
32914 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 | |
32915 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 | |
32916 | if test $ac_cv_type_ssize_t = yes; then | |
32917 | ||
32918 | cat >>confdefs.h <<_ACEOF | |
32919 | #define HAVE_SSIZE_T 1 | |
32920 | _ACEOF | |
32921 | ||
32922 | ||
32923 | fi | |
32924 | ||
32925 | ||
a848cd7e SC |
32926 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 |
32927 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
32928 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
32929 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32930 | else | |
32931 | ||
32932 | cat >conftest.$ac_ext <<_ACEOF | |
32933 | /* confdefs.h. */ | |
32934 | _ACEOF | |
32935 | cat confdefs.h >>conftest.$ac_ext | |
32936 | cat >>conftest.$ac_ext <<_ACEOF | |
32937 | /* end confdefs.h. */ | |
32938 | #include <stddef.h> | |
32939 | int | |
32940 | main () | |
32941 | { | |
32942 | ||
32943 | return 0; } | |
32944 | ||
32945 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
32946 | ||
32947 | int bar() { | |
32948 | ||
32949 | ; | |
32950 | return 0; | |
32951 | } | |
32952 | _ACEOF | |
32953 | rm -f conftest.$ac_objext | |
32954 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32955 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32956 | ac_status=$? |
ac1cb8d3 VS |
32957 | grep -v '^ *+' conftest.er1 >conftest.err |
32958 | rm -f conftest.er1 | |
32959 | cat conftest.err >&5 | |
a848cd7e SC |
32960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32961 | (exit $ac_status); } && | |
5d7b7554 | 32962 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
32963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32964 | (eval $ac_try) 2>&5 | |
32965 | ac_status=$? | |
32966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32967 | (exit $ac_status); }; } && | |
32968 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32970 | (eval $ac_try) 2>&5 | |
32971 | ac_status=$? | |
32972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32973 | (exit $ac_status); }; }; then | |
32974 | wx_cv_size_t_is_uint=no | |
32975 | else | |
32976 | echo "$as_me: failed program was:" >&5 | |
32977 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32978 | ||
32979 | wx_cv_size_t_is_uint=yes | |
32980 | ||
32981 | fi | |
ac1cb8d3 | 32982 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32983 | |
32984 | ||
32985 | fi | |
32986 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
32987 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
32988 | ||
32989 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
32990 | cat >>confdefs.h <<\_ACEOF | |
32991 | #define wxSIZE_T_IS_UINT 1 | |
32992 | _ACEOF | |
32993 | ||
32994 | else | |
32995 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 | |
32996 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
32997 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
32998 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32999 | else | |
33000 | cat >conftest.$ac_ext <<_ACEOF | |
33001 | /* confdefs.h. */ | |
33002 | _ACEOF | |
33003 | cat confdefs.h >>conftest.$ac_ext | |
33004 | cat >>conftest.$ac_ext <<_ACEOF | |
33005 | /* end confdefs.h. */ | |
33006 | #include <stddef.h> | |
33007 | int | |
33008 | main () | |
33009 | { | |
33010 | ||
33011 | return 0; } | |
33012 | ||
33013 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
33014 | ||
33015 | int bar() { | |
33016 | ||
33017 | ; | |
33018 | return 0; | |
33019 | } | |
33020 | _ACEOF | |
33021 | rm -f conftest.$ac_objext | |
33022 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33023 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33024 | ac_status=$? |
ac1cb8d3 VS |
33025 | grep -v '^ *+' conftest.er1 >conftest.err |
33026 | rm -f conftest.er1 | |
33027 | cat conftest.err >&5 | |
a848cd7e SC |
33028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33029 | (exit $ac_status); } && | |
5d7b7554 | 33030 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33032 | (eval $ac_try) 2>&5 | |
33033 | ac_status=$? | |
33034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33035 | (exit $ac_status); }; } && | |
33036 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33038 | (eval $ac_try) 2>&5 | |
33039 | ac_status=$? | |
33040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33041 | (exit $ac_status); }; }; then | |
33042 | wx_cv_size_t_is_ulong=no | |
33043 | else | |
33044 | echo "$as_me: failed program was:" >&5 | |
33045 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33046 | ||
33047 | wx_cv_size_t_is_ulong=yes | |
33048 | ||
33049 | fi | |
ac1cb8d3 | 33050 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33051 | |
33052 | fi | |
33053 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
33054 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
33055 | ||
33056 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
33057 | cat >>confdefs.h <<\_ACEOF | |
33058 | #define wxSIZE_T_IS_ULONG 1 | |
33059 | _ACEOF | |
33060 | ||
33061 | fi | |
33062 | fi | |
33063 | ||
a848cd7e SC |
33064 | |
33065 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 | |
33066 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
33067 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
33068 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33069 | else | |
33070 | ||
33071 | cat >conftest.$ac_ext <<_ACEOF | |
33072 | /* confdefs.h. */ | |
33073 | _ACEOF | |
33074 | cat confdefs.h >>conftest.$ac_ext | |
33075 | cat >>conftest.$ac_ext <<_ACEOF | |
33076 | /* end confdefs.h. */ | |
33077 | #include <pwd.h> | |
33078 | int | |
33079 | main () | |
33080 | { | |
33081 | ||
33082 | char *p; | |
33083 | struct passwd *pw; | |
33084 | p = pw->pw_gecos; | |
33085 | ||
33086 | ; | |
33087 | return 0; | |
33088 | } | |
33089 | _ACEOF | |
33090 | rm -f conftest.$ac_objext | |
33091 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33092 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33093 | ac_status=$? |
ac1cb8d3 VS |
33094 | grep -v '^ *+' conftest.er1 >conftest.err |
33095 | rm -f conftest.er1 | |
33096 | cat conftest.err >&5 | |
a848cd7e SC |
33097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33098 | (exit $ac_status); } && | |
5d7b7554 | 33099 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33101 | (eval $ac_try) 2>&5 | |
33102 | ac_status=$? | |
33103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33104 | (exit $ac_status); }; } && | |
33105 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33107 | (eval $ac_try) 2>&5 | |
33108 | ac_status=$? | |
33109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33110 | (exit $ac_status); }; }; then | |
33111 | ||
33112 | wx_cv_struct_pw_gecos=yes | |
33113 | ||
33114 | else | |
33115 | echo "$as_me: failed program was:" >&5 | |
33116 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33117 | ||
33118 | ||
33119 | wx_cv_struct_pw_gecos=no | |
33120 | ||
33121 | ||
33122 | fi | |
ac1cb8d3 | 33123 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33124 | |
33125 | ||
33126 | fi | |
33127 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
33128 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
33129 | ||
33130 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
33131 | cat >>confdefs.h <<\_ACEOF | |
33132 | #define HAVE_PW_GECOS 1 | |
33133 | _ACEOF | |
33134 | ||
33135 | fi | |
33136 | ||
33137 | ||
47a7e797 | 33138 | if test "$wxUSE_WCHAR_T" = "yes"; then |
a848cd7e SC |
33139 | cat >>confdefs.h <<\_ACEOF |
33140 | #define wxUSE_WCHAR_T 1 | |
33141 | _ACEOF | |
33142 | ||
33143 | ||
33144 | WCSLEN_FOUND=0 | |
33145 | WCHAR_LINK= | |
33146 | ||
33147 | for ac_func in wcslen | |
33148 | do | |
33149 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33150 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33151 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33152 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33153 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33154 | else | |
33155 | cat >conftest.$ac_ext <<_ACEOF | |
33156 | /* confdefs.h. */ | |
33157 | _ACEOF | |
33158 | cat confdefs.h >>conftest.$ac_ext | |
33159 | cat >>conftest.$ac_ext <<_ACEOF | |
33160 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33161 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33162 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33163 | #define $ac_func innocuous_$ac_func | |
33164 | ||
a848cd7e SC |
33165 | /* System header to define __stub macros and hopefully few prototypes, |
33166 | which can conflict with char $ac_func (); below. | |
33167 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33168 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33169 | |
a848cd7e SC |
33170 | #ifdef __STDC__ |
33171 | # include <limits.h> | |
33172 | #else | |
33173 | # include <assert.h> | |
33174 | #endif | |
ac1cb8d3 VS |
33175 | |
33176 | #undef $ac_func | |
33177 | ||
a848cd7e SC |
33178 | /* Override any gcc2 internal prototype to avoid an error. */ |
33179 | #ifdef __cplusplus | |
33180 | extern "C" | |
33181 | { | |
33182 | #endif | |
33183 | /* We use char because int might match the return type of a gcc2 | |
33184 | builtin and then its argument prototype would still apply. */ | |
33185 | char $ac_func (); | |
33186 | /* The GNU C library defines this for functions which it implements | |
33187 | to always fail with ENOSYS. Some functions are actually named | |
33188 | something starting with __ and the normal name is an alias. */ | |
33189 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33190 | choke me | |
33191 | #else | |
33192 | char (*f) () = $ac_func; | |
33193 | #endif | |
33194 | #ifdef __cplusplus | |
33195 | } | |
33196 | #endif | |
33197 | ||
33198 | int | |
33199 | main () | |
33200 | { | |
33201 | return f != $ac_func; | |
33202 | ; | |
33203 | return 0; | |
33204 | } | |
33205 | _ACEOF | |
33206 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33207 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33208 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33209 | ac_status=$? |
ac1cb8d3 VS |
33210 | grep -v '^ *+' conftest.er1 >conftest.err |
33211 | rm -f conftest.er1 | |
33212 | cat conftest.err >&5 | |
a848cd7e SC |
33213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33214 | (exit $ac_status); } && | |
5d7b7554 | 33215 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33217 | (eval $ac_try) 2>&5 | |
33218 | ac_status=$? | |
33219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33220 | (exit $ac_status); }; } && | |
33221 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33223 | (eval $ac_try) 2>&5 | |
33224 | ac_status=$? | |
33225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33226 | (exit $ac_status); }; }; then | |
33227 | eval "$as_ac_var=yes" | |
33228 | else | |
33229 | echo "$as_me: failed program was:" >&5 | |
33230 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33231 | ||
33232 | eval "$as_ac_var=no" | |
33233 | fi | |
ac1cb8d3 VS |
33234 | rm -f conftest.err conftest.$ac_objext \ |
33235 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33236 | fi |
33237 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33238 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33239 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33240 | cat >>confdefs.h <<_ACEOF | |
33241 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33242 | _ACEOF | |
33243 | WCSLEN_FOUND=1 | |
33244 | fi | |
33245 | done | |
33246 | ||
33247 | ||
33248 | if test "$WCSLEN_FOUND" = 0; then | |
33249 | if test "$TOOLKIT" = "MSW"; then | |
33250 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 | |
33251 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
33252 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
33253 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33254 | else | |
33255 | ac_check_lib_save_LIBS=$LIBS | |
33256 | LIBS="-lmsvcrt $LIBS" | |
33257 | cat >conftest.$ac_ext <<_ACEOF | |
33258 | /* confdefs.h. */ | |
33259 | _ACEOF | |
33260 | cat confdefs.h >>conftest.$ac_ext | |
33261 | cat >>conftest.$ac_ext <<_ACEOF | |
33262 | /* end confdefs.h. */ | |
33263 | ||
33264 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33265 | #ifdef __cplusplus | |
33266 | extern "C" | |
33267 | #endif | |
33268 | /* We use char because int might match the return type of a gcc2 | |
33269 | builtin and then its argument prototype would still apply. */ | |
33270 | char wcslen (); | |
33271 | int | |
33272 | main () | |
33273 | { | |
33274 | wcslen (); | |
33275 | ; | |
33276 | return 0; | |
33277 | } | |
33278 | _ACEOF | |
33279 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33280 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33281 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33282 | ac_status=$? |
ac1cb8d3 VS |
33283 | grep -v '^ *+' conftest.er1 >conftest.err |
33284 | rm -f conftest.er1 | |
33285 | cat conftest.err >&5 | |
a848cd7e SC |
33286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33287 | (exit $ac_status); } && | |
5d7b7554 | 33288 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33290 | (eval $ac_try) 2>&5 | |
33291 | ac_status=$? | |
33292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33293 | (exit $ac_status); }; } && | |
33294 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33296 | (eval $ac_try) 2>&5 | |
33297 | ac_status=$? | |
33298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33299 | (exit $ac_status); }; }; then | |
33300 | ac_cv_lib_msvcrt_wcslen=yes | |
33301 | else | |
33302 | echo "$as_me: failed program was:" >&5 | |
33303 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33304 | ||
33305 | ac_cv_lib_msvcrt_wcslen=no | |
33306 | fi | |
ac1cb8d3 VS |
33307 | rm -f conftest.err conftest.$ac_objext \ |
33308 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33309 | LIBS=$ac_check_lib_save_LIBS |
33310 | fi | |
33311 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
33312 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
33313 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
33314 | WCHAR_OK=1 | |
33315 | fi | |
33316 | ||
33317 | else | |
33318 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 | |
33319 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
33320 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
33321 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33322 | else | |
33323 | ac_check_lib_save_LIBS=$LIBS | |
33324 | LIBS="-lw $LIBS" | |
33325 | cat >conftest.$ac_ext <<_ACEOF | |
33326 | /* confdefs.h. */ | |
33327 | _ACEOF | |
33328 | cat confdefs.h >>conftest.$ac_ext | |
33329 | cat >>conftest.$ac_ext <<_ACEOF | |
33330 | /* end confdefs.h. */ | |
33331 | ||
33332 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33333 | #ifdef __cplusplus | |
33334 | extern "C" | |
33335 | #endif | |
33336 | /* We use char because int might match the return type of a gcc2 | |
33337 | builtin and then its argument prototype would still apply. */ | |
33338 | char wcslen (); | |
33339 | int | |
33340 | main () | |
33341 | { | |
33342 | wcslen (); | |
33343 | ; | |
33344 | return 0; | |
33345 | } | |
33346 | _ACEOF | |
33347 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33348 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33349 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33350 | ac_status=$? |
ac1cb8d3 VS |
33351 | grep -v '^ *+' conftest.er1 >conftest.err |
33352 | rm -f conftest.er1 | |
33353 | cat conftest.err >&5 | |
a848cd7e SC |
33354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33355 | (exit $ac_status); } && | |
5d7b7554 | 33356 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33358 | (eval $ac_try) 2>&5 | |
33359 | ac_status=$? | |
33360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33361 | (exit $ac_status); }; } && | |
33362 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33364 | (eval $ac_try) 2>&5 | |
33365 | ac_status=$? | |
33366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33367 | (exit $ac_status); }; }; then | |
33368 | ac_cv_lib_w_wcslen=yes | |
33369 | else | |
33370 | echo "$as_me: failed program was:" >&5 | |
33371 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33372 | ||
33373 | ac_cv_lib_w_wcslen=no | |
33374 | fi | |
ac1cb8d3 VS |
33375 | rm -f conftest.err conftest.$ac_objext \ |
33376 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33377 | LIBS=$ac_check_lib_save_LIBS |
33378 | fi | |
33379 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
33380 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
33381 | if test $ac_cv_lib_w_wcslen = yes; then | |
33382 | ||
33383 | WCHAR_LINK=" -lw" | |
33384 | WCSLEN_FOUND=1 | |
33385 | ||
33386 | fi | |
33387 | ||
33388 | fi | |
33389 | fi | |
33390 | ||
33391 | if test "$WCSLEN_FOUND" = 1; then | |
33392 | cat >>confdefs.h <<\_ACEOF | |
33393 | #define HAVE_WCSLEN 1 | |
33394 | _ACEOF | |
33395 | ||
33396 | fi | |
33397 | ||
efdf6afe | 33398 | if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then |
c92ad099 | 33399 | CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS" |
473276a9 VS |
33400 | fi |
33401 | ||
efdf6afe VZ |
33402 | echo "$as_me:$LINENO: checking for mbstate_t" >&5 |
33403 | echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6 | |
33404 | if test "${ac_cv_type_mbstate_t+set}" = set; then | |
33405 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33406 | else | |
33407 | cat >conftest.$ac_ext <<_ACEOF | |
33408 | /* confdefs.h. */ | |
33409 | _ACEOF | |
33410 | cat confdefs.h >>conftest.$ac_ext | |
33411 | cat >>conftest.$ac_ext <<_ACEOF | |
33412 | /* end confdefs.h. */ | |
33413 | #include <wchar.h> | |
33414 | ||
33415 | int | |
33416 | main () | |
33417 | { | |
33418 | if ((mbstate_t *) 0) | |
33419 | return 0; | |
33420 | if (sizeof (mbstate_t)) | |
33421 | return 0; | |
33422 | ; | |
33423 | return 0; | |
33424 | } | |
33425 | _ACEOF | |
33426 | rm -f conftest.$ac_objext | |
33427 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33428 | (eval $ac_compile) 2>conftest.er1 | |
33429 | ac_status=$? | |
33430 | grep -v '^ *+' conftest.er1 >conftest.err | |
33431 | rm -f conftest.er1 | |
33432 | cat conftest.err >&5 | |
33433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33434 | (exit $ac_status); } && | |
5d7b7554 | 33435 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
efdf6afe VZ |
33436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33437 | (eval $ac_try) 2>&5 | |
33438 | ac_status=$? | |
33439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33440 | (exit $ac_status); }; } && | |
33441 | { ac_try='test -s conftest.$ac_objext' | |
33442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33443 | (eval $ac_try) 2>&5 | |
33444 | ac_status=$? | |
33445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33446 | (exit $ac_status); }; }; then | |
33447 | ac_cv_type_mbstate_t=yes | |
33448 | else | |
33449 | echo "$as_me: failed program was:" >&5 | |
33450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33451 | ||
33452 | ac_cv_type_mbstate_t=no | |
33453 | fi | |
33454 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33455 | fi | |
33456 | echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 | |
33457 | echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6 | |
33458 | if test $ac_cv_type_mbstate_t = yes; then | |
33459 | ||
33460 | cat >>confdefs.h <<_ACEOF | |
33461 | #define HAVE_MBSTATE_T 1 | |
33462 | _ACEOF | |
33463 | ||
a848cd7e SC |
33464 | |
33465 | for ac_func in wcsrtombs | |
33466 | do | |
33467 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33468 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33469 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33470 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33471 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33472 | else | |
33473 | cat >conftest.$ac_ext <<_ACEOF | |
33474 | /* confdefs.h. */ | |
33475 | _ACEOF | |
33476 | cat confdefs.h >>conftest.$ac_ext | |
33477 | cat >>conftest.$ac_ext <<_ACEOF | |
33478 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33479 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33480 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33481 | #define $ac_func innocuous_$ac_func | |
33482 | ||
a848cd7e SC |
33483 | /* System header to define __stub macros and hopefully few prototypes, |
33484 | which can conflict with char $ac_func (); below. | |
33485 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33486 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33487 | |
a848cd7e SC |
33488 | #ifdef __STDC__ |
33489 | # include <limits.h> | |
33490 | #else | |
33491 | # include <assert.h> | |
33492 | #endif | |
ac1cb8d3 VS |
33493 | |
33494 | #undef $ac_func | |
33495 | ||
a848cd7e SC |
33496 | /* Override any gcc2 internal prototype to avoid an error. */ |
33497 | #ifdef __cplusplus | |
33498 | extern "C" | |
33499 | { | |
33500 | #endif | |
33501 | /* We use char because int might match the return type of a gcc2 | |
33502 | builtin and then its argument prototype would still apply. */ | |
33503 | char $ac_func (); | |
33504 | /* The GNU C library defines this for functions which it implements | |
33505 | to always fail with ENOSYS. Some functions are actually named | |
33506 | something starting with __ and the normal name is an alias. */ | |
33507 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33508 | choke me | |
33509 | #else | |
33510 | char (*f) () = $ac_func; | |
33511 | #endif | |
33512 | #ifdef __cplusplus | |
33513 | } | |
33514 | #endif | |
33515 | ||
33516 | int | |
33517 | main () | |
33518 | { | |
33519 | return f != $ac_func; | |
33520 | ; | |
33521 | return 0; | |
33522 | } | |
33523 | _ACEOF | |
33524 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33525 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33526 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33527 | ac_status=$? |
ac1cb8d3 VS |
33528 | grep -v '^ *+' conftest.er1 >conftest.err |
33529 | rm -f conftest.er1 | |
33530 | cat conftest.err >&5 | |
a848cd7e SC |
33531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33532 | (exit $ac_status); } && | |
5d7b7554 | 33533 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33535 | (eval $ac_try) 2>&5 | |
33536 | ac_status=$? | |
33537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33538 | (exit $ac_status); }; } && | |
33539 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33541 | (eval $ac_try) 2>&5 | |
33542 | ac_status=$? | |
33543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33544 | (exit $ac_status); }; }; then | |
33545 | eval "$as_ac_var=yes" | |
33546 | else | |
33547 | echo "$as_me: failed program was:" >&5 | |
33548 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33549 | ||
33550 | eval "$as_ac_var=no" | |
33551 | fi | |
ac1cb8d3 VS |
33552 | rm -f conftest.err conftest.$ac_objext \ |
33553 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33554 | fi |
33555 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33556 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33557 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33558 | cat >>confdefs.h <<_ACEOF | |
33559 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33560 | _ACEOF | |
33561 | ||
33562 | fi | |
33563 | done | |
33564 | ||
efdf6afe VZ |
33565 | fi |
33566 | ||
a848cd7e SC |
33567 | else |
33568 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 | |
33569 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
33570 | fi | |
33571 | ||
a848cd7e | 33572 | |
4a767dd5 VZ |
33573 | |
33574 | for ac_func in snprintf vsnprintf | |
a848cd7e SC |
33575 | do |
33576 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33577 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33578 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33579 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33580 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33581 | else | |
33582 | cat >conftest.$ac_ext <<_ACEOF | |
33583 | /* confdefs.h. */ | |
33584 | _ACEOF | |
33585 | cat confdefs.h >>conftest.$ac_ext | |
33586 | cat >>conftest.$ac_ext <<_ACEOF | |
33587 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33588 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33589 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33590 | #define $ac_func innocuous_$ac_func | |
33591 | ||
a848cd7e SC |
33592 | /* System header to define __stub macros and hopefully few prototypes, |
33593 | which can conflict with char $ac_func (); below. | |
33594 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33595 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33596 | |
a848cd7e SC |
33597 | #ifdef __STDC__ |
33598 | # include <limits.h> | |
33599 | #else | |
33600 | # include <assert.h> | |
33601 | #endif | |
ac1cb8d3 VS |
33602 | |
33603 | #undef $ac_func | |
33604 | ||
a848cd7e SC |
33605 | /* Override any gcc2 internal prototype to avoid an error. */ |
33606 | #ifdef __cplusplus | |
33607 | extern "C" | |
33608 | { | |
33609 | #endif | |
33610 | /* We use char because int might match the return type of a gcc2 | |
33611 | builtin and then its argument prototype would still apply. */ | |
33612 | char $ac_func (); | |
33613 | /* The GNU C library defines this for functions which it implements | |
33614 | to always fail with ENOSYS. Some functions are actually named | |
33615 | something starting with __ and the normal name is an alias. */ | |
33616 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33617 | choke me | |
33618 | #else | |
33619 | char (*f) () = $ac_func; | |
33620 | #endif | |
33621 | #ifdef __cplusplus | |
33622 | } | |
33623 | #endif | |
33624 | ||
33625 | int | |
33626 | main () | |
33627 | { | |
33628 | return f != $ac_func; | |
33629 | ; | |
33630 | return 0; | |
33631 | } | |
33632 | _ACEOF | |
33633 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33634 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33635 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33636 | ac_status=$? |
ac1cb8d3 VS |
33637 | grep -v '^ *+' conftest.er1 >conftest.err |
33638 | rm -f conftest.er1 | |
33639 | cat conftest.err >&5 | |
a848cd7e SC |
33640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33641 | (exit $ac_status); } && | |
5d7b7554 | 33642 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
33643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33644 | (eval $ac_try) 2>&5 | |
33645 | ac_status=$? | |
33646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33647 | (exit $ac_status); }; } && | |
33648 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33650 | (eval $ac_try) 2>&5 | |
33651 | ac_status=$? | |
33652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33653 | (exit $ac_status); }; }; then | |
33654 | eval "$as_ac_var=yes" | |
33655 | else | |
33656 | echo "$as_me: failed program was:" >&5 | |
33657 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33658 | ||
33659 | eval "$as_ac_var=no" | |
33660 | fi | |
ac1cb8d3 VS |
33661 | rm -f conftest.err conftest.$ac_objext \ |
33662 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33663 | fi |
33664 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33665 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33666 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33667 | cat >>confdefs.h <<_ACEOF | |
33668 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33669 | _ACEOF | |
33670 | ||
33671 | fi | |
33672 | done | |
33673 | ||
33674 | ||
33675 | if test "$ac_cv_func_vsnprintf" = "yes"; then | |
33676 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 | |
33677 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
33678 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
33679 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33680 | else | |
33681 | ||
efdf6afe | 33682 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
33683 | /* confdefs.h. */ |
33684 | _ACEOF | |
33685 | cat confdefs.h >>conftest.$ac_ext | |
33686 | cat >>conftest.$ac_ext <<_ACEOF | |
33687 | /* end confdefs.h. */ | |
33688 | ||
33689 | #include <stdio.h> | |
33690 | #include <stdarg.h> | |
efdf6afe VZ |
33691 | #ifdef __MSL__ |
33692 | #if __MSL__ >= 0x6000 | |
33693 | namespace std {} | |
33694 | using namespace std; | |
33695 | #endif | |
33696 | #endif | |
a848cd7e SC |
33697 | |
33698 | int | |
33699 | main () | |
33700 | { | |
33701 | ||
33702 | char *buf; | |
33703 | va_list ap; | |
62fa8b3a | 33704 | vsnprintf(buf, 10u, "%s", ap); |
c122b164 DE |
33705 | |
33706 | ; | |
33707 | return 0; | |
33708 | } | |
33709 | _ACEOF | |
33710 | rm -f conftest.$ac_objext | |
33711 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33712 | (eval $ac_compile) 2>conftest.er1 | |
33713 | ac_status=$? | |
33714 | grep -v '^ *+' conftest.er1 >conftest.err | |
33715 | rm -f conftest.er1 | |
33716 | cat conftest.err >&5 | |
33717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33718 | (exit $ac_status); } && | |
5d7b7554 | 33719 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
c122b164 DE |
33720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33721 | (eval $ac_try) 2>&5 | |
33722 | ac_status=$? | |
33723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33724 | (exit $ac_status); }; } && | |
33725 | { ac_try='test -s conftest.$ac_objext' | |
33726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33727 | (eval $ac_try) 2>&5 | |
33728 | ac_status=$? | |
33729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33730 | (exit $ac_status); }; }; then | |
33731 | wx_cv_func_vsnprintf_decl=yes | |
33732 | else | |
33733 | echo "$as_me: failed program was:" >&5 | |
33734 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33735 | ||
a848cd7e SC |
33736 | wx_cv_func_vsnprintf_decl=no |
33737 | ||
33738 | fi | |
ac1cb8d3 | 33739 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33740 | |
33741 | ||
33742 | fi | |
33743 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
33744 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
33745 | ||
33746 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
33747 | cat >>confdefs.h <<\_ACEOF | |
33748 | #define HAVE_VSNPRINTF_DECL 1 | |
33749 | _ACEOF | |
33750 | ||
62fa8b3a MW |
33751 | |
33752 | echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5 | |
33753 | echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6 | |
33754 | if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then | |
33755 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33756 | else | |
33757 | ||
33758 | cat >conftest.$ac_ext <<_ACEOF | |
33759 | /* confdefs.h. */ | |
33760 | _ACEOF | |
33761 | cat confdefs.h >>conftest.$ac_ext | |
33762 | cat >>conftest.$ac_ext <<_ACEOF | |
33763 | /* end confdefs.h. */ | |
33764 | ||
33765 | #include <stdio.h> | |
33766 | #include <stdarg.h> | |
33767 | #ifdef __MSL__ | |
33768 | #if __MSL__ >= 0x6000 | |
33769 | namespace std {} | |
33770 | using namespace std; | |
33771 | #endif | |
33772 | #endif | |
33773 | ||
33774 | int | |
33775 | main () | |
33776 | { | |
33777 | ||
33778 | char *buf; | |
33779 | va_list ap; | |
33780 | const char *fmt = "%s"; | |
33781 | vsnprintf(buf, 10u, fmt, ap); | |
33782 | ||
33783 | ; | |
33784 | return 0; | |
33785 | } | |
33786 | _ACEOF | |
33787 | rm -f conftest.$ac_objext | |
33788 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33789 | (eval $ac_compile) 2>conftest.er1 | |
33790 | ac_status=$? | |
33791 | grep -v '^ *+' conftest.er1 >conftest.err | |
33792 | rm -f conftest.er1 | |
33793 | cat conftest.err >&5 | |
33794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33795 | (exit $ac_status); } && | |
5d7b7554 | 33796 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
62fa8b3a MW |
33797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33798 | (eval $ac_try) 2>&5 | |
33799 | ac_status=$? | |
33800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33801 | (exit $ac_status); }; } && | |
33802 | { ac_try='test -s conftest.$ac_objext' | |
33803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33804 | (eval $ac_try) 2>&5 | |
33805 | ac_status=$? | |
33806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33807 | (exit $ac_status); }; }; then | |
33808 | wx_cv_func_broken_vsnprintf_decl=no | |
33809 | else | |
33810 | echo "$as_me: failed program was:" >&5 | |
33811 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33812 | ||
33813 | wx_cv_func_broken_vsnprintf_decl=yes | |
33814 | ||
33815 | fi | |
33816 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33817 | ||
33818 | ||
33819 | fi | |
33820 | echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5 | |
33821 | echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6 | |
33822 | ||
33823 | if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then | |
33824 | cat >>confdefs.h <<\_ACEOF | |
33825 | #define HAVE_BROKEN_VSNPRINTF_DECL 1 | |
33826 | _ACEOF | |
33827 | ||
33828 | fi | |
a848cd7e SC |
33829 | fi |
33830 | fi | |
33831 | ||
4a767dd5 VZ |
33832 | if test "$ac_cv_func_snprintf" = "yes"; then |
33833 | echo "$as_me:$LINENO: checking for snprintf declaration" >&5 | |
33834 | echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6 | |
33835 | if test "${wx_cv_func_snprintf_decl+set}" = set; then | |
33836 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33837 | else | |
33838 | ||
33839 | cat >conftest.$ac_ext <<_ACEOF | |
33840 | /* confdefs.h. */ | |
33841 | _ACEOF | |
33842 | cat confdefs.h >>conftest.$ac_ext | |
33843 | cat >>conftest.$ac_ext <<_ACEOF | |
33844 | /* end confdefs.h. */ | |
33845 | ||
33846 | #include <stdio.h> | |
33847 | #include <stdarg.h> | |
33848 | #ifdef __MSL__ | |
33849 | #if __MSL__ >= 0x6000 | |
33850 | namespace std {} | |
33851 | using namespace std; | |
33852 | #endif | |
33853 | #endif | |
33854 | ||
33855 | int | |
33856 | main () | |
33857 | { | |
33858 | ||
33859 | char *buf; | |
62fa8b3a | 33860 | snprintf(buf, 10u, "%s", "wx"); |
4a767dd5 VZ |
33861 | |
33862 | ; | |
33863 | return 0; | |
33864 | } | |
33865 | _ACEOF | |
33866 | rm -f conftest.$ac_objext | |
33867 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33868 | (eval $ac_compile) 2>conftest.er1 | |
33869 | ac_status=$? | |
33870 | grep -v '^ *+' conftest.er1 >conftest.err | |
33871 | rm -f conftest.er1 | |
33872 | cat conftest.err >&5 | |
33873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33874 | (exit $ac_status); } && | |
5d7b7554 | 33875 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
4a767dd5 VZ |
33876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33877 | (eval $ac_try) 2>&5 | |
33878 | ac_status=$? | |
33879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33880 | (exit $ac_status); }; } && | |
33881 | { ac_try='test -s conftest.$ac_objext' | |
33882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33883 | (eval $ac_try) 2>&5 | |
33884 | ac_status=$? | |
33885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33886 | (exit $ac_status); }; }; then | |
33887 | wx_cv_func_snprintf_decl=yes | |
33888 | else | |
33889 | echo "$as_me: failed program was:" >&5 | |
33890 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33891 | ||
33892 | wx_cv_func_snprintf_decl=no | |
33893 | ||
33894 | fi | |
33895 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33896 | ||
33897 | ||
33898 | fi | |
33899 | echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5 | |
33900 | echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6 | |
33901 | ||
33902 | if test "$wx_cv_func_snprintf_decl" = "yes"; then | |
33903 | cat >>confdefs.h <<\_ACEOF | |
33904 | #define HAVE_SNPRINTF_DECL 1 | |
33905 | _ACEOF | |
33906 | ||
62fa8b3a MW |
33907 | |
33908 | echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5 | |
33909 | echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6 | |
33910 | if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then | |
33911 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33912 | else | |
33913 | ||
33914 | cat >conftest.$ac_ext <<_ACEOF | |
33915 | /* confdefs.h. */ | |
33916 | _ACEOF | |
33917 | cat confdefs.h >>conftest.$ac_ext | |
33918 | cat >>conftest.$ac_ext <<_ACEOF | |
33919 | /* end confdefs.h. */ | |
33920 | ||
33921 | #include <stdio.h> | |
33922 | #include <stdarg.h> | |
33923 | #ifdef __MSL__ | |
33924 | #if __MSL__ >= 0x6000 | |
33925 | namespace std {} | |
33926 | using namespace std; | |
33927 | #endif | |
33928 | #endif | |
33929 | ||
33930 | int | |
33931 | main () | |
33932 | { | |
33933 | ||
33934 | char *buf; | |
33935 | const char *fmt = "%s"; | |
33936 | snprintf(buf, 10u, fmt, "wx"); | |
33937 | ||
33938 | ; | |
33939 | return 0; | |
33940 | } | |
33941 | _ACEOF | |
33942 | rm -f conftest.$ac_objext | |
33943 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33944 | (eval $ac_compile) 2>conftest.er1 | |
33945 | ac_status=$? | |
33946 | grep -v '^ *+' conftest.er1 >conftest.err | |
33947 | rm -f conftest.er1 | |
33948 | cat conftest.err >&5 | |
33949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33950 | (exit $ac_status); } && | |
5d7b7554 | 33951 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
62fa8b3a MW |
33952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33953 | (eval $ac_try) 2>&5 | |
33954 | ac_status=$? | |
33955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33956 | (exit $ac_status); }; } && | |
33957 | { ac_try='test -s conftest.$ac_objext' | |
33958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33959 | (eval $ac_try) 2>&5 | |
33960 | ac_status=$? | |
33961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33962 | (exit $ac_status); }; }; then | |
33963 | wx_cv_func_broken_snprintf_decl=no | |
33964 | else | |
33965 | echo "$as_me: failed program was:" >&5 | |
33966 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33967 | ||
33968 | wx_cv_func_broken_snprintf_decl=yes | |
33969 | ||
33970 | fi | |
33971 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33972 | ||
33973 | ||
33974 | fi | |
33975 | echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5 | |
33976 | echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6 | |
33977 | ||
33978 | if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then | |
33979 | cat >>confdefs.h <<\_ACEOF | |
33980 | #define HAVE_BROKEN_SNPRINTF_DECL 1 | |
33981 | _ACEOF | |
33982 | ||
33983 | fi | |
4a767dd5 VZ |
33984 | fi |
33985 | fi | |
33986 | ||
a848cd7e SC |
33987 | if test "$wxUSE_UNICODE" = yes; then |
33988 | ||
33989 | ||
33990 | ||
fbe47c7b VS |
33991 | |
33992 | ||
33993 | ||
33994 | for ac_func in wputc wputchar putws fputws wprintf vswprintf | |
a848cd7e SC |
33995 | do |
33996 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33997 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33998 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33999 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34000 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34001 | else | |
34002 | cat >conftest.$ac_ext <<_ACEOF | |
34003 | /* confdefs.h. */ | |
34004 | _ACEOF | |
34005 | cat confdefs.h >>conftest.$ac_ext | |
34006 | cat >>conftest.$ac_ext <<_ACEOF | |
34007 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34008 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34009 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34010 | #define $ac_func innocuous_$ac_func | |
34011 | ||
a848cd7e SC |
34012 | /* System header to define __stub macros and hopefully few prototypes, |
34013 | which can conflict with char $ac_func (); below. | |
34014 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34015 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34016 | |
a848cd7e SC |
34017 | #ifdef __STDC__ |
34018 | # include <limits.h> | |
34019 | #else | |
34020 | # include <assert.h> | |
34021 | #endif | |
ac1cb8d3 VS |
34022 | |
34023 | #undef $ac_func | |
34024 | ||
a848cd7e SC |
34025 | /* Override any gcc2 internal prototype to avoid an error. */ |
34026 | #ifdef __cplusplus | |
34027 | extern "C" | |
34028 | { | |
34029 | #endif | |
34030 | /* We use char because int might match the return type of a gcc2 | |
34031 | builtin and then its argument prototype would still apply. */ | |
34032 | char $ac_func (); | |
34033 | /* The GNU C library defines this for functions which it implements | |
34034 | to always fail with ENOSYS. Some functions are actually named | |
34035 | something starting with __ and the normal name is an alias. */ | |
34036 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34037 | choke me | |
34038 | #else | |
34039 | char (*f) () = $ac_func; | |
34040 | #endif | |
34041 | #ifdef __cplusplus | |
34042 | } | |
34043 | #endif | |
34044 | ||
34045 | int | |
34046 | main () | |
34047 | { | |
34048 | return f != $ac_func; | |
34049 | ; | |
34050 | return 0; | |
34051 | } | |
34052 | _ACEOF | |
34053 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34054 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34055 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34056 | ac_status=$? |
ac1cb8d3 VS |
34057 | grep -v '^ *+' conftest.er1 >conftest.err |
34058 | rm -f conftest.er1 | |
34059 | cat conftest.err >&5 | |
a848cd7e SC |
34060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34061 | (exit $ac_status); } && | |
5d7b7554 | 34062 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34064 | (eval $ac_try) 2>&5 | |
34065 | ac_status=$? | |
34066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34067 | (exit $ac_status); }; } && | |
34068 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34070 | (eval $ac_try) 2>&5 | |
34071 | ac_status=$? | |
34072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34073 | (exit $ac_status); }; }; then | |
34074 | eval "$as_ac_var=yes" | |
34075 | else | |
34076 | echo "$as_me: failed program was:" >&5 | |
34077 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34078 | ||
34079 | eval "$as_ac_var=no" | |
34080 | fi | |
ac1cb8d3 VS |
34081 | rm -f conftest.err conftest.$ac_objext \ |
34082 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34083 | fi |
34084 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34085 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34086 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34087 | cat >>confdefs.h <<_ACEOF | |
34088 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34089 | _ACEOF | |
34090 | ||
34091 | fi | |
34092 | done | |
34093 | ||
34094 | ||
34095 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 | |
34096 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
34097 | cat >conftest.$ac_ext <<_ACEOF | |
34098 | /* confdefs.h. */ | |
34099 | _ACEOF | |
34100 | cat confdefs.h >>conftest.$ac_ext | |
34101 | cat >>conftest.$ac_ext <<_ACEOF | |
34102 | /* end confdefs.h. */ | |
34103 | #include <wchar.h> | |
34104 | int | |
34105 | main () | |
34106 | { | |
34107 | &_vsnwprintf; | |
34108 | ; | |
34109 | return 0; | |
34110 | } | |
34111 | _ACEOF | |
34112 | rm -f conftest.$ac_objext | |
34113 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34114 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34115 | ac_status=$? |
ac1cb8d3 VS |
34116 | grep -v '^ *+' conftest.er1 >conftest.err |
34117 | rm -f conftest.er1 | |
34118 | cat conftest.err >&5 | |
a848cd7e SC |
34119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34120 | (exit $ac_status); } && | |
5d7b7554 | 34121 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34123 | (eval $ac_try) 2>&5 | |
34124 | ac_status=$? | |
34125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34126 | (exit $ac_status); }; } && | |
34127 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34129 | (eval $ac_try) 2>&5 | |
34130 | ac_status=$? | |
34131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34132 | (exit $ac_status); }; }; then | |
34133 | echo "$as_me:$LINENO: result: yes" >&5 | |
34134 | echo "${ECHO_T}yes" >&6 | |
34135 | cat >>confdefs.h <<\_ACEOF | |
34136 | #define HAVE__VSNWPRINTF 1 | |
34137 | _ACEOF | |
34138 | ||
34139 | else | |
34140 | echo "$as_me: failed program was:" >&5 | |
34141 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34142 | ||
34143 | echo "$as_me:$LINENO: result: no" >&5 | |
34144 | echo "${ECHO_T}no" >&6 | |
34145 | fi | |
ac1cb8d3 | 34146 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext; |
a848cd7e SC |
34147 | fi |
34148 | ||
6ebeb4c7 VZ |
34149 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
34150 | ||
34151 | for ac_func in fnmatch | |
34152 | do | |
34153 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34154 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34155 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34156 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34157 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34158 | else | |
34159 | cat >conftest.$ac_ext <<_ACEOF | |
34160 | /* confdefs.h. */ | |
34161 | _ACEOF | |
34162 | cat confdefs.h >>conftest.$ac_ext | |
34163 | cat >>conftest.$ac_ext <<_ACEOF | |
34164 | /* end confdefs.h. */ | |
34165 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
34166 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34167 | #define $ac_func innocuous_$ac_func | |
34168 | ||
34169 | /* System header to define __stub macros and hopefully few prototypes, | |
34170 | which can conflict with char $ac_func (); below. | |
34171 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34172 | <limits.h> exists even on freestanding compilers. */ | |
34173 | ||
34174 | #ifdef __STDC__ | |
34175 | # include <limits.h> | |
34176 | #else | |
34177 | # include <assert.h> | |
34178 | #endif | |
34179 | ||
34180 | #undef $ac_func | |
34181 | ||
34182 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34183 | #ifdef __cplusplus | |
34184 | extern "C" | |
34185 | { | |
34186 | #endif | |
34187 | /* We use char because int might match the return type of a gcc2 | |
34188 | builtin and then its argument prototype would still apply. */ | |
34189 | char $ac_func (); | |
34190 | /* The GNU C library defines this for functions which it implements | |
34191 | to always fail with ENOSYS. Some functions are actually named | |
34192 | something starting with __ and the normal name is an alias. */ | |
34193 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34194 | choke me | |
34195 | #else | |
34196 | char (*f) () = $ac_func; | |
34197 | #endif | |
34198 | #ifdef __cplusplus | |
34199 | } | |
34200 | #endif | |
34201 | ||
34202 | int | |
34203 | main () | |
34204 | { | |
34205 | return f != $ac_func; | |
34206 | ; | |
34207 | return 0; | |
34208 | } | |
34209 | _ACEOF | |
34210 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34211 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
34212 | (eval $ac_link) 2>conftest.er1 | |
34213 | ac_status=$? | |
34214 | grep -v '^ *+' conftest.er1 >conftest.err | |
34215 | rm -f conftest.er1 | |
34216 | cat conftest.err >&5 | |
34217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34218 | (exit $ac_status); } && | |
5d7b7554 | 34219 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
6ebeb4c7 VZ |
34220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34221 | (eval $ac_try) 2>&5 | |
34222 | ac_status=$? | |
34223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34224 | (exit $ac_status); }; } && | |
34225 | { ac_try='test -s conftest$ac_exeext' | |
34226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34227 | (eval $ac_try) 2>&5 | |
34228 | ac_status=$? | |
34229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34230 | (exit $ac_status); }; }; then | |
34231 | eval "$as_ac_var=yes" | |
34232 | else | |
34233 | echo "$as_me: failed program was:" >&5 | |
34234 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34235 | ||
34236 | eval "$as_ac_var=no" | |
34237 | fi | |
34238 | rm -f conftest.err conftest.$ac_objext \ | |
34239 | conftest$ac_exeext conftest.$ac_ext | |
34240 | fi | |
34241 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34242 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34243 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34244 | cat >>confdefs.h <<_ACEOF | |
34245 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34246 | _ACEOF | |
34247 | ||
34248 | fi | |
34249 | done | |
34250 | ||
34251 | fi | |
34252 | ||
34253 | if test "$wxUSE_FILE" = "yes"; then | |
34254 | ||
34255 | for ac_func in fsync | |
34256 | do | |
34257 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34258 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34259 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34260 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34261 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34262 | else | |
34263 | cat >conftest.$ac_ext <<_ACEOF | |
34264 | /* confdefs.h. */ | |
34265 | _ACEOF | |
34266 | cat confdefs.h >>conftest.$ac_ext | |
34267 | cat >>conftest.$ac_ext <<_ACEOF | |
34268 | /* end confdefs.h. */ | |
34269 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
34270 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34271 | #define $ac_func innocuous_$ac_func | |
34272 | ||
34273 | /* System header to define __stub macros and hopefully few prototypes, | |
34274 | which can conflict with char $ac_func (); below. | |
34275 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34276 | <limits.h> exists even on freestanding compilers. */ | |
34277 | ||
34278 | #ifdef __STDC__ | |
34279 | # include <limits.h> | |
34280 | #else | |
34281 | # include <assert.h> | |
34282 | #endif | |
34283 | ||
34284 | #undef $ac_func | |
34285 | ||
34286 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34287 | #ifdef __cplusplus | |
34288 | extern "C" | |
34289 | { | |
34290 | #endif | |
34291 | /* We use char because int might match the return type of a gcc2 | |
34292 | builtin and then its argument prototype would still apply. */ | |
34293 | char $ac_func (); | |
34294 | /* The GNU C library defines this for functions which it implements | |
34295 | to always fail with ENOSYS. Some functions are actually named | |
34296 | something starting with __ and the normal name is an alias. */ | |
34297 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34298 | choke me | |
34299 | #else | |
34300 | char (*f) () = $ac_func; | |
34301 | #endif | |
34302 | #ifdef __cplusplus | |
34303 | } | |
34304 | #endif | |
34305 | ||
34306 | int | |
34307 | main () | |
34308 | { | |
34309 | return f != $ac_func; | |
34310 | ; | |
34311 | return 0; | |
34312 | } | |
34313 | _ACEOF | |
34314 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34315 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
34316 | (eval $ac_link) 2>conftest.er1 | |
34317 | ac_status=$? | |
34318 | grep -v '^ *+' conftest.er1 >conftest.err | |
34319 | rm -f conftest.er1 | |
34320 | cat conftest.err >&5 | |
34321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34322 | (exit $ac_status); } && | |
5d7b7554 | 34323 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
6ebeb4c7 VZ |
34324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34325 | (eval $ac_try) 2>&5 | |
34326 | ac_status=$? | |
34327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34328 | (exit $ac_status); }; } && | |
34329 | { ac_try='test -s conftest$ac_exeext' | |
34330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34331 | (eval $ac_try) 2>&5 | |
34332 | ac_status=$? | |
34333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34334 | (exit $ac_status); }; }; then | |
34335 | eval "$as_ac_var=yes" | |
34336 | else | |
34337 | echo "$as_me: failed program was:" >&5 | |
34338 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34339 | ||
34340 | eval "$as_ac_var=no" | |
34341 | fi | |
34342 | rm -f conftest.err conftest.$ac_objext \ | |
34343 | conftest$ac_exeext conftest.$ac_ext | |
34344 | fi | |
34345 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34346 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34347 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34348 | cat >>confdefs.h <<_ACEOF | |
34349 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34350 | _ACEOF | |
34351 | ||
34352 | fi | |
34353 | done | |
34354 | ||
34355 | fi | |
a848cd7e SC |
34356 | |
34357 | ||
34358 | if test "$TOOLKIT" != "MSW"; then | |
34359 | ||
34360 | ||
a848cd7e SC |
34361 | |
34362 | ||
34363 | ||
34364 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
34365 | if test "${with_libiconv_prefix+set}" = set; then | |
34366 | withval="$with_libiconv_prefix" | |
34367 | ||
34368 | for dir in `echo "$withval" | tr : ' '`; do | |
34369 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
34370 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
34371 | done | |
34372 | ||
34373 | fi; | |
34374 | ||
34375 | echo "$as_me:$LINENO: checking for iconv" >&5 | |
34376 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
34377 | if test "${am_cv_func_iconv+set}" = set; then | |
34378 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34379 | else | |
34380 | ||
34381 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
34382 | am_cv_lib_iconv=no | |
34383 | cat >conftest.$ac_ext <<_ACEOF | |
34384 | /* confdefs.h. */ | |
34385 | _ACEOF | |
34386 | cat confdefs.h >>conftest.$ac_ext | |
34387 | cat >>conftest.$ac_ext <<_ACEOF | |
34388 | /* end confdefs.h. */ | |
34389 | #include <stdlib.h> | |
34390 | #include <iconv.h> | |
34391 | int | |
34392 | main () | |
34393 | { | |
34394 | iconv_t cd = iconv_open("",""); | |
34395 | iconv(cd,NULL,NULL,NULL,NULL); | |
34396 | iconv_close(cd); | |
34397 | ; | |
34398 | return 0; | |
34399 | } | |
34400 | _ACEOF | |
34401 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34402 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34403 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34404 | ac_status=$? |
ac1cb8d3 VS |
34405 | grep -v '^ *+' conftest.er1 >conftest.err |
34406 | rm -f conftest.er1 | |
34407 | cat conftest.err >&5 | |
a848cd7e SC |
34408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34409 | (exit $ac_status); } && | |
5d7b7554 | 34410 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34412 | (eval $ac_try) 2>&5 | |
34413 | ac_status=$? | |
34414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34415 | (exit $ac_status); }; } && | |
34416 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34418 | (eval $ac_try) 2>&5 | |
34419 | ac_status=$? | |
34420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34421 | (exit $ac_status); }; }; then | |
34422 | am_cv_func_iconv=yes | |
34423 | else | |
34424 | echo "$as_me: failed program was:" >&5 | |
34425 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34426 | ||
34427 | fi | |
ac1cb8d3 VS |
34428 | rm -f conftest.err conftest.$ac_objext \ |
34429 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34430 | if test "$am_cv_func_iconv" != yes; then |
34431 | am_save_LIBS="$LIBS" | |
34432 | LIBS="$LIBS -liconv" | |
34433 | cat >conftest.$ac_ext <<_ACEOF | |
34434 | /* confdefs.h. */ | |
34435 | _ACEOF | |
34436 | cat confdefs.h >>conftest.$ac_ext | |
34437 | cat >>conftest.$ac_ext <<_ACEOF | |
34438 | /* end confdefs.h. */ | |
34439 | #include <stdlib.h> | |
34440 | #include <iconv.h> | |
34441 | int | |
34442 | main () | |
34443 | { | |
34444 | iconv_t cd = iconv_open("",""); | |
34445 | iconv(cd,NULL,NULL,NULL,NULL); | |
34446 | iconv_close(cd); | |
34447 | ; | |
34448 | return 0; | |
34449 | } | |
34450 | _ACEOF | |
34451 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34452 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34453 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34454 | ac_status=$? |
ac1cb8d3 VS |
34455 | grep -v '^ *+' conftest.er1 >conftest.err |
34456 | rm -f conftest.er1 | |
34457 | cat conftest.err >&5 | |
a848cd7e SC |
34458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34459 | (exit $ac_status); } && | |
5d7b7554 | 34460 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34462 | (eval $ac_try) 2>&5 | |
34463 | ac_status=$? | |
34464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34465 | (exit $ac_status); }; } && | |
34466 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34468 | (eval $ac_try) 2>&5 | |
34469 | ac_status=$? | |
34470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34471 | (exit $ac_status); }; }; then | |
34472 | am_cv_lib_iconv=yes | |
34473 | am_cv_func_iconv=yes | |
34474 | else | |
34475 | echo "$as_me: failed program was:" >&5 | |
34476 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34477 | ||
34478 | fi | |
ac1cb8d3 VS |
34479 | rm -f conftest.err conftest.$ac_objext \ |
34480 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34481 | LIBS="$am_save_LIBS" |
34482 | fi | |
34483 | ||
34484 | fi | |
34485 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
34486 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
34487 | if test "$am_cv_func_iconv" = yes; then | |
34488 | ||
34489 | cat >>confdefs.h <<\_ACEOF | |
34490 | #define HAVE_ICONV 1 | |
34491 | _ACEOF | |
34492 | ||
34493 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 | |
34494 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
34495 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
34496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34497 | else | |
34498 | cat >conftest.$ac_ext <<_ACEOF | |
34499 | /* confdefs.h. */ | |
34500 | _ACEOF | |
34501 | cat confdefs.h >>conftest.$ac_ext | |
34502 | cat >>conftest.$ac_ext <<_ACEOF | |
34503 | /* end confdefs.h. */ | |
34504 | ||
34505 | #include <stdlib.h> | |
34506 | #include <iconv.h> | |
34507 | extern | |
34508 | #ifdef __cplusplus | |
34509 | "C" | |
34510 | #endif | |
34511 | #if defined(__STDC__) || defined(__cplusplus) | |
34512 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
34513 | #else | |
34514 | size_t iconv(); | |
34515 | #endif | |
34516 | ||
34517 | int | |
34518 | main () | |
34519 | { | |
34520 | ||
34521 | ; | |
34522 | return 0; | |
34523 | } | |
34524 | _ACEOF | |
34525 | rm -f conftest.$ac_objext | |
34526 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34527 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34528 | ac_status=$? |
ac1cb8d3 VS |
34529 | grep -v '^ *+' conftest.er1 >conftest.err |
34530 | rm -f conftest.er1 | |
34531 | cat conftest.err >&5 | |
a848cd7e SC |
34532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34533 | (exit $ac_status); } && | |
5d7b7554 | 34534 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34536 | (eval $ac_try) 2>&5 | |
34537 | ac_status=$? | |
34538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34539 | (exit $ac_status); }; } && | |
34540 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34542 | (eval $ac_try) 2>&5 | |
34543 | ac_status=$? | |
34544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34545 | (exit $ac_status); }; }; then | |
34546 | wx_cv_func_iconv_const="no" | |
34547 | else | |
34548 | echo "$as_me: failed program was:" >&5 | |
34549 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34550 | ||
34551 | wx_cv_func_iconv_const="yes" | |
34552 | ||
34553 | fi | |
ac1cb8d3 | 34554 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34555 | |
34556 | fi | |
34557 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
34558 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
34559 | ||
34560 | iconv_const= | |
34561 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
34562 | iconv_const="const" | |
34563 | fi | |
34564 | ||
34565 | ||
34566 | cat >>confdefs.h <<_ACEOF | |
34567 | #define ICONV_CONST $iconv_const | |
34568 | _ACEOF | |
34569 | ||
34570 | fi | |
34571 | LIBICONV= | |
34572 | if test "$am_cv_lib_iconv" = yes; then | |
34573 | LIBICONV="-liconv" | |
34574 | fi | |
34575 | ||
34576 | ||
34577 | LIBS="$LIBICONV $LIBS" | |
a848cd7e SC |
34578 | |
34579 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
34580 | ||
34581 | for ac_func in sigaction | |
34582 | do | |
34583 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34584 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34585 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34586 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34587 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34588 | else | |
34589 | cat >conftest.$ac_ext <<_ACEOF | |
34590 | /* confdefs.h. */ | |
34591 | _ACEOF | |
34592 | cat confdefs.h >>conftest.$ac_ext | |
34593 | cat >>conftest.$ac_ext <<_ACEOF | |
34594 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34595 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34596 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34597 | #define $ac_func innocuous_$ac_func | |
34598 | ||
a848cd7e SC |
34599 | /* System header to define __stub macros and hopefully few prototypes, |
34600 | which can conflict with char $ac_func (); below. | |
34601 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34602 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34603 | |
a848cd7e SC |
34604 | #ifdef __STDC__ |
34605 | # include <limits.h> | |
34606 | #else | |
34607 | # include <assert.h> | |
34608 | #endif | |
ac1cb8d3 VS |
34609 | |
34610 | #undef $ac_func | |
34611 | ||
a848cd7e SC |
34612 | /* Override any gcc2 internal prototype to avoid an error. */ |
34613 | #ifdef __cplusplus | |
34614 | extern "C" | |
34615 | { | |
34616 | #endif | |
34617 | /* We use char because int might match the return type of a gcc2 | |
34618 | builtin and then its argument prototype would still apply. */ | |
34619 | char $ac_func (); | |
34620 | /* The GNU C library defines this for functions which it implements | |
34621 | to always fail with ENOSYS. Some functions are actually named | |
34622 | something starting with __ and the normal name is an alias. */ | |
34623 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34624 | choke me | |
34625 | #else | |
34626 | char (*f) () = $ac_func; | |
34627 | #endif | |
34628 | #ifdef __cplusplus | |
34629 | } | |
34630 | #endif | |
34631 | ||
34632 | int | |
34633 | main () | |
34634 | { | |
34635 | return f != $ac_func; | |
34636 | ; | |
34637 | return 0; | |
34638 | } | |
34639 | _ACEOF | |
34640 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34641 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34642 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34643 | ac_status=$? |
ac1cb8d3 VS |
34644 | grep -v '^ *+' conftest.er1 >conftest.err |
34645 | rm -f conftest.er1 | |
34646 | cat conftest.err >&5 | |
a848cd7e SC |
34647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34648 | (exit $ac_status); } && | |
5d7b7554 | 34649 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34651 | (eval $ac_try) 2>&5 | |
34652 | ac_status=$? | |
34653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34654 | (exit $ac_status); }; } && | |
34655 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34657 | (eval $ac_try) 2>&5 | |
34658 | ac_status=$? | |
34659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34660 | (exit $ac_status); }; }; then | |
34661 | eval "$as_ac_var=yes" | |
34662 | else | |
34663 | echo "$as_me: failed program was:" >&5 | |
34664 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34665 | ||
34666 | eval "$as_ac_var=no" | |
34667 | fi | |
ac1cb8d3 VS |
34668 | rm -f conftest.err conftest.$ac_objext \ |
34669 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34670 | fi |
34671 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34672 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34673 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34674 | cat >>confdefs.h <<_ACEOF | |
34675 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34676 | _ACEOF | |
34677 | ||
34678 | fi | |
34679 | done | |
34680 | ||
34681 | ||
34682 | if test "$ac_cv_func_sigaction" = "no"; then | |
34683 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 | |
34684 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
34685 | wxUSE_ON_FATAL_EXCEPTION=no | |
34686 | fi | |
34687 | ||
34688 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
a848cd7e SC |
34689 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 |
34690 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
34691 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
34692 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34693 | else | |
34694 | ||
34695 | cat >conftest.$ac_ext <<_ACEOF | |
34696 | /* confdefs.h. */ | |
34697 | _ACEOF | |
34698 | cat confdefs.h >>conftest.$ac_ext | |
34699 | cat >>conftest.$ac_ext <<_ACEOF | |
34700 | /* end confdefs.h. */ | |
34701 | #include <signal.h> | |
34702 | int | |
34703 | main () | |
34704 | { | |
34705 | ||
34706 | extern void testSigHandler(int); | |
34707 | ||
34708 | struct sigaction sa; | |
34709 | sa.sa_handler = testSigHandler; | |
34710 | ||
34711 | ; | |
34712 | return 0; | |
34713 | } | |
34714 | _ACEOF | |
34715 | rm -f conftest.$ac_objext | |
34716 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34717 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34718 | ac_status=$? |
ac1cb8d3 VS |
34719 | grep -v '^ *+' conftest.er1 >conftest.err |
34720 | rm -f conftest.er1 | |
34721 | cat conftest.err >&5 | |
a848cd7e SC |
34722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34723 | (exit $ac_status); } && | |
5d7b7554 | 34724 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34726 | (eval $ac_try) 2>&5 | |
34727 | ac_status=$? | |
34728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34729 | (exit $ac_status); }; } && | |
34730 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34732 | (eval $ac_try) 2>&5 | |
34733 | ac_status=$? | |
34734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34735 | (exit $ac_status); }; }; then | |
34736 | ||
34737 | wx_cv_type_sa_handler=int | |
34738 | ||
34739 | else | |
34740 | echo "$as_me: failed program was:" >&5 | |
34741 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34742 | ||
34743 | ||
34744 | wx_cv_type_sa_handler=void | |
34745 | ||
34746 | fi | |
ac1cb8d3 | 34747 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34748 | |
34749 | fi | |
34750 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
34751 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
34752 | ||
a848cd7e SC |
34753 | cat >>confdefs.h <<_ACEOF |
34754 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
34755 | _ACEOF | |
34756 | ||
34757 | fi | |
34758 | fi | |
34759 | ||
eaff0f0d | 34760 | if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
eaff0f0d VZ |
34761 | echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5 |
34762 | echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6 | |
34763 | if test "${wx_cv_func_backtrace+set}" = set; then | |
34764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34765 | else | |
34766 | ||
34767 | cat >conftest.$ac_ext <<_ACEOF | |
34768 | /* confdefs.h. */ | |
34769 | _ACEOF | |
34770 | cat confdefs.h >>conftest.$ac_ext | |
34771 | cat >>conftest.$ac_ext <<_ACEOF | |
34772 | /* end confdefs.h. */ | |
34773 | #include <execinfo.h> | |
34774 | int | |
34775 | main () | |
34776 | { | |
34777 | ||
34778 | void *trace[1]; | |
34779 | char **messages; | |
34780 | ||
34781 | backtrace(trace, 1); | |
34782 | messages = backtrace_symbols(trace, 1); | |
34783 | ||
34784 | ; | |
34785 | return 0; | |
34786 | } | |
34787 | _ACEOF | |
34788 | rm -f conftest.$ac_objext | |
34789 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34790 | (eval $ac_compile) 2>conftest.er1 | |
34791 | ac_status=$? | |
34792 | grep -v '^ *+' conftest.er1 >conftest.err | |
34793 | rm -f conftest.er1 | |
34794 | cat conftest.err >&5 | |
34795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34796 | (exit $ac_status); } && | |
5d7b7554 | 34797 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
eaff0f0d VZ |
34798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34799 | (eval $ac_try) 2>&5 | |
34800 | ac_status=$? | |
34801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34802 | (exit $ac_status); }; } && | |
34803 | { ac_try='test -s conftest.$ac_objext' | |
34804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34805 | (eval $ac_try) 2>&5 | |
34806 | ac_status=$? | |
34807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34808 | (exit $ac_status); }; }; then | |
34809 | wx_cv_func_backtrace=yes | |
34810 | else | |
34811 | echo "$as_me: failed program was:" >&5 | |
34812 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34813 | ||
34814 | wx_cv_func_backtrace=no | |
34815 | ||
34816 | fi | |
34817 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
34818 | ||
34819 | ||
34820 | fi | |
34821 | echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5 | |
34822 | echo "${ECHO_T}$wx_cv_func_backtrace" >&6 | |
34823 | ||
34824 | ||
34825 | if test "$wx_cv_func_backtrace" = "no"; then | |
34826 | { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5 | |
34827 | echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;} | |
34828 | wxUSE_STACKWALKER=no | |
34829 | else | |
34830 | echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5 | |
34831 | echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6 | |
34832 | if test "${wx_cv_func_cxa_demangle+set}" = set; then | |
34833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34834 | else | |
34835 | ||
34836 | cat >conftest.$ac_ext <<_ACEOF | |
34837 | /* confdefs.h. */ | |
34838 | _ACEOF | |
34839 | cat confdefs.h >>conftest.$ac_ext | |
34840 | cat >>conftest.$ac_ext <<_ACEOF | |
34841 | /* end confdefs.h. */ | |
34842 | #include <cxxabi.h> | |
34843 | int | |
34844 | main () | |
34845 | { | |
34846 | ||
34847 | int rc; | |
34848 | __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc); | |
34849 | ||
34850 | ; | |
34851 | return 0; | |
34852 | } | |
34853 | _ACEOF | |
dfe0c803 JS |
34854 | rm -f conftest.$ac_objext conftest$ac_exeext |
34855 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
34856 | (eval $ac_link) 2>conftest.er1 | |
eaff0f0d VZ |
34857 | ac_status=$? |
34858 | grep -v '^ *+' conftest.er1 >conftest.err | |
34859 | rm -f conftest.er1 | |
34860 | cat conftest.err >&5 | |
34861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34862 | (exit $ac_status); } && | |
5d7b7554 | 34863 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
eaff0f0d VZ |
34864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34865 | (eval $ac_try) 2>&5 | |
34866 | ac_status=$? | |
34867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34868 | (exit $ac_status); }; } && | |
dfe0c803 | 34869 | { ac_try='test -s conftest$ac_exeext' |
eaff0f0d VZ |
34870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34871 | (eval $ac_try) 2>&5 | |
34872 | ac_status=$? | |
34873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34874 | (exit $ac_status); }; }; then | |
34875 | wx_cv_func_cxa_demangle=yes | |
34876 | else | |
34877 | echo "$as_me: failed program was:" >&5 | |
34878 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34879 | ||
34880 | wx_cv_func_cxa_demangle=no | |
34881 | ||
34882 | fi | |
dfe0c803 JS |
34883 | rm -f conftest.err conftest.$ac_objext \ |
34884 | conftest$ac_exeext conftest.$ac_ext | |
eaff0f0d VZ |
34885 | |
34886 | ||
34887 | fi | |
34888 | echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5 | |
34889 | echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6 | |
34890 | ||
34891 | if test "$wx_cv_func_cxa_demangle" = "yes"; then | |
34892 | cat >>confdefs.h <<\_ACEOF | |
34893 | #define HAVE_CXA_DEMANGLE 1 | |
34894 | _ACEOF | |
34895 | ||
34896 | fi | |
34897 | fi | |
eaff0f0d VZ |
34898 | fi |
34899 | ||
898beab1 DE |
34900 | if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then |
34901 | { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5 | |
34902 | echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;} | |
34903 | wxUSE_STACKWALKER=no | |
34904 | fi | |
34905 | ||
34906 | ||
a848cd7e SC |
34907 | |
34908 | ||
34909 | for ac_func in mkstemp mktemp | |
34910 | do | |
34911 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34912 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34913 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34914 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34915 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34916 | else | |
34917 | cat >conftest.$ac_ext <<_ACEOF | |
34918 | /* confdefs.h. */ | |
34919 | _ACEOF | |
34920 | cat confdefs.h >>conftest.$ac_ext | |
34921 | cat >>conftest.$ac_ext <<_ACEOF | |
34922 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34923 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34924 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34925 | #define $ac_func innocuous_$ac_func | |
34926 | ||
a848cd7e SC |
34927 | /* System header to define __stub macros and hopefully few prototypes, |
34928 | which can conflict with char $ac_func (); below. | |
34929 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34930 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34931 | |
a848cd7e SC |
34932 | #ifdef __STDC__ |
34933 | # include <limits.h> | |
34934 | #else | |
34935 | # include <assert.h> | |
34936 | #endif | |
ac1cb8d3 VS |
34937 | |
34938 | #undef $ac_func | |
34939 | ||
a848cd7e SC |
34940 | /* Override any gcc2 internal prototype to avoid an error. */ |
34941 | #ifdef __cplusplus | |
34942 | extern "C" | |
34943 | { | |
34944 | #endif | |
34945 | /* We use char because int might match the return type of a gcc2 | |
34946 | builtin and then its argument prototype would still apply. */ | |
34947 | char $ac_func (); | |
34948 | /* The GNU C library defines this for functions which it implements | |
34949 | to always fail with ENOSYS. Some functions are actually named | |
34950 | something starting with __ and the normal name is an alias. */ | |
34951 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34952 | choke me | |
34953 | #else | |
34954 | char (*f) () = $ac_func; | |
34955 | #endif | |
34956 | #ifdef __cplusplus | |
34957 | } | |
34958 | #endif | |
34959 | ||
34960 | int | |
34961 | main () | |
34962 | { | |
34963 | return f != $ac_func; | |
34964 | ; | |
34965 | return 0; | |
34966 | } | |
34967 | _ACEOF | |
34968 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34969 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34970 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34971 | ac_status=$? |
ac1cb8d3 VS |
34972 | grep -v '^ *+' conftest.er1 >conftest.err |
34973 | rm -f conftest.er1 | |
34974 | cat conftest.err >&5 | |
a848cd7e SC |
34975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34976 | (exit $ac_status); } && | |
5d7b7554 | 34977 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
34978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34979 | (eval $ac_try) 2>&5 | |
34980 | ac_status=$? | |
34981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34982 | (exit $ac_status); }; } && | |
34983 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34985 | (eval $ac_try) 2>&5 | |
34986 | ac_status=$? | |
34987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34988 | (exit $ac_status); }; }; then | |
34989 | eval "$as_ac_var=yes" | |
34990 | else | |
34991 | echo "$as_me: failed program was:" >&5 | |
34992 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34993 | ||
34994 | eval "$as_ac_var=no" | |
34995 | fi | |
ac1cb8d3 VS |
34996 | rm -f conftest.err conftest.$ac_objext \ |
34997 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34998 | fi |
34999 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35000 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35001 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35002 | cat >>confdefs.h <<_ACEOF | |
35003 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35004 | _ACEOF | |
35005 | break | |
35006 | fi | |
35007 | done | |
35008 | ||
35009 | ||
35010 | echo "$as_me:$LINENO: checking for statfs" >&5 | |
35011 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
35012 | if test "${wx_cv_func_statfs+set}" = set; then | |
35013 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35014 | else | |
35015 | cat >conftest.$ac_ext <<_ACEOF | |
35016 | /* confdefs.h. */ | |
35017 | _ACEOF | |
35018 | cat confdefs.h >>conftest.$ac_ext | |
35019 | cat >>conftest.$ac_ext <<_ACEOF | |
35020 | /* end confdefs.h. */ | |
35021 | ||
35022 | #if defined(__BSD__) | |
84ae7ca4 VZ |
35023 | #include <sys/param.h> |
35024 | #include <sys/mount.h> | |
a848cd7e | 35025 | #else |
84ae7ca4 | 35026 | #include <sys/vfs.h> |
a848cd7e SC |
35027 | #endif |
35028 | ||
35029 | int | |
35030 | main () | |
35031 | { | |
35032 | ||
35033 | long l; | |
35034 | struct statfs fs; | |
35035 | statfs("/", &fs); | |
35036 | l = fs.f_bsize; | |
35037 | l += fs.f_blocks; | |
35038 | l += fs.f_bavail; | |
35039 | ||
35040 | ; | |
35041 | return 0; | |
35042 | } | |
35043 | _ACEOF | |
35044 | rm -f conftest.$ac_objext | |
35045 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35046 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35047 | ac_status=$? |
ac1cb8d3 VS |
35048 | grep -v '^ *+' conftest.er1 >conftest.err |
35049 | rm -f conftest.er1 | |
35050 | cat conftest.err >&5 | |
a848cd7e SC |
35051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35052 | (exit $ac_status); } && | |
5d7b7554 | 35053 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35055 | (eval $ac_try) 2>&5 | |
35056 | ac_status=$? | |
35057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35058 | (exit $ac_status); }; } && | |
35059 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35061 | (eval $ac_try) 2>&5 | |
35062 | ac_status=$? | |
35063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35064 | (exit $ac_status); }; }; then | |
84ae7ca4 | 35065 | wx_cv_func_statfs=yes |
a848cd7e SC |
35066 | else |
35067 | echo "$as_me: failed program was:" >&5 | |
35068 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35069 | ||
84ae7ca4 | 35070 | wx_cv_func_statfs=no |
a848cd7e SC |
35071 | |
35072 | fi | |
ac1cb8d3 | 35073 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35074 | |
35075 | fi | |
35076 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
35077 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
35078 | ||
35079 | if test "$wx_cv_func_statfs" = "yes"; then | |
5d7b7554 | 35080 | echo "$as_me:$LINENO: checking for statfs declaration" >&5 |
84ae7ca4 VZ |
35081 | echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6 |
35082 | if test "${wx_cv_func_statfs_decl+set}" = set; then | |
35083 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35084 | else | |
0683aca6 VZ |
35085 | cat >conftest.$ac_ext <<_ACEOF |
35086 | /* confdefs.h. */ | |
35087 | _ACEOF | |
35088 | cat confdefs.h >>conftest.$ac_ext | |
35089 | cat >>conftest.$ac_ext <<_ACEOF | |
35090 | /* end confdefs.h. */ | |
84ae7ca4 | 35091 | |
0683aca6 VZ |
35092 | #if defined(__BSD__) |
35093 | #include <sys/param.h> | |
35094 | #include <sys/mount.h> | |
35095 | #else | |
35096 | #include <sys/vfs.h> | |
35097 | #endif | |
35098 | ||
35099 | int | |
35100 | main () | |
35101 | { | |
35102 | ||
35103 | struct statfs fs; | |
35104 | statfs("", &fs); | |
35105 | ||
35106 | ; | |
35107 | return 0; | |
35108 | } | |
35109 | _ACEOF | |
35110 | rm -f conftest.$ac_objext | |
35111 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35112 | (eval $ac_compile) 2>conftest.er1 | |
35113 | ac_status=$? | |
35114 | grep -v '^ *+' conftest.er1 >conftest.err | |
35115 | rm -f conftest.er1 | |
35116 | cat conftest.err >&5 | |
35117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35118 | (exit $ac_status); } && | |
5d7b7554 | 35119 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
0683aca6 VZ |
35120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35121 | (eval $ac_try) 2>&5 | |
35122 | ac_status=$? | |
35123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35124 | (exit $ac_status); }; } && | |
35125 | { ac_try='test -s conftest.$ac_objext' | |
35126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35127 | (eval $ac_try) 2>&5 | |
35128 | ac_status=$? | |
35129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35130 | (exit $ac_status); }; }; then | |
35131 | wx_cv_func_statfs_decl=yes | |
35132 | else | |
35133 | echo "$as_me: failed program was:" >&5 | |
35134 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35135 | ||
35136 | wx_cv_func_statfs_decl=no | |
35137 | ||
35138 | fi | |
35139 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
84ae7ca4 VZ |
35140 | |
35141 | fi | |
35142 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5 | |
35143 | echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6 | |
84ae7ca4 VZ |
35144 | |
35145 | if test "$wx_cv_func_statfs_decl" = "yes"; then | |
35146 | cat >>confdefs.h <<\_ACEOF | |
35147 | #define HAVE_STATFS_DECL 1 | |
35148 | _ACEOF | |
35149 | ||
35150 | fi | |
35151 | ||
a848cd7e SC |
35152 | wx_cv_type_statvfs_t="struct statfs" |
35153 | cat >>confdefs.h <<\_ACEOF | |
35154 | #define HAVE_STATFS 1 | |
35155 | _ACEOF | |
35156 | ||
35157 | else | |
35158 | echo "$as_me:$LINENO: checking for statvfs" >&5 | |
35159 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
35160 | if test "${wx_cv_func_statvfs+set}" = set; then | |
35161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35162 | else | |
35163 | cat >conftest.$ac_ext <<_ACEOF | |
35164 | /* confdefs.h. */ | |
35165 | _ACEOF | |
35166 | cat confdefs.h >>conftest.$ac_ext | |
35167 | cat >>conftest.$ac_ext <<_ACEOF | |
35168 | /* end confdefs.h. */ | |
35169 | ||
35170 | #include <stddef.h> | |
35171 | #include <sys/statvfs.h> | |
35172 | ||
35173 | int | |
35174 | main () | |
35175 | { | |
35176 | ||
35177 | statvfs("/", NULL); | |
35178 | ||
35179 | ; | |
35180 | return 0; | |
35181 | } | |
35182 | _ACEOF | |
35183 | rm -f conftest.$ac_objext | |
35184 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35185 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35186 | ac_status=$? |
ac1cb8d3 VS |
35187 | grep -v '^ *+' conftest.er1 >conftest.err |
35188 | rm -f conftest.er1 | |
35189 | cat conftest.err >&5 | |
a848cd7e SC |
35190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35191 | (exit $ac_status); } && | |
5d7b7554 | 35192 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35194 | (eval $ac_try) 2>&5 | |
35195 | ac_status=$? | |
35196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35197 | (exit $ac_status); }; } && | |
35198 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35200 | (eval $ac_try) 2>&5 | |
35201 | ac_status=$? | |
35202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35203 | (exit $ac_status); }; }; then | |
35204 | wx_cv_func_statvfs=yes | |
35205 | else | |
35206 | echo "$as_me: failed program was:" >&5 | |
35207 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35208 | ||
35209 | wx_cv_func_statvfs=no | |
35210 | ||
35211 | fi | |
ac1cb8d3 | 35212 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35213 | |
35214 | fi | |
35215 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
35216 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
35217 | ||
35218 | if test "$wx_cv_func_statvfs" = "yes"; then | |
5d7b7554 | 35219 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 |
a848cd7e SC |
35220 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 |
35221 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
35222 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35223 | else | |
35224 | cat >conftest.$ac_ext <<_ACEOF | |
35225 | /* confdefs.h. */ | |
35226 | _ACEOF | |
35227 | cat confdefs.h >>conftest.$ac_ext | |
35228 | cat >>conftest.$ac_ext <<_ACEOF | |
35229 | /* end confdefs.h. */ | |
35230 | ||
35231 | #include <sys/statvfs.h> | |
35232 | ||
35233 | int | |
35234 | main () | |
35235 | { | |
35236 | ||
35237 | long l; | |
35238 | statvfs_t fs; | |
35239 | statvfs("/", &fs); | |
35240 | l = fs.f_bsize; | |
35241 | l += fs.f_blocks; | |
35242 | l += fs.f_bavail; | |
35243 | ||
35244 | ; | |
35245 | return 0; | |
35246 | } | |
35247 | _ACEOF | |
35248 | rm -f conftest.$ac_objext | |
35249 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35250 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35251 | ac_status=$? |
ac1cb8d3 VS |
35252 | grep -v '^ *+' conftest.er1 >conftest.err |
35253 | rm -f conftest.er1 | |
35254 | cat conftest.err >&5 | |
a848cd7e SC |
35255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35256 | (exit $ac_status); } && | |
5d7b7554 | 35257 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35259 | (eval $ac_try) 2>&5 | |
35260 | ac_status=$? | |
35261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35262 | (exit $ac_status); }; } && | |
35263 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35265 | (eval $ac_try) 2>&5 | |
35266 | ac_status=$? | |
35267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35268 | (exit $ac_status); }; }; then | |
35269 | wx_cv_type_statvfs_t=statvfs_t | |
35270 | else | |
35271 | echo "$as_me: failed program was:" >&5 | |
35272 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35273 | ||
35274 | ||
35275 | cat >conftest.$ac_ext <<_ACEOF | |
35276 | /* confdefs.h. */ | |
35277 | _ACEOF | |
35278 | cat confdefs.h >>conftest.$ac_ext | |
35279 | cat >>conftest.$ac_ext <<_ACEOF | |
35280 | /* end confdefs.h. */ | |
35281 | ||
35282 | #include <sys/statvfs.h> | |
35283 | ||
35284 | int | |
35285 | main () | |
35286 | { | |
35287 | ||
35288 | long l; | |
35289 | struct statvfs fs; | |
35290 | statvfs("/", &fs); | |
35291 | l = fs.f_bsize; | |
35292 | l += fs.f_blocks; | |
35293 | l += fs.f_bavail; | |
35294 | ||
35295 | ; | |
35296 | return 0; | |
35297 | } | |
35298 | _ACEOF | |
35299 | rm -f conftest.$ac_objext | |
35300 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35301 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35302 | ac_status=$? |
ac1cb8d3 VS |
35303 | grep -v '^ *+' conftest.er1 >conftest.err |
35304 | rm -f conftest.er1 | |
35305 | cat conftest.err >&5 | |
a848cd7e SC |
35306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35307 | (exit $ac_status); } && | |
5d7b7554 | 35308 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35310 | (eval $ac_try) 2>&5 | |
35311 | ac_status=$? | |
35312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35313 | (exit $ac_status); }; } && | |
35314 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35316 | (eval $ac_try) 2>&5 | |
35317 | ac_status=$? | |
35318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35319 | (exit $ac_status); }; }; then | |
35320 | wx_cv_type_statvfs_t="struct statvfs" | |
35321 | else | |
35322 | echo "$as_me: failed program was:" >&5 | |
35323 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35324 | ||
35325 | wx_cv_type_statvfs_t="unknown" | |
35326 | ||
35327 | fi | |
ac1cb8d3 | 35328 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35329 | |
35330 | ||
35331 | fi | |
ac1cb8d3 | 35332 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35333 | |
35334 | fi | |
35335 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
35336 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
35337 | ||
a848cd7e SC |
35338 | if test "$wx_cv_type_statvfs_t" != "unknown"; then |
35339 | cat >>confdefs.h <<\_ACEOF | |
35340 | #define HAVE_STATVFS 1 | |
35341 | _ACEOF | |
35342 | ||
35343 | fi | |
35344 | else | |
35345 | wx_cv_type_statvfs_t="unknown" | |
35346 | fi | |
35347 | fi | |
35348 | ||
35349 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
35350 | cat >>confdefs.h <<_ACEOF | |
35351 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
35352 | _ACEOF | |
35353 | ||
35354 | else | |
35355 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 | |
35356 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
35357 | fi | |
35358 | ||
35359 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
35360 | ||
35361 | ||
35362 | for ac_func in fcntl flock | |
35363 | do | |
35364 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35365 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35366 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35367 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35368 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35369 | else | |
35370 | cat >conftest.$ac_ext <<_ACEOF | |
35371 | /* confdefs.h. */ | |
35372 | _ACEOF | |
35373 | cat confdefs.h >>conftest.$ac_ext | |
35374 | cat >>conftest.$ac_ext <<_ACEOF | |
35375 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35376 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35377 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35378 | #define $ac_func innocuous_$ac_func | |
35379 | ||
a848cd7e SC |
35380 | /* System header to define __stub macros and hopefully few prototypes, |
35381 | which can conflict with char $ac_func (); below. | |
35382 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35383 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35384 | |
a848cd7e SC |
35385 | #ifdef __STDC__ |
35386 | # include <limits.h> | |
35387 | #else | |
35388 | # include <assert.h> | |
35389 | #endif | |
ac1cb8d3 VS |
35390 | |
35391 | #undef $ac_func | |
35392 | ||
a848cd7e SC |
35393 | /* Override any gcc2 internal prototype to avoid an error. */ |
35394 | #ifdef __cplusplus | |
35395 | extern "C" | |
35396 | { | |
35397 | #endif | |
35398 | /* We use char because int might match the return type of a gcc2 | |
35399 | builtin and then its argument prototype would still apply. */ | |
35400 | char $ac_func (); | |
35401 | /* The GNU C library defines this for functions which it implements | |
35402 | to always fail with ENOSYS. Some functions are actually named | |
35403 | something starting with __ and the normal name is an alias. */ | |
35404 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35405 | choke me | |
35406 | #else | |
35407 | char (*f) () = $ac_func; | |
35408 | #endif | |
35409 | #ifdef __cplusplus | |
35410 | } | |
35411 | #endif | |
35412 | ||
35413 | int | |
35414 | main () | |
35415 | { | |
35416 | return f != $ac_func; | |
35417 | ; | |
35418 | return 0; | |
35419 | } | |
35420 | _ACEOF | |
35421 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35422 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35423 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35424 | ac_status=$? |
ac1cb8d3 VS |
35425 | grep -v '^ *+' conftest.er1 >conftest.err |
35426 | rm -f conftest.er1 | |
35427 | cat conftest.err >&5 | |
a848cd7e SC |
35428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35429 | (exit $ac_status); } && | |
5d7b7554 | 35430 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35432 | (eval $ac_try) 2>&5 | |
35433 | ac_status=$? | |
35434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35435 | (exit $ac_status); }; } && | |
35436 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35438 | (eval $ac_try) 2>&5 | |
35439 | ac_status=$? | |
35440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35441 | (exit $ac_status); }; }; then | |
35442 | eval "$as_ac_var=yes" | |
35443 | else | |
35444 | echo "$as_me: failed program was:" >&5 | |
35445 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35446 | ||
35447 | eval "$as_ac_var=no" | |
35448 | fi | |
ac1cb8d3 VS |
35449 | rm -f conftest.err conftest.$ac_objext \ |
35450 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35451 | fi |
35452 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35453 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35454 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35455 | cat >>confdefs.h <<_ACEOF | |
35456 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35457 | _ACEOF | |
35458 | break | |
35459 | fi | |
35460 | done | |
35461 | ||
35462 | ||
35463 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
35464 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 | |
35465 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
35466 | wxUSE_SNGLINST_CHECKER=no | |
35467 | fi | |
35468 | fi | |
35469 | ||
35470 | ||
35471 | for ac_func in timegm | |
35472 | do | |
35473 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35474 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35475 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35476 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35477 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35478 | else | |
35479 | cat >conftest.$ac_ext <<_ACEOF | |
35480 | /* confdefs.h. */ | |
35481 | _ACEOF | |
35482 | cat confdefs.h >>conftest.$ac_ext | |
35483 | cat >>conftest.$ac_ext <<_ACEOF | |
35484 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35485 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35486 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35487 | #define $ac_func innocuous_$ac_func | |
35488 | ||
a848cd7e SC |
35489 | /* System header to define __stub macros and hopefully few prototypes, |
35490 | which can conflict with char $ac_func (); below. | |
35491 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35492 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35493 | |
a848cd7e SC |
35494 | #ifdef __STDC__ |
35495 | # include <limits.h> | |
35496 | #else | |
35497 | # include <assert.h> | |
35498 | #endif | |
ac1cb8d3 VS |
35499 | |
35500 | #undef $ac_func | |
35501 | ||
a848cd7e SC |
35502 | /* Override any gcc2 internal prototype to avoid an error. */ |
35503 | #ifdef __cplusplus | |
35504 | extern "C" | |
35505 | { | |
35506 | #endif | |
35507 | /* We use char because int might match the return type of a gcc2 | |
35508 | builtin and then its argument prototype would still apply. */ | |
35509 | char $ac_func (); | |
35510 | /* The GNU C library defines this for functions which it implements | |
35511 | to always fail with ENOSYS. Some functions are actually named | |
35512 | something starting with __ and the normal name is an alias. */ | |
35513 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35514 | choke me | |
35515 | #else | |
35516 | char (*f) () = $ac_func; | |
35517 | #endif | |
35518 | #ifdef __cplusplus | |
35519 | } | |
35520 | #endif | |
35521 | ||
35522 | int | |
35523 | main () | |
35524 | { | |
35525 | return f != $ac_func; | |
35526 | ; | |
35527 | return 0; | |
35528 | } | |
35529 | _ACEOF | |
35530 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35531 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35532 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35533 | ac_status=$? |
ac1cb8d3 VS |
35534 | grep -v '^ *+' conftest.er1 >conftest.err |
35535 | rm -f conftest.er1 | |
35536 | cat conftest.err >&5 | |
a848cd7e SC |
35537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35538 | (exit $ac_status); } && | |
5d7b7554 | 35539 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35541 | (eval $ac_try) 2>&5 | |
35542 | ac_status=$? | |
35543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35544 | (exit $ac_status); }; } && | |
35545 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35547 | (eval $ac_try) 2>&5 | |
35548 | ac_status=$? | |
35549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35550 | (exit $ac_status); }; }; then | |
35551 | eval "$as_ac_var=yes" | |
35552 | else | |
35553 | echo "$as_me: failed program was:" >&5 | |
35554 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35555 | ||
35556 | eval "$as_ac_var=no" | |
35557 | fi | |
ac1cb8d3 VS |
35558 | rm -f conftest.err conftest.$ac_objext \ |
35559 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35560 | fi |
35561 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35562 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35563 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35564 | cat >>confdefs.h <<_ACEOF | |
35565 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35566 | _ACEOF | |
35567 | ||
35568 | fi | |
35569 | done | |
35570 | ||
35571 | ||
35572 | ||
35573 | ||
35574 | for ac_func in putenv setenv | |
35575 | do | |
35576 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35577 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35578 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35579 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35580 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35581 | else | |
35582 | cat >conftest.$ac_ext <<_ACEOF | |
35583 | /* confdefs.h. */ | |
35584 | _ACEOF | |
35585 | cat confdefs.h >>conftest.$ac_ext | |
35586 | cat >>conftest.$ac_ext <<_ACEOF | |
35587 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35588 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35589 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35590 | #define $ac_func innocuous_$ac_func | |
35591 | ||
a848cd7e SC |
35592 | /* System header to define __stub macros and hopefully few prototypes, |
35593 | which can conflict with char $ac_func (); below. | |
35594 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35595 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35596 | |
a848cd7e SC |
35597 | #ifdef __STDC__ |
35598 | # include <limits.h> | |
35599 | #else | |
35600 | # include <assert.h> | |
35601 | #endif | |
ac1cb8d3 VS |
35602 | |
35603 | #undef $ac_func | |
35604 | ||
a848cd7e SC |
35605 | /* Override any gcc2 internal prototype to avoid an error. */ |
35606 | #ifdef __cplusplus | |
35607 | extern "C" | |
35608 | { | |
35609 | #endif | |
35610 | /* We use char because int might match the return type of a gcc2 | |
35611 | builtin and then its argument prototype would still apply. */ | |
35612 | char $ac_func (); | |
35613 | /* The GNU C library defines this for functions which it implements | |
35614 | to always fail with ENOSYS. Some functions are actually named | |
35615 | something starting with __ and the normal name is an alias. */ | |
35616 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35617 | choke me | |
35618 | #else | |
35619 | char (*f) () = $ac_func; | |
35620 | #endif | |
35621 | #ifdef __cplusplus | |
35622 | } | |
35623 | #endif | |
35624 | ||
35625 | int | |
35626 | main () | |
35627 | { | |
35628 | return f != $ac_func; | |
35629 | ; | |
35630 | return 0; | |
35631 | } | |
35632 | _ACEOF | |
35633 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35634 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35635 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35636 | ac_status=$? |
ac1cb8d3 VS |
35637 | grep -v '^ *+' conftest.er1 >conftest.err |
35638 | rm -f conftest.er1 | |
35639 | cat conftest.err >&5 | |
a848cd7e SC |
35640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35641 | (exit $ac_status); } && | |
5d7b7554 | 35642 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35644 | (eval $ac_try) 2>&5 | |
35645 | ac_status=$? | |
35646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35647 | (exit $ac_status); }; } && | |
35648 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35650 | (eval $ac_try) 2>&5 | |
35651 | ac_status=$? | |
35652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35653 | (exit $ac_status); }; }; then | |
35654 | eval "$as_ac_var=yes" | |
35655 | else | |
35656 | echo "$as_me: failed program was:" >&5 | |
35657 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35658 | ||
35659 | eval "$as_ac_var=no" | |
35660 | fi | |
ac1cb8d3 VS |
35661 | rm -f conftest.err conftest.$ac_objext \ |
35662 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35663 | fi |
35664 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35665 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35666 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35667 | cat >>confdefs.h <<_ACEOF | |
35668 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35669 | _ACEOF | |
35670 | break | |
35671 | fi | |
35672 | done | |
35673 | ||
35674 | ||
35675 | HAVE_SOME_SLEEP_FUNC=0 | |
35676 | if test "$USE_BEOS" = 1; then | |
35677 | cat >>confdefs.h <<\_ACEOF | |
35678 | #define HAVE_SLEEP 1 | |
35679 | _ACEOF | |
35680 | ||
35681 | HAVE_SOME_SLEEP_FUNC=1 | |
35682 | fi | |
35683 | ||
35684 | if test "$USE_DARWIN" = 1; then | |
35685 | cat >>confdefs.h <<\_ACEOF | |
35686 | #define HAVE_USLEEP 1 | |
35687 | _ACEOF | |
35688 | ||
35689 | HAVE_SOME_SLEEP_FUNC=1 | |
35690 | fi | |
35691 | ||
35692 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
35693 | POSIX4_LINK= | |
35694 | ||
35695 | for ac_func in nanosleep | |
35696 | do | |
35697 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35698 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35699 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35700 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35701 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35702 | else | |
35703 | cat >conftest.$ac_ext <<_ACEOF | |
35704 | /* confdefs.h. */ | |
35705 | _ACEOF | |
35706 | cat confdefs.h >>conftest.$ac_ext | |
35707 | cat >>conftest.$ac_ext <<_ACEOF | |
35708 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35709 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35710 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35711 | #define $ac_func innocuous_$ac_func | |
35712 | ||
a848cd7e SC |
35713 | /* System header to define __stub macros and hopefully few prototypes, |
35714 | which can conflict with char $ac_func (); below. | |
35715 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35716 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35717 | |
a848cd7e SC |
35718 | #ifdef __STDC__ |
35719 | # include <limits.h> | |
35720 | #else | |
35721 | # include <assert.h> | |
35722 | #endif | |
ac1cb8d3 VS |
35723 | |
35724 | #undef $ac_func | |
35725 | ||
a848cd7e SC |
35726 | /* Override any gcc2 internal prototype to avoid an error. */ |
35727 | #ifdef __cplusplus | |
35728 | extern "C" | |
35729 | { | |
35730 | #endif | |
35731 | /* We use char because int might match the return type of a gcc2 | |
35732 | builtin and then its argument prototype would still apply. */ | |
35733 | char $ac_func (); | |
35734 | /* The GNU C library defines this for functions which it implements | |
35735 | to always fail with ENOSYS. Some functions are actually named | |
35736 | something starting with __ and the normal name is an alias. */ | |
35737 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35738 | choke me | |
35739 | #else | |
35740 | char (*f) () = $ac_func; | |
35741 | #endif | |
35742 | #ifdef __cplusplus | |
35743 | } | |
35744 | #endif | |
35745 | ||
35746 | int | |
35747 | main () | |
35748 | { | |
35749 | return f != $ac_func; | |
35750 | ; | |
35751 | return 0; | |
35752 | } | |
35753 | _ACEOF | |
35754 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35755 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35756 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35757 | ac_status=$? |
ac1cb8d3 VS |
35758 | grep -v '^ *+' conftest.er1 >conftest.err |
35759 | rm -f conftest.er1 | |
35760 | cat conftest.err >&5 | |
a848cd7e SC |
35761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35762 | (exit $ac_status); } && | |
5d7b7554 | 35763 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35765 | (eval $ac_try) 2>&5 | |
35766 | ac_status=$? | |
35767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35768 | (exit $ac_status); }; } && | |
35769 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35771 | (eval $ac_try) 2>&5 | |
35772 | ac_status=$? | |
35773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35774 | (exit $ac_status); }; }; then | |
35775 | eval "$as_ac_var=yes" | |
35776 | else | |
35777 | echo "$as_me: failed program was:" >&5 | |
35778 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35779 | ||
35780 | eval "$as_ac_var=no" | |
35781 | fi | |
ac1cb8d3 VS |
35782 | rm -f conftest.err conftest.$ac_objext \ |
35783 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35784 | fi |
35785 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35786 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35787 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35788 | cat >>confdefs.h <<_ACEOF | |
35789 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35790 | _ACEOF | |
35791 | cat >>confdefs.h <<\_ACEOF | |
35792 | #define HAVE_NANOSLEEP 1 | |
35793 | _ACEOF | |
35794 | ||
35795 | else | |
35796 | ||
35797 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
35798 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
35799 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
35800 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35801 | else | |
35802 | ac_check_lib_save_LIBS=$LIBS | |
35803 | LIBS="-lposix4 $LIBS" | |
35804 | cat >conftest.$ac_ext <<_ACEOF | |
35805 | /* confdefs.h. */ | |
35806 | _ACEOF | |
35807 | cat confdefs.h >>conftest.$ac_ext | |
35808 | cat >>conftest.$ac_ext <<_ACEOF | |
35809 | /* end confdefs.h. */ | |
35810 | ||
35811 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35812 | #ifdef __cplusplus | |
35813 | extern "C" | |
35814 | #endif | |
35815 | /* We use char because int might match the return type of a gcc2 | |
35816 | builtin and then its argument prototype would still apply. */ | |
35817 | char nanosleep (); | |
35818 | int | |
35819 | main () | |
35820 | { | |
35821 | nanosleep (); | |
35822 | ; | |
35823 | return 0; | |
35824 | } | |
35825 | _ACEOF | |
35826 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35827 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35828 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35829 | ac_status=$? |
ac1cb8d3 VS |
35830 | grep -v '^ *+' conftest.er1 >conftest.err |
35831 | rm -f conftest.er1 | |
35832 | cat conftest.err >&5 | |
a848cd7e SC |
35833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35834 | (exit $ac_status); } && | |
5d7b7554 | 35835 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35837 | (eval $ac_try) 2>&5 | |
35838 | ac_status=$? | |
35839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35840 | (exit $ac_status); }; } && | |
35841 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35843 | (eval $ac_try) 2>&5 | |
35844 | ac_status=$? | |
35845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35846 | (exit $ac_status); }; }; then | |
35847 | ac_cv_lib_posix4_nanosleep=yes | |
35848 | else | |
35849 | echo "$as_me: failed program was:" >&5 | |
35850 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35851 | ||
35852 | ac_cv_lib_posix4_nanosleep=no | |
35853 | fi | |
ac1cb8d3 VS |
35854 | rm -f conftest.err conftest.$ac_objext \ |
35855 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35856 | LIBS=$ac_check_lib_save_LIBS |
35857 | fi | |
35858 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
35859 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
35860 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
35861 | ||
35862 | cat >>confdefs.h <<\_ACEOF | |
35863 | #define HAVE_NANOSLEEP 1 | |
35864 | _ACEOF | |
35865 | ||
35866 | POSIX4_LINK=" -lposix4" | |
35867 | ||
35868 | else | |
35869 | ||
35870 | ||
35871 | for ac_func in usleep | |
35872 | do | |
35873 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35874 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35875 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35876 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35877 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35878 | else | |
35879 | cat >conftest.$ac_ext <<_ACEOF | |
35880 | /* confdefs.h. */ | |
35881 | _ACEOF | |
35882 | cat confdefs.h >>conftest.$ac_ext | |
35883 | cat >>conftest.$ac_ext <<_ACEOF | |
35884 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35885 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35886 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35887 | #define $ac_func innocuous_$ac_func | |
35888 | ||
a848cd7e SC |
35889 | /* System header to define __stub macros and hopefully few prototypes, |
35890 | which can conflict with char $ac_func (); below. | |
35891 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35892 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35893 | |
a848cd7e SC |
35894 | #ifdef __STDC__ |
35895 | # include <limits.h> | |
35896 | #else | |
35897 | # include <assert.h> | |
35898 | #endif | |
ac1cb8d3 VS |
35899 | |
35900 | #undef $ac_func | |
35901 | ||
a848cd7e SC |
35902 | /* Override any gcc2 internal prototype to avoid an error. */ |
35903 | #ifdef __cplusplus | |
35904 | extern "C" | |
35905 | { | |
35906 | #endif | |
35907 | /* We use char because int might match the return type of a gcc2 | |
35908 | builtin and then its argument prototype would still apply. */ | |
35909 | char $ac_func (); | |
35910 | /* The GNU C library defines this for functions which it implements | |
35911 | to always fail with ENOSYS. Some functions are actually named | |
35912 | something starting with __ and the normal name is an alias. */ | |
35913 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35914 | choke me | |
35915 | #else | |
35916 | char (*f) () = $ac_func; | |
35917 | #endif | |
35918 | #ifdef __cplusplus | |
35919 | } | |
35920 | #endif | |
35921 | ||
35922 | int | |
35923 | main () | |
35924 | { | |
35925 | return f != $ac_func; | |
35926 | ; | |
35927 | return 0; | |
35928 | } | |
35929 | _ACEOF | |
35930 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35931 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35932 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35933 | ac_status=$? |
ac1cb8d3 VS |
35934 | grep -v '^ *+' conftest.er1 >conftest.err |
35935 | rm -f conftest.er1 | |
35936 | cat conftest.err >&5 | |
a848cd7e SC |
35937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35938 | (exit $ac_status); } && | |
5d7b7554 | 35939 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
35940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35941 | (eval $ac_try) 2>&5 | |
35942 | ac_status=$? | |
35943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35944 | (exit $ac_status); }; } && | |
35945 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35947 | (eval $ac_try) 2>&5 | |
35948 | ac_status=$? | |
35949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35950 | (exit $ac_status); }; }; then | |
35951 | eval "$as_ac_var=yes" | |
35952 | else | |
35953 | echo "$as_me: failed program was:" >&5 | |
35954 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35955 | ||
35956 | eval "$as_ac_var=no" | |
35957 | fi | |
ac1cb8d3 VS |
35958 | rm -f conftest.err conftest.$ac_objext \ |
35959 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35960 | fi |
35961 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35962 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35963 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35964 | cat >>confdefs.h <<_ACEOF | |
35965 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35966 | _ACEOF | |
35967 | cat >>confdefs.h <<\_ACEOF | |
35968 | #define HAVE_USLEEP 1 | |
35969 | _ACEOF | |
35970 | ||
35971 | else | |
35972 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 | |
35973 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
35974 | ||
35975 | fi | |
35976 | done | |
35977 | ||
35978 | ||
35979 | ||
35980 | fi | |
35981 | ||
35982 | ||
35983 | ||
35984 | fi | |
35985 | done | |
35986 | ||
35987 | fi | |
35988 | ||
35989 | ||
35990 | ||
35991 | for ac_func in uname gethostname | |
35992 | do | |
35993 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35994 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35995 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35996 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35997 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35998 | else | |
35999 | cat >conftest.$ac_ext <<_ACEOF | |
36000 | /* confdefs.h. */ | |
36001 | _ACEOF | |
36002 | cat confdefs.h >>conftest.$ac_ext | |
36003 | cat >>conftest.$ac_ext <<_ACEOF | |
36004 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36005 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36006 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36007 | #define $ac_func innocuous_$ac_func | |
36008 | ||
a848cd7e SC |
36009 | /* System header to define __stub macros and hopefully few prototypes, |
36010 | which can conflict with char $ac_func (); below. | |
36011 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36012 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36013 | |
a848cd7e SC |
36014 | #ifdef __STDC__ |
36015 | # include <limits.h> | |
36016 | #else | |
36017 | # include <assert.h> | |
36018 | #endif | |
ac1cb8d3 VS |
36019 | |
36020 | #undef $ac_func | |
36021 | ||
a848cd7e SC |
36022 | /* Override any gcc2 internal prototype to avoid an error. */ |
36023 | #ifdef __cplusplus | |
36024 | extern "C" | |
36025 | { | |
36026 | #endif | |
36027 | /* We use char because int might match the return type of a gcc2 | |
36028 | builtin and then its argument prototype would still apply. */ | |
36029 | char $ac_func (); | |
36030 | /* The GNU C library defines this for functions which it implements | |
36031 | to always fail with ENOSYS. Some functions are actually named | |
36032 | something starting with __ and the normal name is an alias. */ | |
36033 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36034 | choke me | |
36035 | #else | |
36036 | char (*f) () = $ac_func; | |
36037 | #endif | |
36038 | #ifdef __cplusplus | |
36039 | } | |
36040 | #endif | |
36041 | ||
36042 | int | |
36043 | main () | |
36044 | { | |
36045 | return f != $ac_func; | |
36046 | ; | |
36047 | return 0; | |
36048 | } | |
36049 | _ACEOF | |
36050 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36051 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36052 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36053 | ac_status=$? |
ac1cb8d3 VS |
36054 | grep -v '^ *+' conftest.er1 >conftest.err |
36055 | rm -f conftest.er1 | |
36056 | cat conftest.err >&5 | |
a848cd7e SC |
36057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36058 | (exit $ac_status); } && | |
5d7b7554 | 36059 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36061 | (eval $ac_try) 2>&5 | |
36062 | ac_status=$? | |
36063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36064 | (exit $ac_status); }; } && | |
36065 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36067 | (eval $ac_try) 2>&5 | |
36068 | ac_status=$? | |
36069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36070 | (exit $ac_status); }; }; then | |
36071 | eval "$as_ac_var=yes" | |
36072 | else | |
36073 | echo "$as_me: failed program was:" >&5 | |
36074 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36075 | ||
36076 | eval "$as_ac_var=no" | |
36077 | fi | |
ac1cb8d3 VS |
36078 | rm -f conftest.err conftest.$ac_objext \ |
36079 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36080 | fi |
36081 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36082 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36083 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36084 | cat >>confdefs.h <<_ACEOF | |
36085 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36086 | _ACEOF | |
36087 | break | |
36088 | fi | |
36089 | done | |
36090 | ||
36091 | ||
a848cd7e SC |
36092 | |
36093 | for ac_func in strtok_r | |
36094 | do | |
36095 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36096 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36097 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36098 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36099 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36100 | else | |
36101 | cat >conftest.$ac_ext <<_ACEOF | |
36102 | /* confdefs.h. */ | |
36103 | _ACEOF | |
36104 | cat confdefs.h >>conftest.$ac_ext | |
36105 | cat >>conftest.$ac_ext <<_ACEOF | |
36106 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36107 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36108 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36109 | #define $ac_func innocuous_$ac_func | |
36110 | ||
a848cd7e SC |
36111 | /* System header to define __stub macros and hopefully few prototypes, |
36112 | which can conflict with char $ac_func (); below. | |
36113 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36114 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36115 | |
a848cd7e SC |
36116 | #ifdef __STDC__ |
36117 | # include <limits.h> | |
36118 | #else | |
36119 | # include <assert.h> | |
36120 | #endif | |
ac1cb8d3 VS |
36121 | |
36122 | #undef $ac_func | |
36123 | ||
a848cd7e SC |
36124 | /* Override any gcc2 internal prototype to avoid an error. */ |
36125 | #ifdef __cplusplus | |
36126 | extern "C" | |
36127 | { | |
36128 | #endif | |
36129 | /* We use char because int might match the return type of a gcc2 | |
36130 | builtin and then its argument prototype would still apply. */ | |
36131 | char $ac_func (); | |
36132 | /* The GNU C library defines this for functions which it implements | |
36133 | to always fail with ENOSYS. Some functions are actually named | |
36134 | something starting with __ and the normal name is an alias. */ | |
36135 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36136 | choke me | |
36137 | #else | |
36138 | char (*f) () = $ac_func; | |
36139 | #endif | |
36140 | #ifdef __cplusplus | |
36141 | } | |
36142 | #endif | |
36143 | ||
36144 | int | |
36145 | main () | |
36146 | { | |
36147 | return f != $ac_func; | |
36148 | ; | |
36149 | return 0; | |
36150 | } | |
36151 | _ACEOF | |
36152 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36153 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36154 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36155 | ac_status=$? |
ac1cb8d3 VS |
36156 | grep -v '^ *+' conftest.er1 >conftest.err |
36157 | rm -f conftest.er1 | |
36158 | cat conftest.err >&5 | |
a848cd7e SC |
36159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36160 | (exit $ac_status); } && | |
5d7b7554 | 36161 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36163 | (eval $ac_try) 2>&5 | |
36164 | ac_status=$? | |
36165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36166 | (exit $ac_status); }; } && | |
36167 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36169 | (eval $ac_try) 2>&5 | |
36170 | ac_status=$? | |
36171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36172 | (exit $ac_status); }; }; then | |
36173 | eval "$as_ac_var=yes" | |
36174 | else | |
36175 | echo "$as_me: failed program was:" >&5 | |
36176 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36177 | ||
36178 | eval "$as_ac_var=no" | |
36179 | fi | |
ac1cb8d3 VS |
36180 | rm -f conftest.err conftest.$ac_objext \ |
36181 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36182 | fi |
36183 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36184 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36185 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36186 | cat >>confdefs.h <<_ACEOF | |
36187 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36188 | _ACEOF | |
36189 | ||
36190 | fi | |
36191 | done | |
36192 | ||
36193 | ||
a848cd7e SC |
36194 | INET_LINK= |
36195 | ||
36196 | for ac_func in inet_addr | |
36197 | do | |
36198 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36199 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36200 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36201 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36202 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36203 | else | |
36204 | cat >conftest.$ac_ext <<_ACEOF | |
36205 | /* confdefs.h. */ | |
36206 | _ACEOF | |
36207 | cat confdefs.h >>conftest.$ac_ext | |
36208 | cat >>conftest.$ac_ext <<_ACEOF | |
36209 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36210 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36211 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36212 | #define $ac_func innocuous_$ac_func | |
36213 | ||
a848cd7e SC |
36214 | /* System header to define __stub macros and hopefully few prototypes, |
36215 | which can conflict with char $ac_func (); below. | |
36216 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36217 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36218 | |
a848cd7e SC |
36219 | #ifdef __STDC__ |
36220 | # include <limits.h> | |
36221 | #else | |
36222 | # include <assert.h> | |
36223 | #endif | |
ac1cb8d3 VS |
36224 | |
36225 | #undef $ac_func | |
36226 | ||
a848cd7e SC |
36227 | /* Override any gcc2 internal prototype to avoid an error. */ |
36228 | #ifdef __cplusplus | |
36229 | extern "C" | |
36230 | { | |
36231 | #endif | |
36232 | /* We use char because int might match the return type of a gcc2 | |
36233 | builtin and then its argument prototype would still apply. */ | |
36234 | char $ac_func (); | |
36235 | /* The GNU C library defines this for functions which it implements | |
36236 | to always fail with ENOSYS. Some functions are actually named | |
36237 | something starting with __ and the normal name is an alias. */ | |
36238 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36239 | choke me | |
36240 | #else | |
36241 | char (*f) () = $ac_func; | |
36242 | #endif | |
36243 | #ifdef __cplusplus | |
36244 | } | |
36245 | #endif | |
36246 | ||
36247 | int | |
36248 | main () | |
36249 | { | |
36250 | return f != $ac_func; | |
36251 | ; | |
36252 | return 0; | |
36253 | } | |
36254 | _ACEOF | |
36255 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36256 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36257 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36258 | ac_status=$? |
ac1cb8d3 VS |
36259 | grep -v '^ *+' conftest.er1 >conftest.err |
36260 | rm -f conftest.er1 | |
36261 | cat conftest.err >&5 | |
a848cd7e SC |
36262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36263 | (exit $ac_status); } && | |
5d7b7554 | 36264 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36266 | (eval $ac_try) 2>&5 | |
36267 | ac_status=$? | |
36268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36269 | (exit $ac_status); }; } && | |
36270 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36272 | (eval $ac_try) 2>&5 | |
36273 | ac_status=$? | |
36274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36275 | (exit $ac_status); }; }; then | |
36276 | eval "$as_ac_var=yes" | |
36277 | else | |
36278 | echo "$as_me: failed program was:" >&5 | |
36279 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36280 | ||
36281 | eval "$as_ac_var=no" | |
36282 | fi | |
ac1cb8d3 VS |
36283 | rm -f conftest.err conftest.$ac_objext \ |
36284 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36285 | fi |
36286 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36287 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36288 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36289 | cat >>confdefs.h <<_ACEOF | |
36290 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36291 | _ACEOF | |
36292 | cat >>confdefs.h <<\_ACEOF | |
36293 | #define HAVE_INET_ADDR 1 | |
36294 | _ACEOF | |
36295 | ||
36296 | else | |
36297 | ||
36298 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
36299 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
36300 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
36301 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36302 | else | |
36303 | ac_check_lib_save_LIBS=$LIBS | |
36304 | LIBS="-lnsl $LIBS" | |
36305 | cat >conftest.$ac_ext <<_ACEOF | |
36306 | /* confdefs.h. */ | |
36307 | _ACEOF | |
36308 | cat confdefs.h >>conftest.$ac_ext | |
36309 | cat >>conftest.$ac_ext <<_ACEOF | |
36310 | /* end confdefs.h. */ | |
36311 | ||
36312 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36313 | #ifdef __cplusplus | |
36314 | extern "C" | |
36315 | #endif | |
36316 | /* We use char because int might match the return type of a gcc2 | |
36317 | builtin and then its argument prototype would still apply. */ | |
36318 | char inet_addr (); | |
36319 | int | |
36320 | main () | |
36321 | { | |
36322 | inet_addr (); | |
36323 | ; | |
36324 | return 0; | |
36325 | } | |
36326 | _ACEOF | |
36327 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36328 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36329 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36330 | ac_status=$? |
ac1cb8d3 VS |
36331 | grep -v '^ *+' conftest.er1 >conftest.err |
36332 | rm -f conftest.er1 | |
36333 | cat conftest.err >&5 | |
a848cd7e SC |
36334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36335 | (exit $ac_status); } && | |
5d7b7554 | 36336 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36338 | (eval $ac_try) 2>&5 | |
36339 | ac_status=$? | |
36340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36341 | (exit $ac_status); }; } && | |
36342 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36344 | (eval $ac_try) 2>&5 | |
36345 | ac_status=$? | |
36346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36347 | (exit $ac_status); }; }; then | |
36348 | ac_cv_lib_nsl_inet_addr=yes | |
36349 | else | |
36350 | echo "$as_me: failed program was:" >&5 | |
36351 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36352 | ||
36353 | ac_cv_lib_nsl_inet_addr=no | |
36354 | fi | |
ac1cb8d3 VS |
36355 | rm -f conftest.err conftest.$ac_objext \ |
36356 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36357 | LIBS=$ac_check_lib_save_LIBS |
36358 | fi | |
36359 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
36360 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
36361 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
36362 | INET_LINK="nsl" | |
36363 | else | |
36364 | ||
36365 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
36366 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
36367 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
36368 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36369 | else | |
36370 | ac_check_lib_save_LIBS=$LIBS | |
36371 | LIBS="-lresolv $LIBS" | |
36372 | cat >conftest.$ac_ext <<_ACEOF | |
36373 | /* confdefs.h. */ | |
36374 | _ACEOF | |
36375 | cat confdefs.h >>conftest.$ac_ext | |
36376 | cat >>conftest.$ac_ext <<_ACEOF | |
36377 | /* end confdefs.h. */ | |
36378 | ||
36379 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36380 | #ifdef __cplusplus | |
36381 | extern "C" | |
36382 | #endif | |
36383 | /* We use char because int might match the return type of a gcc2 | |
36384 | builtin and then its argument prototype would still apply. */ | |
36385 | char inet_addr (); | |
36386 | int | |
36387 | main () | |
36388 | { | |
36389 | inet_addr (); | |
36390 | ; | |
36391 | return 0; | |
36392 | } | |
36393 | _ACEOF | |
36394 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36395 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36396 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36397 | ac_status=$? |
ac1cb8d3 VS |
36398 | grep -v '^ *+' conftest.er1 >conftest.err |
36399 | rm -f conftest.er1 | |
36400 | cat conftest.err >&5 | |
a848cd7e SC |
36401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36402 | (exit $ac_status); } && | |
5d7b7554 | 36403 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36405 | (eval $ac_try) 2>&5 | |
36406 | ac_status=$? | |
36407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36408 | (exit $ac_status); }; } && | |
36409 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36411 | (eval $ac_try) 2>&5 | |
36412 | ac_status=$? | |
36413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36414 | (exit $ac_status); }; }; then | |
36415 | ac_cv_lib_resolv_inet_addr=yes | |
36416 | else | |
36417 | echo "$as_me: failed program was:" >&5 | |
36418 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36419 | ||
36420 | ac_cv_lib_resolv_inet_addr=no | |
36421 | fi | |
ac1cb8d3 VS |
36422 | rm -f conftest.err conftest.$ac_objext \ |
36423 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36424 | LIBS=$ac_check_lib_save_LIBS |
36425 | fi | |
36426 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
36427 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
36428 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
36429 | INET_LINK="resolv" | |
36430 | else | |
36431 | ||
36432 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
36433 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
36434 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
36435 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36436 | else | |
36437 | ac_check_lib_save_LIBS=$LIBS | |
36438 | LIBS="-lsocket $LIBS" | |
36439 | cat >conftest.$ac_ext <<_ACEOF | |
36440 | /* confdefs.h. */ | |
36441 | _ACEOF | |
36442 | cat confdefs.h >>conftest.$ac_ext | |
36443 | cat >>conftest.$ac_ext <<_ACEOF | |
36444 | /* end confdefs.h. */ | |
36445 | ||
36446 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36447 | #ifdef __cplusplus | |
36448 | extern "C" | |
36449 | #endif | |
36450 | /* We use char because int might match the return type of a gcc2 | |
36451 | builtin and then its argument prototype would still apply. */ | |
36452 | char inet_addr (); | |
36453 | int | |
36454 | main () | |
36455 | { | |
36456 | inet_addr (); | |
36457 | ; | |
36458 | return 0; | |
36459 | } | |
36460 | _ACEOF | |
36461 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36462 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36463 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36464 | ac_status=$? |
ac1cb8d3 VS |
36465 | grep -v '^ *+' conftest.er1 >conftest.err |
36466 | rm -f conftest.er1 | |
36467 | cat conftest.err >&5 | |
a848cd7e SC |
36468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36469 | (exit $ac_status); } && | |
5d7b7554 | 36470 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36472 | (eval $ac_try) 2>&5 | |
36473 | ac_status=$? | |
36474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36475 | (exit $ac_status); }; } && | |
36476 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36478 | (eval $ac_try) 2>&5 | |
36479 | ac_status=$? | |
36480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36481 | (exit $ac_status); }; }; then | |
36482 | ac_cv_lib_socket_inet_addr=yes | |
36483 | else | |
36484 | echo "$as_me: failed program was:" >&5 | |
36485 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36486 | ||
36487 | ac_cv_lib_socket_inet_addr=no | |
36488 | fi | |
ac1cb8d3 VS |
36489 | rm -f conftest.err conftest.$ac_objext \ |
36490 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36491 | LIBS=$ac_check_lib_save_LIBS |
36492 | fi | |
36493 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
36494 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
36495 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
36496 | INET_LINK="socket" | |
36497 | ||
36498 | fi | |
36499 | ||
36500 | ||
36501 | ||
36502 | fi | |
36503 | ||
36504 | ||
36505 | ||
36506 | fi | |
36507 | ||
36508 | ||
36509 | ||
36510 | fi | |
36511 | done | |
36512 | ||
36513 | ||
36514 | ||
36515 | for ac_func in inet_aton | |
36516 | do | |
36517 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36518 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36519 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36520 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36521 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36522 | else | |
36523 | cat >conftest.$ac_ext <<_ACEOF | |
36524 | /* confdefs.h. */ | |
36525 | _ACEOF | |
36526 | cat confdefs.h >>conftest.$ac_ext | |
36527 | cat >>conftest.$ac_ext <<_ACEOF | |
36528 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36529 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36530 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36531 | #define $ac_func innocuous_$ac_func | |
36532 | ||
a848cd7e SC |
36533 | /* System header to define __stub macros and hopefully few prototypes, |
36534 | which can conflict with char $ac_func (); below. | |
36535 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36536 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36537 | |
a848cd7e SC |
36538 | #ifdef __STDC__ |
36539 | # include <limits.h> | |
36540 | #else | |
36541 | # include <assert.h> | |
36542 | #endif | |
ac1cb8d3 VS |
36543 | |
36544 | #undef $ac_func | |
36545 | ||
a848cd7e SC |
36546 | /* Override any gcc2 internal prototype to avoid an error. */ |
36547 | #ifdef __cplusplus | |
36548 | extern "C" | |
36549 | { | |
36550 | #endif | |
36551 | /* We use char because int might match the return type of a gcc2 | |
36552 | builtin and then its argument prototype would still apply. */ | |
36553 | char $ac_func (); | |
36554 | /* The GNU C library defines this for functions which it implements | |
36555 | to always fail with ENOSYS. Some functions are actually named | |
36556 | something starting with __ and the normal name is an alias. */ | |
36557 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36558 | choke me | |
36559 | #else | |
36560 | char (*f) () = $ac_func; | |
36561 | #endif | |
36562 | #ifdef __cplusplus | |
36563 | } | |
36564 | #endif | |
36565 | ||
36566 | int | |
36567 | main () | |
36568 | { | |
36569 | return f != $ac_func; | |
36570 | ; | |
36571 | return 0; | |
36572 | } | |
36573 | _ACEOF | |
36574 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36575 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36576 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36577 | ac_status=$? |
ac1cb8d3 VS |
36578 | grep -v '^ *+' conftest.er1 >conftest.err |
36579 | rm -f conftest.er1 | |
36580 | cat conftest.err >&5 | |
a848cd7e SC |
36581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36582 | (exit $ac_status); } && | |
5d7b7554 | 36583 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36585 | (eval $ac_try) 2>&5 | |
36586 | ac_status=$? | |
36587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36588 | (exit $ac_status); }; } && | |
36589 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36591 | (eval $ac_try) 2>&5 | |
36592 | ac_status=$? | |
36593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36594 | (exit $ac_status); }; }; then | |
36595 | eval "$as_ac_var=yes" | |
36596 | else | |
36597 | echo "$as_me: failed program was:" >&5 | |
36598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36599 | ||
36600 | eval "$as_ac_var=no" | |
36601 | fi | |
ac1cb8d3 VS |
36602 | rm -f conftest.err conftest.$ac_objext \ |
36603 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36604 | fi |
36605 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36606 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36607 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36608 | cat >>confdefs.h <<_ACEOF | |
36609 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36610 | _ACEOF | |
36611 | cat >>confdefs.h <<\_ACEOF | |
36612 | #define HAVE_INET_ATON 1 | |
36613 | _ACEOF | |
36614 | ||
36615 | else | |
36616 | ||
36617 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
36618 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
36619 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
36620 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
36621 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36622 | else | |
36623 | ac_check_lib_save_LIBS=$LIBS | |
36624 | LIBS="-l$INET_LINK $LIBS" | |
36625 | cat >conftest.$ac_ext <<_ACEOF | |
36626 | /* confdefs.h. */ | |
36627 | _ACEOF | |
36628 | cat confdefs.h >>conftest.$ac_ext | |
36629 | cat >>conftest.$ac_ext <<_ACEOF | |
36630 | /* end confdefs.h. */ | |
36631 | ||
36632 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36633 | #ifdef __cplusplus | |
36634 | extern "C" | |
36635 | #endif | |
36636 | /* We use char because int might match the return type of a gcc2 | |
36637 | builtin and then its argument prototype would still apply. */ | |
36638 | char inet_aton (); | |
36639 | int | |
36640 | main () | |
36641 | { | |
36642 | inet_aton (); | |
36643 | ; | |
36644 | return 0; | |
36645 | } | |
36646 | _ACEOF | |
36647 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36648 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36649 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36650 | ac_status=$? |
ac1cb8d3 VS |
36651 | grep -v '^ *+' conftest.er1 >conftest.err |
36652 | rm -f conftest.er1 | |
36653 | cat conftest.err >&5 | |
a848cd7e SC |
36654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36655 | (exit $ac_status); } && | |
5d7b7554 | 36656 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36658 | (eval $ac_try) 2>&5 | |
36659 | ac_status=$? | |
36660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36661 | (exit $ac_status); }; } && | |
36662 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36664 | (eval $ac_try) 2>&5 | |
36665 | ac_status=$? | |
36666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36667 | (exit $ac_status); }; }; then | |
36668 | eval "$as_ac_Lib=yes" | |
36669 | else | |
36670 | echo "$as_me: failed program was:" >&5 | |
36671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36672 | ||
36673 | eval "$as_ac_Lib=no" | |
36674 | fi | |
ac1cb8d3 VS |
36675 | rm -f conftest.err conftest.$ac_objext \ |
36676 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36677 | LIBS=$ac_check_lib_save_LIBS |
36678 | fi | |
36679 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
36680 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
36681 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
36682 | cat >>confdefs.h <<\_ACEOF | |
36683 | #define HAVE_INET_ATON 1 | |
36684 | _ACEOF | |
36685 | ||
36686 | fi | |
36687 | ||
36688 | ||
36689 | fi | |
36690 | done | |
36691 | ||
36692 | ||
36693 | if test "x$INET_LINK" != "x"; then | |
36694 | cat >>confdefs.h <<\_ACEOF | |
36695 | #define HAVE_INET_ADDR 1 | |
36696 | _ACEOF | |
36697 | ||
36698 | INET_LINK=" -l$INET_LINK" | |
36699 | fi | |
36700 | ||
36701 | fi | |
36702 | ||
36703 | ||
36704 | ||
36705 | EXTRALIBS_ESD= | |
36706 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
36707 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
36708 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
36709 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36710 | else | |
36711 | ac_check_lib_save_LIBS=$LIBS | |
36712 | LIBS="-lesd $LIBS" | |
36713 | cat >conftest.$ac_ext <<_ACEOF | |
36714 | /* confdefs.h. */ | |
36715 | _ACEOF | |
36716 | cat confdefs.h >>conftest.$ac_ext | |
36717 | cat >>conftest.$ac_ext <<_ACEOF | |
36718 | /* end confdefs.h. */ | |
36719 | ||
36720 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36721 | #ifdef __cplusplus | |
36722 | extern "C" | |
36723 | #endif | |
36724 | /* We use char because int might match the return type of a gcc2 | |
36725 | builtin and then its argument prototype would still apply. */ | |
36726 | char esd_close (); | |
36727 | int | |
36728 | main () | |
36729 | { | |
36730 | esd_close (); | |
36731 | ; | |
36732 | return 0; | |
36733 | } | |
36734 | _ACEOF | |
36735 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36736 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36737 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36738 | ac_status=$? |
ac1cb8d3 VS |
36739 | grep -v '^ *+' conftest.er1 >conftest.err |
36740 | rm -f conftest.er1 | |
36741 | cat conftest.err >&5 | |
a848cd7e SC |
36742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36743 | (exit $ac_status); } && | |
5d7b7554 | 36744 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36746 | (eval $ac_try) 2>&5 | |
36747 | ac_status=$? | |
36748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36749 | (exit $ac_status); }; } && | |
36750 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36752 | (eval $ac_try) 2>&5 | |
36753 | ac_status=$? | |
36754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36755 | (exit $ac_status); }; }; then | |
36756 | ac_cv_lib_esd_esd_close=yes | |
36757 | else | |
36758 | echo "$as_me: failed program was:" >&5 | |
36759 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36760 | ||
36761 | ac_cv_lib_esd_esd_close=no | |
36762 | fi | |
ac1cb8d3 VS |
36763 | rm -f conftest.err conftest.$ac_objext \ |
36764 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36765 | LIBS=$ac_check_lib_save_LIBS |
36766 | fi | |
36767 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
36768 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
36769 | if test $ac_cv_lib_esd_esd_close = yes; then | |
36770 | ||
36771 | ||
36772 | for ac_header in esd.h | |
36773 | do | |
36774 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
36775 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36776 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36777 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36778 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36779 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36780 | fi | |
36781 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36782 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36783 | else | |
36784 | # Is the header compilable? | |
36785 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
36786 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
36787 | cat >conftest.$ac_ext <<_ACEOF | |
36788 | /* confdefs.h. */ | |
36789 | _ACEOF | |
36790 | cat confdefs.h >>conftest.$ac_ext | |
36791 | cat >>conftest.$ac_ext <<_ACEOF | |
36792 | /* end confdefs.h. */ | |
36793 | $ac_includes_default | |
36794 | #include <$ac_header> | |
36795 | _ACEOF | |
36796 | rm -f conftest.$ac_objext | |
36797 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36798 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36799 | ac_status=$? |
ac1cb8d3 VS |
36800 | grep -v '^ *+' conftest.er1 >conftest.err |
36801 | rm -f conftest.er1 | |
36802 | cat conftest.err >&5 | |
a848cd7e SC |
36803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36804 | (exit $ac_status); } && | |
5d7b7554 | 36805 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36807 | (eval $ac_try) 2>&5 | |
36808 | ac_status=$? | |
36809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36810 | (exit $ac_status); }; } && | |
36811 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36813 | (eval $ac_try) 2>&5 | |
36814 | ac_status=$? | |
36815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36816 | (exit $ac_status); }; }; then | |
36817 | ac_header_compiler=yes | |
36818 | else | |
36819 | echo "$as_me: failed program was:" >&5 | |
36820 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36821 | ||
36822 | ac_header_compiler=no | |
36823 | fi | |
ac1cb8d3 | 36824 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36825 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
36826 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
36827 | ||
36828 | # Is the header present? | |
36829 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
36830 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
36831 | cat >conftest.$ac_ext <<_ACEOF | |
36832 | /* confdefs.h. */ | |
36833 | _ACEOF | |
36834 | cat confdefs.h >>conftest.$ac_ext | |
36835 | cat >>conftest.$ac_ext <<_ACEOF | |
36836 | /* end confdefs.h. */ | |
36837 | #include <$ac_header> | |
36838 | _ACEOF | |
36839 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
36840 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
36841 | ac_status=$? | |
36842 | grep -v '^ *+' conftest.er1 >conftest.err | |
36843 | rm -f conftest.er1 | |
36844 | cat conftest.err >&5 | |
36845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36846 | (exit $ac_status); } >/dev/null; then | |
36847 | if test -s conftest.err; then | |
5d7b7554 VZ |
36848 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
36849 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
36850 | else |
36851 | ac_cpp_err= | |
36852 | fi | |
36853 | else | |
36854 | ac_cpp_err=yes | |
36855 | fi | |
36856 | if test -z "$ac_cpp_err"; then | |
36857 | ac_header_preproc=yes | |
36858 | else | |
36859 | echo "$as_me: failed program was:" >&5 | |
36860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36861 | ||
36862 | ac_header_preproc=no | |
36863 | fi | |
36864 | rm -f conftest.err conftest.$ac_ext | |
36865 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
36866 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
36867 | ||
36868 | # So? What about this header? | |
5d7b7554 | 36869 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 36870 | yes:no: ) |
a848cd7e SC |
36871 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
36872 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
36873 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
36874 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
36875 | ac_header_preproc=yes | |
a848cd7e | 36876 | ;; |
ac1cb8d3 | 36877 | no:yes:* ) |
a848cd7e SC |
36878 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
36879 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
36880 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
36881 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
36882 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
36883 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
36884 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
36885 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
36886 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
36887 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
36888 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
36889 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
36890 | ( |
36891 | cat <<\_ASBOX | |
ac1cb8d3 VS |
36892 | ## ----------------------------------------- ## |
36893 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
36894 | ## ----------------------------------------- ## | |
a848cd7e SC |
36895 | _ASBOX |
36896 | ) | | |
36897 | sed "s/^/$as_me: WARNING: /" >&2 | |
36898 | ;; | |
36899 | esac | |
36900 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36901 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36902 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36903 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36904 | else | |
ac1cb8d3 | 36905 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
36906 | fi |
36907 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36908 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36909 | ||
36910 | fi | |
36911 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
36912 | cat >>confdefs.h <<_ACEOF | |
36913 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
36914 | _ACEOF | |
36915 | ||
36916 | EXTRALIBS_ESD="-lesd" | |
36917 | ||
36918 | fi | |
36919 | ||
36920 | done | |
36921 | ||
36922 | ||
36923 | fi | |
36924 | ||
36925 | ||
36926 | ||
36927 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 | |
36928 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
36929 | cat >conftest.$ac_ext <<_ACEOF | |
36930 | /* confdefs.h. */ | |
36931 | _ACEOF | |
36932 | cat confdefs.h >>conftest.$ac_ext | |
36933 | cat >>conftest.$ac_ext <<_ACEOF | |
36934 | /* end confdefs.h. */ | |
36935 | #ifdef __linux__ | |
36936 | #include <linux/cdrom.h> | |
36937 | #else | |
36938 | /* For Solaris */ | |
36939 | #include <sys/cdio.h> | |
36940 | #endif | |
36941 | ||
36942 | int | |
36943 | main () | |
36944 | { | |
36945 | struct cdrom_tocentry entry, old_entry; | |
36946 | ; | |
36947 | return 0; | |
36948 | } | |
36949 | _ACEOF | |
36950 | rm -f conftest.$ac_objext | |
36951 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36952 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36953 | ac_status=$? |
ac1cb8d3 VS |
36954 | grep -v '^ *+' conftest.er1 >conftest.err |
36955 | rm -f conftest.er1 | |
36956 | cat conftest.err >&5 | |
a848cd7e SC |
36957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36958 | (exit $ac_status); } && | |
5d7b7554 | 36959 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
36960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36961 | (eval $ac_try) 2>&5 | |
36962 | ac_status=$? | |
36963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36964 | (exit $ac_status); }; } && | |
36965 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36967 | (eval $ac_try) 2>&5 | |
36968 | ac_status=$? | |
36969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36970 | (exit $ac_status); }; }; then | |
36971 | echo "$as_me:$LINENO: result: yes" >&5 | |
36972 | echo "${ECHO_T}yes" >&6 | |
36973 | cat >>confdefs.h <<\_ACEOF | |
36974 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
36975 | _ACEOF | |
36976 | ||
36977 | else | |
36978 | echo "$as_me: failed program was:" >&5 | |
36979 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36980 | ||
36981 | echo "$as_me:$LINENO: result: no" >&5 | |
36982 | echo "${ECHO_T}no" >&6 | |
36983 | fi | |
ac1cb8d3 | 36984 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36985 | |
36986 | ||
36987 | cat >confcache <<\_ACEOF | |
36988 | # This file is a shell script that caches the results of configure | |
36989 | # tests run on this system so they can be shared between configure | |
36990 | # scripts and configure runs, see configure's option --config-cache. | |
36991 | # It is not useful on other systems. If it contains results you don't | |
36992 | # want to keep, you may remove or edit it. | |
36993 | # | |
36994 | # config.status only pays attention to the cache file if you give it | |
36995 | # the --recheck option to rerun configure. | |
36996 | # | |
36997 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
36998 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
36999 | # following values. | |
37000 | ||
37001 | _ACEOF | |
37002 | ||
37003 | # The following way of writing the cache mishandles newlines in values, | |
37004 | # but we know of no workaround that is simple, portable, and efficient. | |
37005 | # So, don't put newlines in cache variables' values. | |
37006 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
37007 | # and sets the high bit in the cache file unless we assign to the vars. | |
37008 | { | |
37009 | (set) 2>&1 | | |
37010 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
37011 | *ac_space=\ *) | |
37012 | # `set' does not quote correctly, so add quotes (double-quote | |
37013 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
37014 | sed -n \ | |
ac1cb8d3 VS |
37015 | "s/'/'\\\\''/g; |
37016 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
37017 | ;; |
37018 | *) | |
37019 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
37020 | sed -n \ | |
ac1cb8d3 | 37021 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
37022 | ;; |
37023 | esac; | |
37024 | } | | |
37025 | sed ' | |
37026 | t clear | |
37027 | : clear | |
37028 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
37029 | t end | |
37030 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
37031 | : end' >>confcache | |
37032 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
37033 | if test -w $cache_file; then | |
37034 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
37035 | cat confcache >$cache_file | |
37036 | else | |
37037 | echo "not updating unwritable cache $cache_file" | |
37038 | fi | |
37039 | fi | |
37040 | rm -f confcache | |
37041 | ||
37042 | ||
a848cd7e SC |
37043 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then |
37044 | ||
37045 | ||
37046 | THREADS_LINK= | |
e56f4f9e | 37047 | THREADS_CXXFLAGS= |
a848cd7e SC |
37048 | |
37049 | if test "$wxUSE_THREADS" = "yes" ; then | |
37050 | if test "$USE_BEOS" = 1; then | |
37051 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 | |
37052 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
37053 | wxUSE_THREADS="no" | |
37054 | fi | |
37055 | fi | |
37056 | ||
37057 | if test "$wxUSE_THREADS" = "yes" ; then | |
37058 | ||
37059 | ||
37060 | THREAD_OPTS="-pthread" | |
37061 | case "${host}" in | |
37062 | *-*-solaris2* | *-*-sunos4* ) | |
37063 | if test "x$GCC" = "xyes"; then | |
37064 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
37065 | else | |
37066 | THREAD_OPTS="-mt $THREAD_OPTS" | |
37067 | fi | |
37068 | ;; | |
37069 | *-*-freebsd*) | |
37070 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
37071 | ;; | |
37072 | *-*-darwin* | *-*-cygwin* ) | |
37073 | THREAD_OPTS="" | |
37074 | ;; | |
37075 | *-*-aix*) | |
37076 | THREAD_OPTS="pthreads" | |
37077 | ;; | |
37078 | *-hp-hpux* ) | |
00421666 MW |
37079 | if test "x$GCC" = "xyes"; then |
37080 | $CXX -dumpspecs | grep 'pthread:' >/dev/null || | |
37081 | THREAD_OPTS="" | |
37082 | else | |
0093c2fc | 37083 | THREAD_OPTS="-mt" |
a848cd7e SC |
37084 | fi |
37085 | ;; | |
37086 | ||
37087 | *-*-irix* ) | |
37088 | if test "x$GCC" = "xyes"; then | |
37089 | THREAD_OPTS="" | |
37090 | fi | |
37091 | ;; | |
37092 | ||
37093 | *-*-*UnixWare*) | |
37094 | if test "x$GCC" != "xyes"; then | |
37095 | THREAD_OPTS="-Ethread" | |
37096 | fi | |
37097 | ;; | |
37098 | esac | |
37099 | ||
37100 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
37101 | ||
37102 | THREADS_OK=no | |
37103 | for flag in $THREAD_OPTS; do | |
37104 | case $flag in | |
37105 | none) | |
37106 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 | |
37107 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
37108 | ;; | |
37109 | ||
37110 | -*) | |
37111 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 | |
37112 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
e56f4f9e | 37113 | THREADS_CXXFLAGS="$flag" |
a848cd7e SC |
37114 | ;; |
37115 | ||
37116 | *) | |
37117 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 | |
37118 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
37119 | THREADS_LINK="-l$flag" | |
37120 | ;; | |
37121 | esac | |
37122 | ||
37123 | save_LIBS="$LIBS" | |
e56f4f9e | 37124 | save_CXXFLAGS="$CXXFLAGS" |
a848cd7e | 37125 | LIBS="$THREADS_LINK $LIBS" |
e56f4f9e | 37126 | CXXFLAGS="$THREADS_CXXFLAGS $CXXFLAGS" |
a848cd7e SC |
37127 | |
37128 | cat >conftest.$ac_ext <<_ACEOF | |
37129 | /* confdefs.h. */ | |
37130 | _ACEOF | |
37131 | cat confdefs.h >>conftest.$ac_ext | |
37132 | cat >>conftest.$ac_ext <<_ACEOF | |
37133 | /* end confdefs.h. */ | |
37134 | #include <pthread.h> | |
37135 | int | |
37136 | main () | |
37137 | { | |
37138 | pthread_create(0,0,0,0); | |
37139 | ; | |
37140 | return 0; | |
37141 | } | |
37142 | _ACEOF | |
37143 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37144 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37145 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37146 | ac_status=$? |
ac1cb8d3 VS |
37147 | grep -v '^ *+' conftest.er1 >conftest.err |
37148 | rm -f conftest.er1 | |
37149 | cat conftest.err >&5 | |
a848cd7e SC |
37150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37151 | (exit $ac_status); } && | |
5d7b7554 | 37152 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37154 | (eval $ac_try) 2>&5 | |
37155 | ac_status=$? | |
37156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37157 | (exit $ac_status); }; } && | |
37158 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37160 | (eval $ac_try) 2>&5 | |
37161 | ac_status=$? | |
37162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37163 | (exit $ac_status); }; }; then | |
37164 | THREADS_OK=yes | |
37165 | else | |
37166 | echo "$as_me: failed program was:" >&5 | |
37167 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37168 | ||
37169 | fi | |
ac1cb8d3 VS |
37170 | rm -f conftest.err conftest.$ac_objext \ |
37171 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37172 | |
37173 | LIBS="$save_LIBS" | |
e56f4f9e | 37174 | CXXFLAGS="$save_CXXFLAGS" |
a848cd7e SC |
37175 | |
37176 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 | |
37177 | echo "${ECHO_T}$THREADS_OK" >&6 | |
37178 | if test "x$THREADS_OK" = "xyes"; then | |
37179 | break; | |
37180 | fi | |
37181 | ||
37182 | THREADS_LINK="" | |
e56f4f9e | 37183 | THREADS_CXXFLAGS="" |
a848cd7e SC |
37184 | done |
37185 | ||
37186 | if test "x$THREADS_OK" != "xyes"; then | |
37187 | wxUSE_THREADS=no | |
37188 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 | |
37189 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
37190 | else | |
e56f4f9e | 37191 | LDFLAGS="$THREADS_CXXFLAGS $LDFLAGS" |
a848cd7e SC |
37192 | LIBS="$THREADS_LINK $LIBS" |
37193 | ||
37194 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 | |
37195 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
37196 | flag=no | |
37197 | case "${host}" in | |
37198 | *-aix*) | |
37199 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
37200 | flag="-D_THREAD_SAFE" | |
37201 | ;; | |
37202 | *-freebsd*) | |
37203 | flag="-D_THREAD_SAFE" | |
37204 | ;; | |
37205 | *-hp-hpux* ) | |
37206 | flag="-D_REENTRANT" | |
37207 | if test "x$GCC" != "xyes"; then | |
37208 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
37209 | fi | |
37210 | ;; | |
37211 | *solaris* | alpha*-osf*) | |
37212 | flag="-D_REENTRANT" | |
37213 | ;; | |
37214 | esac | |
37215 | echo "$as_me:$LINENO: result: ${flag}" >&5 | |
37216 | echo "${ECHO_T}${flag}" >&6 | |
37217 | if test "x$flag" != xno; then | |
e56f4f9e | 37218 | THREADS_CXXFLAGS="$THREADS_CXXFLAGS $flag" |
a848cd7e SC |
37219 | fi |
37220 | ||
e56f4f9e | 37221 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS $THREADS_CXXFLAGS" |
a848cd7e SC |
37222 | fi |
37223 | fi | |
37224 | ||
37225 | if test "$wxUSE_THREADS" = "yes" ; then | |
37226 | ||
37227 | for ac_func in thr_setconcurrency | |
37228 | do | |
37229 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37230 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37231 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37232 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37233 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37234 | else | |
37235 | cat >conftest.$ac_ext <<_ACEOF | |
37236 | /* confdefs.h. */ | |
37237 | _ACEOF | |
37238 | cat confdefs.h >>conftest.$ac_ext | |
37239 | cat >>conftest.$ac_ext <<_ACEOF | |
37240 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37241 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37242 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37243 | #define $ac_func innocuous_$ac_func | |
37244 | ||
a848cd7e SC |
37245 | /* System header to define __stub macros and hopefully few prototypes, |
37246 | which can conflict with char $ac_func (); below. | |
37247 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37248 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37249 | |
a848cd7e SC |
37250 | #ifdef __STDC__ |
37251 | # include <limits.h> | |
37252 | #else | |
37253 | # include <assert.h> | |
37254 | #endif | |
ac1cb8d3 VS |
37255 | |
37256 | #undef $ac_func | |
37257 | ||
a848cd7e SC |
37258 | /* Override any gcc2 internal prototype to avoid an error. */ |
37259 | #ifdef __cplusplus | |
37260 | extern "C" | |
37261 | { | |
37262 | #endif | |
37263 | /* We use char because int might match the return type of a gcc2 | |
37264 | builtin and then its argument prototype would still apply. */ | |
37265 | char $ac_func (); | |
37266 | /* The GNU C library defines this for functions which it implements | |
37267 | to always fail with ENOSYS. Some functions are actually named | |
37268 | something starting with __ and the normal name is an alias. */ | |
37269 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37270 | choke me | |
37271 | #else | |
37272 | char (*f) () = $ac_func; | |
37273 | #endif | |
37274 | #ifdef __cplusplus | |
37275 | } | |
37276 | #endif | |
37277 | ||
37278 | int | |
37279 | main () | |
37280 | { | |
37281 | return f != $ac_func; | |
37282 | ; | |
37283 | return 0; | |
37284 | } | |
37285 | _ACEOF | |
37286 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37287 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37288 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37289 | ac_status=$? |
ac1cb8d3 VS |
37290 | grep -v '^ *+' conftest.er1 >conftest.err |
37291 | rm -f conftest.er1 | |
37292 | cat conftest.err >&5 | |
a848cd7e SC |
37293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37294 | (exit $ac_status); } && | |
5d7b7554 | 37295 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37297 | (eval $ac_try) 2>&5 | |
37298 | ac_status=$? | |
37299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37300 | (exit $ac_status); }; } && | |
37301 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37303 | (eval $ac_try) 2>&5 | |
37304 | ac_status=$? | |
37305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37306 | (exit $ac_status); }; }; then | |
37307 | eval "$as_ac_var=yes" | |
37308 | else | |
37309 | echo "$as_me: failed program was:" >&5 | |
37310 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37311 | ||
37312 | eval "$as_ac_var=no" | |
37313 | fi | |
ac1cb8d3 VS |
37314 | rm -f conftest.err conftest.$ac_objext \ |
37315 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37316 | fi |
37317 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37318 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37319 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37320 | cat >>confdefs.h <<_ACEOF | |
37321 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37322 | _ACEOF | |
37323 | ||
37324 | fi | |
37325 | done | |
37326 | ||
37327 | ||
6ebeb4c7 VZ |
37328 | echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5 |
37329 | echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6 | |
37330 | if test "${wx_cv_func_pthread_cleanup+set}" = set; then | |
37331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37332 | else | |
37333 | ||
37334 | cat >conftest.$ac_ext <<_ACEOF | |
37335 | /* confdefs.h. */ | |
37336 | _ACEOF | |
37337 | cat confdefs.h >>conftest.$ac_ext | |
37338 | cat >>conftest.$ac_ext <<_ACEOF | |
37339 | /* end confdefs.h. */ | |
37340 | #include <pthread.h> | |
37341 | void ThreadCleanupFunc(void *p); | |
37342 | ||
37343 | int | |
37344 | main () | |
37345 | { | |
37346 | ||
37347 | void *p; | |
37348 | pthread_cleanup_push(ThreadCleanupFunc, p); | |
37349 | pthread_cleanup_pop(0); | |
37350 | ||
37351 | ; | |
37352 | return 0; | |
37353 | } | |
37354 | _ACEOF | |
37355 | rm -f conftest.$ac_objext | |
37356 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
37357 | (eval $ac_compile) 2>conftest.er1 | |
37358 | ac_status=$? | |
37359 | grep -v '^ *+' conftest.er1 >conftest.err | |
37360 | rm -f conftest.er1 | |
37361 | cat conftest.err >&5 | |
37362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37363 | (exit $ac_status); } && | |
5d7b7554 | 37364 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
6ebeb4c7 VZ |
37365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37366 | (eval $ac_try) 2>&5 | |
37367 | ac_status=$? | |
37368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37369 | (exit $ac_status); }; } && | |
37370 | { ac_try='test -s conftest.$ac_objext' | |
37371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37372 | (eval $ac_try) 2>&5 | |
37373 | ac_status=$? | |
37374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37375 | (exit $ac_status); }; }; then | |
37376 | ||
37377 | wx_cv_func_pthread_cleanup=yes | |
37378 | ||
37379 | else | |
37380 | echo "$as_me: failed program was:" >&5 | |
37381 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37382 | ||
37383 | ||
37384 | wx_cv_func_pthread_cleanup=no | |
37385 | ||
37386 | ||
37387 | fi | |
37388 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
37389 | ||
37390 | fi | |
37391 | echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5 | |
37392 | echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6 | |
37393 | if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then | |
37394 | cat >>confdefs.h <<\_ACEOF | |
37395 | #define wxHAVE_PTHREAD_CLEANUP 1 | |
37396 | _ACEOF | |
37397 | ||
37398 | fi | |
37399 | ||
a848cd7e SC |
37400 | |
37401 | for ac_header in sched.h | |
37402 | do | |
37403 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
37404 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37405 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
37406 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
37407 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37409 | fi | |
37410 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
37411 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
37412 | else | |
37413 | # Is the header compilable? | |
37414 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
37415 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
37416 | cat >conftest.$ac_ext <<_ACEOF | |
37417 | /* confdefs.h. */ | |
37418 | _ACEOF | |
37419 | cat confdefs.h >>conftest.$ac_ext | |
37420 | cat >>conftest.$ac_ext <<_ACEOF | |
37421 | /* end confdefs.h. */ | |
37422 | $ac_includes_default | |
37423 | #include <$ac_header> | |
37424 | _ACEOF | |
37425 | rm -f conftest.$ac_objext | |
37426 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37427 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37428 | ac_status=$? |
ac1cb8d3 VS |
37429 | grep -v '^ *+' conftest.er1 >conftest.err |
37430 | rm -f conftest.er1 | |
37431 | cat conftest.err >&5 | |
a848cd7e SC |
37432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37433 | (exit $ac_status); } && | |
5d7b7554 | 37434 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37436 | (eval $ac_try) 2>&5 | |
37437 | ac_status=$? | |
37438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37439 | (exit $ac_status); }; } && | |
37440 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37442 | (eval $ac_try) 2>&5 | |
37443 | ac_status=$? | |
37444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37445 | (exit $ac_status); }; }; then | |
37446 | ac_header_compiler=yes | |
37447 | else | |
37448 | echo "$as_me: failed program was:" >&5 | |
37449 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37450 | ||
37451 | ac_header_compiler=no | |
37452 | fi | |
ac1cb8d3 | 37453 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37454 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
37455 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
37456 | ||
37457 | # Is the header present? | |
37458 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
37459 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
37460 | cat >conftest.$ac_ext <<_ACEOF | |
37461 | /* confdefs.h. */ | |
37462 | _ACEOF | |
37463 | cat confdefs.h >>conftest.$ac_ext | |
37464 | cat >>conftest.$ac_ext <<_ACEOF | |
37465 | /* end confdefs.h. */ | |
37466 | #include <$ac_header> | |
37467 | _ACEOF | |
37468 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
37469 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
37470 | ac_status=$? | |
37471 | grep -v '^ *+' conftest.er1 >conftest.err | |
37472 | rm -f conftest.er1 | |
37473 | cat conftest.err >&5 | |
37474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37475 | (exit $ac_status); } >/dev/null; then | |
37476 | if test -s conftest.err; then | |
5d7b7554 VZ |
37477 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
37478 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
37479 | else |
37480 | ac_cpp_err= | |
37481 | fi | |
37482 | else | |
37483 | ac_cpp_err=yes | |
37484 | fi | |
37485 | if test -z "$ac_cpp_err"; then | |
37486 | ac_header_preproc=yes | |
37487 | else | |
37488 | echo "$as_me: failed program was:" >&5 | |
37489 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37490 | ||
37491 | ac_header_preproc=no | |
37492 | fi | |
37493 | rm -f conftest.err conftest.$ac_ext | |
37494 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
37495 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
37496 | ||
37497 | # So? What about this header? | |
5d7b7554 | 37498 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 37499 | yes:no: ) |
a848cd7e SC |
37500 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
37501 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
37502 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
37503 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
37504 | ac_header_preproc=yes | |
a848cd7e | 37505 | ;; |
ac1cb8d3 | 37506 | no:yes:* ) |
a848cd7e SC |
37507 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
37508 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
37509 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
37510 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
37511 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
37512 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
37513 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
37514 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
37515 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
37516 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
37517 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
37518 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
37519 | ( |
37520 | cat <<\_ASBOX | |
ac1cb8d3 VS |
37521 | ## ----------------------------------------- ## |
37522 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
37523 | ## ----------------------------------------- ## | |
a848cd7e SC |
37524 | _ASBOX |
37525 | ) | | |
37526 | sed "s/^/$as_me: WARNING: /" >&2 | |
37527 | ;; | |
37528 | esac | |
37529 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
37530 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
37531 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37532 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37533 | else | |
ac1cb8d3 | 37534 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
37535 | fi |
37536 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
37537 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
37538 | ||
37539 | fi | |
37540 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
37541 | cat >>confdefs.h <<_ACEOF | |
37542 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
37543 | _ACEOF | |
37544 | ||
37545 | fi | |
37546 | ||
37547 | done | |
37548 | ||
37549 | if test "$ac_cv_header_sched_h" = "yes"; then | |
37550 | echo "$as_me:$LINENO: checking for sched_yield" >&5 | |
37551 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
37552 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
37553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37554 | else | |
37555 | cat >conftest.$ac_ext <<_ACEOF | |
37556 | /* confdefs.h. */ | |
37557 | _ACEOF | |
37558 | cat confdefs.h >>conftest.$ac_ext | |
37559 | cat >>conftest.$ac_ext <<_ACEOF | |
37560 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37561 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
37562 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37563 | #define sched_yield innocuous_sched_yield | |
37564 | ||
a848cd7e SC |
37565 | /* System header to define __stub macros and hopefully few prototypes, |
37566 | which can conflict with char sched_yield (); below. | |
37567 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37568 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37569 | |
a848cd7e SC |
37570 | #ifdef __STDC__ |
37571 | # include <limits.h> | |
37572 | #else | |
37573 | # include <assert.h> | |
37574 | #endif | |
ac1cb8d3 VS |
37575 | |
37576 | #undef sched_yield | |
37577 | ||
a848cd7e SC |
37578 | /* Override any gcc2 internal prototype to avoid an error. */ |
37579 | #ifdef __cplusplus | |
37580 | extern "C" | |
37581 | { | |
37582 | #endif | |
37583 | /* We use char because int might match the return type of a gcc2 | |
37584 | builtin and then its argument prototype would still apply. */ | |
37585 | char sched_yield (); | |
37586 | /* The GNU C library defines this for functions which it implements | |
37587 | to always fail with ENOSYS. Some functions are actually named | |
37588 | something starting with __ and the normal name is an alias. */ | |
37589 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
37590 | choke me | |
37591 | #else | |
37592 | char (*f) () = sched_yield; | |
37593 | #endif | |
37594 | #ifdef __cplusplus | |
37595 | } | |
37596 | #endif | |
37597 | ||
37598 | int | |
37599 | main () | |
37600 | { | |
37601 | return f != sched_yield; | |
37602 | ; | |
37603 | return 0; | |
37604 | } | |
37605 | _ACEOF | |
37606 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37607 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37608 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37609 | ac_status=$? |
ac1cb8d3 VS |
37610 | grep -v '^ *+' conftest.er1 >conftest.err |
37611 | rm -f conftest.er1 | |
37612 | cat conftest.err >&5 | |
a848cd7e SC |
37613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37614 | (exit $ac_status); } && | |
5d7b7554 | 37615 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37617 | (eval $ac_try) 2>&5 | |
37618 | ac_status=$? | |
37619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37620 | (exit $ac_status); }; } && | |
37621 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37623 | (eval $ac_try) 2>&5 | |
37624 | ac_status=$? | |
37625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37626 | (exit $ac_status); }; }; then | |
37627 | ac_cv_func_sched_yield=yes | |
37628 | else | |
37629 | echo "$as_me: failed program was:" >&5 | |
37630 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37631 | ||
37632 | ac_cv_func_sched_yield=no | |
37633 | fi | |
ac1cb8d3 VS |
37634 | rm -f conftest.err conftest.$ac_objext \ |
37635 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37636 | fi |
37637 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
37638 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
37639 | if test $ac_cv_func_sched_yield = yes; then | |
37640 | cat >>confdefs.h <<\_ACEOF | |
37641 | #define HAVE_SCHED_YIELD 1 | |
37642 | _ACEOF | |
37643 | ||
37644 | else | |
37645 | ||
37646 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 | |
37647 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
37648 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
37649 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37650 | else | |
37651 | ac_check_lib_save_LIBS=$LIBS | |
37652 | LIBS="-lposix4 $LIBS" | |
37653 | cat >conftest.$ac_ext <<_ACEOF | |
37654 | /* confdefs.h. */ | |
37655 | _ACEOF | |
37656 | cat confdefs.h >>conftest.$ac_ext | |
37657 | cat >>conftest.$ac_ext <<_ACEOF | |
37658 | /* end confdefs.h. */ | |
37659 | ||
37660 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37661 | #ifdef __cplusplus | |
37662 | extern "C" | |
37663 | #endif | |
37664 | /* We use char because int might match the return type of a gcc2 | |
37665 | builtin and then its argument prototype would still apply. */ | |
37666 | char sched_yield (); | |
37667 | int | |
37668 | main () | |
37669 | { | |
37670 | sched_yield (); | |
37671 | ; | |
37672 | return 0; | |
37673 | } | |
37674 | _ACEOF | |
37675 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37676 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37677 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37678 | ac_status=$? |
ac1cb8d3 VS |
37679 | grep -v '^ *+' conftest.er1 >conftest.err |
37680 | rm -f conftest.er1 | |
37681 | cat conftest.err >&5 | |
a848cd7e SC |
37682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37683 | (exit $ac_status); } && | |
5d7b7554 | 37684 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37686 | (eval $ac_try) 2>&5 | |
37687 | ac_status=$? | |
37688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37689 | (exit $ac_status); }; } && | |
37690 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37692 | (eval $ac_try) 2>&5 | |
37693 | ac_status=$? | |
37694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37695 | (exit $ac_status); }; }; then | |
37696 | ac_cv_lib_posix4_sched_yield=yes | |
37697 | else | |
37698 | echo "$as_me: failed program was:" >&5 | |
37699 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37700 | ||
37701 | ac_cv_lib_posix4_sched_yield=no | |
37702 | fi | |
ac1cb8d3 VS |
37703 | rm -f conftest.err conftest.$ac_objext \ |
37704 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37705 | LIBS=$ac_check_lib_save_LIBS |
37706 | fi | |
37707 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
37708 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
37709 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
37710 | cat >>confdefs.h <<\_ACEOF | |
37711 | #define HAVE_SCHED_YIELD 1 | |
37712 | _ACEOF | |
37713 | POSIX4_LINK=" -lposix4" | |
37714 | else | |
37715 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 | |
37716 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
37717 | ||
37718 | fi | |
37719 | ||
37720 | ||
37721 | ||
37722 | fi | |
37723 | ||
37724 | fi | |
37725 | ||
37726 | HAVE_PRIOR_FUNCS=0 | |
37727 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 | |
37728 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
37729 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
37730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37731 | else | |
37732 | cat >conftest.$ac_ext <<_ACEOF | |
37733 | /* confdefs.h. */ | |
37734 | _ACEOF | |
37735 | cat confdefs.h >>conftest.$ac_ext | |
37736 | cat >>conftest.$ac_ext <<_ACEOF | |
37737 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37738 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
37739 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37740 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
37741 | ||
a848cd7e SC |
37742 | /* System header to define __stub macros and hopefully few prototypes, |
37743 | which can conflict with char pthread_attr_getschedpolicy (); below. | |
37744 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37745 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37746 | |
a848cd7e SC |
37747 | #ifdef __STDC__ |
37748 | # include <limits.h> | |
37749 | #else | |
37750 | # include <assert.h> | |
37751 | #endif | |
ac1cb8d3 VS |
37752 | |
37753 | #undef pthread_attr_getschedpolicy | |
37754 | ||
a848cd7e SC |
37755 | /* Override any gcc2 internal prototype to avoid an error. */ |
37756 | #ifdef __cplusplus | |
37757 | extern "C" | |
37758 | { | |
37759 | #endif | |
37760 | /* We use char because int might match the return type of a gcc2 | |
37761 | builtin and then its argument prototype would still apply. */ | |
37762 | char pthread_attr_getschedpolicy (); | |
37763 | /* The GNU C library defines this for functions which it implements | |
37764 | to always fail with ENOSYS. Some functions are actually named | |
37765 | something starting with __ and the normal name is an alias. */ | |
37766 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
37767 | choke me | |
37768 | #else | |
37769 | char (*f) () = pthread_attr_getschedpolicy; | |
37770 | #endif | |
37771 | #ifdef __cplusplus | |
37772 | } | |
37773 | #endif | |
37774 | ||
37775 | int | |
37776 | main () | |
37777 | { | |
37778 | return f != pthread_attr_getschedpolicy; | |
37779 | ; | |
37780 | return 0; | |
37781 | } | |
37782 | _ACEOF | |
37783 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37784 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37785 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37786 | ac_status=$? |
ac1cb8d3 VS |
37787 | grep -v '^ *+' conftest.er1 >conftest.err |
37788 | rm -f conftest.er1 | |
37789 | cat conftest.err >&5 | |
a848cd7e SC |
37790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37791 | (exit $ac_status); } && | |
5d7b7554 | 37792 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37794 | (eval $ac_try) 2>&5 | |
37795 | ac_status=$? | |
37796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37797 | (exit $ac_status); }; } && | |
37798 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37800 | (eval $ac_try) 2>&5 | |
37801 | ac_status=$? | |
37802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37803 | (exit $ac_status); }; }; then | |
37804 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
37805 | else | |
37806 | echo "$as_me: failed program was:" >&5 | |
37807 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37808 | ||
37809 | ac_cv_func_pthread_attr_getschedpolicy=no | |
37810 | fi | |
ac1cb8d3 VS |
37811 | rm -f conftest.err conftest.$ac_objext \ |
37812 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37813 | fi |
37814 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
37815 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
37816 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
37817 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
37818 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
37819 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
37820 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37821 | else | |
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. */ | |
ac1cb8d3 VS |
37828 | /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
37829 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37830 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
37831 | ||
a848cd7e SC |
37832 | /* System header to define __stub macros and hopefully few prototypes, |
37833 | which can conflict with char pthread_attr_setschedparam (); below. | |
37834 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37835 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37836 | |
a848cd7e SC |
37837 | #ifdef __STDC__ |
37838 | # include <limits.h> | |
37839 | #else | |
37840 | # include <assert.h> | |
37841 | #endif | |
ac1cb8d3 VS |
37842 | |
37843 | #undef pthread_attr_setschedparam | |
37844 | ||
a848cd7e SC |
37845 | /* Override any gcc2 internal prototype to avoid an error. */ |
37846 | #ifdef __cplusplus | |
37847 | extern "C" | |
37848 | { | |
37849 | #endif | |
37850 | /* We use char because int might match the return type of a gcc2 | |
37851 | builtin and then its argument prototype would still apply. */ | |
37852 | char pthread_attr_setschedparam (); | |
37853 | /* The GNU C library defines this for functions which it implements | |
37854 | to always fail with ENOSYS. Some functions are actually named | |
37855 | something starting with __ and the normal name is an alias. */ | |
37856 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
37857 | choke me | |
37858 | #else | |
37859 | char (*f) () = pthread_attr_setschedparam; | |
37860 | #endif | |
37861 | #ifdef __cplusplus | |
37862 | } | |
37863 | #endif | |
37864 | ||
37865 | int | |
37866 | main () | |
37867 | { | |
37868 | return f != pthread_attr_setschedparam; | |
37869 | ; | |
37870 | return 0; | |
37871 | } | |
37872 | _ACEOF | |
37873 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37874 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37875 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37876 | ac_status=$? |
ac1cb8d3 VS |
37877 | grep -v '^ *+' conftest.er1 >conftest.err |
37878 | rm -f conftest.er1 | |
37879 | cat conftest.err >&5 | |
a848cd7e SC |
37880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37881 | (exit $ac_status); } && | |
5d7b7554 | 37882 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37884 | (eval $ac_try) 2>&5 | |
37885 | ac_status=$? | |
37886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37887 | (exit $ac_status); }; } && | |
37888 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37890 | (eval $ac_try) 2>&5 | |
37891 | ac_status=$? | |
37892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37893 | (exit $ac_status); }; }; then | |
37894 | ac_cv_func_pthread_attr_setschedparam=yes | |
37895 | else | |
37896 | echo "$as_me: failed program was:" >&5 | |
37897 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37898 | ||
37899 | ac_cv_func_pthread_attr_setschedparam=no | |
37900 | fi | |
ac1cb8d3 VS |
37901 | rm -f conftest.err conftest.$ac_objext \ |
37902 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37903 | fi |
37904 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
37905 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
37906 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
37907 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
37908 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
37909 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
37910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37911 | else | |
37912 | cat >conftest.$ac_ext <<_ACEOF | |
37913 | /* confdefs.h. */ | |
37914 | _ACEOF | |
37915 | cat confdefs.h >>conftest.$ac_ext | |
37916 | cat >>conftest.$ac_ext <<_ACEOF | |
37917 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37918 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
37919 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37920 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
37921 | ||
a848cd7e SC |
37922 | /* System header to define __stub macros and hopefully few prototypes, |
37923 | which can conflict with char sched_get_priority_max (); below. | |
37924 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37925 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37926 | |
a848cd7e SC |
37927 | #ifdef __STDC__ |
37928 | # include <limits.h> | |
37929 | #else | |
37930 | # include <assert.h> | |
37931 | #endif | |
ac1cb8d3 VS |
37932 | |
37933 | #undef sched_get_priority_max | |
37934 | ||
a848cd7e SC |
37935 | /* Override any gcc2 internal prototype to avoid an error. */ |
37936 | #ifdef __cplusplus | |
37937 | extern "C" | |
37938 | { | |
37939 | #endif | |
37940 | /* We use char because int might match the return type of a gcc2 | |
37941 | builtin and then its argument prototype would still apply. */ | |
37942 | char sched_get_priority_max (); | |
37943 | /* The GNU C library defines this for functions which it implements | |
37944 | to always fail with ENOSYS. Some functions are actually named | |
37945 | something starting with __ and the normal name is an alias. */ | |
37946 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
37947 | choke me | |
37948 | #else | |
37949 | char (*f) () = sched_get_priority_max; | |
37950 | #endif | |
37951 | #ifdef __cplusplus | |
37952 | } | |
37953 | #endif | |
37954 | ||
37955 | int | |
37956 | main () | |
37957 | { | |
37958 | return f != sched_get_priority_max; | |
37959 | ; | |
37960 | return 0; | |
37961 | } | |
37962 | _ACEOF | |
37963 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37964 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37965 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37966 | ac_status=$? |
ac1cb8d3 VS |
37967 | grep -v '^ *+' conftest.er1 >conftest.err |
37968 | rm -f conftest.er1 | |
37969 | cat conftest.err >&5 | |
a848cd7e SC |
37970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37971 | (exit $ac_status); } && | |
5d7b7554 | 37972 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
37973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37974 | (eval $ac_try) 2>&5 | |
37975 | ac_status=$? | |
37976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37977 | (exit $ac_status); }; } && | |
37978 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37980 | (eval $ac_try) 2>&5 | |
37981 | ac_status=$? | |
37982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37983 | (exit $ac_status); }; }; then | |
37984 | ac_cv_func_sched_get_priority_max=yes | |
37985 | else | |
37986 | echo "$as_me: failed program was:" >&5 | |
37987 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37988 | ||
37989 | ac_cv_func_sched_get_priority_max=no | |
37990 | fi | |
ac1cb8d3 VS |
37991 | rm -f conftest.err conftest.$ac_objext \ |
37992 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37993 | fi |
37994 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
37995 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
37996 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
37997 | HAVE_PRIOR_FUNCS=1 | |
37998 | else | |
37999 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 | |
38000 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
38001 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
38002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38003 | else | |
38004 | ac_check_lib_save_LIBS=$LIBS | |
38005 | LIBS="-lposix4 $LIBS" | |
38006 | cat >conftest.$ac_ext <<_ACEOF | |
38007 | /* confdefs.h. */ | |
38008 | _ACEOF | |
38009 | cat confdefs.h >>conftest.$ac_ext | |
38010 | cat >>conftest.$ac_ext <<_ACEOF | |
38011 | /* end confdefs.h. */ | |
38012 | ||
38013 | /* Override any gcc2 internal prototype to avoid an error. */ | |
38014 | #ifdef __cplusplus | |
38015 | extern "C" | |
38016 | #endif | |
38017 | /* We use char because int might match the return type of a gcc2 | |
38018 | builtin and then its argument prototype would still apply. */ | |
38019 | char sched_get_priority_max (); | |
38020 | int | |
38021 | main () | |
38022 | { | |
38023 | sched_get_priority_max (); | |
38024 | ; | |
38025 | return 0; | |
38026 | } | |
38027 | _ACEOF | |
38028 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38029 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38030 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38031 | ac_status=$? |
ac1cb8d3 VS |
38032 | grep -v '^ *+' conftest.er1 >conftest.err |
38033 | rm -f conftest.er1 | |
38034 | cat conftest.err >&5 | |
a848cd7e SC |
38035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38036 | (exit $ac_status); } && | |
5d7b7554 | 38037 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38039 | (eval $ac_try) 2>&5 | |
38040 | ac_status=$? | |
38041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38042 | (exit $ac_status); }; } && | |
38043 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38045 | (eval $ac_try) 2>&5 | |
38046 | ac_status=$? | |
38047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38048 | (exit $ac_status); }; }; then | |
38049 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
38050 | else | |
38051 | echo "$as_me: failed program was:" >&5 | |
38052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38053 | ||
38054 | ac_cv_lib_posix4_sched_get_priority_max=no | |
38055 | fi | |
ac1cb8d3 VS |
38056 | rm -f conftest.err conftest.$ac_objext \ |
38057 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38058 | LIBS=$ac_check_lib_save_LIBS |
38059 | fi | |
38060 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
38061 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
38062 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
38063 | ||
38064 | HAVE_PRIOR_FUNCS=1 | |
38065 | POSIX4_LINK=" -lposix4" | |
38066 | ||
38067 | fi | |
38068 | ||
38069 | ||
38070 | fi | |
38071 | ||
38072 | ||
38073 | fi | |
38074 | ||
38075 | ||
38076 | fi | |
38077 | ||
38078 | ||
38079 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
38080 | cat >>confdefs.h <<\_ACEOF | |
38081 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
38082 | _ACEOF | |
38083 | ||
38084 | else | |
38085 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 | |
38086 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
38087 | fi | |
38088 | ||
38089 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 | |
38090 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
38091 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
38092 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38093 | else | |
38094 | cat >conftest.$ac_ext <<_ACEOF | |
38095 | /* confdefs.h. */ | |
38096 | _ACEOF | |
38097 | cat confdefs.h >>conftest.$ac_ext | |
38098 | cat >>conftest.$ac_ext <<_ACEOF | |
38099 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38100 | /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
38101 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38102 | #define pthread_cancel innocuous_pthread_cancel | |
38103 | ||
a848cd7e SC |
38104 | /* System header to define __stub macros and hopefully few prototypes, |
38105 | which can conflict with char pthread_cancel (); below. | |
38106 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38107 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38108 | |
a848cd7e SC |
38109 | #ifdef __STDC__ |
38110 | # include <limits.h> | |
38111 | #else | |
38112 | # include <assert.h> | |
38113 | #endif | |
ac1cb8d3 VS |
38114 | |
38115 | #undef pthread_cancel | |
38116 | ||
a848cd7e SC |
38117 | /* Override any gcc2 internal prototype to avoid an error. */ |
38118 | #ifdef __cplusplus | |
38119 | extern "C" | |
38120 | { | |
38121 | #endif | |
38122 | /* We use char because int might match the return type of a gcc2 | |
38123 | builtin and then its argument prototype would still apply. */ | |
38124 | char pthread_cancel (); | |
38125 | /* The GNU C library defines this for functions which it implements | |
38126 | to always fail with ENOSYS. Some functions are actually named | |
38127 | something starting with __ and the normal name is an alias. */ | |
38128 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
38129 | choke me | |
38130 | #else | |
38131 | char (*f) () = pthread_cancel; | |
38132 | #endif | |
38133 | #ifdef __cplusplus | |
38134 | } | |
38135 | #endif | |
38136 | ||
38137 | int | |
38138 | main () | |
38139 | { | |
38140 | return f != pthread_cancel; | |
38141 | ; | |
38142 | return 0; | |
38143 | } | |
38144 | _ACEOF | |
38145 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38146 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38147 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38148 | ac_status=$? |
ac1cb8d3 VS |
38149 | grep -v '^ *+' conftest.er1 >conftest.err |
38150 | rm -f conftest.er1 | |
38151 | cat conftest.err >&5 | |
a848cd7e SC |
38152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38153 | (exit $ac_status); } && | |
5d7b7554 | 38154 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38156 | (eval $ac_try) 2>&5 | |
38157 | ac_status=$? | |
38158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38159 | (exit $ac_status); }; } && | |
38160 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38162 | (eval $ac_try) 2>&5 | |
38163 | ac_status=$? | |
38164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38165 | (exit $ac_status); }; }; then | |
38166 | ac_cv_func_pthread_cancel=yes | |
38167 | else | |
38168 | echo "$as_me: failed program was:" >&5 | |
38169 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38170 | ||
38171 | ac_cv_func_pthread_cancel=no | |
38172 | fi | |
ac1cb8d3 VS |
38173 | rm -f conftest.err conftest.$ac_objext \ |
38174 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38175 | fi |
38176 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
38177 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
38178 | if test $ac_cv_func_pthread_cancel = yes; then | |
38179 | cat >>confdefs.h <<\_ACEOF | |
38180 | #define HAVE_PTHREAD_CANCEL 1 | |
38181 | _ACEOF | |
38182 | ||
38183 | else | |
38184 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 | |
38185 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
38186 | fi | |
38187 | ||
38188 | ||
abc736fd MW |
38189 | echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5 |
38190 | echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6 | |
38191 | if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then | |
38192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38193 | else | |
38194 | cat >conftest.$ac_ext <<_ACEOF | |
38195 | /* confdefs.h. */ | |
38196 | _ACEOF | |
38197 | cat confdefs.h >>conftest.$ac_ext | |
38198 | cat >>conftest.$ac_ext <<_ACEOF | |
38199 | /* end confdefs.h. */ | |
38200 | /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize. | |
38201 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38202 | #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize | |
38203 | ||
38204 | /* System header to define __stub macros and hopefully few prototypes, | |
38205 | which can conflict with char pthread_attr_setstacksize (); below. | |
38206 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38207 | <limits.h> exists even on freestanding compilers. */ | |
38208 | ||
38209 | #ifdef __STDC__ | |
38210 | # include <limits.h> | |
38211 | #else | |
38212 | # include <assert.h> | |
38213 | #endif | |
38214 | ||
38215 | #undef pthread_attr_setstacksize | |
38216 | ||
38217 | /* Override any gcc2 internal prototype to avoid an error. */ | |
38218 | #ifdef __cplusplus | |
38219 | extern "C" | |
38220 | { | |
38221 | #endif | |
38222 | /* We use char because int might match the return type of a gcc2 | |
38223 | builtin and then its argument prototype would still apply. */ | |
38224 | char pthread_attr_setstacksize (); | |
38225 | /* The GNU C library defines this for functions which it implements | |
38226 | to always fail with ENOSYS. Some functions are actually named | |
38227 | something starting with __ and the normal name is an alias. */ | |
38228 | #if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize) | |
38229 | choke me | |
38230 | #else | |
38231 | char (*f) () = pthread_attr_setstacksize; | |
38232 | #endif | |
38233 | #ifdef __cplusplus | |
38234 | } | |
38235 | #endif | |
38236 | ||
38237 | int | |
38238 | main () | |
38239 | { | |
38240 | return f != pthread_attr_setstacksize; | |
38241 | ; | |
38242 | return 0; | |
38243 | } | |
38244 | _ACEOF | |
38245 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38246 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
38247 | (eval $ac_link) 2>conftest.er1 | |
38248 | ac_status=$? | |
38249 | grep -v '^ *+' conftest.er1 >conftest.err | |
38250 | rm -f conftest.er1 | |
38251 | cat conftest.err >&5 | |
38252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38253 | (exit $ac_status); } && | |
5d7b7554 | 38254 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
abc736fd MW |
38255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38256 | (eval $ac_try) 2>&5 | |
38257 | ac_status=$? | |
38258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38259 | (exit $ac_status); }; } && | |
38260 | { ac_try='test -s conftest$ac_exeext' | |
38261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38262 | (eval $ac_try) 2>&5 | |
38263 | ac_status=$? | |
38264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38265 | (exit $ac_status); }; }; then | |
38266 | ac_cv_func_pthread_attr_setstacksize=yes | |
38267 | else | |
38268 | echo "$as_me: failed program was:" >&5 | |
38269 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38270 | ||
38271 | ac_cv_func_pthread_attr_setstacksize=no | |
38272 | fi | |
38273 | rm -f conftest.err conftest.$ac_objext \ | |
38274 | conftest$ac_exeext conftest.$ac_ext | |
38275 | fi | |
38276 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5 | |
38277 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6 | |
38278 | if test $ac_cv_func_pthread_attr_setstacksize = yes; then | |
38279 | cat >>confdefs.h <<\_ACEOF | |
38280 | #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 | |
38281 | _ACEOF | |
38282 | ||
38283 | fi | |
38284 | ||
a848cd7e SC |
38285 | |
38286 | ||
38287 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
38288 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
38289 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
38290 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38291 | else | |
38292 | ||
38293 | cat >conftest.$ac_ext <<_ACEOF | |
38294 | /* confdefs.h. */ | |
38295 | _ACEOF | |
38296 | cat confdefs.h >>conftest.$ac_ext | |
38297 | cat >>conftest.$ac_ext <<_ACEOF | |
38298 | /* end confdefs.h. */ | |
38299 | #include <pthread.h> | |
38300 | int | |
38301 | main () | |
38302 | { | |
38303 | ||
38304 | pthread_mutexattr_t attr; | |
38305 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
38306 | ||
38307 | ; | |
38308 | return 0; | |
38309 | } | |
38310 | _ACEOF | |
38311 | rm -f conftest.$ac_objext | |
38312 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38313 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38314 | ac_status=$? |
ac1cb8d3 VS |
38315 | grep -v '^ *+' conftest.er1 >conftest.err |
38316 | rm -f conftest.er1 | |
38317 | cat conftest.err >&5 | |
a848cd7e SC |
38318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38319 | (exit $ac_status); } && | |
5d7b7554 | 38320 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38322 | (eval $ac_try) 2>&5 | |
38323 | ac_status=$? | |
38324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38325 | (exit $ac_status); }; } && | |
38326 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38328 | (eval $ac_try) 2>&5 | |
38329 | ac_status=$? | |
38330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38331 | (exit $ac_status); }; }; then | |
123dca7d | 38332 | wx_cv_type_pthread_mutexattr_t=yes |
a848cd7e SC |
38333 | else |
38334 | echo "$as_me: failed program was:" >&5 | |
38335 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38336 | ||
123dca7d | 38337 | wx_cv_type_pthread_mutexattr_t=no |
a848cd7e SC |
38338 | |
38339 | fi | |
ac1cb8d3 | 38340 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38341 | |
38342 | fi | |
38343 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
38344 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
38345 | ||
38346 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
38347 | cat >>confdefs.h <<\_ACEOF | |
38348 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
38349 | _ACEOF | |
38350 | ||
123dca7d VZ |
38351 | |
38352 | echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5 | |
38353 | echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6 | |
38354 | if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then | |
38355 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38356 | else | |
38357 | ||
38358 | cat >conftest.$ac_ext <<_ACEOF | |
38359 | /* confdefs.h. */ | |
38360 | _ACEOF | |
38361 | cat confdefs.h >>conftest.$ac_ext | |
38362 | cat >>conftest.$ac_ext <<_ACEOF | |
38363 | /* end confdefs.h. */ | |
38364 | #include <pthread.h> | |
38365 | int | |
38366 | main () | |
38367 | { | |
38368 | ||
38369 | pthread_mutexattr_t attr; | |
38370 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
38371 | ||
38372 | ; | |
38373 | return 0; | |
38374 | } | |
38375 | _ACEOF | |
38376 | rm -f conftest.$ac_objext | |
38377 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38378 | (eval $ac_compile) 2>conftest.er1 | |
38379 | ac_status=$? | |
38380 | grep -v '^ *+' conftest.er1 >conftest.err | |
38381 | rm -f conftest.er1 | |
38382 | cat conftest.err >&5 | |
38383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38384 | (exit $ac_status); } && | |
5d7b7554 | 38385 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
123dca7d VZ |
38386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38387 | (eval $ac_try) 2>&5 | |
38388 | ac_status=$? | |
38389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38390 | (exit $ac_status); }; } && | |
38391 | { ac_try='test -s conftest.$ac_objext' | |
38392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38393 | (eval $ac_try) 2>&5 | |
38394 | ac_status=$? | |
38395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38396 | (exit $ac_status); }; }; then | |
38397 | wx_cv_func_pthread_mutexattr_settype_decl=yes | |
38398 | else | |
38399 | echo "$as_me: failed program was:" >&5 | |
38400 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38401 | ||
38402 | wx_cv_func_pthread_mutexattr_settype_decl=no | |
38403 | ||
38404 | fi | |
38405 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38406 | ||
38407 | fi | |
38408 | echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5 | |
38409 | echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6 | |
38410 | if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then | |
38411 | cat >>confdefs.h <<\_ACEOF | |
38412 | #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1 | |
38413 | _ACEOF | |
38414 | ||
38415 | fi | |
a848cd7e SC |
38416 | else |
38417 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
38418 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
38419 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
38420 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38421 | else | |
38422 | ||
38423 | cat >conftest.$ac_ext <<_ACEOF | |
38424 | /* confdefs.h. */ | |
38425 | _ACEOF | |
38426 | cat confdefs.h >>conftest.$ac_ext | |
38427 | cat >>conftest.$ac_ext <<_ACEOF | |
38428 | /* end confdefs.h. */ | |
38429 | #include <pthread.h> | |
38430 | int | |
38431 | main () | |
38432 | { | |
38433 | ||
38434 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
38435 | ||
38436 | ; | |
38437 | return 0; | |
38438 | } | |
38439 | _ACEOF | |
38440 | rm -f conftest.$ac_objext | |
38441 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38442 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38443 | ac_status=$? |
ac1cb8d3 VS |
38444 | grep -v '^ *+' conftest.er1 >conftest.err |
38445 | rm -f conftest.er1 | |
38446 | cat conftest.err >&5 | |
a848cd7e SC |
38447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38448 | (exit $ac_status); } && | |
5d7b7554 | 38449 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38451 | (eval $ac_try) 2>&5 | |
38452 | ac_status=$? | |
38453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38454 | (exit $ac_status); }; } && | |
38455 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38457 | (eval $ac_try) 2>&5 | |
38458 | ac_status=$? | |
38459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38460 | (exit $ac_status); }; }; then | |
38461 | ||
38462 | wx_cv_type_pthread_rec_mutex_init=yes | |
38463 | ||
38464 | else | |
38465 | echo "$as_me: failed program was:" >&5 | |
38466 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38467 | ||
38468 | ||
38469 | wx_cv_type_pthread_rec_mutex_init=no | |
38470 | ||
38471 | ||
38472 | fi | |
ac1cb8d3 | 38473 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38474 | |
38475 | fi | |
38476 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
38477 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
38478 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
38479 | cat >>confdefs.h <<\_ACEOF | |
38480 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
38481 | _ACEOF | |
38482 | ||
38483 | else | |
38484 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 | |
38485 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
38486 | fi | |
38487 | fi | |
38488 | fi | |
38489 | ||
38490 | else | |
38491 | if test "$wxUSE_THREADS" = "yes" ; then | |
38492 | case "${host}" in | |
38493 | *-*-mingw32* ) | |
38494 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 | |
38495 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
38496 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
38497 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38498 | else | |
38499 | ||
e56f4f9e VZ |
38500 | CXXFLAGS_OLD="$CXXFLAGS" |
38501 | CXXFLAGS="-mthreads $CXXFLAGS" | |
a848cd7e SC |
38502 | cat >conftest.$ac_ext <<_ACEOF |
38503 | /* confdefs.h. */ | |
38504 | _ACEOF | |
38505 | cat confdefs.h >>conftest.$ac_ext | |
38506 | cat >>conftest.$ac_ext <<_ACEOF | |
38507 | /* end confdefs.h. */ | |
38508 | ||
38509 | int | |
38510 | main () | |
38511 | { | |
38512 | ||
38513 | ; | |
38514 | return 0; | |
38515 | } | |
38516 | _ACEOF | |
38517 | rm -f conftest.$ac_objext | |
38518 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38519 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38520 | ac_status=$? |
ac1cb8d3 VS |
38521 | grep -v '^ *+' conftest.er1 >conftest.err |
38522 | rm -f conftest.er1 | |
38523 | cat conftest.err >&5 | |
a848cd7e SC |
38524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38525 | (exit $ac_status); } && | |
5d7b7554 | 38526 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
38527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38528 | (eval $ac_try) 2>&5 | |
38529 | ac_status=$? | |
38530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38531 | (exit $ac_status); }; } && | |
38532 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38534 | (eval $ac_try) 2>&5 | |
38535 | ac_status=$? | |
38536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38537 | (exit $ac_status); }; }; then | |
38538 | wx_cv_cflags_mthread=yes | |
38539 | else | |
38540 | echo "$as_me: failed program was:" >&5 | |
38541 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38542 | ||
38543 | wx_cv_cflags_mthread=no | |
38544 | ||
38545 | fi | |
ac1cb8d3 | 38546 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38547 | |
38548 | ||
38549 | fi | |
38550 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
38551 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
38552 | ||
38553 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
e56f4f9e | 38554 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -mthreads" |
a848cd7e SC |
38555 | LDFLAGS="$LDFLAGS -mthreads" |
38556 | else | |
e56f4f9e | 38557 | CXXFLAGS="$CXXFLAGS_OLD" |
a848cd7e SC |
38558 | fi |
38559 | ;; | |
38560 | *-pc-os2*emx ) | |
5ff751d6 VZ |
38561 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__" |
38562 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
a848cd7e SC |
38563 | LDFLAGS="$LDFLAGS -Zmt" |
38564 | ;; | |
38565 | esac | |
38566 | fi | |
38567 | fi | |
38568 | ||
004ee6da RL |
38569 | echo "$as_me:$LINENO: checking for localtime_r" >&5 |
38570 | echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6 | |
38571 | if test "${ac_cv_func_localtime_r+set}" = set; then | |
a848cd7e SC |
38572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
38573 | else | |
38574 | cat >conftest.$ac_ext <<_ACEOF | |
38575 | /* confdefs.h. */ | |
38576 | _ACEOF | |
38577 | cat confdefs.h >>conftest.$ac_ext | |
38578 | cat >>conftest.$ac_ext <<_ACEOF | |
38579 | /* end confdefs.h. */ | |
004ee6da | 38580 | /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r. |
ac1cb8d3 | 38581 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
004ee6da | 38582 | #define localtime_r innocuous_localtime_r |
ac1cb8d3 | 38583 | |
a848cd7e | 38584 | /* System header to define __stub macros and hopefully few prototypes, |
004ee6da | 38585 | which can conflict with char localtime_r (); below. |
a848cd7e SC |
38586 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
38587 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38588 | |
a848cd7e SC |
38589 | #ifdef __STDC__ |
38590 | # include <limits.h> | |
38591 | #else | |
38592 | # include <assert.h> | |
38593 | #endif | |
ac1cb8d3 | 38594 | |
004ee6da | 38595 | #undef localtime_r |
ac1cb8d3 | 38596 | |
a848cd7e SC |
38597 | /* Override any gcc2 internal prototype to avoid an error. */ |
38598 | #ifdef __cplusplus | |
38599 | extern "C" | |
38600 | { | |
38601 | #endif | |
38602 | /* We use char because int might match the return type of a gcc2 | |
38603 | builtin and then its argument prototype would still apply. */ | |
004ee6da | 38604 | char localtime_r (); |
a848cd7e SC |
38605 | /* The GNU C library defines this for functions which it implements |
38606 | to always fail with ENOSYS. Some functions are actually named | |
38607 | something starting with __ and the normal name is an alias. */ | |
004ee6da | 38608 | #if defined (__stub_localtime_r) || defined (__stub___localtime_r) |
a848cd7e SC |
38609 | choke me |
38610 | #else | |
004ee6da | 38611 | char (*f) () = localtime_r; |
a848cd7e SC |
38612 | #endif |
38613 | #ifdef __cplusplus | |
38614 | } | |
38615 | #endif | |
38616 | ||
38617 | int | |
38618 | main () | |
38619 | { | |
004ee6da RL |
38620 | return f != localtime_r; |
38621 | ; | |
38622 | return 0; | |
38623 | } | |
38624 | _ACEOF | |
38625 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38626 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
38627 | (eval $ac_link) 2>conftest.er1 | |
38628 | ac_status=$? | |
38629 | grep -v '^ *+' conftest.er1 >conftest.err | |
38630 | rm -f conftest.er1 | |
38631 | cat conftest.err >&5 | |
38632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38633 | (exit $ac_status); } && | |
5d7b7554 | 38634 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
38635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38636 | (eval $ac_try) 2>&5 | |
38637 | ac_status=$? | |
38638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38639 | (exit $ac_status); }; } && | |
38640 | { ac_try='test -s conftest$ac_exeext' | |
38641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38642 | (eval $ac_try) 2>&5 | |
38643 | ac_status=$? | |
38644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38645 | (exit $ac_status); }; }; then | |
38646 | ac_cv_func_localtime_r=yes | |
38647 | else | |
38648 | echo "$as_me: failed program was:" >&5 | |
38649 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38650 | ||
38651 | ac_cv_func_localtime_r=no | |
38652 | fi | |
38653 | rm -f conftest.err conftest.$ac_objext \ | |
38654 | conftest$ac_exeext conftest.$ac_ext | |
38655 | fi | |
38656 | echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5 | |
38657 | echo "${ECHO_T}$ac_cv_func_localtime_r" >&6 | |
38658 | if test $ac_cv_func_localtime_r = yes; then | |
38659 | cat >>confdefs.h <<\_ACEOF | |
38660 | #define HAVE_LOCALTIME_R 1 | |
38661 | _ACEOF | |
38662 | ||
38663 | fi | |
38664 | ||
38665 | echo "$as_me:$LINENO: checking for gmtime_r" >&5 | |
38666 | echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6 | |
38667 | if test "${ac_cv_func_gmtime_r+set}" = set; then | |
38668 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38669 | else | |
38670 | cat >conftest.$ac_ext <<_ACEOF | |
38671 | /* confdefs.h. */ | |
38672 | _ACEOF | |
38673 | cat confdefs.h >>conftest.$ac_ext | |
38674 | cat >>conftest.$ac_ext <<_ACEOF | |
38675 | /* end confdefs.h. */ | |
38676 | /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r. | |
38677 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38678 | #define gmtime_r innocuous_gmtime_r | |
38679 | ||
38680 | /* System header to define __stub macros and hopefully few prototypes, | |
38681 | which can conflict with char gmtime_r (); below. | |
38682 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38683 | <limits.h> exists even on freestanding compilers. */ | |
38684 | ||
38685 | #ifdef __STDC__ | |
38686 | # include <limits.h> | |
38687 | #else | |
38688 | # include <assert.h> | |
38689 | #endif | |
38690 | ||
38691 | #undef gmtime_r | |
38692 | ||
38693 | /* Override any gcc2 internal prototype to avoid an error. */ | |
38694 | #ifdef __cplusplus | |
38695 | extern "C" | |
38696 | { | |
38697 | #endif | |
38698 | /* We use char because int might match the return type of a gcc2 | |
38699 | builtin and then its argument prototype would still apply. */ | |
38700 | char gmtime_r (); | |
38701 | /* The GNU C library defines this for functions which it implements | |
38702 | to always fail with ENOSYS. Some functions are actually named | |
38703 | something starting with __ and the normal name is an alias. */ | |
38704 | #if defined (__stub_gmtime_r) || defined (__stub___gmtime_r) | |
38705 | choke me | |
38706 | #else | |
38707 | char (*f) () = gmtime_r; | |
38708 | #endif | |
38709 | #ifdef __cplusplus | |
38710 | } | |
38711 | #endif | |
38712 | ||
38713 | int | |
38714 | main () | |
38715 | { | |
38716 | return f != gmtime_r; | |
38717 | ; | |
38718 | return 0; | |
38719 | } | |
38720 | _ACEOF | |
38721 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38722 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
38723 | (eval $ac_link) 2>conftest.er1 | |
38724 | ac_status=$? | |
38725 | grep -v '^ *+' conftest.er1 >conftest.err | |
38726 | rm -f conftest.er1 | |
38727 | cat conftest.err >&5 | |
38728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38729 | (exit $ac_status); } && | |
5d7b7554 | 38730 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
38731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38732 | (eval $ac_try) 2>&5 | |
38733 | ac_status=$? | |
38734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38735 | (exit $ac_status); }; } && | |
38736 | { ac_try='test -s conftest$ac_exeext' | |
38737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38738 | (eval $ac_try) 2>&5 | |
38739 | ac_status=$? | |
38740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38741 | (exit $ac_status); }; }; then | |
38742 | ac_cv_func_gmtime_r=yes | |
38743 | else | |
38744 | echo "$as_me: failed program was:" >&5 | |
38745 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38746 | ||
38747 | ac_cv_func_gmtime_r=no | |
38748 | fi | |
38749 | rm -f conftest.err conftest.$ac_objext \ | |
38750 | conftest$ac_exeext conftest.$ac_ext | |
38751 | fi | |
38752 | echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5 | |
38753 | echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6 | |
38754 | if test $ac_cv_func_gmtime_r = yes; then | |
38755 | cat >>confdefs.h <<\_ACEOF | |
38756 | #define HAVE_GMTIME_R 1 | |
38757 | _ACEOF | |
38758 | ||
38759 | fi | |
38760 | ||
38761 | echo "$as_me:$LINENO: checking for readdir_r" >&5 | |
38762 | echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6 | |
38763 | if test "${ac_cv_func_readdir_r+set}" = set; then | |
38764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38765 | else | |
38766 | cat >conftest.$ac_ext <<_ACEOF | |
38767 | /* confdefs.h. */ | |
38768 | _ACEOF | |
38769 | cat confdefs.h >>conftest.$ac_ext | |
38770 | cat >>conftest.$ac_ext <<_ACEOF | |
38771 | /* end confdefs.h. */ | |
38772 | /* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r. | |
38773 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38774 | #define readdir_r innocuous_readdir_r | |
38775 | ||
38776 | /* System header to define __stub macros and hopefully few prototypes, | |
38777 | which can conflict with char readdir_r (); below. | |
38778 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38779 | <limits.h> exists even on freestanding compilers. */ | |
38780 | ||
38781 | #ifdef __STDC__ | |
38782 | # include <limits.h> | |
38783 | #else | |
38784 | # include <assert.h> | |
38785 | #endif | |
38786 | ||
38787 | #undef readdir_r | |
38788 | ||
38789 | /* Override any gcc2 internal prototype to avoid an error. */ | |
38790 | #ifdef __cplusplus | |
38791 | extern "C" | |
38792 | { | |
38793 | #endif | |
38794 | /* We use char because int might match the return type of a gcc2 | |
38795 | builtin and then its argument prototype would still apply. */ | |
38796 | char readdir_r (); | |
38797 | /* The GNU C library defines this for functions which it implements | |
38798 | to always fail with ENOSYS. Some functions are actually named | |
38799 | something starting with __ and the normal name is an alias. */ | |
38800 | #if defined (__stub_readdir_r) || defined (__stub___readdir_r) | |
38801 | choke me | |
38802 | #else | |
38803 | char (*f) () = readdir_r; | |
38804 | #endif | |
38805 | #ifdef __cplusplus | |
38806 | } | |
38807 | #endif | |
38808 | ||
38809 | int | |
38810 | main () | |
38811 | { | |
38812 | return f != readdir_r; | |
38813 | ; | |
38814 | return 0; | |
38815 | } | |
38816 | _ACEOF | |
38817 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38818 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
38819 | (eval $ac_link) 2>conftest.er1 | |
38820 | ac_status=$? | |
38821 | grep -v '^ *+' conftest.er1 >conftest.err | |
38822 | rm -f conftest.er1 | |
38823 | cat conftest.err >&5 | |
38824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38825 | (exit $ac_status); } && | |
5d7b7554 | 38826 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
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); }; } && | |
38832 | { ac_try='test -s conftest$ac_exeext' | |
38833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38834 | (eval $ac_try) 2>&5 | |
38835 | ac_status=$? | |
38836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38837 | (exit $ac_status); }; }; then | |
38838 | ac_cv_func_readdir_r=yes | |
38839 | else | |
38840 | echo "$as_me: failed program was:" >&5 | |
38841 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38842 | ||
38843 | ac_cv_func_readdir_r=no | |
38844 | fi | |
38845 | rm -f conftest.err conftest.$ac_objext \ | |
38846 | conftest$ac_exeext conftest.$ac_ext | |
38847 | fi | |
38848 | echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5 | |
38849 | echo "${ECHO_T}$ac_cv_func_readdir_r" >&6 | |
38850 | if test $ac_cv_func_readdir_r = yes; then | |
38851 | cat >>confdefs.h <<\_ACEOF | |
38852 | #define HAVE_READDIR_R 1 | |
38853 | _ACEOF | |
38854 | ||
38855 | fi | |
38856 | ||
004ee6da | 38857 | |
004ee6da RL |
38858 | |
38859 | ||
38860 | ac_ext=c | |
38861 | ac_cpp='$CPP $CPPFLAGS' | |
38862 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
38863 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
38864 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
38865 | ||
38866 | echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5 | |
38867 | echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6 | |
38868 | ||
38869 | if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then | |
38870 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38871 | else | |
38872 | ||
38873 | ||
38874 | ################################################################ | |
38875 | ||
38876 | ac_cv_func_which_gethostbyname_r=unknown | |
38877 | ||
38878 | # | |
38879 | # ONE ARGUMENT (sanity check) | |
38880 | # | |
38881 | ||
38882 | # This should fail, as there is no variant of gethostbyname_r() that takes | |
38883 | # a single argument. If it actually compiles, then we can assume that | |
38884 | # netdb.h is not declaring the function, and the compiler is thereby | |
38885 | # assuming an implicit prototype. In which case, we're out of luck. | |
38886 | # | |
38887 | cat >conftest.$ac_ext <<_ACEOF | |
38888 | /* confdefs.h. */ | |
38889 | _ACEOF | |
38890 | cat confdefs.h >>conftest.$ac_ext | |
38891 | cat >>conftest.$ac_ext <<_ACEOF | |
38892 | /* end confdefs.h. */ | |
38893 | #include <netdb.h> | |
38894 | int | |
38895 | main () | |
38896 | { | |
38897 | ||
38898 | char *name = "www.gnu.org"; | |
38899 | (void)gethostbyname_r(name) /* ; */ | |
38900 | ||
38901 | ; | |
38902 | return 0; | |
38903 | } | |
38904 | _ACEOF | |
38905 | rm -f conftest.$ac_objext | |
38906 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38907 | (eval $ac_compile) 2>conftest.er1 | |
38908 | ac_status=$? | |
38909 | grep -v '^ *+' conftest.er1 >conftest.err | |
38910 | rm -f conftest.er1 | |
38911 | cat conftest.err >&5 | |
38912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38913 | (exit $ac_status); } && | |
5d7b7554 | 38914 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
38915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38916 | (eval $ac_try) 2>&5 | |
38917 | ac_status=$? | |
38918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38919 | (exit $ac_status); }; } && | |
38920 | { ac_try='test -s conftest.$ac_objext' | |
38921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38922 | (eval $ac_try) 2>&5 | |
38923 | ac_status=$? | |
38924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38925 | (exit $ac_status); }; }; then | |
38926 | ac_cv_func_which_gethostbyname_r=no | |
38927 | else | |
38928 | echo "$as_me: failed program was:" >&5 | |
38929 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38930 | ||
38931 | fi | |
38932 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38933 | ||
38934 | # | |
38935 | # SIX ARGUMENTS | |
38936 | # (e.g. Linux) | |
38937 | # | |
38938 | ||
38939 | if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then | |
38940 | ||
38941 | cat >conftest.$ac_ext <<_ACEOF | |
38942 | /* confdefs.h. */ | |
38943 | _ACEOF | |
38944 | cat confdefs.h >>conftest.$ac_ext | |
38945 | cat >>conftest.$ac_ext <<_ACEOF | |
38946 | /* end confdefs.h. */ | |
38947 | #include <netdb.h> | |
38948 | int | |
38949 | main () | |
38950 | { | |
38951 | ||
38952 | char *name = "www.gnu.org"; | |
38953 | struct hostent ret, *retp; | |
38954 | char buf[1024]; | |
38955 | int buflen = 1024; | |
38956 | int my_h_errno; | |
38957 | (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */ | |
38958 | ||
38959 | ; | |
38960 | return 0; | |
38961 | } | |
38962 | _ACEOF | |
38963 | rm -f conftest.$ac_objext | |
38964 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38965 | (eval $ac_compile) 2>conftest.er1 | |
38966 | ac_status=$? | |
38967 | grep -v '^ *+' conftest.er1 >conftest.err | |
38968 | rm -f conftest.er1 | |
38969 | cat conftest.err >&5 | |
38970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38971 | (exit $ac_status); } && | |
5d7b7554 | 38972 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
38973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38974 | (eval $ac_try) 2>&5 | |
38975 | ac_status=$? | |
38976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38977 | (exit $ac_status); }; } && | |
38978 | { ac_try='test -s conftest.$ac_objext' | |
38979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38980 | (eval $ac_try) 2>&5 | |
38981 | ac_status=$? | |
38982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38983 | (exit $ac_status); }; }; then | |
38984 | ac_cv_func_which_gethostbyname_r=six | |
38985 | else | |
38986 | echo "$as_me: failed program was:" >&5 | |
38987 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38988 | ||
38989 | fi | |
38990 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38991 | ||
38992 | fi | |
38993 | ||
38994 | # | |
38995 | # FIVE ARGUMENTS | |
38996 | # (e.g. Solaris) | |
38997 | # | |
38998 | ||
38999 | if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then | |
39000 | ||
39001 | cat >conftest.$ac_ext <<_ACEOF | |
39002 | /* confdefs.h. */ | |
39003 | _ACEOF | |
39004 | cat confdefs.h >>conftest.$ac_ext | |
39005 | cat >>conftest.$ac_ext <<_ACEOF | |
39006 | /* end confdefs.h. */ | |
39007 | #include <netdb.h> | |
39008 | int | |
39009 | main () | |
39010 | { | |
39011 | ||
39012 | char *name = "www.gnu.org"; | |
39013 | struct hostent ret; | |
39014 | char buf[1024]; | |
39015 | int buflen = 1024; | |
39016 | int my_h_errno; | |
39017 | (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */ | |
39018 | ||
39019 | ; | |
39020 | return 0; | |
39021 | } | |
39022 | _ACEOF | |
39023 | rm -f conftest.$ac_objext | |
39024 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39025 | (eval $ac_compile) 2>conftest.er1 | |
39026 | ac_status=$? | |
39027 | grep -v '^ *+' conftest.er1 >conftest.err | |
39028 | rm -f conftest.er1 | |
39029 | cat conftest.err >&5 | |
39030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39031 | (exit $ac_status); } && | |
5d7b7554 | 39032 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
39033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39034 | (eval $ac_try) 2>&5 | |
39035 | ac_status=$? | |
39036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39037 | (exit $ac_status); }; } && | |
39038 | { ac_try='test -s conftest.$ac_objext' | |
39039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39040 | (eval $ac_try) 2>&5 | |
39041 | ac_status=$? | |
39042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39043 | (exit $ac_status); }; }; then | |
39044 | ac_cv_func_which_gethostbyname_r=five | |
39045 | else | |
39046 | echo "$as_me: failed program was:" >&5 | |
39047 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39048 | ||
39049 | fi | |
39050 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39051 | ||
39052 | fi | |
39053 | ||
39054 | # | |
39055 | # THREE ARGUMENTS | |
39056 | # (e.g. AIX, HP-UX, Tru64) | |
39057 | # | |
39058 | ||
39059 | if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then | |
39060 | ||
39061 | cat >conftest.$ac_ext <<_ACEOF | |
39062 | /* confdefs.h. */ | |
39063 | _ACEOF | |
39064 | cat confdefs.h >>conftest.$ac_ext | |
39065 | cat >>conftest.$ac_ext <<_ACEOF | |
39066 | /* end confdefs.h. */ | |
39067 | #include <netdb.h> | |
39068 | int | |
39069 | main () | |
39070 | { | |
39071 | ||
39072 | char *name = "www.gnu.org"; | |
39073 | struct hostent ret; | |
39074 | struct hostent_data data; | |
39075 | (void)gethostbyname_r(name, &ret, &data) /* ; */ | |
39076 | ||
39077 | ; | |
39078 | return 0; | |
39079 | } | |
39080 | _ACEOF | |
39081 | rm -f conftest.$ac_objext | |
39082 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39083 | (eval $ac_compile) 2>conftest.er1 | |
39084 | ac_status=$? | |
39085 | grep -v '^ *+' conftest.er1 >conftest.err | |
39086 | rm -f conftest.er1 | |
39087 | cat conftest.err >&5 | |
39088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39089 | (exit $ac_status); } && | |
5d7b7554 | 39090 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
39091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39092 | (eval $ac_try) 2>&5 | |
39093 | ac_status=$? | |
39094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39095 | (exit $ac_status); }; } && | |
39096 | { ac_try='test -s conftest.$ac_objext' | |
39097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39098 | (eval $ac_try) 2>&5 | |
39099 | ac_status=$? | |
39100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39101 | (exit $ac_status); }; }; then | |
39102 | ac_cv_func_which_gethostbyname_r=three | |
39103 | else | |
39104 | echo "$as_me: failed program was:" >&5 | |
39105 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39106 | ||
39107 | fi | |
39108 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39109 | ||
39110 | fi | |
39111 | ||
39112 | ################################################################ | |
39113 | ||
39114 | ||
39115 | fi | |
39116 | ||
39117 | case "$ac_cv_func_which_gethostbyname_r" in | |
39118 | three) | |
39119 | echo "$as_me:$LINENO: result: three" >&5 | |
39120 | echo "${ECHO_T}three" >&6 | |
39121 | cat >>confdefs.h <<\_ACEOF | |
39122 | #define HAVE_FUNC_GETHOSTBYNAME_R_3 1 | |
39123 | _ACEOF | |
39124 | ||
39125 | ;; | |
39126 | ||
39127 | five) | |
39128 | echo "$as_me:$LINENO: result: five" >&5 | |
39129 | echo "${ECHO_T}five" >&6 | |
39130 | cat >>confdefs.h <<\_ACEOF | |
39131 | #define HAVE_FUNC_GETHOSTBYNAME_R_5 1 | |
39132 | _ACEOF | |
39133 | ||
39134 | ;; | |
39135 | ||
39136 | six) | |
39137 | echo "$as_me:$LINENO: result: six" >&5 | |
39138 | echo "${ECHO_T}six" >&6 | |
39139 | cat >>confdefs.h <<\_ACEOF | |
39140 | #define HAVE_FUNC_GETHOSTBYNAME_R_6 1 | |
39141 | _ACEOF | |
39142 | ||
39143 | ;; | |
39144 | ||
39145 | no) | |
39146 | echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5 | |
39147 | echo "${ECHO_T}cannot find function declaration in netdb.h" >&6 | |
39148 | ;; | |
39149 | ||
39150 | unknown) | |
39151 | echo "$as_me:$LINENO: result: can't tell" >&5 | |
39152 | echo "${ECHO_T}can't tell" >&6 | |
39153 | ;; | |
39154 | ||
39155 | *) | |
39156 | { { echo "$as_me:$LINENO: error: internal error" >&5 | |
39157 | echo "$as_me: error: internal error" >&2;} | |
39158 | { (exit 1); exit 1; }; } | |
39159 | ;; | |
39160 | esac | |
39161 | ||
5ec3bc43 JS |
39162 | ac_ext=cc |
39163 | ac_cpp='$CXXCPP $CPPFLAGS' | |
39164 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
39165 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
39166 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
004ee6da RL |
39167 | |
39168 | ||
39169 | ||
39170 | if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \ | |
39171 | "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then | |
39172 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
39173 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
39174 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
39175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39176 | else | |
39177 | cat >conftest.$ac_ext <<_ACEOF | |
39178 | /* confdefs.h. */ | |
39179 | _ACEOF | |
39180 | cat confdefs.h >>conftest.$ac_ext | |
39181 | cat >>conftest.$ac_ext <<_ACEOF | |
39182 | /* end confdefs.h. */ | |
39183 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. | |
39184 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39185 | #define gethostbyname innocuous_gethostbyname | |
39186 | ||
39187 | /* System header to define __stub macros and hopefully few prototypes, | |
39188 | which can conflict with char gethostbyname (); below. | |
39189 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39190 | <limits.h> exists even on freestanding compilers. */ | |
39191 | ||
39192 | #ifdef __STDC__ | |
39193 | # include <limits.h> | |
39194 | #else | |
39195 | # include <assert.h> | |
39196 | #endif | |
39197 | ||
39198 | #undef gethostbyname | |
39199 | ||
39200 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39201 | #ifdef __cplusplus | |
39202 | extern "C" | |
39203 | { | |
39204 | #endif | |
39205 | /* We use char because int might match the return type of a gcc2 | |
39206 | builtin and then its argument prototype would still apply. */ | |
39207 | char gethostbyname (); | |
39208 | /* The GNU C library defines this for functions which it implements | |
39209 | to always fail with ENOSYS. Some functions are actually named | |
39210 | something starting with __ and the normal name is an alias. */ | |
39211 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
39212 | choke me | |
39213 | #else | |
39214 | char (*f) () = gethostbyname; | |
39215 | #endif | |
39216 | #ifdef __cplusplus | |
39217 | } | |
39218 | #endif | |
39219 | ||
39220 | int | |
39221 | main () | |
39222 | { | |
39223 | return f != gethostbyname; | |
39224 | ; | |
39225 | return 0; | |
39226 | } | |
39227 | _ACEOF | |
39228 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39229 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
39230 | (eval $ac_link) 2>conftest.er1 | |
39231 | ac_status=$? | |
39232 | grep -v '^ *+' conftest.er1 >conftest.err | |
39233 | rm -f conftest.er1 | |
39234 | cat conftest.err >&5 | |
39235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39236 | (exit $ac_status); } && | |
5d7b7554 | 39237 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
39238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39239 | (eval $ac_try) 2>&5 | |
39240 | ac_status=$? | |
39241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39242 | (exit $ac_status); }; } && | |
39243 | { ac_try='test -s conftest$ac_exeext' | |
39244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39245 | (eval $ac_try) 2>&5 | |
39246 | ac_status=$? | |
39247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39248 | (exit $ac_status); }; }; then | |
39249 | ac_cv_func_gethostbyname=yes | |
39250 | else | |
39251 | echo "$as_me: failed program was:" >&5 | |
39252 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39253 | ||
39254 | ac_cv_func_gethostbyname=no | |
39255 | fi | |
39256 | rm -f conftest.err conftest.$ac_objext \ | |
39257 | conftest$ac_exeext conftest.$ac_ext | |
39258 | fi | |
39259 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
39260 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
39261 | if test $ac_cv_func_gethostbyname = yes; then | |
39262 | cat >>confdefs.h <<\_ACEOF | |
39263 | #define HAVE_GETHOSTBYNAME 1 | |
39264 | _ACEOF | |
39265 | ||
39266 | fi | |
39267 | ||
39268 | fi | |
39269 | echo "$as_me:$LINENO: checking for getservbyname_r" >&5 | |
39270 | echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6 | |
004ee6da RL |
39271 | if test "${ac_cv_func_getservbyname_r+set}" = set; then |
39272 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39273 | else | |
39274 | cat >conftest.$ac_ext <<_ACEOF | |
39275 | /* confdefs.h. */ | |
39276 | _ACEOF | |
39277 | cat confdefs.h >>conftest.$ac_ext | |
39278 | cat >>conftest.$ac_ext <<_ACEOF | |
39279 | /* end confdefs.h. */ | |
39280 | /* Define getservbyname_r to an innocuous variant, in case <limits.h> declares getservbyname_r. | |
39281 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39282 | #define getservbyname_r innocuous_getservbyname_r | |
39283 | ||
39284 | /* System header to define __stub macros and hopefully few prototypes, | |
39285 | which can conflict with char getservbyname_r (); below. | |
39286 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39287 | <limits.h> exists even on freestanding compilers. */ | |
39288 | ||
39289 | #ifdef __STDC__ | |
39290 | # include <limits.h> | |
39291 | #else | |
39292 | # include <assert.h> | |
39293 | #endif | |
39294 | ||
39295 | #undef getservbyname_r | |
39296 | ||
39297 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39298 | #ifdef __cplusplus | |
39299 | extern "C" | |
39300 | { | |
39301 | #endif | |
39302 | /* We use char because int might match the return type of a gcc2 | |
39303 | builtin and then its argument prototype would still apply. */ | |
39304 | char getservbyname_r (); | |
39305 | /* The GNU C library defines this for functions which it implements | |
39306 | to always fail with ENOSYS. Some functions are actually named | |
39307 | something starting with __ and the normal name is an alias. */ | |
39308 | #if defined (__stub_getservbyname_r) || defined (__stub___getservbyname_r) | |
39309 | choke me | |
39310 | #else | |
39311 | char (*f) () = getservbyname_r; | |
39312 | #endif | |
39313 | #ifdef __cplusplus | |
39314 | } | |
39315 | #endif | |
39316 | ||
39317 | int | |
39318 | main () | |
39319 | { | |
39320 | return f != getservbyname_r; | |
39321 | ; | |
39322 | return 0; | |
39323 | } | |
39324 | _ACEOF | |
39325 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39326 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
39327 | (eval $ac_link) 2>conftest.er1 | |
39328 | ac_status=$? | |
39329 | grep -v '^ *+' conftest.er1 >conftest.err | |
39330 | rm -f conftest.er1 | |
39331 | cat conftest.err >&5 | |
39332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39333 | (exit $ac_status); } && | |
5d7b7554 | 39334 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
39335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39336 | (eval $ac_try) 2>&5 | |
39337 | ac_status=$? | |
39338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39339 | (exit $ac_status); }; } && | |
39340 | { ac_try='test -s conftest$ac_exeext' | |
39341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39342 | (eval $ac_try) 2>&5 | |
39343 | ac_status=$? | |
39344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39345 | (exit $ac_status); }; }; then | |
39346 | ac_cv_func_getservbyname_r=yes | |
39347 | else | |
39348 | echo "$as_me: failed program was:" >&5 | |
39349 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39350 | ||
39351 | ac_cv_func_getservbyname_r=no | |
39352 | fi | |
39353 | rm -f conftest.err conftest.$ac_objext \ | |
39354 | conftest$ac_exeext conftest.$ac_ext | |
39355 | fi | |
39356 | echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_r" >&5 | |
39357 | echo "${ECHO_T}$ac_cv_func_getservbyname_r" >&6 | |
39358 | if test $ac_cv_func_getservbyname_r = yes; then | |
99879bbf | 39359 | cat >conftest.$ac_ext <<_ACEOF |
004ee6da RL |
39360 | /* confdefs.h. */ |
39361 | _ACEOF | |
39362 | cat confdefs.h >>conftest.$ac_ext | |
39363 | cat >>conftest.$ac_ext <<_ACEOF | |
39364 | /* end confdefs.h. */ | |
99879bbf | 39365 | #include <netdb.h> |
004ee6da RL |
39366 | int |
39367 | main () | |
39368 | { | |
39369 | ||
99879bbf MR |
39370 | char *name; |
39371 | char *proto; | |
39372 | struct servent *se; | |
39373 | struct servent_data data; | |
39374 | (void) getservbyname_r(name, proto, se, &data); | |
004ee6da RL |
39375 | |
39376 | ; | |
39377 | return 0; | |
39378 | } | |
39379 | _ACEOF | |
39380 | rm -f conftest.$ac_objext | |
39381 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39382 | (eval $ac_compile) 2>conftest.er1 | |
39383 | ac_status=$? | |
39384 | grep -v '^ *+' conftest.er1 >conftest.err | |
39385 | rm -f conftest.er1 | |
39386 | cat conftest.err >&5 | |
39387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39388 | (exit $ac_status); } && | |
5d7b7554 | 39389 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
39390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39391 | (eval $ac_try) 2>&5 | |
39392 | ac_status=$? | |
39393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39394 | (exit $ac_status); }; } && | |
39395 | { ac_try='test -s conftest.$ac_objext' | |
39396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39397 | (eval $ac_try) 2>&5 | |
39398 | ac_status=$? | |
39399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39400 | (exit $ac_status); }; }; then | |
39401 | ac_cv_func_which_getservbyname_r=four | |
39402 | else | |
39403 | echo "$as_me: failed program was:" >&5 | |
39404 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39405 | ||
99879bbf | 39406 | cat >conftest.$ac_ext <<_ACEOF |
004ee6da RL |
39407 | /* confdefs.h. */ |
39408 | _ACEOF | |
39409 | cat confdefs.h >>conftest.$ac_ext | |
39410 | cat >>conftest.$ac_ext <<_ACEOF | |
39411 | /* end confdefs.h. */ | |
99879bbf | 39412 | #include <netdb.h> |
004ee6da RL |
39413 | int |
39414 | main () | |
39415 | { | |
39416 | ||
99879bbf MR |
39417 | char *name; |
39418 | char *proto; | |
39419 | struct servent *se, *res; | |
39420 | char buffer[2048]; | |
39421 | int buflen = 2048; | |
39422 | (void) getservbyname_r(name, proto, se, buffer, buflen, &res); | |
004ee6da RL |
39423 | |
39424 | ; | |
39425 | return 0; | |
39426 | } | |
39427 | _ACEOF | |
39428 | rm -f conftest.$ac_objext | |
39429 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39430 | (eval $ac_compile) 2>conftest.er1 | |
39431 | ac_status=$? | |
39432 | grep -v '^ *+' conftest.er1 >conftest.err | |
39433 | rm -f conftest.er1 | |
39434 | cat conftest.err >&5 | |
39435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39436 | (exit $ac_status); } && | |
5d7b7554 | 39437 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
39438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39439 | (eval $ac_try) 2>&5 | |
39440 | ac_status=$? | |
39441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39442 | (exit $ac_status); }; } && | |
39443 | { ac_try='test -s conftest.$ac_objext' | |
39444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39445 | (eval $ac_try) 2>&5 | |
39446 | ac_status=$? | |
39447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39448 | (exit $ac_status); }; }; then | |
39449 | ac_cv_func_which_getservbyname_r=six | |
39450 | else | |
39451 | echo "$as_me: failed program was:" >&5 | |
39452 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39453 | ||
99879bbf | 39454 | cat >conftest.$ac_ext <<_ACEOF |
004ee6da RL |
39455 | /* confdefs.h. */ |
39456 | _ACEOF | |
39457 | cat confdefs.h >>conftest.$ac_ext | |
39458 | cat >>conftest.$ac_ext <<_ACEOF | |
39459 | /* end confdefs.h. */ | |
99879bbf | 39460 | #include <netdb.h> |
004ee6da RL |
39461 | int |
39462 | main () | |
39463 | { | |
39464 | ||
99879bbf MR |
39465 | char *name; |
39466 | char *proto; | |
39467 | struct servent *se; | |
39468 | char buffer[2048]; | |
39469 | int buflen = 2048; | |
39470 | (void) getservbyname_r(name, proto, se, buffer, buflen) | |
004ee6da RL |
39471 | |
39472 | ; | |
39473 | return 0; | |
39474 | } | |
39475 | _ACEOF | |
39476 | rm -f conftest.$ac_objext | |
39477 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39478 | (eval $ac_compile) 2>conftest.er1 | |
39479 | ac_status=$? | |
39480 | grep -v '^ *+' conftest.er1 >conftest.err | |
39481 | rm -f conftest.er1 | |
39482 | cat conftest.err >&5 | |
39483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39484 | (exit $ac_status); } && | |
5d7b7554 | 39485 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
39486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39487 | (eval $ac_try) 2>&5 | |
39488 | ac_status=$? | |
39489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39490 | (exit $ac_status); }; } && | |
39491 | { ac_try='test -s conftest.$ac_objext' | |
39492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39493 | (eval $ac_try) 2>&5 | |
39494 | ac_status=$? | |
39495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39496 | (exit $ac_status); }; }; then | |
39497 | ac_cv_func_which_getservbyname_r=five | |
39498 | else | |
39499 | echo "$as_me: failed program was:" >&5 | |
39500 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39501 | ||
39502 | ac_cv_func_which_getservbyname_r=no | |
99879bbf | 39503 | |
004ee6da RL |
39504 | fi |
39505 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39506 | ||
004ee6da RL |
39507 | fi |
39508 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39509 | ||
004ee6da RL |
39510 | fi |
39511 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
004ee6da RL |
39512 | else |
39513 | ac_cv_func_which_getservbyname_r=no | |
39514 | fi | |
39515 | ||
004ee6da RL |
39516 | |
39517 | if test $ac_cv_func_which_getservbyname_r = six; then | |
39518 | cat >>confdefs.h <<\_ACEOF | |
39519 | #define HAVE_FUNC_GETSERVBYNAME_R_6 1 | |
39520 | _ACEOF | |
39521 | ||
39522 | elif test $ac_cv_func_which_getservbyname_r = five; then | |
39523 | cat >>confdefs.h <<\_ACEOF | |
39524 | #define HAVE_FUNC_GETSERVBYNAME_R_5 1 | |
39525 | _ACEOF | |
39526 | ||
39527 | elif test $ac_cv_func_which_getservbyname_r = four; then | |
39528 | cat >>confdefs.h <<\_ACEOF | |
39529 | #define HAVE_FUNC_GETSERVBYNAME_R_4 1 | |
39530 | _ACEOF | |
39531 | ||
004ee6da RL |
39532 | fi |
39533 | ||
39534 | ||
39535 | if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \ | |
39536 | "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then | |
39537 | ||
39538 | for ac_func in getservbyname | |
39539 | do | |
39540 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
39541 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39542 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
39543 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
39544 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39545 | else | |
39546 | cat >conftest.$ac_ext <<_ACEOF | |
39547 | /* confdefs.h. */ | |
39548 | _ACEOF | |
39549 | cat confdefs.h >>conftest.$ac_ext | |
39550 | cat >>conftest.$ac_ext <<_ACEOF | |
39551 | /* end confdefs.h. */ | |
39552 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
39553 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39554 | #define $ac_func innocuous_$ac_func | |
39555 | ||
39556 | /* System header to define __stub macros and hopefully few prototypes, | |
39557 | which can conflict with char $ac_func (); below. | |
39558 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39559 | <limits.h> exists even on freestanding compilers. */ | |
39560 | ||
39561 | #ifdef __STDC__ | |
39562 | # include <limits.h> | |
39563 | #else | |
39564 | # include <assert.h> | |
39565 | #endif | |
39566 | ||
39567 | #undef $ac_func | |
39568 | ||
39569 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39570 | #ifdef __cplusplus | |
39571 | extern "C" | |
39572 | { | |
39573 | #endif | |
39574 | /* We use char because int might match the return type of a gcc2 | |
39575 | builtin and then its argument prototype would still apply. */ | |
39576 | char $ac_func (); | |
39577 | /* The GNU C library defines this for functions which it implements | |
39578 | to always fail with ENOSYS. Some functions are actually named | |
39579 | something starting with __ and the normal name is an alias. */ | |
39580 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39581 | choke me | |
39582 | #else | |
39583 | char (*f) () = $ac_func; | |
39584 | #endif | |
39585 | #ifdef __cplusplus | |
39586 | } | |
39587 | #endif | |
39588 | ||
39589 | int | |
39590 | main () | |
39591 | { | |
39592 | return f != $ac_func; | |
39593 | ; | |
39594 | return 0; | |
39595 | } | |
39596 | _ACEOF | |
39597 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39598 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
39599 | (eval $ac_link) 2>conftest.er1 | |
39600 | ac_status=$? | |
39601 | grep -v '^ *+' conftest.er1 >conftest.err | |
39602 | rm -f conftest.er1 | |
39603 | cat conftest.err >&5 | |
39604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39605 | (exit $ac_status); } && | |
5d7b7554 | 39606 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
004ee6da RL |
39607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39608 | (eval $ac_try) 2>&5 | |
39609 | ac_status=$? | |
39610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39611 | (exit $ac_status); }; } && | |
39612 | { ac_try='test -s conftest$ac_exeext' | |
39613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39614 | (eval $ac_try) 2>&5 | |
39615 | ac_status=$? | |
39616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39617 | (exit $ac_status); }; }; then | |
39618 | eval "$as_ac_var=yes" | |
39619 | else | |
39620 | echo "$as_me: failed program was:" >&5 | |
39621 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39622 | ||
39623 | eval "$as_ac_var=no" | |
39624 | fi | |
39625 | rm -f conftest.err conftest.$ac_objext \ | |
39626 | conftest$ac_exeext conftest.$ac_ext | |
39627 | fi | |
39628 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39629 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39630 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39631 | cat >>confdefs.h <<_ACEOF | |
39632 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39633 | _ACEOF | |
39634 | cat >>confdefs.h <<\_ACEOF | |
39635 | #define HAVE_GETSERVBYNAME 1 | |
39636 | _ACEOF | |
39637 | ||
39638 | fi | |
39639 | done | |
39640 | ||
39641 | fi | |
39642 | ||
004ee6da RL |
39643 | if test "$wxUSE_THREADS" = "yes"; then |
39644 | cat >>confdefs.h <<\_ACEOF | |
39645 | #define wxUSE_THREADS 1 | |
39646 | _ACEOF | |
39647 | ||
39648 | ||
39649 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
39650 | else | |
39651 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
39652 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 | |
39653 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
39654 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
39655 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT" | |
39656 | echo "$as_me:$LINENO: result: yes" >&5 | |
39657 | echo "${ECHO_T}yes" >&6 | |
39658 | else | |
39659 | echo "$as_me:$LINENO: result: no" >&5 | |
39660 | echo "${ECHO_T}no" >&6 | |
39661 | fi | |
39662 | fi | |
39663 | fi | |
39664 | ||
39665 | if test "$WXGTK20" = 1 ; then | |
39666 | cat >>confdefs.h <<_ACEOF | |
39667 | #define __WXGTK20__ $WXGTK20 | |
39668 | _ACEOF | |
39669 | ||
39670 | WXGTK12=1 | |
39671 | fi | |
39672 | ||
39673 | if test "$WXGTK12" = 1 ; then | |
39674 | cat >>confdefs.h <<_ACEOF | |
39675 | #define __WXGTK12__ $WXGTK12 | |
39676 | _ACEOF | |
39677 | ||
39678 | fi | |
39679 | ||
39680 | if test "$WXGTK127" = 1 ; then | |
39681 | cat >>confdefs.h <<_ACEOF | |
39682 | #define __WXGTK127__ $WXGTK127 | |
39683 | _ACEOF | |
39684 | ||
39685 | fi | |
39686 | ||
39687 | if test "$WXGPE" = 1 ; then | |
39688 | cat >>confdefs.h <<_ACEOF | |
39689 | #define __WXGPE__ $WXGPE | |
39690 | _ACEOF | |
39691 | ||
39692 | fi | |
39693 | ||
39694 | DEBUG_CFLAGS= | |
39695 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
39696 | DEBUG_CFLAGS="-g" | |
39697 | wxUSE_OPTIMISE=no | |
39698 | fi | |
39699 | ||
39700 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
39701 | wxUSE_DEBUG_INFO=yes | |
39702 | if test "$GCC" = yes; then | |
39703 | DEBUG_CFLAGS="-ggdb" | |
39704 | fi | |
39705 | fi | |
39706 | ||
39707 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
39708 | cat >>confdefs.h <<\_ACEOF | |
39709 | #define WXDEBUG 1 | |
39710 | _ACEOF | |
39711 | ||
39712 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__" | |
39713 | else | |
39714 | if test "$wxUSE_GTK" = 1 ; then | |
99879bbf MR |
39715 | if test "x$wxGTK_VERSION" = "x1" ; then |
39716 | CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS" | |
39717 | fi | |
004ee6da RL |
39718 | fi |
39719 | fi | |
39720 | ||
39721 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
39722 | cat >>confdefs.h <<\_ACEOF | |
39723 | #define wxUSE_MEMORY_TRACING 1 | |
39724 | _ACEOF | |
39725 | ||
39726 | cat >>confdefs.h <<\_ACEOF | |
39727 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
39728 | _ACEOF | |
39729 | ||
39730 | cat >>confdefs.h <<\_ACEOF | |
39731 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
39732 | _ACEOF | |
39733 | ||
39734 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
39735 | fi | |
39736 | ||
39737 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
39738 | DMALLOC_LIBS="-ldmallocthcxx" | |
39739 | fi | |
39740 | ||
39741 | PROFILE_FLAGS= | |
39742 | if test "$wxUSE_PROFILE" = "yes" ; then | |
39743 | PROFILE_FLAGS=" -pg" | |
39744 | fi | |
39745 | ||
39746 | if test "$GCC" = "yes" ; then | |
39747 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
39748 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti" | |
39749 | fi | |
39750 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
39751 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions" | |
39752 | fi | |
39753 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
39754 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive" | |
39755 | fi | |
39756 | ||
39757 | case "${host}" in | |
39758 | powerpc*-*-aix* ) | |
39759 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc" | |
39760 | ;; | |
39761 | *-hppa* ) | |
39762 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections" | |
39763 | ;; | |
39764 | esac | |
39765 | fi | |
39766 | ||
39767 | OPTIMISE_CFLAGS= | |
39768 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
39769 | if test "$GCC" = yes ; then | |
39770 | OPTIMISE_CFLAGS="-O0" | |
39771 | fi | |
39772 | else | |
39773 | if test "$GCC" = yes ; then | |
e5efa97e VZ |
39774 | case "${host}" in |
39775 | *-pc-os2_emx | *-pc-os2-emx ) | |
39776 | OPTIMISE_CFLAGS="-O2" | |
39777 | ;; | |
39778 | *) | |
39779 | OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing" | |
39780 | ;; | |
39781 | esac | |
004ee6da RL |
39782 | else |
39783 | OPTIMISE_CFLAGS="-O" | |
39784 | fi | |
39785 | fi | |
39786 | ||
39787 | ||
39788 | if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then | |
39789 | cat >>confdefs.h <<\_ACEOF | |
39790 | #define WXWIN_COMPATIBILITY_2_4 1 | |
39791 | _ACEOF | |
39792 | ||
39793 | ||
39794 | WXWIN_COMPATIBILITY_2_6="yes" | |
39795 | fi | |
39796 | ||
39797 | if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then | |
39798 | cat >>confdefs.h <<\_ACEOF | |
39799 | #define WXWIN_COMPATIBILITY_2_6 1 | |
39800 | _ACEOF | |
39801 | ||
39802 | fi | |
39803 | ||
39804 | ||
39805 | if test "$wxUSE_GUI" = "yes"; then | |
39806 | cat >>confdefs.h <<\_ACEOF | |
39807 | #define wxUSE_GUI 1 | |
39808 | _ACEOF | |
39809 | ||
39810 | ||
39811 | fi | |
39812 | ||
39813 | ||
39814 | if test "$wxUSE_UNIX" = "yes"; then | |
39815 | cat >>confdefs.h <<\_ACEOF | |
39816 | #define wxUSE_UNIX 1 | |
39817 | _ACEOF | |
39818 | ||
39819 | fi | |
39820 | ||
39821 | ||
39822 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
39823 | ||
39824 | HAVE_DL_FUNCS=0 | |
39825 | HAVE_SHL_FUNCS=0 | |
39826 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
39827 | if test "$USE_DARWIN" = 1; then | |
39828 | HAVE_DL_FUNCS=1 | |
39829 | elif test "$USE_DOS" = 1; then | |
39830 | HAVE_DL_FUNCS=0 | |
39831 | else | |
39832 | ||
39833 | for ac_func in dlopen | |
39834 | do | |
39835 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
39836 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39837 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
39838 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
39839 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39840 | else | |
39841 | cat >conftest.$ac_ext <<_ACEOF | |
39842 | /* confdefs.h. */ | |
39843 | _ACEOF | |
39844 | cat confdefs.h >>conftest.$ac_ext | |
39845 | cat >>conftest.$ac_ext <<_ACEOF | |
39846 | /* end confdefs.h. */ | |
39847 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
39848 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39849 | #define $ac_func innocuous_$ac_func | |
39850 | ||
39851 | /* System header to define __stub macros and hopefully few prototypes, | |
39852 | which can conflict with char $ac_func (); below. | |
39853 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39854 | <limits.h> exists even on freestanding compilers. */ | |
39855 | ||
39856 | #ifdef __STDC__ | |
39857 | # include <limits.h> | |
39858 | #else | |
39859 | # include <assert.h> | |
39860 | #endif | |
39861 | ||
39862 | #undef $ac_func | |
39863 | ||
39864 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39865 | #ifdef __cplusplus | |
39866 | extern "C" | |
39867 | { | |
39868 | #endif | |
39869 | /* We use char because int might match the return type of a gcc2 | |
39870 | builtin and then its argument prototype would still apply. */ | |
39871 | char $ac_func (); | |
39872 | /* The GNU C library defines this for functions which it implements | |
39873 | to always fail with ENOSYS. Some functions are actually named | |
39874 | something starting with __ and the normal name is an alias. */ | |
39875 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39876 | choke me | |
39877 | #else | |
39878 | char (*f) () = $ac_func; | |
39879 | #endif | |
39880 | #ifdef __cplusplus | |
39881 | } | |
39882 | #endif | |
39883 | ||
39884 | int | |
39885 | main () | |
39886 | { | |
39887 | return f != $ac_func; | |
a848cd7e SC |
39888 | ; |
39889 | return 0; | |
39890 | } | |
39891 | _ACEOF | |
39892 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39893 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39894 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39895 | ac_status=$? |
ac1cb8d3 VS |
39896 | grep -v '^ *+' conftest.er1 >conftest.err |
39897 | rm -f conftest.er1 | |
39898 | cat conftest.err >&5 | |
a848cd7e SC |
39899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39900 | (exit $ac_status); } && | |
5d7b7554 | 39901 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39903 | (eval $ac_try) 2>&5 | |
39904 | ac_status=$? | |
39905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39906 | (exit $ac_status); }; } && | |
39907 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39909 | (eval $ac_try) 2>&5 | |
39910 | ac_status=$? | |
39911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39912 | (exit $ac_status); }; }; then | |
39913 | eval "$as_ac_var=yes" | |
39914 | else | |
39915 | echo "$as_me: failed program was:" >&5 | |
39916 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39917 | ||
39918 | eval "$as_ac_var=no" | |
39919 | fi | |
ac1cb8d3 VS |
39920 | rm -f conftest.err conftest.$ac_objext \ |
39921 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39922 | fi |
39923 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39924 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39925 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39926 | cat >>confdefs.h <<_ACEOF | |
39927 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39928 | _ACEOF | |
39929 | ||
39930 | cat >>confdefs.h <<\_ACEOF | |
39931 | #define HAVE_DLOPEN 1 | |
39932 | _ACEOF | |
39933 | ||
39934 | HAVE_DL_FUNCS=1 | |
39935 | ||
39936 | else | |
39937 | ||
39938 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
39939 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
39940 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
39941 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39942 | else | |
39943 | ac_check_lib_save_LIBS=$LIBS | |
39944 | LIBS="-ldl $LIBS" | |
39945 | cat >conftest.$ac_ext <<_ACEOF | |
39946 | /* confdefs.h. */ | |
39947 | _ACEOF | |
39948 | cat confdefs.h >>conftest.$ac_ext | |
39949 | cat >>conftest.$ac_ext <<_ACEOF | |
39950 | /* end confdefs.h. */ | |
39951 | ||
39952 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39953 | #ifdef __cplusplus | |
39954 | extern "C" | |
39955 | #endif | |
39956 | /* We use char because int might match the return type of a gcc2 | |
39957 | builtin and then its argument prototype would still apply. */ | |
39958 | char dlopen (); | |
39959 | int | |
39960 | main () | |
39961 | { | |
39962 | dlopen (); | |
39963 | ; | |
39964 | return 0; | |
39965 | } | |
39966 | _ACEOF | |
39967 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39968 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39969 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39970 | ac_status=$? |
ac1cb8d3 VS |
39971 | grep -v '^ *+' conftest.er1 >conftest.err |
39972 | rm -f conftest.er1 | |
39973 | cat conftest.err >&5 | |
a848cd7e SC |
39974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39975 | (exit $ac_status); } && | |
5d7b7554 | 39976 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
39977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39978 | (eval $ac_try) 2>&5 | |
39979 | ac_status=$? | |
39980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39981 | (exit $ac_status); }; } && | |
39982 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39984 | (eval $ac_try) 2>&5 | |
39985 | ac_status=$? | |
39986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39987 | (exit $ac_status); }; }; then | |
39988 | ac_cv_lib_dl_dlopen=yes | |
39989 | else | |
39990 | echo "$as_me: failed program was:" >&5 | |
39991 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39992 | ||
39993 | ac_cv_lib_dl_dlopen=no | |
39994 | fi | |
ac1cb8d3 VS |
39995 | rm -f conftest.err conftest.$ac_objext \ |
39996 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39997 | LIBS=$ac_check_lib_save_LIBS |
39998 | fi | |
39999 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
40000 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
40001 | if test $ac_cv_lib_dl_dlopen = yes; then | |
40002 | ||
40003 | cat >>confdefs.h <<\_ACEOF | |
40004 | #define HAVE_DLOPEN 1 | |
40005 | _ACEOF | |
40006 | ||
40007 | HAVE_DL_FUNCS=1 | |
40008 | DL_LINK=" -ldl$DL_LINK" | |
40009 | ||
40010 | else | |
40011 | ||
40012 | ||
40013 | for ac_func in shl_load | |
40014 | do | |
40015 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
40016 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
40017 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
40018 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
40019 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40020 | else | |
40021 | cat >conftest.$ac_ext <<_ACEOF | |
40022 | /* confdefs.h. */ | |
40023 | _ACEOF | |
40024 | cat confdefs.h >>conftest.$ac_ext | |
40025 | cat >>conftest.$ac_ext <<_ACEOF | |
40026 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
40027 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
40028 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40029 | #define $ac_func innocuous_$ac_func | |
40030 | ||
a848cd7e SC |
40031 | /* System header to define __stub macros and hopefully few prototypes, |
40032 | which can conflict with char $ac_func (); below. | |
40033 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40034 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 40035 | |
a848cd7e SC |
40036 | #ifdef __STDC__ |
40037 | # include <limits.h> | |
40038 | #else | |
40039 | # include <assert.h> | |
40040 | #endif | |
ac1cb8d3 VS |
40041 | |
40042 | #undef $ac_func | |
40043 | ||
a848cd7e SC |
40044 | /* Override any gcc2 internal prototype to avoid an error. */ |
40045 | #ifdef __cplusplus | |
40046 | extern "C" | |
40047 | { | |
40048 | #endif | |
40049 | /* We use char because int might match the return type of a gcc2 | |
40050 | builtin and then its argument prototype would still apply. */ | |
40051 | char $ac_func (); | |
40052 | /* The GNU C library defines this for functions which it implements | |
40053 | to always fail with ENOSYS. Some functions are actually named | |
40054 | something starting with __ and the normal name is an alias. */ | |
40055 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
40056 | choke me | |
40057 | #else | |
40058 | char (*f) () = $ac_func; | |
40059 | #endif | |
40060 | #ifdef __cplusplus | |
40061 | } | |
40062 | #endif | |
40063 | ||
40064 | int | |
40065 | main () | |
40066 | { | |
40067 | return f != $ac_func; | |
40068 | ; | |
40069 | return 0; | |
40070 | } | |
40071 | _ACEOF | |
40072 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40073 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40074 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40075 | ac_status=$? |
ac1cb8d3 VS |
40076 | grep -v '^ *+' conftest.er1 >conftest.err |
40077 | rm -f conftest.er1 | |
40078 | cat conftest.err >&5 | |
a848cd7e SC |
40079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40080 | (exit $ac_status); } && | |
5d7b7554 | 40081 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40083 | (eval $ac_try) 2>&5 | |
40084 | ac_status=$? | |
40085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40086 | (exit $ac_status); }; } && | |
40087 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40089 | (eval $ac_try) 2>&5 | |
40090 | ac_status=$? | |
40091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40092 | (exit $ac_status); }; }; then | |
40093 | eval "$as_ac_var=yes" | |
40094 | else | |
40095 | echo "$as_me: failed program was:" >&5 | |
40096 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40097 | ||
40098 | eval "$as_ac_var=no" | |
40099 | fi | |
ac1cb8d3 VS |
40100 | rm -f conftest.err conftest.$ac_objext \ |
40101 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40102 | fi |
40103 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
40104 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
40105 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
40106 | cat >>confdefs.h <<_ACEOF | |
40107 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
40108 | _ACEOF | |
40109 | ||
40110 | cat >>confdefs.h <<\_ACEOF | |
40111 | #define HAVE_SHL_LOAD 1 | |
40112 | _ACEOF | |
40113 | ||
40114 | HAVE_SHL_FUNCS=1 | |
40115 | ||
40116 | else | |
40117 | ||
40118 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
40119 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
40120 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
40121 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40122 | else | |
40123 | ac_check_lib_save_LIBS=$LIBS | |
40124 | LIBS="-lshl_load $LIBS" | |
40125 | cat >conftest.$ac_ext <<_ACEOF | |
40126 | /* confdefs.h. */ | |
40127 | _ACEOF | |
40128 | cat confdefs.h >>conftest.$ac_ext | |
40129 | cat >>conftest.$ac_ext <<_ACEOF | |
40130 | /* end confdefs.h. */ | |
40131 | ||
40132 | /* Override any gcc2 internal prototype to avoid an error. */ | |
40133 | #ifdef __cplusplus | |
40134 | extern "C" | |
40135 | #endif | |
40136 | /* We use char because int might match the return type of a gcc2 | |
40137 | builtin and then its argument prototype would still apply. */ | |
40138 | char dld (); | |
40139 | int | |
40140 | main () | |
40141 | { | |
40142 | dld (); | |
40143 | ; | |
40144 | return 0; | |
40145 | } | |
40146 | _ACEOF | |
40147 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40148 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40149 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40150 | ac_status=$? |
ac1cb8d3 VS |
40151 | grep -v '^ *+' conftest.er1 >conftest.err |
40152 | rm -f conftest.er1 | |
40153 | cat conftest.err >&5 | |
a848cd7e SC |
40154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40155 | (exit $ac_status); } && | |
5d7b7554 | 40156 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40158 | (eval $ac_try) 2>&5 | |
40159 | ac_status=$? | |
40160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40161 | (exit $ac_status); }; } && | |
40162 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40164 | (eval $ac_try) 2>&5 | |
40165 | ac_status=$? | |
40166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40167 | (exit $ac_status); }; }; then | |
40168 | ac_cv_lib_shl_load_dld=yes | |
40169 | else | |
40170 | echo "$as_me: failed program was:" >&5 | |
40171 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40172 | ||
40173 | ac_cv_lib_shl_load_dld=no | |
40174 | fi | |
ac1cb8d3 VS |
40175 | rm -f conftest.err conftest.$ac_objext \ |
40176 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40177 | LIBS=$ac_check_lib_save_LIBS |
40178 | fi | |
40179 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
40180 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
40181 | if test $ac_cv_lib_shl_load_dld = yes; then | |
40182 | ||
40183 | HAVE_SHL_FUNCS=1 | |
40184 | DL_LINK=" -ldld$DL_LINK" | |
40185 | ||
40186 | fi | |
40187 | ||
40188 | ||
40189 | fi | |
40190 | done | |
40191 | ||
40192 | ||
40193 | fi | |
40194 | ||
40195 | ||
40196 | fi | |
40197 | done | |
40198 | ||
40199 | ||
40200 | if test "$HAVE_DL_FUNCS" = 1; then | |
40201 | ||
40202 | for ac_func in dlerror | |
40203 | do | |
40204 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
40205 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
40206 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
40207 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
40208 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40209 | else | |
40210 | cat >conftest.$ac_ext <<_ACEOF | |
40211 | /* confdefs.h. */ | |
40212 | _ACEOF | |
40213 | cat confdefs.h >>conftest.$ac_ext | |
40214 | cat >>conftest.$ac_ext <<_ACEOF | |
40215 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
40216 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
40217 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40218 | #define $ac_func innocuous_$ac_func | |
40219 | ||
a848cd7e SC |
40220 | /* System header to define __stub macros and hopefully few prototypes, |
40221 | which can conflict with char $ac_func (); below. | |
40222 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40223 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 40224 | |
a848cd7e SC |
40225 | #ifdef __STDC__ |
40226 | # include <limits.h> | |
40227 | #else | |
40228 | # include <assert.h> | |
40229 | #endif | |
ac1cb8d3 VS |
40230 | |
40231 | #undef $ac_func | |
40232 | ||
a848cd7e SC |
40233 | /* Override any gcc2 internal prototype to avoid an error. */ |
40234 | #ifdef __cplusplus | |
40235 | extern "C" | |
40236 | { | |
40237 | #endif | |
40238 | /* We use char because int might match the return type of a gcc2 | |
40239 | builtin and then its argument prototype would still apply. */ | |
40240 | char $ac_func (); | |
40241 | /* The GNU C library defines this for functions which it implements | |
40242 | to always fail with ENOSYS. Some functions are actually named | |
40243 | something starting with __ and the normal name is an alias. */ | |
40244 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
40245 | choke me | |
40246 | #else | |
40247 | char (*f) () = $ac_func; | |
40248 | #endif | |
40249 | #ifdef __cplusplus | |
40250 | } | |
40251 | #endif | |
40252 | ||
40253 | int | |
40254 | main () | |
40255 | { | |
40256 | return f != $ac_func; | |
40257 | ; | |
40258 | return 0; | |
40259 | } | |
40260 | _ACEOF | |
40261 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40262 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40263 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40264 | ac_status=$? |
ac1cb8d3 VS |
40265 | grep -v '^ *+' conftest.er1 >conftest.err |
40266 | rm -f conftest.er1 | |
40267 | cat conftest.err >&5 | |
a848cd7e SC |
40268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40269 | (exit $ac_status); } && | |
5d7b7554 | 40270 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40272 | (eval $ac_try) 2>&5 | |
40273 | ac_status=$? | |
40274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40275 | (exit $ac_status); }; } && | |
40276 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40278 | (eval $ac_try) 2>&5 | |
40279 | ac_status=$? | |
40280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40281 | (exit $ac_status); }; }; then | |
40282 | eval "$as_ac_var=yes" | |
40283 | else | |
40284 | echo "$as_me: failed program was:" >&5 | |
40285 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40286 | ||
40287 | eval "$as_ac_var=no" | |
40288 | fi | |
ac1cb8d3 VS |
40289 | rm -f conftest.err conftest.$ac_objext \ |
40290 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40291 | fi |
40292 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
40293 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
40294 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
40295 | cat >>confdefs.h <<_ACEOF | |
40296 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
40297 | _ACEOF | |
40298 | cat >>confdefs.h <<\_ACEOF | |
40299 | #define HAVE_DLERROR 1 | |
40300 | _ACEOF | |
40301 | ||
40302 | else | |
40303 | ||
40304 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
40305 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
40306 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
40307 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40308 | else | |
40309 | ac_check_lib_save_LIBS=$LIBS | |
40310 | LIBS="-ldl $LIBS" | |
40311 | cat >conftest.$ac_ext <<_ACEOF | |
40312 | /* confdefs.h. */ | |
40313 | _ACEOF | |
40314 | cat confdefs.h >>conftest.$ac_ext | |
40315 | cat >>conftest.$ac_ext <<_ACEOF | |
40316 | /* end confdefs.h. */ | |
40317 | ||
40318 | /* Override any gcc2 internal prototype to avoid an error. */ | |
40319 | #ifdef __cplusplus | |
40320 | extern "C" | |
40321 | #endif | |
40322 | /* We use char because int might match the return type of a gcc2 | |
40323 | builtin and then its argument prototype would still apply. */ | |
40324 | char dlerror (); | |
40325 | int | |
40326 | main () | |
40327 | { | |
40328 | dlerror (); | |
40329 | ; | |
40330 | return 0; | |
40331 | } | |
40332 | _ACEOF | |
40333 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40334 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40335 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40336 | ac_status=$? |
ac1cb8d3 VS |
40337 | grep -v '^ *+' conftest.er1 >conftest.err |
40338 | rm -f conftest.er1 | |
40339 | cat conftest.err >&5 | |
a848cd7e SC |
40340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40341 | (exit $ac_status); } && | |
5d7b7554 | 40342 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40344 | (eval $ac_try) 2>&5 | |
40345 | ac_status=$? | |
40346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40347 | (exit $ac_status); }; } && | |
40348 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40350 | (eval $ac_try) 2>&5 | |
40351 | ac_status=$? | |
40352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40353 | (exit $ac_status); }; }; then | |
40354 | ac_cv_lib_dl_dlerror=yes | |
40355 | else | |
40356 | echo "$as_me: failed program was:" >&5 | |
40357 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40358 | ||
40359 | ac_cv_lib_dl_dlerror=no | |
40360 | fi | |
ac1cb8d3 VS |
40361 | rm -f conftest.err conftest.$ac_objext \ |
40362 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40363 | LIBS=$ac_check_lib_save_LIBS |
40364 | fi | |
40365 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
40366 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
40367 | if test $ac_cv_lib_dl_dlerror = yes; then | |
40368 | cat >>confdefs.h <<\_ACEOF | |
40369 | #define HAVE_DLERROR 1 | |
40370 | _ACEOF | |
40371 | ||
40372 | fi | |
40373 | ||
40374 | ||
40375 | ||
40376 | fi | |
40377 | done | |
40378 | ||
40379 | fi | |
40380 | fi | |
40381 | ||
40382 | if test "$HAVE_DL_FUNCS" = 0; then | |
40383 | if test "$HAVE_SHL_FUNCS" = 0; then | |
47a7e797 | 40384 | if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then |
a848cd7e SC |
40385 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 |
40386 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
40387 | wxUSE_DYNAMIC_LOADER=no | |
40388 | wxUSE_DYNLIB_CLASS=no | |
40389 | else | |
40390 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
40391 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
40392 | fi | |
40393 | fi | |
40394 | fi | |
40395 | fi | |
40396 | fi | |
40397 | ||
40398 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
40399 | cat >>confdefs.h <<\_ACEOF | |
40400 | #define wxUSE_DYNAMIC_LOADER 1 | |
40401 | _ACEOF | |
40402 | ||
40403 | fi | |
40404 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
40405 | cat >>confdefs.h <<\_ACEOF | |
40406 | #define wxUSE_DYNLIB_CLASS 1 | |
40407 | _ACEOF | |
40408 | ||
40409 | fi | |
40410 | ||
40411 | ||
40412 | ||
40413 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
40414 | if test "$wxUSE_SHARED" = "no" ; then | |
40415 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 | |
40416 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
40417 | wxUSE_PLUGINS=no | |
40418 | fi | |
40419 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
40420 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 | |
40421 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
40422 | wxUSE_PLUGINS=no | |
40423 | fi | |
40424 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
40425 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 | |
40426 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
40427 | wxUSE_PLUGINS=no | |
40428 | fi | |
40429 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
40430 | cat >>confdefs.h <<\_ACEOF | |
40431 | #define wxUSE_PLUGINS 1 | |
40432 | _ACEOF | |
40433 | ||
40434 | fi | |
40435 | fi | |
40436 | ||
40437 | ||
40438 | if test "$wxUSE_STL" = "yes"; then | |
40439 | cat >>confdefs.h <<\_ACEOF | |
40440 | #define wxUSE_STL 1 | |
40441 | _ACEOF | |
40442 | ||
40443 | fi | |
40444 | ||
40445 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
40446 | cat >>confdefs.h <<\_ACEOF | |
40447 | #define wxUSE_APPLE_IEEE 1 | |
40448 | _ACEOF | |
40449 | ||
40450 | fi | |
40451 | ||
40452 | if test "$wxUSE_TIMER" = "yes"; then | |
40453 | cat >>confdefs.h <<\_ACEOF | |
40454 | #define wxUSE_TIMER 1 | |
40455 | _ACEOF | |
40456 | ||
40457 | fi | |
40458 | ||
9c112555 | 40459 | if test "$USE_UNIX" = "1" ; then |
d12aef51 VZ |
40460 | echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5 |
40461 | echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6 | |
40462 | if test "${ac_cv_header_sys_soundcard+set}" = set; then | |
a848cd7e | 40463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 40464 | else |
d12aef51 VZ |
40465 | |
40466 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
40467 | /* confdefs.h. */ |
40468 | _ACEOF | |
40469 | cat confdefs.h >>conftest.$ac_ext | |
40470 | cat >>conftest.$ac_ext <<_ACEOF | |
40471 | /* end confdefs.h. */ | |
d12aef51 VZ |
40472 | |
40473 | #include <sys/soundcard.h> | |
40474 | ||
40475 | int | |
40476 | main () | |
40477 | { | |
40478 | ||
40479 | ioctl(0, SNDCTL_DSP_SYNC, 0); | |
40480 | ||
40481 | ; | |
40482 | return 0; | |
40483 | } | |
a848cd7e | 40484 | _ACEOF |
d12aef51 VZ |
40485 | rm -f conftest.$ac_objext conftest$ac_exeext |
40486 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
40487 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 40488 | ac_status=$? |
ac1cb8d3 VS |
40489 | grep -v '^ *+' conftest.er1 >conftest.err |
40490 | rm -f conftest.er1 | |
40491 | cat conftest.err >&5 | |
a848cd7e SC |
40492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40493 | (exit $ac_status); } && | |
5d7b7554 | 40494 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40496 | (eval $ac_try) 2>&5 | |
40497 | ac_status=$? | |
40498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40499 | (exit $ac_status); }; } && | |
d12aef51 | 40500 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
40501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40502 | (eval $ac_try) 2>&5 | |
40503 | ac_status=$? | |
40504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40505 | (exit $ac_status); }; }; then | |
d12aef51 | 40506 | ac_cv_header_sys_soundcard=yes |
a848cd7e SC |
40507 | else |
40508 | echo "$as_me: failed program was:" >&5 | |
40509 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40510 | ||
a848cd7e | 40511 | |
d12aef51 VZ |
40512 | saveLibs="$LIBS" |
40513 | LIBS="$saveLibs -lossaudio" | |
40514 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
40515 | /* confdefs.h. */ |
40516 | _ACEOF | |
40517 | cat confdefs.h >>conftest.$ac_ext | |
40518 | cat >>conftest.$ac_ext <<_ACEOF | |
40519 | /* end confdefs.h. */ | |
d12aef51 VZ |
40520 | |
40521 | #include <sys/soundcard.h> | |
40522 | ||
40523 | int | |
40524 | main () | |
40525 | { | |
40526 | ||
40527 | ioctl(0, SNDCTL_DSP_SYNC, 0); | |
40528 | ||
40529 | ; | |
40530 | return 0; | |
40531 | } | |
a848cd7e | 40532 | _ACEOF |
d12aef51 VZ |
40533 | rm -f conftest.$ac_objext conftest$ac_exeext |
40534 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
40535 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e SC |
40536 | ac_status=$? |
40537 | grep -v '^ *+' conftest.er1 >conftest.err | |
40538 | rm -f conftest.er1 | |
40539 | cat conftest.err >&5 | |
40540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d12aef51 | 40541 | (exit $ac_status); } && |
5d7b7554 | 40542 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
d12aef51 VZ |
40543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40544 | (eval $ac_try) 2>&5 | |
40545 | ac_status=$? | |
40546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40547 | (exit $ac_status); }; } && | |
40548 | { ac_try='test -s conftest$ac_exeext' | |
40549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40550 | (eval $ac_try) 2>&5 | |
40551 | ac_status=$? | |
40552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40553 | (exit $ac_status); }; }; then | |
40554 | ac_cv_header_sys_soundcard=yes | |
a848cd7e SC |
40555 | else |
40556 | echo "$as_me: failed program was:" >&5 | |
40557 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40558 | ||
a848cd7e | 40559 | |
d12aef51 VZ |
40560 | LIBS="$saveLibs" |
40561 | ac_cv_header_sys_soundcard=no | |
40562 | ||
40563 | ||
a848cd7e | 40564 | fi |
d12aef51 VZ |
40565 | rm -f conftest.err conftest.$ac_objext \ |
40566 | conftest$ac_exeext conftest.$ac_ext | |
40567 | ||
a848cd7e SC |
40568 | |
40569 | fi | |
d12aef51 VZ |
40570 | rm -f conftest.err conftest.$ac_objext \ |
40571 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40572 | |
40573 | fi | |
d12aef51 VZ |
40574 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5 |
40575 | echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6 | |
a848cd7e | 40576 | |
d12aef51 VZ |
40577 | if test "$ac_cv_header_sys_soundcard" = "yes"; then |
40578 | cat >>confdefs.h <<\_ACEOF | |
40579 | #define HAVE_SYS_SOUNDCARD_H 1 | |
40580 | _ACEOF | |
a848cd7e | 40581 | |
d12aef51 VZ |
40582 | else |
40583 | DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia" | |
40584 | fi | |
9c112555 MW |
40585 | fi |
40586 | WITH_PLUGIN_SDL=0 | |
40587 | if test "$wxUSE_SOUND" = "yes"; then | |
40588 | if test "$USE_UNIX" = "1" ; then | |
a848cd7e SC |
40589 | if test "$wxUSE_LIBSDL" != "no"; then |
40590 | ||
40591 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. | |
40592 | if test "${with_sdl_prefix+set}" = set; then | |
40593 | withval="$with_sdl_prefix" | |
40594 | sdl_prefix="$withval" | |
40595 | else | |
40596 | sdl_prefix="" | |
40597 | fi; | |
40598 | ||
40599 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. | |
40600 | if test "${with_sdl_exec_prefix+set}" = set; then | |
40601 | withval="$with_sdl_exec_prefix" | |
40602 | sdl_exec_prefix="$withval" | |
40603 | else | |
40604 | sdl_exec_prefix="" | |
40605 | fi; | |
40606 | # Check whether --enable-sdltest or --disable-sdltest was given. | |
40607 | if test "${enable_sdltest+set}" = set; then | |
40608 | enableval="$enable_sdltest" | |
40609 | ||
40610 | else | |
40611 | enable_sdltest=yes | |
40612 | fi; | |
40613 | ||
40614 | if test x$sdl_exec_prefix != x ; then | |
40615 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" | |
40616 | if test x${SDL_CONFIG+set} != xset ; then | |
40617 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
40618 | fi | |
40619 | fi | |
40620 | if test x$sdl_prefix != x ; then | |
40621 | sdl_args="$sdl_args --prefix=$sdl_prefix" | |
40622 | if test x${SDL_CONFIG+set} != xset ; then | |
40623 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
40624 | fi | |
40625 | fi | |
40626 | ||
40627 | ||
40628 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
40629 | # Extract the first word of "sdl-config", so it can be a program name with args. | |
40630 | set dummy sdl-config; ac_word=$2 | |
40631 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40632 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40633 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then | |
40634 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40635 | else | |
40636 | case $SDL_CONFIG in | |
40637 | [\\/]* | ?:[\\/]*) | |
40638 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
40639 | ;; | |
40640 | *) | |
40641 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40642 | for as_dir in $PATH | |
40643 | do | |
40644 | IFS=$as_save_IFS | |
40645 | test -z "$as_dir" && as_dir=. | |
40646 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40647 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40648 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
40649 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40650 | break 2 | |
40651 | fi | |
40652 | done | |
40653 | done | |
40654 | ||
40655 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
40656 | ;; | |
40657 | esac | |
40658 | fi | |
40659 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
40660 | ||
40661 | if test -n "$SDL_CONFIG"; then | |
40662 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 | |
40663 | echo "${ECHO_T}$SDL_CONFIG" >&6 | |
40664 | else | |
40665 | echo "$as_me:$LINENO: result: no" >&5 | |
40666 | echo "${ECHO_T}no" >&6 | |
40667 | fi | |
40668 | ||
40669 | min_sdl_version=1.2.0 | |
40670 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 | |
40671 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 | |
40672 | no_sdl="" | |
40673 | if test "$SDL_CONFIG" = "no" ; then | |
40674 | no_sdl=yes | |
40675 | else | |
40676 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
40677 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
40678 | ||
40679 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
40680 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
40681 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
40682 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
40683 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
40684 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
40685 | if test "x$enable_sdltest" = "xyes" ; then | |
40686 | ac_save_CFLAGS="$CFLAGS" | |
94acd38e | 40687 | ac_save_CXXFLAGS="$CXXFLAGS" |
a848cd7e SC |
40688 | ac_save_LIBS="$LIBS" |
40689 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 40690 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
40691 | LIBS="$LIBS $SDL_LIBS" |
40692 | rm -f conf.sdltest | |
40693 | if test "$cross_compiling" = yes; then | |
40694 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
40695 | else | |
40696 | cat >conftest.$ac_ext <<_ACEOF | |
40697 | /* confdefs.h. */ | |
40698 | _ACEOF | |
40699 | cat confdefs.h >>conftest.$ac_ext | |
40700 | cat >>conftest.$ac_ext <<_ACEOF | |
40701 | /* end confdefs.h. */ | |
40702 | ||
40703 | #include <stdio.h> | |
40704 | #include <stdlib.h> | |
40705 | #include <string.h> | |
40706 | #include "SDL.h" | |
40707 | ||
40708 | char* | |
40709 | my_strdup (char *str) | |
40710 | { | |
40711 | char *new_str; | |
40712 | ||
40713 | if (str) | |
40714 | { | |
40715 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
40716 | strcpy (new_str, str); | |
40717 | } | |
40718 | else | |
40719 | new_str = NULL; | |
40720 | ||
40721 | return new_str; | |
40722 | } | |
40723 | ||
40724 | int main (int argc, char *argv[]) | |
40725 | { | |
40726 | int major, minor, micro; | |
40727 | char *tmp_version; | |
40728 | ||
40729 | /* This hangs on some systems (?) | |
40730 | system ("touch conf.sdltest"); | |
40731 | */ | |
40732 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
40733 | ||
40734 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
40735 | tmp_version = my_strdup("$min_sdl_version"); | |
40736 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
40737 | printf("%s, bad version string\n", "$min_sdl_version"); | |
40738 | exit(1); | |
40739 | } | |
40740 | ||
40741 | if (($sdl_major_version > major) || | |
40742 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
40743 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
40744 | { | |
40745 | return 0; | |
40746 | } | |
40747 | else | |
40748 | { | |
40749 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
40750 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
40751 | printf("*** best to upgrade to the required version.\n"); | |
40752 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
40753 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
40754 | printf("*** config.cache before re-running configure\n"); | |
40755 | return 1; | |
40756 | } | |
40757 | } | |
40758 | ||
40759 | ||
40760 | _ACEOF | |
40761 | rm -f conftest$ac_exeext | |
40762 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
40763 | (eval $ac_link) 2>&5 | |
40764 | ac_status=$? | |
40765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40766 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
40767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40768 | (eval $ac_try) 2>&5 | |
40769 | ac_status=$? | |
40770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40771 | (exit $ac_status); }; }; then | |
40772 | : | |
40773 | else | |
40774 | echo "$as_me: program exited with status $ac_status" >&5 | |
40775 | echo "$as_me: failed program was:" >&5 | |
40776 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40777 | ||
40778 | ( exit $ac_status ) | |
40779 | no_sdl=yes | |
40780 | fi | |
ac1cb8d3 | 40781 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
40782 | fi |
40783 | CFLAGS="$ac_save_CFLAGS" | |
94acd38e | 40784 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
40785 | LIBS="$ac_save_LIBS" |
40786 | fi | |
40787 | fi | |
40788 | if test "x$no_sdl" = x ; then | |
40789 | echo "$as_me:$LINENO: result: yes" >&5 | |
40790 | echo "${ECHO_T}yes" >&6 | |
40791 | ||
40792 | EXTRALIBS_SDL="$SDL_LIBS" | |
c92ad099 | 40793 | CXXFLAGS="$SDL_CFLAGS $CXXFLAGS" |
a848cd7e SC |
40794 | cat >>confdefs.h <<\_ACEOF |
40795 | #define wxUSE_LIBSDL 1 | |
40796 | _ACEOF | |
40797 | ||
40798 | ||
40799 | else | |
40800 | echo "$as_me:$LINENO: result: no" >&5 | |
40801 | echo "${ECHO_T}no" >&6 | |
40802 | if test "$SDL_CONFIG" = "no" ; then | |
40803 | echo "*** The sdl-config script installed by SDL could not be found" | |
40804 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
40805 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
40806 | echo "*** full path to sdl-config." | |
40807 | else | |
40808 | if test -f conf.sdltest ; then | |
40809 | : | |
40810 | else | |
40811 | echo "*** Could not run SDL test program, checking why..." | |
40812 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 40813 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
40814 | LIBS="$LIBS $SDL_LIBS" |
40815 | cat >conftest.$ac_ext <<_ACEOF | |
40816 | /* confdefs.h. */ | |
40817 | _ACEOF | |
40818 | cat confdefs.h >>conftest.$ac_ext | |
40819 | cat >>conftest.$ac_ext <<_ACEOF | |
40820 | /* end confdefs.h. */ | |
40821 | ||
40822 | #include <stdio.h> | |
40823 | #include "SDL.h" | |
40824 | ||
40825 | int main(int argc, char *argv[]) | |
40826 | { return 0; } | |
40827 | #undef main | |
40828 | #define main K_and_R_C_main | |
40829 | ||
40830 | int | |
40831 | main () | |
40832 | { | |
40833 | return 0; | |
40834 | ; | |
40835 | return 0; | |
40836 | } | |
40837 | _ACEOF | |
40838 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40839 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40840 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40841 | ac_status=$? |
ac1cb8d3 VS |
40842 | grep -v '^ *+' conftest.er1 >conftest.err |
40843 | rm -f conftest.er1 | |
40844 | cat conftest.err >&5 | |
a848cd7e SC |
40845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40846 | (exit $ac_status); } && | |
5d7b7554 | 40847 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
40848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40849 | (eval $ac_try) 2>&5 | |
40850 | ac_status=$? | |
40851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40852 | (exit $ac_status); }; } && | |
40853 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40855 | (eval $ac_try) 2>&5 | |
40856 | ac_status=$? | |
40857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40858 | (exit $ac_status); }; }; then | |
40859 | echo "*** The test program compiled, but did not run. This usually means" | |
40860 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
40861 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
40862 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
40863 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
40864 | echo "*** is required on your system" | |
40865 | echo "***" | |
40866 | echo "*** If you have an old version installed, it is best to remove it, although" | |
40867 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
40868 | else | |
40869 | echo "$as_me: failed program was:" >&5 | |
40870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40871 | ||
40872 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
40873 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
40874 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
40875 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
40876 | fi | |
ac1cb8d3 VS |
40877 | rm -f conftest.err conftest.$ac_objext \ |
40878 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e | 40879 | CFLAGS="$ac_save_CFLAGS" |
94acd38e | 40880 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
40881 | LIBS="$ac_save_LIBS" |
40882 | fi | |
40883 | fi | |
40884 | SDL_CFLAGS="" | |
40885 | SDL_LIBS="" | |
40886 | wxUSE_LIBSDL="no" | |
40887 | fi | |
40888 | ||
40889 | ||
40890 | rm -f conf.sdltest | |
40891 | ||
40892 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
40893 | WITH_PLUGIN_SDL=1 | |
40894 | fi | |
40895 | fi | |
40896 | fi | |
40897 | ||
40898 | cat >>confdefs.h <<\_ACEOF | |
40899 | #define wxUSE_SOUND 1 | |
40900 | _ACEOF | |
40901 | ||
40902 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
40903 | fi | |
40904 | ||
d1c38808 VZ |
40905 | if test "$WXGTK20" = 1; then |
40906 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
40907 | if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then | |
40908 | ||
40909 | ||
40910 | succeeded=no | |
40911 | ||
40912 | if test -z "$PKG_CONFIG"; then | |
40913 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
40914 | set dummy pkg-config; ac_word=$2 | |
40915 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40916 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40917 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
40918 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40919 | else | |
40920 | case $PKG_CONFIG in | |
40921 | [\\/]* | ?:[\\/]*) | |
40922 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
40923 | ;; | |
40924 | *) | |
40925 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40926 | for as_dir in $PATH | |
40927 | do | |
40928 | IFS=$as_save_IFS | |
40929 | test -z "$as_dir" && as_dir=. | |
40930 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40931 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40932 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
40933 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40934 | break 2 | |
40935 | fi | |
40936 | done | |
40937 | done | |
40938 | ||
40939 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
40940 | ;; | |
40941 | esac | |
40942 | fi | |
40943 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
40944 | ||
40945 | if test -n "$PKG_CONFIG"; then | |
40946 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
40947 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
40948 | else | |
40949 | echo "$as_me:$LINENO: result: no" >&5 | |
40950 | echo "${ECHO_T}no" >&6 | |
40951 | fi | |
40952 | ||
40953 | fi | |
40954 | ||
40955 | if test "$PKG_CONFIG" = "no" ; then | |
40956 | echo "*** The pkg-config script could not be found. Make sure it is" | |
40957 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
40958 | echo "*** to the full path to pkg-config." | |
40959 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
40960 | else | |
40961 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
40962 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
ffa762ff VS |
40963 | echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5 |
40964 | echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6 | |
d1c38808 | 40965 | |
ffa762ff | 40966 | if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then |
d1c38808 VZ |
40967 | echo "$as_me:$LINENO: result: yes" >&5 |
40968 | echo "${ECHO_T}yes" >&6 | |
40969 | succeeded=yes | |
40970 | ||
40971 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5 | |
40972 | echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6 | |
ffa762ff | 40973 | LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
40974 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5 |
40975 | echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6 | |
40976 | ||
40977 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5 | |
40978 | echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6 | |
ffa762ff | 40979 | LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
40980 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5 |
40981 | echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6 | |
40982 | else | |
40983 | LIBGNOMEPRINTUI_CFLAGS="" | |
40984 | LIBGNOMEPRINTUI_LIBS="" | |
40985 | ## If we have a custom action on failure, don't print errors, but | |
40986 | ## do set a variable so people can do so. | |
ffa762ff | 40987 | LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
40988 | |
40989 | fi | |
40990 | ||
40991 | ||
40992 | ||
40993 | else | |
40994 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
40995 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
40996 | fi | |
40997 | fi | |
40998 | ||
40999 | if test $succeeded = yes; then | |
41000 | ||
c92ad099 | 41001 | CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS" |
d1c38808 VZ |
41002 | cat >>confdefs.h <<\_ACEOF |
41003 | #define wxUSE_LIBGNOMEPRINT 1 | |
41004 | _ACEOF | |
41005 | ||
41006 | ||
41007 | else | |
41008 | ||
41009 | { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5 | |
41010 | echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;} | |
41011 | wxUSE_LIBGNOMEPRINT="no" | |
41012 | ||
41013 | ||
41014 | fi | |
41015 | ||
41016 | fi | |
41017 | fi | |
41018 | fi | |
41019 | ||
2b850ae1 RR |
41020 | if test "$WXGTK20" = 1; then |
41021 | if test "$wxUSE_MIMETYPE" = "yes" ; then | |
41022 | if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then | |
41023 | ||
41024 | ||
41025 | succeeded=no | |
41026 | ||
41027 | if test -z "$PKG_CONFIG"; then | |
41028 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
41029 | set dummy pkg-config; ac_word=$2 | |
41030 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41031 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41032 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
41033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41034 | else | |
41035 | case $PKG_CONFIG in | |
41036 | [\\/]* | ?:[\\/]*) | |
41037 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
41038 | ;; | |
41039 | *) | |
41040 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41041 | for as_dir in $PATH | |
41042 | do | |
41043 | IFS=$as_save_IFS | |
41044 | test -z "$as_dir" && as_dir=. | |
41045 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41046 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41047 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
41048 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41049 | break 2 | |
41050 | fi | |
41051 | done | |
41052 | done | |
41053 | ||
41054 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
41055 | ;; | |
41056 | esac | |
41057 | fi | |
41058 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
41059 | ||
41060 | if test -n "$PKG_CONFIG"; then | |
41061 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
41062 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
41063 | else | |
41064 | echo "$as_me:$LINENO: result: no" >&5 | |
41065 | echo "${ECHO_T}no" >&6 | |
41066 | fi | |
41067 | ||
41068 | fi | |
41069 | ||
41070 | if test "$PKG_CONFIG" = "no" ; then | |
41071 | echo "*** The pkg-config script could not be found. Make sure it is" | |
41072 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
41073 | echo "*** to the full path to pkg-config." | |
41074 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
41075 | else | |
41076 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
41077 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
41078 | echo "$as_me:$LINENO: checking for gnome-vfs-2.0 >= 2.0" >&5 | |
41079 | echo $ECHO_N "checking for gnome-vfs-2.0 >= 2.0... $ECHO_C" >&6 | |
41080 | ||
41081 | if $PKG_CONFIG --exists "gnome-vfs-2.0 >= 2.0" ; then | |
41082 | echo "$as_me:$LINENO: result: yes" >&5 | |
41083 | echo "${ECHO_T}yes" >&6 | |
41084 | succeeded=yes | |
41085 | ||
41086 | echo "$as_me:$LINENO: checking GNOMEVFS_CFLAGS" >&5 | |
41087 | echo $ECHO_N "checking GNOMEVFS_CFLAGS... $ECHO_C" >&6 | |
41088 | GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0"` | |
41089 | echo "$as_me:$LINENO: result: $GNOMEVFS_CFLAGS" >&5 | |
41090 | echo "${ECHO_T}$GNOMEVFS_CFLAGS" >&6 | |
41091 | ||
41092 | echo "$as_me:$LINENO: checking GNOMEVFS_LIBS" >&5 | |
41093 | echo $ECHO_N "checking GNOMEVFS_LIBS... $ECHO_C" >&6 | |
41094 | GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0"` | |
41095 | echo "$as_me:$LINENO: result: $GNOMEVFS_LIBS" >&5 | |
41096 | echo "${ECHO_T}$GNOMEVFS_LIBS" >&6 | |
41097 | else | |
41098 | GNOMEVFS_CFLAGS="" | |
41099 | GNOMEVFS_LIBS="" | |
41100 | ## If we have a custom action on failure, don't print errors, but | |
41101 | ## do set a variable so people can do so. | |
41102 | GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"` | |
41103 | ||
41104 | fi | |
41105 | ||
41106 | ||
41107 | ||
41108 | else | |
41109 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
41110 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
41111 | fi | |
41112 | fi | |
41113 | ||
41114 | if test $succeeded = yes; then | |
41115 | ||
41116 | CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS" | |
41117 | cat >>confdefs.h <<\_ACEOF | |
41118 | #define wxUSE_LIBGNOMEVFS 1 | |
41119 | _ACEOF | |
41120 | ||
41121 | ||
41122 | else | |
41123 | ||
41124 | { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5 | |
41125 | echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;} | |
41126 | wxUSE_LIBGNOMEVFS="no" | |
41127 | ||
41128 | ||
41129 | fi | |
41130 | ||
41131 | fi | |
41132 | fi | |
41133 | fi | |
41134 | ||
3565d135 RR |
41135 | if test "$WXGTK20" = 1; then |
41136 | if test "$wxUSE_LIBHILDON" = "yes" ; then | |
41137 | ||
41138 | succeeded=no | |
41139 | ||
41140 | if test -z "$PKG_CONFIG"; then | |
41141 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
41142 | set dummy pkg-config; ac_word=$2 | |
41143 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41144 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41145 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
41146 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41147 | else | |
41148 | case $PKG_CONFIG in | |
41149 | [\\/]* | ?:[\\/]*) | |
41150 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
41151 | ;; | |
41152 | *) | |
41153 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41154 | for as_dir in $PATH | |
41155 | do | |
41156 | IFS=$as_save_IFS | |
41157 | test -z "$as_dir" && as_dir=. | |
41158 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41159 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41160 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
41161 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41162 | break 2 | |
41163 | fi | |
41164 | done | |
41165 | done | |
41166 | ||
41167 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
41168 | ;; | |
41169 | esac | |
41170 | fi | |
41171 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
41172 | ||
41173 | if test -n "$PKG_CONFIG"; then | |
41174 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
41175 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
41176 | else | |
41177 | echo "$as_me:$LINENO: result: no" >&5 | |
41178 | echo "${ECHO_T}no" >&6 | |
41179 | fi | |
41180 | ||
41181 | fi | |
41182 | ||
41183 | if test "$PKG_CONFIG" = "no" ; then | |
41184 | echo "*** The pkg-config script could not be found. Make sure it is" | |
41185 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
41186 | echo "*** to the full path to pkg-config." | |
41187 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
41188 | else | |
41189 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
41190 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
41191 | echo "$as_me:$LINENO: checking for hildon-lgpl >= 0.9" >&5 | |
41192 | echo $ECHO_N "checking for hildon-lgpl >= 0.9... $ECHO_C" >&6 | |
41193 | ||
41194 | if $PKG_CONFIG --exists "hildon-lgpl >= 0.9" ; then | |
41195 | echo "$as_me:$LINENO: result: yes" >&5 | |
41196 | echo "${ECHO_T}yes" >&6 | |
41197 | succeeded=yes | |
41198 | ||
41199 | echo "$as_me:$LINENO: checking HILDON_CFLAGS" >&5 | |
41200 | echo $ECHO_N "checking HILDON_CFLAGS... $ECHO_C" >&6 | |
41201 | HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9"` | |
41202 | echo "$as_me:$LINENO: result: $HILDON_CFLAGS" >&5 | |
41203 | echo "${ECHO_T}$HILDON_CFLAGS" >&6 | |
41204 | ||
41205 | echo "$as_me:$LINENO: checking HILDON_LIBS" >&5 | |
41206 | echo $ECHO_N "checking HILDON_LIBS... $ECHO_C" >&6 | |
41207 | HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9"` | |
41208 | echo "$as_me:$LINENO: result: $HILDON_LIBS" >&5 | |
41209 | echo "${ECHO_T}$HILDON_LIBS" >&6 | |
41210 | else | |
41211 | HILDON_CFLAGS="" | |
41212 | HILDON_LIBS="" | |
41213 | ## If we have a custom action on failure, don't print errors, but | |
41214 | ## do set a variable so people can do so. | |
41215 | HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"` | |
41216 | ||
41217 | fi | |
41218 | ||
41219 | ||
41220 | ||
41221 | else | |
41222 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
41223 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
41224 | fi | |
41225 | fi | |
41226 | ||
41227 | if test $succeeded = yes; then | |
41228 | ||
41229 | EXTRALIBS_HILDON="$HILDON_LIBS" | |
41230 | CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS" | |
41231 | cat >>confdefs.h <<\_ACEOF | |
41232 | #define wxUSE_LIBHILDON 1 | |
41233 | _ACEOF | |
41234 | ||
41235 | ||
41236 | else | |
41237 | ||
41238 | { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5 | |
41239 | echo "$as_me: WARNING: libhildon_lgpl not found" >&2;} | |
41240 | wxUSE_LIBHILDON="no" | |
41241 | ||
41242 | ||
41243 | fi | |
41244 | ||
41245 | fi | |
41246 | fi | |
d1c38808 | 41247 | |
a848cd7e SC |
41248 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
41249 | cat >>confdefs.h <<\_ACEOF | |
41250 | #define wxUSE_CMDLINE_PARSER 1 | |
41251 | _ACEOF | |
41252 | ||
41253 | fi | |
41254 | ||
41255 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
41256 | cat >>confdefs.h <<\_ACEOF | |
41257 | #define wxUSE_STOPWATCH 1 | |
41258 | _ACEOF | |
41259 | ||
41260 | fi | |
41261 | ||
41262 | if test "$wxUSE_DATETIME" = "yes"; then | |
41263 | cat >>confdefs.h <<\_ACEOF | |
41264 | #define wxUSE_DATETIME 1 | |
41265 | _ACEOF | |
41266 | ||
41267 | fi | |
41268 | ||
41269 | if test "$wxUSE_FILE" = "yes"; then | |
41270 | cat >>confdefs.h <<\_ACEOF | |
41271 | #define wxUSE_FILE 1 | |
41272 | _ACEOF | |
41273 | ||
41274 | fi | |
41275 | ||
41276 | if test "$wxUSE_FFILE" = "yes"; then | |
41277 | cat >>confdefs.h <<\_ACEOF | |
41278 | #define wxUSE_FFILE 1 | |
41279 | _ACEOF | |
41280 | ||
41281 | fi | |
41282 | ||
41283 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
41284 | cat >>confdefs.h <<\_ACEOF | |
41285 | #define wxUSE_FILESYSTEM 1 | |
41286 | _ACEOF | |
41287 | ||
41288 | fi | |
41289 | ||
41290 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
41291 | cat >>confdefs.h <<\_ACEOF | |
41292 | #define wxUSE_FS_ZIP 1 | |
41293 | _ACEOF | |
41294 | ||
41295 | fi | |
41296 | ||
9e8e867f | 41297 | if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then |
a848cd7e | 41298 | cat >>confdefs.h <<\_ACEOF |
9e8e867f | 41299 | #define wxUSE_ARCHIVE_STREAMS 1 |
81f90336 MW |
41300 | _ACEOF |
41301 | ||
41302 | fi | |
41303 | ||
41304 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
9e8e867f | 41305 | if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then |
81f90336 MW |
41306 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5 |
41307 | echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;} | |
41308 | elif test "$wxUSE_ZLIB" = "no"; then | |
41309 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5 | |
41310 | echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;} | |
41311 | else | |
41312 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
41313 | #define wxUSE_ZIPSTREAM 1 |
41314 | _ACEOF | |
41315 | ||
81f90336 | 41316 | fi |
a848cd7e SC |
41317 | fi |
41318 | ||
a848cd7e | 41319 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
18228ab4 MW |
41320 | if test "$USE_UNIX" != 1; then |
41321 | { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5 | |
41322 | echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;} | |
41323 | wxUSE_ON_FATAL_EXCEPTION=no | |
41324 | else | |
41325 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
41326 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
41327 | _ACEOF | |
41328 | ||
18228ab4 | 41329 | fi |
a848cd7e SC |
41330 | fi |
41331 | ||
eaff0f0d VZ |
41332 | if test "$wxUSE_STACKWALKER" = "yes"; then |
41333 | cat >>confdefs.h <<\_ACEOF | |
41334 | #define wxUSE_STACKWALKER 1 | |
41335 | _ACEOF | |
41336 | ||
41337 | fi | |
41338 | ||
36b6448c | 41339 | if test "$wxUSE_DEBUGREPORT" = "yes"; then |
18228ab4 MW |
41340 | if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then |
41341 | { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5 | |
41342 | echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;} | |
dfe0c803 JS |
41343 | wxUSE_DEBUGREPORT=no |
41344 | else | |
41345 | cat >>confdefs.h <<\_ACEOF | |
36b6448c VZ |
41346 | #define wxUSE_DEBUGREPORT 1 |
41347 | _ACEOF | |
41348 | ||
21dfc162 MW |
41349 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
41350 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt" | |
41351 | fi | |
dfe0c803 | 41352 | fi |
36b6448c VZ |
41353 | fi |
41354 | ||
a848cd7e SC |
41355 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
41356 | cat >>confdefs.h <<\_ACEOF | |
41357 | #define wxUSE_SNGLINST_CHECKER 1 | |
41358 | _ACEOF | |
41359 | ||
41360 | fi | |
41361 | ||
41362 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
41363 | cat >>confdefs.h <<\_ACEOF | |
41364 | #define wxUSE_BUSYINFO 1 | |
41365 | _ACEOF | |
41366 | ||
41367 | fi | |
41368 | ||
41369 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
41370 | cat >>confdefs.h <<\_ACEOF | |
41371 | #define wxUSE_STD_IOSTREAM 1 | |
41372 | _ACEOF | |
41373 | ||
41374 | fi | |
41375 | ||
59746b65 MW |
41376 | if test "$wxUSE_STD_STRING" = "yes"; then |
41377 | cat >>confdefs.h <<\_ACEOF | |
41378 | #define wxUSE_STD_STRING 1 | |
41379 | _ACEOF | |
41380 | ||
41381 | fi | |
41382 | ||
07158944 VZ |
41383 | if test "$wxUSE_STDPATHS" = "yes"; then |
41384 | cat >>confdefs.h <<\_ACEOF | |
41385 | #define wxUSE_STDPATHS 1 | |
41386 | _ACEOF | |
41387 | ||
41388 | fi | |
41389 | ||
a848cd7e SC |
41390 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
41391 | cat >>confdefs.h <<\_ACEOF | |
41392 | #define wxUSE_TEXTBUFFER 1 | |
41393 | _ACEOF | |
41394 | ||
41395 | fi | |
41396 | ||
41397 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
41398 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
41399 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
41400 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
41401 | else | |
41402 | cat >>confdefs.h <<\_ACEOF | |
41403 | #define wxUSE_TEXTFILE 1 | |
41404 | _ACEOF | |
41405 | ||
41406 | fi | |
41407 | fi | |
41408 | ||
41409 | if test "$wxUSE_CONFIG" = "yes" ; then | |
41410 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
41411 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
41412 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
41413 | else | |
41414 | cat >>confdefs.h <<\_ACEOF | |
41415 | #define wxUSE_CONFIG 1 | |
89be85c2 VS |
41416 | _ACEOF |
41417 | ||
41418 | cat >>confdefs.h <<\_ACEOF | |
41419 | #define wxUSE_CONFIG_NATIVE 1 | |
a848cd7e SC |
41420 | _ACEOF |
41421 | ||
41422 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
41423 | fi | |
41424 | fi | |
41425 | ||
41426 | if test "$wxUSE_INTL" = "yes" ; then | |
41427 | if test "$wxUSE_FILE" != "yes"; then | |
41428 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
41429 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
41430 | else | |
41431 | cat >>confdefs.h <<\_ACEOF | |
41432 | #define wxUSE_INTL 1 | |
41433 | _ACEOF | |
41434 | ||
41435 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
41436 | GUIDIST="$GUIDIST INTL_DIST" | |
41437 | fi | |
41438 | fi | |
41439 | ||
41440 | if test "$wxUSE_LOG" = "yes"; then | |
41441 | cat >>confdefs.h <<\_ACEOF | |
41442 | #define wxUSE_LOG 1 | |
41443 | _ACEOF | |
41444 | ||
41445 | ||
41446 | if test "$wxUSE_LOGGUI" = "yes"; then | |
41447 | cat >>confdefs.h <<\_ACEOF | |
41448 | #define wxUSE_LOGGUI 1 | |
41449 | _ACEOF | |
41450 | ||
41451 | fi | |
41452 | ||
41453 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
41454 | cat >>confdefs.h <<\_ACEOF | |
41455 | #define wxUSE_LOGWINDOW 1 | |
41456 | _ACEOF | |
41457 | ||
41458 | fi | |
41459 | ||
41460 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
41461 | cat >>confdefs.h <<\_ACEOF | |
41462 | #define wxUSE_LOG_DIALOG 1 | |
41463 | _ACEOF | |
41464 | ||
41465 | fi | |
0b78747f MW |
41466 | |
41467 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard" | |
a848cd7e SC |
41468 | fi |
41469 | ||
41470 | if test "$wxUSE_LONGLONG" = "yes"; then | |
41471 | cat >>confdefs.h <<\_ACEOF | |
41472 | #define wxUSE_LONGLONG 1 | |
41473 | _ACEOF | |
41474 | ||
41475 | fi | |
41476 | ||
41477 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
41478 | cat >>confdefs.h <<\_ACEOF | |
41479 | #define wxUSE_GEOMETRY 1 | |
41480 | _ACEOF | |
41481 | ||
41482 | fi | |
41483 | ||
a848cd7e SC |
41484 | if test "$wxUSE_STREAMS" = "yes" ; then |
41485 | cat >>confdefs.h <<\_ACEOF | |
41486 | #define wxUSE_STREAMS 1 | |
41487 | _ACEOF | |
41488 | ||
41489 | fi | |
41490 | ||
41491 | ||
41492 | if test "$wxUSE_DATETIME" = "yes"; then | |
41493 | ||
41494 | for ac_func in strptime | |
41495 | do | |
41496 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
41497 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
41498 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
41499 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
41500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41501 | else | |
41502 | cat >conftest.$ac_ext <<_ACEOF | |
41503 | /* confdefs.h. */ | |
41504 | _ACEOF | |
41505 | cat confdefs.h >>conftest.$ac_ext | |
41506 | cat >>conftest.$ac_ext <<_ACEOF | |
41507 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
41508 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
41509 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
41510 | #define $ac_func innocuous_$ac_func | |
41511 | ||
a848cd7e SC |
41512 | /* System header to define __stub macros and hopefully few prototypes, |
41513 | which can conflict with char $ac_func (); below. | |
41514 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
41515 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 41516 | |
a848cd7e SC |
41517 | #ifdef __STDC__ |
41518 | # include <limits.h> | |
41519 | #else | |
41520 | # include <assert.h> | |
41521 | #endif | |
ac1cb8d3 VS |
41522 | |
41523 | #undef $ac_func | |
41524 | ||
a848cd7e SC |
41525 | /* Override any gcc2 internal prototype to avoid an error. */ |
41526 | #ifdef __cplusplus | |
41527 | extern "C" | |
41528 | { | |
41529 | #endif | |
41530 | /* We use char because int might match the return type of a gcc2 | |
41531 | builtin and then its argument prototype would still apply. */ | |
41532 | char $ac_func (); | |
41533 | /* The GNU C library defines this for functions which it implements | |
41534 | to always fail with ENOSYS. Some functions are actually named | |
41535 | something starting with __ and the normal name is an alias. */ | |
41536 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
41537 | choke me | |
41538 | #else | |
41539 | char (*f) () = $ac_func; | |
41540 | #endif | |
41541 | #ifdef __cplusplus | |
41542 | } | |
41543 | #endif | |
41544 | ||
41545 | int | |
41546 | main () | |
41547 | { | |
41548 | return f != $ac_func; | |
41549 | ; | |
41550 | return 0; | |
41551 | } | |
41552 | _ACEOF | |
41553 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41554 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 41555 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 41556 | ac_status=$? |
ac1cb8d3 VS |
41557 | grep -v '^ *+' conftest.er1 >conftest.err |
41558 | rm -f conftest.er1 | |
41559 | cat conftest.err >&5 | |
a848cd7e SC |
41560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41561 | (exit $ac_status); } && | |
5d7b7554 | 41562 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41564 | (eval $ac_try) 2>&5 | |
41565 | ac_status=$? | |
41566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41567 | (exit $ac_status); }; } && | |
41568 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
41569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41570 | (eval $ac_try) 2>&5 | |
41571 | ac_status=$? | |
41572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41573 | (exit $ac_status); }; }; then | |
41574 | eval "$as_ac_var=yes" | |
41575 | else | |
41576 | echo "$as_me: failed program was:" >&5 | |
41577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41578 | ||
41579 | eval "$as_ac_var=no" | |
41580 | fi | |
ac1cb8d3 VS |
41581 | rm -f conftest.err conftest.$ac_objext \ |
41582 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
41583 | fi |
41584 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
41585 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
41586 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
41587 | cat >>confdefs.h <<_ACEOF | |
41588 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
41589 | _ACEOF | |
41590 | ||
41591 | fi | |
41592 | done | |
41593 | ||
f536f005 VZ |
41594 | if test "$ac_cv_func_strptime" = "yes"; then |
41595 | echo "$as_me:$LINENO: checking for strptime declaration" >&5 | |
41596 | echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6 | |
41597 | if test "${wx_cv_func_strptime_decl+set}" = set; then | |
41598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41599 | else | |
41600 | ||
f536f005 VZ |
41601 | cat >conftest.$ac_ext <<_ACEOF |
41602 | /* confdefs.h. */ | |
41603 | _ACEOF | |
41604 | cat confdefs.h >>conftest.$ac_ext | |
41605 | cat >>conftest.$ac_ext <<_ACEOF | |
41606 | /* end confdefs.h. */ | |
41607 | ||
41608 | #include <time.h> | |
41609 | ||
41610 | int | |
41611 | main () | |
41612 | { | |
41613 | ||
41614 | struct tm t; | |
41615 | strptime("foo", "bar", &t); | |
41616 | ||
41617 | ; | |
41618 | return 0; | |
41619 | } | |
41620 | _ACEOF | |
41621 | rm -f conftest.$ac_objext | |
41622 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
41623 | (eval $ac_compile) 2>conftest.er1 | |
41624 | ac_status=$? | |
41625 | grep -v '^ *+' conftest.er1 >conftest.err | |
41626 | rm -f conftest.er1 | |
41627 | cat conftest.err >&5 | |
41628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41629 | (exit $ac_status); } && | |
5d7b7554 | 41630 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
f536f005 VZ |
41631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41632 | (eval $ac_try) 2>&5 | |
41633 | ac_status=$? | |
41634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41635 | (exit $ac_status); }; } && | |
41636 | { ac_try='test -s conftest.$ac_objext' | |
41637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
41638 | (eval $ac_try) 2>&5 | |
41639 | ac_status=$? | |
41640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41641 | (exit $ac_status); }; }; then | |
41642 | wx_cv_func_strptime_decl=yes | |
41643 | else | |
41644 | echo "$as_me: failed program was:" >&5 | |
41645 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41646 | ||
41647 | wx_cv_func_strptime_decl=no | |
41648 | ||
41649 | fi | |
41650 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
f536f005 VZ |
41651 | |
41652 | ||
41653 | fi | |
41654 | echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5 | |
41655 | echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6 | |
41656 | fi | |
41657 | if test "$wx_cv_func_strptime_decl" = "yes"; then | |
41658 | cat >>confdefs.h <<\_ACEOF | |
41659 | #define HAVE_STRPTIME_DECL 1 | |
41660 | _ACEOF | |
41661 | ||
41662 | fi | |
a848cd7e SC |
41663 | |
41664 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
41665 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
41666 | if test "${wx_cv_var_timezone+set}" = set; then | |
41667 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41668 | else | |
41669 | ||
41670 | cat >conftest.$ac_ext <<_ACEOF | |
41671 | /* confdefs.h. */ | |
41672 | _ACEOF | |
41673 | cat confdefs.h >>conftest.$ac_ext | |
41674 | cat >>conftest.$ac_ext <<_ACEOF | |
41675 | /* end confdefs.h. */ | |
41676 | ||
41677 | #include <time.h> | |
41678 | ||
41679 | int | |
41680 | main () | |
41681 | { | |
41682 | ||
41683 | int tz; | |
41684 | tz = timezone; | |
41685 | ||
41686 | ; | |
41687 | return 0; | |
41688 | } | |
41689 | _ACEOF | |
41690 | rm -f conftest.$ac_objext | |
41691 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41692 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41693 | ac_status=$? |
ac1cb8d3 VS |
41694 | grep -v '^ *+' conftest.er1 >conftest.err |
41695 | rm -f conftest.er1 | |
41696 | cat conftest.err >&5 | |
a848cd7e SC |
41697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41698 | (exit $ac_status); } && | |
5d7b7554 | 41699 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41701 | (eval $ac_try) 2>&5 | |
41702 | ac_status=$? | |
41703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41704 | (exit $ac_status); }; } && | |
41705 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41707 | (eval $ac_try) 2>&5 | |
41708 | ac_status=$? | |
41709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41710 | (exit $ac_status); }; }; then | |
41711 | ||
41712 | wx_cv_var_timezone=timezone | |
41713 | ||
41714 | else | |
41715 | echo "$as_me: failed program was:" >&5 | |
41716 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41717 | ||
41718 | ||
41719 | cat >conftest.$ac_ext <<_ACEOF | |
41720 | /* confdefs.h. */ | |
41721 | _ACEOF | |
41722 | cat confdefs.h >>conftest.$ac_ext | |
41723 | cat >>conftest.$ac_ext <<_ACEOF | |
41724 | /* end confdefs.h. */ | |
41725 | ||
41726 | #include <time.h> | |
41727 | ||
41728 | int | |
41729 | main () | |
41730 | { | |
41731 | ||
41732 | int tz; | |
41733 | tz = _timezone; | |
41734 | ||
41735 | ; | |
41736 | return 0; | |
41737 | } | |
41738 | _ACEOF | |
41739 | rm -f conftest.$ac_objext | |
41740 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41741 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41742 | ac_status=$? |
ac1cb8d3 VS |
41743 | grep -v '^ *+' conftest.er1 >conftest.err |
41744 | rm -f conftest.er1 | |
41745 | cat conftest.err >&5 | |
a848cd7e SC |
41746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41747 | (exit $ac_status); } && | |
5d7b7554 | 41748 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41750 | (eval $ac_try) 2>&5 | |
41751 | ac_status=$? | |
41752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41753 | (exit $ac_status); }; } && | |
41754 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41756 | (eval $ac_try) 2>&5 | |
41757 | ac_status=$? | |
41758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41759 | (exit $ac_status); }; }; then | |
41760 | ||
41761 | wx_cv_var_timezone=_timezone | |
41762 | ||
41763 | else | |
41764 | echo "$as_me: failed program was:" >&5 | |
41765 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41766 | ||
41767 | ||
41768 | cat >conftest.$ac_ext <<_ACEOF | |
41769 | /* confdefs.h. */ | |
41770 | _ACEOF | |
41771 | cat confdefs.h >>conftest.$ac_ext | |
41772 | cat >>conftest.$ac_ext <<_ACEOF | |
41773 | /* end confdefs.h. */ | |
41774 | ||
41775 | #include <time.h> | |
41776 | ||
41777 | int | |
41778 | main () | |
41779 | { | |
41780 | ||
41781 | int tz; | |
41782 | tz = __timezone; | |
41783 | ||
41784 | ; | |
41785 | return 0; | |
41786 | } | |
41787 | _ACEOF | |
41788 | rm -f conftest.$ac_objext | |
41789 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41790 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41791 | ac_status=$? |
ac1cb8d3 VS |
41792 | grep -v '^ *+' conftest.er1 >conftest.err |
41793 | rm -f conftest.er1 | |
41794 | cat conftest.err >&5 | |
a848cd7e SC |
41795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41796 | (exit $ac_status); } && | |
5d7b7554 | 41797 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41799 | (eval $ac_try) 2>&5 | |
41800 | ac_status=$? | |
41801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41802 | (exit $ac_status); }; } && | |
41803 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41805 | (eval $ac_try) 2>&5 | |
41806 | ac_status=$? | |
41807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41808 | (exit $ac_status); }; }; then | |
41809 | ||
41810 | wx_cv_var_timezone=__timezone | |
41811 | ||
41812 | else | |
41813 | echo "$as_me: failed program was:" >&5 | |
41814 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41815 | ||
41816 | ||
41817 | if test "$USE_DOS" = 0 ; then | |
41818 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
41819 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
41820 | fi | |
41821 | ||
41822 | ||
41823 | fi | |
ac1cb8d3 | 41824 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41825 | |
41826 | ||
41827 | fi | |
ac1cb8d3 | 41828 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41829 | |
41830 | ||
41831 | fi | |
ac1cb8d3 | 41832 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41833 | |
41834 | ||
41835 | fi | |
41836 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
41837 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
41838 | ||
41839 | if test "x$wx_cv_var_timezone" != x ; then | |
41840 | cat >>confdefs.h <<_ACEOF | |
41841 | #define WX_TIMEZONE $wx_cv_var_timezone | |
41842 | _ACEOF | |
41843 | ||
41844 | fi | |
41845 | ||
41846 | ||
41847 | for ac_func in localtime | |
41848 | do | |
41849 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
41850 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
41851 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
41852 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
41853 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41854 | else | |
41855 | cat >conftest.$ac_ext <<_ACEOF | |
41856 | /* confdefs.h. */ | |
41857 | _ACEOF | |
41858 | cat confdefs.h >>conftest.$ac_ext | |
41859 | cat >>conftest.$ac_ext <<_ACEOF | |
41860 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
41861 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
41862 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
41863 | #define $ac_func innocuous_$ac_func | |
41864 | ||
a848cd7e SC |
41865 | /* System header to define __stub macros and hopefully few prototypes, |
41866 | which can conflict with char $ac_func (); below. | |
41867 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
41868 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 41869 | |
a848cd7e SC |
41870 | #ifdef __STDC__ |
41871 | # include <limits.h> | |
41872 | #else | |
41873 | # include <assert.h> | |
41874 | #endif | |
ac1cb8d3 VS |
41875 | |
41876 | #undef $ac_func | |
41877 | ||
a848cd7e SC |
41878 | /* Override any gcc2 internal prototype to avoid an error. */ |
41879 | #ifdef __cplusplus | |
41880 | extern "C" | |
41881 | { | |
41882 | #endif | |
41883 | /* We use char because int might match the return type of a gcc2 | |
41884 | builtin and then its argument prototype would still apply. */ | |
41885 | char $ac_func (); | |
41886 | /* The GNU C library defines this for functions which it implements | |
41887 | to always fail with ENOSYS. Some functions are actually named | |
41888 | something starting with __ and the normal name is an alias. */ | |
41889 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
41890 | choke me | |
41891 | #else | |
41892 | char (*f) () = $ac_func; | |
41893 | #endif | |
41894 | #ifdef __cplusplus | |
41895 | } | |
41896 | #endif | |
41897 | ||
41898 | int | |
41899 | main () | |
41900 | { | |
41901 | return f != $ac_func; | |
41902 | ; | |
41903 | return 0; | |
41904 | } | |
41905 | _ACEOF | |
41906 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41907 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 41908 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 41909 | ac_status=$? |
ac1cb8d3 VS |
41910 | grep -v '^ *+' conftest.er1 >conftest.err |
41911 | rm -f conftest.er1 | |
41912 | cat conftest.err >&5 | |
a848cd7e SC |
41913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41914 | (exit $ac_status); } && | |
5d7b7554 | 41915 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41917 | (eval $ac_try) 2>&5 | |
41918 | ac_status=$? | |
41919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41920 | (exit $ac_status); }; } && | |
41921 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
41922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41923 | (eval $ac_try) 2>&5 | |
41924 | ac_status=$? | |
41925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41926 | (exit $ac_status); }; }; then | |
41927 | eval "$as_ac_var=yes" | |
41928 | else | |
41929 | echo "$as_me: failed program was:" >&5 | |
41930 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41931 | ||
41932 | eval "$as_ac_var=no" | |
41933 | fi | |
ac1cb8d3 VS |
41934 | rm -f conftest.err conftest.$ac_objext \ |
41935 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
41936 | fi |
41937 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
41938 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
41939 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
41940 | cat >>confdefs.h <<_ACEOF | |
41941 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
41942 | _ACEOF | |
41943 | ||
41944 | fi | |
41945 | done | |
41946 | ||
41947 | ||
41948 | if test "$ac_cv_func_localtime" = "yes"; then | |
41949 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
41950 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
41951 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
41952 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41953 | else | |
41954 | ||
41955 | cat >conftest.$ac_ext <<_ACEOF | |
41956 | /* confdefs.h. */ | |
41957 | _ACEOF | |
41958 | cat confdefs.h >>conftest.$ac_ext | |
41959 | cat >>conftest.$ac_ext <<_ACEOF | |
41960 | /* end confdefs.h. */ | |
41961 | ||
41962 | #include <time.h> | |
41963 | ||
41964 | int | |
41965 | main () | |
41966 | { | |
41967 | ||
41968 | struct tm tm; | |
41969 | tm.tm_gmtoff++; | |
41970 | ||
41971 | ; | |
41972 | return 0; | |
41973 | } | |
41974 | _ACEOF | |
41975 | rm -f conftest.$ac_objext | |
41976 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41977 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41978 | ac_status=$? |
ac1cb8d3 VS |
41979 | grep -v '^ *+' conftest.er1 >conftest.err |
41980 | rm -f conftest.er1 | |
41981 | cat conftest.err >&5 | |
a848cd7e SC |
41982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41983 | (exit $ac_status); } && | |
5d7b7554 | 41984 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
41985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41986 | (eval $ac_try) 2>&5 | |
41987 | ac_status=$? | |
41988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41989 | (exit $ac_status); }; } && | |
41990 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41992 | (eval $ac_try) 2>&5 | |
41993 | ac_status=$? | |
41994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41995 | (exit $ac_status); }; }; then | |
41996 | ||
41997 | wx_cv_struct_tm_has_gmtoff=yes | |
41998 | ||
41999 | else | |
42000 | echo "$as_me: failed program was:" >&5 | |
42001 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42002 | ||
42003 | wx_cv_struct_tm_has_gmtoff=no | |
42004 | ||
42005 | fi | |
ac1cb8d3 | 42006 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42007 | |
42008 | fi | |
42009 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
42010 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
42011 | fi | |
42012 | ||
42013 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
42014 | cat >>confdefs.h <<\_ACEOF | |
42015 | #define WX_GMTOFF_IN_TM 1 | |
42016 | _ACEOF | |
42017 | ||
42018 | fi | |
42019 | ||
42020 | ||
42021 | ||
42022 | for ac_func in gettimeofday ftime | |
42023 | do | |
42024 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
42025 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
42026 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
42027 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
42028 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42029 | else | |
42030 | cat >conftest.$ac_ext <<_ACEOF | |
42031 | /* confdefs.h. */ | |
42032 | _ACEOF | |
42033 | cat confdefs.h >>conftest.$ac_ext | |
42034 | cat >>conftest.$ac_ext <<_ACEOF | |
42035 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
42036 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
42037 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
42038 | #define $ac_func innocuous_$ac_func | |
42039 | ||
a848cd7e SC |
42040 | /* System header to define __stub macros and hopefully few prototypes, |
42041 | which can conflict with char $ac_func (); below. | |
42042 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
42043 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 42044 | |
a848cd7e SC |
42045 | #ifdef __STDC__ |
42046 | # include <limits.h> | |
42047 | #else | |
42048 | # include <assert.h> | |
42049 | #endif | |
ac1cb8d3 VS |
42050 | |
42051 | #undef $ac_func | |
42052 | ||
a848cd7e SC |
42053 | /* Override any gcc2 internal prototype to avoid an error. */ |
42054 | #ifdef __cplusplus | |
42055 | extern "C" | |
42056 | { | |
42057 | #endif | |
42058 | /* We use char because int might match the return type of a gcc2 | |
42059 | builtin and then its argument prototype would still apply. */ | |
42060 | char $ac_func (); | |
42061 | /* The GNU C library defines this for functions which it implements | |
42062 | to always fail with ENOSYS. Some functions are actually named | |
42063 | something starting with __ and the normal name is an alias. */ | |
42064 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
42065 | choke me | |
42066 | #else | |
42067 | char (*f) () = $ac_func; | |
42068 | #endif | |
42069 | #ifdef __cplusplus | |
42070 | } | |
42071 | #endif | |
42072 | ||
42073 | int | |
42074 | main () | |
42075 | { | |
42076 | return f != $ac_func; | |
42077 | ; | |
42078 | return 0; | |
42079 | } | |
42080 | _ACEOF | |
42081 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42082 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42083 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42084 | ac_status=$? |
ac1cb8d3 VS |
42085 | grep -v '^ *+' conftest.er1 >conftest.err |
42086 | rm -f conftest.er1 | |
42087 | cat conftest.err >&5 | |
a848cd7e SC |
42088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42089 | (exit $ac_status); } && | |
5d7b7554 | 42090 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42092 | (eval $ac_try) 2>&5 | |
42093 | ac_status=$? | |
42094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42095 | (exit $ac_status); }; } && | |
42096 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42098 | (eval $ac_try) 2>&5 | |
42099 | ac_status=$? | |
42100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42101 | (exit $ac_status); }; }; then | |
42102 | eval "$as_ac_var=yes" | |
42103 | else | |
42104 | echo "$as_me: failed program was:" >&5 | |
42105 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42106 | ||
42107 | eval "$as_ac_var=no" | |
42108 | fi | |
ac1cb8d3 VS |
42109 | rm -f conftest.err conftest.$ac_objext \ |
42110 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42111 | fi |
42112 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
42113 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
42114 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
42115 | cat >>confdefs.h <<_ACEOF | |
42116 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
42117 | _ACEOF | |
42118 | break | |
42119 | fi | |
42120 | done | |
42121 | ||
42122 | ||
42123 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
42124 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
42125 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
42126 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
42127 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42128 | else | |
42129 | ||
5d7b7554 | 42130 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
42131 | /* confdefs.h. */ |
42132 | _ACEOF | |
42133 | cat confdefs.h >>conftest.$ac_ext | |
42134 | cat >>conftest.$ac_ext <<_ACEOF | |
42135 | /* end confdefs.h. */ | |
42136 | ||
42137 | #include <sys/time.h> | |
42138 | #include <unistd.h> | |
42139 | ||
42140 | int | |
42141 | main () | |
42142 | { | |
42143 | ||
42144 | struct timeval tv; | |
42145 | gettimeofday(&tv, NULL); | |
42146 | ||
42147 | ; | |
42148 | return 0; | |
42149 | } | |
42150 | _ACEOF | |
42151 | rm -f conftest.$ac_objext | |
42152 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42153 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42154 | ac_status=$? |
ac1cb8d3 VS |
42155 | grep -v '^ *+' conftest.er1 >conftest.err |
42156 | rm -f conftest.er1 | |
42157 | cat conftest.err >&5 | |
a848cd7e SC |
42158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42159 | (exit $ac_status); } && | |
5d7b7554 | 42160 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42162 | (eval $ac_try) 2>&5 | |
42163 | ac_status=$? | |
42164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42165 | (exit $ac_status); }; } && | |
42166 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42168 | (eval $ac_try) 2>&5 | |
42169 | ac_status=$? | |
42170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42171 | (exit $ac_status); }; }; then | |
42172 | wx_cv_func_gettimeofday_has_2_args=yes | |
42173 | else | |
42174 | echo "$as_me: failed program was:" >&5 | |
42175 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42176 | ||
42177 | cat >conftest.$ac_ext <<_ACEOF | |
42178 | /* confdefs.h. */ | |
42179 | _ACEOF | |
42180 | cat confdefs.h >>conftest.$ac_ext | |
42181 | cat >>conftest.$ac_ext <<_ACEOF | |
42182 | /* end confdefs.h. */ | |
42183 | ||
42184 | #include <sys/time.h> | |
42185 | #include <unistd.h> | |
42186 | ||
42187 | int | |
42188 | main () | |
42189 | { | |
42190 | ||
42191 | struct timeval tv; | |
42192 | gettimeofday(&tv); | |
42193 | ||
42194 | ; | |
42195 | return 0; | |
42196 | } | |
42197 | _ACEOF | |
42198 | rm -f conftest.$ac_objext | |
42199 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42200 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42201 | ac_status=$? |
ac1cb8d3 VS |
42202 | grep -v '^ *+' conftest.er1 >conftest.err |
42203 | rm -f conftest.er1 | |
42204 | cat conftest.err >&5 | |
a848cd7e SC |
42205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42206 | (exit $ac_status); } && | |
5d7b7554 | 42207 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42209 | (eval $ac_try) 2>&5 | |
42210 | ac_status=$? | |
42211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42212 | (exit $ac_status); }; } && | |
42213 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42215 | (eval $ac_try) 2>&5 | |
42216 | ac_status=$? | |
42217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42218 | (exit $ac_status); }; }; then | |
42219 | wx_cv_func_gettimeofday_has_2_args=no | |
42220 | else | |
42221 | echo "$as_me: failed program was:" >&5 | |
42222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42223 | ||
42224 | ||
42225 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
42226 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
42227 | wx_cv_func_gettimeofday_has_2_args=unknown | |
42228 | ||
42229 | ||
42230 | fi | |
ac1cb8d3 | 42231 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42232 | |
42233 | fi | |
ac1cb8d3 | 42234 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42235 | |
42236 | fi | |
42237 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
42238 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
42239 | ||
42240 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
42241 | cat >>confdefs.h <<\_ACEOF | |
42242 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
42243 | _ACEOF | |
42244 | ||
42245 | fi | |
42246 | fi | |
42247 | ||
42248 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
42249 | fi | |
42250 | ||
42251 | ||
42252 | if test "$wxUSE_SOCKETS" = "yes"; then | |
42253 | if test "$wxUSE_MGL" = "1"; then | |
42254 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
42255 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
42256 | wxUSE_SOCKETS="no" | |
42257 | fi | |
42258 | fi | |
42259 | ||
42260 | if test "$wxUSE_SOCKETS" = "yes"; then | |
42261 | if test "$TOOLKIT" != "MSW"; then | |
42262 | echo "$as_me:$LINENO: checking for socket" >&5 | |
42263 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
42264 | if test "${ac_cv_func_socket+set}" = set; then | |
42265 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42266 | else | |
42267 | cat >conftest.$ac_ext <<_ACEOF | |
42268 | /* confdefs.h. */ | |
42269 | _ACEOF | |
42270 | cat confdefs.h >>conftest.$ac_ext | |
42271 | cat >>conftest.$ac_ext <<_ACEOF | |
42272 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
42273 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
42274 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
42275 | #define socket innocuous_socket | |
42276 | ||
a848cd7e SC |
42277 | /* System header to define __stub macros and hopefully few prototypes, |
42278 | which can conflict with char socket (); below. | |
42279 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
42280 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 42281 | |
a848cd7e SC |
42282 | #ifdef __STDC__ |
42283 | # include <limits.h> | |
42284 | #else | |
42285 | # include <assert.h> | |
42286 | #endif | |
ac1cb8d3 VS |
42287 | |
42288 | #undef socket | |
42289 | ||
a848cd7e SC |
42290 | /* Override any gcc2 internal prototype to avoid an error. */ |
42291 | #ifdef __cplusplus | |
42292 | extern "C" | |
42293 | { | |
42294 | #endif | |
42295 | /* We use char because int might match the return type of a gcc2 | |
42296 | builtin and then its argument prototype would still apply. */ | |
42297 | char socket (); | |
42298 | /* The GNU C library defines this for functions which it implements | |
42299 | to always fail with ENOSYS. Some functions are actually named | |
42300 | something starting with __ and the normal name is an alias. */ | |
42301 | #if defined (__stub_socket) || defined (__stub___socket) | |
42302 | choke me | |
42303 | #else | |
42304 | char (*f) () = socket; | |
42305 | #endif | |
42306 | #ifdef __cplusplus | |
42307 | } | |
42308 | #endif | |
42309 | ||
42310 | int | |
42311 | main () | |
42312 | { | |
42313 | return f != socket; | |
42314 | ; | |
42315 | return 0; | |
42316 | } | |
42317 | _ACEOF | |
42318 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42319 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42320 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42321 | ac_status=$? |
ac1cb8d3 VS |
42322 | grep -v '^ *+' conftest.er1 >conftest.err |
42323 | rm -f conftest.er1 | |
42324 | cat conftest.err >&5 | |
a848cd7e SC |
42325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42326 | (exit $ac_status); } && | |
5d7b7554 | 42327 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42329 | (eval $ac_try) 2>&5 | |
42330 | ac_status=$? | |
42331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42332 | (exit $ac_status); }; } && | |
42333 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42335 | (eval $ac_try) 2>&5 | |
42336 | ac_status=$? | |
42337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42338 | (exit $ac_status); }; }; then | |
42339 | ac_cv_func_socket=yes | |
42340 | else | |
42341 | echo "$as_me: failed program was:" >&5 | |
42342 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42343 | ||
42344 | ac_cv_func_socket=no | |
42345 | fi | |
ac1cb8d3 VS |
42346 | rm -f conftest.err conftest.$ac_objext \ |
42347 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42348 | fi |
42349 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
42350 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
42351 | if test $ac_cv_func_socket = yes; then | |
42352 | : | |
42353 | else | |
42354 | ||
42355 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
42356 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
42357 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
42358 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42359 | else | |
42360 | ac_check_lib_save_LIBS=$LIBS | |
42361 | LIBS="-lsocket $LIBS" | |
42362 | cat >conftest.$ac_ext <<_ACEOF | |
42363 | /* confdefs.h. */ | |
42364 | _ACEOF | |
42365 | cat confdefs.h >>conftest.$ac_ext | |
42366 | cat >>conftest.$ac_ext <<_ACEOF | |
42367 | /* end confdefs.h. */ | |
42368 | ||
42369 | /* Override any gcc2 internal prototype to avoid an error. */ | |
42370 | #ifdef __cplusplus | |
42371 | extern "C" | |
42372 | #endif | |
42373 | /* We use char because int might match the return type of a gcc2 | |
42374 | builtin and then its argument prototype would still apply. */ | |
42375 | char socket (); | |
42376 | int | |
42377 | main () | |
42378 | { | |
42379 | socket (); | |
42380 | ; | |
42381 | return 0; | |
42382 | } | |
42383 | _ACEOF | |
42384 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42385 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42386 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42387 | ac_status=$? |
ac1cb8d3 VS |
42388 | grep -v '^ *+' conftest.er1 >conftest.err |
42389 | rm -f conftest.er1 | |
42390 | cat conftest.err >&5 | |
a848cd7e SC |
42391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42392 | (exit $ac_status); } && | |
5d7b7554 | 42393 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42395 | (eval $ac_try) 2>&5 | |
42396 | ac_status=$? | |
42397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42398 | (exit $ac_status); }; } && | |
42399 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42401 | (eval $ac_try) 2>&5 | |
42402 | ac_status=$? | |
42403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42404 | (exit $ac_status); }; }; then | |
42405 | ac_cv_lib_socket_socket=yes | |
42406 | else | |
42407 | echo "$as_me: failed program was:" >&5 | |
42408 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42409 | ||
42410 | ac_cv_lib_socket_socket=no | |
42411 | fi | |
ac1cb8d3 VS |
42412 | rm -f conftest.err conftest.$ac_objext \ |
42413 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42414 | LIBS=$ac_check_lib_save_LIBS |
42415 | fi | |
42416 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
42417 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
42418 | if test $ac_cv_lib_socket_socket = yes; then | |
42419 | if test "$INET_LINK" != " -lsocket"; then | |
42420 | INET_LINK="$INET_LINK -lsocket" | |
42421 | fi | |
42422 | else | |
42423 | ||
42424 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
42425 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
42426 | wxUSE_SOCKETS=no | |
42427 | ||
42428 | ||
42429 | fi | |
42430 | ||
42431 | ||
42432 | ||
42433 | fi | |
42434 | ||
42435 | fi | |
42436 | fi | |
42437 | ||
42438 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
42439 | if test "$TOOLKIT" != "MSW"; then | |
5d7b7554 | 42440 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 |
a848cd7e SC |
42441 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 |
42442 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
42443 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42444 | else | |
42445 | ||
42446 | cat >conftest.$ac_ext <<_ACEOF | |
42447 | /* confdefs.h. */ | |
42448 | _ACEOF | |
42449 | cat confdefs.h >>conftest.$ac_ext | |
42450 | cat >>conftest.$ac_ext <<_ACEOF | |
42451 | /* end confdefs.h. */ | |
42452 | ||
42453 | #include <sys/types.h> | |
42454 | #include <sys/socket.h> | |
42455 | ||
42456 | int | |
42457 | main () | |
42458 | { | |
42459 | ||
42460 | socklen_t len; | |
42461 | getsockname(0, 0, &len); | |
42462 | ||
42463 | ; | |
42464 | return 0; | |
42465 | } | |
42466 | _ACEOF | |
42467 | rm -f conftest.$ac_objext | |
42468 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42469 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42470 | ac_status=$? |
ac1cb8d3 VS |
42471 | grep -v '^ *+' conftest.er1 >conftest.err |
42472 | rm -f conftest.er1 | |
42473 | cat conftest.err >&5 | |
a848cd7e SC |
42474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42475 | (exit $ac_status); } && | |
5d7b7554 | 42476 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42478 | (eval $ac_try) 2>&5 | |
42479 | ac_status=$? | |
42480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42481 | (exit $ac_status); }; } && | |
42482 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42484 | (eval $ac_try) 2>&5 | |
42485 | ac_status=$? | |
42486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42487 | (exit $ac_status); }; }; then | |
42488 | wx_cv_type_getsockname3=socklen_t | |
42489 | else | |
42490 | echo "$as_me: failed program was:" >&5 | |
42491 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42492 | ||
42493 | ||
6459a506 | 42494 | CXXFLAGS_OLD="$CXXFLAGS" |
a848cd7e | 42495 | if test "$GCC" = yes ; then |
c92ad099 | 42496 | CXXFLAGS="-Werror $CXXFLAGS" |
a848cd7e SC |
42497 | fi |
42498 | ||
42499 | cat >conftest.$ac_ext <<_ACEOF | |
42500 | /* confdefs.h. */ | |
42501 | _ACEOF | |
42502 | cat confdefs.h >>conftest.$ac_ext | |
42503 | cat >>conftest.$ac_ext <<_ACEOF | |
42504 | /* end confdefs.h. */ | |
42505 | ||
42506 | #include <sys/types.h> | |
42507 | #include <sys/socket.h> | |
42508 | ||
42509 | int | |
42510 | main () | |
42511 | { | |
42512 | ||
42513 | size_t len; | |
42514 | getsockname(0, 0, &len); | |
42515 | ||
42516 | ; | |
42517 | return 0; | |
42518 | } | |
42519 | _ACEOF | |
42520 | rm -f conftest.$ac_objext | |
42521 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42522 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42523 | ac_status=$? |
ac1cb8d3 VS |
42524 | grep -v '^ *+' conftest.er1 >conftest.err |
42525 | rm -f conftest.er1 | |
42526 | cat conftest.err >&5 | |
a848cd7e SC |
42527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42528 | (exit $ac_status); } && | |
5d7b7554 | 42529 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42531 | (eval $ac_try) 2>&5 | |
42532 | ac_status=$? | |
42533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42534 | (exit $ac_status); }; } && | |
42535 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42537 | (eval $ac_try) 2>&5 | |
42538 | ac_status=$? | |
42539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42540 | (exit $ac_status); }; }; then | |
42541 | wx_cv_type_getsockname3=size_t | |
42542 | else | |
42543 | echo "$as_me: failed program was:" >&5 | |
42544 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42545 | ||
42546 | cat >conftest.$ac_ext <<_ACEOF | |
42547 | /* confdefs.h. */ | |
42548 | _ACEOF | |
42549 | cat confdefs.h >>conftest.$ac_ext | |
42550 | cat >>conftest.$ac_ext <<_ACEOF | |
42551 | /* end confdefs.h. */ | |
42552 | ||
42553 | #include <sys/types.h> | |
42554 | #include <sys/socket.h> | |
42555 | ||
42556 | int | |
42557 | main () | |
42558 | { | |
42559 | ||
42560 | int len; | |
42561 | getsockname(0, 0, &len); | |
42562 | ||
42563 | ; | |
42564 | return 0; | |
42565 | } | |
42566 | _ACEOF | |
42567 | rm -f conftest.$ac_objext | |
42568 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42569 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42570 | ac_status=$? |
ac1cb8d3 VS |
42571 | grep -v '^ *+' conftest.er1 >conftest.err |
42572 | rm -f conftest.er1 | |
42573 | cat conftest.err >&5 | |
a848cd7e SC |
42574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42575 | (exit $ac_status); } && | |
5d7b7554 | 42576 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42578 | (eval $ac_try) 2>&5 | |
42579 | ac_status=$? | |
42580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42581 | (exit $ac_status); }; } && | |
42582 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42584 | (eval $ac_try) 2>&5 | |
42585 | ac_status=$? | |
42586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42587 | (exit $ac_status); }; }; then | |
42588 | wx_cv_type_getsockname3=int | |
42589 | else | |
42590 | echo "$as_me: failed program was:" >&5 | |
42591 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42592 | ||
42593 | wx_cv_type_getsockname3=unknown | |
42594 | ||
42595 | fi | |
ac1cb8d3 | 42596 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42597 | |
42598 | fi | |
ac1cb8d3 | 42599 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 42600 | |
6459a506 | 42601 | CXXFLAGS="$CXXFLAGS_OLD" |
a848cd7e SC |
42602 | |
42603 | ||
42604 | fi | |
ac1cb8d3 | 42605 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42606 | |
42607 | fi | |
42608 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
42609 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
42610 | ||
42611 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
42612 | wxUSE_SOCKETS=no | |
42613 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
42614 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
42615 | else | |
42616 | cat >>confdefs.h <<_ACEOF | |
9e03e02d | 42617 | #define WX_SOCKLEN_T $wx_cv_type_getsockname3 |
5b674b9d DE |
42618 | _ACEOF |
42619 | ||
42620 | fi | |
42621 | echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5 | |
42622 | echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6 | |
42623 | if test "${wx_cv_type_getsockopt5+set}" = set; then | |
42624 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42625 | else | |
42626 | ||
42627 | cat >conftest.$ac_ext <<_ACEOF | |
42628 | /* confdefs.h. */ | |
42629 | _ACEOF | |
42630 | cat confdefs.h >>conftest.$ac_ext | |
42631 | cat >>conftest.$ac_ext <<_ACEOF | |
42632 | /* end confdefs.h. */ | |
42633 | ||
42634 | #include <sys/types.h> | |
42635 | #include <sys/socket.h> | |
42636 | ||
42637 | int | |
42638 | main () | |
42639 | { | |
42640 | ||
42641 | socklen_t len; | |
42642 | getsockopt(0, 0, 0, 0, &len); | |
42643 | ||
42644 | ; | |
42645 | return 0; | |
42646 | } | |
42647 | _ACEOF | |
42648 | rm -f conftest.$ac_objext | |
42649 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
42650 | (eval $ac_compile) 2>conftest.er1 | |
42651 | ac_status=$? | |
42652 | grep -v '^ *+' conftest.er1 >conftest.err | |
42653 | rm -f conftest.er1 | |
42654 | cat conftest.err >&5 | |
42655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42656 | (exit $ac_status); } && | |
5d7b7554 | 42657 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
42658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42659 | (eval $ac_try) 2>&5 | |
42660 | ac_status=$? | |
42661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42662 | (exit $ac_status); }; } && | |
42663 | { ac_try='test -s conftest.$ac_objext' | |
42664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42665 | (eval $ac_try) 2>&5 | |
42666 | ac_status=$? | |
42667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42668 | (exit $ac_status); }; }; then | |
42669 | wx_cv_type_getsockopt5=socklen_t | |
42670 | else | |
42671 | echo "$as_me: failed program was:" >&5 | |
42672 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42673 | ||
42674 | ||
6459a506 | 42675 | CXXFLAGS_OLD="$CXXFLAGS" |
5b674b9d | 42676 | if test "$GCC" = yes ; then |
c92ad099 | 42677 | CXXFLAGS="-Werror $CXXFLAGS" |
5b674b9d DE |
42678 | fi |
42679 | ||
42680 | cat >conftest.$ac_ext <<_ACEOF | |
42681 | /* confdefs.h. */ | |
42682 | _ACEOF | |
42683 | cat confdefs.h >>conftest.$ac_ext | |
42684 | cat >>conftest.$ac_ext <<_ACEOF | |
42685 | /* end confdefs.h. */ | |
42686 | ||
42687 | #include <sys/types.h> | |
42688 | #include <sys/socket.h> | |
42689 | ||
42690 | int | |
42691 | main () | |
42692 | { | |
42693 | ||
42694 | size_t len; | |
42695 | getsockopt(0, 0, 0, 0, &len); | |
42696 | ||
42697 | ; | |
42698 | return 0; | |
42699 | } | |
42700 | _ACEOF | |
42701 | rm -f conftest.$ac_objext | |
42702 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
42703 | (eval $ac_compile) 2>conftest.er1 | |
42704 | ac_status=$? | |
42705 | grep -v '^ *+' conftest.er1 >conftest.err | |
42706 | rm -f conftest.er1 | |
42707 | cat conftest.err >&5 | |
42708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42709 | (exit $ac_status); } && | |
5d7b7554 | 42710 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
42711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42712 | (eval $ac_try) 2>&5 | |
42713 | ac_status=$? | |
42714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42715 | (exit $ac_status); }; } && | |
42716 | { ac_try='test -s conftest.$ac_objext' | |
42717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42718 | (eval $ac_try) 2>&5 | |
42719 | ac_status=$? | |
42720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42721 | (exit $ac_status); }; }; then | |
42722 | wx_cv_type_getsockopt5=size_t | |
42723 | else | |
42724 | echo "$as_me: failed program was:" >&5 | |
42725 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42726 | ||
42727 | cat >conftest.$ac_ext <<_ACEOF | |
42728 | /* confdefs.h. */ | |
42729 | _ACEOF | |
42730 | cat confdefs.h >>conftest.$ac_ext | |
42731 | cat >>conftest.$ac_ext <<_ACEOF | |
42732 | /* end confdefs.h. */ | |
42733 | ||
42734 | #include <sys/types.h> | |
42735 | #include <sys/socket.h> | |
42736 | ||
42737 | int | |
42738 | main () | |
42739 | { | |
42740 | ||
42741 | int len; | |
42742 | getsockopt(0, 0, 0, 0, &len); | |
42743 | ||
42744 | ; | |
42745 | return 0; | |
42746 | } | |
42747 | _ACEOF | |
42748 | rm -f conftest.$ac_objext | |
42749 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
42750 | (eval $ac_compile) 2>conftest.er1 | |
42751 | ac_status=$? | |
42752 | grep -v '^ *+' conftest.er1 >conftest.err | |
42753 | rm -f conftest.er1 | |
42754 | cat conftest.err >&5 | |
42755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42756 | (exit $ac_status); } && | |
5d7b7554 | 42757 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5b674b9d DE |
42758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42759 | (eval $ac_try) 2>&5 | |
42760 | ac_status=$? | |
42761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42762 | (exit $ac_status); }; } && | |
42763 | { ac_try='test -s conftest.$ac_objext' | |
42764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42765 | (eval $ac_try) 2>&5 | |
42766 | ac_status=$? | |
42767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42768 | (exit $ac_status); }; }; then | |
42769 | wx_cv_type_getsockopt5=int | |
42770 | else | |
42771 | echo "$as_me: failed program was:" >&5 | |
42772 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42773 | ||
42774 | wx_cv_type_getsockopt5=unknown | |
42775 | ||
42776 | fi | |
42777 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
42778 | ||
42779 | fi | |
42780 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
42781 | ||
6459a506 | 42782 | CXXFLAGS="$CXXFLAGS_OLD" |
5b674b9d DE |
42783 | |
42784 | ||
42785 | fi | |
42786 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
42787 | ||
42788 | fi | |
42789 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5 | |
42790 | echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6 | |
42791 | ||
42792 | if test "$wx_cv_type_getsockopt5" = "unknown"; then | |
42793 | wxUSE_SOCKETS=no | |
42794 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
42795 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
42796 | else | |
42797 | cat >>confdefs.h <<_ACEOF | |
42798 | #define SOCKOPTLEN_T $wx_cv_type_getsockopt5 | |
a848cd7e SC |
42799 | _ACEOF |
42800 | ||
42801 | fi | |
42802 | fi | |
42803 | fi | |
42804 | ||
42805 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
42806 | cat >>confdefs.h <<\_ACEOF | |
42807 | #define wxUSE_SOCKETS 1 | |
42808 | _ACEOF | |
42809 | ||
42810 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
42811 | fi | |
42812 | ||
42813 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
42814 | if test "$wxUSE_SOCKETS" != "yes"; then | |
42815 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
42816 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
42817 | wxUSE_PROTOCOL=no | |
42818 | fi | |
42819 | fi | |
42820 | ||
42821 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
42822 | cat >>confdefs.h <<\_ACEOF | |
42823 | #define wxUSE_PROTOCOL 1 | |
42824 | _ACEOF | |
42825 | ||
42826 | ||
42827 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
42828 | cat >>confdefs.h <<\_ACEOF | |
42829 | #define wxUSE_PROTOCOL_HTTP 1 | |
42830 | _ACEOF | |
42831 | ||
42832 | fi | |
42833 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
42834 | cat >>confdefs.h <<\_ACEOF | |
42835 | #define wxUSE_PROTOCOL_FTP 1 | |
42836 | _ACEOF | |
42837 | ||
42838 | fi | |
42839 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
42840 | cat >>confdefs.h <<\_ACEOF | |
42841 | #define wxUSE_PROTOCOL_FILE 1 | |
42842 | _ACEOF | |
42843 | ||
42844 | fi | |
42845 | else | |
42846 | if test "$wxUSE_FS_INET" = "yes"; then | |
42847 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
42848 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
42849 | wxUSE_FS_INET="no" | |
42850 | fi | |
42851 | fi | |
42852 | ||
42853 | if test "$wxUSE_URL" = "yes"; then | |
42854 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
42855 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
42856 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
42857 | wxUSE_URL=no | |
42858 | fi | |
42859 | if test "$wxUSE_URL" = "yes"; then | |
42860 | cat >>confdefs.h <<\_ACEOF | |
42861 | #define wxUSE_URL 1 | |
42862 | _ACEOF | |
42863 | ||
42864 | fi | |
42865 | fi | |
42866 | ||
42867 | if test "$wxUSE_FS_INET" = "yes"; then | |
42868 | cat >>confdefs.h <<\_ACEOF | |
42869 | #define wxUSE_FS_INET 1 | |
42870 | _ACEOF | |
42871 | ||
42872 | fi | |
42873 | ||
42874 | ||
ee45c548 MW |
42875 | if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then |
42876 | wxUSE_JOYSTICK=no | |
42877 | ||
42878 | if test "$TOOLKIT" = "MSW"; then | |
42879 | wxUSE_JOYSTICK=yes | |
42880 | ||
42881 | elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then | |
42882 | if test "$USE_DARWIN" = 1; then | |
42883 | echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5 | |
42884 | echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6 | |
ee45c548 MW |
42885 | cat >conftest.$ac_ext <<_ACEOF |
42886 | /* confdefs.h. */ | |
42887 | _ACEOF | |
42888 | cat confdefs.h >>conftest.$ac_ext | |
42889 | cat >>conftest.$ac_ext <<_ACEOF | |
42890 | /* end confdefs.h. */ | |
42891 | #include <IOKit/hid/IOHIDLib.h> | |
42892 | int | |
42893 | main () | |
42894 | { | |
42895 | IOHIDQueueInterface *qi = NULL; | |
42896 | IOHIDCallbackFunction cb = NULL; | |
42897 | qi->setEventCallout(NULL, cb, NULL, NULL); | |
42898 | ; | |
42899 | return 0; | |
42900 | } | |
42901 | _ACEOF | |
42902 | rm -f conftest.$ac_objext | |
42903 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
42904 | (eval $ac_compile) 2>conftest.er1 | |
42905 | ac_status=$? | |
42906 | grep -v '^ *+' conftest.er1 >conftest.err | |
42907 | rm -f conftest.er1 | |
42908 | cat conftest.err >&5 | |
42909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42910 | (exit $ac_status); } && | |
5d7b7554 | 42911 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ee45c548 MW |
42912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42913 | (eval $ac_try) 2>&5 | |
42914 | ac_status=$? | |
42915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42916 | (exit $ac_status); }; } && | |
42917 | { ac_try='test -s conftest.$ac_objext' | |
42918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42919 | (eval $ac_try) 2>&5 | |
42920 | ac_status=$? | |
42921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42922 | (exit $ac_status); }; }; then | |
42923 | wxUSE_JOYSTICK=yes | |
a848cd7e | 42924 | |
ee45c548 MW |
42925 | else |
42926 | echo "$as_me: failed program was:" >&5 | |
42927 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42928 | ||
42929 | fi | |
42930 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
ee45c548 MW |
42931 | echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5 |
42932 | echo "${ECHO_T}$wxUSE_JOYSTICK" >&6 | |
42933 | fi | |
42934 | ||
42935 | else | |
a848cd7e SC |
42936 | |
42937 | for ac_header in linux/joystick.h | |
42938 | do | |
42939 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
42940 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
42941 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
42942 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
42943 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
42944 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42945 | fi | |
42946 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
42947 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
42948 | else | |
42949 | # Is the header compilable? | |
42950 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
42951 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
42952 | cat >conftest.$ac_ext <<_ACEOF | |
42953 | /* confdefs.h. */ | |
42954 | _ACEOF | |
42955 | cat confdefs.h >>conftest.$ac_ext | |
42956 | cat >>conftest.$ac_ext <<_ACEOF | |
42957 | /* end confdefs.h. */ | |
42958 | $ac_includes_default | |
42959 | #include <$ac_header> | |
42960 | _ACEOF | |
42961 | rm -f conftest.$ac_objext | |
42962 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42963 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42964 | ac_status=$? |
ac1cb8d3 VS |
42965 | grep -v '^ *+' conftest.er1 >conftest.err |
42966 | rm -f conftest.er1 | |
42967 | cat conftest.err >&5 | |
a848cd7e SC |
42968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42969 | (exit $ac_status); } && | |
5d7b7554 | 42970 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
42971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42972 | (eval $ac_try) 2>&5 | |
42973 | ac_status=$? | |
42974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42975 | (exit $ac_status); }; } && | |
42976 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42978 | (eval $ac_try) 2>&5 | |
42979 | ac_status=$? | |
42980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42981 | (exit $ac_status); }; }; then | |
42982 | ac_header_compiler=yes | |
42983 | else | |
42984 | echo "$as_me: failed program was:" >&5 | |
42985 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42986 | ||
42987 | ac_header_compiler=no | |
42988 | fi | |
ac1cb8d3 | 42989 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42990 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
42991 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
42992 | ||
42993 | # Is the header present? | |
42994 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
42995 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
42996 | cat >conftest.$ac_ext <<_ACEOF | |
42997 | /* confdefs.h. */ | |
42998 | _ACEOF | |
42999 | cat confdefs.h >>conftest.$ac_ext | |
43000 | cat >>conftest.$ac_ext <<_ACEOF | |
43001 | /* end confdefs.h. */ | |
43002 | #include <$ac_header> | |
43003 | _ACEOF | |
43004 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
43005 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
43006 | ac_status=$? | |
43007 | grep -v '^ *+' conftest.er1 >conftest.err | |
43008 | rm -f conftest.er1 | |
43009 | cat conftest.err >&5 | |
43010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43011 | (exit $ac_status); } >/dev/null; then | |
43012 | if test -s conftest.err; then | |
5d7b7554 VZ |
43013 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
43014 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
43015 | else |
43016 | ac_cpp_err= | |
43017 | fi | |
43018 | else | |
43019 | ac_cpp_err=yes | |
43020 | fi | |
43021 | if test -z "$ac_cpp_err"; then | |
43022 | ac_header_preproc=yes | |
43023 | else | |
43024 | echo "$as_me: failed program was:" >&5 | |
43025 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43026 | ||
43027 | ac_header_preproc=no | |
43028 | fi | |
43029 | rm -f conftest.err conftest.$ac_ext | |
43030 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
43031 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
43032 | ||
43033 | # So? What about this header? | |
5d7b7554 | 43034 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 43035 | yes:no: ) |
a848cd7e SC |
43036 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
43037 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
43038 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
43039 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
43040 | ac_header_preproc=yes | |
a848cd7e | 43041 | ;; |
ac1cb8d3 | 43042 | no:yes:* ) |
a848cd7e SC |
43043 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
43044 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
43045 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
43046 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
43047 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
43048 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
43049 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
43050 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
43051 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
43052 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
43053 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
43054 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
43055 | ( |
43056 | cat <<\_ASBOX | |
ac1cb8d3 VS |
43057 | ## ----------------------------------------- ## |
43058 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
43059 | ## ----------------------------------------- ## | |
a848cd7e SC |
43060 | _ASBOX |
43061 | ) | | |
43062 | sed "s/^/$as_me: WARNING: /" >&2 | |
43063 | ;; | |
43064 | esac | |
43065 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
43066 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
43067 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
43068 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43069 | else | |
ac1cb8d3 | 43070 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
43071 | fi |
43072 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
43073 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
43074 | ||
43075 | fi | |
43076 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
43077 | cat >>confdefs.h <<_ACEOF | |
43078 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
43079 | _ACEOF | |
ee45c548 | 43080 | wxUSE_JOYSTICK=yes |
a848cd7e SC |
43081 | fi |
43082 | ||
43083 | done | |
43084 | ||
ee45c548 | 43085 | fi |
4cb1d3da | 43086 | |
ee45c548 MW |
43087 | if test "$wxUSE_JOYSTICK" = "yes"; then |
43088 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
43089 | #define wxUSE_JOYSTICK 1 |
43090 | _ACEOF | |
43091 | ||
ee45c548 MW |
43092 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
43093 | else | |
43094 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
43095 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
a848cd7e SC |
43096 | fi |
43097 | fi | |
43098 | ||
43099 | ||
43100 | ||
43101 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
43102 | cat >>confdefs.h <<\_ACEOF | |
43103 | #define wxUSE_FONTMAP 1 | |
43104 | _ACEOF | |
43105 | ||
43106 | fi | |
43107 | ||
43108 | if test "$wxUSE_UNICODE" = "yes" ; then | |
43109 | cat >>confdefs.h <<\_ACEOF | |
43110 | #define wxUSE_UNICODE 1 | |
43111 | _ACEOF | |
43112 | ||
43113 | ||
43114 | if test "$USE_WIN32" != 1; then | |
43115 | wxUSE_UNICODE_MSLU=no | |
43116 | fi | |
43117 | ||
43118 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
43119 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 | |
43120 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
43121 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
43122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43123 | else | |
43124 | ac_check_lib_save_LIBS=$LIBS | |
43125 | LIBS="-lunicows $LIBS" | |
43126 | cat >conftest.$ac_ext <<_ACEOF | |
43127 | /* confdefs.h. */ | |
43128 | _ACEOF | |
43129 | cat confdefs.h >>conftest.$ac_ext | |
43130 | cat >>conftest.$ac_ext <<_ACEOF | |
43131 | /* end confdefs.h. */ | |
43132 | ||
43133 | ||
43134 | int | |
43135 | main () | |
43136 | { | |
43137 | main (); | |
43138 | ; | |
43139 | return 0; | |
43140 | } | |
43141 | _ACEOF | |
43142 | rm -f conftest.$ac_objext conftest$ac_exeext | |
43143 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 43144 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 43145 | ac_status=$? |
ac1cb8d3 VS |
43146 | grep -v '^ *+' conftest.er1 >conftest.err |
43147 | rm -f conftest.er1 | |
43148 | cat conftest.err >&5 | |
a848cd7e SC |
43149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43150 | (exit $ac_status); } && | |
5d7b7554 | 43151 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43153 | (eval $ac_try) 2>&5 | |
43154 | ac_status=$? | |
43155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43156 | (exit $ac_status); }; } && | |
43157 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
43158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43159 | (eval $ac_try) 2>&5 | |
43160 | ac_status=$? | |
43161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43162 | (exit $ac_status); }; }; then | |
43163 | ac_cv_lib_unicows_main=yes | |
43164 | else | |
43165 | echo "$as_me: failed program was:" >&5 | |
43166 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43167 | ||
43168 | ac_cv_lib_unicows_main=no | |
43169 | fi | |
ac1cb8d3 VS |
43170 | rm -f conftest.err conftest.$ac_objext \ |
43171 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
43172 | LIBS=$ac_check_lib_save_LIBS |
43173 | fi | |
43174 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
43175 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
43176 | if test $ac_cv_lib_unicows_main = yes; then | |
43177 | ||
43178 | cat >>confdefs.h <<\_ACEOF | |
43179 | #define wxUSE_UNICODE_MSLU 1 | |
43180 | _ACEOF | |
43181 | ||
43182 | ||
43183 | else | |
43184 | ||
43185 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
43186 | Applications will only run on Windows NT/2000/XP!" >&5 | |
43187 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
43188 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
43189 | wxUSE_UNICODE_MSLU=no | |
43190 | ||
43191 | fi | |
43192 | ||
43193 | fi | |
43194 | fi | |
43195 | ||
43196 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
43197 | cat >>confdefs.h <<\_ACEOF | |
43198 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
43199 | _ACEOF | |
43200 | ||
43201 | fi | |
43202 | ||
43203 | ||
43204 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
43205 | cat >>confdefs.h <<\_ACEOF | |
43206 | #define wxUSE_POSTSCRIPT 1 | |
43207 | _ACEOF | |
43208 | ||
43209 | fi | |
43210 | ||
43211 | cat >>confdefs.h <<\_ACEOF | |
43212 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
43213 | _ACEOF | |
43214 | ||
43215 | ||
43216 | cat >>confdefs.h <<\_ACEOF | |
43217 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
43218 | _ACEOF | |
43219 | ||
43220 | ||
43221 | ||
43222 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
43223 | cat >>confdefs.h <<\_ACEOF | |
43224 | #define wxUSE_CONSTRAINTS 1 | |
43225 | _ACEOF | |
43226 | ||
43227 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
43228 | fi | |
43229 | ||
8a7b1113 VZ |
43230 | if test "$wxUSE_MDI" = "yes"; then |
43231 | cat >>confdefs.h <<\_ACEOF | |
43232 | #define wxUSE_MDI 1 | |
43233 | _ACEOF | |
43234 | ||
43235 | ||
43236 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
43237 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
43238 | #define wxUSE_MDI_ARCHITECTURE 1 |
43239 | _ACEOF | |
43240 | ||
8a7b1113 VZ |
43241 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
43242 | fi | |
a848cd7e SC |
43243 | fi |
43244 | ||
43245 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
43246 | cat >>confdefs.h <<\_ACEOF | |
43247 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
43248 | _ACEOF | |
43249 | ||
43250 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
43251 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
43252 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
43253 | fi | |
43254 | fi | |
43255 | ||
43256 | if test "$wxUSE_HELP" = "yes"; then | |
43257 | cat >>confdefs.h <<\_ACEOF | |
43258 | #define wxUSE_HELP 1 | |
43259 | _ACEOF | |
43260 | ||
43261 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
43262 | ||
43263 | if test "$wxUSE_MSW" = 1; then | |
43264 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
43265 | cat >>confdefs.h <<\_ACEOF | |
43266 | #define wxUSE_MS_HTML_HELP 1 | |
43267 | _ACEOF | |
43268 | ||
43269 | fi | |
43270 | fi | |
43271 | ||
43272 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
43273 | if test "$wxUSE_HTML" = "yes"; then | |
43274 | cat >>confdefs.h <<\_ACEOF | |
43275 | #define wxUSE_WXHTML_HELP 1 | |
43276 | _ACEOF | |
43277 | ||
43278 | else | |
43279 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 | |
43280 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
43281 | wxUSE_WXHTML_HELP=no | |
43282 | fi | |
43283 | fi | |
43284 | fi | |
43285 | ||
43286 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
43287 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
43288 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 | |
43289 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
43290 | else | |
43291 | cat >>confdefs.h <<\_ACEOF | |
43292 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
43293 | _ACEOF | |
43294 | ||
43295 | fi | |
43296 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
43297 | fi | |
43298 | ||
43299 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then | |
43300 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
43301 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
43302 | { (exit 1); exit 1; }; } | |
43303 | fi | |
43304 | ||
43305 | ||
efdf6afe VZ |
43306 | if test "$wxUSE_METAFILE" = "yes"; then |
43307 | if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then | |
43308 | { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5 | |
43309 | echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;} | |
43310 | wxUSE_METAFILE=no | |
43311 | fi | |
43312 | fi | |
43313 | ||
43314 | ||
a848cd7e SC |
43315 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
43316 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
43317 | -o "$wxUSE_OLE" = "yes" \ | |
43318 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
43319 | ||
43320 | for ac_header in ole2.h | |
43321 | do | |
43322 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
43323 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
43324 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
43325 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
43326 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
43327 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43328 | fi | |
43329 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
43330 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
43331 | else | |
43332 | # Is the header compilable? | |
43333 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
43334 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
43335 | cat >conftest.$ac_ext <<_ACEOF | |
43336 | /* confdefs.h. */ | |
43337 | _ACEOF | |
43338 | cat confdefs.h >>conftest.$ac_ext | |
43339 | cat >>conftest.$ac_ext <<_ACEOF | |
43340 | /* end confdefs.h. */ | |
43341 | $ac_includes_default | |
43342 | #include <$ac_header> | |
43343 | _ACEOF | |
43344 | rm -f conftest.$ac_objext | |
43345 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43346 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43347 | ac_status=$? |
ac1cb8d3 VS |
43348 | grep -v '^ *+' conftest.er1 >conftest.err |
43349 | rm -f conftest.er1 | |
43350 | cat conftest.err >&5 | |
a848cd7e SC |
43351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43352 | (exit $ac_status); } && | |
5d7b7554 | 43353 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43355 | (eval $ac_try) 2>&5 | |
43356 | ac_status=$? | |
43357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43358 | (exit $ac_status); }; } && | |
43359 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43361 | (eval $ac_try) 2>&5 | |
43362 | ac_status=$? | |
43363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43364 | (exit $ac_status); }; }; then | |
43365 | ac_header_compiler=yes | |
43366 | else | |
43367 | echo "$as_me: failed program was:" >&5 | |
43368 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43369 | ||
43370 | ac_header_compiler=no | |
43371 | fi | |
ac1cb8d3 | 43372 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
43373 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
43374 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
43375 | ||
43376 | # Is the header present? | |
43377 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
43378 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
43379 | cat >conftest.$ac_ext <<_ACEOF | |
43380 | /* confdefs.h. */ | |
43381 | _ACEOF | |
43382 | cat confdefs.h >>conftest.$ac_ext | |
43383 | cat >>conftest.$ac_ext <<_ACEOF | |
43384 | /* end confdefs.h. */ | |
43385 | #include <$ac_header> | |
43386 | _ACEOF | |
43387 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
43388 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
43389 | ac_status=$? | |
43390 | grep -v '^ *+' conftest.er1 >conftest.err | |
43391 | rm -f conftest.er1 | |
43392 | cat conftest.err >&5 | |
43393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43394 | (exit $ac_status); } >/dev/null; then | |
43395 | if test -s conftest.err; then | |
5d7b7554 VZ |
43396 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
43397 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
43398 | else |
43399 | ac_cpp_err= | |
43400 | fi | |
43401 | else | |
43402 | ac_cpp_err=yes | |
43403 | fi | |
43404 | if test -z "$ac_cpp_err"; then | |
43405 | ac_header_preproc=yes | |
43406 | else | |
43407 | echo "$as_me: failed program was:" >&5 | |
43408 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43409 | ||
43410 | ac_header_preproc=no | |
43411 | fi | |
43412 | rm -f conftest.err conftest.$ac_ext | |
43413 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
43414 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
43415 | ||
43416 | # So? What about this header? | |
5d7b7554 | 43417 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 43418 | yes:no: ) |
a848cd7e SC |
43419 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
43420 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
43421 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
43422 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
43423 | ac_header_preproc=yes | |
a848cd7e | 43424 | ;; |
ac1cb8d3 | 43425 | no:yes:* ) |
a848cd7e SC |
43426 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
43427 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
43428 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
43429 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
43430 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
43431 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
43432 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
43433 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
43434 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
43435 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
43436 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
43437 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
43438 | ( |
43439 | cat <<\_ASBOX | |
ac1cb8d3 VS |
43440 | ## ----------------------------------------- ## |
43441 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
43442 | ## ----------------------------------------- ## | |
a848cd7e SC |
43443 | _ASBOX |
43444 | ) | | |
43445 | sed "s/^/$as_me: WARNING: /" >&2 | |
43446 | ;; | |
43447 | esac | |
43448 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
43449 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
43450 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
43451 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43452 | else | |
ac1cb8d3 | 43453 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
43454 | fi |
43455 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
43456 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
43457 | ||
43458 | fi | |
43459 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
43460 | cat >>confdefs.h <<_ACEOF | |
43461 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
43462 | _ACEOF | |
43463 | ||
43464 | fi | |
43465 | ||
43466 | done | |
43467 | ||
43468 | ||
43469 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
43470 | if test "$GCC" = yes ; then | |
a848cd7e SC |
43471 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 |
43472 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
43473 | cat >conftest.$ac_ext <<_ACEOF | |
43474 | /* confdefs.h. */ | |
43475 | _ACEOF | |
43476 | cat confdefs.h >>conftest.$ac_ext | |
43477 | cat >>conftest.$ac_ext <<_ACEOF | |
43478 | /* end confdefs.h. */ | |
43479 | #include <windows.h> | |
43480 | #include <ole2.h> | |
43481 | int | |
43482 | main () | |
43483 | { | |
43484 | ||
43485 | ; | |
43486 | return 0; | |
43487 | } | |
43488 | _ACEOF | |
43489 | rm -f conftest.$ac_objext | |
43490 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43491 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43492 | ac_status=$? |
ac1cb8d3 VS |
43493 | grep -v '^ *+' conftest.er1 >conftest.err |
43494 | rm -f conftest.er1 | |
43495 | cat conftest.err >&5 | |
a848cd7e SC |
43496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43497 | (exit $ac_status); } && | |
5d7b7554 | 43498 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
43499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43500 | (eval $ac_try) 2>&5 | |
43501 | ac_status=$? | |
43502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43503 | (exit $ac_status); }; } && | |
43504 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43506 | (eval $ac_try) 2>&5 | |
43507 | ac_status=$? | |
43508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43509 | (exit $ac_status); }; }; then | |
43510 | echo "$as_me:$LINENO: result: no" >&5 | |
43511 | echo "${ECHO_T}no" >&6 | |
43512 | else | |
43513 | echo "$as_me: failed program was:" >&5 | |
43514 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43515 | ||
43516 | echo "$as_me:$LINENO: result: yes" >&5 | |
43517 | echo "${ECHO_T}yes" >&6 | |
5ff751d6 | 43518 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks" |
a848cd7e | 43519 | fi |
ac1cb8d3 | 43520 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
43521 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
43522 | if test "$wxUSE_OLE" = "yes" ; then | |
43523 | cat >>confdefs.h <<\_ACEOF | |
43524 | #define wxUSE_OLE 1 | |
43525 | _ACEOF | |
43526 | ||
0b78747f | 43527 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto" |
a848cd7e SC |
43528 | fi |
43529 | fi | |
43530 | ||
43531 | if test "$wxUSE_DATAOBJ" = "yes" ; then | |
43532 | cat >>confdefs.h <<\_ACEOF | |
43533 | #define wxUSE_DATAOBJ 1 | |
43534 | _ACEOF | |
43535 | ||
43536 | fi | |
43537 | else | |
43538 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 | |
43539 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
43540 | ||
43541 | wxUSE_CLIPBOARD=no | |
43542 | wxUSE_DRAG_AND_DROP=no | |
43543 | wxUSE_DATAOBJ=no | |
43544 | wxUSE_OLE=no | |
43545 | fi | |
43546 | ||
43547 | if test "$wxUSE_METAFILE" = "yes"; then | |
43548 | cat >>confdefs.h <<\_ACEOF | |
43549 | #define wxUSE_METAFILE 1 | |
43550 | _ACEOF | |
43551 | ||
43552 | ||
43553 | cat >>confdefs.h <<\_ACEOF | |
43554 | #define wxUSE_ENH_METAFILE 1 | |
43555 | _ACEOF | |
43556 | ||
43557 | fi | |
43558 | fi | |
43559 | ||
43560 | if test "$wxUSE_IPC" = "yes"; then | |
0b78747f | 43561 | if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then |
77ffb593 JS |
43562 | { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5 |
43563 | echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;} | |
0b78747f | 43564 | wxUSE_IPC=no |
a848cd7e SC |
43565 | fi |
43566 | ||
0b78747f MW |
43567 | if test "$wxUSE_IPC" = "yes"; then |
43568 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
43569 | #define wxUSE_IPC 1 |
43570 | _ACEOF | |
43571 | ||
0b78747f MW |
43572 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc" |
43573 | fi | |
a848cd7e SC |
43574 | fi |
43575 | ||
eb730a0c | 43576 | if test "$wxUSE_DATAOBJ" = "yes"; then |
2113bc77 MW |
43577 | if test "$wxUSE_MGL" = 1; then |
43578 | { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5 | |
43579 | echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;} | |
43580 | wxUSE_DATAOBJ=no | |
43581 | else | |
43582 | cat >>confdefs.h <<\_ACEOF | |
eb730a0c JS |
43583 | #define wxUSE_DATAOBJ 1 |
43584 | _ACEOF | |
43585 | ||
2113bc77 | 43586 | fi |
eb730a0c JS |
43587 | else |
43588 | { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5 | |
43589 | echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;} | |
43590 | wxUSE_CLIPBOARD=no | |
43591 | wxUSE_DRAG_AND_DROP=no | |
43592 | fi | |
43593 | ||
a848cd7e SC |
43594 | if test "$wxUSE_CLIPBOARD" = "yes"; then |
43595 | if test "$wxUSE_MGL" = 1; then | |
43596 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 | |
43597 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
43598 | wxUSE_CLIPBOARD=no | |
43599 | fi | |
43600 | ||
43601 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
43602 | cat >>confdefs.h <<\_ACEOF | |
43603 | #define wxUSE_CLIPBOARD 1 | |
43604 | _ACEOF | |
43605 | ||
a848cd7e SC |
43606 | fi |
43607 | fi | |
43608 | ||
43609 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
43610 | if test "$wxUSE_GTK" = 1; then | |
43611 | if test "$WXGTK12" != 1; then | |
43612 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 | |
43613 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
43614 | wxUSE_DRAG_AND_DROP=no | |
43615 | fi | |
43616 | fi | |
43617 | ||
43618 | if test "$wxUSE_MOTIF" = 1; then | |
43619 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 | |
43620 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
43621 | wxUSE_DRAG_AND_DROP=no | |
43622 | fi | |
43623 | ||
43624 | if test "$wxUSE_X11" = 1; then | |
43625 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 | |
43626 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
43627 | wxUSE_DRAG_AND_DROP=no | |
43628 | fi | |
43629 | ||
43630 | if test "$wxUSE_MGL" = 1; then | |
43631 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 | |
43632 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
43633 | wxUSE_DRAG_AND_DROP=no | |
43634 | fi | |
43635 | ||
43636 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
43637 | cat >>confdefs.h <<\_ACEOF | |
43638 | #define wxUSE_DRAG_AND_DROP 1 | |
43639 | _ACEOF | |
43640 | ||
43641 | fi | |
43642 | ||
43643 | fi | |
43644 | ||
43645 | if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then | |
43646 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
43647 | fi | |
43648 | ||
43649 | if test "$wxUSE_SPLINES" = "yes" ; then | |
43650 | cat >>confdefs.h <<\_ACEOF | |
43651 | #define wxUSE_SPLINES 1 | |
43652 | _ACEOF | |
43653 | ||
43654 | fi | |
43655 | ||
fbe2ca43 SN |
43656 | if test "$wxUSE_MOUSEWHEEL" = "yes" ; then |
43657 | cat >>confdefs.h <<\_ACEOF | |
43658 | #define wxUSE_MOUSEWHEEL 1 | |
43659 | _ACEOF | |
43660 | ||
43661 | fi | |
43662 | ||
a848cd7e SC |
43663 | |
43664 | USES_CONTROLS=0 | |
43665 | if test "$wxUSE_CONTROLS" = "yes"; then | |
43666 | USES_CONTROLS=1 | |
43667 | fi | |
43668 | ||
43669 | if test "$wxUSE_ACCEL" = "yes"; then | |
43670 | cat >>confdefs.h <<\_ACEOF | |
43671 | #define wxUSE_ACCEL 1 | |
43672 | _ACEOF | |
43673 | ||
43674 | USES_CONTROLS=1 | |
43675 | fi | |
43676 | ||
43677 | if test "$wxUSE_BUTTON" = "yes"; then | |
43678 | cat >>confdefs.h <<\_ACEOF | |
43679 | #define wxUSE_BUTTON 1 | |
43680 | _ACEOF | |
43681 | ||
43682 | USES_CONTROLS=1 | |
43683 | fi | |
43684 | ||
43685 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
43686 | cat >>confdefs.h <<\_ACEOF | |
43687 | #define wxUSE_BMPBUTTON 1 | |
43688 | _ACEOF | |
43689 | ||
43690 | USES_CONTROLS=1 | |
43691 | fi | |
43692 | ||
43693 | if test "$wxUSE_CALCTRL" = "yes"; then | |
43694 | cat >>confdefs.h <<\_ACEOF | |
43695 | #define wxUSE_CALENDARCTRL 1 | |
43696 | _ACEOF | |
43697 | ||
43698 | USES_CONTROLS=1 | |
43699 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
43700 | fi | |
43701 | ||
43702 | if test "$wxUSE_CARET" = "yes"; then | |
43703 | cat >>confdefs.h <<\_ACEOF | |
43704 | #define wxUSE_CARET 1 | |
43705 | _ACEOF | |
43706 | ||
43707 | USES_CONTROLS=1 | |
43708 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
43709 | fi | |
43710 | ||
43711 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
43712 | cat >>confdefs.h <<\_ACEOF | |
43713 | #define wxUSE_COMBOBOX 1 | |
43714 | _ACEOF | |
43715 | ||
43716 | USES_CONTROLS=1 | |
43717 | fi | |
43718 | ||
642bcba9 VZ |
43719 | if test "$wxUSE_COMBOCONTROL" = "yes"; then |
43720 | cat >>confdefs.h <<\_ACEOF | |
43721 | #define wxUSE_COMBOCONTROL 1 | |
43722 | _ACEOF | |
43723 | ||
43724 | USES_CONTROLS=1 | |
43725 | fi | |
43726 | ||
a848cd7e SC |
43727 | if test "$wxUSE_CHOICE" = "yes"; then |
43728 | cat >>confdefs.h <<\_ACEOF | |
43729 | #define wxUSE_CHOICE 1 | |
43730 | _ACEOF | |
43731 | ||
43732 | USES_CONTROLS=1 | |
43733 | fi | |
43734 | ||
92bbdbcd WS |
43735 | if test "$wxUSE_CHOICEBOOK" = "yes"; then |
43736 | cat >>confdefs.h <<\_ACEOF | |
43737 | #define wxUSE_CHOICEBOOK 1 | |
43738 | _ACEOF | |
43739 | ||
43740 | USES_CONTROLS=1 | |
43741 | fi | |
43742 | ||
a848cd7e SC |
43743 | if test "$wxUSE_CHECKBOX" = "yes"; then |
43744 | cat >>confdefs.h <<\_ACEOF | |
43745 | #define wxUSE_CHECKBOX 1 | |
43746 | _ACEOF | |
43747 | ||
43748 | USES_CONTROLS=1 | |
43749 | fi | |
43750 | ||
43751 | if test "$wxUSE_CHECKLST" = "yes"; then | |
43752 | cat >>confdefs.h <<\_ACEOF | |
43753 | #define wxUSE_CHECKLISTBOX 1 | |
43754 | _ACEOF | |
43755 | ||
43756 | USES_CONTROLS=1 | |
43757 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
43758 | fi | |
43759 | ||
da98e9be VZ |
43760 | if test "$wxUSE_DATEPICKCTRL" = "yes"; then |
43761 | cat >>confdefs.h <<\_ACEOF | |
43762 | #define wxUSE_DATEPICKCTRL 1 | |
43763 | _ACEOF | |
43764 | ||
43765 | USES_CONTROLS=1 | |
43766 | fi | |
43767 | ||
a848cd7e SC |
43768 | if test "$wxUSE_DISPLAY" = "yes"; then |
43769 | cat >>confdefs.h <<\_ACEOF | |
43770 | #define wxUSE_DISPLAY 1 | |
43771 | _ACEOF | |
43772 | ||
0b78747f | 43773 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon" |
a848cd7e SC |
43774 | fi |
43775 | ||
43776 | if test "$wxUSE_GAUGE" = "yes"; then | |
43777 | cat >>confdefs.h <<\_ACEOF | |
43778 | #define wxUSE_GAUGE 1 | |
43779 | _ACEOF | |
43780 | ||
43781 | USES_CONTROLS=1 | |
43782 | fi | |
43783 | ||
43784 | if test "$wxUSE_GRID" = "yes"; then | |
43785 | cat >>confdefs.h <<\_ACEOF | |
43786 | #define wxUSE_GRID 1 | |
43787 | _ACEOF | |
43788 | ||
43789 | USES_CONTROLS=1 | |
43790 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
43791 | fi | |
43792 | ||
20e34ecc RR |
43793 | if test "$wxUSE_DATAVIEWCTRL" = "yes"; then |
43794 | cat >>confdefs.h <<\_ACEOF | |
43795 | #define wxUSE_DATAVIEWCTRL 1 | |
43796 | _ACEOF | |
43797 | ||
43798 | USES_CONTROLS=1 | |
43799 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview" | |
43800 | fi | |
43801 | ||
a848cd7e SC |
43802 | if test "$wxUSE_IMAGLIST" = "yes"; then |
43803 | cat >>confdefs.h <<\_ACEOF | |
43804 | #define wxUSE_IMAGLIST 1 | |
43805 | _ACEOF | |
43806 | ||
43807 | fi | |
43808 | ||
43809 | if test "$wxUSE_LISTBOOK" = "yes"; then | |
43810 | cat >>confdefs.h <<\_ACEOF | |
43811 | #define wxUSE_LISTBOOK 1 | |
43812 | _ACEOF | |
43813 | ||
43814 | USES_CONTROLS=1 | |
43815 | fi | |
43816 | ||
43817 | if test "$wxUSE_LISTBOX" = "yes"; then | |
43818 | cat >>confdefs.h <<\_ACEOF | |
43819 | #define wxUSE_LISTBOX 1 | |
43820 | _ACEOF | |
43821 | ||
43822 | USES_CONTROLS=1 | |
0b78747f | 43823 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox" |
a848cd7e SC |
43824 | fi |
43825 | ||
43826 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
43827 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
43828 | cat >>confdefs.h <<\_ACEOF | |
43829 | #define wxUSE_LISTCTRL 1 | |
43830 | _ACEOF | |
43831 | ||
43832 | USES_CONTROLS=1 | |
43833 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
43834 | else | |
43835 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 | |
43836 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
43837 | fi | |
43838 | fi | |
43839 | ||
43840 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
43841 | cat >>confdefs.h <<\_ACEOF | |
43842 | #define wxUSE_NOTEBOOK 1 | |
43843 | _ACEOF | |
43844 | ||
43845 | USES_CONTROLS=1 | |
43846 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
43847 | fi | |
43848 | ||
642bcba9 VZ |
43849 | if test "$wxUSE_OWNERDRAWNCOMBOBOX" = "yes"; then |
43850 | cat >>confdefs.h <<\_ACEOF | |
43851 | #define wxUSE_OWNERDRAWNCOMBOBOX 1 | |
43852 | _ACEOF | |
43853 | ||
43854 | USES_CONTROLS=1 | |
43855 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo" | |
43856 | fi | |
43857 | ||
a848cd7e SC |
43858 | |
43859 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
43860 | cat >>confdefs.h <<\_ACEOF | |
43861 | #define wxUSE_RADIOBOX 1 | |
43862 | _ACEOF | |
43863 | ||
43864 | USES_CONTROLS=1 | |
43865 | fi | |
43866 | ||
43867 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
43868 | cat >>confdefs.h <<\_ACEOF | |
43869 | #define wxUSE_RADIOBTN 1 | |
43870 | _ACEOF | |
43871 | ||
43872 | USES_CONTROLS=1 | |
43873 | fi | |
43874 | ||
43875 | if test "$wxUSE_SASH" = "yes"; then | |
43876 | cat >>confdefs.h <<\_ACEOF | |
43877 | #define wxUSE_SASH 1 | |
43878 | _ACEOF | |
43879 | ||
43880 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
43881 | fi | |
43882 | ||
43883 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
43884 | cat >>confdefs.h <<\_ACEOF | |
43885 | #define wxUSE_SCROLLBAR 1 | |
43886 | _ACEOF | |
43887 | ||
43888 | USES_CONTROLS=1 | |
43889 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
43890 | fi | |
43891 | ||
43892 | if test "$wxUSE_SLIDER" = "yes"; then | |
43893 | cat >>confdefs.h <<\_ACEOF | |
43894 | #define wxUSE_SLIDER 1 | |
43895 | _ACEOF | |
43896 | ||
43897 | USES_CONTROLS=1 | |
43898 | fi | |
43899 | ||
43900 | if test "$wxUSE_SPINBTN" = "yes"; then | |
43901 | cat >>confdefs.h <<\_ACEOF | |
43902 | #define wxUSE_SPINBTN 1 | |
43903 | _ACEOF | |
43904 | ||
43905 | USES_CONTROLS=1 | |
43906 | fi | |
43907 | ||
43908 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
43909 | cat >>confdefs.h <<\_ACEOF | |
43910 | #define wxUSE_SPINCTRL 1 | |
43911 | _ACEOF | |
43912 | ||
43913 | USES_CONTROLS=1 | |
43914 | fi | |
43915 | ||
43916 | if test "$wxUSE_SPLITTER" = "yes"; then | |
43917 | cat >>confdefs.h <<\_ACEOF | |
43918 | #define wxUSE_SPLITTER 1 | |
43919 | _ACEOF | |
43920 | ||
43921 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
43922 | fi | |
43923 | ||
43924 | if test "$wxUSE_STATBMP" = "yes"; then | |
43925 | cat >>confdefs.h <<\_ACEOF | |
43926 | #define wxUSE_STATBMP 1 | |
43927 | _ACEOF | |
43928 | ||
43929 | USES_CONTROLS=1 | |
43930 | fi | |
43931 | ||
43932 | if test "$wxUSE_STATBOX" = "yes"; then | |
43933 | cat >>confdefs.h <<\_ACEOF | |
43934 | #define wxUSE_STATBOX 1 | |
43935 | _ACEOF | |
43936 | ||
43937 | USES_CONTROLS=1 | |
43938 | fi | |
43939 | ||
43940 | if test "$wxUSE_STATTEXT" = "yes"; then | |
43941 | cat >>confdefs.h <<\_ACEOF | |
43942 | #define wxUSE_STATTEXT 1 | |
43943 | _ACEOF | |
43944 | ||
43945 | USES_CONTROLS=1 | |
43946 | fi | |
43947 | ||
43948 | if test "$wxUSE_STATLINE" = "yes"; then | |
43949 | cat >>confdefs.h <<\_ACEOF | |
43950 | #define wxUSE_STATLINE 1 | |
43951 | _ACEOF | |
43952 | ||
43953 | USES_CONTROLS=1 | |
43954 | fi | |
43955 | ||
43956 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
da4486fb VZ |
43957 | cat >>confdefs.h <<\_ACEOF |
43958 | #define wxUSE_NATIVE_STATUSBAR 1 | |
43959 | _ACEOF | |
43960 | ||
a848cd7e SC |
43961 | cat >>confdefs.h <<\_ACEOF |
43962 | #define wxUSE_STATUSBAR 1 | |
43963 | _ACEOF | |
43964 | ||
43965 | USES_CONTROLS=1 | |
43966 | ||
43967 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
43968 | fi | |
43969 | ||
f10e38c4 | 43970 | if test "$wxUSE_TAB_DIALOG" = "yes"; then |
a848cd7e SC |
43971 | cat >>confdefs.h <<\_ACEOF |
43972 | #define wxUSE_TAB_DIALOG 1 | |
43973 | _ACEOF | |
43974 | ||
a848cd7e SC |
43975 | fi |
43976 | ||
43977 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
43978 | cat >>confdefs.h <<\_ACEOF | |
43979 | #define wxUSE_TEXTCTRL 1 | |
43980 | _ACEOF | |
43981 | ||
43982 | USES_CONTROLS=1 | |
43983 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
43984 | fi | |
43985 | ||
43986 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
43987 | if test "$wxUSE_COCOA" = 1 ; then | |
43988 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 | |
43989 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
43990 | wxUSE_TOGGLEBTN=no | |
43991 | fi | |
43992 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
43993 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 | |
43994 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
43995 | wxUSE_TOGGLEBTN=no | |
43996 | fi | |
43997 | ||
43998 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
43999 | cat >>confdefs.h <<\_ACEOF | |
44000 | #define wxUSE_TOGGLEBTN 1 | |
44001 | _ACEOF | |
44002 | ||
44003 | USES_CONTROLS=1 | |
44004 | fi | |
44005 | fi | |
44006 | ||
44007 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
44008 | cat >>confdefs.h <<\_ACEOF | |
44009 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
44010 | _ACEOF | |
44011 | ||
44012 | wxUSE_TOOLBAR="yes" | |
44013 | USES_CONTROLS=1 | |
44014 | fi | |
44015 | ||
44016 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
44017 | cat >>confdefs.h <<\_ACEOF | |
44018 | #define wxUSE_TOOLBAR 1 | |
44019 | _ACEOF | |
44020 | ||
44021 | USES_CONTROLS=1 | |
44022 | ||
44023 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
44024 | wxUSE_TOOLBAR_NATIVE="yes" | |
44025 | fi | |
44026 | ||
44027 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
44028 | cat >>confdefs.h <<\_ACEOF | |
44029 | #define wxUSE_TOOLBAR_NATIVE 1 | |
44030 | _ACEOF | |
44031 | ||
44032 | USES_CONTROLS=1 | |
44033 | fi | |
44034 | ||
44035 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
44036 | fi | |
44037 | ||
44038 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
44039 | if test "$wxUSE_MOTIF" = 1; then | |
44040 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 | |
44041 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
44042 | else | |
44043 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
44044 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 | |
44045 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
44046 | else | |
44047 | cat >>confdefs.h <<\_ACEOF | |
44048 | #define wxUSE_TOOLTIPS 1 | |
44049 | _ACEOF | |
44050 | ||
44051 | fi | |
44052 | fi | |
44053 | fi | |
44054 | ||
0093c2fc VZ |
44055 | if test "$wxUSE_TREEBOOK" = "yes"; then |
44056 | cat >>confdefs.h <<\_ACEOF | |
44057 | #define wxUSE_TREEBOOK 1 | |
44058 | _ACEOF | |
44059 | ||
44060 | USES_CONTROLS=1 | |
44061 | fi | |
44062 | ||
5ec3bc43 JS |
44063 | if test "$wxUSE_TOOLBOOK" = "yes"; then |
44064 | cat >>confdefs.h <<\_ACEOF | |
44065 | #define wxUSE_TOOLBOOK 1 | |
44066 | _ACEOF | |
44067 | ||
44068 | USES_CONTROLS=1 | |
44069 | fi | |
44070 | ||
a848cd7e SC |
44071 | if test "$wxUSE_TREECTRL" = "yes"; then |
44072 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
44073 | cat >>confdefs.h <<\_ACEOF | |
44074 | #define wxUSE_TREECTRL 1 | |
44075 | _ACEOF | |
44076 | ||
44077 | USES_CONTROLS=1 | |
44078 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
44079 | else | |
44080 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 | |
44081 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
44082 | fi | |
44083 | fi | |
44084 | ||
44085 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
44086 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
44087 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 | |
44088 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
44089 | else | |
44090 | if test "$wxUSE_PM" = 1; then | |
44091 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
44092 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
44093 | else | |
44094 | cat >>confdefs.h <<\_ACEOF | |
44095 | #define wxUSE_POPUPWIN 1 | |
44096 | _ACEOF | |
44097 | ||
0b78747f | 44098 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup" |
a848cd7e SC |
44099 | |
44100 | USES_CONTROLS=1 | |
44101 | fi | |
44102 | fi | |
44103 | fi | |
44104 | ||
0dcd06dd | 44105 | if test "$wxUSE_DIALUP_MANAGER" = "yes"; then |
b843b628 MB |
44106 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
44107 | { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5 | |
44108 | echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;} | |
44109 | else | |
44110 | cat >>confdefs.h <<\_ACEOF | |
44111 | #define wxUSE_DIALUP_MANAGER 1 | |
44112 | _ACEOF | |
44113 | ||
44114 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
44115 | fi | |
44116 | fi | |
44117 | ||
a848cd7e SC |
44118 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
44119 | if test "$wxUSE_PM" = 1; then | |
44120 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 | |
44121 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
44122 | else | |
44123 | cat >>confdefs.h <<\_ACEOF | |
44124 | #define wxUSE_TIPWINDOW 1 | |
44125 | _ACEOF | |
44126 | ||
44127 | fi | |
44128 | fi | |
44129 | ||
44130 | if test "$USES_CONTROLS" = 1; then | |
44131 | cat >>confdefs.h <<\_ACEOF | |
44132 | #define wxUSE_CONTROLS 1 | |
44133 | _ACEOF | |
44134 | ||
44135 | fi | |
44136 | ||
44137 | ||
44138 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then | |
44139 | cat >>confdefs.h <<\_ACEOF | |
44140 | #define wxUSE_ACCESSIBILITY 1 | |
44141 | _ACEOF | |
44142 | ||
44143 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
44144 | fi | |
44145 | ||
38b4a946 VZ |
44146 | if test "$wxUSE_DC_CACHEING" = "yes"; then |
44147 | cat >>confdefs.h <<\_ACEOF | |
44148 | #define wxUSE_DC_CACHEING 1 | |
44149 | _ACEOF | |
44150 | ||
44151 | fi | |
44152 | ||
a848cd7e SC |
44153 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
44154 | cat >>confdefs.h <<\_ACEOF | |
44155 | #define wxUSE_DRAGIMAGE 1 | |
44156 | _ACEOF | |
44157 | ||
44158 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
44159 | fi | |
44160 | ||
44161 | if test "$wxUSE_EXCEPTIONS" = "yes"; then | |
07bea8f0 VS |
44162 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
44163 | { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5 | |
44164 | echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;} | |
44165 | else | |
44166 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
44167 | #define wxUSE_EXCEPTIONS 1 |
44168 | _ACEOF | |
44169 | ||
07bea8f0 VS |
44170 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except" |
44171 | fi | |
a848cd7e SC |
44172 | fi |
44173 | ||
44174 | USE_HTML=0 | |
44175 | if test "$wxUSE_HTML" = "yes"; then | |
44176 | cat >>confdefs.h <<\_ACEOF | |
44177 | #define wxUSE_HTML 1 | |
44178 | _ACEOF | |
44179 | ||
44180 | USE_HTML=1 | |
44181 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
de59c161 RD |
44182 | if test "$wxUSE_MAC" = 1; then |
44183 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl" | |
44184 | fi | |
a848cd7e | 44185 | fi |
646b6ec1 | 44186 | if test "$wxUSE_WEBKIT" = "yes"; then |
1e9e8aba | 44187 | if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then |
07bea8f0 | 44188 | old_CPPFLAGS="$CPPFLAGS" |
c92ad099 | 44189 | CPPFLAGS="-x objective-c++ $CPPFLAGS" |
07bea8f0 VS |
44190 | echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5 |
44191 | echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6 | |
44192 | if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then | |
44193 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44194 | else | |
44195 | cat >conftest.$ac_ext <<_ACEOF | |
44196 | /* confdefs.h. */ | |
44197 | _ACEOF | |
44198 | cat confdefs.h >>conftest.$ac_ext | |
44199 | cat >>conftest.$ac_ext <<_ACEOF | |
44200 | /* end confdefs.h. */ | |
44201 | #include <Carbon/Carbon.h> | |
44202 | ||
44203 | #include <WebKit/HIWebView.h> | |
44204 | _ACEOF | |
44205 | rm -f conftest.$ac_objext | |
44206 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
44207 | (eval $ac_compile) 2>conftest.er1 | |
44208 | ac_status=$? | |
44209 | grep -v '^ *+' conftest.er1 >conftest.err | |
44210 | rm -f conftest.er1 | |
44211 | cat conftest.err >&5 | |
44212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44213 | (exit $ac_status); } && | |
5d7b7554 | 44214 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
07bea8f0 VS |
44215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44216 | (eval $ac_try) 2>&5 | |
44217 | ac_status=$? | |
44218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44219 | (exit $ac_status); }; } && | |
44220 | { ac_try='test -s conftest.$ac_objext' | |
44221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
44222 | (eval $ac_try) 2>&5 | |
44223 | ac_status=$? | |
44224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44225 | (exit $ac_status); }; }; then | |
44226 | ac_cv_header_WebKit_HIWebView_h=yes | |
44227 | else | |
44228 | echo "$as_me: failed program was:" >&5 | |
44229 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44230 | ||
44231 | ac_cv_header_WebKit_HIWebView_h=no | |
44232 | fi | |
44233 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
44234 | fi | |
44235 | echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5 | |
44236 | echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6 | |
44237 | if test $ac_cv_header_WebKit_HIWebView_h = yes; then | |
44238 | ||
44239 | cat >>confdefs.h <<\_ACEOF | |
646b6ec1 VS |
44240 | #define wxUSE_WEBKIT 1 |
44241 | _ACEOF | |
44242 | ||
07bea8f0 VS |
44243 | WEBKIT_LINK="-framework WebKit" |
44244 | ||
44245 | else | |
44246 | ||
44247 | { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5 | |
44248 | echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;} | |
44249 | wxUSE_WEBKIT=no | |
44250 | ||
646b6ec1 VS |
44251 | fi |
44252 | ||
07bea8f0 VS |
44253 | |
44254 | CPPFLAGS="$old_CPPFLAGS" | |
44255 | elif test "$wxUSE_COCOA" = 1; then | |
44256 | cat >>confdefs.h <<\_ACEOF | |
44257 | #define wxUSE_WEBKIT 1 | |
44258 | _ACEOF | |
44259 | ||
44260 | else | |
44261 | wxUSE_WEBKIT=no | |
44262 | fi | |
44263 | fi | |
44264 | ||
9a8f0513 VS |
44265 | USE_XRC=0 |
44266 | if test "$wxUSE_XRC" = "yes"; then | |
d2ebf0b7 VS |
44267 | if test "$wxUSE_XML" != "yes"; then |
44268 | { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5 | |
44269 | echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;} | |
44270 | wxUSE_XRC=no | |
44271 | else | |
44272 | cat >>confdefs.h <<\_ACEOF | |
9a8f0513 VS |
44273 | #define wxUSE_XRC 1 |
44274 | _ACEOF | |
44275 | ||
d2ebf0b7 VS |
44276 | USE_XRC=1 |
44277 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc" | |
44278 | fi | |
9a8f0513 | 44279 | fi |
07bea8f0 | 44280 | |
a848cd7e SC |
44281 | if test "$wxUSE_MENUS" = "yes"; then |
44282 | cat >>confdefs.h <<\_ACEOF | |
44283 | #define wxUSE_MENUS 1 | |
44284 | _ACEOF | |
44285 | ||
44286 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
44287 | fi | |
44288 | ||
44289 | if test "$wxUSE_METAFILE" = "yes"; then | |
44290 | cat >>confdefs.h <<\_ACEOF | |
44291 | #define wxUSE_METAFILE 1 | |
44292 | _ACEOF | |
44293 | ||
44294 | fi | |
44295 | ||
44296 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
44297 | cat >>confdefs.h <<\_ACEOF | |
44298 | #define wxUSE_MIMETYPE 1 | |
44299 | _ACEOF | |
44300 | ||
44301 | fi | |
44302 | ||
44303 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
44304 | cat >>confdefs.h <<\_ACEOF | |
44305 | #define wxUSE_MINIFRAME 1 | |
44306 | _ACEOF | |
44307 | ||
44308 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
44309 | fi | |
44310 | ||
44311 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
44312 | cat >>confdefs.h <<\_ACEOF | |
44313 | #define wxUSE_SYSTEM_OPTIONS 1 | |
44314 | _ACEOF | |
44315 | ||
44316 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ | |
a49baeab | 44317 | "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then |
a848cd7e SC |
44318 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" |
44319 | fi | |
44320 | fi | |
44321 | ||
44322 | ||
44323 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
44324 | cat >>confdefs.h <<\_ACEOF | |
44325 | #define wxUSE_VALIDATORS 1 | |
44326 | _ACEOF | |
44327 | ||
44328 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
44329 | fi | |
44330 | ||
44331 | if test "$wxUSE_PALETTE" = "yes" ; then | |
44332 | cat >>confdefs.h <<\_ACEOF | |
44333 | #define wxUSE_PALETTE 1 | |
44334 | _ACEOF | |
44335 | ||
44336 | fi | |
44337 | ||
44338 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
44339 | LIBS=" -lunicows $LIBS" | |
44340 | fi | |
44341 | ||
91dea314 MW |
44342 | USE_RICHTEXT=0 |
44343 | if test "$wxUSE_RICHTEXT" = "yes"; then | |
44344 | cat >>confdefs.h <<\_ACEOF | |
44345 | #define wxUSE_RICHTEXT 1 | |
44346 | _ACEOF | |
44347 | ||
44348 | USE_RICHTEXT=1 | |
44349 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext" | |
44350 | fi | |
44351 | ||
a848cd7e SC |
44352 | |
44353 | if test "$wxUSE_IMAGE" = "yes" ; then | |
44354 | cat >>confdefs.h <<\_ACEOF | |
44355 | #define wxUSE_IMAGE 1 | |
44356 | _ACEOF | |
44357 | ||
44358 | ||
44359 | if test "$wxUSE_GIF" = "yes" ; then | |
44360 | cat >>confdefs.h <<\_ACEOF | |
44361 | #define wxUSE_GIF 1 | |
44362 | _ACEOF | |
44363 | ||
44364 | fi | |
44365 | ||
44366 | if test "$wxUSE_PCX" = "yes" ; then | |
44367 | cat >>confdefs.h <<\_ACEOF | |
44368 | #define wxUSE_PCX 1 | |
44369 | _ACEOF | |
44370 | ||
44371 | fi | |
44372 | ||
44373 | if test "$wxUSE_IFF" = "yes" ; then | |
44374 | cat >>confdefs.h <<\_ACEOF | |
44375 | #define wxUSE_IFF 1 | |
44376 | _ACEOF | |
44377 | ||
44378 | fi | |
44379 | ||
44380 | if test "$wxUSE_PNM" = "yes" ; then | |
44381 | cat >>confdefs.h <<\_ACEOF | |
44382 | #define wxUSE_PNM 1 | |
44383 | _ACEOF | |
44384 | ||
44385 | fi | |
44386 | ||
44387 | if test "$wxUSE_XPM" = "yes" ; then | |
44388 | cat >>confdefs.h <<\_ACEOF | |
44389 | #define wxUSE_XPM 1 | |
44390 | _ACEOF | |
44391 | ||
44392 | fi | |
44393 | ||
44394 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
44395 | cat >>confdefs.h <<\_ACEOF | |
44396 | #define wxUSE_ICO_CUR 1 | |
44397 | _ACEOF | |
44398 | ||
44399 | fi | |
44400 | fi | |
44401 | ||
44402 | ||
44403 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
44404 | cat >>confdefs.h <<\_ACEOF | |
44405 | #define wxUSE_CHOICEDLG 1 | |
44406 | _ACEOF | |
44407 | ||
44408 | fi | |
44409 | ||
44410 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
44411 | cat >>confdefs.h <<\_ACEOF | |
44412 | #define wxUSE_COLOURDLG 1 | |
44413 | _ACEOF | |
44414 | ||
44415 | fi | |
44416 | ||
44417 | if test "$wxUSE_FILEDLG" = "yes"; then | |
44418 | cat >>confdefs.h <<\_ACEOF | |
44419 | #define wxUSE_FILEDLG 1 | |
44420 | _ACEOF | |
44421 | ||
44422 | fi | |
44423 | ||
44424 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
44425 | cat >>confdefs.h <<\_ACEOF | |
44426 | #define wxUSE_FINDREPLDLG 1 | |
44427 | _ACEOF | |
44428 | ||
44429 | fi | |
44430 | ||
44431 | if test "$wxUSE_FONTDLG" = "yes"; then | |
44432 | cat >>confdefs.h <<\_ACEOF | |
44433 | #define wxUSE_FONTDLG 1 | |
44434 | _ACEOF | |
44435 | ||
44436 | fi | |
44437 | ||
44438 | if test "$wxUSE_DIRDLG" = "yes"; then | |
44439 | if test "$wxUSE_TREECTRL" != "yes"; then | |
44440 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 | |
44441 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
44442 | else | |
44443 | cat >>confdefs.h <<\_ACEOF | |
44444 | #define wxUSE_DIRDLG 1 | |
44445 | _ACEOF | |
44446 | ||
44447 | fi | |
44448 | fi | |
44449 | ||
44450 | if test "$wxUSE_MSGDLG" = "yes"; then | |
44451 | cat >>confdefs.h <<\_ACEOF | |
44452 | #define wxUSE_MSGDLG 1 | |
44453 | _ACEOF | |
44454 | ||
44455 | fi | |
44456 | ||
44457 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
44458 | cat >>confdefs.h <<\_ACEOF | |
44459 | #define wxUSE_NUMBERDLG 1 | |
44460 | _ACEOF | |
44461 | ||
44462 | fi | |
44463 | ||
44464 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
44465 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
44466 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 | |
44467 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
44468 | else | |
44469 | cat >>confdefs.h <<\_ACEOF | |
44470 | #define wxUSE_PROGRESSDLG 1 | |
44471 | _ACEOF | |
44472 | ||
44473 | fi | |
44474 | fi | |
44475 | ||
44476 | if test "$wxUSE_SPLASH" = "yes"; then | |
44477 | cat >>confdefs.h <<\_ACEOF | |
44478 | #define wxUSE_SPLASH 1 | |
44479 | _ACEOF | |
44480 | ||
2057db16 | 44481 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash" |
a848cd7e SC |
44482 | fi |
44483 | ||
44484 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
44485 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
44486 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 | |
44487 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
44488 | else | |
44489 | cat >>confdefs.h <<\_ACEOF | |
44490 | #define wxUSE_STARTUP_TIPS 1 | |
44491 | _ACEOF | |
44492 | ||
44493 | fi | |
44494 | fi | |
44495 | ||
44496 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
44497 | cat >>confdefs.h <<\_ACEOF | |
44498 | #define wxUSE_TEXTDLG 1 | |
44499 | _ACEOF | |
44500 | ||
44501 | fi | |
44502 | ||
44503 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
44504 | cat >>confdefs.h <<\_ACEOF | |
44505 | #define wxUSE_WIZARDDLG 1 | |
44506 | _ACEOF | |
44507 | ||
44508 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
44509 | fi | |
44510 | ||
44511 | ||
f10e38c4 VZ |
44512 | USE_MEDIA=0 |
44513 | ||
ce756cb0 | 44514 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
ce756cb0 RN |
44515 | if test "$wxUSE_GTK" = 1; then |
44516 | wxUSE_GSTREAMER="yes" | |
44517 | ||
f10e38c4 VZ |
44518 | GST_VERSION_MAJOR=0 |
44519 | GST_VERSION_MINOR=10 | |
44520 | GST_VERSION_RELEASE=0 | |
44521 | GSTREAMER_REQ=$GST_VERSION_MAJOR.$GST_VERSION_MINOR.$GST_VERSION_RELEASE | |
44522 | GST_MAJORMINOR=$GST_VERSION_MAJOR.$GST_VERSION_MINOR | |
44523 | ||
44524 | if test "$wxUSE_GSTREAMER8" = "no"; then | |
ce756cb0 | 44525 | |
dae87f93 | 44526 | succeeded=no |
ce756cb0 | 44527 | |
dae87f93 RN |
44528 | if test -z "$PKG_CONFIG"; then |
44529 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
44530 | set dummy pkg-config; ac_word=$2 | |
44531 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
44532 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
44533 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
44534 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44535 | else | |
44536 | case $PKG_CONFIG in | |
44537 | [\\/]* | ?:[\\/]*) | |
44538 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
44539 | ;; | |
44540 | *) | |
44541 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
44542 | for as_dir in $PATH | |
44543 | do | |
44544 | IFS=$as_save_IFS | |
44545 | test -z "$as_dir" && as_dir=. | |
44546 | for ac_exec_ext in '' $ac_executable_extensions; do | |
44547 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
44548 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
44549 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
44550 | break 2 | |
44551 | fi | |
44552 | done | |
44553 | done | |
44554 | ||
44555 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
44556 | ;; | |
44557 | esac | |
44558 | fi | |
44559 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
44560 | ||
44561 | if test -n "$PKG_CONFIG"; then | |
44562 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
44563 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
44564 | else | |
44565 | echo "$as_me:$LINENO: result: no" >&5 | |
44566 | echo "${ECHO_T}no" >&6 | |
44567 | fi | |
44568 | ||
44569 | fi | |
44570 | ||
44571 | if test "$PKG_CONFIG" = "no" ; then | |
44572 | echo "*** The pkg-config script could not be found. Make sure it is" | |
44573 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
44574 | echo "*** to the full path to pkg-config." | |
44575 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
44576 | else | |
44577 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
44578 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
f10e38c4 VZ |
44579 | echo "$as_me:$LINENO: checking for gstreamer-$GST_MAJORMINOR |
44580 | gstreamer-plugins-base-$GST_MAJORMINOR | |
44581 | gconf-2.0" >&5 | |
44582 | echo $ECHO_N "checking for gstreamer-$GST_MAJORMINOR | |
44583 | gstreamer-plugins-base-$GST_MAJORMINOR | |
44584 | gconf-2.0... $ECHO_C" >&6 | |
44585 | ||
44586 | if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR | |
44587 | gstreamer-plugins-base-$GST_MAJORMINOR | |
44588 | gconf-2.0" ; then | |
dae87f93 | 44589 | echo "$as_me:$LINENO: result: yes" >&5 |
ce756cb0 | 44590 | echo "${ECHO_T}yes" >&6 |
dae87f93 | 44591 | succeeded=yes |
ce756cb0 | 44592 | |
f10e38c4 VZ |
44593 | echo "$as_me:$LINENO: checking GST_CFLAGS" >&5 |
44594 | echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6 | |
44595 | GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR | |
44596 | gstreamer-plugins-base-$GST_MAJORMINOR | |
44597 | gconf-2.0"` | |
44598 | echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5 | |
44599 | echo "${ECHO_T}$GST_CFLAGS" >&6 | |
44600 | ||
44601 | echo "$as_me:$LINENO: checking GST_LIBS" >&5 | |
44602 | echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6 | |
44603 | GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR | |
44604 | gstreamer-plugins-base-$GST_MAJORMINOR | |
44605 | gconf-2.0"` | |
44606 | echo "$as_me:$LINENO: result: $GST_LIBS" >&5 | |
44607 | echo "${ECHO_T}$GST_LIBS" >&6 | |
dae87f93 | 44608 | else |
f10e38c4 VZ |
44609 | GST_CFLAGS="" |
44610 | GST_LIBS="" | |
dae87f93 RN |
44611 | ## If we have a custom action on failure, don't print errors, but |
44612 | ## do set a variable so people can do so. | |
f10e38c4 VZ |
44613 | GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR |
44614 | gstreamer-plugins-base-$GST_MAJORMINOR | |
44615 | gconf-2.0"` | |
ce756cb0 | 44616 | |
dae87f93 RN |
44617 | fi |
44618 | ||
44619 | ||
44620 | ||
44621 | else | |
44622 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
44623 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
44624 | fi | |
44625 | fi | |
44626 | ||
44627 | if test $succeeded = yes; then | |
44628 | ||
f10e38c4 VZ |
44629 | CPPFLAGS="$GST_CFLAGS $CPPFLAGS" |
44630 | LIBS="$LIBS $GST_LIBS -lgstinterfaces-$GST_MAJORMINOR" | |
ce756cb0 | 44631 | |
ce756cb0 | 44632 | else |
dae87f93 | 44633 | |
f10e38c4 | 44634 | GST_VERSION_MINOR=8 |
dae87f93 RN |
44635 | |
44636 | fi | |
44637 | ||
f10e38c4 VZ |
44638 | else |
44639 | GST_VERSION_MINOR=8 | |
44640 | fi | |
dae87f93 | 44641 | |
f10e38c4 VZ |
44642 | GSTREAMER_REQ=$GST_VERSION_MAJOR.$GST_VERSION_MINOR.$GST_VERSION_RELEASE |
44643 | GST_MAJORMINOR=$GST_VERSION_MAJOR.$GST_VERSION_MINOR | |
dae87f93 | 44644 | |
f10e38c4 | 44645 | if test x$GST_VERSION_MINOR = x8; then |
dae87f93 | 44646 | |
f10e38c4 | 44647 | succeeded=no |
dae87f93 | 44648 | |
f10e38c4 VZ |
44649 | if test -z "$PKG_CONFIG"; then |
44650 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
44651 | set dummy pkg-config; ac_word=$2 | |
dae87f93 RN |
44652 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
44653 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
f10e38c4 | 44654 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
dae87f93 RN |
44655 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
44656 | else | |
f10e38c4 VZ |
44657 | case $PKG_CONFIG in |
44658 | [\\/]* | ?:[\\/]*) | |
44659 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
44660 | ;; | |
44661 | *) | |
44662 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
dae87f93 RN |
44663 | for as_dir in $PATH |
44664 | do | |
44665 | IFS=$as_save_IFS | |
44666 | test -z "$as_dir" && as_dir=. | |
44667 | for ac_exec_ext in '' $ac_executable_extensions; do | |
44668 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
f10e38c4 | 44669 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
dae87f93 RN |
44670 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
44671 | break 2 | |
ce756cb0 | 44672 | fi |
dae87f93 RN |
44673 | done |
44674 | done | |
44675 | ||
f10e38c4 VZ |
44676 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
44677 | ;; | |
44678 | esac | |
dae87f93 | 44679 | fi |
f10e38c4 VZ |
44680 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
44681 | ||
44682 | if test -n "$PKG_CONFIG"; then | |
44683 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
44684 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
dae87f93 RN |
44685 | else |
44686 | echo "$as_me:$LINENO: result: no" >&5 | |
44687 | echo "${ECHO_T}no" >&6 | |
44688 | fi | |
44689 | ||
f10e38c4 | 44690 | fi |
ce756cb0 | 44691 | |
f10e38c4 VZ |
44692 | if test "$PKG_CONFIG" = "no" ; then |
44693 | echo "*** The pkg-config script could not be found. Make sure it is" | |
44694 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
44695 | echo "*** to the full path to pkg-config." | |
44696 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
44697 | else | |
44698 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
44699 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
44700 | echo "$as_me:$LINENO: checking for gstreamer-$GST_MAJORMINOR | |
44701 | gstreamer-interfaces-$GST_MAJORMINOR | |
44702 | gstreamer-gconf-$GST_MAJORMINOR" >&5 | |
44703 | echo $ECHO_N "checking for gstreamer-$GST_MAJORMINOR | |
44704 | gstreamer-interfaces-$GST_MAJORMINOR | |
44705 | gstreamer-gconf-$GST_MAJORMINOR... $ECHO_C" >&6 | |
44706 | ||
44707 | if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR | |
44708 | gstreamer-interfaces-$GST_MAJORMINOR | |
44709 | gstreamer-gconf-$GST_MAJORMINOR" ; then | |
44710 | echo "$as_me:$LINENO: result: yes" >&5 | |
44711 | echo "${ECHO_T}yes" >&6 | |
44712 | succeeded=yes | |
dae87f93 | 44713 | |
f10e38c4 VZ |
44714 | echo "$as_me:$LINENO: checking GST_CFLAGS" >&5 |
44715 | echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6 | |
44716 | GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR | |
44717 | gstreamer-interfaces-$GST_MAJORMINOR | |
44718 | gstreamer-gconf-$GST_MAJORMINOR"` | |
44719 | echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5 | |
44720 | echo "${ECHO_T}$GST_CFLAGS" >&6 | |
44721 | ||
44722 | echo "$as_me:$LINENO: checking GST_LIBS" >&5 | |
44723 | echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6 | |
44724 | GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR | |
44725 | gstreamer-interfaces-$GST_MAJORMINOR | |
44726 | gstreamer-gconf-$GST_MAJORMINOR"` | |
44727 | echo "$as_me:$LINENO: result: $GST_LIBS" >&5 | |
44728 | echo "${ECHO_T}$GST_LIBS" >&6 | |
44729 | else | |
44730 | GST_CFLAGS="" | |
44731 | GST_LIBS="" | |
44732 | ## If we have a custom action on failure, don't print errors, but | |
44733 | ## do set a variable so people can do so. | |
44734 | GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR | |
44735 | gstreamer-interfaces-$GST_MAJORMINOR | |
44736 | gstreamer-gconf-$GST_MAJORMINOR"` | |
dae87f93 | 44737 | |
dae87f93 RN |
44738 | fi |
44739 | ||
44740 | ||
ce756cb0 | 44741 | |
f10e38c4 VZ |
44742 | else |
44743 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
44744 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
44745 | fi | |
44746 | fi | |
ce756cb0 | 44747 | |
f10e38c4 | 44748 | if test $succeeded = yes; then |
dae87f93 | 44749 | |
f10e38c4 VZ |
44750 | CPPFLAGS="$GST_CFLAGS $CPPFLAGS" |
44751 | LIBS="$LIBS $GST_LIBS" | |
dae87f93 | 44752 | |
f10e38c4 | 44753 | else |
ce756cb0 | 44754 | |
f10e38c4 VZ |
44755 | { echo "$as_me:$LINENO: WARNING: Proper GStreamer .8/.10 installation not found" >&5 |
44756 | echo "$as_me: WARNING: Proper GStreamer .8/.10 installation not found" >&2;} | |
44757 | wxUSE_GSTREAMER="no" | |
ce756cb0 | 44758 | |
f10e38c4 | 44759 | fi |
ce756cb0 | 44760 | |
dae87f93 | 44761 | fi |
ce756cb0 | 44762 | |
f10e38c4 | 44763 | |
dae87f93 RN |
44764 | if test "$wxUSE_GSTREAMER" = "yes"; then |
44765 | cat >>confdefs.h <<\_ACEOF | |
ce756cb0 RN |
44766 | #define wxUSE_GSTREAMER 1 |
44767 | _ACEOF | |
44768 | ||
dae87f93 RN |
44769 | echo "$as_me:$LINENO: result: GStreamer detection successful" >&5 |
44770 | echo "${ECHO_T}GStreamer detection successful" >&6 | |
ce756cb0 RN |
44771 | fi |
44772 | fi | |
f10e38c4 | 44773 | USE_MEDIA=1 |
ce756cb0 RN |
44774 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer" |
44775 | cat >>confdefs.h <<\_ACEOF | |
44776 | #define wxUSE_MEDIACTRL 1 | |
44777 | _ACEOF | |
44778 | ||
44779 | fi | |
44780 | ||
44781 | ||
a848cd7e SC |
44782 | if test "$cross_compiling" = "yes"; then |
44783 | OSINFO="\"$host\"" | |
44784 | else | |
44785 | OSINFO=`uname -s -r -m` | |
44786 | OSINFO="\"$OSINFO\"" | |
44787 | fi | |
44788 | ||
44789 | cat >>confdefs.h <<_ACEOF | |
44790 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
44791 | _ACEOF | |
44792 | ||
44793 | ||
44794 | ||
44795 | if test "x$prefix" != "xNONE"; then | |
44796 | wxPREFIX=$prefix | |
44797 | else | |
44798 | wxPREFIX=$ac_default_prefix | |
44799 | fi | |
44800 | ||
44801 | cat >>confdefs.h <<_ACEOF | |
44802 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
44803 | _ACEOF | |
44804 | ||
44805 | ||
a848cd7e SC |
44806 | |
44807 | ||
44808 | CORE_BASE_LIBS="net base" | |
44809 | CORE_GUI_LIBS="adv core" | |
44810 | ||
44811 | if test "$wxUSE_XML" = "yes" ; then | |
44812 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
44813 | fi | |
44814 | if test "$wxUSE_ODBC" != "no" ; then | |
44815 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
44816 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
44817 | fi | |
44818 | if test "$wxUSE_HTML" = "yes" ; then | |
44819 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
44820 | fi | |
61639efb VZ |
44821 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
44822 | CORE_GUI_LIBS="qa $CORE_GUI_LIBS" | |
44823 | fi | |
9a8f0513 VS |
44824 | if test "$wxUSE_XRC" = "yes" ; then |
44825 | CORE_GUI_LIBS="xrc $CORE_GUI_LIBS" | |
44826 | fi | |
a848cd7e SC |
44827 | |
44828 | if test "$wxUSE_GUI" != "yes"; then | |
44829 | CORE_GUI_LIBS="" | |
44830 | fi | |
44831 | ||
44832 | ||
44833 | ||
44834 | ||
44835 | ||
5d7b7554 VZ |
44836 | ac_ext=c |
44837 | ac_cpp='$CPP $CPPFLAGS' | |
44838 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
44839 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
44840 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
44841 | ||
a848cd7e SC |
44842 | |
44843 | ||
a848cd7e | 44844 | if test "$wxUSE_MAC" = 1 ; then |
a98bf0c0 | 44845 | if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then |
1e9e8aba DE |
44846 | if test "$USE_DARWIN" = 1; then |
44847 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
44848 | else | |
44849 | LDFLAGS="$LDFLAGS -lQuickTimeLib" | |
44850 | fi | |
07bea8f0 | 44851 | fi |
5dcf30a0 | 44852 | if test "$USE_DARWIN" = 1; then |
1e9e8aba DE |
44853 | LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System" |
44854 | else | |
44855 | LDFLAGS="$LDFLAGS -lCarbonLib" | |
5dcf30a0 | 44856 | fi |
a848cd7e SC |
44857 | fi |
44858 | if test "$wxUSE_COCOA" = 1 ; then | |
4cb1d3da | 44859 | LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa" |
4fc81cbc RN |
44860 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
44861 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
44862 | fi | |
a848cd7e | 44863 | fi |
19b27e78 MW |
44864 | if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then |
44865 | LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices" | |
44866 | fi | |
a848cd7e | 44867 | |
a848cd7e SC |
44868 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" |
44869 | ||
a848cd7e SC |
44870 | if test "$wxUSE_GUI" = "yes"; then |
44871 | ||
44872 | ||
8bce5cda MW |
44873 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \ |
44874 | dynamic erase event exec font image minimal mobile \ | |
44875 | mobile/wxedit mobile/styles propsize render \ | |
9e39d889 | 44876 | rotate shaped vscroll widgets" |
a848cd7e SC |
44877 | |
44878 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
44879 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
44880 | fi | |
0b78747f | 44881 | if test "$TOOLKIT" = "MSW"; then |
8bce5cda MW |
44882 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest" |
44883 | if test "$wxUSE_UNIVERSAL" != "yes"; then | |
44884 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg" | |
44885 | fi | |
44886 | fi | |
44887 | if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then | |
44888 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw" | |
0b78747f | 44889 | fi |
a848cd7e SC |
44890 | else |
44891 | SAMPLES_SUBDIRS="console" | |
44892 | fi | |
44893 | ||
44894 | ||
48f625bc | 44895 | if test "x$INTELCC" = "xyes" ; then |
17a1ebd1 VZ |
44896 | CWARNINGS="-Wall -wd810,869,981,1418,1572,1684" |
44897 | elif test "$GCC" = yes ; then | |
44898 | CWARNINGS="-Wall -Wundef" | |
44899 | fi | |
44900 | ||
48f625bc | 44901 | if test "x$INTELCXX" = "xyes" ; then |
7f47faf4 | 44902 | CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419" |
17a1ebd1 VZ |
44903 | elif test "$GXX" = yes ; then |
44904 | CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy" | |
6ebeb4c7 | 44905 | fi |
a848cd7e | 44906 | |
a848cd7e | 44907 | |
5ff751d6 VZ |
44908 | WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS` |
44909 | WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS` | |
44910 | ||
44911 | ||
c92ad099 | 44912 | CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \ |
bc6ee4ae | 44913 | -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \ |
c92ad099 VZ |
44914 | -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \ |
44915 | $CPPFLAGS ` | |
5ff751d6 | 44916 | |
8aeeb05c | 44917 | C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS" |
c92ad099 | 44918 | CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS ` |
9cbac6d1 | 44919 | CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS ` |
5ff751d6 VZ |
44920 | |
44921 | WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS` | |
44922 | ||
a848cd7e | 44923 | |
95986553 DE |
44924 | if test "x$MWCC" = "xyes"; then |
44925 | ||
44926 | CC="$CC -cwd source -I-" | |
44927 | CXX="$CXX -cwd source -I-" | |
44928 | fi | |
44929 | ||
a848cd7e | 44930 | |
0c3c69fc | 44931 | LIBS=`echo $LIBS` |
a848cd7e SC |
44932 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
44933 | EXTRALIBS_XML="$EXPAT_LINK" | |
44934 | EXTRALIBS_HTML="$MSPACK_LINK" | |
44935 | EXTRALIBS_ODBC="$ODBC_LINK" | |
44936 | if test "$wxUSE_GUI" = "yes"; then | |
2b850ae1 | 44937 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT` |
a848cd7e SC |
44938 | fi |
44939 | if test "$wxUSE_OPENGL" = "yes"; then | |
44940 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
44941 | fi | |
44942 | ||
8aeeb05c | 44943 | LDFLAGS="$LDFLAGS $PROFILE_FLAGS" |
a848cd7e | 44944 | |
5ff751d6 | 44945 | WXCONFIG_LIBS="$LIBS" |
a848cd7e SC |
44946 | |
44947 | if test "$wxUSE_REGEX" = "builtin" ; then | |
74802184 | 44948 | wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty" |
a848cd7e SC |
44949 | fi |
44950 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
74802184 | 44951 | wxconfig_3rdparty="expat $wxconfig_3rdparty" |
a848cd7e SC |
44952 | fi |
44953 | if test "$wxUSE_ODBC" = "builtin" ; then | |
74802184 | 44954 | wxconfig_3rdparty="odbc $wxconfig_3rdparty" |
a848cd7e SC |
44955 | fi |
44956 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
74802184 | 44957 | wxconfig_3rdparty="tiff $wxconfig_3rdparty" |
a848cd7e SC |
44958 | fi |
44959 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
74802184 | 44960 | wxconfig_3rdparty="jpeg $wxconfig_3rdparty" |
a848cd7e SC |
44961 | fi |
44962 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
74802184 | 44963 | wxconfig_3rdparty="png $wxconfig_3rdparty" |
a848cd7e SC |
44964 | fi |
44965 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
74802184 | 44966 | wxconfig_3rdparty="zlib $wxconfig_3rdparty" |
a848cd7e SC |
44967 | fi |
44968 | ||
44969 | for i in $wxconfig_3rdparty ; do | |
5ff751d6 | 44970 | WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS" |
a848cd7e SC |
44971 | done |
44972 | ||
44973 | ||
44974 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then | |
44975 | WXUNIV=1 | |
44976 | else | |
44977 | WXUNIV=0 | |
44978 | fi | |
44979 | ||
44980 | ||
44981 | ||
44982 | ||
44983 | ||
44984 | ||
44985 | ||
44986 | ||
44987 | ||
44988 | if test $wxUSE_MONOLITHIC = "yes" ; then | |
44989 | MONOLITHIC=1 | |
44990 | else | |
44991 | MONOLITHIC=0 | |
44992 | fi | |
44993 | ||
44994 | if test $wxUSE_PLUGINS = "yes" ; then | |
44995 | USE_PLUGINS=1 | |
44996 | else | |
44997 | USE_PLUGINS=0 | |
44998 | fi | |
44999 | ||
45000 | if test $wxUSE_ODBC != "no" ; then | |
45001 | USE_ODBC=1 | |
45002 | else | |
45003 | USE_ODBC=0 | |
45004 | fi | |
45005 | ||
16358932 VZ |
45006 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
45007 | USE_QA=1 | |
45008 | else | |
45009 | USE_QA=0 | |
45010 | fi | |
45011 | ||
a848cd7e SC |
45012 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then |
45013 | OFFICIAL_BUILD=1 | |
45014 | else | |
45015 | OFFICIAL_BUILD=0 | |
45016 | fi | |
45017 | ||
45018 | ||
45019 | ||
45020 | ||
45021 | ||
45022 | ||
45023 | ||
45024 | ||
45025 | ||
45026 | ||
45027 | ||
45028 | ||
45029 | ||
45030 | ||
45031 | ||
45032 | ||
45033 | ||
45034 | ||
45035 | ||
ceec2216 | 45036 | |
d1c38808 | 45037 | |
3565d135 | 45038 | |
2b850ae1 | 45039 | |
a848cd7e SC |
45040 | |
45041 | ||
45042 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` | |
45043 | ||
45044 | ||
45045 | ||
45046 | ||
45047 | ||
45048 | ||
45049 | ||
45050 | ||
4d4ff94c VZ |
45051 | case "$TOOLKIT" in |
45052 | GTK) | |
45053 | TOOLKIT_USER="GTK+" | |
45054 | if test "$WXGTK20" = 1; then | |
45055 | TOOLKIT_USER="$TOOLKIT_USER 2" | |
45056 | fi | |
9a8f0513 | 45057 | ;; |
4d4ff94c VZ |
45058 | |
45059 | *) | |
45060 | TOOLKIT_USER=$TOOLKIT_LOWERCASE | |
9a8f0513 | 45061 | ;; |
4d4ff94c | 45062 | esac |
a848cd7e | 45063 | |
fb00f58d JS |
45064 | if test "$wxUSE_WINE" = "yes"; then |
45065 | BAKEFILE_FORCE_PLATFORM=win32 | |
45066 | fi | |
45067 | ||
7afc46ab KO |
45068 | if test "$wxUSE_MAC" = 1 ; then |
45069 | if test "$wxUSE_UNIVERSAL_BINARY" = "yes" ; then | |
45070 | CXXFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $CXXFLAGS" | |
45071 | CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $CFLAGS" | |
45072 | LDFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $LDFLAGS" | |
45073 | bk_use_pch=no | |
45074 | fi | |
45075 | # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)? | |
45076 | # The makefile currently uses AR and RANLIB, which libtool apparently supercedes. | |
45077 | # TODO: how can we avoid a hardwired reference to the SDK, above? (Someone used -lSystemStubs to avoid it) | |
45078 | fi | |
45079 | ||
9a8f0513 | 45080 | |
1e9e8aba DE |
45081 | |
45082 | ||
a848cd7e | 45083 | if test "x$BAKEFILE_HOST" = "x"; then |
f10e38c4 VZ |
45084 | if test "x${host}" = "x" ; then |
45085 | { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5 | |
45086 | echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;} | |
45087 | { (exit 1); exit 1; }; } | |
45088 | fi | |
45089 | ||
a848cd7e SC |
45090 | BAKEFILE_HOST="${host}" |
45091 | fi | |
45092 | ||
45093 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then | |
45094 | ||
45095 | if test -n "$ac_tool_prefix"; then | |
45096 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
45097 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
45098 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45099 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45100 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
45101 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45102 | else | |
45103 | if test -n "$RANLIB"; then | |
45104 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
45105 | else | |
45106 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45107 | for as_dir in $PATH | |
45108 | do | |
45109 | IFS=$as_save_IFS | |
45110 | test -z "$as_dir" && as_dir=. | |
45111 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45112 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45113 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
45114 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45115 | break 2 | |
45116 | fi | |
45117 | done | |
45118 | done | |
45119 | ||
45120 | fi | |
45121 | fi | |
45122 | RANLIB=$ac_cv_prog_RANLIB | |
45123 | if test -n "$RANLIB"; then | |
45124 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
45125 | echo "${ECHO_T}$RANLIB" >&6 | |
45126 | else | |
45127 | echo "$as_me:$LINENO: result: no" >&5 | |
45128 | echo "${ECHO_T}no" >&6 | |
45129 | fi | |
45130 | ||
45131 | fi | |
45132 | if test -z "$ac_cv_prog_RANLIB"; then | |
45133 | ac_ct_RANLIB=$RANLIB | |
45134 | # Extract the first word of "ranlib", so it can be a program name with args. | |
45135 | set dummy ranlib; ac_word=$2 | |
45136 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45137 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45138 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
45139 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45140 | else | |
45141 | if test -n "$ac_ct_RANLIB"; then | |
45142 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
45143 | else | |
45144 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45145 | for as_dir in $PATH | |
45146 | do | |
45147 | IFS=$as_save_IFS | |
45148 | test -z "$as_dir" && as_dir=. | |
45149 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45150 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45151 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
45152 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45153 | break 2 | |
45154 | fi | |
45155 | done | |
45156 | done | |
45157 | ||
45158 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
45159 | fi | |
45160 | fi | |
45161 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
45162 | if test -n "$ac_ct_RANLIB"; then | |
45163 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
45164 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
45165 | else | |
45166 | echo "$as_me:$LINENO: result: no" >&5 | |
45167 | echo "${ECHO_T}no" >&6 | |
45168 | fi | |
45169 | ||
45170 | RANLIB=$ac_ct_RANLIB | |
45171 | else | |
45172 | RANLIB="$ac_cv_prog_RANLIB" | |
45173 | fi | |
45174 | ||
45175 | # Find a good install program. We prefer a C program (faster), | |
45176 | # so one script is as good as another. But avoid the broken or | |
45177 | # incompatible versions: | |
45178 | # SysV /etc/install, /usr/sbin/install | |
45179 | # SunOS /usr/etc/install | |
45180 | # IRIX /sbin/install | |
45181 | # AIX /bin/install | |
45182 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
45183 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
45184 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
45185 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 45186 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
45187 | # ./install, which can be erroneously created by make from ./install.sh. |
45188 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
45189 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
45190 | if test -z "$INSTALL"; then | |
45191 | if test "${ac_cv_path_install+set}" = set; then | |
45192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45193 | else | |
45194 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45195 | for as_dir in $PATH | |
45196 | do | |
45197 | IFS=$as_save_IFS | |
45198 | test -z "$as_dir" && as_dir=. | |
45199 | # Account for people who put trailing slashes in PATH elements. | |
45200 | case $as_dir/ in | |
45201 | ./ | .// | /cC/* | \ | |
45202 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 45203 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
45204 | /usr/ucb/* ) ;; |
45205 | *) | |
45206 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
45207 | # Don't use installbsd from OSF since it installs stuff as root | |
45208 | # by default. | |
45209 | for ac_prog in ginstall scoinst install; do | |
45210 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
45211 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
45212 | if test $ac_prog = install && | |
45213 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
45214 | # AIX install. It has an incompatible calling convention. | |
45215 | : | |
45216 | elif test $ac_prog = install && | |
45217 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
45218 | # program-specific install script used by HP pwplus--don't use. | |
45219 | : | |
45220 | else | |
45221 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
45222 | break 3 | |
45223 | fi | |
45224 | fi | |
a848cd7e SC |
45225 | done |
45226 | done | |
45227 | ;; | |
45228 | esac | |
45229 | done | |
45230 | ||
45231 | ||
45232 | fi | |
45233 | if test "${ac_cv_path_install+set}" = set; then | |
45234 | INSTALL=$ac_cv_path_install | |
45235 | else | |
45236 | # As a last resort, use the slow shell script. We don't cache a | |
45237 | # path for INSTALL within a source directory, because that will | |
45238 | # break other packages using the cache if that directory is | |
45239 | # removed, or if the path is relative. | |
45240 | INSTALL=$ac_install_sh | |
45241 | fi | |
45242 | fi | |
45243 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
45244 | echo "${ECHO_T}$INSTALL" >&6 | |
45245 | ||
45246 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
45247 | # It thinks the first close brace ends the variable substitution. | |
45248 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
45249 | ||
45250 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
45251 | ||
45252 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
45253 | ||
45254 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
45255 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
45256 | LN_S=$as_ln_s | |
45257 | if test "$LN_S" = "ln -s"; then | |
45258 | echo "$as_me:$LINENO: result: yes" >&5 | |
45259 | echo "${ECHO_T}yes" >&6 | |
45260 | else | |
45261 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
45262 | echo "${ECHO_T}no, using $LN_S" >&6 | |
45263 | fi | |
45264 | ||
45265 | ||
45266 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
45267 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 45268 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
45269 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
45270 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45271 | else | |
45272 | cat >conftest.make <<\_ACEOF | |
45273 | all: | |
45274 | @echo 'ac_maketemp="$(MAKE)"' | |
45275 | _ACEOF | |
45276 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
45277 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
45278 | if test -n "$ac_maketemp"; then | |
45279 | eval ac_cv_prog_make_${ac_make}_set=yes | |
45280 | else | |
45281 | eval ac_cv_prog_make_${ac_make}_set=no | |
45282 | fi | |
45283 | rm -f conftest.make | |
45284 | fi | |
45285 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
45286 | echo "$as_me:$LINENO: result: yes" >&5 | |
45287 | echo "${ECHO_T}yes" >&6 | |
45288 | SET_MAKE= | |
45289 | else | |
45290 | echo "$as_me:$LINENO: result: no" >&5 | |
45291 | echo "${ECHO_T}no" >&6 | |
45292 | SET_MAKE="MAKE=${MAKE-make}" | |
45293 | fi | |
45294 | ||
45295 | ||
45296 | ||
45297 | if test -n "$ac_tool_prefix"; then | |
45298 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
45299 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
45300 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45301 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45302 | if test "${ac_cv_prog_AR+set}" = set; then | |
45303 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45304 | else | |
45305 | if test -n "$AR"; then | |
45306 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
45307 | else | |
45308 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45309 | for as_dir in $PATH | |
45310 | do | |
45311 | IFS=$as_save_IFS | |
45312 | test -z "$as_dir" && as_dir=. | |
45313 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45314 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45315 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
45316 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45317 | break 2 | |
45318 | fi | |
45319 | done | |
45320 | done | |
45321 | ||
45322 | fi | |
45323 | fi | |
45324 | AR=$ac_cv_prog_AR | |
45325 | if test -n "$AR"; then | |
45326 | echo "$as_me:$LINENO: result: $AR" >&5 | |
45327 | echo "${ECHO_T}$AR" >&6 | |
45328 | else | |
45329 | echo "$as_me:$LINENO: result: no" >&5 | |
45330 | echo "${ECHO_T}no" >&6 | |
45331 | fi | |
45332 | ||
45333 | fi | |
45334 | if test -z "$ac_cv_prog_AR"; then | |
45335 | ac_ct_AR=$AR | |
45336 | # Extract the first word of "ar", so it can be a program name with args. | |
45337 | set dummy ar; ac_word=$2 | |
45338 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45339 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45340 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
45341 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45342 | else | |
45343 | if test -n "$ac_ct_AR"; then | |
45344 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
45345 | else | |
45346 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45347 | for as_dir in $PATH | |
45348 | do | |
45349 | IFS=$as_save_IFS | |
45350 | test -z "$as_dir" && as_dir=. | |
45351 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45352 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45353 | ac_cv_prog_ac_ct_AR="ar" | |
45354 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45355 | break 2 | |
45356 | fi | |
45357 | done | |
45358 | done | |
45359 | ||
45360 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
45361 | fi | |
45362 | fi | |
45363 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
45364 | if test -n "$ac_ct_AR"; then | |
45365 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
45366 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
45367 | else | |
45368 | echo "$as_me:$LINENO: result: no" >&5 | |
45369 | echo "${ECHO_T}no" >&6 | |
45370 | fi | |
45371 | ||
45372 | AR=$ac_ct_AR | |
45373 | else | |
45374 | AR="$ac_cv_prog_AR" | |
45375 | fi | |
45376 | ||
45377 | if test -n "$ac_tool_prefix"; then | |
45378 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
45379 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
45380 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45381 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45382 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
45383 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45384 | else | |
45385 | if test -n "$STRIP"; then | |
45386 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
45387 | else | |
45388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45389 | for as_dir in $PATH | |
45390 | do | |
45391 | IFS=$as_save_IFS | |
45392 | test -z "$as_dir" && as_dir=. | |
45393 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45394 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45395 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
45396 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45397 | break 2 | |
45398 | fi | |
45399 | done | |
45400 | done | |
45401 | ||
45402 | fi | |
45403 | fi | |
45404 | STRIP=$ac_cv_prog_STRIP | |
45405 | if test -n "$STRIP"; then | |
45406 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
45407 | echo "${ECHO_T}$STRIP" >&6 | |
45408 | else | |
45409 | echo "$as_me:$LINENO: result: no" >&5 | |
45410 | echo "${ECHO_T}no" >&6 | |
45411 | fi | |
45412 | ||
45413 | fi | |
45414 | if test -z "$ac_cv_prog_STRIP"; then | |
45415 | ac_ct_STRIP=$STRIP | |
45416 | # Extract the first word of "strip", so it can be a program name with args. | |
45417 | set dummy strip; ac_word=$2 | |
45418 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45419 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45420 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
45421 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45422 | else | |
45423 | if test -n "$ac_ct_STRIP"; then | |
45424 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
45425 | else | |
45426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45427 | for as_dir in $PATH | |
45428 | do | |
45429 | IFS=$as_save_IFS | |
45430 | test -z "$as_dir" && as_dir=. | |
45431 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45432 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45433 | ac_cv_prog_ac_ct_STRIP="strip" | |
45434 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45435 | break 2 | |
45436 | fi | |
45437 | done | |
45438 | done | |
45439 | ||
45440 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
45441 | fi | |
45442 | fi | |
45443 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
45444 | if test -n "$ac_ct_STRIP"; then | |
45445 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
45446 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
45447 | else | |
45448 | echo "$as_me:$LINENO: result: no" >&5 | |
45449 | echo "${ECHO_T}no" >&6 | |
45450 | fi | |
45451 | ||
45452 | STRIP=$ac_ct_STRIP | |
45453 | else | |
45454 | STRIP="$ac_cv_prog_STRIP" | |
45455 | fi | |
45456 | ||
45457 | if test -n "$ac_tool_prefix"; then | |
45458 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
45459 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
45460 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45461 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45462 | if test "${ac_cv_prog_NM+set}" = set; then | |
45463 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45464 | else | |
45465 | if test -n "$NM"; then | |
45466 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
45467 | else | |
45468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45469 | for as_dir in $PATH | |
45470 | do | |
45471 | IFS=$as_save_IFS | |
45472 | test -z "$as_dir" && as_dir=. | |
45473 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45474 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45475 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
45476 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45477 | break 2 | |
45478 | fi | |
45479 | done | |
45480 | done | |
45481 | ||
45482 | fi | |
45483 | fi | |
45484 | NM=$ac_cv_prog_NM | |
45485 | if test -n "$NM"; then | |
45486 | echo "$as_me:$LINENO: result: $NM" >&5 | |
45487 | echo "${ECHO_T}$NM" >&6 | |
45488 | else | |
45489 | echo "$as_me:$LINENO: result: no" >&5 | |
45490 | echo "${ECHO_T}no" >&6 | |
45491 | fi | |
45492 | ||
45493 | fi | |
45494 | if test -z "$ac_cv_prog_NM"; then | |
45495 | ac_ct_NM=$NM | |
45496 | # Extract the first word of "nm", so it can be a program name with args. | |
45497 | set dummy nm; ac_word=$2 | |
45498 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45499 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45500 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
45501 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45502 | else | |
45503 | if test -n "$ac_ct_NM"; then | |
45504 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
45505 | else | |
45506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45507 | for as_dir in $PATH | |
45508 | do | |
45509 | IFS=$as_save_IFS | |
45510 | test -z "$as_dir" && as_dir=. | |
45511 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45512 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45513 | ac_cv_prog_ac_ct_NM="nm" | |
45514 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45515 | break 2 | |
45516 | fi | |
45517 | done | |
45518 | done | |
45519 | ||
45520 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
45521 | fi | |
45522 | fi | |
45523 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
45524 | if test -n "$ac_ct_NM"; then | |
45525 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
45526 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
45527 | else | |
45528 | echo "$as_me:$LINENO: result: no" >&5 | |
45529 | echo "${ECHO_T}no" >&6 | |
45530 | fi | |
45531 | ||
45532 | NM=$ac_ct_NM | |
45533 | else | |
45534 | NM="$ac_cv_prog_NM" | |
45535 | fi | |
45536 | ||
45537 | ||
45538 | case ${BAKEFILE_HOST} in | |
45539 | *-hp-hpux* ) | |
1e9e8aba | 45540 | INSTALL_DIR="mkdir -p" |
a848cd7e SC |
45541 | ;; |
45542 | *) INSTALL_DIR="$INSTALL -d" | |
45543 | ;; | |
45544 | esac | |
45545 | ||
45546 | ||
45547 | LDFLAGS_GUI= | |
45548 | case ${BAKEFILE_HOST} in | |
45549 | *-*-cygwin* | *-*-mingw32* ) | |
45550 | LDFLAGS_GUI="-mwindows" | |
45551 | esac | |
45552 | ||
45553 | ||
45554 | fi | |
45555 | ||
45556 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
45557 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
45558 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then | |
45559 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45560 | else | |
45561 | ||
45562 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
45563 | egrep -s GNU > /dev/null); then | |
45564 | bakefile_cv_prog_makeisgnu="yes" | |
45565 | else | |
45566 | bakefile_cv_prog_makeisgnu="no" | |
45567 | fi | |
45568 | ||
45569 | fi | |
45570 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 | |
45571 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
45572 | ||
45573 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
45574 | IF_GNU_MAKE="" | |
45575 | else | |
45576 | IF_GNU_MAKE="#" | |
45577 | fi | |
45578 | ||
45579 | ||
45580 | ||
45581 | PLATFORM_UNIX=0 | |
45582 | PLATFORM_WIN32=0 | |
45583 | PLATFORM_MSDOS=0 | |
45584 | PLATFORM_MAC=0 | |
1e9e8aba | 45585 | PLATFORM_MACOS=0 |
a848cd7e SC |
45586 | PLATFORM_MACOSX=0 |
45587 | PLATFORM_OS2=0 | |
1e9e8aba | 45588 | PLATFORM_BEOS=0 |
a848cd7e SC |
45589 | |
45590 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then | |
45591 | case "${BAKEFILE_HOST}" in | |
810b94f0 | 45592 | *-*-mingw32* ) |
a848cd7e SC |
45593 | PLATFORM_WIN32=1 |
45594 | ;; | |
45595 | *-pc-msdosdjgpp ) | |
45596 | PLATFORM_MSDOS=1 | |
45597 | ;; | |
45598 | *-pc-os2_emx | *-pc-os2-emx ) | |
45599 | PLATFORM_OS2=1 | |
45600 | ;; | |
47bd5406 | 45601 | *-*-darwin* ) |
a848cd7e SC |
45602 | PLATFORM_MAC=1 |
45603 | PLATFORM_MACOSX=1 | |
45604 | ;; | |
1e9e8aba DE |
45605 | *-*-beos* ) |
45606 | PLATFORM_BEOS=1 | |
45607 | ;; | |
45608 | powerpc-apple-macos* ) | |
45609 | PLATFORM_MAC=1 | |
45610 | PLATFORM_MACOS=1 | |
45611 | ;; | |
a848cd7e SC |
45612 | * ) |
45613 | PLATFORM_UNIX=1 | |
45614 | ;; | |
45615 | esac | |
45616 | else | |
45617 | case "$BAKEFILE_FORCE_PLATFORM" in | |
45618 | win32 ) | |
45619 | PLATFORM_WIN32=1 | |
45620 | ;; | |
45621 | msdos ) | |
45622 | PLATFORM_MSDOS=1 | |
45623 | ;; | |
45624 | os2 ) | |
45625 | PLATFORM_OS2=1 | |
45626 | ;; | |
45627 | darwin ) | |
45628 | PLATFORM_MAC=1 | |
45629 | PLATFORM_MACOSX=1 | |
45630 | ;; | |
45631 | unix ) | |
45632 | PLATFORM_UNIX=1 | |
45633 | ;; | |
1e9e8aba DE |
45634 | beos ) |
45635 | PLATFORM_BEOS=1 | |
45636 | ;; | |
a848cd7e SC |
45637 | * ) |
45638 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
45639 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
45640 | { (exit 1); exit 1; }; } | |
45641 | ;; | |
45642 | esac | |
45643 | fi | |
45644 | ||
45645 | ||
45646 | ||
45647 | ||
45648 | ||
45649 | ||
45650 | ||
45651 | ||
45652 | ||
1e9e8aba DE |
45653 | |
45654 | ||
a848cd7e SC |
45655 | # Check whether --enable-omf or --disable-omf was given. |
45656 | if test "${enable_omf+set}" = set; then | |
45657 | enableval="$enable_omf" | |
45658 | bk_os2_use_omf="$enableval" | |
45659 | fi; | |
45660 | ||
45661 | case "${BAKEFILE_HOST}" in | |
45662 | *-*-darwin* ) | |
47bd5406 VZ |
45663 | if test "x$GCC" = "xyes"; then |
45664 | CFLAGS="$CFLAGS -fno-common" | |
45665 | CXXFLAGS="$CXXFLAGS -fno-common" | |
45666 | fi | |
45667 | if test "x$XLCC" = "xyes"; then | |
45668 | CFLAGS="$CFLAGS -qnocommon" | |
45669 | CXXFLAGS="$CXXFLAGS -qnocommon" | |
45670 | fi | |
a848cd7e SC |
45671 | ;; |
45672 | ||
45673 | *-pc-os2_emx | *-pc-os2-emx ) | |
45674 | if test "x$bk_os2_use_omf" = "xyes" ; then | |
45675 | AR=emxomfar | |
45676 | RANLIB=: | |
45677 | LDFLAGS="-Zomf $LDFLAGS" | |
45678 | CFLAGS="-Zomf $CFLAGS" | |
45679 | CXXFLAGS="-Zomf $CXXFLAGS" | |
45680 | OS2_LIBEXT="lib" | |
45681 | else | |
45682 | OS2_LIBEXT="a" | |
45683 | fi | |
45684 | ;; | |
1e9e8aba DE |
45685 | |
45686 | i*86-*-beos* ) | |
45687 | LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS" | |
45688 | ;; | |
a848cd7e SC |
45689 | esac |
45690 | ||
45691 | ||
45692 | SO_SUFFIX="so" | |
45693 | SO_SUFFIX_MODULE="so" | |
45694 | EXEEXT="" | |
45695 | LIBPREFIX="lib" | |
45696 | LIBEXT=".a" | |
45697 | DLLPREFIX="lib" | |
45698 | DLLPREFIX_MODULE="" | |
45699 | DLLIMP_SUFFIX="" | |
810b94f0 | 45700 | dlldir="$libdir" |
a848cd7e SC |
45701 | |
45702 | case "${BAKEFILE_HOST}" in | |
45703 | *-hp-hpux* ) | |
45704 | SO_SUFFIX="sl" | |
45705 | SO_SUFFIX_MODULE="sl" | |
45706 | ;; | |
45707 | *-*-aix* ) | |
45708 | SO_SUFFIX="a" | |
45709 | SO_SUFFIX_MODULE="a" | |
45710 | ;; | |
810b94f0 MW |
45711 | *-*-cygwin* ) |
45712 | SO_SUFFIX="dll" | |
45713 | SO_SUFFIX_MODULE="dll" | |
45714 | DLLIMP_SUFFIX="dll.a" | |
45715 | EXEEXT=".exe" | |
45716 | DLLPREFIX="cyg" | |
45717 | dlldir="$bindir" | |
45718 | ;; | |
45719 | *-*-mingw32* ) | |
a848cd7e SC |
45720 | SO_SUFFIX="dll" |
45721 | SO_SUFFIX_MODULE="dll" | |
45722 | DLLIMP_SUFFIX="dll.a" | |
45723 | EXEEXT=".exe" | |
45724 | DLLPREFIX="" | |
810b94f0 | 45725 | dlldir="$bindir" |
a848cd7e SC |
45726 | ;; |
45727 | *-pc-msdosdjgpp ) | |
45728 | EXEEXT=".exe" | |
45729 | DLLPREFIX="" | |
810b94f0 | 45730 | dlldir="$bindir" |
a848cd7e SC |
45731 | ;; |
45732 | *-pc-os2_emx | *-pc-os2-emx ) | |
45733 | SO_SUFFIX="dll" | |
45734 | SO_SUFFIX_MODULE="dll" | |
45735 | DLLIMP_SUFFIX=$OS2_LIBEXT | |
45736 | EXEEXT=".exe" | |
45737 | DLLPREFIX="" | |
45738 | LIBPREFIX="" | |
45739 | LIBEXT=".$OS2_LIBEXT" | |
810b94f0 | 45740 | dlldir="$bindir" |
a848cd7e | 45741 | ;; |
47bd5406 | 45742 | *-*-darwin* ) |
a848cd7e SC |
45743 | SO_SUFFIX="dylib" |
45744 | SO_SUFFIX_MODULE="bundle" | |
45745 | ;; | |
45746 | esac | |
45747 | ||
45748 | if test "x$DLLIMP_SUFFIX" = "x" ; then | |
45749 | DLLIMP_SUFFIX="$SO_SUFFIX" | |
45750 | fi | |
45751 | ||
45752 | ||
45753 | ||
45754 | ||
45755 | ||
45756 | ||
45757 | ||
45758 | ||
45759 | ||
45760 | ||
45761 | ||
810b94f0 | 45762 | |
1e9e8aba DE |
45763 | PIC_FLAG="" |
45764 | if test "x$GCC" = "xyes"; then | |
a848cd7e SC |
45765 | PIC_FLAG="-fPIC" |
45766 | fi | |
45767 | ||
1e9e8aba DE |
45768 | SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o" |
45769 | SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o" | |
810b94f0 | 45770 | WINDOWS_IMPLIB=0 |
1e9e8aba | 45771 | |
a848cd7e SC |
45772 | case "${BAKEFILE_HOST}" in |
45773 | *-hp-hpux* ) | |
1e9e8aba | 45774 | if test "x$GCC" != "xyes"; then |
a848cd7e SC |
45775 | LDFLAGS="$LDFLAGS -L/usr/lib" |
45776 | ||
45777 | SHARED_LD_CC="${CC} -b -o" | |
45778 | SHARED_LD_CXX="${CXX} -b -o" | |
45779 | PIC_FLAG="+Z" | |
45780 | fi | |
45781 | ;; | |
45782 | ||
45783 | *-*-linux* ) | |
45784 | if test "x$GCC" != "xyes"; then | |
45785 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 | |
45786 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
45787 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
45788 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45789 | else | |
45790 | ||
45791 | cat >conftest.$ac_ext <<_ACEOF | |
45792 | /* confdefs.h. */ | |
45793 | _ACEOF | |
45794 | cat confdefs.h >>conftest.$ac_ext | |
45795 | cat >>conftest.$ac_ext <<_ACEOF | |
45796 | /* end confdefs.h. */ | |
45797 | ||
45798 | int | |
45799 | main () | |
45800 | { | |
45801 | ||
45802 | #ifndef __INTEL_COMPILER | |
e5efa97e | 45803 | This is not ICC |
a848cd7e SC |
45804 | #endif |
45805 | ||
45806 | ; | |
45807 | return 0; | |
45808 | } | |
45809 | _ACEOF | |
45810 | rm -f conftest.$ac_objext | |
45811 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 45812 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 45813 | ac_status=$? |
ac1cb8d3 VS |
45814 | grep -v '^ *+' conftest.er1 >conftest.err |
45815 | rm -f conftest.er1 | |
45816 | cat conftest.err >&5 | |
a848cd7e SC |
45817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
45818 | (exit $ac_status); } && | |
5d7b7554 | 45819 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
45820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
45821 | (eval $ac_try) 2>&5 | |
45822 | ac_status=$? | |
45823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45824 | (exit $ac_status); }; } && | |
45825 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
45826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
45827 | (eval $ac_try) 2>&5 | |
45828 | ac_status=$? | |
45829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45830 | (exit $ac_status); }; }; then | |
45831 | bakefile_cv_prog_icc=yes | |
45832 | else | |
45833 | echo "$as_me: failed program was:" >&5 | |
45834 | sed 's/^/| /' conftest.$ac_ext >&5 | |
45835 | ||
45836 | bakefile_cv_prog_icc=no | |
45837 | ||
45838 | fi | |
ac1cb8d3 | 45839 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
45840 | |
45841 | fi | |
45842 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
45843 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
45844 | if test "$bakefile_cv_prog_icc" = "yes"; then | |
45845 | PIC_FLAG="-KPIC" | |
45846 | fi | |
45847 | fi | |
45848 | ;; | |
45849 | ||
45850 | *-*-solaris2* ) | |
45851 | if test "x$GCC" != xyes ; then | |
45852 | SHARED_LD_CC="${CC} -G -o" | |
45853 | SHARED_LD_CXX="${CXX} -G -o" | |
45854 | PIC_FLAG="-KPIC" | |
45855 | fi | |
45856 | ;; | |
45857 | ||
45858 | *-*-darwin* ) | |
45859 | ||
473276a9 VS |
45860 | D='$' |
45861 | cat <<EOF >shared-ld-sh | |
a848cd7e SC |
45862 | #!/bin/sh |
45863 | #----------------------------------------------------------------------------- | |
45864 | #-- Name: distrib/mac/shared-ld-sh | |
45865 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
45866 | #-- Author: Gilles Depeyrot | |
45867 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
45868 | #-- Licence: any use permitted | |
45869 | #----------------------------------------------------------------------------- | |
45870 | ||
45871 | verbose=0 | |
45872 | args="" | |
45873 | objects="" | |
45874 | linking_flag="-dynamiclib" | |
810b94f0 | 45875 | ldargs="-r -keep_private_externs -nostdlib" |
a848cd7e | 45876 | |
473276a9 VS |
45877 | while test ${D}# -gt 0; do |
45878 | case ${D}1 in | |
a848cd7e SC |
45879 | |
45880 | -v) | |
45881 | verbose=1 | |
45882 | ;; | |
45883 | ||
45884 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
45885 | # collect these options and values | |
473276a9 | 45886 | args="${D}{args} ${D}1 ${D}2" |
a848cd7e SC |
45887 | shift |
45888 | ;; | |
45889 | ||
810b94f0 MW |
45890 | -s|-Wl,*) |
45891 | # collect these load args | |
45892 | ldargs="${D}{ldargs} ${D}1" | |
2113bc77 | 45893 | ;; |
810b94f0 MW |
45894 | |
45895 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) | |
a848cd7e | 45896 | # collect these options |
473276a9 | 45897 | args="${D}{args} ${D}1" |
a848cd7e SC |
45898 | ;; |
45899 | ||
45900 | -dynamiclib|-bundle) | |
473276a9 | 45901 | linking_flag="${D}1" |
a848cd7e SC |
45902 | ;; |
45903 | ||
45904 | -*) | |
473276a9 | 45905 | echo "shared-ld: unhandled option '${D}1'" |
a848cd7e SC |
45906 | exit 1 |
45907 | ;; | |
45908 | ||
45909 | *.o | *.a | *.dylib) | |
45910 | # collect object files | |
473276a9 | 45911 | objects="${D}{objects} ${D}1" |
a848cd7e SC |
45912 | ;; |
45913 | ||
45914 | *) | |
473276a9 | 45915 | echo "shared-ld: unhandled argument '${D}1'" |
a848cd7e SC |
45916 | exit 1 |
45917 | ;; | |
45918 | ||
45919 | esac | |
45920 | shift | |
45921 | done | |
45922 | ||
810b94f0 MW |
45923 | status=0 |
45924 | ||
a848cd7e SC |
45925 | # |
45926 | # Link one module containing all the others | |
45927 | # | |
473276a9 | 45928 | if test ${D}{verbose} = 1; then |
810b94f0 | 45929 | echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o" |
a848cd7e | 45930 | fi |
810b94f0 | 45931 | c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o |
473276a9 | 45932 | status=${D}? |
a848cd7e SC |
45933 | |
45934 | # | |
810b94f0 MW |
45935 | # Link the shared library from the single module created, but only if the |
45936 | # previous command didn't fail: | |
a848cd7e | 45937 | # |
810b94f0 MW |
45938 | if test ${D}{status} = 0; then |
45939 | if test ${D}{verbose} = 1; then | |
45940 | echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}" | |
45941 | fi | |
45942 | c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args} | |
45943 | status=${D}? | |
a848cd7e SC |
45944 | fi |
45945 | ||
45946 | # | |
45947 | # Remove intermediate module | |
45948 | # | |
473276a9 | 45949 | rm -f master.${D}${D}.o |
a848cd7e | 45950 | |
810b94f0 | 45951 | exit ${D}status |
a848cd7e | 45952 | EOF |
473276a9 | 45953 | |
583d6b4b VZ |
45954 | chmod +x shared-ld-sh |
45955 | ||
45956 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
45957 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
45958 | ||
45959 | ||
45960 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 | |
45961 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 | |
45962 | if test "${bakefile_cv_gcc31+set}" = set; then | |
45963 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45964 | else | |
45965 | ||
45966 | cat >conftest.$ac_ext <<_ACEOF | |
45967 | /* confdefs.h. */ | |
45968 | _ACEOF | |
45969 | cat confdefs.h >>conftest.$ac_ext | |
45970 | cat >>conftest.$ac_ext <<_ACEOF | |
45971 | /* end confdefs.h. */ | |
45972 | ||
45973 | int | |
45974 | main () | |
45975 | { | |
45976 | ||
45977 | #if (__GNUC__ < 3) || \ | |
45978 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
e5efa97e | 45979 | This is old gcc |
583d6b4b | 45980 | #endif |
a848cd7e | 45981 | |
583d6b4b VZ |
45982 | ; |
45983 | return 0; | |
45984 | } | |
45985 | _ACEOF | |
45986 | rm -f conftest.$ac_objext | |
45987 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
45988 | (eval $ac_compile) 2>conftest.er1 | |
45989 | ac_status=$? | |
45990 | grep -v '^ *+' conftest.er1 >conftest.err | |
45991 | rm -f conftest.er1 | |
45992 | cat conftest.err >&5 | |
45993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45994 | (exit $ac_status); } && | |
5d7b7554 | 45995 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
583d6b4b VZ |
45996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
45997 | (eval $ac_try) 2>&5 | |
45998 | ac_status=$? | |
45999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46000 | (exit $ac_status); }; } && | |
46001 | { ac_try='test -s conftest.$ac_objext' | |
46002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
46003 | (eval $ac_try) 2>&5 | |
46004 | ac_status=$? | |
46005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46006 | (exit $ac_status); }; }; then | |
46007 | ||
46008 | bakefile_cv_gcc31=yes | |
46009 | ||
46010 | else | |
46011 | echo "$as_me: failed program was:" >&5 | |
46012 | sed 's/^/| /' conftest.$ac_ext >&5 | |
46013 | ||
46014 | ||
46015 | bakefile_cv_gcc31=no | |
46016 | ||
46017 | ||
46018 | fi | |
46019 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
46020 | ||
46021 | fi | |
46022 | echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5 | |
46023 | echo "${ECHO_T}$bakefile_cv_gcc31" >&6 | |
46024 | if test "$bakefile_cv_gcc31" = "no"; then | |
a848cd7e | 46025 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" |
a848cd7e | 46026 | SHARED_LD_CXX="$SHARED_LD_CC" |
a848cd7e SC |
46027 | else |
46028 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" | |
a848cd7e | 46029 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" |
a848cd7e SC |
46030 | fi |
46031 | ||
47bd5406 VZ |
46032 | if test "x$GCC" == "xyes"; then |
46033 | PIC_FLAG="-dynamic -fPIC" | |
46034 | fi | |
46035 | if test "x$XLCC" = "xyes"; then | |
46036 | PIC_FLAG="-dynamic -DPIC" | |
46037 | fi | |
a848cd7e SC |
46038 | ;; |
46039 | ||
46040 | *-*-aix* ) | |
f6b50c59 | 46041 | if test "x$GCC" = "xyes"; then |
583d6b4b | 46042 | PIC_FLAG="" |
f6b50c59 | 46043 | |
583d6b4b VZ |
46044 | case "${BAKEFILE_HOST}" in |
46045 | *-*-aix5* ) | |
46046 | LD_EXPFULL="-Wl,-bexpfull" | |
46047 | ;; | |
46048 | esac | |
f6b50c59 | 46049 | |
583d6b4b VZ |
46050 | SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o" |
46051 | SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o" | |
46052 | else | |
46053 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
a848cd7e SC |
46054 | set dummy makeC++SharedLib; ac_word=$2 |
46055 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46056 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
46057 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
46058 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46059 | else | |
46060 | if test -n "$AIX_CXX_LD"; then | |
46061 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
46062 | else | |
46063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46064 | for as_dir in $PATH | |
46065 | do | |
46066 | IFS=$as_save_IFS | |
46067 | test -z "$as_dir" && as_dir=. | |
46068 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46069 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
46070 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
46071 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
46072 | break 2 | |
46073 | fi | |
46074 | done | |
46075 | done | |
46076 | ||
46077 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
46078 | fi | |
46079 | fi | |
46080 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD | |
46081 | if test -n "$AIX_CXX_LD"; then | |
46082 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 | |
46083 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
46084 | else | |
46085 | echo "$as_me:$LINENO: result: no" >&5 | |
46086 | echo "${ECHO_T}no" >&6 | |
46087 | fi | |
46088 | ||
f6b50c59 | 46089 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" |
a848cd7e SC |
46090 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" |
46091 | fi | |
46092 | ;; | |
46093 | ||
46094 | *-*-beos* ) | |
1e9e8aba DE |
46095 | SHARED_LD_CC="${LD} -nostart -o" |
46096 | SHARED_LD_CXX="${LD} -nostart -o" | |
a848cd7e SC |
46097 | ;; |
46098 | ||
46099 | *-*-irix* ) | |
46100 | if test "x$GCC" != "xyes"; then | |
46101 | PIC_FLAG="-KPIC" | |
46102 | fi | |
46103 | ;; | |
46104 | ||
46105 | *-*-cygwin* | *-*-mingw32* ) | |
46106 | PIC_FLAG="" | |
1e9e8aba DE |
46107 | SHARED_LD_CC="\$(CC) -shared -o" |
46108 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
810b94f0 | 46109 | WINDOWS_IMPLIB=1 |
a848cd7e SC |
46110 | ;; |
46111 | ||
46112 | *-pc-os2_emx | *-pc-os2-emx ) | |
b1d22ded DE |
46113 | SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" |
46114 | SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
a848cd7e | 46115 | PIC_FLAG="" |
473276a9 VS |
46116 | |
46117 | D='$' | |
46118 | cat <<EOF >dllar.sh | |
46119 | #!/bin/sh | |
46120 | # | |
46121 | # dllar - a tool to build both a .dll and an .a file | |
46122 | # from a set of object (.o) files for EMX/OS2. | |
46123 | # | |
46124 | # Written by Andrew Zabolotny, bit@freya.etu.ru | |
46125 | # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de | |
46126 | # | |
46127 | # This script will accept a set of files on the command line. | |
46128 | # All the public symbols from the .o files will be exported into | |
46129 | # a .DEF file, then linker will be run (through gcc) against them to | |
46130 | # build a shared library consisting of all given .o files. All libraries | |
46131 | # (.a) will be first decompressed into component .o files then act as | |
46132 | # described above. You can optionally give a description (-d "description") | |
46133 | # which will be put into .DLL. To see the list of accepted options (as well | |
46134 | # as command-line format) simply run this program without options. The .DLL | |
46135 | # is built to be imported by name (there is no guarantee that new versions | |
46136 | # of the library you build will have same ordinals for same symbols). | |
46137 | # | |
46138 | # dllar is free software; you can redistribute it and/or modify | |
46139 | # it under the terms of the GNU General Public License as published by | |
46140 | # the Free Software Foundation; either version 2, or (at your option) | |
46141 | # any later version. | |
46142 | # | |
46143 | # dllar is distributed in the hope that it will be useful, | |
46144 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
46145 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
46146 | # GNU General Public License for more details. | |
46147 | # | |
46148 | # You should have received a copy of the GNU General Public License | |
46149 | # along with dllar; see the file COPYING. If not, write to the Free | |
46150 | # Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
46151 | # 02111-1307, USA. | |
46152 | ||
46153 | # To successfuly run this program you will need: | |
46154 | # - Current drive should have LFN support (HPFS, ext2, network, etc) | |
46155 | # (Sometimes dllar generates filenames which won't fit 8.3 scheme) | |
46156 | # - gcc | |
46157 | # (used to build the .dll) | |
46158 | # - emxexp | |
46159 | # (used to create .def file from .o files) | |
46160 | # - emximp | |
46161 | # (used to create .a file from .def file) | |
46162 | # - GNU text utilites (cat, sort, uniq) | |
46163 | # used to process emxexp output | |
46164 | # - GNU file utilities (mv, rm) | |
46165 | # - GNU sed | |
46166 | # - lxlite (optional, see flag below) | |
46167 | # (used for general .dll cleanup) | |
46168 | # | |
46169 | ||
46170 | flag_USE_LXLITE=1; | |
46171 | ||
46172 | # | |
46173 | # helper functions | |
46174 | # basnam, variant of basename, which does _not_ remove the path, _iff_ | |
46175 | # second argument (suffix to remove) is given | |
46176 | basnam(){ | |
46177 | case ${D}# in | |
46178 | 1) | |
1e9e8aba | 46179 | echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//' |
473276a9 VS |
46180 | ;; |
46181 | 2) | |
46182 | echo ${D}1 | sed 's/'${D}2'${D}//' | |
46183 | ;; | |
46184 | *) | |
46185 | echo "error in basnam ${D}*" | |
46186 | exit 8 | |
46187 | ;; | |
46188 | esac | |
46189 | } | |
46190 | ||
46191 | # Cleanup temporary files and output | |
46192 | CleanUp() { | |
46193 | cd ${D}curDir | |
46194 | for i in ${D}inputFiles ; do | |
46195 | case ${D}i in | |
46196 | *!) | |
46197 | rm -rf \`basnam ${D}i !\` | |
46198 | ;; | |
46199 | *) | |
46200 | ;; | |
46201 | esac | |
46202 | done | |
46203 | ||
46204 | # Kill result in case of failure as there is just to many stupid make/nmake | |
46205 | # things out there which doesn't do this. | |
1e9e8aba | 46206 | if [ ${D}# -eq 0 ]; then |
473276a9 VS |
46207 | rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile |
46208 | fi | |
46209 | } | |
46210 | ||
46211 | # Print usage and exit script with rc=1. | |
46212 | PrintHelp() { | |
b1d22ded DE |
46213 | echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]' |
46214 | echo ' [-name-mangler-script script.sh]' | |
46215 | echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]' | |
46216 | echo ' [-ord[inals]] -ex[clude] "symbol(s)"' | |
46217 | echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]' | |
1e9e8aba | 46218 | echo ' [*.o] [*.a]' |
473276a9 VS |
46219 | echo '*> "output_file" should have no extension.' |
46220 | echo ' If it has the .o, .a or .dll extension, it is automatically removed.' | |
46221 | echo ' The import library name is derived from this and is set to "name".a,' | |
46222 | echo ' unless overridden by -import' | |
46223 | echo '*> "importlib_name" should have no extension.' | |
46224 | echo ' If it has the .o, or .a extension, it is automatically removed.' | |
46225 | echo ' This name is used as the import library name and may be longer and' | |
46226 | echo ' more descriptive than the DLL name which has to follow the old ' | |
46227 | echo ' 8.3 convention of FAT.' | |
b1d22ded DE |
46228 | echo '*> "script.sh may be given to override the output_file name by a' |
46229 | echo ' different name. It is mainly useful if the regular make process' | |
46230 | echo ' of some package does not take into account OS/2 restriction of' | |
46231 | echo ' DLL name lengths. It takes the importlib name as input and is' | |
46232 | echo ' supposed to procude a shorter name as output. The script should' | |
46233 | echo ' expect to get importlib_name without extension and should produce' | |
46234 | echo ' a (max.) 8 letter name without extension.' | |
473276a9 VS |
46235 | echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)' |
46236 | echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)' | |
46237 | echo ' These flags will be put at the start of GCC command line.' | |
b1d22ded DE |
46238 | echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.' |
46239 | echo '*> -ex[clude] defines symbols which will not be exported. You can define' | |
473276a9 VS |
46240 | echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".' |
46241 | echo ' If the last character of a symbol is "*", all symbols beginning' | |
46242 | echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).' | |
b1d22ded | 46243 | echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or' |
473276a9 | 46244 | echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.' |
b1d22ded | 46245 | echo '*> -nocrt[dll] switch will disable linking the library against emx''s' |
473276a9 | 46246 | echo ' C runtime DLLs.' |
b1d22ded | 46247 | echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.' |
473276a9 VS |
46248 | echo '*> All other switches (for example -L./ or -lmylib) will be passed' |
46249 | echo ' unchanged to GCC at the end of command line.' | |
46250 | echo '*> If you create a DLL from a library and you do not specify -o,' | |
46251 | echo ' the basename for DLL and import library will be set to library name,' | |
46252 | echo ' the initial library will be renamed to 'name'_s.a (_s for static)' | |
46253 | echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial' | |
46254 | echo ' library will be renamed into gcc_s.a.' | |
46255 | echo '--------' | |
46256 | echo 'Example:' | |
46257 | echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord' | |
46258 | echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"' | |
46259 | CleanUp | |
46260 | exit 1 | |
46261 | } | |
46262 | ||
46263 | # Execute a command. | |
46264 | # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script. | |
46265 | # @Uses Whatever CleanUp() uses. | |
46266 | doCommand() { | |
46267 | echo "${D}*" | |
46268 | eval ${D}* | |
46269 | rcCmd=${D}? | |
46270 | ||
1e9e8aba | 46271 | if [ ${D}rcCmd -ne 0 ]; then |
473276a9 VS |
46272 | echo "command failed, exit code="${D}rcCmd |
46273 | CleanUp | |
46274 | exit ${D}rcCmd | |
46275 | fi | |
46276 | } | |
46277 | ||
46278 | # main routine | |
46279 | # setup globals | |
46280 | cmdLine=${D}* | |
46281 | outFile="" | |
46282 | outimpFile="" | |
46283 | inputFiles="" | |
b1d22ded | 46284 | renameScript="" |
473276a9 VS |
46285 | description="" |
46286 | CC=gcc.exe | |
46287 | CFLAGS="-s -Zcrtdll" | |
46288 | EXTRA_CFLAGS="" | |
46289 | EXPORT_BY_ORDINALS=0 | |
46290 | exclude_symbols="" | |
46291 | library_flags="" | |
46292 | curDir=\`pwd\` | |
46293 | curDirS=curDir | |
46294 | case ${D}curDirS in | |
46295 | */) | |
46296 | ;; | |
46297 | *) | |
46298 | curDirS=${D}{curDirS}"/" | |
46299 | ;; | |
46300 | esac | |
46301 | # Parse commandline | |
46302 | libsToLink=0 | |
b1d22ded | 46303 | omfLinking=0 |
1e9e8aba | 46304 | while [ ${D}1 ]; do |
473276a9 VS |
46305 | case ${D}1 in |
46306 | -ord*) | |
46307 | EXPORT_BY_ORDINALS=1; | |
46308 | ;; | |
46309 | -o*) | |
46310 | shift | |
46311 | outFile=${D}1 | |
46312 | ;; | |
46313 | -i*) | |
46314 | shift | |
46315 | outimpFile=${D}1 | |
46316 | ;; | |
b1d22ded DE |
46317 | -name-mangler-script) |
46318 | shift | |
46319 | renameScript=${D}1 | |
46320 | ;; | |
473276a9 VS |
46321 | -d*) |
46322 | shift | |
46323 | description=${D}1 | |
46324 | ;; | |
46325 | -f*) | |
46326 | shift | |
46327 | CFLAGS=${D}1 | |
46328 | ;; | |
46329 | -c*) | |
46330 | shift | |
46331 | CC=${D}1 | |
46332 | ;; | |
46333 | -h*) | |
46334 | PrintHelp | |
46335 | ;; | |
46336 | -ex*) | |
46337 | shift | |
46338 | exclude_symbols=${D}{exclude_symbols}${D}1" " | |
46339 | ;; | |
46340 | -libf*) | |
46341 | shift | |
46342 | library_flags=${D}{library_flags}${D}1" " | |
46343 | ;; | |
46344 | -nocrt*) | |
46345 | CFLAGS="-s" | |
46346 | ;; | |
46347 | -nolxl*) | |
46348 | flag_USE_LXLITE=0 | |
46349 | ;; | |
46350 | -* | /*) | |
46351 | case ${D}1 in | |
46352 | -L* | -l*) | |
46353 | libsToLink=1 | |
46354 | ;; | |
b1d22ded DE |
46355 | -Zomf) |
46356 | omfLinking=1 | |
46357 | ;; | |
473276a9 VS |
46358 | *) |
46359 | ;; | |
46360 | esac | |
46361 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 | |
46362 | ;; | |
b1d22ded DE |
46363 | *.dll) |
46364 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`" | |
46365 | if [ ${D}omfLinking -eq 1 ]; then | |
46366 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib" | |
46367 | else | |
46368 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a" | |
46369 | fi | |
46370 | ;; | |
473276a9 VS |
46371 | *) |
46372 | found=0; | |
1e9e8aba | 46373 | if [ ${D}libsToLink -ne 0 ]; then |
473276a9 VS |
46374 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 |
46375 | else | |
46376 | for file in ${D}1 ; do | |
1e9e8aba | 46377 | if [ -f ${D}file ]; then |
473276a9 VS |
46378 | inputFiles="${D}{inputFiles} ${D}file" |
46379 | found=1 | |
46380 | fi | |
46381 | done | |
1e9e8aba | 46382 | if [ ${D}found -eq 0 ]; then |
473276a9 VS |
46383 | echo "ERROR: No file(s) found: "${D}1 |
46384 | exit 8 | |
46385 | fi | |
46386 | fi | |
46387 | ;; | |
46388 | esac | |
46389 | shift | |
46390 | done # iterate cmdline words | |
46391 | ||
46392 | # | |
1e9e8aba | 46393 | if [ -z "${D}inputFiles" ]; then |
473276a9 VS |
46394 | echo "dllar: no input files" |
46395 | PrintHelp | |
46396 | fi | |
46397 | ||
46398 | # Now extract all .o files from .a files | |
46399 | newInputFiles="" | |
46400 | for file in ${D}inputFiles ; do | |
46401 | case ${D}file in | |
46402 | *.a | *.lib) | |
46403 | case ${D}file in | |
46404 | *.a) | |
46405 | suffix=".a" | |
46406 | AR="ar" | |
46407 | ;; | |
46408 | *.lib) | |
46409 | suffix=".lib" | |
46410 | AR="emxomfar" | |
46411 | EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf" | |
46412 | ;; | |
46413 | *) | |
46414 | ;; | |
46415 | esac | |
46416 | dirname=\`basnam ${D}file ${D}suffix\`"_%" | |
46417 | mkdir ${D}dirname | |
1e9e8aba | 46418 | if [ ${D}? -ne 0 ]; then |
473276a9 VS |
46419 | echo "Failed to create subdirectory ./${D}dirname" |
46420 | CleanUp | |
46421 | exit 8; | |
46422 | fi | |
46423 | # Append '!' to indicate archive | |
46424 | newInputFiles="${D}newInputFiles ${D}{dirname}!" | |
46425 | doCommand "cd ${D}dirname; ${D}AR x ../${D}file" | |
46426 | cd ${D}curDir | |
46427 | found=0; | |
46428 | for subfile in ${D}dirname/*.o* ; do | |
1e9e8aba | 46429 | if [ -f ${D}subfile ]; then |
473276a9 | 46430 | found=1 |
1e9e8aba | 46431 | if [ -s ${D}subfile ]; then |
473276a9 VS |
46432 | # FIXME: This should be: is file size > 32 byte, _not_ > 0! |
46433 | newInputFiles="${D}newInputFiles ${D}subfile" | |
46434 | fi | |
46435 | fi | |
46436 | done | |
1e9e8aba DE |
46437 | if [ ${D}found -eq 0 ]; then |
46438 | echo "WARNING: there are no files in archive \\'${D}file\\'" | |
473276a9 VS |
46439 | fi |
46440 | ;; | |
46441 | *) | |
46442 | newInputFiles="${D}{newInputFiles} ${D}file" | |
46443 | ;; | |
46444 | esac | |
46445 | done | |
46446 | inputFiles="${D}newInputFiles" | |
46447 | ||
46448 | # Output filename(s). | |
46449 | do_backup=0; | |
1e9e8aba | 46450 | if [ -z ${D}outFile ]; then |
473276a9 VS |
46451 | do_backup=1; |
46452 | set outFile ${D}inputFiles; outFile=${D}2 | |
46453 | fi | |
46454 | ||
46455 | # If it is an archive, remove the '!' and the '_%' suffixes | |
46456 | case ${D}outFile in | |
46457 | *_%!) | |
46458 | outFile=\`basnam ${D}outFile _%!\` | |
46459 | ;; | |
46460 | *) | |
46461 | ;; | |
46462 | esac | |
46463 | case ${D}outFile in | |
46464 | *.dll) | |
46465 | outFile=\`basnam ${D}outFile .dll\` | |
46466 | ;; | |
46467 | *.DLL) | |
46468 | outFile=\`basnam ${D}outFile .DLL\` | |
46469 | ;; | |
46470 | *.o) | |
46471 | outFile=\`basnam ${D}outFile .o\` | |
46472 | ;; | |
46473 | *.obj) | |
46474 | outFile=\`basnam ${D}outFile .obj\` | |
46475 | ;; | |
46476 | *.a) | |
46477 | outFile=\`basnam ${D}outFile .a\` | |
46478 | ;; | |
46479 | *.lib) | |
46480 | outFile=\`basnam ${D}outFile .lib\` | |
46481 | ;; | |
46482 | *) | |
46483 | ;; | |
46484 | esac | |
46485 | case ${D}outimpFile in | |
46486 | *.a) | |
46487 | outimpFile=\`basnam ${D}outimpFile .a\` | |
46488 | ;; | |
46489 | *.lib) | |
46490 | outimpFile=\`basnam ${D}outimpFile .lib\` | |
46491 | ;; | |
46492 | *) | |
46493 | ;; | |
46494 | esac | |
1e9e8aba | 46495 | if [ -z ${D}outimpFile ]; then |
473276a9 VS |
46496 | outimpFile=${D}outFile |
46497 | fi | |
46498 | defFile="${D}{outFile}.def" | |
46499 | arcFile="${D}{outimpFile}.a" | |
46500 | arcFile2="${D}{outimpFile}.lib" | |
b1d22ded DE |
46501 | |
46502 | #create ${D}dllFile as something matching 8.3 restrictions, | |
46503 | if [ -z ${D}renameScript ] ; then | |
46504 | dllFile="${D}outFile" | |
46505 | else | |
46506 | dllFile=\`${D}renameScript ${D}outimpFile\` | |
46507 | fi | |
473276a9 | 46508 | |
1e9e8aba DE |
46509 | if [ ${D}do_backup -ne 0 ] ; then |
46510 | if [ -f ${D}arcFile ] ; then | |
473276a9 VS |
46511 | doCommand "mv ${D}arcFile ${D}{outFile}_s.a" |
46512 | fi | |
1e9e8aba | 46513 | if [ -f ${D}arcFile2 ] ; then |
473276a9 VS |
46514 | doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib" |
46515 | fi | |
46516 | fi | |
46517 | ||
46518 | # Extract public symbols from all the object files. | |
46519 | tmpdefFile=${D}{defFile}_% | |
46520 | rm -f ${D}tmpdefFile | |
46521 | for file in ${D}inputFiles ; do | |
46522 | case ${D}file in | |
46523 | *!) | |
46524 | ;; | |
46525 | *) | |
46526 | doCommand "emxexp -u ${D}file >> ${D}tmpdefFile" | |
46527 | ;; | |
46528 | esac | |
46529 | done | |
46530 | ||
46531 | # Create the def file. | |
46532 | rm -f ${D}defFile | |
46533 | echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile | |
b1d22ded DE |
46534 | dllFile="${D}{dllFile}.dll" |
46535 | if [ ! -z ${D}description ]; then | |
1e9e8aba | 46536 | echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile |
473276a9 VS |
46537 | fi |
46538 | echo "EXPORTS" >> ${D}defFile | |
46539 | ||
46540 | doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%" | |
46541 | grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile | |
46542 | ||
46543 | # Checks if the export is ok or not. | |
46544 | for word in ${D}exclude_symbols; do | |
46545 | grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}% | |
46546 | mv ${D}{tmpdefFile}% ${D}tmpdefFile | |
46547 | done | |
46548 | ||
46549 | ||
1e9e8aba DE |
46550 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
46551 | sed "=" < ${D}tmpdefFile | \\ | |
473276a9 VS |
46552 | sed ' |
46553 | N | |
46554 | : loop | |
1e9e8aba | 46555 | s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/ |
473276a9 VS |
46556 | t loop |
46557 | ' > ${D}{tmpdefFile}% | |
46558 | grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile | |
46559 | else | |
46560 | rm -f ${D}{tmpdefFile}% | |
46561 | fi | |
46562 | cat ${D}tmpdefFile >> ${D}defFile | |
46563 | rm -f ${D}tmpdefFile | |
46564 | ||
46565 | # Do linking, create implib, and apply lxlite. | |
46566 | gccCmdl=""; | |
46567 | for file in ${D}inputFiles ; do | |
46568 | case ${D}file in | |
46569 | *!) | |
46570 | ;; | |
46571 | *) | |
46572 | gccCmdl="${D}gccCmdl ${D}file" | |
46573 | ;; | |
46574 | esac | |
46575 | done | |
46576 | doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS" | |
46577 | touch "${D}{outFile}.dll" | |
46578 | ||
46579 | doCommand "emximp -o ${D}arcFile ${D}defFile" | |
1e9e8aba | 46580 | if [ ${D}flag_USE_LXLITE -ne 0 ]; then |
473276a9 | 46581 | add_flags=""; |
1e9e8aba | 46582 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
473276a9 VS |
46583 | add_flags="-ynd" |
46584 | fi | |
46585 | doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile" | |
46586 | fi | |
46587 | doCommand "emxomf -s -l ${D}arcFile" | |
46588 | ||
46589 | # Successful exit. | |
46590 | CleanUp 1 | |
46591 | exit 0 | |
46592 | EOF | |
46593 | ||
46594 | chmod +x dllar.sh | |
a848cd7e SC |
46595 | ;; |
46596 | ||
1e9e8aba | 46597 | powerpc-apple-macos* | \ |
0ad5d837 | 46598 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \ |
a848cd7e SC |
46599 | *-*-sunos4* | \ |
46600 | *-*-osf* | \ | |
46601 | *-*-dgux5* | \ | |
47a7e797 MW |
46602 | *-*-sysv5* | \ |
46603 | *-pc-msdosdjgpp ) | |
a848cd7e SC |
46604 | ;; |
46605 | ||
46606 | *) | |
46607 | { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5 | |
46608 | echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;} | |
46609 | { (exit 1); exit 1; }; } | |
46610 | esac | |
46611 | ||
2057db16 VS |
46612 | if test "x$PIC_FLAG" != "x" ; then |
46613 | PIC_FLAG="$PIC_FLAG -DPIC" | |
46614 | fi | |
46615 | ||
a848cd7e SC |
46616 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
46617 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
46618 | fi | |
46619 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
46620 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" | |
46621 | fi | |
46622 | ||
46623 | ||
46624 | ||
46625 | ||
46626 | ||
46627 | ||
46628 | ||
46629 | ||
810b94f0 | 46630 | |
a848cd7e SC |
46631 | USE_SOVERSION=0 |
46632 | USE_SOVERLINUX=0 | |
46633 | USE_SOVERSOLARIS=0 | |
810b94f0 | 46634 | USE_SOVERCYGWIN=0 |
a848cd7e SC |
46635 | USE_SOSYMLINKS=0 |
46636 | USE_MACVERSION=0 | |
46637 | SONAME_FLAG= | |
46638 | ||
46639 | case "${BAKEFILE_HOST}" in | |
0ad5d837 | 46640 | *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu ) |
5f652d0d VS |
46641 | SONAME_FLAG="-Wl,-soname," |
46642 | USE_SOVERSION=1 | |
46643 | USE_SOVERLINUX=1 | |
46644 | USE_SOSYMLINKS=1 | |
46645 | ;; | |
46646 | ||
a848cd7e SC |
46647 | *-*-solaris2* ) |
46648 | SONAME_FLAG="-h " | |
46649 | USE_SOVERSION=1 | |
46650 | USE_SOVERSOLARIS=1 | |
46651 | USE_SOSYMLINKS=1 | |
46652 | ;; | |
46653 | ||
46654 | *-*-darwin* ) | |
46655 | USE_MACVERSION=1 | |
46656 | USE_SOVERSION=1 | |
46657 | USE_SOSYMLINKS=1 | |
46658 | ;; | |
810b94f0 MW |
46659 | |
46660 | *-*-cygwin* ) | |
46661 | USE_SOVERSION=1 | |
46662 | USE_SOVERCYGWIN=1 | |
46663 | ;; | |
a848cd7e SC |
46664 | esac |
46665 | ||
46666 | ||
46667 | ||
46668 | ||
46669 | ||
46670 | ||
46671 | ||
46672 | ||
46673 | ||
810b94f0 | 46674 | |
f10e38c4 VZ |
46675 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
46676 | if test "${enable_dependency_tracking+set}" = set; then | |
46677 | enableval="$enable_dependency_tracking" | |
46678 | bk_use_trackdeps="$enableval" | |
46679 | fi; | |
46680 | ||
a848cd7e SC |
46681 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 |
46682 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
a848cd7e | 46683 | |
f10e38c4 VZ |
46684 | if test "x$bk_use_trackdeps" = "xno" ; then |
46685 | DEPS_TRACKING=0 | |
46686 | echo "$as_me:$LINENO: result: disabled" >&5 | |
46687 | echo "${ECHO_T}disabled" >&6 | |
46688 | else | |
46689 | DEPS_TRACKING=1 | |
46690 | ||
46691 | if test "x$GCC" = "xyes"; then | |
46692 | DEPSMODE=gcc | |
46693 | case "${BAKEFILE_HOST}" in | |
46694 | *-*-darwin* ) | |
46695 | DEPSFLAG="-no-cpp-precomp -MMD" | |
46696 | ;; | |
46697 | * ) | |
46698 | DEPSFLAG="-MMD" | |
46699 | ;; | |
46700 | esac | |
46701 | echo "$as_me:$LINENO: result: gcc" >&5 | |
a848cd7e | 46702 | echo "${ECHO_T}gcc" >&6 |
f10e38c4 VZ |
46703 | elif test "x$MWCC" = "xyes"; then |
46704 | DEPSMODE=mwcc | |
46705 | DEPSFLAG="-MM" | |
46706 | echo "$as_me:$LINENO: result: mwcc" >&5 | |
b1d22ded | 46707 | echo "${ECHO_T}mwcc" >&6 |
f10e38c4 VZ |
46708 | elif test "x$SUNCC" = "xyes"; then |
46709 | DEPSMODE=unixcc | |
46710 | DEPSFLAG="-xM1" | |
46711 | echo "$as_me:$LINENO: result: Sun cc" >&5 | |
0ad5d837 | 46712 | echo "${ECHO_T}Sun cc" >&6 |
f10e38c4 VZ |
46713 | elif test "x$SGICC" = "xyes"; then |
46714 | DEPSMODE=unixcc | |
46715 | DEPSFLAG="-M" | |
46716 | echo "$as_me:$LINENO: result: SGI cc" >&5 | |
0ad5d837 | 46717 | echo "${ECHO_T}SGI cc" >&6 |
f10e38c4 VZ |
46718 | elif test "x$HPCC" = "xyes"; then |
46719 | DEPSMODE=unixcc | |
46720 | DEPSFLAG="+make" | |
46721 | echo "$as_me:$LINENO: result: HP cc" >&5 | |
3006edc0 | 46722 | echo "${ECHO_T}HP cc" >&6 |
f10e38c4 VZ |
46723 | elif test "x$COMPAQCC" = "xyes"; then |
46724 | DEPSMODE=gcc | |
46725 | DEPSFLAG="-MD" | |
46726 | echo "$as_me:$LINENO: result: Compaq cc" >&5 | |
a1aa0349 | 46727 | echo "${ECHO_T}Compaq cc" >&6 |
f10e38c4 VZ |
46728 | else |
46729 | DEPS_TRACKING=0 | |
46730 | echo "$as_me:$LINENO: result: none" >&5 | |
a848cd7e | 46731 | echo "${ECHO_T}none" >&6 |
f10e38c4 | 46732 | fi |
a848cd7e | 46733 | |
f10e38c4 | 46734 | if test $DEPS_TRACKING = 1 ; then |
473276a9 VS |
46735 | |
46736 | D='$' | |
46737 | cat <<EOF >bk-deps | |
a848cd7e SC |
46738 | #!/bin/sh |
46739 | ||
46740 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
46741 | # script. It is used to track C/C++ files dependencies in portable way. | |
46742 | # | |
46743 | # Permission is given to use this file in any way. | |
46744 | ||
473276a9 | 46745 | DEPSMODE=${DEPSMODE} |
a848cd7e | 46746 | DEPSDIR=.deps |
0ad5d837 | 46747 | DEPSFLAG="${DEPSFLAG}" |
a848cd7e | 46748 | |
473276a9 | 46749 | mkdir -p ${D}DEPSDIR |
a848cd7e | 46750 | |
473276a9 | 46751 | if test ${D}DEPSMODE = gcc ; then |
0ad5d837 | 46752 | ${D}* ${D}{DEPSFLAG} |
473276a9 VS |
46753 | status=${D}? |
46754 | if test ${D}{status} != 0 ; then | |
46755 | exit ${D}{status} | |
a848cd7e SC |
46756 | fi |
46757 | # move created file to the location we want it in: | |
473276a9 VS |
46758 | while test ${D}# -gt 0; do |
46759 | case "${D}1" in | |
a848cd7e SC |
46760 | -o ) |
46761 | shift | |
473276a9 | 46762 | objfile=${D}1 |
a848cd7e SC |
46763 | ;; |
46764 | -* ) | |
46765 | ;; | |
46766 | * ) | |
473276a9 | 46767 | srcfile=${D}1 |
a848cd7e SC |
46768 | ;; |
46769 | esac | |
46770 | shift | |
46771 | done | |
1e9e8aba DE |
46772 | depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\` |
46773 | depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\` | |
473276a9 VS |
46774 | if test -f ${D}depfile ; then |
46775 | sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
46776 | rm -f ${D}depfile | |
a848cd7e | 46777 | else |
a1aa0349 | 46778 | # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d |
1e9e8aba | 46779 | depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\` |
a1aa0349 VZ |
46780 | if test ! -f ${D}depfile ; then |
46781 | # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++) | |
46782 | depfile="${D}objfile.d" | |
46783 | fi | |
473276a9 VS |
46784 | if test -f ${D}depfile ; then |
46785 | sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
46786 | rm -f ${D}depfile | |
a848cd7e SC |
46787 | fi |
46788 | fi | |
46789 | exit 0 | |
81f90336 | 46790 | elif test ${D}DEPSMODE = mwcc ; then |
f6b50c59 | 46791 | ${D}* || exit ${D}? |
81f90336 MW |
46792 | # Run mwcc again with -MM and redirect into the dep file we want |
46793 | # NOTE: We can't use shift here because we need ${D}* to be valid | |
46794 | prevarg= | |
46795 | for arg in ${D}* ; do | |
46796 | if test "${D}prevarg" = "-o"; then | |
46797 | objfile=${D}arg | |
46798 | else | |
46799 | case "${D}arg" in | |
46800 | -* ) | |
46801 | ;; | |
46802 | * ) | |
46803 | srcfile=${D}arg | |
46804 | ;; | |
46805 | esac | |
46806 | fi | |
46807 | prevarg="${D}arg" | |
46808 | done | |
0ad5d837 | 46809 | ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d |
81f90336 | 46810 | exit 0 |
0ad5d837 | 46811 | elif test ${D}DEPSMODE = unixcc; then |
f6b50c59 | 46812 | ${D}* || exit ${D}? |
a9e5b1f0 MW |
46813 | # Run compiler again with deps flag and redirect into the dep file. |
46814 | # It doesn't work if the '-o FILE' option is used, but without it the | |
46815 | # dependency file will contain the wrong name for the object. So it is | |
46816 | # removed from the command line, and the dep file is fixed with sed. | |
46817 | cmd="" | |
46818 | while test ${D}# -gt 0; do | |
46819 | case "${D}1" in | |
46820 | -o ) | |
46821 | shift | |
46822 | objfile=${D}1 | |
46823 | ;; | |
46824 | * ) | |
46825 | eval arg${D}#=\\${D}1 | |
46826 | cmd="${D}cmd \\${D}arg${D}#" | |
46827 | ;; | |
46828 | esac | |
46829 | shift | |
46830 | done | |
0ad5d837 | 46831 | eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d |
a9e5b1f0 | 46832 | exit 0 |
a848cd7e | 46833 | else |
473276a9 VS |
46834 | ${D}* |
46835 | exit ${D}? | |
a848cd7e SC |
46836 | fi |
46837 | EOF | |
473276a9 | 46838 | |
f10e38c4 VZ |
46839 | chmod +x bk-deps |
46840 | fi | |
a848cd7e SC |
46841 | fi |
46842 | ||
46843 | ||
46844 | ||
46845 | ||
a848cd7e SC |
46846 | case ${BAKEFILE_HOST} in |
46847 | *-*-cygwin* | *-*-mingw32* ) | |
8ced02f6 DE |
46848 | if test -n "$ac_tool_prefix"; then |
46849 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
46850 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
46851 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46852 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
46853 | if test "${ac_cv_prog_WINDRES+set}" = set; then | |
46854 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46855 | else | |
46856 | if test -n "$WINDRES"; then | |
46857 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
46858 | else | |
46859 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46860 | for as_dir in $PATH | |
46861 | do | |
46862 | IFS=$as_save_IFS | |
46863 | test -z "$as_dir" && as_dir=. | |
46864 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46865 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
46866 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" | |
46867 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
46868 | break 2 | |
46869 | fi | |
46870 | done | |
46871 | done | |
46872 | ||
46873 | fi | |
46874 | fi | |
46875 | WINDRES=$ac_cv_prog_WINDRES | |
46876 | if test -n "$WINDRES"; then | |
46877 | echo "$as_me:$LINENO: result: $WINDRES" >&5 | |
46878 | echo "${ECHO_T}$WINDRES" >&6 | |
46879 | else | |
46880 | echo "$as_me:$LINENO: result: no" >&5 | |
46881 | echo "${ECHO_T}no" >&6 | |
46882 | fi | |
46883 | ||
46884 | fi | |
46885 | if test -z "$ac_cv_prog_WINDRES"; then | |
46886 | ac_ct_WINDRES=$WINDRES | |
46887 | # Extract the first word of "windres", so it can be a program name with args. | |
a848cd7e SC |
46888 | set dummy windres; ac_word=$2 |
46889 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46890 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 46891 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
a848cd7e SC |
46892 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
46893 | else | |
8ced02f6 DE |
46894 | if test -n "$ac_ct_WINDRES"; then |
46895 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
a848cd7e SC |
46896 | else |
46897 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46898 | for as_dir in $PATH | |
46899 | do | |
46900 | IFS=$as_save_IFS | |
46901 | test -z "$as_dir" && as_dir=. | |
46902 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46903 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 46904 | ac_cv_prog_ac_ct_WINDRES="windres" |
a848cd7e SC |
46905 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
46906 | break 2 | |
46907 | fi | |
46908 | done | |
46909 | done | |
46910 | ||
a848cd7e SC |
46911 | fi |
46912 | fi | |
8ced02f6 DE |
46913 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
46914 | if test -n "$ac_ct_WINDRES"; then | |
46915 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 | |
46916 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
a848cd7e SC |
46917 | else |
46918 | echo "$as_me:$LINENO: result: no" >&5 | |
46919 | echo "${ECHO_T}no" >&6 | |
46920 | fi | |
46921 | ||
8ced02f6 DE |
46922 | WINDRES=$ac_ct_WINDRES |
46923 | else | |
46924 | WINDRES="$ac_cv_prog_WINDRES" | |
46925 | fi | |
46926 | ||
a848cd7e SC |
46927 | ;; |
46928 | ||
1e9e8aba | 46929 | *-*-darwin* | powerpc-apple-macos* ) |
a848cd7e SC |
46930 | # Extract the first word of "Rez", so it can be a program name with args. |
46931 | set dummy Rez; ac_word=$2 | |
46932 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46933 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 46934 | if test "${ac_cv_prog_REZ+set}" = set; then |
a848cd7e SC |
46935 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
46936 | else | |
8ced02f6 DE |
46937 | if test -n "$REZ"; then |
46938 | ac_cv_prog_REZ="$REZ" # Let the user override the test. | |
a848cd7e SC |
46939 | else |
46940 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46941 | for as_dir in $PATH | |
46942 | do | |
46943 | IFS=$as_save_IFS | |
46944 | test -z "$as_dir" && as_dir=. | |
46945 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46946 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 46947 | ac_cv_prog_REZ="Rez" |
a848cd7e SC |
46948 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
46949 | break 2 | |
46950 | fi | |
46951 | done | |
46952 | done | |
46953 | ||
8ced02f6 | 46954 | test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez" |
a848cd7e SC |
46955 | fi |
46956 | fi | |
8ced02f6 DE |
46957 | REZ=$ac_cv_prog_REZ |
46958 | if test -n "$REZ"; then | |
46959 | echo "$as_me:$LINENO: result: $REZ" >&5 | |
46960 | echo "${ECHO_T}$REZ" >&6 | |
a848cd7e SC |
46961 | else |
46962 | echo "$as_me:$LINENO: result: no" >&5 | |
46963 | echo "${ECHO_T}no" >&6 | |
46964 | fi | |
46965 | ||
46966 | # Extract the first word of "SetFile", so it can be a program name with args. | |
46967 | set dummy SetFile; ac_word=$2 | |
46968 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46969 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
46970 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
46971 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46972 | else | |
46973 | if test -n "$SETFILE"; then | |
46974 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
46975 | else | |
46976 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46977 | for as_dir in $PATH | |
46978 | do | |
46979 | IFS=$as_save_IFS | |
46980 | test -z "$as_dir" && as_dir=. | |
46981 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46982 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
46983 | ac_cv_prog_SETFILE="SetFile" | |
46984 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
46985 | break 2 | |
46986 | fi | |
46987 | done | |
46988 | done | |
46989 | ||
46990 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
46991 | fi | |
46992 | fi | |
46993 | SETFILE=$ac_cv_prog_SETFILE | |
46994 | if test -n "$SETFILE"; then | |
46995 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
46996 | echo "${ECHO_T}$SETFILE" >&6 | |
46997 | else | |
46998 | echo "$as_me:$LINENO: result: no" >&5 | |
46999 | echo "${ECHO_T}no" >&6 | |
47000 | fi | |
47001 | ||
47002 | ;; | |
47003 | esac | |
47004 | ||
47005 | ||
47006 | ||
47007 | ||
47008 | ||
8ced02f6 | 47009 | |
f10e38c4 | 47010 | BAKEFILE_BAKEFILE_M4_VERSION="0.2.0" |
a848cd7e | 47011 | |
dcc1b6ad | 47012 | |
f10e38c4 | 47013 | BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0" |
a848cd7e | 47014 | |
646b6ec1 | 47015 | |
74b84332 | 47016 | |
a848cd7e SC |
47017 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
47018 | if test "${enable_precomp_headers+set}" = set; then | |
47019 | enableval="$enable_precomp_headers" | |
47020 | bk_use_pch="$enableval" | |
47021 | fi; | |
47022 | ||
47023 | GCC_PCH=0 | |
f10e38c4 VZ |
47024 | ICC_PCH=0 |
47025 | USE_PCH=0 | |
a848cd7e | 47026 | |
5c60e845 MW |
47027 | case ${BAKEFILE_HOST} in |
47028 | *-*-cygwin* ) | |
47029 | bk_use_pch="no" | |
47030 | ;; | |
47031 | esac | |
47032 | ||
a848cd7e SC |
47033 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then |
47034 | if test "x$GCC" = "xyes"; then | |
47035 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
47036 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
47037 | cat >conftest.$ac_ext <<_ACEOF | |
47038 | /* confdefs.h. */ | |
47039 | _ACEOF | |
47040 | cat confdefs.h >>conftest.$ac_ext | |
47041 | cat >>conftest.$ac_ext <<_ACEOF | |
47042 | /* end confdefs.h. */ | |
47043 | ||
47044 | int | |
47045 | main () | |
47046 | { | |
47047 | ||
47048 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
e5efa97e | 47049 | There is no PCH support |
a848cd7e SC |
47050 | #endif |
47051 | #if (__GNUC__ < 3) | |
e5efa97e | 47052 | There is no PCH support |
a848cd7e SC |
47053 | #endif |
47054 | #if (__GNUC__ == 3) && \ | |
47055 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
f10e38c4 VZ |
47056 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \ |
47057 | ( defined(__INTEL_COMPILER) ) | |
e5efa97e | 47058 | There is no PCH support |
a848cd7e SC |
47059 | #endif |
47060 | ||
47061 | ; | |
47062 | return 0; | |
47063 | } | |
47064 | _ACEOF | |
47065 | rm -f conftest.$ac_objext | |
47066 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 47067 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 47068 | ac_status=$? |
ac1cb8d3 VS |
47069 | grep -v '^ *+' conftest.er1 >conftest.err |
47070 | rm -f conftest.er1 | |
47071 | cat conftest.err >&5 | |
a848cd7e SC |
47072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47073 | (exit $ac_status); } && | |
5d7b7554 | 47074 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ac1cb8d3 VS |
47075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
47076 | (eval $ac_try) 2>&5 | |
47077 | ac_status=$? | |
47078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47079 | (exit $ac_status); }; } && | |
47080 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
47081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
47082 | (eval $ac_try) 2>&5 | |
47083 | ac_status=$? | |
47084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47085 | (exit $ac_status); }; }; then | |
47086 | ||
47087 | echo "$as_me:$LINENO: result: yes" >&5 | |
47088 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
47089 | GCC_PCH=1 |
47090 | ||
47091 | else | |
47092 | echo "$as_me: failed program was:" >&5 | |
47093 | sed 's/^/| /' conftest.$ac_ext >&5 | |
47094 | ||
47095 | ||
f10e38c4 VZ |
47096 | cat >conftest.$ac_ext <<_ACEOF |
47097 | /* confdefs.h. */ | |
47098 | _ACEOF | |
47099 | cat confdefs.h >>conftest.$ac_ext | |
47100 | cat >>conftest.$ac_ext <<_ACEOF | |
47101 | /* end confdefs.h. */ | |
47102 | ||
47103 | int | |
47104 | main () | |
47105 | { | |
47106 | ||
47107 | #if !defined(__INTEL_COMPILER) || \ | |
47108 | (__INTEL_COMPILER < 800) | |
e5efa97e | 47109 | There is no PCH support |
f10e38c4 VZ |
47110 | #endif |
47111 | ||
47112 | ; | |
47113 | return 0; | |
47114 | } | |
47115 | _ACEOF | |
47116 | rm -f conftest.$ac_objext | |
47117 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
47118 | (eval $ac_compile) 2>conftest.er1 | |
47119 | ac_status=$? | |
47120 | grep -v '^ *+' conftest.er1 >conftest.err | |
47121 | rm -f conftest.er1 | |
47122 | cat conftest.err >&5 | |
47123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47124 | (exit $ac_status); } && | |
5d7b7554 | 47125 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
f10e38c4 VZ |
47126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
47127 | (eval $ac_try) 2>&5 | |
47128 | ac_status=$? | |
47129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47130 | (exit $ac_status); }; } && | |
47131 | { ac_try='test -s conftest.$ac_objext' | |
47132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
47133 | (eval $ac_try) 2>&5 | |
47134 | ac_status=$? | |
47135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47136 | (exit $ac_status); }; }; then | |
47137 | ||
47138 | echo "$as_me:$LINENO: result: yes" >&5 | |
47139 | echo "${ECHO_T}yes" >&6 | |
47140 | ICC_PCH=1 | |
47141 | ||
47142 | else | |
47143 | echo "$as_me: failed program was:" >&5 | |
47144 | sed 's/^/| /' conftest.$ac_ext >&5 | |
47145 | ||
47146 | ||
47147 | echo "$as_me:$LINENO: result: no" >&5 | |
a848cd7e SC |
47148 | echo "${ECHO_T}no" >&6 |
47149 | ||
47150 | fi | |
ac1cb8d3 | 47151 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f10e38c4 VZ |
47152 | |
47153 | fi | |
47154 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
47155 | if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then | |
47156 | USE_PCH=1 | |
1e9e8aba DE |
47157 | |
47158 | D='$' | |
47159 | cat <<EOF >bk-make-pch | |
a848cd7e SC |
47160 | #!/bin/sh |
47161 | ||
47162 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
47163 | # script. It is used to generated precompiled headers. | |
47164 | # | |
47165 | # Permission is given to use this file in any way. | |
47166 | ||
1e9e8aba DE |
47167 | outfile="${D}{1}" |
47168 | header="${D}{2}" | |
a848cd7e SC |
47169 | shift |
47170 | shift | |
47171 | ||
f10e38c4 VZ |
47172 | compiler="" |
47173 | headerfile="" | |
47174 | ||
1e9e8aba | 47175 | while test ${D}{#} -gt 0; do |
f10e38c4 | 47176 | add_to_cmdline=1 |
1e9e8aba | 47177 | case "${D}{1}" in |
a848cd7e | 47178 | -I* ) |
1e9e8aba DE |
47179 | incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\` |
47180 | if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then | |
47181 | headerfile="${D}{incdir}/${D}{header}" | |
a848cd7e SC |
47182 | fi |
47183 | ;; | |
f10e38c4 VZ |
47184 | -use-pch|-use_pch ) |
47185 | shift | |
47186 | add_to_cmdline=0 | |
47187 | ;; | |
a848cd7e | 47188 | esac |
f10e38c4 VZ |
47189 | if test ${D}add_to_cmdline = 1 ; then |
47190 | compiler="${D}{compiler} ${D}{1}" | |
47191 | fi | |
a848cd7e SC |
47192 | shift |
47193 | done | |
47194 | ||
1e9e8aba | 47195 | if test "x${D}{headerfile}" = "x" ; then |
f10e38c4 | 47196 | echo "error: can't find header ${D}{header} in include paths" >&2 |
a848cd7e | 47197 | else |
1e9e8aba DE |
47198 | if test -f ${D}{outfile} ; then |
47199 | rm -f ${D}{outfile} | |
a848cd7e | 47200 | else |
1e9e8aba | 47201 | mkdir -p \`dirname ${D}{outfile}\` |
a848cd7e | 47202 | fi |
1e9e8aba | 47203 | depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d" |
a848cd7e | 47204 | mkdir -p .deps |
f10e38c4 VZ |
47205 | if test "x${GCC_PCH}" = "x1" ; then |
47206 | # can do this because gcc is >= 3.4: | |
47207 | ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}" | |
47208 | elif test "x${ICC_PCH}" = "x1" ; then | |
47209 | filename=pch_gen-${D}${D} | |
47210 | file=${D}{filename}.c | |
47211 | dfile=${D}{filename}.d | |
47212 | cat > ${D}file <<EOT | |
47213 | #include "${D}header" | |
47214 | EOT | |
47215 | # using -MF icc complains about differing command lines in creation/use | |
47216 | ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\ | |
47217 | sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\ | |
47218 | rm -f ${D}file ${D}dfile ${D}{filename}.o | |
47219 | fi | |
1e9e8aba | 47220 | exit ${D}{?} |
a848cd7e SC |
47221 | fi |
47222 | EOF | |
1e9e8aba | 47223 | |
a848cd7e SC |
47224 | chmod +x bk-make-pch |
47225 | fi | |
47226 | fi | |
47227 | fi | |
47228 | ||
47229 | ||
47230 | ||
f10e38c4 | 47231 | |
a848cd7e SC |
47232 | COND_BUILD_DEBUG="#" |
47233 | if test "x$BUILD" = "xdebug" ; then | |
47234 | COND_BUILD_DEBUG="" | |
47235 | fi | |
47236 | ||
47237 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
47238 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
47239 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
47240 | fi | |
47241 | ||
47242 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
47243 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
47244 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
47245 | fi | |
47246 | ||
47247 | COND_BUILD_DEBUG_UNICODE_0="#" | |
47248 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
47249 | COND_BUILD_DEBUG_UNICODE_0="" | |
47250 | fi | |
47251 | ||
47252 | COND_BUILD_DEBUG_UNICODE_1="#" | |
47253 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
47254 | COND_BUILD_DEBUG_UNICODE_1="" | |
47255 | fi | |
47256 | ||
47257 | COND_BUILD_RELEASE="#" | |
47258 | if test "x$BUILD" = "xrelease" ; then | |
47259 | COND_BUILD_RELEASE="" | |
47260 | fi | |
47261 | ||
47262 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
47263 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
47264 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
47265 | fi | |
47266 | ||
47267 | COND_BUILD_RELEASE_UNICODE_0="#" | |
47268 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
47269 | COND_BUILD_RELEASE_UNICODE_0="" | |
47270 | fi | |
47271 | ||
47272 | COND_BUILD_RELEASE_UNICODE_1="#" | |
47273 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
47274 | COND_BUILD_RELEASE_UNICODE_1="" | |
47275 | fi | |
47276 | ||
47277 | COND_DEBUG_FLAG_1="#" | |
47278 | if test "x$DEBUG_FLAG" = "x1" ; then | |
47279 | COND_DEBUG_FLAG_1="" | |
47280 | fi | |
47281 | ||
47282 | COND_DEBUG_INFO_0="#" | |
47283 | if test "x$DEBUG_INFO" = "x0" ; then | |
47284 | COND_DEBUG_INFO_0="" | |
47285 | fi | |
47286 | ||
47287 | COND_DEBUG_INFO_1="#" | |
47288 | if test "x$DEBUG_INFO" = "x1" ; then | |
47289 | COND_DEBUG_INFO_1="" | |
47290 | fi | |
47291 | ||
47292 | COND_DEPS_TRACKING_0="#" | |
47293 | if test "x$DEPS_TRACKING" = "x0" ; then | |
47294 | COND_DEPS_TRACKING_0="" | |
47295 | fi | |
47296 | ||
47297 | COND_DEPS_TRACKING_1="#" | |
47298 | if test "x$DEPS_TRACKING" = "x1" ; then | |
47299 | COND_DEPS_TRACKING_1="" | |
47300 | fi | |
47301 | ||
47302 | COND_GCC_PCH_1="#" | |
47303 | if test "x$GCC_PCH" = "x1" ; then | |
47304 | COND_GCC_PCH_1="" | |
47305 | fi | |
47306 | ||
f10e38c4 VZ |
47307 | COND_ICC_PCH_1="#" |
47308 | if test "x$ICC_PCH" = "x1" ; then | |
47309 | COND_ICC_PCH_1="" | |
47310 | fi | |
47311 | ||
a848cd7e SC |
47312 | COND_MONOLITHIC_0="#" |
47313 | if test "x$MONOLITHIC" = "x0" ; then | |
47314 | COND_MONOLITHIC_0="" | |
47315 | fi | |
47316 | ||
47317 | COND_MONOLITHIC_0_SHARED_0="#" | |
47318 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
47319 | COND_MONOLITHIC_0_SHARED_0="" | |
47320 | fi | |
47321 | ||
47322 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
47323 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
47324 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
47325 | fi | |
47326 | ||
90970d69 DE |
47327 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#" |
47328 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
47329 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="" | |
47330 | fi | |
47331 | ||
f10e38c4 VZ |
47332 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#" |
47333 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then | |
47334 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="" | |
47335 | fi | |
47336 | ||
a848cd7e SC |
47337 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" |
47338 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
47339 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
47340 | fi | |
47341 | ||
6671c68b VZ |
47342 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#" |
47343 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
47344 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="" | |
47345 | fi | |
47346 | ||
a848cd7e SC |
47347 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" |
47348 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
47349 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
47350 | fi | |
47351 | ||
ceec2216 RL |
47352 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#" |
47353 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
47354 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="" | |
47355 | fi | |
47356 | ||
a848cd7e SC |
47357 | COND_MONOLITHIC_0_SHARED_1="#" |
47358 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
47359 | COND_MONOLITHIC_0_SHARED_1="" | |
47360 | fi | |
47361 | ||
47362 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
47363 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
47364 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
47365 | fi | |
47366 | ||
90970d69 DE |
47367 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#" |
47368 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
47369 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="" | |
47370 | fi | |
47371 | ||
f10e38c4 VZ |
47372 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#" |
47373 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then | |
47374 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="" | |
47375 | fi | |
47376 | ||
a848cd7e SC |
47377 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" |
47378 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
47379 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
47380 | fi | |
47381 | ||
6671c68b VZ |
47382 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#" |
47383 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
47384 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="" | |
47385 | fi | |
47386 | ||
a848cd7e SC |
47387 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" |
47388 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
47389 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
47390 | fi | |
47391 | ||
ceec2216 RL |
47392 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#" |
47393 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
47394 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="" | |
47395 | fi | |
47396 | ||
e5efa97e VZ |
47397 | COND_MONOLITHIC_0_USE_MEDIA_1="#" |
47398 | if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then | |
47399 | COND_MONOLITHIC_0_USE_MEDIA_1="" | |
47400 | fi | |
47401 | ||
a848cd7e SC |
47402 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
47403 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
47404 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
47405 | fi | |
47406 | ||
47407 | COND_MONOLITHIC_1="#" | |
47408 | if test "x$MONOLITHIC" = "x1" ; then | |
47409 | COND_MONOLITHIC_1="" | |
47410 | fi | |
47411 | ||
47412 | COND_MONOLITHIC_1_SHARED_0="#" | |
47413 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
47414 | COND_MONOLITHIC_1_SHARED_0="" | |
47415 | fi | |
47416 | ||
47417 | COND_MONOLITHIC_1_SHARED_1="#" | |
47418 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
47419 | COND_MONOLITHIC_1_SHARED_1="" | |
47420 | fi | |
47421 | ||
47422 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
47423 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
47424 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
47425 | fi | |
47426 | ||
47427 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
47428 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
47429 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
47430 | fi | |
47431 | ||
eb730a0c JS |
47432 | COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#" |
47433 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
47434 | COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="" | |
47435 | fi | |
47436 | ||
a848cd7e SC |
47437 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" |
47438 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
47439 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
47440 | fi | |
47441 | ||
47442 | COND_PLATFORM_MACOSX_1="#" | |
47443 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
47444 | COND_PLATFORM_MACOSX_1="" | |
47445 | fi | |
47446 | ||
a30f955f VS |
47447 | COND_PLATFORM_MACOSX_1_TOOLKIT_="#" |
47448 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then | |
47449 | COND_PLATFORM_MACOSX_1_TOOLKIT_="" | |
47450 | fi | |
47451 | ||
a848cd7e SC |
47452 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" |
47453 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
47454 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
47455 | fi | |
47456 | ||
47457 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
47458 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
47459 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
47460 | fi | |
47461 | ||
47462 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
47463 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
47464 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
47465 | fi | |
47466 | ||
fc480dc1 DE |
47467 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#" |
47468 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
47469 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="" | |
47470 | fi | |
47471 | ||
1e9e8aba DE |
47472 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" |
47473 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47474 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
47475 | fi | |
47476 | ||
ebee3cd0 VS |
47477 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#" |
47478 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then | |
47479 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="" | |
47480 | fi | |
47481 | ||
47482 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#" | |
47483 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then | |
47484 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="" | |
47485 | fi | |
47486 | ||
a848cd7e SC |
47487 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
47488 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
47489 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
47490 | fi | |
47491 | ||
47492 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
47493 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
47494 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
47495 | fi | |
47496 | ||
b48a2016 DE |
47497 | COND_PLATFORM_MACOS_1="#" |
47498 | if test "x$PLATFORM_MACOS" = "x1" ; then | |
47499 | COND_PLATFORM_MACOS_1="" | |
47500 | fi | |
47501 | ||
083508af MW |
47502 | COND_PLATFORM_MAC_1="#" |
47503 | if test "x$PLATFORM_MAC" = "x1" ; then | |
47504 | COND_PLATFORM_MAC_1="" | |
47505 | fi | |
47506 | ||
e5efa97e VZ |
47507 | COND_PLATFORM_MSDOS_0="#" |
47508 | if test "x$PLATFORM_MSDOS" = "x0" ; then | |
47509 | COND_PLATFORM_MSDOS_0="" | |
47510 | fi | |
47511 | ||
83d8eb47 MW |
47512 | COND_PLATFORM_MSDOS_1="#" |
47513 | if test "x$PLATFORM_MSDOS" = "x1" ; then | |
47514 | COND_PLATFORM_MSDOS_1="" | |
47515 | fi | |
47516 | ||
a848cd7e SC |
47517 | COND_PLATFORM_OS2_1="#" |
47518 | if test "x$PLATFORM_OS2" = "x1" ; then | |
47519 | COND_PLATFORM_OS2_1="" | |
47520 | fi | |
47521 | ||
47522 | COND_PLATFORM_UNIX_0="#" | |
47523 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
47524 | COND_PLATFORM_UNIX_0="" | |
47525 | fi | |
47526 | ||
47527 | COND_PLATFORM_UNIX_1="#" | |
47528 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
47529 | COND_PLATFORM_UNIX_1="" | |
47530 | fi | |
47531 | ||
47532 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
47533 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
47534 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
47535 | fi | |
47536 | ||
47537 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
47538 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
47539 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
47540 | fi | |
47541 | ||
47542 | COND_PLATFORM_WIN32_0="#" | |
47543 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
47544 | COND_PLATFORM_WIN32_0="" | |
47545 | fi | |
47546 | ||
47547 | COND_PLATFORM_WIN32_1="#" | |
47548 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
47549 | COND_PLATFORM_WIN32_1="" | |
47550 | fi | |
47551 | ||
47552 | COND_SHARED_0="#" | |
47553 | if test "x$SHARED" = "x0" ; then | |
47554 | COND_SHARED_0="" | |
47555 | fi | |
47556 | ||
083508af MW |
47557 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#" |
47558 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
47559 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="" | |
47560 | fi | |
47561 | ||
47562 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#" | |
47563 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
47564 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="" | |
47565 | fi | |
47566 | ||
47567 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#" | |
47568 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
47569 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="" | |
47570 | fi | |
47571 | ||
a848cd7e SC |
47572 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
47573 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
47574 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
47575 | fi | |
47576 | ||
47577 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
47578 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
47579 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
47580 | fi | |
47581 | ||
47582 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
47583 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
47584 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
47585 | fi | |
47586 | ||
47587 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
47588 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
47589 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
47590 | fi | |
47591 | ||
083508af MW |
47592 | COND_SHARED_0_USE_XRC_1="#" |
47593 | if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
47594 | COND_SHARED_0_USE_XRC_1="" | |
47595 | fi | |
47596 | ||
a848cd7e SC |
47597 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" |
47598 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
47599 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
47600 | fi | |
47601 | ||
47602 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
47603 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
47604 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
47605 | fi | |
47606 | ||
47607 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
47608 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
47609 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
47610 | fi | |
47611 | ||
47612 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
47613 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
47614 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
47615 | fi | |
47616 | ||
47617 | COND_SHARED_1="#" | |
47618 | if test "x$SHARED" = "x1" ; then | |
47619 | COND_SHARED_1="" | |
47620 | fi | |
47621 | ||
47622 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
47623 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
47624 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
47625 | fi | |
47626 | ||
083508af MW |
47627 | COND_SHARED_1_USE_XRC_1="#" |
47628 | if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
47629 | COND_SHARED_1_USE_XRC_1="" | |
47630 | fi | |
47631 | ||
a30f955f VS |
47632 | COND_TOOLKIT_="#" |
47633 | if test "x$TOOLKIT" = "x" ; then | |
47634 | COND_TOOLKIT_="" | |
47635 | fi | |
47636 | ||
a848cd7e SC |
47637 | COND_TOOLKIT_COCOA="#" |
47638 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
47639 | COND_TOOLKIT_COCOA="" | |
47640 | fi | |
47641 | ||
a49baeab DE |
47642 | COND_TOOLKIT_COCOA_USE_GUI_1="#" |
47643 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then | |
47644 | COND_TOOLKIT_COCOA_USE_GUI_1="" | |
47645 | fi | |
47646 | ||
a848cd7e SC |
47647 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
47648 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47649 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
47650 | fi | |
47651 | ||
47652 | COND_TOOLKIT_GTK="#" | |
47653 | if test "x$TOOLKIT" = "xGTK" ; then | |
47654 | COND_TOOLKIT_GTK="" | |
47655 | fi | |
47656 | ||
d044deea MW |
47657 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#" |
47658 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then | |
47659 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_="" | |
47660 | fi | |
47661 | ||
47662 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#" | |
47663 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then | |
47664 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="" | |
47665 | fi | |
47666 | ||
47667 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#" | |
47668 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then | |
47669 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="" | |
47670 | fi | |
47671 | ||
47672 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#" | |
47673 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47674 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="" | |
47675 | fi | |
47676 | ||
47677 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#" | |
47678 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then | |
47679 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="" | |
47680 | fi | |
47681 | ||
47682 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#" | |
47683 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47684 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="" | |
47685 | fi | |
47686 | ||
a848cd7e SC |
47687 | COND_TOOLKIT_GTK_USE_GUI_1="#" |
47688 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
47689 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
47690 | fi | |
47691 | ||
a848cd7e SC |
47692 | COND_TOOLKIT_MAC="#" |
47693 | if test "x$TOOLKIT" = "xMAC" ; then | |
47694 | COND_TOOLKIT_MAC="" | |
47695 | fi | |
47696 | ||
47697 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
47698 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
47699 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
47700 | fi | |
47701 | ||
47702 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
47703 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47704 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
47705 | fi | |
47706 | ||
47707 | COND_TOOLKIT_MGL="#" | |
47708 | if test "x$TOOLKIT" = "xMGL" ; then | |
47709 | COND_TOOLKIT_MGL="" | |
47710 | fi | |
47711 | ||
47712 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
47713 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
47714 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
47715 | fi | |
47716 | ||
47717 | COND_TOOLKIT_MOTIF="#" | |
47718 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
47719 | COND_TOOLKIT_MOTIF="" | |
47720 | fi | |
47721 | ||
47722 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
47723 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
47724 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
47725 | fi | |
47726 | ||
47727 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
47728 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47729 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
47730 | fi | |
47731 | ||
47732 | COND_TOOLKIT_MSW="#" | |
47733 | if test "x$TOOLKIT" = "xMSW" ; then | |
47734 | COND_TOOLKIT_MSW="" | |
47735 | fi | |
47736 | ||
47737 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
47738 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
47739 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
47740 | fi | |
47741 | ||
47742 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
47743 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47744 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
47745 | fi | |
47746 | ||
0ee4059d DE |
47747 | COND_TOOLKIT_MSW_WXUNIV_0="#" |
47748 | if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
47749 | COND_TOOLKIT_MSW_WXUNIV_0="" | |
47750 | fi | |
47751 | ||
a848cd7e SC |
47752 | COND_TOOLKIT_PM="#" |
47753 | if test "x$TOOLKIT" = "xPM" ; then | |
47754 | COND_TOOLKIT_PM="" | |
47755 | fi | |
47756 | ||
47757 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
47758 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
47759 | COND_TOOLKIT_PM_USE_GUI_1="" | |
47760 | fi | |
47761 | ||
47762 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
47763 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47764 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
47765 | fi | |
47766 | ||
3fd9c298 DE |
47767 | COND_TOOLKIT_WINCE="#" |
47768 | if test "x$TOOLKIT" = "xWINCE" ; then | |
47769 | COND_TOOLKIT_WINCE="" | |
47770 | fi | |
47771 | ||
47772 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
47773 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
47774 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
47775 | fi | |
47776 | ||
47777 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
47778 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47779 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
47780 | fi | |
47781 | ||
0ee4059d DE |
47782 | COND_TOOLKIT_WINCE_WXUNIV_0="#" |
47783 | if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then | |
47784 | COND_TOOLKIT_WINCE_WXUNIV_0="" | |
47785 | fi | |
47786 | ||
a848cd7e SC |
47787 | COND_TOOLKIT_X11="#" |
47788 | if test "x$TOOLKIT" = "xX11" ; then | |
47789 | COND_TOOLKIT_X11="" | |
47790 | fi | |
47791 | ||
47792 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
47793 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
47794 | COND_TOOLKIT_X11_USE_GUI_1="" | |
47795 | fi | |
47796 | ||
47797 | COND_UNICODE_1="#" | |
47798 | if test "x$UNICODE" = "x1" ; then | |
47799 | COND_UNICODE_1="" | |
47800 | fi | |
47801 | ||
47802 | COND_USE_EXCEPTIONS_0="#" | |
47803 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
47804 | COND_USE_EXCEPTIONS_0="" | |
47805 | fi | |
47806 | ||
47807 | COND_USE_EXCEPTIONS_1="#" | |
47808 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
47809 | COND_USE_EXCEPTIONS_1="" | |
47810 | fi | |
47811 | ||
47812 | COND_USE_GUI_0="#" | |
47813 | if test "x$USE_GUI" = "x0" ; then | |
47814 | COND_USE_GUI_0="" | |
47815 | fi | |
47816 | ||
47817 | COND_USE_GUI_1="#" | |
47818 | if test "x$USE_GUI" = "x1" ; then | |
47819 | COND_USE_GUI_1="" | |
47820 | fi | |
47821 | ||
47822 | COND_USE_GUI_1_WXUNIV_0="#" | |
47823 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47824 | COND_USE_GUI_1_WXUNIV_0="" | |
47825 | fi | |
47826 | ||
47827 | COND_USE_GUI_1_WXUNIV_1="#" | |
47828 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
47829 | COND_USE_GUI_1_WXUNIV_1="" | |
47830 | fi | |
47831 | ||
47832 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
47833 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
47834 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
47835 | fi | |
47836 | ||
47837 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
47838 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
47839 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
47840 | fi | |
47841 | ||
47842 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
47843 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
47844 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
47845 | fi | |
47846 | ||
083508af MW |
47847 | COND_USE_ODBC_1="#" |
47848 | if test "x$USE_ODBC" = "x1" ; then | |
47849 | COND_USE_ODBC_1="" | |
47850 | fi | |
47851 | ||
47852 | COND_USE_OPENGL_1="#" | |
47853 | if test "x$USE_OPENGL" = "x1" ; then | |
47854 | COND_USE_OPENGL_1="" | |
47855 | fi | |
47856 | ||
f10e38c4 VZ |
47857 | COND_USE_PCH_1="#" |
47858 | if test "x$USE_PCH" = "x1" ; then | |
47859 | COND_USE_PCH_1="" | |
47860 | fi | |
47861 | ||
a848cd7e SC |
47862 | COND_USE_PLUGINS_0="#" |
47863 | if test "x$USE_PLUGINS" = "x0" ; then | |
47864 | COND_USE_PLUGINS_0="" | |
47865 | fi | |
47866 | ||
0b78747f MW |
47867 | COND_USE_RTTI_0="#" |
47868 | if test "x$USE_RTTI" = "x0" ; then | |
47869 | COND_USE_RTTI_0="" | |
47870 | fi | |
47871 | ||
47872 | COND_USE_RTTI_1="#" | |
47873 | if test "x$USE_RTTI" = "x1" ; then | |
47874 | COND_USE_RTTI_1="" | |
47875 | fi | |
47876 | ||
a848cd7e SC |
47877 | COND_USE_SOSYMLINKS_1="#" |
47878 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
47879 | COND_USE_SOSYMLINKS_1="" | |
47880 | fi | |
47881 | ||
eb730a0c JS |
47882 | COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#" |
47883 | if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
47884 | COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="" | |
47885 | fi | |
47886 | ||
a848cd7e SC |
47887 | COND_USE_SOVERLINUX_1="#" |
47888 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
47889 | COND_USE_SOVERLINUX_1="" | |
47890 | fi | |
47891 | ||
47892 | COND_USE_SOVERSION_0="#" | |
47893 | if test "x$USE_SOVERSION" = "x0" ; then | |
47894 | COND_USE_SOVERSION_0="" | |
47895 | fi | |
47896 | ||
47897 | COND_USE_SOVERSOLARIS_1="#" | |
47898 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
47899 | COND_USE_SOVERSOLARIS_1="" | |
47900 | fi | |
47901 | ||
0b78747f MW |
47902 | COND_USE_THREADS_0="#" |
47903 | if test "x$USE_THREADS" = "x0" ; then | |
47904 | COND_USE_THREADS_0="" | |
47905 | fi | |
47906 | ||
47907 | COND_USE_THREADS_1="#" | |
47908 | if test "x$USE_THREADS" = "x1" ; then | |
47909 | COND_USE_THREADS_1="" | |
47910 | fi | |
47911 | ||
a13a7f89 RL |
47912 | COND_USE_XRC_1="#" |
47913 | if test "x$USE_XRC" = "x1" ; then | |
47914 | COND_USE_XRC_1="" | |
47915 | fi | |
47916 | ||
eb730a0c JS |
47917 | COND_WINDOWS_IMPLIB_1="#" |
47918 | if test "x$WINDOWS_IMPLIB" = "x1" ; then | |
47919 | COND_WINDOWS_IMPLIB_1="" | |
47920 | fi | |
47921 | ||
a848cd7e SC |
47922 | COND_WITH_PLUGIN_SDL_1="#" |
47923 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
47924 | COND_WITH_PLUGIN_SDL_1="" | |
47925 | fi | |
47926 | ||
1e6eb025 VZ |
47927 | COND_WXUNIV_0="#" |
47928 | if test "x$WXUNIV" = "x0" ; then | |
47929 | COND_WXUNIV_0="" | |
47930 | fi | |
47931 | ||
a848cd7e SC |
47932 | COND_WXUNIV_1="#" |
47933 | if test "x$WXUNIV" = "x1" ; then | |
47934 | COND_WXUNIV_1="" | |
47935 | fi | |
47936 | ||
47937 | COND_WXUSE_EXPAT_BUILTIN="#" | |
47938 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
47939 | COND_WXUSE_EXPAT_BUILTIN="" | |
47940 | fi | |
47941 | ||
47942 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
47943 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
47944 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
47945 | fi | |
47946 | ||
47947 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
47948 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
47949 | COND_WXUSE_LIBPNG_BUILTIN="" | |
47950 | fi | |
47951 | ||
47952 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
47953 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
47954 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
47955 | fi | |
47956 | ||
47957 | COND_WXUSE_ODBC_BUILTIN="#" | |
47958 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
47959 | COND_WXUSE_ODBC_BUILTIN="" | |
47960 | fi | |
47961 | ||
47962 | COND_WXUSE_REGEX_BUILTIN="#" | |
47963 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
47964 | COND_WXUSE_REGEX_BUILTIN="" | |
47965 | fi | |
47966 | ||
47967 | COND_WXUSE_ZLIB_BUILTIN="#" | |
47968 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
47969 | COND_WXUSE_ZLIB_BUILTIN="" | |
47970 | fi | |
47971 | ||
47972 | ||
47973 | ||
810b94f0 MW |
47974 | if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then |
47975 | { { 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 | |
47976 | 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;} | |
47977 | { (exit 1); exit 1; }; } | |
47978 | fi | |
47979 | ||
2057db16 VS |
47980 | if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then |
47981 | { { 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 | |
47982 | 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;} | |
47983 | { (exit 1); exit 1; }; } | |
47984 | fi | |
47985 | ||
a848cd7e | 47986 | |
7afc46ab KO |
47987 | |
47988 | if test "$wxUSE_MAC" = 1 ; then | |
47989 | if test "$wxUSE_UNIVERSAL_BINARY" = "yes" ; then | |
47990 | sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp | |
47991 | mv temp bk-deps | |
47992 | chmod +x bk-deps | |
47993 | fi | |
47994 | fi | |
47995 | ||
ceec2216 RL |
47996 | if test "$wxUSE_SHARED" = "yes"; then |
47997 | ||
47998 | sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'` | |
47999 | EXE_LINKER=`eval echo "$sanitised_bakefile_mess"` | |
48000 | ||
5b674b9d DE |
48001 | case "${host}" in |
48002 | *-pc-os2_emx | *-pc-os2-emx ) | |
48003 | SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
48004 | SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
48005 | cp -p ${srcdir}/src/os2/dllnames.sh . | |
48006 | cp -p ${srcdir}/src/os2/dllar.sh . | |
48007 | ;; | |
48008 | esac | |
ceec2216 RL |
48009 | else |
48010 | ||
48011 | EXE_LINKER="$CXX -o" | |
48012 | ||
48013 | fi | |
69120ee4 VZ |
48014 | if test "$wxUSE_OMF" = "yes"; then |
48015 | case "${host}" in | |
48016 | *-pc-os2_emx | *-pc-os2-emx ) | |
48017 | LDFLAGS="$LDFLAGS -Zlinker /EXEPACK" | |
48018 | LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
48019 | WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
48020 | ;; | |
48021 | esac | |
48022 | fi | |
a848cd7e | 48023 | |
c08ebc62 | 48024 | if test $GCC_PCH = 1 ; then |
254e8e29 | 48025 | CPPFLAGS="-DWX_PRECOMP $CPPFLAGS" |
ddd14b14 | 48026 | fi |
a848cd7e | 48027 | |
5ff751d6 | 48028 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS" |
a848cd7e SC |
48029 | |
48030 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
48031 | ||
48032 | ||
48033 | ||
48034 | ||
48035 | ||
48036 | ||
48037 | ||
48038 | ||
48039 | ||
48040 | ||
48041 | ||
48042 | ||
48043 | ||
48044 | ||
48045 | ||
48046 | ||
48047 | ||
48048 | ||
48049 | ||
48050 | ||
48051 | ||
48052 | ||
48053 | ||
48054 | ||
48055 | ||
48056 | ||
48057 | ||
48058 | ||
48059 | ||
48060 | ||
48061 | ||
48062 | ||
48063 | ||
48064 | ||
48065 | ||
48066 | ||
48067 | ||
48068 | ||
48069 | ||
48070 | ||
48071 | ||
48072 | ||
a848cd7e SC |
48073 | |
48074 | ||
48075 | ||
48076 | ||
48077 | ||
48078 | ||
48079 | ||
48080 | ||
48081 | ||
48082 | ||
48083 | ||
48084 | ||
a848cd7e SC |
48085 | |
48086 | ||
ddd14b14 | 48087 | |
370d2fd7 | 48088 | |
8ced02f6 | 48089 | |
a848cd7e SC |
48090 | |
48091 | ||
48092 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
48093 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 48094 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
48095 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
48096 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48097 | else | |
48098 | cat >conftest.make <<\_ACEOF | |
48099 | all: | |
48100 | @echo 'ac_maketemp="$(MAKE)"' | |
48101 | _ACEOF | |
48102 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
48103 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
48104 | if test -n "$ac_maketemp"; then | |
48105 | eval ac_cv_prog_make_${ac_make}_set=yes | |
48106 | else | |
48107 | eval ac_cv_prog_make_${ac_make}_set=no | |
48108 | fi | |
48109 | rm -f conftest.make | |
48110 | fi | |
48111 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
48112 | echo "$as_me:$LINENO: result: yes" >&5 | |
48113 | echo "${ECHO_T}yes" >&6 | |
48114 | SET_MAKE= | |
48115 | else | |
48116 | echo "$as_me:$LINENO: result: no" >&5 | |
48117 | echo "${ECHO_T}no" >&6 | |
48118 | SET_MAKE="MAKE=${MAKE-make}" | |
48119 | fi | |
48120 | ||
48121 | ||
a848cd7e | 48122 | |
ceec2216 RL |
48123 | ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" |
48124 | ||
a848cd7e | 48125 | |
5c60e845 MW |
48126 | if test "$USE_WIN32" = 1; then |
48127 | ac_config_commands="$ac_config_commands | |
48128 | rcdefs.h | |
48129 | " | |
48130 | ||
48131 | fi | |
48132 | ||
ceec2216 | 48133 | ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" |
a848cd7e | 48134 | |
a848cd7e | 48135 | |
ceec2216 | 48136 | ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" |
a848cd7e | 48137 | |
ceec2216 RL |
48138 | |
48139 | ac_config_files="$ac_config_files version-script Makefile" | |
48140 | ||
48141 | ||
5c60e845 | 48142 | ac_config_commands="$ac_config_commands wx-config" |
a848cd7e SC |
48143 | |
48144 | ||
9103d280 | 48145 | |
1c14217d | 48146 | if test "$wxWITH_SUBDIRS" != "no"; then |
a848cd7e SC |
48147 | if test "$wxUSE_GUI" = "yes"; then |
48148 | SUBDIRS="samples demos utils contrib" | |
48149 | else SUBDIRS="samples utils" | |
48150 | fi | |
48151 | ||
48152 | ||
48153 | ||
48154 | # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given. | |
48155 | if test "${with_cppunit_prefix+set}" = set; then | |
48156 | withval="$with_cppunit_prefix" | |
48157 | cppunit_config_prefix="$withval" | |
48158 | else | |
48159 | cppunit_config_prefix="" | |
48160 | fi; | |
48161 | ||
48162 | # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given. | |
48163 | if test "${with_cppunit_exec_prefix+set}" = set; then | |
48164 | withval="$with_cppunit_exec_prefix" | |
48165 | cppunit_config_exec_prefix="$withval" | |
48166 | else | |
48167 | cppunit_config_exec_prefix="" | |
48168 | fi; | |
48169 | ||
48170 | if test x$cppunit_config_exec_prefix != x ; then | |
48171 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" | |
48172 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
48173 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config | |
48174 | fi | |
48175 | fi | |
48176 | if test x$cppunit_config_prefix != x ; then | |
48177 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" | |
48178 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
48179 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config | |
48180 | fi | |
48181 | fi | |
48182 | ||
48183 | # Extract the first word of "cppunit-config", so it can be a program name with args. | |
48184 | set dummy cppunit-config; ac_word=$2 | |
48185 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
48186 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
48187 | if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then | |
48188 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48189 | else | |
48190 | case $CPPUNIT_CONFIG in | |
48191 | [\\/]* | ?:[\\/]*) | |
48192 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. | |
48193 | ;; | |
48194 | *) | |
48195 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
48196 | for as_dir in $PATH | |
48197 | do | |
48198 | IFS=$as_save_IFS | |
48199 | test -z "$as_dir" && as_dir=. | |
48200 | for ac_exec_ext in '' $ac_executable_extensions; do | |
48201 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
48202 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
48203 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
48204 | break 2 | |
48205 | fi | |
48206 | done | |
48207 | done | |
48208 | ||
48209 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" | |
48210 | ;; | |
48211 | esac | |
48212 | fi | |
48213 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG | |
48214 | ||
48215 | if test -n "$CPPUNIT_CONFIG"; then | |
48216 | echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 | |
48217 | echo "${ECHO_T}$CPPUNIT_CONFIG" >&6 | |
48218 | else | |
48219 | echo "$as_me:$LINENO: result: no" >&5 | |
48220 | echo "${ECHO_T}no" >&6 | |
48221 | fi | |
48222 | ||
48223 | cppunit_version_min=1.8.0 | |
48224 | ||
48225 | echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 | |
48226 | echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6 | |
48227 | no_cppunit="" | |
48228 | if test "$CPPUNIT_CONFIG" = "no" ; then | |
48229 | no_cppunit=yes | |
48230 | else | |
48231 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` | |
48232 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` | |
48233 | cppunit_version=`$CPPUNIT_CONFIG --version` | |
48234 | ||
48235 | cppunit_major_version=`echo $cppunit_version | \ | |
48236 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
48237 | cppunit_minor_version=`echo $cppunit_version | \ | |
48238 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
48239 | cppunit_micro_version=`echo $cppunit_version | \ | |
48240 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
48241 | ||
48242 | cppunit_major_min=`echo $cppunit_version_min | \ | |
48243 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
48244 | cppunit_minor_min=`echo $cppunit_version_min | \ | |
48245 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
48246 | cppunit_micro_min=`echo $cppunit_version_min | \ | |
48247 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
48248 | ||
48249 | cppunit_version_proper=`expr \ | |
48250 | $cppunit_major_version \> $cppunit_major_min \| \ | |
48251 | $cppunit_major_version \= $cppunit_major_min \& \ | |
48252 | $cppunit_minor_version \> $cppunit_minor_min \| \ | |
48253 | $cppunit_major_version \= $cppunit_major_min \& \ | |
48254 | $cppunit_minor_version \= $cppunit_minor_min \& \ | |
48255 | $cppunit_micro_version \>= $cppunit_micro_min ` | |
48256 | ||
48257 | if test "$cppunit_version_proper" = "1" ; then | |
48258 | echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 | |
48259 | echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6 | |
48260 | else | |
48261 | echo "$as_me:$LINENO: result: no" >&5 | |
48262 | echo "${ECHO_T}no" >&6 | |
48263 | no_cppunit=yes | |
48264 | fi | |
48265 | fi | |
48266 | ||
48267 | if test "x$no_cppunit" = x ; then | |
c2218763 | 48268 | SUBDIRS="$SUBDIRS tests" |
a848cd7e SC |
48269 | else |
48270 | CPPUNIT_CFLAGS="" | |
48271 | CPPUNIT_LIBS="" | |
c2218763 | 48272 | : |
a848cd7e SC |
48273 | fi |
48274 | ||
48275 | ||
48276 | ||
48277 | ||
48278 | ||
48279 | for subdir in `echo $SUBDIRS`; do | |
48280 | if test -d ${srcdir}/${subdir} ; then | |
48281 | if test "$wxUSE_GUI" = "yes"; then | |
48282 | if test ${subdir} = "samples"; then | |
48283 | makefiles="samples/Makefile.in $makefiles" | |
48284 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
48285 | if test -d $srcdir/samples/$sample; then | |
48286 | makefiles="samples/$sample/Makefile.in $makefiles" | |
48287 | fi | |
48288 | done | |
9c112555 MW |
48289 | else |
48290 | disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`; | |
48291 | eval "disabled=\$$disabled_var" | |
48292 | disabled=/`echo X $disabled | sed 's@ @/|/@g'`/ | |
48293 | makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"` | |
a848cd7e SC |
48294 | fi |
48295 | else if test ${subdir} = "samples"; then | |
48296 | makefiles="samples/Makefile.in samples/console/Makefile.in" | |
48297 | elif test ${subdir} = "utils"; then | |
6537ccf8 VS |
48298 | makefiles="" |
48299 | for util in HelpGen tex2rtf ; do | |
48300 | if test -d $srcdir/utils/$util ; then | |
48301 | makefiles="utils/$util/Makefile.in \ | |
48302 | utils/$util/src/Makefile.in \ | |
48303 | $makefiles" | |
48304 | fi | |
48305 | done | |
a848cd7e SC |
48306 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` |
48307 | fi | |
48308 | fi | |
48309 | ||
48310 | for mkin in $makefiles ; do | |
48311 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
48312 | ac_config_files="$ac_config_files $mk" | |
48313 | ||
48314 | done | |
48315 | fi | |
48316 | done | |
1c14217d | 48317 | fi |
a848cd7e SC |
48318 | cat >confcache <<\_ACEOF |
48319 | # This file is a shell script that caches the results of configure | |
48320 | # tests run on this system so they can be shared between configure | |
48321 | # scripts and configure runs, see configure's option --config-cache. | |
48322 | # It is not useful on other systems. If it contains results you don't | |
48323 | # want to keep, you may remove or edit it. | |
48324 | # | |
48325 | # config.status only pays attention to the cache file if you give it | |
48326 | # the --recheck option to rerun configure. | |
48327 | # | |
48328 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
48329 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
48330 | # following values. | |
48331 | ||
48332 | _ACEOF | |
48333 | ||
48334 | # The following way of writing the cache mishandles newlines in values, | |
48335 | # but we know of no workaround that is simple, portable, and efficient. | |
48336 | # So, don't put newlines in cache variables' values. | |
48337 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
48338 | # and sets the high bit in the cache file unless we assign to the vars. | |
48339 | { | |
48340 | (set) 2>&1 | | |
48341 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
48342 | *ac_space=\ *) | |
48343 | # `set' does not quote correctly, so add quotes (double-quote | |
48344 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
48345 | sed -n \ | |
ac1cb8d3 VS |
48346 | "s/'/'\\\\''/g; |
48347 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
48348 | ;; |
48349 | *) | |
48350 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
48351 | sed -n \ | |
ac1cb8d3 | 48352 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
48353 | ;; |
48354 | esac; | |
48355 | } | | |
48356 | sed ' | |
48357 | t clear | |
48358 | : clear | |
48359 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
48360 | t end | |
48361 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
48362 | : end' >>confcache | |
48363 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
48364 | if test -w $cache_file; then | |
48365 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
48366 | cat confcache >$cache_file | |
48367 | else | |
48368 | echo "not updating unwritable cache $cache_file" | |
48369 | fi | |
48370 | fi | |
48371 | rm -f confcache | |
48372 | ||
48373 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
48374 | # Let make expand exec_prefix. | |
48375 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
48376 | ||
48377 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
48378 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
48379 | # trailing colons and then remove the whole line if VPATH becomes empty | |
48380 | # (actually we leave an empty line to preserve line numbers). | |
48381 | if test "x$srcdir" = x.; then | |
ac1cb8d3 | 48382 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
a848cd7e SC |
48383 | s/:*\$(srcdir):*/:/; |
48384 | s/:*\${srcdir}:*/:/; | |
48385 | s/:*@srcdir@:*/:/; | |
ac1cb8d3 | 48386 | s/^\([^=]*=[ ]*\):*/\1/; |
a848cd7e | 48387 | s/:*$//; |
ac1cb8d3 | 48388 | s/^[^=]*=[ ]*$//; |
a848cd7e SC |
48389 | }' |
48390 | fi | |
48391 | ||
48392 | DEFS=-DHAVE_CONFIG_H | |
48393 | ||
48394 | ac_libobjs= | |
48395 | ac_ltlibobjs= | |
48396 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
48397 | # 1. Remove the extension, and $U if already installed. | |
48398 | ac_i=`echo "$ac_i" | | |
ac1cb8d3 | 48399 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
a848cd7e SC |
48400 | # 2. Add them. |
48401 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
48402 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
48403 | done | |
48404 | LIBOBJS=$ac_libobjs | |
48405 | ||
48406 | LTLIBOBJS=$ac_ltlibobjs | |
48407 | ||
48408 | ||
48409 | ||
48410 | : ${CONFIG_STATUS=./config.status} | |
48411 | ac_clean_files_save=$ac_clean_files | |
48412 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
48413 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
48414 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
48415 | cat >$CONFIG_STATUS <<_ACEOF | |
48416 | #! $SHELL | |
48417 | # Generated by $as_me. | |
48418 | # Run this file to recreate the current configuration. | |
48419 | # Compiler output produced by configure, useful for debugging | |
48420 | # configure, is in config.log if it exists. | |
48421 | ||
48422 | debug=false | |
48423 | ac_cs_recheck=false | |
48424 | ac_cs_silent=false | |
48425 | SHELL=\${CONFIG_SHELL-$SHELL} | |
48426 | _ACEOF | |
48427 | ||
48428 | cat >>$CONFIG_STATUS <<\_ACEOF | |
48429 | ## --------------------- ## | |
48430 | ## M4sh Initialization. ## | |
48431 | ## --------------------- ## | |
48432 | ||
48433 | # Be Bourne compatible | |
48434 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
48435 | emulate sh | |
48436 | NULLCMD=: | |
48437 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
48438 | # is contrary to our usage. Disable this feature. | |
48439 | alias -g '${1+"$@"}'='"$@"' | |
48440 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
48441 | set -o posix | |
48442 | fi | |
ac1cb8d3 | 48443 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
48444 | |
48445 | # Support unset when possible. | |
ac1cb8d3 | 48446 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
48447 | as_unset=unset |
48448 | else | |
48449 | as_unset=false | |
48450 | fi | |
48451 | ||
48452 | ||
48453 | # Work around bugs in pre-3.0 UWIN ksh. | |
48454 | $as_unset ENV MAIL MAILPATH | |
48455 | PS1='$ ' | |
48456 | PS2='> ' | |
48457 | PS4='+ ' | |
48458 | ||
48459 | # NLS nuisances. | |
48460 | for as_var in \ | |
48461 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
48462 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
48463 | LC_TELEPHONE LC_TIME | |
48464 | do | |
ac1cb8d3 | 48465 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
48466 | eval $as_var=C; export $as_var |
48467 | else | |
48468 | $as_unset $as_var | |
48469 | fi | |
48470 | done | |
48471 | ||
48472 | # Required to use basename. | |
48473 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
48474 | as_expr=expr | |
48475 | else | |
48476 | as_expr=false | |
48477 | fi | |
48478 | ||
48479 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
48480 | as_basename=basename | |
48481 | else | |
48482 | as_basename=false | |
48483 | fi | |
48484 | ||
48485 | ||
48486 | # Name of the executable. | |
48487 | as_me=`$as_basename "$0" || | |
48488 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
48489 | X"$0" : 'X\(//\)$' \| \ | |
48490 | X"$0" : 'X\(/\)$' \| \ | |
48491 | . : '\(.\)' 2>/dev/null || | |
48492 | echo X/"$0" | | |
48493 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
48494 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
48495 | /^X\/\(\/\).*/{ s//\1/; q; } | |
48496 | s/.*/./; q'` | |
48497 | ||
48498 | ||
48499 | # PATH needs CR, and LINENO needs CR and PATH. | |
48500 | # Avoid depending upon Character Ranges. | |
48501 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
48502 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
48503 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
48504 | as_cr_digits='0123456789' | |
48505 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
48506 | ||
48507 | # The user is always right. | |
48508 | if test "${PATH_SEPARATOR+set}" != set; then | |
48509 | echo "#! /bin/sh" >conf$$.sh | |
48510 | echo "exit 0" >>conf$$.sh | |
48511 | chmod +x conf$$.sh | |
48512 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
48513 | PATH_SEPARATOR=';' | |
48514 | else | |
48515 | PATH_SEPARATOR=: | |
48516 | fi | |
48517 | rm -f conf$$.sh | |
48518 | fi | |
48519 | ||
48520 | ||
48521 | as_lineno_1=$LINENO | |
48522 | as_lineno_2=$LINENO | |
48523 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
48524 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
48525 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
48526 | # Find who we are. Look in the path if we contain no path at all | |
48527 | # relative or not. | |
48528 | case $0 in | |
48529 | *[\\/]* ) as_myself=$0 ;; | |
48530 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
48531 | for as_dir in $PATH | |
48532 | do | |
48533 | IFS=$as_save_IFS | |
48534 | test -z "$as_dir" && as_dir=. | |
48535 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
48536 | done | |
48537 | ||
48538 | ;; | |
48539 | esac | |
48540 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
48541 | # in which case we are not to be found in the path. | |
48542 | if test "x$as_myself" = x; then | |
48543 | as_myself=$0 | |
48544 | fi | |
48545 | if test ! -f "$as_myself"; then | |
48546 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
48547 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
48548 | { (exit 1); exit 1; }; } | |
48549 | fi | |
48550 | case $CONFIG_SHELL in | |
48551 | '') | |
48552 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
48553 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
48554 | do | |
48555 | IFS=$as_save_IFS | |
48556 | test -z "$as_dir" && as_dir=. | |
48557 | for as_base in sh bash ksh sh5; do | |
48558 | case $as_dir in | |
48559 | /*) | |
48560 | if ("$as_dir/$as_base" -c ' | |
48561 | as_lineno_1=$LINENO | |
48562 | as_lineno_2=$LINENO | |
48563 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
48564 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
48565 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
48566 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
48567 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
48568 | CONFIG_SHELL=$as_dir/$as_base | |
48569 | export CONFIG_SHELL | |
48570 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
48571 | fi;; | |
48572 | esac | |
48573 | done | |
48574 | done | |
48575 | ;; | |
48576 | esac | |
48577 | ||
48578 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
48579 | # uniformly replaced by the line number. The first 'sed' inserts a | |
48580 | # line-number line before each line; the second 'sed' does the real | |
48581 | # work. The second script uses 'N' to pair each line-number line | |
48582 | # with the numbered line, and appends trailing '-' during | |
48583 | # substitution so that $LINENO is not a special case at line end. | |
48584 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
48585 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
48586 | sed '=' <$as_myself | | |
48587 | sed ' | |
48588 | N | |
48589 | s,$,-, | |
48590 | : loop | |
48591 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
48592 | t loop | |
48593 | s,-$,, | |
48594 | s,^['$as_cr_digits']*\n,, | |
48595 | ' >$as_me.lineno && | |
48596 | chmod +x $as_me.lineno || | |
48597 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
48598 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
48599 | { (exit 1); exit 1; }; } | |
48600 | ||
48601 | # Don't try to exec as it changes $[0], causing all sort of problems | |
48602 | # (the dirname of $[0] is not the place where we might find the | |
48603 | # original and so on. Autoconf is especially sensible to this). | |
48604 | . ./$as_me.lineno | |
48605 | # Exit status is that of the last command. | |
48606 | exit | |
48607 | } | |
48608 | ||
48609 | ||
48610 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
48611 | *c*,-n*) ECHO_N= ECHO_C=' | |
48612 | ' ECHO_T=' ' ;; | |
48613 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
48614 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
48615 | esac | |
48616 | ||
48617 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
48618 | as_expr=expr | |
48619 | else | |
48620 | as_expr=false | |
48621 | fi | |
48622 | ||
48623 | rm -f conf$$ conf$$.exe conf$$.file | |
48624 | echo >conf$$.file | |
48625 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
48626 | # We could just check for DJGPP; but this test a) works b) is more generic | |
48627 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
48628 | if test -f conf$$.exe; then | |
48629 | # Don't use ln at all; we don't have any links | |
48630 | as_ln_s='cp -p' | |
48631 | else | |
48632 | as_ln_s='ln -s' | |
48633 | fi | |
48634 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
48635 | as_ln_s=ln | |
48636 | else | |
48637 | as_ln_s='cp -p' | |
48638 | fi | |
48639 | rm -f conf$$ conf$$.exe conf$$.file | |
48640 | ||
48641 | if mkdir -p . 2>/dev/null; then | |
48642 | as_mkdir_p=: | |
48643 | else | |
ac1cb8d3 | 48644 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
48645 | as_mkdir_p=false |
48646 | fi | |
48647 | ||
48648 | as_executable_p="test -f" | |
48649 | ||
48650 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 48651 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
48652 | |
48653 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 48654 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
48655 | |
48656 | ||
48657 | # IFS | |
48658 | # We need space, tab and new line, in precisely that order. | |
48659 | as_nl=' | |
48660 | ' | |
48661 | IFS=" $as_nl" | |
48662 | ||
48663 | # CDPATH. | |
48664 | $as_unset CDPATH | |
48665 | ||
48666 | exec 6>&1 | |
48667 | ||
48668 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
48669 | # report actual input values of CONFIG_FILES etc. instead of their | |
48670 | # values after options handling. Logging --version etc. is OK. | |
48671 | exec 5>>config.log | |
48672 | { | |
48673 | echo | |
48674 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
48675 | ## Running $as_me. ## | |
48676 | _ASBOX | |
48677 | } >&5 | |
48678 | cat >&5 <<_CSEOF | |
48679 | ||
dd8df4fc | 48680 | This file was extended by wxWidgets $as_me 2.7.0, which was |
ac1cb8d3 | 48681 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
48682 | |
48683 | CONFIG_FILES = $CONFIG_FILES | |
48684 | CONFIG_HEADERS = $CONFIG_HEADERS | |
48685 | CONFIG_LINKS = $CONFIG_LINKS | |
48686 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
48687 | $ $0 $@ | |
48688 | ||
48689 | _CSEOF | |
48690 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
48691 | echo >&5 | |
48692 | _ACEOF | |
48693 | ||
48694 | # Files that config.status was made for. | |
48695 | if test -n "$ac_config_files"; then | |
48696 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
48697 | fi | |
48698 | ||
48699 | if test -n "$ac_config_headers"; then | |
48700 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
48701 | fi | |
48702 | ||
48703 | if test -n "$ac_config_links"; then | |
48704 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
48705 | fi | |
48706 | ||
48707 | if test -n "$ac_config_commands"; then | |
48708 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
48709 | fi | |
48710 | ||
48711 | cat >>$CONFIG_STATUS <<\_ACEOF | |
48712 | ||
48713 | ac_cs_usage="\ | |
48714 | \`$as_me' instantiates files from templates according to the | |
48715 | current configuration. | |
48716 | ||
48717 | Usage: $0 [OPTIONS] [FILE]... | |
48718 | ||
48719 | -h, --help print this help, then exit | |
48720 | -V, --version print version number, then exit | |
48721 | -q, --quiet do not print progress messages | |
48722 | -d, --debug don't remove temporary files | |
48723 | --recheck update $as_me by reconfiguring in the same conditions | |
48724 | --file=FILE[:TEMPLATE] | |
ac1cb8d3 | 48725 | instantiate the configuration file FILE |
a848cd7e | 48726 | --header=FILE[:TEMPLATE] |
ac1cb8d3 | 48727 | instantiate the configuration header FILE |
a848cd7e SC |
48728 | |
48729 | Configuration files: | |
48730 | $config_files | |
48731 | ||
48732 | Configuration headers: | |
48733 | $config_headers | |
48734 | ||
48735 | Configuration commands: | |
48736 | $config_commands | |
48737 | ||
48738 | Report bugs to <bug-autoconf@gnu.org>." | |
48739 | _ACEOF | |
48740 | ||
48741 | cat >>$CONFIG_STATUS <<_ACEOF | |
48742 | ac_cs_version="\\ | |
dd8df4fc | 48743 | wxWidgets config.status 2.7.0 |
ac1cb8d3 | 48744 | configured by $0, generated by GNU Autoconf 2.59, |
a848cd7e SC |
48745 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
48746 | ||
ac1cb8d3 | 48747 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
48748 | This config.status script is free software; the Free Software Foundation |
48749 | gives unlimited permission to copy, distribute and modify it." | |
48750 | srcdir=$srcdir | |
48751 | INSTALL="$INSTALL" | |
48752 | _ACEOF | |
48753 | ||
48754 | cat >>$CONFIG_STATUS <<\_ACEOF | |
48755 | # If no file are specified by the user, then we need to provide default | |
48756 | # value. By we need to know if files were specified by the user. | |
48757 | ac_need_defaults=: | |
48758 | while test $# != 0 | |
48759 | do | |
48760 | case $1 in | |
48761 | --*=*) | |
48762 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
48763 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
48764 | ac_shift=: | |
48765 | ;; | |
48766 | -*) | |
48767 | ac_option=$1 | |
48768 | ac_optarg=$2 | |
48769 | ac_shift=shift | |
48770 | ;; | |
48771 | *) # This is not an option, so the user has probably given explicit | |
48772 | # arguments. | |
48773 | ac_option=$1 | |
48774 | ac_need_defaults=false;; | |
48775 | esac | |
48776 | ||
48777 | case $ac_option in | |
48778 | # Handling of the options. | |
48779 | _ACEOF | |
48780 | cat >>$CONFIG_STATUS <<\_ACEOF | |
48781 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
48782 | ac_cs_recheck=: ;; | |
48783 | --version | --vers* | -V ) | |
48784 | echo "$ac_cs_version"; exit 0 ;; | |
48785 | --he | --h) | |
48786 | # Conflict between --help and --header | |
48787 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
48788 | Try \`$0 --help' for more information." >&5 | |
48789 | echo "$as_me: error: ambiguous option: $1 | |
48790 | Try \`$0 --help' for more information." >&2;} | |
48791 | { (exit 1); exit 1; }; };; | |
48792 | --help | --hel | -h ) | |
48793 | echo "$ac_cs_usage"; exit 0 ;; | |
48794 | --debug | --d* | -d ) | |
48795 | debug=: ;; | |
48796 | --file | --fil | --fi | --f ) | |
48797 | $ac_shift | |
48798 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
48799 | ac_need_defaults=false;; | |
48800 | --header | --heade | --head | --hea ) | |
48801 | $ac_shift | |
48802 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
48803 | ac_need_defaults=false;; | |
48804 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
48805 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
48806 | ac_cs_silent=: ;; | |
48807 | ||
48808 | # This is an error. | |
48809 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
48810 | Try \`$0 --help' for more information." >&5 | |
48811 | echo "$as_me: error: unrecognized option: $1 | |
48812 | Try \`$0 --help' for more information." >&2;} | |
48813 | { (exit 1); exit 1; }; } ;; | |
48814 | ||
48815 | *) ac_config_targets="$ac_config_targets $1" ;; | |
48816 | ||
48817 | esac | |
48818 | shift | |
48819 | done | |
48820 | ||
48821 | ac_configure_extra_args= | |
48822 | ||
48823 | if $ac_cs_silent; then | |
48824 | exec 6>/dev/null | |
48825 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
48826 | fi | |
48827 | ||
48828 | _ACEOF | |
48829 | cat >>$CONFIG_STATUS <<_ACEOF | |
48830 | if \$ac_cs_recheck; then | |
48831 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
48832 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
48833 | fi | |
48834 | ||
48835 | _ACEOF | |
48836 | ||
48837 | cat >>$CONFIG_STATUS <<_ACEOF | |
48838 | # | |
48839 | # INIT-COMMANDS section. | |
48840 | # | |
48841 | ||
5c60e845 MW |
48842 | |
48843 | CPP="$CPP" | |
48844 | infile="$srcdir/include/wx/msw/genrcdefs.h" | |
48845 | outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw" | |
48846 | ||
48847 | ||
ceec2216 RL |
48848 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" |
48849 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
48850 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
48851 | LN_S="${LN_S}" | |
a848cd7e SC |
48852 | |
48853 | ||
48854 | _ACEOF | |
48855 | ||
48856 | ||
48857 | ||
48858 | cat >>$CONFIG_STATUS <<\_ACEOF | |
48859 | for ac_config_target in $ac_config_targets | |
48860 | do | |
48861 | case "$ac_config_target" in | |
48862 | # Handling of arguments. | |
ceec2216 RL |
48863 | "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;; |
48864 | "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;; | |
a848cd7e SC |
48865 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; |
48866 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
48867 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; | |
5c60e845 | 48868 | "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;; |
ceec2216 RL |
48869 | "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;; |
48870 | "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 |
48871 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
48872 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
48873 | { (exit 1); exit 1; }; };; | |
48874 | esac | |
48875 | done | |
48876 | ||
48877 | # If the user did not use the arguments to specify the items to instantiate, | |
48878 | # then the envvar interface is used. Set only those that are not. | |
48879 | # We use the long form for the default assignment because of an extremely | |
48880 | # bizarre bug on SunOS 4.1.3. | |
48881 | if $ac_need_defaults; then | |
48882 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
48883 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
48884 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
48885 | fi | |
48886 | ||
48887 | # Have a temporary directory for convenience. Make it in the build tree | |
48888 | # simply because there is no reason to put it here, and in addition, | |
48889 | # creating and moving files from /tmp can sometimes cause problems. | |
48890 | # Create a temporary directory, and hook for its removal unless debugging. | |
48891 | $debug || | |
48892 | { | |
48893 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
48894 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
48895 | } | |
48896 | ||
48897 | # Create a (secure) tmp directory for tmp files. | |
48898 | ||
48899 | { | |
48900 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
48901 | test -n "$tmp" && test -d "$tmp" | |
48902 | } || | |
48903 | { | |
48904 | tmp=./confstat$$-$RANDOM | |
48905 | (umask 077 && mkdir $tmp) | |
48906 | } || | |
48907 | { | |
48908 | echo "$me: cannot create a temporary directory in ." >&2 | |
48909 | { (exit 1); exit 1; } | |
48910 | } | |
48911 | ||
48912 | _ACEOF | |
48913 | ||
48914 | cat >>$CONFIG_STATUS <<_ACEOF | |
48915 | ||
48916 | # | |
48917 | # CONFIG_FILES section. | |
48918 | # | |
48919 | ||
48920 | # No need to generate the scripts if there are no CONFIG_FILES. | |
48921 | # This happens for instance when ./config.status config.h | |
48922 | if test -n "\$CONFIG_FILES"; then | |
48923 | # Protect against being on the right side of a sed subst in config.status. | |
48924 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
48925 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
48926 | s,@SHELL@,$SHELL,;t t | |
48927 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
48928 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
48929 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
48930 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
48931 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
48932 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
48933 | s,@exec_prefix@,$exec_prefix,;t t | |
48934 | s,@prefix@,$prefix,;t t | |
48935 | s,@program_transform_name@,$program_transform_name,;t t | |
48936 | s,@bindir@,$bindir,;t t | |
48937 | s,@sbindir@,$sbindir,;t t | |
48938 | s,@libexecdir@,$libexecdir,;t t | |
48939 | s,@datadir@,$datadir,;t t | |
48940 | s,@sysconfdir@,$sysconfdir,;t t | |
48941 | s,@sharedstatedir@,$sharedstatedir,;t t | |
48942 | s,@localstatedir@,$localstatedir,;t t | |
48943 | s,@libdir@,$libdir,;t t | |
48944 | s,@includedir@,$includedir,;t t | |
48945 | s,@oldincludedir@,$oldincludedir,;t t | |
48946 | s,@infodir@,$infodir,;t t | |
48947 | s,@mandir@,$mandir,;t t | |
48948 | s,@build_alias@,$build_alias,;t t | |
48949 | s,@host_alias@,$host_alias,;t t | |
48950 | s,@target_alias@,$target_alias,;t t | |
48951 | s,@DEFS@,$DEFS,;t t | |
48952 | s,@ECHO_C@,$ECHO_C,;t t | |
48953 | s,@ECHO_N@,$ECHO_N,;t t | |
48954 | s,@ECHO_T@,$ECHO_T,;t t | |
48955 | s,@LIBS@,$LIBS,;t t | |
48956 | s,@build@,$build,;t t | |
48957 | s,@build_cpu@,$build_cpu,;t t | |
48958 | s,@build_vendor@,$build_vendor,;t t | |
48959 | s,@build_os@,$build_os,;t t | |
48960 | s,@host@,$host,;t t | |
48961 | s,@host_cpu@,$host_cpu,;t t | |
48962 | s,@host_vendor@,$host_vendor,;t t | |
48963 | s,@host_os@,$host_os,;t t | |
48964 | s,@target@,$target,;t t | |
48965 | s,@target_cpu@,$target_cpu,;t t | |
48966 | s,@target_vendor@,$target_vendor,;t t | |
48967 | s,@target_os@,$target_os,;t t | |
48968 | s,@CC@,$CC,;t t | |
48969 | s,@CFLAGS@,$CFLAGS,;t t | |
48970 | s,@LDFLAGS@,$LDFLAGS,;t t | |
48971 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
48972 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
48973 | s,@EXEEXT@,$EXEEXT,;t t | |
48974 | s,@OBJEXT@,$OBJEXT,;t t | |
48975 | s,@CPP@,$CPP,;t t | |
48976 | s,@EGREP@,$EGREP,;t t | |
48977 | s,@CXX@,$CXX,;t t | |
48978 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
48979 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
48980 | s,@RANLIB@,$RANLIB,;t t | |
48981 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
48982 | s,@AR@,$AR,;t t | |
8c80d384 | 48983 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
a848cd7e SC |
48984 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
48985 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
48986 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
48987 | s,@STRIP@,$STRIP,;t t | |
8c80d384 | 48988 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
8ced02f6 DE |
48989 | s,@WINDRES@,$WINDRES,;t t |
48990 | s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t | |
8c80d384 DE |
48991 | s,@DLLTOOL@,$DLLTOOL,;t t |
48992 | s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t | |
a848cd7e SC |
48993 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t |
48994 | s,@LN_S@,$LN_S,;t t | |
48995 | s,@CXXCPP@,$CXXCPP,;t t | |
48996 | s,@subdirs@,$subdirs,;t t | |
48997 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
48998 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
48999 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
49000 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
a848cd7e SC |
49001 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
49002 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
49003 | s,@X_LIBS@,$X_LIBS,;t t | |
49004 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
49005 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
49006 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
d1c38808 VZ |
49007 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t |
49008 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
a848cd7e SC |
49009 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t |
49010 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
8ced02f6 | 49011 | s,@REZ@,$REZ,;t t |
a848cd7e SC |
49012 | s,@DEREZ@,$DEREZ,;t t |
49013 | s,@SETFILE@,$SETFILE,;t t | |
49014 | s,@LIBICONV@,$LIBICONV,;t t | |
49015 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t | |
49016 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t | |
49017 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t | |
49018 | s,@SDL_LIBS@,$SDL_LIBS,;t t | |
d1c38808 VZ |
49019 | s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t |
49020 | s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t | |
2b850ae1 RR |
49021 | s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t |
49022 | s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t | |
3565d135 RR |
49023 | s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t |
49024 | s,@HILDON_LIBS@,$HILDON_LIBS,;t t | |
f10e38c4 VZ |
49025 | s,@GST_CFLAGS@,$GST_CFLAGS,;t t |
49026 | s,@GST_LIBS@,$GST_LIBS,;t t | |
a848cd7e SC |
49027 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t |
49028 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
49029 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t | |
49030 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
49031 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t | |
49032 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t | |
49033 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
49034 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
49035 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
49036 | s,@VENDOR@,$VENDOR,;t t | |
49037 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
ceec2216 RL |
49038 | s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t |
49039 | s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t | |
a848cd7e SC |
49040 | s,@WXUNIV@,$WXUNIV,;t t |
49041 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
49042 | s,@USE_PLUGINS@,$USE_PLUGINS,;t t | |
49043 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
49044 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t | |
49045 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t | |
49046 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t | |
49047 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t | |
49048 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t | |
49049 | s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t | |
49050 | s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t | |
d1c38808 | 49051 | s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t |
2b850ae1 | 49052 | s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t |
3565d135 | 49053 | s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t |
a848cd7e SC |
49054 | s,@UNICODE@,$UNICODE,;t t |
49055 | s,@BUILD@,$BUILD,;t t | |
49056 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t | |
49057 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
a848cd7e SC |
49058 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t |
49059 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
49060 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
49061 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t | |
49062 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t | |
49063 | s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t | |
49064 | s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t | |
49065 | s,@SET_MAKE@,$SET_MAKE,;t t | |
49066 | s,@MAKE_SET@,$MAKE_SET,;t t | |
a848cd7e SC |
49067 | s,@NM@,$NM,;t t |
49068 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
49069 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
49070 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t | |
49071 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t | |
49072 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
49073 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
49074 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
1e9e8aba | 49075 | s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t |
a848cd7e SC |
49076 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t |
49077 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t | |
1e9e8aba | 49078 | s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t |
a848cd7e SC |
49079 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t |
49080 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t | |
49081 | s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t | |
49082 | s,@LIBPREFIX@,$LIBPREFIX,;t t | |
49083 | s,@LIBEXT@,$LIBEXT,;t t | |
49084 | s,@DLLPREFIX@,$DLLPREFIX,;t t | |
49085 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t | |
810b94f0 | 49086 | s,@dlldir@,$dlldir,;t t |
a848cd7e SC |
49087 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t |
49088 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t | |
49089 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
49090 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t | |
49091 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
49092 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
810b94f0 | 49093 | s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t |
a848cd7e SC |
49094 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t |
49095 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
49096 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
810b94f0 | 49097 | s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t |
a848cd7e SC |
49098 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t |
49099 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
49100 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
49101 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t | |
49102 | s,@GCC_PCH@,$GCC_PCH,;t t | |
f10e38c4 | 49103 | s,@ICC_PCH@,$ICC_PCH,;t t |
a848cd7e SC |
49104 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t |
49105 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t | |
49106 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
49107 | s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t | |
49108 | s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t | |
49109 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t | |
49110 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t | |
49111 | s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t | |
49112 | s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t | |
49113 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
49114 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
49115 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
49116 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t | |
49117 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t | |
49118 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t | |
f10e38c4 | 49119 | s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t |
a848cd7e SC |
49120 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t |
49121 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t | |
49122 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
90970d69 | 49123 | 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 |
f10e38c4 | 49124 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1,;t t |
a848cd7e | 49125 | 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 | 49126 | 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 | 49127 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t |
ceec2216 | 49128 | s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
49129 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
49130 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t | |
90970d69 | 49131 | 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 |
f10e38c4 | 49132 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1,;t t |
a848cd7e | 49133 | 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 | 49134 | 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 | 49135 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t |
ceec2216 | 49136 | s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t |
e5efa97e | 49137 | s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t |
a848cd7e SC |
49138 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t |
49139 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t | |
49140 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t | |
49141 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
49142 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t | |
49143 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
eb730a0c | 49144 | 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 |
49145 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t |
49146 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t | |
a30f955f | 49147 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t |
a848cd7e SC |
49148 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t |
49149 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
49150 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
fc480dc1 | 49151 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t |
1e9e8aba | 49152 | 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 |
49153 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t |
49154 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t | |
a848cd7e SC |
49155 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t |
49156 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t | |
b48a2016 | 49157 | s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t |
083508af | 49158 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
e5efa97e | 49159 | s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t |
83d8eb47 | 49160 | s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t |
a848cd7e SC |
49161 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t |
49162 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t | |
49163 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t | |
49164 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t | |
49165 | s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t | |
49166 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
49167 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
49168 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t | |
083508af MW |
49169 | s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t |
49170 | s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t | |
49171 | s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t | |
a848cd7e SC |
49172 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
49173 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
49174 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
49175 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
083508af | 49176 | s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
49177 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t |
49178 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
49179 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
49180 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
49181 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
49182 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t | |
083508af | 49183 | s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t |
a30f955f | 49184 | s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t |
a848cd7e | 49185 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
a49baeab | 49186 | s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t |
a848cd7e SC |
49187 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t |
49188 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
d044deea MW |
49189 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t |
49190 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t | |
49191 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t | |
49192 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0,;t t | |
49193 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t | |
49194 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t | |
a848cd7e | 49195 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t |
a848cd7e SC |
49196 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t |
49197 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t | |
49198 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t | |
49199 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
49200 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
49201 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t | |
49202 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
49203 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
49204 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t | |
49205 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t | |
49206 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
0ee4059d | 49207 | s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t |
a848cd7e SC |
49208 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t |
49209 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
49210 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
3fd9c298 DE |
49211 | s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t |
49212 | s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t | |
49213 | s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t | |
0ee4059d | 49214 | s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t |
a848cd7e SC |
49215 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
49216 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
49217 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t | |
49218 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t | |
49219 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
49220 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
49221 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
49222 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t | |
49223 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
49224 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
49225 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
49226 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
083508af MW |
49227 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t |
49228 | s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t | |
f10e38c4 | 49229 | s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t |
a848cd7e | 49230 | s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t |
0b78747f MW |
49231 | s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t |
49232 | s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t | |
a848cd7e | 49233 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t |
eb730a0c | 49234 | s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t |
a848cd7e SC |
49235 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t |
49236 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
49237 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
0b78747f MW |
49238 | s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t |
49239 | s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t | |
a13a7f89 | 49240 | s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t |
eb730a0c | 49241 | s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t |
a848cd7e | 49242 | s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t |
1e6eb025 | 49243 | s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t |
a848cd7e SC |
49244 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
49245 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t | |
49246 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t | |
49247 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
49248 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
49249 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
49250 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
49251 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
ceec2216 | 49252 | s,@SHARED@,$SHARED,;t t |
a848cd7e SC |
49253 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
49254 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
a848cd7e SC |
49255 | s,@USE_GUI@,$USE_GUI,;t t |
49256 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
49257 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
49258 | s,@TOOLKIT@,$TOOLKIT,;t t | |
49259 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
a848cd7e | 49260 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t |
ceec2216 | 49261 | s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t |
a848cd7e | 49262 | s,@cross_compiling@,$cross_compiling,;t t |
ceec2216 RL |
49263 | s,@WIDGET_SET@,$WIDGET_SET,;t t |
49264 | s,@WX_RELEASE@,$WX_RELEASE,;t t | |
49265 | s,@WX_VERSION@,$WX_VERSION,;t t | |
49266 | s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t | |
49267 | s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t | |
49268 | s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t | |
5ff751d6 VZ |
49269 | s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t |
49270 | s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t | |
49271 | s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t | |
49272 | s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t | |
a848cd7e SC |
49273 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t |
49274 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t | |
004ee6da | 49275 | s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t |
ceec2216 | 49276 | s,@EXE_LINKER@,$EXE_LINKER,;t t |
a848cd7e | 49277 | s,@GUIDIST@,$GUIDIST,;t t |
a848cd7e SC |
49278 | s,@DISTDIR@,$DISTDIR,;t t |
49279 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
49280 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
a848cd7e SC |
49281 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t |
49282 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
49283 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
004ee6da | 49284 | s,@RESCOMP@,$RESCOMP,;t t |
a848cd7e SC |
49285 | s,@RESFLAGS@,$RESFLAGS,;t t |
49286 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
49287 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
49288 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
49289 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
8ced02f6 | 49290 | s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t |
a848cd7e | 49291 | s,@MACSETFILE@,$MACSETFILE,;t t |
a848cd7e | 49292 | s,@GCC@,$GCC,;t t |
a848cd7e SC |
49293 | s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t |
49294 | s,@LIBOBJS@,$LIBOBJS,;t t | |
49295 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
49296 | CEOF | |
49297 | ||
49298 | _ACEOF | |
49299 | ||
49300 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49301 | # Split the substitutions into bite-sized pieces for seds with | |
49302 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
49303 | ac_max_sed_lines=48 | |
49304 | ac_sed_frag=1 # Number of current file. | |
49305 | ac_beg=1 # First line for current file. | |
49306 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
49307 | ac_more_lines=: | |
49308 | ac_sed_cmds= | |
49309 | while $ac_more_lines; do | |
49310 | if test $ac_beg -gt 1; then | |
49311 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
49312 | else | |
49313 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
49314 | fi | |
49315 | if test ! -s $tmp/subs.frag; then | |
49316 | ac_more_lines=false | |
49317 | else | |
49318 | # The purpose of the label and of the branching condition is to | |
49319 | # speed up the sed processing (if there are no `@' at all, there | |
49320 | # is no need to browse any of the substitutions). | |
49321 | # These are the two extra sed commands mentioned above. | |
49322 | (echo ':t | |
49323 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
49324 | if test -z "$ac_sed_cmds"; then | |
ac1cb8d3 | 49325 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e | 49326 | else |
ac1cb8d3 | 49327 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e SC |
49328 | fi |
49329 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
49330 | ac_beg=$ac_end | |
49331 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
49332 | fi | |
49333 | done | |
49334 | if test -z "$ac_sed_cmds"; then | |
49335 | ac_sed_cmds=cat | |
49336 | fi | |
49337 | fi # test -n "$CONFIG_FILES" | |
49338 | ||
49339 | _ACEOF | |
49340 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49341 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
49342 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
49343 | case $ac_file in | |
49344 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
49345 | cat >$tmp/stdin |
49346 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
49347 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 49348 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 49349 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
49350 | * ) ac_file_in=$ac_file.in ;; |
49351 | esac | |
49352 | ||
49353 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
49354 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
49355 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
49356 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
49357 | X"$ac_file" : 'X\(//\)$' \| \ | |
49358 | X"$ac_file" : 'X\(/\)' \| \ | |
49359 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
49360 | echo X"$ac_file" | |
49361 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
49362 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
49363 | /^X\(\/\/\)$/{ s//\1/; q; } | |
49364 | /^X\(\/\).*/{ s//\1/; q; } | |
49365 | s/.*/./; q'` | |
49366 | { if $as_mkdir_p; then | |
49367 | mkdir -p "$ac_dir" | |
49368 | else | |
49369 | as_dir="$ac_dir" | |
49370 | as_dirs= | |
49371 | while test ! -d "$as_dir"; do | |
49372 | as_dirs="$as_dir $as_dirs" | |
49373 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
49374 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
49375 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
49376 | X"$as_dir" : 'X\(//\)$' \| \ | |
49377 | X"$as_dir" : 'X\(/\)' \| \ | |
49378 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
49379 | echo X"$as_dir" | |
49380 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
49381 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
49382 | /^X\(\/\/\)$/{ s//\1/; q; } | |
49383 | /^X\(\/\).*/{ s//\1/; q; } | |
49384 | s/.*/./; q'` | |
49385 | done | |
49386 | test ! -n "$as_dirs" || mkdir $as_dirs | |
49387 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
49388 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
49389 | { (exit 1); exit 1; }; }; } | |
49390 | ||
49391 | ac_builddir=. | |
49392 | ||
49393 | if test "$ac_dir" != .; then | |
49394 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
49395 | # A "../" for each directory in $ac_dir_suffix. | |
49396 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
49397 | else | |
49398 | ac_dir_suffix= ac_top_builddir= | |
49399 | fi | |
49400 | ||
49401 | case $srcdir in | |
49402 | .) # No --srcdir option. We are building in place. | |
49403 | ac_srcdir=. | |
49404 | if test -z "$ac_top_builddir"; then | |
49405 | ac_top_srcdir=. | |
49406 | else | |
49407 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
49408 | fi ;; | |
49409 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
49410 | ac_srcdir=$srcdir$ac_dir_suffix; | |
49411 | ac_top_srcdir=$srcdir ;; | |
49412 | *) # Relative path. | |
49413 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
49414 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
49415 | esac | |
ac1cb8d3 VS |
49416 | |
49417 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
49418 | # the directories may not exist. | |
49419 | case `pwd` in | |
49420 | .) ac_abs_builddir="$ac_dir";; | |
49421 | *) | |
49422 | case "$ac_dir" in | |
49423 | .) ac_abs_builddir=`pwd`;; | |
49424 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
49425 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
49426 | esac;; | |
49427 | esac | |
49428 | case $ac_abs_builddir in | |
49429 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
49430 | *) | |
49431 | case ${ac_top_builddir}. in | |
49432 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
49433 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
49434 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
49435 | esac;; | |
49436 | esac | |
49437 | case $ac_abs_builddir in | |
49438 | .) ac_abs_srcdir=$ac_srcdir;; | |
49439 | *) | |
49440 | case $ac_srcdir in | |
49441 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
49442 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
49443 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
49444 | esac;; | |
49445 | esac | |
49446 | case $ac_abs_builddir in | |
49447 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
49448 | *) | |
49449 | case $ac_top_srcdir in | |
49450 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
49451 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
49452 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
49453 | esac;; | |
49454 | esac | |
a848cd7e SC |
49455 | |
49456 | ||
49457 | case $INSTALL in | |
49458 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
49459 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
49460 | esac | |
49461 | ||
a848cd7e SC |
49462 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
49463 | # use $as_me), people would be surprised to read: | |
49464 | # /* config.h. Generated by config.status. */ | |
49465 | if test x"$ac_file" = x-; then | |
49466 | configure_input= | |
49467 | else | |
49468 | configure_input="$ac_file. " | |
49469 | fi | |
49470 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
ac1cb8d3 | 49471 | sed 's,.*/,,'` by configure." |
a848cd7e SC |
49472 | |
49473 | # First look for the input files in the build tree, otherwise in the | |
49474 | # src tree. | |
49475 | ac_file_inputs=`IFS=: | |
49476 | for f in $ac_file_in; do | |
49477 | case $f in | |
49478 | -) echo $tmp/stdin ;; | |
49479 | [\\/$]*) | |
ac1cb8d3 VS |
49480 | # Absolute (can't be DOS-style, as IFS=:) |
49481 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
49482 | echo "$as_me: error: cannot find input file: $f" >&2;} |
49483 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 49484 | echo "$f";; |
a848cd7e | 49485 | *) # Relative |
ac1cb8d3 VS |
49486 | if test -f "$f"; then |
49487 | # Build tree | |
49488 | echo "$f" | |
49489 | elif test -f "$srcdir/$f"; then | |
49490 | # Source tree | |
49491 | echo "$srcdir/$f" | |
49492 | else | |
49493 | # /dev/null tree | |
49494 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
49495 | echo "$as_me: error: cannot find input file: $f" >&2;} |
49496 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 49497 | fi;; |
a848cd7e SC |
49498 | esac |
49499 | done` || { (exit 1); exit 1; } | |
5d7b7554 VZ |
49500 | |
49501 | if test x"$ac_file" != x-; then | |
49502 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
49503 | echo "$as_me: creating $ac_file" >&6;} | |
49504 | rm -f "$ac_file" | |
49505 | fi | |
a848cd7e SC |
49506 | _ACEOF |
49507 | cat >>$CONFIG_STATUS <<_ACEOF | |
49508 | sed "$ac_vpsub | |
49509 | $extrasub | |
49510 | _ACEOF | |
49511 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49512 | :t | |
49513 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
49514 | s,@configure_input@,$configure_input,;t t | |
49515 | s,@srcdir@,$ac_srcdir,;t t | |
49516 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
49517 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
49518 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
49519 | s,@builddir@,$ac_builddir,;t t | |
49520 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
49521 | s,@top_builddir@,$ac_top_builddir,;t t | |
49522 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
49523 | s,@INSTALL@,$ac_INSTALL,;t t | |
49524 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
49525 | rm -f $tmp/stdin | |
49526 | if test x"$ac_file" != x-; then | |
49527 | mv $tmp/out $ac_file | |
49528 | else | |
49529 | cat $tmp/out | |
49530 | rm -f $tmp/out | |
49531 | fi | |
49532 | ||
ceec2216 RL |
49533 | # Run the commands associated with the file. |
49534 | case $ac_file in | |
49535 | lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;; | |
49536 | lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;; | |
49537 | esac | |
a848cd7e SC |
49538 | done |
49539 | _ACEOF | |
49540 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49541 | ||
49542 | # | |
49543 | # CONFIG_HEADER section. | |
49544 | # | |
49545 | ||
49546 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
49547 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
49548 | # | |
49549 | # ac_d sets the value in "#define NAME VALUE" lines. | |
ac1cb8d3 VS |
49550 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
49551 | ac_dB='[ ].*$,\1#\2' | |
a848cd7e SC |
49552 | ac_dC=' ' |
49553 | ac_dD=',;t' | |
49554 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
ac1cb8d3 | 49555 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
a848cd7e SC |
49556 | ac_uB='$,\1#\2define\3' |
49557 | ac_uC=' ' | |
49558 | ac_uD=',;t' | |
49559 | ||
49560 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
49561 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
49562 | case $ac_file in | |
49563 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
49564 | cat >$tmp/stdin |
49565 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
49566 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 49567 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 49568 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
49569 | * ) ac_file_in=$ac_file.in ;; |
49570 | esac | |
49571 | ||
49572 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
49573 | echo "$as_me: creating $ac_file" >&6;} | |
49574 | ||
49575 | # First look for the input files in the build tree, otherwise in the | |
49576 | # src tree. | |
49577 | ac_file_inputs=`IFS=: | |
49578 | for f in $ac_file_in; do | |
49579 | case $f in | |
49580 | -) echo $tmp/stdin ;; | |
49581 | [\\/$]*) | |
ac1cb8d3 VS |
49582 | # Absolute (can't be DOS-style, as IFS=:) |
49583 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
49584 | echo "$as_me: error: cannot find input file: $f" >&2;} |
49585 | { (exit 1); exit 1; }; } | |
ac1cb8d3 VS |
49586 | # Do quote $f, to prevent DOS paths from being IFS'd. |
49587 | echo "$f";; | |
a848cd7e | 49588 | *) # Relative |
ac1cb8d3 VS |
49589 | if test -f "$f"; then |
49590 | # Build tree | |
49591 | echo "$f" | |
49592 | elif test -f "$srcdir/$f"; then | |
49593 | # Source tree | |
49594 | echo "$srcdir/$f" | |
49595 | else | |
49596 | # /dev/null tree | |
49597 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
49598 | echo "$as_me: error: cannot find input file: $f" >&2;} |
49599 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 49600 | fi;; |
a848cd7e SC |
49601 | esac |
49602 | done` || { (exit 1); exit 1; } | |
49603 | # Remove the trailing spaces. | |
ac1cb8d3 | 49604 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
a848cd7e SC |
49605 | |
49606 | _ACEOF | |
49607 | ||
49608 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
49609 | # `conftest.undefs', that substitutes the proper values into | |
49610 | # config.h.in to produce config.h. The first handles `#define' | |
49611 | # templates, and the second `#undef' templates. | |
49612 | # And first: Protect against being on the right side of a sed subst in | |
49613 | # config.status. Protect against being in an unquoted here document | |
49614 | # in config.status. | |
49615 | rm -f conftest.defines conftest.undefs | |
49616 | # Using a here document instead of a string reduces the quoting nightmare. | |
49617 | # Putting comments in sed scripts is not portable. | |
49618 | # | |
49619 | # `end' is used to avoid that the second main sed command (meant for | |
49620 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
49621 | # See the Autoconf documentation for `clear'. | |
49622 | cat >confdef2sed.sed <<\_ACEOF | |
49623 | s/[\\&,]/\\&/g | |
49624 | s,[\\$`],\\&,g | |
49625 | t clear | |
49626 | : clear | |
ac1cb8d3 | 49627 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
a848cd7e | 49628 | t end |
ac1cb8d3 | 49629 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
a848cd7e SC |
49630 | : end |
49631 | _ACEOF | |
49632 | # If some macros were called several times there might be several times | |
49633 | # the same #defines, which is useless. Nevertheless, we may not want to | |
49634 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
49635 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
49636 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
49637 | rm -f confdef2sed.sed | |
49638 | ||
49639 | # This sed command replaces #undef with comments. This is necessary, for | |
49640 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
49641 | # on some systems where configure will not decide to define it. | |
49642 | cat >>conftest.undefs <<\_ACEOF | |
ac1cb8d3 | 49643 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
a848cd7e SC |
49644 | _ACEOF |
49645 | ||
49646 | # Break up conftest.defines because some shells have a limit on the size | |
49647 | # of here documents, and old seds have small limits too (100 cmds). | |
49648 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
ac1cb8d3 | 49649 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
a848cd7e SC |
49650 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
49651 | echo ' :' >>$CONFIG_STATUS | |
49652 | rm -f conftest.tail | |
49653 | while grep . conftest.defines >/dev/null | |
49654 | do | |
49655 | # Write a limited-size here document to $tmp/defines.sed. | |
49656 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
49657 | # Speed up: don't consider the non `#define' lines. | |
ac1cb8d3 | 49658 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
a848cd7e SC |
49659 | # Work around the forget-to-reset-the-flag bug. |
49660 | echo 't clr' >>$CONFIG_STATUS | |
49661 | echo ': clr' >>$CONFIG_STATUS | |
49662 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
49663 | echo 'CEOF | |
49664 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
49665 | rm -f $tmp/in | |
49666 | mv $tmp/out $tmp/in | |
49667 | ' >>$CONFIG_STATUS | |
49668 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
49669 | rm -f conftest.defines | |
49670 | mv conftest.tail conftest.defines | |
49671 | done | |
49672 | rm -f conftest.defines | |
49673 | echo ' fi # grep' >>$CONFIG_STATUS | |
49674 | echo >>$CONFIG_STATUS | |
49675 | ||
49676 | # Break up conftest.undefs because some shells have a limit on the size | |
49677 | # of here documents, and old seds have small limits too (100 cmds). | |
49678 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
49679 | rm -f conftest.tail | |
49680 | while grep . conftest.undefs >/dev/null | |
49681 | do | |
49682 | # Write a limited-size here document to $tmp/undefs.sed. | |
49683 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
49684 | # Speed up: don't consider the non `#undef' | |
ac1cb8d3 | 49685 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
a848cd7e SC |
49686 | # Work around the forget-to-reset-the-flag bug. |
49687 | echo 't clr' >>$CONFIG_STATUS | |
49688 | echo ': clr' >>$CONFIG_STATUS | |
49689 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
49690 | echo 'CEOF | |
49691 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
49692 | rm -f $tmp/in | |
49693 | mv $tmp/out $tmp/in | |
49694 | ' >>$CONFIG_STATUS | |
49695 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
49696 | rm -f conftest.undefs | |
49697 | mv conftest.tail conftest.undefs | |
49698 | done | |
49699 | rm -f conftest.undefs | |
49700 | ||
49701 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49702 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
49703 | # use $as_me), people would be surprised to read: | |
49704 | # /* config.h. Generated by config.status. */ | |
49705 | if test x"$ac_file" = x-; then | |
49706 | echo "/* Generated by configure. */" >$tmp/config.h | |
49707 | else | |
49708 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
49709 | fi | |
49710 | cat $tmp/in >>$tmp/config.h | |
49711 | rm -f $tmp/in | |
49712 | if test x"$ac_file" != x-; then | |
49713 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
49714 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
49715 | echo "$as_me: $ac_file is unchanged" >&6;} | |
49716 | else | |
49717 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
49718 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
49719 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
49720 | X"$ac_file" : 'X\(//\)$' \| \ | |
49721 | X"$ac_file" : 'X\(/\)' \| \ | |
49722 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
49723 | echo X"$ac_file" | |
49724 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
49725 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
49726 | /^X\(\/\/\)$/{ s//\1/; q; } | |
49727 | /^X\(\/\).*/{ s//\1/; q; } | |
49728 | s/.*/./; q'` | |
49729 | { if $as_mkdir_p; then | |
49730 | mkdir -p "$ac_dir" | |
49731 | else | |
49732 | as_dir="$ac_dir" | |
49733 | as_dirs= | |
49734 | while test ! -d "$as_dir"; do | |
49735 | as_dirs="$as_dir $as_dirs" | |
49736 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
49737 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
49738 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
49739 | X"$as_dir" : 'X\(//\)$' \| \ | |
49740 | X"$as_dir" : 'X\(/\)' \| \ | |
49741 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
49742 | echo X"$as_dir" | |
49743 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
49744 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
49745 | /^X\(\/\/\)$/{ s//\1/; q; } | |
49746 | /^X\(\/\).*/{ s//\1/; q; } | |
49747 | s/.*/./; q'` | |
49748 | done | |
49749 | test ! -n "$as_dirs" || mkdir $as_dirs | |
49750 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
49751 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
49752 | { (exit 1); exit 1; }; }; } | |
49753 | ||
49754 | rm -f $ac_file | |
49755 | mv $tmp/config.h $ac_file | |
49756 | fi | |
49757 | else | |
49758 | cat $tmp/config.h | |
49759 | rm -f $tmp/config.h | |
49760 | fi | |
49761 | done | |
49762 | _ACEOF | |
49763 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49764 | ||
49765 | # | |
49766 | # CONFIG_COMMANDS section. | |
49767 | # | |
49768 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
49769 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
49770 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
49771 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
49772 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
49773 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
49774 | X"$ac_dest" : 'X\(//\)$' \| \ | |
49775 | X"$ac_dest" : 'X\(/\)' \| \ | |
49776 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
49777 | echo X"$ac_dest" | |
49778 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
49779 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
49780 | /^X\(\/\/\)$/{ s//\1/; q; } | |
49781 | /^X\(\/\).*/{ s//\1/; q; } | |
49782 | s/.*/./; q'` | |
ac1cb8d3 VS |
49783 | { if $as_mkdir_p; then |
49784 | mkdir -p "$ac_dir" | |
49785 | else | |
49786 | as_dir="$ac_dir" | |
49787 | as_dirs= | |
49788 | while test ! -d "$as_dir"; do | |
49789 | as_dirs="$as_dir $as_dirs" | |
49790 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
49791 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
49792 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
49793 | X"$as_dir" : 'X\(//\)$' \| \ | |
49794 | X"$as_dir" : 'X\(/\)' \| \ | |
49795 | . : '\(.\)' 2>/dev/null || | |
49796 | echo X"$as_dir" | | |
49797 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
49798 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
49799 | /^X\(\/\/\)$/{ s//\1/; q; } | |
49800 | /^X\(\/\).*/{ s//\1/; q; } | |
49801 | s/.*/./; q'` | |
49802 | done | |
49803 | test ! -n "$as_dirs" || mkdir $as_dirs | |
49804 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
49805 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
49806 | { (exit 1); exit 1; }; }; } | |
49807 | ||
a848cd7e SC |
49808 | ac_builddir=. |
49809 | ||
49810 | if test "$ac_dir" != .; then | |
49811 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
49812 | # A "../" for each directory in $ac_dir_suffix. | |
49813 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
49814 | else | |
49815 | ac_dir_suffix= ac_top_builddir= | |
49816 | fi | |
49817 | ||
49818 | case $srcdir in | |
49819 | .) # No --srcdir option. We are building in place. | |
49820 | ac_srcdir=. | |
49821 | if test -z "$ac_top_builddir"; then | |
49822 | ac_top_srcdir=. | |
49823 | else | |
49824 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
49825 | fi ;; | |
49826 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
49827 | ac_srcdir=$srcdir$ac_dir_suffix; | |
49828 | ac_top_srcdir=$srcdir ;; | |
49829 | *) # Relative path. | |
49830 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
49831 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
49832 | esac | |
ac1cb8d3 VS |
49833 | |
49834 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
49835 | # the directories may not exist. | |
49836 | case `pwd` in | |
49837 | .) ac_abs_builddir="$ac_dir";; | |
49838 | *) | |
49839 | case "$ac_dir" in | |
49840 | .) ac_abs_builddir=`pwd`;; | |
49841 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
49842 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
49843 | esac;; | |
49844 | esac | |
49845 | case $ac_abs_builddir in | |
49846 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
49847 | *) | |
49848 | case ${ac_top_builddir}. in | |
49849 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
49850 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
49851 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
49852 | esac;; | |
49853 | esac | |
49854 | case $ac_abs_builddir in | |
49855 | .) ac_abs_srcdir=$ac_srcdir;; | |
49856 | *) | |
49857 | case $ac_srcdir in | |
49858 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
49859 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
49860 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
49861 | esac;; | |
49862 | esac | |
49863 | case $ac_abs_builddir in | |
49864 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
49865 | *) | |
49866 | case $ac_top_srcdir in | |
49867 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
49868 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
49869 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
49870 | esac;; | |
49871 | esac | |
a848cd7e SC |
49872 | |
49873 | ||
49874 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
49875 | echo "$as_me: executing $ac_dest commands" >&6;} | |
49876 | case $ac_dest in | |
5c60e845 MW |
49877 | rcdefs.h ) |
49878 | mkdir -p $outdir && | |
49879 | $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h | |
49880 | ;; | |
ceec2216 RL |
49881 | wx-config ) rm -f wx-config |
49882 | ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config | |
49883 | ;; | |
a848cd7e SC |
49884 | esac |
49885 | done | |
49886 | _ACEOF | |
49887 | ||
49888 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49889 | ||
49890 | { (exit 0); exit 0; } | |
49891 | _ACEOF | |
49892 | chmod +x $CONFIG_STATUS | |
49893 | ac_clean_files=$ac_clean_files_save | |
49894 | ||
49895 | ||
49896 | # configure is writing to config.log, and then calls config.status. | |
49897 | # config.status does its own redirection, appending to config.log. | |
49898 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
49899 | # by configure, so config.status won't be able to write to it; its | |
49900 | # output is simply discarded. So we exec the FD to /dev/null, | |
49901 | # effectively closing config.log, so it can be properly (re)opened and | |
49902 | # appended to by config.status. When coming back to configure, we | |
49903 | # need to make the FD available again. | |
49904 | if test "$no_create" != yes; then | |
49905 | ac_cs_success=: | |
49906 | ac_config_status_args= | |
49907 | test "$silent" = yes && | |
49908 | ac_config_status_args="$ac_config_status_args --quiet" | |
49909 | exec 5>/dev/null | |
49910 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
49911 | exec 5>>config.log | |
49912 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
49913 | # would make configure fail if this is the last instruction. | |
49914 | $ac_cs_success || { (exit 1); exit 1; } | |
49915 | fi | |
49916 | ||
49917 | # | |
49918 | # CONFIG_SUBDIRS section. | |
49919 | # | |
49920 | if test "$no_recursion" != yes; then | |
49921 | ||
49922 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
49923 | ac_sub_configure_args= | |
49924 | ac_prev= | |
49925 | for ac_arg in $ac_configure_args; do | |
49926 | if test -n "$ac_prev"; then | |
49927 | ac_prev= | |
49928 | continue | |
49929 | fi | |
49930 | case $ac_arg in | |
49931 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
49932 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
49933 | ac_prev=cache_file ;; | |
49934 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
49935 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
49936 | | --c=*) | |
49937 | ;; | |
49938 | --config-cache | -C) | |
49939 | ;; | |
49940 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
49941 | ac_prev=srcdir ;; | |
49942 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
49943 | ;; | |
49944 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
49945 | ac_prev=prefix ;; | |
49946 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
49947 | ;; | |
49948 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
49949 | esac | |
49950 | done | |
49951 | ||
49952 | # Always prepend --prefix to ensure using the same prefix | |
49953 | # in subdir configurations. | |
49954 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
49955 | ||
49956 | ac_popdir=`pwd` | |
49957 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
49958 | ||
49959 | # Do not complain, so a configure script can configure whichever | |
49960 | # parts of a large source tree are present. | |
49961 | test -d $srcdir/$ac_dir || continue | |
49962 | ||
49963 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
49964 | echo "$as_me: configuring in $ac_dir" >&6;} | |
49965 | { if $as_mkdir_p; then | |
49966 | mkdir -p "$ac_dir" | |
49967 | else | |
49968 | as_dir="$ac_dir" | |
49969 | as_dirs= | |
49970 | while test ! -d "$as_dir"; do | |
49971 | as_dirs="$as_dir $as_dirs" | |
49972 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
49973 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
49974 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
49975 | X"$as_dir" : 'X\(//\)$' \| \ | |
49976 | X"$as_dir" : 'X\(/\)' \| \ | |
49977 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
49978 | echo X"$as_dir" | |
49979 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
49980 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
49981 | /^X\(\/\/\)$/{ s//\1/; q; } | |
49982 | /^X\(\/\).*/{ s//\1/; q; } | |
49983 | s/.*/./; q'` | |
49984 | done | |
49985 | test ! -n "$as_dirs" || mkdir $as_dirs | |
49986 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
49987 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
49988 | { (exit 1); exit 1; }; }; } | |
49989 | ||
49990 | ac_builddir=. | |
49991 | ||
49992 | if test "$ac_dir" != .; then | |
49993 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
49994 | # A "../" for each directory in $ac_dir_suffix. | |
49995 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
49996 | else | |
49997 | ac_dir_suffix= ac_top_builddir= | |
49998 | fi | |
49999 | ||
50000 | case $srcdir in | |
50001 | .) # No --srcdir option. We are building in place. | |
50002 | ac_srcdir=. | |
50003 | if test -z "$ac_top_builddir"; then | |
50004 | ac_top_srcdir=. | |
50005 | else | |
50006 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
50007 | fi ;; | |
50008 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
50009 | ac_srcdir=$srcdir$ac_dir_suffix; | |
50010 | ac_top_srcdir=$srcdir ;; | |
50011 | *) # Relative path. | |
50012 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
50013 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
50014 | esac | |
ac1cb8d3 VS |
50015 | |
50016 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
50017 | # the directories may not exist. | |
50018 | case `pwd` in | |
50019 | .) ac_abs_builddir="$ac_dir";; | |
50020 | *) | |
50021 | case "$ac_dir" in | |
50022 | .) ac_abs_builddir=`pwd`;; | |
50023 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
50024 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
50025 | esac;; | |
50026 | esac | |
50027 | case $ac_abs_builddir in | |
50028 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
50029 | *) | |
50030 | case ${ac_top_builddir}. in | |
50031 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
50032 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
50033 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
50034 | esac;; | |
50035 | esac | |
50036 | case $ac_abs_builddir in | |
50037 | .) ac_abs_srcdir=$ac_srcdir;; | |
50038 | *) | |
50039 | case $ac_srcdir in | |
50040 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
50041 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
50042 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
50043 | esac;; | |
50044 | esac | |
50045 | case $ac_abs_builddir in | |
50046 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
50047 | *) | |
50048 | case $ac_top_srcdir in | |
50049 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
50050 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
50051 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
50052 | esac;; | |
50053 | esac | |
a848cd7e SC |
50054 | |
50055 | ||
50056 | cd $ac_dir | |
50057 | ||
50058 | # Check for guested configure; otherwise get Cygnus style configure. | |
50059 | if test -f $ac_srcdir/configure.gnu; then | |
50060 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
50061 | elif test -f $ac_srcdir/configure; then | |
50062 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
50063 | elif test -f $ac_srcdir/configure.in; then | |
50064 | ac_sub_configure=$ac_configure | |
50065 | else | |
50066 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
50067 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
50068 | ac_sub_configure= | |
50069 | fi | |
50070 | ||
50071 | # The recursion is here. | |
50072 | if test -n "$ac_sub_configure"; then | |
50073 | # Make the cache file name correct relative to the subdirectory. | |
50074 | case $cache_file in | |
50075 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
50076 | *) # Relative path. | |
ac1cb8d3 | 50077 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
a848cd7e SC |
50078 | esac |
50079 | ||
50080 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
50081 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
50082 | # The eval makes quoting arguments work. | |
50083 | eval $ac_sub_configure $ac_sub_configure_args \ | |
ac1cb8d3 VS |
50084 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
50085 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
a848cd7e SC |
50086 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
50087 | { (exit 1); exit 1; }; } | |
50088 | fi | |
50089 | ||
5d7b7554 | 50090 | cd "$ac_popdir" |
a848cd7e SC |
50091 | done |
50092 | fi | |
50093 | ||
50094 | ||
50095 | echo | |
77ffb593 | 50096 | echo "Configured wxWidgets ${WX_VERSION} for \`${host}'" |
a848cd7e | 50097 | echo "" |
4d4ff94c | 50098 | echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}" |
77ffb593 | 50099 | echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
a848cd7e | 50100 | |
77ffb593 JS |
50101 | echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}" |
50102 | echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}" | |
50103 | echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
a848cd7e | 50104 | |
77ffb593 | 50105 | echo " What level of wxWidgets compatibility should be enabled?" |
dee1a63f MB |
50106 | echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}" |
50107 | echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}" | |
a848cd7e | 50108 | |
77ffb593 | 50109 | echo " Which libraries should wxWidgets use?" |
a848cd7e SC |
50110 | echo " jpeg ${wxUSE_LIBJPEG-none}" |
50111 | echo " png ${wxUSE_LIBPNG-none}" | |
50112 | echo " regex ${wxUSE_REGEX}" | |
50113 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
50114 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then | |
50115 | echo " xpm ${wxUSE_LIBXPM-none}" | |
50116 | fi | |
50117 | echo " zlib ${wxUSE_ZLIB}" | |
50118 | echo " odbc ${wxUSE_ODBC}" | |
50119 | echo " expat ${wxUSE_EXPAT}" | |
50120 | echo " libmspack ${wxUSE_LIBMSPACK}" | |
50121 | echo " sdl ${wxUSE_LIBSDL}" | |
6d1ce868 | 50122 | echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}" |
2b850ae1 | 50123 | echo " gnomevfs ${wxUSE_LIBGNOMEVFS-none}" |
3565d135 | 50124 | echo " hildon ${wxUSE_LIBHILDON-none}" |
a848cd7e SC |
50125 | |
50126 | echo "" | |
50127 |