]>
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 |
a57d600f | 982 | --enable-comboctrl use wxComboCtrl 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 | |
a57d600f | 993 | --enable-odcombobox 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 | |
d25774ab | 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 |
a57d600f | 2201 | DEFAULT_wxUSE_COMBOCTRL=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 | |
a57d600f | 2212 | DEFAULT_wxUSE_ODCOMBOBOX=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 |
a57d600f | 2407 | DEFAULT_wxUSE_COMBOCTRL=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 | |
a57d600f | 2418 | DEFAULT_wxUSE_ODCOMBOBOX=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 | 8046 | enablestring= |
a57d600f VZ |
8047 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5 |
8048 | echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6 | |
642bcba9 | 8049 | no_cache=0 |
a57d600f VZ |
8050 | # Check whether --enable-comboctrl or --disable-comboctrl was given. |
8051 | if test "${enable_comboctrl+set}" = set; then | |
8052 | enableval="$enable_comboctrl" | |
642bcba9 VZ |
8053 | |
8054 | if test "$enableval" = yes; then | |
a57d600f | 8055 | ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes' |
642bcba9 | 8056 | else |
a57d600f | 8057 | ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no' |
642bcba9 VZ |
8058 | fi |
8059 | ||
8060 | else | |
8061 | ||
a57d600f | 8062 | LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}` |
642bcba9 VZ |
8063 | if test "x$LINE" != x ; then |
8064 | eval "DEFAULT_$LINE" | |
8065 | else | |
8066 | no_cache=1 | |
8067 | fi | |
8068 | ||
a57d600f | 8069 | ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL |
642bcba9 VZ |
8070 | |
8071 | fi; | |
8072 | ||
a57d600f | 8073 | eval "$ac_cv_use_comboctrl" |
642bcba9 | 8074 | if test "$no_cache" != 1; then |
a57d600f | 8075 | echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp |
642bcba9 VZ |
8076 | fi |
8077 | ||
a57d600f | 8078 | if test "$wxUSE_COMBOCTRL" = yes; then |
642bcba9 VZ |
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 | 8497 | enablestring= |
a57d600f VZ |
8498 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5 |
8499 | echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6 | |
642bcba9 | 8500 | no_cache=0 |
a57d600f VZ |
8501 | # Check whether --enable-odcombobox or --disable-odcombobox was given. |
8502 | if test "${enable_odcombobox+set}" = set; then | |
8503 | enableval="$enable_odcombobox" | |
642bcba9 VZ |
8504 | |
8505 | if test "$enableval" = yes; then | |
a57d600f | 8506 | ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes' |
642bcba9 | 8507 | else |
a57d600f | 8508 | ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no' |
642bcba9 VZ |
8509 | fi |
8510 | ||
8511 | else | |
8512 | ||
a57d600f | 8513 | LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}` |
642bcba9 VZ |
8514 | if test "x$LINE" != x ; then |
8515 | eval "DEFAULT_$LINE" | |
8516 | else | |
8517 | no_cache=1 | |
8518 | fi | |
8519 | ||
a57d600f | 8520 | ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX |
642bcba9 VZ |
8521 | |
8522 | fi; | |
8523 | ||
a57d600f | 8524 | eval "$ac_cv_use_odcombobox" |
642bcba9 | 8525 | if test "$no_cache" != 1; then |
a57d600f | 8526 | echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp |
642bcba9 VZ |
8527 | fi |
8528 | ||
a57d600f | 8529 | if test "$wxUSE_ODCOMBOBOX" = yes; then |
642bcba9 VZ |
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); } && | |
d25774ab JS |
11796 | { ac_try='test -z "$ac_c_werror_flag" |
11797 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11799 | (eval $ac_try) 2>&5 | |
11800 | ac_status=$? | |
11801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11802 | (exit $ac_status); }; } && | |
11803 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11805 | (eval $ac_try) 2>&5 | |
11806 | ac_status=$? | |
11807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11808 | (exit $ac_status); }; }; then | |
11809 | ac_compiler_gnu=yes | |
11810 | else | |
11811 | echo "$as_me: failed program was:" >&5 | |
11812 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11813 | ||
11814 | ac_compiler_gnu=no | |
11815 | fi | |
ac1cb8d3 | 11816 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11817 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
11818 | ||
11819 | fi | |
11820 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
11821 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
11822 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
11823 | ac_test_CFLAGS=${CFLAGS+set} | |
11824 | ac_save_CFLAGS=$CFLAGS | |
8aeeb05c | 11825 | CFLAGS="-g" |
a848cd7e SC |
11826 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
11827 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
11828 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
11829 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11830 | else | |
11831 | cat >conftest.$ac_ext <<_ACEOF | |
11832 | /* confdefs.h. */ | |
11833 | _ACEOF | |
11834 | cat confdefs.h >>conftest.$ac_ext | |
11835 | cat >>conftest.$ac_ext <<_ACEOF | |
11836 | /* end confdefs.h. */ | |
11837 | ||
11838 | int | |
11839 | main () | |
11840 | { | |
11841 | ||
11842 | ; | |
11843 | return 0; | |
11844 | } | |
11845 | _ACEOF | |
11846 | rm -f conftest.$ac_objext | |
11847 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11848 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11849 | ac_status=$? |
ac1cb8d3 VS |
11850 | grep -v '^ *+' conftest.er1 >conftest.err |
11851 | rm -f conftest.er1 | |
11852 | cat conftest.err >&5 | |
a848cd7e SC |
11853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11854 | (exit $ac_status); } && | |
d25774ab JS |
11855 | { ac_try='test -z "$ac_c_werror_flag" |
11856 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11858 | (eval $ac_try) 2>&5 | |
11859 | ac_status=$? | |
11860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11861 | (exit $ac_status); }; } && | |
11862 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11864 | (eval $ac_try) 2>&5 | |
11865 | ac_status=$? | |
11866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11867 | (exit $ac_status); }; }; then | |
11868 | ac_cv_prog_cc_g=yes | |
11869 | else | |
11870 | echo "$as_me: failed program was:" >&5 | |
11871 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11872 | ||
11873 | ac_cv_prog_cc_g=no | |
11874 | fi | |
ac1cb8d3 | 11875 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11876 | fi |
11877 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
11878 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
11879 | if test "$ac_test_CFLAGS" = set; then | |
11880 | CFLAGS=$ac_save_CFLAGS | |
11881 | elif test $ac_cv_prog_cc_g = yes; then | |
11882 | if test "$GCC" = yes; then | |
11883 | CFLAGS="-g -O2" | |
11884 | else | |
11885 | CFLAGS="-g" | |
11886 | fi | |
11887 | else | |
11888 | if test "$GCC" = yes; then | |
11889 | CFLAGS="-O2" | |
11890 | else | |
11891 | CFLAGS= | |
11892 | fi | |
11893 | fi | |
11894 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
11895 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
11896 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
11897 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11898 | else | |
11899 | ac_cv_prog_cc_stdc=no | |
11900 | ac_save_CC=$CC | |
11901 | cat >conftest.$ac_ext <<_ACEOF | |
11902 | /* confdefs.h. */ | |
11903 | _ACEOF | |
11904 | cat confdefs.h >>conftest.$ac_ext | |
11905 | cat >>conftest.$ac_ext <<_ACEOF | |
11906 | /* end confdefs.h. */ | |
11907 | #include <stdarg.h> | |
11908 | #include <stdio.h> | |
11909 | #include <sys/types.h> | |
11910 | #include <sys/stat.h> | |
11911 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
11912 | struct buf { int x; }; | |
11913 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
11914 | static char *e (p, i) | |
11915 | char **p; | |
11916 | int i; | |
11917 | { | |
11918 | return p[i]; | |
11919 | } | |
11920 | static char *f (char * (*g) (char **, int), char **p, ...) | |
11921 | { | |
11922 | char *s; | |
11923 | va_list v; | |
11924 | va_start (v,p); | |
11925 | s = g (p, va_arg (v,int)); | |
11926 | va_end (v); | |
11927 | return s; | |
11928 | } | |
ac1cb8d3 VS |
11929 | |
11930 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
11931 | function prototypes and stuff, but not '\xHH' hex character constants. | |
11932 | These don't provoke an error unfortunately, instead are silently treated | |
11933 | as 'x'. The following induces an error, until -std1 is added to get | |
11934 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
11935 | array size at least. It's necessary to write '\x00'==0 to get something | |
11936 | that's true only with -std1. */ | |
11937 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
11938 | ||
a848cd7e SC |
11939 | int test (int i, double x); |
11940 | struct s1 {int (*f) (int a);}; | |
11941 | struct s2 {int (*f) (double a);}; | |
11942 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
11943 | int argc; | |
11944 | char **argv; | |
11945 | int | |
11946 | main () | |
11947 | { | |
11948 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
11949 | ; | |
11950 | return 0; | |
11951 | } | |
11952 | _ACEOF | |
11953 | # Don't try gcc -ansi; that turns off useful extensions and | |
11954 | # breaks some systems' header files. | |
11955 | # AIX -qlanglvl=ansi | |
11956 | # Ultrix and OSF/1 -std1 | |
11957 | # HP-UX 10.20 and later -Ae | |
11958 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
11959 | # SVR4 -Xc -D__EXTENSIONS__ | |
11960 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
11961 | do | |
11962 | CC="$ac_save_CC $ac_arg" | |
11963 | rm -f conftest.$ac_objext | |
11964 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11965 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11966 | ac_status=$? |
ac1cb8d3 VS |
11967 | grep -v '^ *+' conftest.er1 >conftest.err |
11968 | rm -f conftest.er1 | |
11969 | cat conftest.err >&5 | |
a848cd7e SC |
11970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11971 | (exit $ac_status); } && | |
d25774ab JS |
11972 | { ac_try='test -z "$ac_c_werror_flag" |
11973 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11975 | (eval $ac_try) 2>&5 | |
11976 | ac_status=$? | |
11977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11978 | (exit $ac_status); }; } && | |
11979 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11981 | (eval $ac_try) 2>&5 | |
11982 | ac_status=$? | |
11983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11984 | (exit $ac_status); }; }; then | |
11985 | ac_cv_prog_cc_stdc=$ac_arg | |
11986 | break | |
11987 | else | |
11988 | echo "$as_me: failed program was:" >&5 | |
11989 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11990 | ||
11991 | fi | |
ac1cb8d3 | 11992 | rm -f conftest.err conftest.$ac_objext |
a848cd7e SC |
11993 | done |
11994 | rm -f conftest.$ac_ext conftest.$ac_objext | |
11995 | CC=$ac_save_CC | |
11996 | ||
11997 | fi | |
11998 | ||
11999 | case "x$ac_cv_prog_cc_stdc" in | |
12000 | x|xno) | |
12001 | echo "$as_me:$LINENO: result: none needed" >&5 | |
12002 | echo "${ECHO_T}none needed" >&6 ;; | |
12003 | *) | |
12004 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
12005 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
12006 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
12007 | esac | |
12008 | ||
12009 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
12010 | # in C++ we need to declare it. In case someone uses the same compiler | |
12011 | # for both compiling C and C++ we need to have the C++ compiler decide | |
12012 | # the declaration of exit, since it's the most demanding environment. | |
12013 | cat >conftest.$ac_ext <<_ACEOF | |
12014 | #ifndef __cplusplus | |
12015 | choke me | |
12016 | #endif | |
12017 | _ACEOF | |
12018 | rm -f conftest.$ac_objext | |
12019 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12020 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12021 | ac_status=$? |
ac1cb8d3 VS |
12022 | grep -v '^ *+' conftest.er1 >conftest.err |
12023 | rm -f conftest.er1 | |
12024 | cat conftest.err >&5 | |
a848cd7e SC |
12025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12026 | (exit $ac_status); } && | |
d25774ab JS |
12027 | { ac_try='test -z "$ac_c_werror_flag" |
12028 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12030 | (eval $ac_try) 2>&5 | |
12031 | ac_status=$? | |
12032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12033 | (exit $ac_status); }; } && | |
12034 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12036 | (eval $ac_try) 2>&5 | |
12037 | ac_status=$? | |
12038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12039 | (exit $ac_status); }; }; then | |
12040 | for ac_declaration in \ | |
ac1cb8d3 | 12041 | '' \ |
a848cd7e SC |
12042 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
12043 | 'extern "C" void std::exit (int); using std::exit;' \ | |
12044 | 'extern "C" void exit (int) throw ();' \ | |
12045 | 'extern "C" void exit (int);' \ | |
12046 | 'void exit (int);' | |
12047 | do | |
12048 | cat >conftest.$ac_ext <<_ACEOF | |
12049 | /* confdefs.h. */ | |
12050 | _ACEOF | |
12051 | cat confdefs.h >>conftest.$ac_ext | |
12052 | cat >>conftest.$ac_ext <<_ACEOF | |
12053 | /* end confdefs.h. */ | |
de59c161 | 12054 | $ac_declaration |
ac1cb8d3 | 12055 | #include <stdlib.h> |
a848cd7e SC |
12056 | int |
12057 | main () | |
12058 | { | |
12059 | exit (42); | |
12060 | ; | |
12061 | return 0; | |
12062 | } | |
12063 | _ACEOF | |
12064 | rm -f conftest.$ac_objext | |
12065 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12066 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12067 | ac_status=$? |
ac1cb8d3 VS |
12068 | grep -v '^ *+' conftest.er1 >conftest.err |
12069 | rm -f conftest.er1 | |
12070 | cat conftest.err >&5 | |
a848cd7e SC |
12071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12072 | (exit $ac_status); } && | |
d25774ab JS |
12073 | { ac_try='test -z "$ac_c_werror_flag" |
12074 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
12075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12076 | (eval $ac_try) 2>&5 | |
12077 | ac_status=$? | |
12078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12079 | (exit $ac_status); }; } && | |
12080 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12082 | (eval $ac_try) 2>&5 | |
12083 | ac_status=$? | |
12084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12085 | (exit $ac_status); }; }; then | |
12086 | : | |
12087 | else | |
12088 | echo "$as_me: failed program was:" >&5 | |
12089 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12090 | ||
12091 | continue | |
12092 | fi | |
ac1cb8d3 | 12093 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12094 | cat >conftest.$ac_ext <<_ACEOF |
12095 | /* confdefs.h. */ | |
12096 | _ACEOF | |
12097 | cat confdefs.h >>conftest.$ac_ext | |
12098 | cat >>conftest.$ac_ext <<_ACEOF | |
12099 | /* end confdefs.h. */ | |
12100 | $ac_declaration | |
12101 | int | |
12102 | main () | |
12103 | { | |
12104 | exit (42); | |
12105 | ; | |
12106 | return 0; | |
12107 | } | |
12108 | _ACEOF | |
12109 | rm -f conftest.$ac_objext | |
12110 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 12111 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 12112 | ac_status=$? |
ac1cb8d3 VS |
12113 | grep -v '^ *+' conftest.er1 >conftest.err |
12114 | rm -f conftest.er1 | |
12115 | cat conftest.err >&5 | |
a848cd7e SC |
12116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12117 | (exit $ac_status); } && | |
d25774ab JS |
12118 | { ac_try='test -z "$ac_c_werror_flag" |
12119 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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); }; } && | |
12125 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
12126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12127 | (eval $ac_try) 2>&5 | |
12128 | ac_status=$? | |
12129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12130 | (exit $ac_status); }; }; then | |
12131 | break | |
12132 | else | |
12133 | echo "$as_me: failed program was:" >&5 | |
12134 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12135 | ||
12136 | fi | |
ac1cb8d3 | 12137 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12138 | done |
12139 | rm -f conftest* | |
12140 | if test -n "$ac_declaration"; then | |
12141 | echo '#ifdef __cplusplus' >>confdefs.h | |
12142 | echo $ac_declaration >>confdefs.h | |
12143 | echo '#endif' >>confdefs.h | |
12144 | fi | |
12145 | ||
12146 | else | |
12147 | echo "$as_me: failed program was:" >&5 | |
12148 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12149 | ||
12150 | fi | |
ac1cb8d3 | 12151 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12152 | ac_ext=c |
12153 | ac_cpp='$CPP $CPPFLAGS' | |
12154 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12155 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12156 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12157 | ||
ab0ad5f1 VZ |
12158 | |
12159 | ||
12160 | ac_ext=c | |
12161 | ac_cpp='$CPP $CPPFLAGS' | |
12162 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12163 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12164 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12165 | ||
12166 | echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5 | |
12167 | echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6 | |
12168 | if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then | |
12169 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12170 | else | |
12171 | cat >conftest.$ac_ext <<_ACEOF | |
12172 | /* confdefs.h. */ | |
12173 | _ACEOF | |
12174 | cat confdefs.h >>conftest.$ac_ext | |
12175 | cat >>conftest.$ac_ext <<_ACEOF | |
12176 | /* end confdefs.h. */ | |
12177 | ||
12178 | int | |
12179 | main () | |
12180 | { | |
12181 | ||
12182 | #ifndef __INTEL_COMPILER | |
12183 | choke me | |
12184 | #endif | |
12185 | ||
12186 | ; | |
12187 | return 0; | |
12188 | } | |
12189 | _ACEOF | |
12190 | rm -f conftest.$ac_objext | |
12191 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12192 | (eval $ac_compile) 2>conftest.er1 | |
12193 | ac_status=$? | |
12194 | grep -v '^ *+' conftest.er1 >conftest.err | |
12195 | rm -f conftest.er1 | |
12196 | cat conftest.err >&5 | |
12197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12198 | (exit $ac_status); } && | |
d25774ab JS |
12199 | { ac_try='test -z "$ac_c_werror_flag" |
12200 | || test ! -s conftest.err' | |
ab0ad5f1 VZ |
12201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12202 | (eval $ac_try) 2>&5 | |
12203 | ac_status=$? | |
12204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12205 | (exit $ac_status); }; } && | |
12206 | { ac_try='test -s conftest.$ac_objext' | |
12207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12208 | (eval $ac_try) 2>&5 | |
12209 | ac_status=$? | |
12210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12211 | (exit $ac_status); }; }; then | |
12212 | bakefile_cv_c_compiler___INTEL_COMPILER=yes | |
12213 | else | |
12214 | echo "$as_me: failed program was:" >&5 | |
12215 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12216 | ||
12217 | bakefile_cv_c_compiler___INTEL_COMPILER=no | |
12218 | ||
12219 | fi | |
12220 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12221 | ||
12222 | ||
12223 | fi | |
12224 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5 | |
12225 | echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6 | |
12226 | ac_ext=c | |
12227 | ac_cpp='$CPP $CPPFLAGS' | |
12228 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12229 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12230 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12231 | ||
12232 | if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then | |
12233 | :; INTELCC=yes | |
12234 | else | |
12235 | :; | |
12236 | fi | |
12237 | ||
12238 | ||
12239 | if test "x$GCC" != "xyes"; then | |
3006edc0 VZ |
12240 | if test "xCC" = "xC"; then |
12241 | echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5 | |
480ccd21 | 12242 | echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6 |
0093c2fc | 12243 | if test "${bakefile_cv_c_exto+set}" = set; then |
480ccd21 DE |
12244 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12245 | else | |
12246 | cat >conftest.$ac_ext <<_ACEOF | |
12247 | /* confdefs.h. */ | |
12248 | _ACEOF | |
12249 | cat confdefs.h >>conftest.$ac_ext | |
12250 | cat >>conftest.$ac_ext <<_ACEOF | |
12251 | /* end confdefs.h. */ | |
12252 | ||
12253 | int | |
12254 | main () | |
12255 | { | |
12256 | ||
12257 | ; | |
12258 | return 0; | |
12259 | } | |
12260 | _ACEOF | |
12261 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
12262 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12263 | (eval $ac_compile) 2>&5 | |
12264 | ac_status=$? | |
12265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12266 | (exit $ac_status); }; then | |
12267 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
12268 | case $ac_file in | |
12269 | conftest.$ac_ext.o) | |
0093c2fc | 12270 | bakefile_cv_c_exto="-ext o" |
480ccd21 DE |
12271 | ;; |
12272 | *) | |
12273 | ;; | |
12274 | esac | |
12275 | done | |
12276 | else | |
12277 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
12278 | See \`config.log' for more details." >&5 | |
12279 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
12280 | See \`config.log' for more details." >&2;} | |
12281 | { (exit 1); exit 1; }; } | |
12282 | ||
12283 | fi | |
12284 | ||
12285 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
12286 | ||
12287 | fi | |
0093c2fc VZ |
12288 | echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5 |
12289 | echo "${ECHO_T}$bakefile_cv_c_exto" >&6 | |
12290 | if test "x$bakefile_cv_c_exto" '!=' "x"; then | |
480ccd21 | 12291 | if test "c" = "c"; then |
0093c2fc | 12292 | CFLAGS="$bakefile_cv_c_exto $CFLAGS" |
480ccd21 DE |
12293 | fi |
12294 | if test "c" = "cxx"; then | |
0093c2fc | 12295 | CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS" |
480ccd21 DE |
12296 | fi |
12297 | fi | |
12298 | ||
0093c2fc | 12299 | if test "x$bakefile_cv_c_exto" '!=' "x"; then |
3006edc0 VZ |
12300 | unset ac_cv_prog_cc_g |
12301 | ac_test_CFLAGS=${CFLAGS+set} | |
480ccd21 | 12302 | ac_save_CFLAGS=$CFLAGS |
8aeeb05c | 12303 | CFLAGS="-g" |
480ccd21 DE |
12304 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
12305 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
12306 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
12307 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12308 | else | |
12309 | cat >conftest.$ac_ext <<_ACEOF | |
12310 | /* confdefs.h. */ | |
12311 | _ACEOF | |
12312 | cat confdefs.h >>conftest.$ac_ext | |
12313 | cat >>conftest.$ac_ext <<_ACEOF | |
12314 | /* end confdefs.h. */ | |
12315 | ||
12316 | int | |
12317 | main () | |
12318 | { | |
12319 | ||
12320 | ; | |
12321 | return 0; | |
12322 | } | |
12323 | _ACEOF | |
12324 | rm -f conftest.$ac_objext | |
12325 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12326 | (eval $ac_compile) 2>conftest.er1 | |
12327 | ac_status=$? | |
12328 | grep -v '^ *+' conftest.er1 >conftest.err | |
12329 | rm -f conftest.er1 | |
12330 | cat conftest.err >&5 | |
12331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12332 | (exit $ac_status); } && | |
d25774ab JS |
12333 | { ac_try='test -z "$ac_c_werror_flag" |
12334 | || test ! -s conftest.err' | |
480ccd21 DE |
12335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12336 | (eval $ac_try) 2>&5 | |
12337 | ac_status=$? | |
12338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12339 | (exit $ac_status); }; } && | |
12340 | { ac_try='test -s conftest.$ac_objext' | |
12341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12342 | (eval $ac_try) 2>&5 | |
12343 | ac_status=$? | |
12344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12345 | (exit $ac_status); }; }; then | |
12346 | ac_cv_prog_cc_g=yes | |
12347 | else | |
12348 | echo "$as_me: failed program was:" >&5 | |
12349 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12350 | ||
12351 | ac_cv_prog_cc_g=no | |
12352 | fi | |
12353 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12354 | fi | |
12355 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
12356 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
12357 | if test "$ac_test_CFLAGS" = set; then | |
12358 | CFLAGS=$ac_save_CFLAGS | |
12359 | elif test $ac_cv_prog_cc_g = yes; then | |
12360 | if test "$GCC" = yes; then | |
12361 | CFLAGS="-g -O2" | |
12362 | else | |
12363 | CFLAGS="-g" | |
12364 | fi | |
12365 | else | |
12366 | if test "$GCC" = yes; then | |
12367 | CFLAGS="-O2" | |
12368 | else | |
12369 | CFLAGS= | |
12370 | fi | |
12371 | fi | |
3006edc0 | 12372 | fi |
ab0ad5f1 | 12373 | fi |
3006edc0 VZ |
12374 | |
12375 | case `uname -s` in | |
12376 | AIX*) | |
12377 | ac_ext=c | |
12378 | ac_cpp='$CPP $CPPFLAGS' | |
12379 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12380 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12381 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12382 | ||
12383 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5 | |
12384 | echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6 | |
0093c2fc | 12385 | if test "${bakefile_cv_c_compiler_xlc+set}" = set; then |
3006edc0 VZ |
12386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12387 | else | |
12388 | cat >conftest.$ac_ext <<_ACEOF | |
12389 | /* confdefs.h. */ | |
12390 | _ACEOF | |
12391 | cat confdefs.h >>conftest.$ac_ext | |
12392 | cat >>conftest.$ac_ext <<_ACEOF | |
12393 | /* end confdefs.h. */ | |
12394 | ||
12395 | int | |
12396 | main () | |
12397 | { | |
12398 | #ifndef __xlC__ | |
12399 | choke me | |
12400 | #endif | |
12401 | ||
12402 | ; | |
12403 | return 0; | |
12404 | } | |
12405 | _ACEOF | |
12406 | rm -f conftest.$ac_objext | |
12407 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12408 | (eval $ac_compile) 2>conftest.er1 | |
12409 | ac_status=$? | |
12410 | grep -v '^ *+' conftest.er1 >conftest.err | |
12411 | rm -f conftest.er1 | |
12412 | cat conftest.err >&5 | |
12413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12414 | (exit $ac_status); } && | |
d25774ab JS |
12415 | { ac_try='test -z "$ac_c_werror_flag" |
12416 | || test ! -s conftest.err' | |
3006edc0 VZ |
12417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12418 | (eval $ac_try) 2>&5 | |
12419 | ac_status=$? | |
12420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12421 | (exit $ac_status); }; } && | |
12422 | { ac_try='test -s conftest.$ac_objext' | |
12423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12424 | (eval $ac_try) 2>&5 | |
12425 | ac_status=$? | |
12426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12427 | (exit $ac_status); }; }; then | |
0093c2fc | 12428 | bakefile_compiler_xlc=yes |
3006edc0 VZ |
12429 | else |
12430 | echo "$as_me: failed program was:" >&5 | |
12431 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12432 | ||
0093c2fc | 12433 | bakefile_compiler_xlc=no |
3006edc0 VZ |
12434 | fi |
12435 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 12436 | bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc |
3006edc0 VZ |
12437 | |
12438 | fi | |
0093c2fc VZ |
12439 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5 |
12440 | echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6 | |
3006edc0 | 12441 | |
0093c2fc | 12442 | XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes` |
3006edc0 VZ |
12443 | ac_ext=c |
12444 | ac_cpp='$CPP $CPPFLAGS' | |
12445 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12446 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12447 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12448 | ||
12449 | ||
12450 | ;; | |
12451 | ||
12452 | Darwin) | |
12453 | ac_ext=c | |
95986553 DE |
12454 | ac_cpp='$CPP $CPPFLAGS' |
12455 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12456 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12457 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12458 | ||
12459 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5 | |
12460 | echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6 | |
12461 | if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then | |
12462 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12463 | else | |
12464 | cat >conftest.$ac_ext <<_ACEOF | |
12465 | /* confdefs.h. */ | |
12466 | _ACEOF | |
12467 | cat confdefs.h >>conftest.$ac_ext | |
12468 | cat >>conftest.$ac_ext <<_ACEOF | |
12469 | /* end confdefs.h. */ | |
12470 | ||
12471 | int | |
12472 | main () | |
12473 | { | |
12474 | #ifndef __MWERKS__ | |
12475 | choke me | |
12476 | #endif | |
12477 | ||
12478 | ; | |
12479 | return 0; | |
12480 | } | |
12481 | _ACEOF | |
12482 | rm -f conftest.$ac_objext | |
12483 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12484 | (eval $ac_compile) 2>conftest.er1 | |
12485 | ac_status=$? | |
12486 | grep -v '^ *+' conftest.er1 >conftest.err | |
12487 | rm -f conftest.er1 | |
12488 | cat conftest.err >&5 | |
12489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12490 | (exit $ac_status); } && | |
d25774ab JS |
12491 | { ac_try='test -z "$ac_c_werror_flag" |
12492 | || test ! -s conftest.err' | |
95986553 DE |
12493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12494 | (eval $ac_try) 2>&5 | |
12495 | ac_status=$? | |
12496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12497 | (exit $ac_status); }; } && | |
12498 | { ac_try='test -s conftest.$ac_objext' | |
12499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12500 | (eval $ac_try) 2>&5 | |
12501 | ac_status=$? | |
12502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12503 | (exit $ac_status); }; }; then | |
12504 | bakefile_compiler_mwerks=yes | |
12505 | else | |
12506 | echo "$as_me: failed program was:" >&5 | |
12507 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12508 | ||
12509 | bakefile_compiler_mwerks=no | |
12510 | fi | |
12511 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12512 | bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks | |
12513 | ||
12514 | fi | |
12515 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5 | |
12516 | echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6 | |
12517 | ||
0e6fa1d9 | 12518 | MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes` |
95986553 DE |
12519 | ac_ext=c |
12520 | ac_cpp='$CPP $CPPFLAGS' | |
12521 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12522 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12523 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12524 | ||
12525 | ||
3006edc0 | 12526 | ac_ext=c |
9273ffba DE |
12527 | ac_cpp='$CPP $CPPFLAGS' |
12528 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12529 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12530 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12531 | ||
12532 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5 | |
12533 | echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6 | |
0093c2fc | 12534 | if test "${bakefile_cv_c_compiler_xlc+set}" = set; then |
9273ffba DE |
12535 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12536 | else | |
12537 | cat >conftest.$ac_ext <<_ACEOF | |
12538 | /* confdefs.h. */ | |
12539 | _ACEOF | |
12540 | cat confdefs.h >>conftest.$ac_ext | |
12541 | cat >>conftest.$ac_ext <<_ACEOF | |
12542 | /* end confdefs.h. */ | |
12543 | ||
12544 | int | |
12545 | main () | |
12546 | { | |
12547 | #ifndef __xlC__ | |
12548 | choke me | |
12549 | #endif | |
12550 | ||
12551 | ; | |
12552 | return 0; | |
12553 | } | |
12554 | _ACEOF | |
12555 | rm -f conftest.$ac_objext | |
12556 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12557 | (eval $ac_compile) 2>conftest.er1 | |
12558 | ac_status=$? | |
12559 | grep -v '^ *+' conftest.er1 >conftest.err | |
12560 | rm -f conftest.er1 | |
12561 | cat conftest.err >&5 | |
12562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12563 | (exit $ac_status); } && | |
d25774ab JS |
12564 | { ac_try='test -z "$ac_c_werror_flag" |
12565 | || test ! -s conftest.err' | |
9273ffba DE |
12566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12567 | (eval $ac_try) 2>&5 | |
12568 | ac_status=$? | |
12569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12570 | (exit $ac_status); }; } && | |
12571 | { ac_try='test -s conftest.$ac_objext' | |
12572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12573 | (eval $ac_try) 2>&5 | |
12574 | ac_status=$? | |
12575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12576 | (exit $ac_status); }; }; then | |
0093c2fc | 12577 | bakefile_compiler_xlc=yes |
9273ffba DE |
12578 | else |
12579 | echo "$as_me: failed program was:" >&5 | |
12580 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12581 | ||
0093c2fc | 12582 | bakefile_compiler_xlc=no |
9273ffba DE |
12583 | fi |
12584 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 12585 | bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc |
9273ffba DE |
12586 | |
12587 | fi | |
0093c2fc VZ |
12588 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5 |
12589 | echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6 | |
9273ffba | 12590 | |
0093c2fc | 12591 | XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes` |
9273ffba DE |
12592 | ac_ext=c |
12593 | ac_cpp='$CPP $CPPFLAGS' | |
12594 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12595 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12596 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12597 | ||
12598 | ||
3006edc0 VZ |
12599 | ;; |
12600 | ||
12601 | IRIX*) | |
a848cd7e | 12602 | |
6dcfc289 | 12603 | |
0ad5d837 VZ |
12604 | ac_ext=c |
12605 | ac_cpp='$CPP $CPPFLAGS' | |
12606 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12607 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12608 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12609 | ||
12610 | echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5 | |
12611 | echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6 | |
12612 | if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then | |
12613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12614 | else | |
12615 | cat >conftest.$ac_ext <<_ACEOF | |
12616 | /* confdefs.h. */ | |
12617 | _ACEOF | |
12618 | cat confdefs.h >>conftest.$ac_ext | |
12619 | cat >>conftest.$ac_ext <<_ACEOF | |
12620 | /* end confdefs.h. */ | |
12621 | ||
12622 | int | |
12623 | main () | |
12624 | { | |
12625 | ||
12626 | #ifndef _SGI_COMPILER_VERSION | |
12627 | choke me | |
12628 | #endif | |
12629 | ||
12630 | ; | |
12631 | return 0; | |
12632 | } | |
12633 | _ACEOF | |
12634 | rm -f conftest.$ac_objext | |
12635 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12636 | (eval $ac_compile) 2>conftest.er1 | |
12637 | ac_status=$? | |
12638 | grep -v '^ *+' conftest.er1 >conftest.err | |
12639 | rm -f conftest.er1 | |
12640 | cat conftest.err >&5 | |
12641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12642 | (exit $ac_status); } && | |
d25774ab JS |
12643 | { ac_try='test -z "$ac_c_werror_flag" |
12644 | || test ! -s conftest.err' | |
0ad5d837 VZ |
12645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12646 | (eval $ac_try) 2>&5 | |
12647 | ac_status=$? | |
12648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12649 | (exit $ac_status); }; } && | |
12650 | { ac_try='test -s conftest.$ac_objext' | |
12651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12652 | (eval $ac_try) 2>&5 | |
12653 | ac_status=$? | |
12654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12655 | (exit $ac_status); }; }; then | |
12656 | bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes | |
12657 | else | |
12658 | echo "$as_me: failed program was:" >&5 | |
12659 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12660 | ||
12661 | bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no | |
12662 | ||
12663 | fi | |
12664 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12665 | ||
12666 | ||
12667 | fi | |
12668 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5 | |
12669 | echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6 | |
12670 | ac_ext=c | |
12671 | ac_cpp='$CPP $CPPFLAGS' | |
12672 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12673 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12674 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12675 | ||
12676 | if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then | |
12677 | :; SGICC=yes | |
12678 | else | |
12679 | :; | |
12680 | fi | |
12681 | ||
12682 | ||
3006edc0 VZ |
12683 | ;; |
12684 | ||
0093c2fc | 12685 | HP-UX*) |
3006edc0 VZ |
12686 | |
12687 | ||
12688 | ac_ext=c | |
12689 | ac_cpp='$CPP $CPPFLAGS' | |
12690 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12691 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12692 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12693 | ||
0093c2fc VZ |
12694 | echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5 |
12695 | echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6 | |
12696 | if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then | |
3006edc0 VZ |
12697 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12698 | else | |
12699 | cat >conftest.$ac_ext <<_ACEOF | |
12700 | /* confdefs.h. */ | |
12701 | _ACEOF | |
12702 | cat confdefs.h >>conftest.$ac_ext | |
12703 | cat >>conftest.$ac_ext <<_ACEOF | |
12704 | /* end confdefs.h. */ | |
12705 | ||
12706 | int | |
12707 | main () | |
12708 | { | |
12709 | ||
0093c2fc | 12710 | #ifndef __HP_cc |
3006edc0 VZ |
12711 | choke me |
12712 | #endif | |
12713 | ||
12714 | ; | |
12715 | return 0; | |
12716 | } | |
12717 | _ACEOF | |
12718 | rm -f conftest.$ac_objext | |
12719 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12720 | (eval $ac_compile) 2>conftest.er1 | |
12721 | ac_status=$? | |
12722 | grep -v '^ *+' conftest.er1 >conftest.err | |
12723 | rm -f conftest.er1 | |
12724 | cat conftest.err >&5 | |
12725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12726 | (exit $ac_status); } && | |
d25774ab JS |
12727 | { ac_try='test -z "$ac_c_werror_flag" |
12728 | || test ! -s conftest.err' | |
3006edc0 VZ |
12729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12730 | (eval $ac_try) 2>&5 | |
12731 | ac_status=$? | |
12732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12733 | (exit $ac_status); }; } && | |
12734 | { ac_try='test -s conftest.$ac_objext' | |
12735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12736 | (eval $ac_try) 2>&5 | |
12737 | ac_status=$? | |
12738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12739 | (exit $ac_status); }; }; then | |
0093c2fc | 12740 | bakefile_cv_c_compiler___HP_cc=yes |
3006edc0 VZ |
12741 | else |
12742 | echo "$as_me: failed program was:" >&5 | |
12743 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12744 | ||
0093c2fc | 12745 | bakefile_cv_c_compiler___HP_cc=no |
3006edc0 VZ |
12746 | |
12747 | fi | |
12748 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12749 | ||
12750 | ||
12751 | fi | |
0093c2fc VZ |
12752 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5 |
12753 | echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6 | |
3006edc0 VZ |
12754 | ac_ext=c |
12755 | ac_cpp='$CPP $CPPFLAGS' | |
12756 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12757 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12758 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12759 | ||
0093c2fc VZ |
12760 | if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then |
12761 | :; HPCC=yes | |
a1aa0349 VZ |
12762 | else |
12763 | :; | |
12764 | fi | |
12765 | ||
12766 | ||
12767 | ;; | |
12768 | ||
0093c2fc | 12769 | OSF1) |
a1aa0349 VZ |
12770 | |
12771 | ||
12772 | ac_ext=c | |
12773 | ac_cpp='$CPP $CPPFLAGS' | |
12774 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12775 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12776 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12777 | ||
0093c2fc VZ |
12778 | echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5 |
12779 | echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6 | |
12780 | if test "${bakefile_cv_c_compiler___DECC+set}" = set; then | |
a1aa0349 VZ |
12781 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12782 | else | |
12783 | cat >conftest.$ac_ext <<_ACEOF | |
12784 | /* confdefs.h. */ | |
12785 | _ACEOF | |
12786 | cat confdefs.h >>conftest.$ac_ext | |
12787 | cat >>conftest.$ac_ext <<_ACEOF | |
12788 | /* end confdefs.h. */ | |
12789 | ||
12790 | int | |
12791 | main () | |
12792 | { | |
12793 | ||
0093c2fc | 12794 | #ifndef __DECC |
a1aa0349 VZ |
12795 | choke me |
12796 | #endif | |
12797 | ||
12798 | ; | |
12799 | return 0; | |
12800 | } | |
12801 | _ACEOF | |
12802 | rm -f conftest.$ac_objext | |
12803 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12804 | (eval $ac_compile) 2>conftest.er1 | |
12805 | ac_status=$? | |
12806 | grep -v '^ *+' conftest.er1 >conftest.err | |
12807 | rm -f conftest.er1 | |
12808 | cat conftest.err >&5 | |
12809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12810 | (exit $ac_status); } && | |
d25774ab JS |
12811 | { ac_try='test -z "$ac_c_werror_flag" |
12812 | || test ! -s conftest.err' | |
a1aa0349 VZ |
12813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12814 | (eval $ac_try) 2>&5 | |
12815 | ac_status=$? | |
12816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12817 | (exit $ac_status); }; } && | |
12818 | { ac_try='test -s conftest.$ac_objext' | |
12819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12820 | (eval $ac_try) 2>&5 | |
12821 | ac_status=$? | |
12822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12823 | (exit $ac_status); }; }; then | |
0093c2fc | 12824 | bakefile_cv_c_compiler___DECC=yes |
a1aa0349 VZ |
12825 | else |
12826 | echo "$as_me: failed program was:" >&5 | |
12827 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12828 | ||
0093c2fc | 12829 | bakefile_cv_c_compiler___DECC=no |
a1aa0349 VZ |
12830 | |
12831 | fi | |
12832 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12833 | ||
12834 | ||
12835 | fi | |
0093c2fc VZ |
12836 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5 |
12837 | echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6 | |
a1aa0349 VZ |
12838 | ac_ext=c |
12839 | ac_cpp='$CPP $CPPFLAGS' | |
12840 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12841 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12842 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12843 | ||
0093c2fc VZ |
12844 | if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then |
12845 | :; COMPAQCC=yes | |
12846 | else | |
12847 | :; | |
12848 | fi | |
12849 | ||
12850 | ||
12851 | ;; | |
12852 | ||
12853 | SunOS) | |
12854 | ||
12855 | ||
12856 | ac_ext=c | |
12857 | ac_cpp='$CPP $CPPFLAGS' | |
12858 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12859 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12860 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12861 | ||
12862 | echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5 | |
12863 | echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6 | |
12864 | if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then | |
12865 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12866 | else | |
12867 | cat >conftest.$ac_ext <<_ACEOF | |
12868 | /* confdefs.h. */ | |
12869 | _ACEOF | |
12870 | cat confdefs.h >>conftest.$ac_ext | |
12871 | cat >>conftest.$ac_ext <<_ACEOF | |
12872 | /* end confdefs.h. */ | |
12873 | ||
12874 | int | |
12875 | main () | |
12876 | { | |
12877 | ||
12878 | #ifndef __SUNPRO_C | |
12879 | choke me | |
12880 | #endif | |
12881 | ||
12882 | ; | |
12883 | return 0; | |
12884 | } | |
12885 | _ACEOF | |
12886 | rm -f conftest.$ac_objext | |
12887 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12888 | (eval $ac_compile) 2>conftest.er1 | |
12889 | ac_status=$? | |
12890 | grep -v '^ *+' conftest.er1 >conftest.err | |
12891 | rm -f conftest.er1 | |
12892 | cat conftest.err >&5 | |
12893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12894 | (exit $ac_status); } && | |
d25774ab JS |
12895 | { ac_try='test -z "$ac_c_werror_flag" |
12896 | || test ! -s conftest.err' | |
0093c2fc VZ |
12897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12898 | (eval $ac_try) 2>&5 | |
12899 | ac_status=$? | |
12900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12901 | (exit $ac_status); }; } && | |
12902 | { ac_try='test -s conftest.$ac_objext' | |
12903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12904 | (eval $ac_try) 2>&5 | |
12905 | ac_status=$? | |
12906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12907 | (exit $ac_status); }; }; then | |
12908 | bakefile_cv_c_compiler___SUNPRO_C=yes | |
12909 | else | |
12910 | echo "$as_me: failed program was:" >&5 | |
12911 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12912 | ||
12913 | bakefile_cv_c_compiler___SUNPRO_C=no | |
12914 | ||
12915 | fi | |
12916 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12917 | ||
12918 | ||
12919 | fi | |
12920 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5 | |
12921 | echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6 | |
12922 | ac_ext=c | |
12923 | ac_cpp='$CPP $CPPFLAGS' | |
12924 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12925 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12926 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12927 | ||
12928 | if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then | |
12929 | :; SUNCC=yes | |
3006edc0 VZ |
12930 | else |
12931 | :; | |
12932 | fi | |
12933 | ||
12934 | ||
12935 | ;; | |
12936 | esac | |
ab0ad5f1 | 12937 | fi |
a9e5b1f0 MW |
12938 | |
12939 | ||
3006edc0 | 12940 | |
a848cd7e SC |
12941 | ac_ext=c |
12942 | ac_cpp='$CPP $CPPFLAGS' | |
12943 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12944 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12945 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12946 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
12947 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
12948 | # On Suns, sometimes $CPP names a directory. | |
12949 | if test -n "$CPP" && test -d "$CPP"; then | |
12950 | CPP= | |
12951 | fi | |
12952 | if test -z "$CPP"; then | |
12953 | if test "${ac_cv_prog_CPP+set}" = set; then | |
12954 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12955 | else | |
12956 | # Double quotes because CPP needs to be expanded | |
12957 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
12958 | do | |
12959 | ac_preproc_ok=false | |
12960 | for ac_c_preproc_warn_flag in '' yes | |
12961 | do | |
12962 | # Use a header file that comes with gcc, so configuring glibc | |
12963 | # with a fresh cross-compiler works. | |
12964 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12965 | # <limits.h> exists even on freestanding compilers. | |
12966 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12967 | # not just through cpp. "Syntax error" is here to catch this case. | |
12968 | cat >conftest.$ac_ext <<_ACEOF | |
12969 | /* confdefs.h. */ | |
12970 | _ACEOF | |
12971 | cat confdefs.h >>conftest.$ac_ext | |
12972 | cat >>conftest.$ac_ext <<_ACEOF | |
12973 | /* end confdefs.h. */ | |
12974 | #ifdef __STDC__ | |
12975 | # include <limits.h> | |
12976 | #else | |
12977 | # include <assert.h> | |
12978 | #endif | |
ac1cb8d3 | 12979 | Syntax error |
a848cd7e SC |
12980 | _ACEOF |
12981 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12982 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12983 | ac_status=$? | |
12984 | grep -v '^ *+' conftest.er1 >conftest.err | |
12985 | rm -f conftest.er1 | |
12986 | cat conftest.err >&5 | |
12987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12988 | (exit $ac_status); } >/dev/null; then | |
12989 | if test -s conftest.err; then | |
12990 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12991 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12992 | else |
12993 | ac_cpp_err= | |
12994 | fi | |
12995 | else | |
12996 | ac_cpp_err=yes | |
12997 | fi | |
12998 | if test -z "$ac_cpp_err"; then | |
12999 | : | |
13000 | else | |
13001 | echo "$as_me: failed program was:" >&5 | |
13002 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13003 | ||
13004 | # Broken: fails on valid input. | |
13005 | continue | |
13006 | fi | |
13007 | rm -f conftest.err conftest.$ac_ext | |
13008 | ||
13009 | # OK, works on sane cases. Now check whether non-existent headers | |
13010 | # can be detected and how. | |
13011 | cat >conftest.$ac_ext <<_ACEOF | |
13012 | /* confdefs.h. */ | |
13013 | _ACEOF | |
13014 | cat confdefs.h >>conftest.$ac_ext | |
13015 | cat >>conftest.$ac_ext <<_ACEOF | |
13016 | /* end confdefs.h. */ | |
13017 | #include <ac_nonexistent.h> | |
13018 | _ACEOF | |
13019 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13020 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13021 | ac_status=$? | |
13022 | grep -v '^ *+' conftest.er1 >conftest.err | |
13023 | rm -f conftest.er1 | |
13024 | cat conftest.err >&5 | |
13025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13026 | (exit $ac_status); } >/dev/null; then | |
13027 | if test -s conftest.err; then | |
13028 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13029 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13030 | else |
13031 | ac_cpp_err= | |
13032 | fi | |
13033 | else | |
13034 | ac_cpp_err=yes | |
13035 | fi | |
13036 | if test -z "$ac_cpp_err"; then | |
13037 | # Broken: success on invalid input. | |
13038 | continue | |
13039 | else | |
13040 | echo "$as_me: failed program was:" >&5 | |
13041 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13042 | ||
13043 | # Passes both tests. | |
13044 | ac_preproc_ok=: | |
13045 | break | |
13046 | fi | |
13047 | rm -f conftest.err conftest.$ac_ext | |
13048 | ||
13049 | done | |
13050 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
13051 | rm -f conftest.err conftest.$ac_ext | |
13052 | if $ac_preproc_ok; then | |
13053 | break | |
13054 | fi | |
13055 | ||
13056 | done | |
13057 | ac_cv_prog_CPP=$CPP | |
13058 | ||
13059 | fi | |
13060 | CPP=$ac_cv_prog_CPP | |
13061 | else | |
13062 | ac_cv_prog_CPP=$CPP | |
13063 | fi | |
13064 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
13065 | echo "${ECHO_T}$CPP" >&6 | |
13066 | ac_preproc_ok=false | |
13067 | for ac_c_preproc_warn_flag in '' yes | |
13068 | do | |
13069 | # Use a header file that comes with gcc, so configuring glibc | |
13070 | # with a fresh cross-compiler works. | |
13071 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13072 | # <limits.h> exists even on freestanding compilers. | |
13073 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
13074 | # not just through cpp. "Syntax error" is here to catch this case. | |
13075 | cat >conftest.$ac_ext <<_ACEOF | |
13076 | /* confdefs.h. */ | |
13077 | _ACEOF | |
13078 | cat confdefs.h >>conftest.$ac_ext | |
13079 | cat >>conftest.$ac_ext <<_ACEOF | |
13080 | /* end confdefs.h. */ | |
13081 | #ifdef __STDC__ | |
13082 | # include <limits.h> | |
13083 | #else | |
13084 | # include <assert.h> | |
13085 | #endif | |
ac1cb8d3 | 13086 | Syntax error |
a848cd7e SC |
13087 | _ACEOF |
13088 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13089 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13090 | ac_status=$? | |
13091 | grep -v '^ *+' conftest.er1 >conftest.err | |
13092 | rm -f conftest.er1 | |
13093 | cat conftest.err >&5 | |
13094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13095 | (exit $ac_status); } >/dev/null; then | |
13096 | if test -s conftest.err; then | |
13097 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13098 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13099 | else |
13100 | ac_cpp_err= | |
13101 | fi | |
13102 | else | |
13103 | ac_cpp_err=yes | |
13104 | fi | |
13105 | if test -z "$ac_cpp_err"; then | |
13106 | : | |
13107 | else | |
13108 | echo "$as_me: failed program was:" >&5 | |
13109 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13110 | ||
13111 | # Broken: fails on valid input. | |
13112 | continue | |
13113 | fi | |
13114 | rm -f conftest.err conftest.$ac_ext | |
13115 | ||
13116 | # OK, works on sane cases. Now check whether non-existent headers | |
13117 | # can be detected and how. | |
13118 | cat >conftest.$ac_ext <<_ACEOF | |
13119 | /* confdefs.h. */ | |
13120 | _ACEOF | |
13121 | cat confdefs.h >>conftest.$ac_ext | |
13122 | cat >>conftest.$ac_ext <<_ACEOF | |
13123 | /* end confdefs.h. */ | |
13124 | #include <ac_nonexistent.h> | |
13125 | _ACEOF | |
13126 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13127 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13128 | ac_status=$? | |
13129 | grep -v '^ *+' conftest.er1 >conftest.err | |
13130 | rm -f conftest.er1 | |
13131 | cat conftest.err >&5 | |
13132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13133 | (exit $ac_status); } >/dev/null; then | |
13134 | if test -s conftest.err; then | |
13135 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 13136 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
13137 | else |
13138 | ac_cpp_err= | |
13139 | fi | |
13140 | else | |
13141 | ac_cpp_err=yes | |
13142 | fi | |
13143 | if test -z "$ac_cpp_err"; then | |
13144 | # Broken: success on invalid input. | |
13145 | continue | |
13146 | else | |
13147 | echo "$as_me: failed program was:" >&5 | |
13148 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13149 | ||
13150 | # Passes both tests. | |
13151 | ac_preproc_ok=: | |
13152 | break | |
13153 | fi | |
13154 | rm -f conftest.err conftest.$ac_ext | |
13155 | ||
13156 | done | |
13157 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
13158 | rm -f conftest.err conftest.$ac_ext | |
13159 | if $ac_preproc_ok; then | |
13160 | : | |
13161 | else | |
13162 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
13163 | See \`config.log' for more details." >&5 | |
13164 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
13165 | See \`config.log' for more details." >&2;} | |
13166 | { (exit 1); exit 1; }; } | |
13167 | fi | |
13168 | ||
13169 | ac_ext=c | |
13170 | ac_cpp='$CPP $CPPFLAGS' | |
13171 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13172 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13173 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13174 | ||
13175 | ||
13176 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
13177 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
13178 | if test "${ac_cv_prog_egrep+set}" = set; then | |
13179 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13180 | else | |
13181 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
13182 | then ac_cv_prog_egrep='grep -E' | |
13183 | else ac_cv_prog_egrep='egrep' | |
13184 | fi | |
13185 | fi | |
13186 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
13187 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
13188 | EGREP=$ac_cv_prog_egrep | |
13189 | ||
13190 | ||
13191 | if test $ac_cv_c_compiler_gnu = yes; then | |
13192 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
13193 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
13194 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
13195 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13196 | else | |
13197 | ac_pattern="Autoconf.*'x'" | |
13198 | cat >conftest.$ac_ext <<_ACEOF | |
13199 | /* confdefs.h. */ | |
13200 | _ACEOF | |
13201 | cat confdefs.h >>conftest.$ac_ext | |
13202 | cat >>conftest.$ac_ext <<_ACEOF | |
13203 | /* end confdefs.h. */ | |
13204 | #include <sgtty.h> | |
13205 | Autoconf TIOCGETP | |
13206 | _ACEOF | |
13207 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13208 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
13209 | ac_cv_prog_gcc_traditional=yes | |
13210 | else | |
13211 | ac_cv_prog_gcc_traditional=no | |
13212 | fi | |
13213 | rm -f conftest* | |
13214 | ||
13215 | ||
13216 | if test $ac_cv_prog_gcc_traditional = no; then | |
13217 | cat >conftest.$ac_ext <<_ACEOF | |
13218 | /* confdefs.h. */ | |
13219 | _ACEOF | |
13220 | cat confdefs.h >>conftest.$ac_ext | |
13221 | cat >>conftest.$ac_ext <<_ACEOF | |
13222 | /* end confdefs.h. */ | |
13223 | #include <termio.h> | |
13224 | Autoconf TCGETA | |
13225 | _ACEOF | |
13226 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13227 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
13228 | ac_cv_prog_gcc_traditional=yes | |
13229 | fi | |
13230 | rm -f conftest* | |
13231 | ||
13232 | fi | |
13233 | fi | |
13234 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
13235 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
13236 | if test $ac_cv_prog_gcc_traditional = yes; then | |
13237 | CC="$CC -traditional" | |
13238 | fi | |
13239 | fi | |
13240 | ||
13241 | ||
a848cd7e SC |
13242 | ac_ext=cc |
13243 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13244 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13245 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13246 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13247 | ||
13248 | ||
13249 | CXXFLAGS=${CXXFLAGS:=} | |
6dcfc289 DE |
13250 | |
13251 | ||
3006edc0 | 13252 | |
6dcfc289 | 13253 | ac_ext=cc |
a848cd7e SC |
13254 | ac_cpp='$CXXCPP $CPPFLAGS' |
13255 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13256 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13257 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13258 | if test -n "$ac_tool_prefix"; then | |
13259 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
13260 | do | |
13261 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
13262 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
13263 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13264 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13265 | if test "${ac_cv_prog_CXX+set}" = set; then | |
13266 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13267 | else | |
13268 | if test -n "$CXX"; then | |
13269 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
13270 | else | |
13271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13272 | for as_dir in $PATH | |
13273 | do | |
13274 | IFS=$as_save_IFS | |
13275 | test -z "$as_dir" && as_dir=. | |
13276 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13277 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13278 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
13279 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13280 | break 2 | |
13281 | fi | |
13282 | done | |
13283 | done | |
13284 | ||
13285 | fi | |
13286 | fi | |
13287 | CXX=$ac_cv_prog_CXX | |
13288 | if test -n "$CXX"; then | |
13289 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
13290 | echo "${ECHO_T}$CXX" >&6 | |
13291 | else | |
13292 | echo "$as_me:$LINENO: result: no" >&5 | |
13293 | echo "${ECHO_T}no" >&6 | |
13294 | fi | |
13295 | ||
13296 | test -n "$CXX" && break | |
13297 | done | |
13298 | fi | |
13299 | if test -z "$CXX"; then | |
13300 | ac_ct_CXX=$CXX | |
13301 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
13302 | do | |
13303 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13304 | set dummy $ac_prog; ac_word=$2 | |
13305 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13306 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13307 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
13308 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13309 | else | |
13310 | if test -n "$ac_ct_CXX"; then | |
13311 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
13312 | else | |
13313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13314 | for as_dir in $PATH | |
13315 | do | |
13316 | IFS=$as_save_IFS | |
13317 | test -z "$as_dir" && as_dir=. | |
13318 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13319 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13320 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
13321 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13322 | break 2 | |
13323 | fi | |
13324 | done | |
13325 | done | |
13326 | ||
13327 | fi | |
13328 | fi | |
13329 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
13330 | if test -n "$ac_ct_CXX"; then | |
13331 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
13332 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
13333 | else | |
13334 | echo "$as_me:$LINENO: result: no" >&5 | |
13335 | echo "${ECHO_T}no" >&6 | |
13336 | fi | |
13337 | ||
13338 | test -n "$ac_ct_CXX" && break | |
13339 | done | |
13340 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
13341 | ||
13342 | CXX=$ac_ct_CXX | |
13343 | fi | |
13344 | ||
13345 | ||
13346 | # Provide some information about the compiler. | |
13347 | echo "$as_me:$LINENO:" \ | |
13348 | "checking for C++ compiler version" >&5 | |
13349 | ac_compiler=`set X $ac_compile; echo $2` | |
13350 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
13351 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
13352 | ac_status=$? | |
13353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13354 | (exit $ac_status); } | |
13355 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
13356 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
13357 | ac_status=$? | |
13358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13359 | (exit $ac_status); } | |
13360 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
13361 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
13362 | ac_status=$? | |
13363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13364 | (exit $ac_status); } | |
13365 | ||
13366 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
13367 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
13368 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
13369 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13370 | else | |
13371 | cat >conftest.$ac_ext <<_ACEOF | |
13372 | /* confdefs.h. */ | |
13373 | _ACEOF | |
13374 | cat confdefs.h >>conftest.$ac_ext | |
13375 | cat >>conftest.$ac_ext <<_ACEOF | |
13376 | /* end confdefs.h. */ | |
13377 | ||
13378 | int | |
13379 | main () | |
13380 | { | |
13381 | #ifndef __GNUC__ | |
13382 | choke me | |
13383 | #endif | |
13384 | ||
13385 | ; | |
13386 | return 0; | |
13387 | } | |
13388 | _ACEOF | |
13389 | rm -f conftest.$ac_objext | |
13390 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13391 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13392 | ac_status=$? |
ac1cb8d3 VS |
13393 | grep -v '^ *+' conftest.er1 >conftest.err |
13394 | rm -f conftest.er1 | |
13395 | cat conftest.err >&5 | |
a848cd7e SC |
13396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13397 | (exit $ac_status); } && | |
d25774ab JS |
13398 | { ac_try='test -z "$ac_cxx_werror_flag" |
13399 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13401 | (eval $ac_try) 2>&5 | |
13402 | ac_status=$? | |
13403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13404 | (exit $ac_status); }; } && | |
13405 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13407 | (eval $ac_try) 2>&5 | |
13408 | ac_status=$? | |
13409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13410 | (exit $ac_status); }; }; then | |
13411 | ac_compiler_gnu=yes | |
13412 | else | |
13413 | echo "$as_me: failed program was:" >&5 | |
13414 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13415 | ||
13416 | ac_compiler_gnu=no | |
13417 | fi | |
ac1cb8d3 | 13418 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13419 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
13420 | ||
13421 | fi | |
13422 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
13423 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
13424 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
13425 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
13426 | ac_save_CXXFLAGS=$CXXFLAGS | |
13427 | CXXFLAGS="-g" | |
13428 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
13429 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
13430 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
13431 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13432 | else | |
13433 | cat >conftest.$ac_ext <<_ACEOF | |
13434 | /* confdefs.h. */ | |
13435 | _ACEOF | |
13436 | cat confdefs.h >>conftest.$ac_ext | |
13437 | cat >>conftest.$ac_ext <<_ACEOF | |
13438 | /* end confdefs.h. */ | |
13439 | ||
13440 | int | |
13441 | main () | |
13442 | { | |
13443 | ||
13444 | ; | |
13445 | return 0; | |
13446 | } | |
13447 | _ACEOF | |
13448 | rm -f conftest.$ac_objext | |
13449 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13450 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13451 | ac_status=$? |
ac1cb8d3 VS |
13452 | grep -v '^ *+' conftest.er1 >conftest.err |
13453 | rm -f conftest.er1 | |
13454 | cat conftest.err >&5 | |
a848cd7e SC |
13455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13456 | (exit $ac_status); } && | |
d25774ab JS |
13457 | { ac_try='test -z "$ac_cxx_werror_flag" |
13458 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13460 | (eval $ac_try) 2>&5 | |
13461 | ac_status=$? | |
13462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13463 | (exit $ac_status); }; } && | |
13464 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13466 | (eval $ac_try) 2>&5 | |
13467 | ac_status=$? | |
13468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13469 | (exit $ac_status); }; }; then | |
13470 | ac_cv_prog_cxx_g=yes | |
13471 | else | |
13472 | echo "$as_me: failed program was:" >&5 | |
13473 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13474 | ||
13475 | ac_cv_prog_cxx_g=no | |
13476 | fi | |
ac1cb8d3 | 13477 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13478 | fi |
13479 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
13480 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
13481 | if test "$ac_test_CXXFLAGS" = set; then | |
13482 | CXXFLAGS=$ac_save_CXXFLAGS | |
13483 | elif test $ac_cv_prog_cxx_g = yes; then | |
13484 | if test "$GXX" = yes; then | |
8aeeb05c | 13485 | CXXFLAGS="-g -O2" |
a848cd7e | 13486 | else |
8aeeb05c | 13487 | CXXFLAGS="-g" |
a848cd7e SC |
13488 | fi |
13489 | else | |
13490 | if test "$GXX" = yes; then | |
13491 | CXXFLAGS="-O2" | |
13492 | else | |
13493 | CXXFLAGS= | |
13494 | fi | |
13495 | fi | |
13496 | for ac_declaration in \ | |
ac1cb8d3 | 13497 | '' \ |
a848cd7e SC |
13498 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
13499 | 'extern "C" void std::exit (int); using std::exit;' \ | |
13500 | 'extern "C" void exit (int) throw ();' \ | |
13501 | 'extern "C" void exit (int);' \ | |
13502 | 'void exit (int);' | |
13503 | do | |
13504 | cat >conftest.$ac_ext <<_ACEOF | |
13505 | /* confdefs.h. */ | |
13506 | _ACEOF | |
13507 | cat confdefs.h >>conftest.$ac_ext | |
13508 | cat >>conftest.$ac_ext <<_ACEOF | |
13509 | /* end confdefs.h. */ | |
de59c161 | 13510 | $ac_declaration |
ac1cb8d3 | 13511 | #include <stdlib.h> |
a848cd7e SC |
13512 | int |
13513 | main () | |
13514 | { | |
13515 | exit (42); | |
13516 | ; | |
13517 | return 0; | |
13518 | } | |
13519 | _ACEOF | |
13520 | rm -f conftest.$ac_objext | |
13521 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13522 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13523 | ac_status=$? |
ac1cb8d3 VS |
13524 | grep -v '^ *+' conftest.er1 >conftest.err |
13525 | rm -f conftest.er1 | |
13526 | cat conftest.err >&5 | |
a848cd7e SC |
13527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13528 | (exit $ac_status); } && | |
d25774ab JS |
13529 | { ac_try='test -z "$ac_cxx_werror_flag" |
13530 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13532 | (eval $ac_try) 2>&5 | |
13533 | ac_status=$? | |
13534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13535 | (exit $ac_status); }; } && | |
13536 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13538 | (eval $ac_try) 2>&5 | |
13539 | ac_status=$? | |
13540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13541 | (exit $ac_status); }; }; then | |
13542 | : | |
13543 | else | |
13544 | echo "$as_me: failed program was:" >&5 | |
13545 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13546 | ||
13547 | continue | |
13548 | fi | |
ac1cb8d3 | 13549 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13550 | cat >conftest.$ac_ext <<_ACEOF |
13551 | /* confdefs.h. */ | |
13552 | _ACEOF | |
13553 | cat confdefs.h >>conftest.$ac_ext | |
13554 | cat >>conftest.$ac_ext <<_ACEOF | |
13555 | /* end confdefs.h. */ | |
13556 | $ac_declaration | |
13557 | int | |
13558 | main () | |
13559 | { | |
13560 | exit (42); | |
13561 | ; | |
13562 | return 0; | |
13563 | } | |
13564 | _ACEOF | |
13565 | rm -f conftest.$ac_objext | |
13566 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13567 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13568 | ac_status=$? |
ac1cb8d3 VS |
13569 | grep -v '^ *+' conftest.er1 >conftest.err |
13570 | rm -f conftest.er1 | |
13571 | cat conftest.err >&5 | |
a848cd7e SC |
13572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13573 | (exit $ac_status); } && | |
d25774ab JS |
13574 | { ac_try='test -z "$ac_cxx_werror_flag" |
13575 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13577 | (eval $ac_try) 2>&5 | |
13578 | ac_status=$? | |
13579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13580 | (exit $ac_status); }; } && | |
13581 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13583 | (eval $ac_try) 2>&5 | |
13584 | ac_status=$? | |
13585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13586 | (exit $ac_status); }; }; then | |
13587 | break | |
13588 | else | |
13589 | echo "$as_me: failed program was:" >&5 | |
13590 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13591 | ||
13592 | fi | |
ac1cb8d3 | 13593 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13594 | done |
13595 | rm -f conftest* | |
13596 | if test -n "$ac_declaration"; then | |
13597 | echo '#ifdef __cplusplus' >>confdefs.h | |
13598 | echo $ac_declaration >>confdefs.h | |
13599 | echo '#endif' >>confdefs.h | |
13600 | fi | |
13601 | ||
13602 | ac_ext=cc | |
13603 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13604 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13605 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13606 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13607 | ||
ab0ad5f1 VZ |
13608 | |
13609 | ||
13610 | ac_ext=cc | |
13611 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13612 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13613 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13614 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13615 | ||
13616 | echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5 | |
13617 | echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6 | |
13618 | if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then | |
13619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13620 | else | |
13621 | cat >conftest.$ac_ext <<_ACEOF | |
13622 | /* confdefs.h. */ | |
13623 | _ACEOF | |
13624 | cat confdefs.h >>conftest.$ac_ext | |
13625 | cat >>conftest.$ac_ext <<_ACEOF | |
13626 | /* end confdefs.h. */ | |
13627 | ||
13628 | int | |
13629 | main () | |
13630 | { | |
13631 | ||
13632 | #ifndef __INTEL_COMPILER | |
13633 | choke me | |
13634 | #endif | |
13635 | ||
13636 | ; | |
13637 | return 0; | |
13638 | } | |
13639 | _ACEOF | |
13640 | rm -f conftest.$ac_objext | |
13641 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13642 | (eval $ac_compile) 2>conftest.er1 | |
13643 | ac_status=$? | |
13644 | grep -v '^ *+' conftest.er1 >conftest.err | |
13645 | rm -f conftest.er1 | |
13646 | cat conftest.err >&5 | |
13647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13648 | (exit $ac_status); } && | |
d25774ab JS |
13649 | { ac_try='test -z "$ac_cxx_werror_flag" |
13650 | || test ! -s conftest.err' | |
ab0ad5f1 VZ |
13651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13652 | (eval $ac_try) 2>&5 | |
13653 | ac_status=$? | |
13654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13655 | (exit $ac_status); }; } && | |
13656 | { ac_try='test -s conftest.$ac_objext' | |
13657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13658 | (eval $ac_try) 2>&5 | |
13659 | ac_status=$? | |
13660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13661 | (exit $ac_status); }; }; then | |
13662 | bakefile_cv_cxx_compiler___INTEL_COMPILER=yes | |
13663 | else | |
13664 | echo "$as_me: failed program was:" >&5 | |
13665 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13666 | ||
13667 | bakefile_cv_cxx_compiler___INTEL_COMPILER=no | |
13668 | ||
13669 | fi | |
13670 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13671 | ||
13672 | ||
13673 | fi | |
13674 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5 | |
13675 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6 | |
13676 | ac_ext=cc | |
13677 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13678 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13679 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13680 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13681 | ||
13682 | if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then | |
13683 | :; INTELCXX=yes | |
13684 | else | |
13685 | :; | |
13686 | fi | |
13687 | ||
13688 | ||
3006edc0 VZ |
13689 | if test "x$GCXX" != "xyes"; then |
13690 | if test "xCXX" = "xC"; then | |
13691 | echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5 | |
480ccd21 | 13692 | echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6 |
0093c2fc | 13693 | if test "${bakefile_cv_cxx_exto+set}" = set; then |
480ccd21 DE |
13694 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13695 | else | |
13696 | cat >conftest.$ac_ext <<_ACEOF | |
13697 | /* confdefs.h. */ | |
13698 | _ACEOF | |
13699 | cat confdefs.h >>conftest.$ac_ext | |
13700 | cat >>conftest.$ac_ext <<_ACEOF | |
13701 | /* end confdefs.h. */ | |
13702 | ||
13703 | int | |
13704 | main () | |
13705 | { | |
13706 | ||
13707 | ; | |
13708 | return 0; | |
13709 | } | |
13710 | _ACEOF | |
13711 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
13712 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13713 | (eval $ac_compile) 2>&5 | |
13714 | ac_status=$? | |
13715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13716 | (exit $ac_status); }; then | |
13717 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
13718 | case $ac_file in | |
13719 | conftest.$ac_ext.o) | |
0093c2fc | 13720 | bakefile_cv_cxx_exto="-ext o" |
480ccd21 DE |
13721 | ;; |
13722 | *) | |
13723 | ;; | |
13724 | esac | |
13725 | done | |
13726 | else | |
13727 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
13728 | See \`config.log' for more details." >&5 | |
13729 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
13730 | See \`config.log' for more details." >&2;} | |
13731 | { (exit 1); exit 1; }; } | |
13732 | ||
13733 | fi | |
13734 | ||
13735 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
13736 | ||
13737 | fi | |
0093c2fc VZ |
13738 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5 |
13739 | echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6 | |
13740 | if test "x$bakefile_cv_cxx_exto" '!=' "x"; then | |
480ccd21 | 13741 | if test "cxx" = "c"; then |
0093c2fc | 13742 | CFLAGS="$bakefile_cv_cxx_exto $CFLAGS" |
480ccd21 DE |
13743 | fi |
13744 | if test "cxx" = "cxx"; then | |
0093c2fc | 13745 | CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS" |
480ccd21 DE |
13746 | fi |
13747 | fi | |
13748 | ||
0093c2fc | 13749 | if test "x$bakefile_cv_c_exto" '!=' "x"; then |
3006edc0 VZ |
13750 | unset ac_cv_prog_cc_g |
13751 | ac_test_CFLAGS=${CFLAGS+set} | |
13752 | ac_save_CFLAGS=$CFLAGS | |
8aeeb05c | 13753 | CFLAGS="-g" |
3006edc0 VZ |
13754 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
13755 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
13756 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
480ccd21 DE |
13757 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13758 | else | |
13759 | cat >conftest.$ac_ext <<_ACEOF | |
13760 | /* confdefs.h. */ | |
13761 | _ACEOF | |
13762 | cat confdefs.h >>conftest.$ac_ext | |
13763 | cat >>conftest.$ac_ext <<_ACEOF | |
13764 | /* end confdefs.h. */ | |
13765 | ||
13766 | int | |
13767 | main () | |
13768 | { | |
13769 | ||
13770 | ; | |
13771 | return 0; | |
13772 | } | |
13773 | _ACEOF | |
13774 | rm -f conftest.$ac_objext | |
13775 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13776 | (eval $ac_compile) 2>conftest.er1 | |
13777 | ac_status=$? | |
13778 | grep -v '^ *+' conftest.er1 >conftest.err | |
13779 | rm -f conftest.er1 | |
13780 | cat conftest.err >&5 | |
13781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13782 | (exit $ac_status); } && | |
d25774ab JS |
13783 | { ac_try='test -z "$ac_cxx_werror_flag" |
13784 | || test ! -s conftest.err' | |
480ccd21 DE |
13785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13786 | (eval $ac_try) 2>&5 | |
13787 | ac_status=$? | |
13788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13789 | (exit $ac_status); }; } && | |
13790 | { ac_try='test -s conftest.$ac_objext' | |
13791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13792 | (eval $ac_try) 2>&5 | |
13793 | ac_status=$? | |
13794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13795 | (exit $ac_status); }; }; then | |
3006edc0 | 13796 | ac_cv_prog_cc_g=yes |
480ccd21 DE |
13797 | else |
13798 | echo "$as_me: failed program was:" >&5 | |
13799 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13800 | ||
3006edc0 | 13801 | ac_cv_prog_cc_g=no |
480ccd21 DE |
13802 | fi |
13803 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13804 | fi | |
3006edc0 VZ |
13805 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
13806 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
13807 | if test "$ac_test_CFLAGS" = set; then | |
13808 | CFLAGS=$ac_save_CFLAGS | |
13809 | elif test $ac_cv_prog_cc_g = yes; then | |
13810 | if test "$GCC" = yes; then | |
13811 | CFLAGS="-g -O2" | |
480ccd21 | 13812 | else |
3006edc0 | 13813 | CFLAGS="-g" |
480ccd21 DE |
13814 | fi |
13815 | else | |
3006edc0 VZ |
13816 | if test "$GCC" = yes; then |
13817 | CFLAGS="-O2" | |
480ccd21 | 13818 | else |
3006edc0 | 13819 | CFLAGS= |
480ccd21 DE |
13820 | fi |
13821 | fi | |
3006edc0 | 13822 | fi |
ab0ad5f1 | 13823 | fi |
3006edc0 VZ |
13824 | |
13825 | case `uname -s` in | |
13826 | AIX*) | |
13827 | ac_ext=cc | |
13828 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13829 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13830 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13831 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13832 | ||
13833 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5 | |
13834 | echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6 | |
0093c2fc | 13835 | if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then |
3006edc0 VZ |
13836 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13837 | else | |
13838 | cat >conftest.$ac_ext <<_ACEOF | |
13839 | /* confdefs.h. */ | |
13840 | _ACEOF | |
13841 | cat confdefs.h >>conftest.$ac_ext | |
13842 | cat >>conftest.$ac_ext <<_ACEOF | |
13843 | /* end confdefs.h. */ | |
13844 | ||
13845 | int | |
13846 | main () | |
13847 | { | |
13848 | #ifndef __xlC__ | |
13849 | choke me | |
13850 | #endif | |
13851 | ||
13852 | ; | |
13853 | return 0; | |
13854 | } | |
13855 | _ACEOF | |
13856 | rm -f conftest.$ac_objext | |
13857 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13858 | (eval $ac_compile) 2>conftest.er1 | |
13859 | ac_status=$? | |
13860 | grep -v '^ *+' conftest.er1 >conftest.err | |
13861 | rm -f conftest.er1 | |
13862 | cat conftest.err >&5 | |
13863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13864 | (exit $ac_status); } && | |
d25774ab JS |
13865 | { ac_try='test -z "$ac_cxx_werror_flag" |
13866 | || test ! -s conftest.err' | |
3006edc0 VZ |
13867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13868 | (eval $ac_try) 2>&5 | |
13869 | ac_status=$? | |
13870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13871 | (exit $ac_status); }; } && | |
13872 | { ac_try='test -s conftest.$ac_objext' | |
13873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13874 | (eval $ac_try) 2>&5 | |
13875 | ac_status=$? | |
13876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13877 | (exit $ac_status); }; }; then | |
0093c2fc | 13878 | bakefile_compiler_xlc=yes |
3006edc0 VZ |
13879 | else |
13880 | echo "$as_me: failed program was:" >&5 | |
13881 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13882 | ||
0093c2fc | 13883 | bakefile_compiler_xlc=no |
3006edc0 VZ |
13884 | fi |
13885 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 13886 | bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc |
3006edc0 VZ |
13887 | |
13888 | fi | |
0093c2fc VZ |
13889 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5 |
13890 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6 | |
3006edc0 | 13891 | |
0093c2fc | 13892 | XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes` |
3006edc0 VZ |
13893 | ac_ext=cc |
13894 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13895 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13896 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13897 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13898 | ||
13899 | ||
13900 | ;; | |
13901 | ||
13902 | Darwin) | |
13903 | ac_ext=cc | |
95986553 DE |
13904 | ac_cpp='$CXXCPP $CPPFLAGS' |
13905 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13906 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13907 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13908 | ||
13909 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5 | |
13910 | echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6 | |
13911 | if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then | |
13912 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13913 | else | |
13914 | cat >conftest.$ac_ext <<_ACEOF | |
13915 | /* confdefs.h. */ | |
13916 | _ACEOF | |
13917 | cat confdefs.h >>conftest.$ac_ext | |
13918 | cat >>conftest.$ac_ext <<_ACEOF | |
13919 | /* end confdefs.h. */ | |
13920 | ||
13921 | int | |
13922 | main () | |
13923 | { | |
13924 | #ifndef __MWERKS__ | |
13925 | choke me | |
13926 | #endif | |
13927 | ||
13928 | ; | |
13929 | return 0; | |
13930 | } | |
13931 | _ACEOF | |
13932 | rm -f conftest.$ac_objext | |
13933 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13934 | (eval $ac_compile) 2>conftest.er1 | |
13935 | ac_status=$? | |
13936 | grep -v '^ *+' conftest.er1 >conftest.err | |
13937 | rm -f conftest.er1 | |
13938 | cat conftest.err >&5 | |
13939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13940 | (exit $ac_status); } && | |
d25774ab JS |
13941 | { ac_try='test -z "$ac_cxx_werror_flag" |
13942 | || test ! -s conftest.err' | |
95986553 DE |
13943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13944 | (eval $ac_try) 2>&5 | |
13945 | ac_status=$? | |
13946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13947 | (exit $ac_status); }; } && | |
13948 | { ac_try='test -s conftest.$ac_objext' | |
13949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13950 | (eval $ac_try) 2>&5 | |
13951 | ac_status=$? | |
13952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13953 | (exit $ac_status); }; }; then | |
13954 | bakefile_compiler_mwerks=yes | |
13955 | else | |
13956 | echo "$as_me: failed program was:" >&5 | |
13957 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13958 | ||
13959 | bakefile_compiler_mwerks=no | |
13960 | fi | |
13961 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13962 | bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks | |
13963 | ||
13964 | fi | |
13965 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5 | |
13966 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6 | |
13967 | ||
0e6fa1d9 | 13968 | MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes` |
95986553 DE |
13969 | ac_ext=cc |
13970 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13971 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13972 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13973 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13974 | ||
13975 | ||
3006edc0 | 13976 | ac_ext=cc |
9273ffba DE |
13977 | ac_cpp='$CXXCPP $CPPFLAGS' |
13978 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13979 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13980 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13981 | ||
13982 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5 | |
13983 | echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6 | |
0093c2fc | 13984 | if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then |
9273ffba DE |
13985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13986 | else | |
13987 | cat >conftest.$ac_ext <<_ACEOF | |
13988 | /* confdefs.h. */ | |
13989 | _ACEOF | |
13990 | cat confdefs.h >>conftest.$ac_ext | |
13991 | cat >>conftest.$ac_ext <<_ACEOF | |
13992 | /* end confdefs.h. */ | |
13993 | ||
13994 | int | |
13995 | main () | |
13996 | { | |
13997 | #ifndef __xlC__ | |
13998 | choke me | |
13999 | #endif | |
14000 | ||
14001 | ; | |
14002 | return 0; | |
14003 | } | |
14004 | _ACEOF | |
14005 | rm -f conftest.$ac_objext | |
14006 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14007 | (eval $ac_compile) 2>conftest.er1 | |
14008 | ac_status=$? | |
14009 | grep -v '^ *+' conftest.er1 >conftest.err | |
14010 | rm -f conftest.er1 | |
14011 | cat conftest.err >&5 | |
14012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14013 | (exit $ac_status); } && | |
d25774ab JS |
14014 | { ac_try='test -z "$ac_cxx_werror_flag" |
14015 | || test ! -s conftest.err' | |
9273ffba DE |
14016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14017 | (eval $ac_try) 2>&5 | |
14018 | ac_status=$? | |
14019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14020 | (exit $ac_status); }; } && | |
14021 | { ac_try='test -s conftest.$ac_objext' | |
14022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14023 | (eval $ac_try) 2>&5 | |
14024 | ac_status=$? | |
14025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14026 | (exit $ac_status); }; }; then | |
0093c2fc | 14027 | bakefile_compiler_xlc=yes |
9273ffba DE |
14028 | else |
14029 | echo "$as_me: failed program was:" >&5 | |
14030 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14031 | ||
0093c2fc | 14032 | bakefile_compiler_xlc=no |
9273ffba DE |
14033 | fi |
14034 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 14035 | bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc |
9273ffba DE |
14036 | |
14037 | fi | |
0093c2fc VZ |
14038 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5 |
14039 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6 | |
9273ffba | 14040 | |
0093c2fc | 14041 | XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes` |
9273ffba DE |
14042 | ac_ext=cc |
14043 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14044 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14045 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14046 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14047 | ||
14048 | ||
3006edc0 VZ |
14049 | ;; |
14050 | ||
14051 | IRIX*) | |
95986553 | 14052 | |
6dcfc289 | 14053 | |
0ad5d837 VZ |
14054 | ac_ext=cc |
14055 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14056 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14057 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14058 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14059 | ||
14060 | echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5 | |
14061 | echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6 | |
14062 | if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then | |
14063 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14064 | else | |
14065 | cat >conftest.$ac_ext <<_ACEOF | |
14066 | /* confdefs.h. */ | |
14067 | _ACEOF | |
14068 | cat confdefs.h >>conftest.$ac_ext | |
14069 | cat >>conftest.$ac_ext <<_ACEOF | |
14070 | /* end confdefs.h. */ | |
14071 | ||
14072 | int | |
14073 | main () | |
14074 | { | |
14075 | ||
14076 | #ifndef _SGI_COMPILER_VERSION | |
14077 | choke me | |
14078 | #endif | |
14079 | ||
14080 | ; | |
14081 | return 0; | |
14082 | } | |
14083 | _ACEOF | |
14084 | rm -f conftest.$ac_objext | |
14085 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14086 | (eval $ac_compile) 2>conftest.er1 | |
14087 | ac_status=$? | |
14088 | grep -v '^ *+' conftest.er1 >conftest.err | |
14089 | rm -f conftest.er1 | |
14090 | cat conftest.err >&5 | |
14091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14092 | (exit $ac_status); } && | |
d25774ab JS |
14093 | { ac_try='test -z "$ac_cxx_werror_flag" |
14094 | || test ! -s conftest.err' | |
0ad5d837 VZ |
14095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14096 | (eval $ac_try) 2>&5 | |
14097 | ac_status=$? | |
14098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14099 | (exit $ac_status); }; } && | |
14100 | { ac_try='test -s conftest.$ac_objext' | |
14101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14102 | (eval $ac_try) 2>&5 | |
14103 | ac_status=$? | |
14104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14105 | (exit $ac_status); }; }; then | |
14106 | bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes | |
14107 | else | |
14108 | echo "$as_me: failed program was:" >&5 | |
14109 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14110 | ||
14111 | bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no | |
14112 | ||
14113 | fi | |
14114 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14115 | ||
14116 | ||
14117 | fi | |
14118 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5 | |
14119 | echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6 | |
14120 | ac_ext=cc | |
14121 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14122 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14123 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14124 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14125 | ||
14126 | if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then | |
14127 | :; SGICXX=yes | |
14128 | else | |
14129 | :; | |
14130 | fi | |
14131 | ||
14132 | ||
3006edc0 VZ |
14133 | ;; |
14134 | ||
0093c2fc | 14135 | HP-UX*) |
3006edc0 VZ |
14136 | |
14137 | ||
14138 | ac_ext=cc | |
14139 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14140 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14141 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14142 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14143 | ||
0093c2fc VZ |
14144 | echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5 |
14145 | echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6 | |
14146 | if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then | |
3006edc0 VZ |
14147 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14148 | else | |
14149 | cat >conftest.$ac_ext <<_ACEOF | |
14150 | /* confdefs.h. */ | |
14151 | _ACEOF | |
14152 | cat confdefs.h >>conftest.$ac_ext | |
14153 | cat >>conftest.$ac_ext <<_ACEOF | |
14154 | /* end confdefs.h. */ | |
14155 | ||
14156 | int | |
14157 | main () | |
14158 | { | |
14159 | ||
0093c2fc | 14160 | #ifndef __HP_aCC |
3006edc0 VZ |
14161 | choke me |
14162 | #endif | |
14163 | ||
14164 | ; | |
14165 | return 0; | |
14166 | } | |
14167 | _ACEOF | |
14168 | rm -f conftest.$ac_objext | |
14169 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14170 | (eval $ac_compile) 2>conftest.er1 | |
14171 | ac_status=$? | |
14172 | grep -v '^ *+' conftest.er1 >conftest.err | |
14173 | rm -f conftest.er1 | |
14174 | cat conftest.err >&5 | |
14175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14176 | (exit $ac_status); } && | |
d25774ab JS |
14177 | { ac_try='test -z "$ac_cxx_werror_flag" |
14178 | || test ! -s conftest.err' | |
3006edc0 VZ |
14179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14180 | (eval $ac_try) 2>&5 | |
14181 | ac_status=$? | |
14182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14183 | (exit $ac_status); }; } && | |
14184 | { ac_try='test -s conftest.$ac_objext' | |
14185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14186 | (eval $ac_try) 2>&5 | |
14187 | ac_status=$? | |
14188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14189 | (exit $ac_status); }; }; then | |
0093c2fc | 14190 | bakefile_cv_cxx_compiler___HP_aCC=yes |
3006edc0 VZ |
14191 | else |
14192 | echo "$as_me: failed program was:" >&5 | |
14193 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14194 | ||
0093c2fc | 14195 | bakefile_cv_cxx_compiler___HP_aCC=no |
3006edc0 VZ |
14196 | |
14197 | fi | |
14198 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14199 | ||
14200 | ||
14201 | fi | |
0093c2fc VZ |
14202 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5 |
14203 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6 | |
3006edc0 VZ |
14204 | ac_ext=cc |
14205 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14206 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14207 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14208 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14209 | ||
0093c2fc VZ |
14210 | if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then |
14211 | :; HPCXX=yes | |
a1aa0349 VZ |
14212 | else |
14213 | :; | |
14214 | fi | |
14215 | ||
14216 | ||
14217 | ;; | |
14218 | ||
0093c2fc | 14219 | OSF1) |
a1aa0349 VZ |
14220 | |
14221 | ||
14222 | ac_ext=cc | |
14223 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14224 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14225 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14226 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14227 | ||
0093c2fc VZ |
14228 | echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5 |
14229 | echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6 | |
14230 | if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then | |
a1aa0349 VZ |
14231 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14232 | else | |
14233 | cat >conftest.$ac_ext <<_ACEOF | |
14234 | /* confdefs.h. */ | |
14235 | _ACEOF | |
14236 | cat confdefs.h >>conftest.$ac_ext | |
14237 | cat >>conftest.$ac_ext <<_ACEOF | |
14238 | /* end confdefs.h. */ | |
14239 | ||
14240 | int | |
14241 | main () | |
14242 | { | |
14243 | ||
0093c2fc | 14244 | #ifndef __DECCXX |
a1aa0349 VZ |
14245 | choke me |
14246 | #endif | |
14247 | ||
14248 | ; | |
14249 | return 0; | |
14250 | } | |
14251 | _ACEOF | |
14252 | rm -f conftest.$ac_objext | |
14253 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14254 | (eval $ac_compile) 2>conftest.er1 | |
14255 | ac_status=$? | |
14256 | grep -v '^ *+' conftest.er1 >conftest.err | |
14257 | rm -f conftest.er1 | |
14258 | cat conftest.err >&5 | |
14259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14260 | (exit $ac_status); } && | |
d25774ab JS |
14261 | { ac_try='test -z "$ac_cxx_werror_flag" |
14262 | || test ! -s conftest.err' | |
a1aa0349 VZ |
14263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14264 | (eval $ac_try) 2>&5 | |
14265 | ac_status=$? | |
14266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14267 | (exit $ac_status); }; } && | |
14268 | { ac_try='test -s conftest.$ac_objext' | |
14269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14270 | (eval $ac_try) 2>&5 | |
14271 | ac_status=$? | |
14272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14273 | (exit $ac_status); }; }; then | |
0093c2fc | 14274 | bakefile_cv_cxx_compiler___DECCXX=yes |
a1aa0349 VZ |
14275 | else |
14276 | echo "$as_me: failed program was:" >&5 | |
14277 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14278 | ||
0093c2fc | 14279 | bakefile_cv_cxx_compiler___DECCXX=no |
a1aa0349 VZ |
14280 | |
14281 | fi | |
14282 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14283 | ||
14284 | ||
14285 | fi | |
0093c2fc VZ |
14286 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5 |
14287 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6 | |
a1aa0349 VZ |
14288 | ac_ext=cc |
14289 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14290 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14291 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14292 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14293 | ||
0093c2fc VZ |
14294 | if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then |
14295 | :; COMPAQCXX=yes | |
14296 | else | |
14297 | :; | |
14298 | fi | |
14299 | ||
14300 | ||
14301 | ;; | |
14302 | ||
14303 | SunOS) | |
14304 | ||
14305 | ||
14306 | ac_ext=cc | |
14307 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14308 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14309 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14310 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14311 | ||
14312 | echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5 | |
14313 | echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6 | |
14314 | if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then | |
14315 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14316 | else | |
14317 | cat >conftest.$ac_ext <<_ACEOF | |
14318 | /* confdefs.h. */ | |
14319 | _ACEOF | |
14320 | cat confdefs.h >>conftest.$ac_ext | |
14321 | cat >>conftest.$ac_ext <<_ACEOF | |
14322 | /* end confdefs.h. */ | |
14323 | ||
14324 | int | |
14325 | main () | |
14326 | { | |
14327 | ||
14328 | #ifndef __SUNPRO_CC | |
14329 | choke me | |
14330 | #endif | |
14331 | ||
14332 | ; | |
14333 | return 0; | |
14334 | } | |
14335 | _ACEOF | |
14336 | rm -f conftest.$ac_objext | |
14337 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14338 | (eval $ac_compile) 2>conftest.er1 | |
14339 | ac_status=$? | |
14340 | grep -v '^ *+' conftest.er1 >conftest.err | |
14341 | rm -f conftest.er1 | |
14342 | cat conftest.err >&5 | |
14343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14344 | (exit $ac_status); } && | |
d25774ab JS |
14345 | { ac_try='test -z "$ac_cxx_werror_flag" |
14346 | || test ! -s conftest.err' | |
0093c2fc VZ |
14347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14348 | (eval $ac_try) 2>&5 | |
14349 | ac_status=$? | |
14350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14351 | (exit $ac_status); }; } && | |
14352 | { ac_try='test -s conftest.$ac_objext' | |
14353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14354 | (eval $ac_try) 2>&5 | |
14355 | ac_status=$? | |
14356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14357 | (exit $ac_status); }; }; then | |
14358 | bakefile_cv_cxx_compiler___SUNPRO_CC=yes | |
14359 | else | |
14360 | echo "$as_me: failed program was:" >&5 | |
14361 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14362 | ||
14363 | bakefile_cv_cxx_compiler___SUNPRO_CC=no | |
14364 | ||
14365 | fi | |
14366 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14367 | ||
14368 | ||
14369 | fi | |
14370 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5 | |
14371 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6 | |
14372 | ac_ext=cc | |
14373 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14374 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14375 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14376 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14377 | ||
14378 | if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then | |
14379 | :; SUNCXX=yes | |
3006edc0 VZ |
14380 | else |
14381 | :; | |
ab0ad5f1 | 14382 | fi |
a9e5b1f0 MW |
14383 | |
14384 | ||
3006edc0 VZ |
14385 | ;; |
14386 | esac | |
14387 | fi | |
14388 | ||
14389 | ||
14390 | ||
a848cd7e SC |
14391 | if test -n "$ac_tool_prefix"; then |
14392 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
14393 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
14394 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14395 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14396 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
14397 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14398 | else | |
14399 | if test -n "$RANLIB"; then | |
14400 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
14401 | else | |
14402 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14403 | for as_dir in $PATH | |
14404 | do | |
14405 | IFS=$as_save_IFS | |
14406 | test -z "$as_dir" && as_dir=. | |
14407 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14408 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14409 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
14410 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14411 | break 2 | |
14412 | fi | |
14413 | done | |
14414 | done | |
14415 | ||
14416 | fi | |
14417 | fi | |
14418 | RANLIB=$ac_cv_prog_RANLIB | |
14419 | if test -n "$RANLIB"; then | |
14420 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
14421 | echo "${ECHO_T}$RANLIB" >&6 | |
14422 | else | |
14423 | echo "$as_me:$LINENO: result: no" >&5 | |
14424 | echo "${ECHO_T}no" >&6 | |
14425 | fi | |
14426 | ||
14427 | fi | |
14428 | if test -z "$ac_cv_prog_RANLIB"; then | |
14429 | ac_ct_RANLIB=$RANLIB | |
14430 | # Extract the first word of "ranlib", so it can be a program name with args. | |
14431 | set dummy ranlib; ac_word=$2 | |
14432 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14433 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14434 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
14435 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14436 | else | |
14437 | if test -n "$ac_ct_RANLIB"; then | |
14438 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
14439 | else | |
14440 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14441 | for as_dir in $PATH | |
14442 | do | |
14443 | IFS=$as_save_IFS | |
14444 | test -z "$as_dir" && as_dir=. | |
14445 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14446 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14447 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
14448 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14449 | break 2 | |
14450 | fi | |
14451 | done | |
14452 | done | |
14453 | ||
14454 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
14455 | fi | |
14456 | fi | |
14457 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
14458 | if test -n "$ac_ct_RANLIB"; then | |
14459 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
14460 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
14461 | else | |
14462 | echo "$as_me:$LINENO: result: no" >&5 | |
14463 | echo "${ECHO_T}no" >&6 | |
14464 | fi | |
14465 | ||
14466 | RANLIB=$ac_ct_RANLIB | |
14467 | else | |
14468 | RANLIB="$ac_cv_prog_RANLIB" | |
14469 | fi | |
14470 | ||
14471 | ||
8c80d384 DE |
14472 | if test -n "$ac_tool_prefix"; then |
14473 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
14474 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
a848cd7e SC |
14475 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14476 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14477 | if test "${ac_cv_prog_AR+set}" = set; then | |
14478 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14479 | else | |
14480 | if test -n "$AR"; then | |
14481 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
14482 | else | |
14483 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14484 | for as_dir in $PATH | |
14485 | do | |
14486 | IFS=$as_save_IFS | |
14487 | test -z "$as_dir" && as_dir=. | |
14488 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14489 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8c80d384 | 14490 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
a848cd7e SC |
14491 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14492 | break 2 | |
14493 | fi | |
14494 | done | |
14495 | done | |
14496 | ||
14497 | fi | |
14498 | fi | |
14499 | AR=$ac_cv_prog_AR | |
14500 | if test -n "$AR"; then | |
14501 | echo "$as_me:$LINENO: result: $AR" >&5 | |
14502 | echo "${ECHO_T}$AR" >&6 | |
14503 | else | |
14504 | echo "$as_me:$LINENO: result: no" >&5 | |
14505 | echo "${ECHO_T}no" >&6 | |
14506 | fi | |
14507 | ||
8c80d384 DE |
14508 | fi |
14509 | if test -z "$ac_cv_prog_AR"; then | |
14510 | ac_ct_AR=$AR | |
14511 | # Extract the first word of "ar", so it can be a program name with args. | |
14512 | set dummy ar; ac_word=$2 | |
14513 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14514 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14515 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
14516 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14517 | else | |
14518 | if test -n "$ac_ct_AR"; then | |
14519 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
14520 | else | |
14521 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14522 | for as_dir in $PATH | |
14523 | do | |
14524 | IFS=$as_save_IFS | |
14525 | test -z "$as_dir" && as_dir=. | |
14526 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14527 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14528 | ac_cv_prog_ac_ct_AR="ar" | |
14529 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14530 | break 2 | |
14531 | fi | |
14532 | done | |
14533 | done | |
14534 | ||
14535 | fi | |
14536 | fi | |
14537 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
14538 | if test -n "$ac_ct_AR"; then | |
14539 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
14540 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
14541 | else | |
14542 | echo "$as_me:$LINENO: result: no" >&5 | |
14543 | echo "${ECHO_T}no" >&6 | |
14544 | fi | |
14545 | ||
14546 | AR=$ac_ct_AR | |
14547 | else | |
14548 | AR="$ac_cv_prog_AR" | |
14549 | fi | |
14550 | ||
a848cd7e | 14551 | if test "x$AR" = "x" ; then |
77ffb593 JS |
14552 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5 |
14553 | echo "$as_me: error: ar is needed to build wxWidgets" >&2;} | |
a848cd7e SC |
14554 | { (exit 1); exit 1; }; } |
14555 | fi | |
14556 | ||
14557 | # Find a good install program. We prefer a C program (faster), | |
14558 | # so one script is as good as another. But avoid the broken or | |
14559 | # incompatible versions: | |
14560 | # SysV /etc/install, /usr/sbin/install | |
14561 | # SunOS /usr/etc/install | |
14562 | # IRIX /sbin/install | |
14563 | # AIX /bin/install | |
14564 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
14565 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
14566 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
14567 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 14568 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
14569 | # ./install, which can be erroneously created by make from ./install.sh. |
14570 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
14571 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
14572 | if test -z "$INSTALL"; then | |
14573 | if test "${ac_cv_path_install+set}" = set; then | |
14574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14575 | else | |
14576 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14577 | for as_dir in $PATH | |
14578 | do | |
14579 | IFS=$as_save_IFS | |
14580 | test -z "$as_dir" && as_dir=. | |
14581 | # Account for people who put trailing slashes in PATH elements. | |
14582 | case $as_dir/ in | |
14583 | ./ | .// | /cC/* | \ | |
14584 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 14585 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
14586 | /usr/ucb/* ) ;; |
14587 | *) | |
14588 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
14589 | # Don't use installbsd from OSF since it installs stuff as root | |
14590 | # by default. | |
14591 | for ac_prog in ginstall scoinst install; do | |
14592 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
14593 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
14594 | if test $ac_prog = install && | |
14595 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
14596 | # AIX install. It has an incompatible calling convention. | |
14597 | : | |
14598 | elif test $ac_prog = install && | |
14599 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
14600 | # program-specific install script used by HP pwplus--don't use. | |
14601 | : | |
14602 | else | |
14603 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
14604 | break 3 | |
14605 | fi | |
14606 | fi | |
a848cd7e SC |
14607 | done |
14608 | done | |
14609 | ;; | |
14610 | esac | |
14611 | done | |
14612 | ||
14613 | ||
14614 | fi | |
14615 | if test "${ac_cv_path_install+set}" = set; then | |
14616 | INSTALL=$ac_cv_path_install | |
14617 | else | |
14618 | # As a last resort, use the slow shell script. We don't cache a | |
14619 | # path for INSTALL within a source directory, because that will | |
14620 | # break other packages using the cache if that directory is | |
14621 | # removed, or if the path is relative. | |
14622 | INSTALL=$ac_install_sh | |
14623 | fi | |
14624 | fi | |
14625 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
14626 | echo "${ECHO_T}$INSTALL" >&6 | |
14627 | ||
14628 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
14629 | # It thinks the first close brace ends the variable substitution. | |
14630 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
14631 | ||
14632 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
14633 | ||
14634 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
14635 | ||
14636 | ||
14637 | case ${INSTALL} in | |
14638 | /* ) # Absolute | |
14639 | ;; | |
14640 | ?:* ) # Drive letter, considered as absolute. | |
14641 | ;; | |
14642 | *) | |
14643 | INSTALL=`pwd`/${INSTALL} ;; | |
14644 | esac | |
14645 | ||
a848cd7e SC |
14646 | |
14647 | case "${host}" in | |
14648 | ||
cfda0ea8 | 14649 | *-*-darwin* ) |
a848cd7e SC |
14650 | INSTALL_PROGRAM="cp -fp" |
14651 | INSTALL_DATA="cp -fp" | |
14652 | ;; | |
14653 | *) | |
14654 | ;; | |
14655 | esac | |
14656 | ||
8c80d384 DE |
14657 | if test -n "$ac_tool_prefix"; then |
14658 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
14659 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
a848cd7e SC |
14660 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14661 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14662 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
14663 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14664 | else | |
14665 | if test -n "$STRIP"; then | |
14666 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
14667 | else | |
14668 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14669 | for as_dir in $PATH | |
14670 | do | |
14671 | IFS=$as_save_IFS | |
14672 | test -z "$as_dir" && as_dir=. | |
14673 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14674 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8c80d384 | 14675 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
a848cd7e SC |
14676 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14677 | break 2 | |
14678 | fi | |
14679 | done | |
14680 | done | |
14681 | ||
a848cd7e SC |
14682 | fi |
14683 | fi | |
14684 | STRIP=$ac_cv_prog_STRIP | |
14685 | if test -n "$STRIP"; then | |
14686 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
14687 | echo "${ECHO_T}$STRIP" >&6 | |
14688 | else | |
14689 | echo "$as_me:$LINENO: result: no" >&5 | |
14690 | echo "${ECHO_T}no" >&6 | |
14691 | fi | |
14692 | ||
8c80d384 DE |
14693 | fi |
14694 | if test -z "$ac_cv_prog_STRIP"; then | |
14695 | ac_ct_STRIP=$STRIP | |
14696 | # Extract the first word of "strip", so it can be a program name with args. | |
14697 | set dummy strip; ac_word=$2 | |
14698 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14699 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14700 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
14701 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14702 | else | |
14703 | if test -n "$ac_ct_STRIP"; then | |
14704 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
14705 | else | |
14706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14707 | for as_dir in $PATH | |
14708 | do | |
14709 | IFS=$as_save_IFS | |
14710 | test -z "$as_dir" && as_dir=. | |
14711 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14712 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14713 | ac_cv_prog_ac_ct_STRIP="strip" | |
14714 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14715 | break 2 | |
14716 | fi | |
14717 | done | |
14718 | done | |
14719 | ||
14720 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true" | |
14721 | fi | |
14722 | fi | |
14723 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
14724 | if test -n "$ac_ct_STRIP"; then | |
14725 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
14726 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
14727 | else | |
14728 | echo "$as_me:$LINENO: result: no" >&5 | |
14729 | echo "${ECHO_T}no" >&6 | |
14730 | fi | |
14731 | ||
14732 | STRIP=$ac_ct_STRIP | |
14733 | else | |
14734 | STRIP="$ac_cv_prog_STRIP" | |
14735 | fi | |
14736 | ||
14737 | ||
14738 | if test "$wxUSE_WINE" = "yes"; then | |
14739 | if test -n "$ac_tool_prefix"; then | |
14740 | # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args. | |
14741 | set dummy ${ac_tool_prefix}wrc; ac_word=$2 | |
14742 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14743 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 14744 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
8c80d384 DE |
14745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14746 | else | |
8ced02f6 DE |
14747 | if test -n "$WINDRES"; then |
14748 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
8c80d384 DE |
14749 | else |
14750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14751 | for as_dir in $PATH | |
14752 | do | |
14753 | IFS=$as_save_IFS | |
14754 | test -z "$as_dir" && as_dir=. | |
14755 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14756 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 14757 | ac_cv_prog_WINDRES="${ac_tool_prefix}wrc" |
8c80d384 DE |
14758 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14759 | break 2 | |
14760 | fi | |
14761 | done | |
14762 | done | |
14763 | ||
14764 | fi | |
14765 | fi | |
8ced02f6 DE |
14766 | WINDRES=$ac_cv_prog_WINDRES |
14767 | if test -n "$WINDRES"; then | |
14768 | echo "$as_me:$LINENO: result: $WINDRES" >&5 | |
14769 | echo "${ECHO_T}$WINDRES" >&6 | |
8c80d384 DE |
14770 | else |
14771 | echo "$as_me:$LINENO: result: no" >&5 | |
14772 | echo "${ECHO_T}no" >&6 | |
14773 | fi | |
14774 | ||
14775 | fi | |
8ced02f6 DE |
14776 | if test -z "$ac_cv_prog_WINDRES"; then |
14777 | ac_ct_WINDRES=$WINDRES | |
8c80d384 DE |
14778 | # Extract the first word of "wrc", so it can be a program name with args. |
14779 | set dummy wrc; ac_word=$2 | |
14780 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14781 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 14782 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
8c80d384 DE |
14783 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14784 | else | |
8ced02f6 DE |
14785 | if test -n "$ac_ct_WINDRES"; then |
14786 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
8c80d384 DE |
14787 | else |
14788 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14789 | for as_dir in $PATH | |
14790 | do | |
14791 | IFS=$as_save_IFS | |
14792 | test -z "$as_dir" && as_dir=. | |
14793 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14794 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 14795 | ac_cv_prog_ac_ct_WINDRES="wrc" |
8c80d384 DE |
14796 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14797 | break 2 | |
14798 | fi | |
14799 | done | |
14800 | done | |
14801 | ||
14802 | fi | |
14803 | fi | |
8ced02f6 DE |
14804 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
14805 | if test -n "$ac_ct_WINDRES"; then | |
14806 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 | |
14807 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
8c80d384 DE |
14808 | else |
14809 | echo "$as_me:$LINENO: result: no" >&5 | |
14810 | echo "${ECHO_T}no" >&6 | |
14811 | fi | |
14812 | ||
8ced02f6 | 14813 | WINDRES=$ac_ct_WINDRES |
8c80d384 | 14814 | else |
8ced02f6 | 14815 | WINDRES="$ac_cv_prog_WINDRES" |
8c80d384 DE |
14816 | fi |
14817 | ||
004ee6da | 14818 | RESCOMP="$WINDRES" |
8c80d384 DE |
14819 | else |
14820 | case "${host}" in | |
14821 | *-*-cygwin* | *-*-mingw32* ) | |
004ee6da RL |
14822 | if test -n "$ac_tool_prefix"; then |
14823 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
14824 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
14825 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14826 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14827 | if test "${ac_cv_prog_WINDRES+set}" = set; then | |
14828 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14829 | else | |
14830 | if test -n "$WINDRES"; then | |
14831 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
14832 | else | |
14833 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14834 | for as_dir in $PATH | |
14835 | do | |
14836 | IFS=$as_save_IFS | |
14837 | test -z "$as_dir" && as_dir=. | |
14838 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14839 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14840 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" | |
14841 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14842 | break 2 | |
14843 | fi | |
14844 | done | |
14845 | done | |
14846 | ||
14847 | fi | |
14848 | fi | |
14849 | WINDRES=$ac_cv_prog_WINDRES | |
14850 | if test -n "$WINDRES"; then | |
14851 | echo "$as_me:$LINENO: result: $WINDRES" >&5 | |
14852 | echo "${ECHO_T}$WINDRES" >&6 | |
14853 | else | |
14854 | echo "$as_me:$LINENO: result: no" >&5 | |
14855 | echo "${ECHO_T}no" >&6 | |
14856 | fi | |
14857 | ||
14858 | fi | |
14859 | if test -z "$ac_cv_prog_WINDRES"; then | |
14860 | ac_ct_WINDRES=$WINDRES | |
14861 | # Extract the first word of "windres", so it can be a program name with args. | |
14862 | set dummy windres; ac_word=$2 | |
14863 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14864 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14865 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then | |
14866 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14867 | else | |
14868 | if test -n "$ac_ct_WINDRES"; then | |
14869 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
14870 | else | |
14871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14872 | for as_dir in $PATH | |
14873 | do | |
14874 | IFS=$as_save_IFS | |
14875 | test -z "$as_dir" && as_dir=. | |
14876 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14877 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14878 | ac_cv_prog_ac_ct_WINDRES="windres" | |
14879 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14880 | break 2 | |
14881 | fi | |
14882 | done | |
14883 | done | |
14884 | ||
14885 | fi | |
14886 | fi | |
14887 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES | |
14888 | if test -n "$ac_ct_WINDRES"; then | |
14889 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 | |
14890 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
14891 | else | |
14892 | echo "$as_me:$LINENO: result: no" >&5 | |
14893 | echo "${ECHO_T}no" >&6 | |
14894 | fi | |
14895 | ||
14896 | WINDRES=$ac_ct_WINDRES | |
14897 | else | |
14898 | WINDRES="$ac_cv_prog_WINDRES" | |
14899 | fi | |
14900 | ||
14901 | RESCOMP="$WINDRES" | |
14902 | if test -n "$ac_tool_prefix"; then | |
8c80d384 DE |
14903 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
14904 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
14905 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14906 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14907 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then | |
14908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14909 | else | |
14910 | if test -n "$DLLTOOL"; then | |
14911 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
14912 | else | |
14913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14914 | for as_dir in $PATH | |
14915 | do | |
14916 | IFS=$as_save_IFS | |
14917 | test -z "$as_dir" && as_dir=. | |
14918 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14919 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14920 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
14921 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14922 | break 2 | |
14923 | fi | |
14924 | done | |
14925 | done | |
14926 | ||
14927 | fi | |
14928 | fi | |
14929 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
14930 | if test -n "$DLLTOOL"; then | |
14931 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 | |
14932 | echo "${ECHO_T}$DLLTOOL" >&6 | |
14933 | else | |
14934 | echo "$as_me:$LINENO: result: no" >&5 | |
14935 | echo "${ECHO_T}no" >&6 | |
14936 | fi | |
14937 | ||
14938 | fi | |
14939 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
14940 | ac_ct_DLLTOOL=$DLLTOOL | |
14941 | # Extract the first word of "dlltool", so it can be a program name with args. | |
14942 | set dummy dlltool; ac_word=$2 | |
14943 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14944 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14945 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then | |
14946 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14947 | else | |
14948 | if test -n "$ac_ct_DLLTOOL"; then | |
14949 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
14950 | else | |
14951 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14952 | for as_dir in $PATH | |
14953 | do | |
14954 | IFS=$as_save_IFS | |
14955 | test -z "$as_dir" && as_dir=. | |
14956 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14957 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14958 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
14959 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14960 | break 2 | |
14961 | fi | |
14962 | done | |
14963 | done | |
14964 | ||
14965 | fi | |
14966 | fi | |
14967 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
14968 | if test -n "$ac_ct_DLLTOOL"; then | |
14969 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 | |
14970 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 | |
14971 | else | |
14972 | echo "$as_me:$LINENO: result: no" >&5 | |
14973 | echo "${ECHO_T}no" >&6 | |
14974 | fi | |
14975 | ||
14976 | DLLTOOL=$ac_ct_DLLTOOL | |
14977 | else | |
14978 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
14979 | fi | |
14980 | ||
14981 | ;; | |
14982 | esac | |
14983 | fi | |
a848cd7e SC |
14984 | |
14985 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
14986 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
14987 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
14988 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14989 | else | |
14990 | ||
14991 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
14992 | egrep -s GNU > /dev/null); then | |
14993 | wx_cv_prog_makeisgnu="yes" | |
14994 | else | |
14995 | wx_cv_prog_makeisgnu="no" | |
14996 | fi | |
14997 | ||
14998 | fi | |
14999 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 | |
15000 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
15001 | ||
15002 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
15003 | IF_GNU_MAKE="" | |
15004 | else | |
15005 | IF_GNU_MAKE="#" | |
15006 | fi | |
15007 | ||
15008 | ||
15009 | ||
15010 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
15011 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 | |
15012 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
15013 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
15014 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15015 | else | |
15016 | ||
15017 | cat - << EOF > confMake | |
15018 | check : file | |
15019 | cp \$? \$@ | |
15020 | cp \$? final_file | |
15021 | EOF | |
15022 | ||
15023 | if test ! -d sub ; then | |
15024 | mkdir sub | |
15025 | fi | |
15026 | echo dummy > sub/file | |
15027 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
15028 | RESULT=$? | |
15029 | rm -f sub/file check final_file confMake | |
15030 | rmdir sub | |
15031 | if test "$RESULT" = 0; then | |
15032 | wx_cv_prog_makevpath="yes" | |
15033 | else | |
15034 | wx_cv_prog_makevpath="no" | |
15035 | fi | |
15036 | ||
15037 | fi | |
15038 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 | |
15039 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
15040 | ||
15041 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
15042 | { { echo "$as_me:$LINENO: error: | |
15043 | You need a make-utility that is able to use the variable | |
15044 | VPATH correctly. | |
15045 | If your version of make does not support VPATH correctly, | |
15046 | please install GNU-make (possibly as gmake), and start | |
15047 | configure with the following command: | |
15048 | export MAKE=gmake; ./configure for sh-type shells | |
15049 | setenv MAKE gmake; ./configure for csh-type shells | |
15050 | Also please do remember to use gmake in this case every time | |
15051 | you are trying to compile. | |
15052 | " >&5 | |
15053 | echo "$as_me: error: | |
15054 | You need a make-utility that is able to use the variable | |
15055 | VPATH correctly. | |
15056 | If your version of make does not support VPATH correctly, | |
15057 | please install GNU-make (possibly as gmake), and start | |
15058 | configure with the following command: | |
15059 | export MAKE=gmake; ./configure for sh-type shells | |
15060 | setenv MAKE gmake; ./configure for csh-type shells | |
15061 | Also please do remember to use gmake in this case every time | |
15062 | you are trying to compile. | |
15063 | " >&2;} | |
15064 | { (exit 1); exit 1; }; } | |
15065 | fi fi | |
15066 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
15067 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
15068 | LN_S=$as_ln_s | |
15069 | if test "$LN_S" = "ln -s"; then | |
15070 | echo "$as_me:$LINENO: result: yes" >&5 | |
15071 | echo "${ECHO_T}yes" >&6 | |
15072 | else | |
15073 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
15074 | echo "${ECHO_T}no, using $LN_S" >&6 | |
15075 | fi | |
15076 | ||
15077 | ||
bcaab0f9 | 15078 | |
a848cd7e | 15079 | |
2113bc77 | 15080 | if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then |
c92ad099 | 15081 | CXXFLAGS="-qunique $CXXFLAGS" |
9273ffba DE |
15082 | fi |
15083 | ||
4d7ec9f1 DE |
15084 | case "${host}" in |
15085 | powerpc-*-darwin* ) | |
15086 | echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5 | |
15087 | echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6 | |
15088 | cat >conftest.$ac_ext <<_ACEOF | |
15089 | /* confdefs.h. */ | |
15090 | _ACEOF | |
15091 | cat confdefs.h >>conftest.$ac_ext | |
15092 | cat >>conftest.$ac_ext <<_ACEOF | |
15093 | /* end confdefs.h. */ | |
15094 | ||
15095 | int | |
15096 | main () | |
15097 | { | |
15098 | #ifndef __POWERPC__ | |
15099 | choke me for lack of PowerPC | |
15100 | #endif | |
15101 | ||
15102 | ; | |
15103 | return 0; | |
15104 | } | |
15105 | _ACEOF | |
15106 | rm -f conftest.$ac_objext | |
15107 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15108 | (eval $ac_compile) 2>conftest.er1 | |
15109 | ac_status=$? | |
15110 | grep -v '^ *+' conftest.er1 >conftest.err | |
15111 | rm -f conftest.er1 | |
15112 | cat conftest.err >&5 | |
15113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15114 | (exit $ac_status); } && | |
d25774ab JS |
15115 | { ac_try='test -z "$ac_cxx_werror_flag" |
15116 | || test ! -s conftest.err' | |
4d7ec9f1 DE |
15117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15118 | (eval $ac_try) 2>&5 | |
15119 | ac_status=$? | |
15120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15121 | (exit $ac_status); }; } && | |
15122 | { ac_try='test -s conftest.$ac_objext' | |
15123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15124 | (eval $ac_try) 2>&5 | |
15125 | ac_status=$? | |
15126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15127 | (exit $ac_status); }; }; then | |
15128 | echo "$as_me:$LINENO: result: yes" >&5 | |
15129 | echo "${ECHO_T}yes" >&6 | |
15130 | else | |
15131 | echo "$as_me: failed program was:" >&5 | |
15132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15133 | ||
15134 | echo "$as_me:$LINENO: result: no" >&5 | |
15135 | echo "${ECHO_T}no" >&6 | |
15136 | cat >>confdefs.h <<\_ACEOF | |
15137 | #define __POWERPC__ 1 | |
15138 | _ACEOF | |
15139 | ||
15140 | ||
15141 | fi | |
15142 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
cfda0ea8 DE |
15143 | ;; |
15144 | esac | |
15145 | ||
15146 | case "${host}" in | |
15147 | *-*-darwin* ) | |
4d7ec9f1 DE |
15148 | echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5 |
15149 | echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6 | |
15150 | cat >conftest.$ac_ext <<_ACEOF | |
15151 | /* confdefs.h. */ | |
15152 | _ACEOF | |
15153 | cat confdefs.h >>conftest.$ac_ext | |
15154 | cat >>conftest.$ac_ext <<_ACEOF | |
15155 | /* end confdefs.h. */ | |
15156 | #include <CoreFoundation/CFBase.h> | |
15157 | ||
15158 | int | |
15159 | main () | |
15160 | { | |
15161 | ||
15162 | ; | |
15163 | return 0; | |
15164 | } | |
15165 | _ACEOF | |
15166 | rm -f conftest.$ac_objext | |
15167 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15168 | (eval $ac_compile) 2>conftest.er1 | |
15169 | ac_status=$? | |
15170 | grep -v '^ *+' conftest.er1 >conftest.err | |
15171 | rm -f conftest.er1 | |
15172 | cat conftest.err >&5 | |
15173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15174 | (exit $ac_status); } && | |
d25774ab JS |
15175 | { ac_try='test -z "$ac_cxx_werror_flag" |
15176 | || test ! -s conftest.err' | |
4d7ec9f1 DE |
15177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15178 | (eval $ac_try) 2>&5 | |
15179 | ac_status=$? | |
15180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15181 | (exit $ac_status); }; } && | |
15182 | { ac_try='test -s conftest.$ac_objext' | |
15183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15184 | (eval $ac_try) 2>&5 | |
15185 | ac_status=$? | |
15186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15187 | (exit $ac_status); }; }; then | |
15188 | echo "$as_me:$LINENO: result: yes" >&5 | |
15189 | echo "${ECHO_T}yes" >&6 | |
15190 | else | |
15191 | echo "$as_me: failed program was:" >&5 | |
15192 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15193 | ||
15194 | echo "$as_me:$LINENO: result: no" >&5 | |
15195 | echo "${ECHO_T}no" >&6 | |
15196 | echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5 | |
15197 | echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6 | |
15198 | cat >conftest.$ac_ext <<_ACEOF | |
15199 | /* confdefs.h. */ | |
15200 | _ACEOF | |
15201 | cat confdefs.h >>conftest.$ac_ext | |
15202 | cat >>conftest.$ac_ext <<_ACEOF | |
15203 | /* end confdefs.h. */ | |
15204 | #define __CF_USE_FRAMEWORK_INCLUDES__ | |
15205 | #include <CoreFoundation/CFBase.h> | |
15206 | ||
15207 | int | |
15208 | main () | |
15209 | { | |
15210 | ||
15211 | ; | |
15212 | return 0; | |
15213 | } | |
15214 | _ACEOF | |
15215 | rm -f conftest.$ac_objext | |
15216 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15217 | (eval $ac_compile) 2>conftest.er1 | |
15218 | ac_status=$? | |
15219 | grep -v '^ *+' conftest.er1 >conftest.err | |
15220 | rm -f conftest.er1 | |
15221 | cat conftest.err >&5 | |
15222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15223 | (exit $ac_status); } && | |
d25774ab JS |
15224 | { ac_try='test -z "$ac_cxx_werror_flag" |
15225 | || test ! -s conftest.err' | |
4d7ec9f1 DE |
15226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15227 | (eval $ac_try) 2>&5 | |
15228 | ac_status=$? | |
15229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15230 | (exit $ac_status); }; } && | |
15231 | { ac_try='test -s conftest.$ac_objext' | |
15232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15233 | (eval $ac_try) 2>&5 | |
15234 | ac_status=$? | |
15235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15236 | (exit $ac_status); }; }; then | |
15237 | echo "$as_me:$LINENO: result: yes" >&5 | |
15238 | echo "${ECHO_T}yes" >&6 | |
c92ad099 | 15239 | CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS" |
4d7ec9f1 DE |
15240 | else |
15241 | echo "$as_me: failed program was:" >&5 | |
15242 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15243 | ||
15244 | { { echo "$as_me:$LINENO: error: no. CoreFoundation not available. | |
15245 | See \`config.log' for more details." >&5 | |
15246 | echo "$as_me: error: no. CoreFoundation not available. | |
15247 | See \`config.log' for more details." >&2;} | |
15248 | { (exit 1); exit 1; }; } | |
15249 | ||
15250 | fi | |
15251 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15252 | ||
15253 | ||
15254 | fi | |
15255 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15256 | ;; | |
15257 | esac | |
15258 | ||
a848cd7e SC |
15259 | case "${host}" in |
15260 | *-pc-os2_emx | *-pc-os2-emx ) | |
6ba87b06 SN |
15261 | ac_ext=c |
15262 | ac_cpp='$CPP $CPPFLAGS' | |
15263 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15264 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15265 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15266 | ||
15267 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
a848cd7e SC |
15268 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 |
15269 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
15270 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
15271 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15272 | else | |
15273 | ac_check_lib_save_LIBS=$LIBS | |
15274 | LIBS="-lcExt $LIBS" | |
15275 | cat >conftest.$ac_ext <<_ACEOF | |
15276 | /* confdefs.h. */ | |
15277 | _ACEOF | |
15278 | cat confdefs.h >>conftest.$ac_ext | |
15279 | cat >>conftest.$ac_ext <<_ACEOF | |
15280 | /* end confdefs.h. */ | |
15281 | ||
15282 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15283 | #ifdef __cplusplus | |
15284 | extern "C" | |
15285 | #endif | |
15286 | /* We use char because int might match the return type of a gcc2 | |
15287 | builtin and then its argument prototype would still apply. */ | |
15288 | char drand48 (); | |
15289 | int | |
15290 | main () | |
15291 | { | |
15292 | drand48 (); | |
15293 | ; | |
15294 | return 0; | |
15295 | } | |
15296 | _ACEOF | |
15297 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15298 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 15299 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 15300 | ac_status=$? |
ac1cb8d3 VS |
15301 | grep -v '^ *+' conftest.er1 >conftest.err |
15302 | rm -f conftest.er1 | |
15303 | cat conftest.err >&5 | |
a848cd7e SC |
15304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15305 | (exit $ac_status); } && | |
d25774ab JS |
15306 | { ac_try='test -z "$ac_c_werror_flag" |
15307 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15309 | (eval $ac_try) 2>&5 | |
15310 | ac_status=$? | |
15311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15312 | (exit $ac_status); }; } && | |
15313 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
15314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15315 | (eval $ac_try) 2>&5 | |
15316 | ac_status=$? | |
15317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15318 | (exit $ac_status); }; }; then | |
15319 | ac_cv_lib_cExt_drand48=yes | |
15320 | else | |
15321 | echo "$as_me: failed program was:" >&5 | |
15322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15323 | ||
15324 | ac_cv_lib_cExt_drand48=no | |
15325 | fi | |
ac1cb8d3 VS |
15326 | rm -f conftest.err conftest.$ac_objext \ |
15327 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
15328 | LIBS=$ac_check_lib_save_LIBS |
15329 | fi | |
15330 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
15331 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
15332 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
15333 | LIBS="$LIBS -lcExt" | |
15334 | fi | |
15335 | ||
15336 | else | |
15337 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
15338 | fi | |
69120ee4 VZ |
15339 | echo "$as_me:$LINENO: checking for gcc/libc version" >&5 |
15340 | echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6 | |
a848cd7e SC |
15341 | if test "${wx_cv_gccversion+set}" = set; then |
15342 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15343 | else | |
15344 | ||
391a765e VS |
15345 | if test "$cross_compiling" = yes; then |
15346 | wx_cv_gccversion="EMX2" | |
15347 | ||
15348 | else | |
15349 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
15350 | /* confdefs.h. */ |
15351 | _ACEOF | |
15352 | cat confdefs.h >>conftest.$ac_ext | |
15353 | cat >>conftest.$ac_ext <<_ACEOF | |
15354 | /* end confdefs.h. */ | |
15355 | ||
391a765e | 15356 | #include <stdio.h> |
a848cd7e | 15357 | |
391a765e VS |
15358 | int main() |
15359 | { | |
15360 | FILE *f=fopen("conftestval", "w"); | |
15361 | if (!f) exit(1); | |
15362 | fprintf(f, | |
a848cd7e | 15363 | #if (__GNUC__ < 3) |
391a765e VS |
15364 | "EMX2" |
15365 | #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
15366 | "EMX3" | |
15367 | #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2) | |
15368 | "Innotek5" | |
15369 | #else | |
15370 | "Innotek6" | |
a848cd7e | 15371 | #endif |
391a765e VS |
15372 | ); |
15373 | exit(0); | |
15374 | } | |
a848cd7e | 15375 | |
a848cd7e | 15376 | _ACEOF |
391a765e VS |
15377 | rm -f conftest$ac_exeext |
15378 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15379 | (eval $ac_link) 2>&5 | |
ac1cb8d3 VS |
15380 | ac_status=$? |
15381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
391a765e | 15382 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a848cd7e SC |
15383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15384 | (eval $ac_try) 2>&5 | |
15385 | ac_status=$? | |
15386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15387 | (exit $ac_status); }; }; then | |
391a765e | 15388 | wx_cv_gccversion=`cat conftestval` |
a848cd7e | 15389 | else |
391a765e VS |
15390 | echo "$as_me: program exited with status $ac_status" >&5 |
15391 | echo "$as_me: failed program was:" >&5 | |
a848cd7e SC |
15392 | sed 's/^/| /' conftest.$ac_ext >&5 |
15393 | ||
391a765e VS |
15394 | ( exit $ac_status ) |
15395 | wx_cv_gccversion="EMX2" | |
a848cd7e | 15396 | fi |
391a765e | 15397 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15398 | fi |
a848cd7e SC |
15399 | |
15400 | fi | |
15401 | echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5 | |
15402 | echo "${ECHO_T}$wx_cv_gccversion" >&6 | |
6ba87b06 SN |
15403 | ac_ext=cc |
15404 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15405 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15406 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15407 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
15408 | ||
391a765e | 15409 | if test "$wx_cv_gccversion" = "EMX2"; then |
a848cd7e SC |
15410 | LIBS="$LIBS -lstdcpp" |
15411 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
15412 | else | |
391a765e | 15413 | if test "$wx_cv_gccversion" = "EMX3"; then |
ddd14b14 | 15414 | LIBS="$LIBS -lstdcxx -lgcc" |
a848cd7e SC |
15415 | LDFLAGS="$LDFLAGS -Zsysv-signals" |
15416 | else | |
15417 | LIBS="$LIBS -lstdc++" | |
15418 | fi | |
15419 | fi | |
94acd38e DE |
15420 | if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then |
15421 | { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5 | |
15422 | echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;} | |
15423 | wxUSE_OMF=yes | |
2da0c077 | 15424 | enable_omf=yes |
a848cd7e SC |
15425 | fi |
15426 | ;; | |
15427 | *) | |
15428 | ||
95986553 | 15429 | echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 |
a848cd7e SC |
15430 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6 |
15431 | if test "${ac_cv_string_strcasecmp+set}" = set; then | |
15432 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15433 | else | |
15434 | ||
15435 | cat >conftest.$ac_ext <<_ACEOF | |
15436 | /* confdefs.h. */ | |
15437 | _ACEOF | |
15438 | cat confdefs.h >>conftest.$ac_ext | |
15439 | cat >>conftest.$ac_ext <<_ACEOF | |
15440 | /* end confdefs.h. */ | |
15441 | ||
15442 | #include <string.h> | |
15443 | ||
15444 | int | |
15445 | main () | |
15446 | { | |
15447 | ||
15448 | strcasecmp("foo", "bar"); | |
15449 | ||
15450 | ; | |
15451 | return 0; | |
15452 | } | |
15453 | _ACEOF | |
15454 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15455 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 15456 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 15457 | ac_status=$? |
ac1cb8d3 VS |
15458 | grep -v '^ *+' conftest.er1 >conftest.err |
15459 | rm -f conftest.er1 | |
15460 | cat conftest.err >&5 | |
a848cd7e SC |
15461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15462 | (exit $ac_status); } && | |
d25774ab JS |
15463 | { ac_try='test -z "$ac_cxx_werror_flag" |
15464 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15466 | (eval $ac_try) 2>&5 | |
15467 | ac_status=$? | |
15468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15469 | (exit $ac_status); }; } && | |
15470 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
15471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15472 | (eval $ac_try) 2>&5 | |
15473 | ac_status=$? | |
15474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15475 | (exit $ac_status); }; }; then | |
15476 | ac_cv_string_strcasecmp=yes | |
15477 | else | |
15478 | echo "$as_me: failed program was:" >&5 | |
15479 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15480 | ||
15481 | ac_cv_string_strcasecmp=no | |
15482 | ||
15483 | fi | |
ac1cb8d3 VS |
15484 | rm -f conftest.err conftest.$ac_objext \ |
15485 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
15486 | |
15487 | fi | |
15488 | echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 | |
15489 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6 | |
15490 | ||
15491 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
15492 | cat >>confdefs.h <<\_ACEOF | |
15493 | #define HAVE_STRCASECMP_IN_STRING_H 1 | |
15494 | _ACEOF | |
15495 | ||
15496 | else | |
15497 | echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 | |
15498 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6 | |
15499 | if test "${ac_cv_strings_strcasecmp+set}" = set; then | |
15500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15501 | else | |
15502 | ||
15503 | cat >conftest.$ac_ext <<_ACEOF | |
15504 | /* confdefs.h. */ | |
15505 | _ACEOF | |
15506 | cat confdefs.h >>conftest.$ac_ext | |
15507 | cat >>conftest.$ac_ext <<_ACEOF | |
15508 | /* end confdefs.h. */ | |
15509 | ||
15510 | #include <strings.h> | |
15511 | ||
15512 | int | |
15513 | main () | |
15514 | { | |
15515 | ||
15516 | strcasecmp("foo", "bar"); | |
15517 | ||
15518 | ; | |
15519 | return 0; | |
15520 | } | |
15521 | _ACEOF | |
15522 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15523 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 15524 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 15525 | ac_status=$? |
ac1cb8d3 VS |
15526 | grep -v '^ *+' conftest.er1 >conftest.err |
15527 | rm -f conftest.er1 | |
15528 | cat conftest.err >&5 | |
a848cd7e SC |
15529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15530 | (exit $ac_status); } && | |
d25774ab JS |
15531 | { ac_try='test -z "$ac_cxx_werror_flag" |
15532 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15534 | (eval $ac_try) 2>&5 | |
15535 | ac_status=$? | |
15536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15537 | (exit $ac_status); }; } && | |
15538 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
15539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15540 | (eval $ac_try) 2>&5 | |
15541 | ac_status=$? | |
15542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15543 | (exit $ac_status); }; }; then | |
15544 | ac_cv_strings_strcasecmp=yes | |
15545 | else | |
15546 | echo "$as_me: failed program was:" >&5 | |
15547 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15548 | ||
15549 | ac_cv_strings_strcasecmp=no | |
15550 | ||
15551 | fi | |
ac1cb8d3 VS |
15552 | rm -f conftest.err conftest.$ac_objext \ |
15553 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
15554 | |
15555 | fi | |
15556 | echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 | |
15557 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6 | |
15558 | ||
0c3c69fc | 15559 | if test x"$ac_cv_strings_strcasecmp" = "xyes"; then |
a848cd7e SC |
15560 | cat >>confdefs.h <<\_ACEOF |
15561 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 | |
15562 | _ACEOF | |
15563 | ||
15564 | else | |
15565 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 | |
15566 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} | |
15567 | { (exit 1); exit 1; }; } | |
15568 | fi | |
15569 | fi | |
15570 | ||
a848cd7e SC |
15571 | ;; |
15572 | esac | |
15573 | ||
15574 | ||
5d7b7554 VZ |
15575 | ac_ext=cc |
15576 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15577 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15578 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15579 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
15580 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
15581 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
15582 | if test -z "$CXXCPP"; then | |
15583 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
15584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15585 | else | |
15586 | # Double quotes because CXXCPP needs to be expanded | |
15587 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
15588 | do | |
15589 | ac_preproc_ok=false | |
15590 | for ac_cxx_preproc_warn_flag in '' yes | |
15591 | do | |
15592 | # Use a header file that comes with gcc, so configuring glibc | |
15593 | # with a fresh cross-compiler works. | |
15594 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15595 | # <limits.h> exists even on freestanding compilers. | |
15596 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
15597 | # not just through cpp. "Syntax error" is here to catch this case. | |
15598 | cat >conftest.$ac_ext <<_ACEOF | |
15599 | /* confdefs.h. */ | |
15600 | _ACEOF | |
15601 | cat confdefs.h >>conftest.$ac_ext | |
15602 | cat >>conftest.$ac_ext <<_ACEOF | |
15603 | /* end confdefs.h. */ | |
15604 | #ifdef __STDC__ | |
15605 | # include <limits.h> | |
15606 | #else | |
15607 | # include <assert.h> | |
15608 | #endif | |
15609 | Syntax error | |
15610 | _ACEOF | |
15611 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15612 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15613 | ac_status=$? | |
15614 | grep -v '^ *+' conftest.er1 >conftest.err | |
15615 | rm -f conftest.er1 | |
15616 | cat conftest.err >&5 | |
15617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15618 | (exit $ac_status); } >/dev/null; then | |
15619 | if test -s conftest.err; then | |
15620 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
15621 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
15622 | else | |
15623 | ac_cpp_err= | |
15624 | fi | |
15625 | else | |
15626 | ac_cpp_err=yes | |
15627 | fi | |
15628 | if test -z "$ac_cpp_err"; then | |
15629 | : | |
15630 | else | |
15631 | echo "$as_me: failed program was:" >&5 | |
15632 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15633 | ||
15634 | # Broken: fails on valid input. | |
15635 | continue | |
15636 | fi | |
15637 | rm -f conftest.err conftest.$ac_ext | |
15638 | ||
15639 | # OK, works on sane cases. Now check whether non-existent headers | |
15640 | # can be detected and how. | |
15641 | cat >conftest.$ac_ext <<_ACEOF | |
15642 | /* confdefs.h. */ | |
15643 | _ACEOF | |
15644 | cat confdefs.h >>conftest.$ac_ext | |
15645 | cat >>conftest.$ac_ext <<_ACEOF | |
15646 | /* end confdefs.h. */ | |
15647 | #include <ac_nonexistent.h> | |
15648 | _ACEOF | |
15649 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15650 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15651 | ac_status=$? | |
15652 | grep -v '^ *+' conftest.er1 >conftest.err | |
15653 | rm -f conftest.er1 | |
15654 | cat conftest.err >&5 | |
15655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15656 | (exit $ac_status); } >/dev/null; then | |
15657 | if test -s conftest.err; then | |
15658 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
15659 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
15660 | else | |
15661 | ac_cpp_err= | |
15662 | fi | |
15663 | else | |
15664 | ac_cpp_err=yes | |
15665 | fi | |
15666 | if test -z "$ac_cpp_err"; then | |
15667 | # Broken: success on invalid input. | |
15668 | continue | |
15669 | else | |
15670 | echo "$as_me: failed program was:" >&5 | |
15671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15672 | ||
15673 | # Passes both tests. | |
15674 | ac_preproc_ok=: | |
15675 | break | |
15676 | fi | |
15677 | rm -f conftest.err conftest.$ac_ext | |
15678 | ||
15679 | done | |
15680 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
15681 | rm -f conftest.err conftest.$ac_ext | |
15682 | if $ac_preproc_ok; then | |
15683 | break | |
15684 | fi | |
15685 | ||
15686 | done | |
15687 | ac_cv_prog_CXXCPP=$CXXCPP | |
15688 | ||
15689 | fi | |
15690 | CXXCPP=$ac_cv_prog_CXXCPP | |
15691 | else | |
15692 | ac_cv_prog_CXXCPP=$CXXCPP | |
15693 | fi | |
15694 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
15695 | echo "${ECHO_T}$CXXCPP" >&6 | |
15696 | ac_preproc_ok=false | |
15697 | for ac_cxx_preproc_warn_flag in '' yes | |
15698 | do | |
15699 | # Use a header file that comes with gcc, so configuring glibc | |
15700 | # with a fresh cross-compiler works. | |
15701 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15702 | # <limits.h> exists even on freestanding compilers. | |
15703 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
15704 | # not just through cpp. "Syntax error" is here to catch this case. | |
15705 | cat >conftest.$ac_ext <<_ACEOF | |
15706 | /* confdefs.h. */ | |
15707 | _ACEOF | |
15708 | cat confdefs.h >>conftest.$ac_ext | |
15709 | cat >>conftest.$ac_ext <<_ACEOF | |
15710 | /* end confdefs.h. */ | |
15711 | #ifdef __STDC__ | |
15712 | # include <limits.h> | |
15713 | #else | |
15714 | # include <assert.h> | |
15715 | #endif | |
15716 | Syntax error | |
15717 | _ACEOF | |
15718 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15719 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15720 | ac_status=$? | |
15721 | grep -v '^ *+' conftest.er1 >conftest.err | |
15722 | rm -f conftest.er1 | |
15723 | cat conftest.err >&5 | |
15724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15725 | (exit $ac_status); } >/dev/null; then | |
15726 | if test -s conftest.err; then | |
15727 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
15728 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
15729 | else | |
15730 | ac_cpp_err= | |
15731 | fi | |
15732 | else | |
15733 | ac_cpp_err=yes | |
15734 | fi | |
15735 | if test -z "$ac_cpp_err"; then | |
15736 | : | |
15737 | else | |
15738 | echo "$as_me: failed program was:" >&5 | |
15739 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15740 | ||
15741 | # Broken: fails on valid input. | |
15742 | continue | |
15743 | fi | |
15744 | rm -f conftest.err conftest.$ac_ext | |
15745 | ||
15746 | # OK, works on sane cases. Now check whether non-existent headers | |
15747 | # can be detected and how. | |
15748 | cat >conftest.$ac_ext <<_ACEOF | |
15749 | /* confdefs.h. */ | |
15750 | _ACEOF | |
15751 | cat confdefs.h >>conftest.$ac_ext | |
15752 | cat >>conftest.$ac_ext <<_ACEOF | |
15753 | /* end confdefs.h. */ | |
15754 | #include <ac_nonexistent.h> | |
15755 | _ACEOF | |
15756 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15757 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15758 | ac_status=$? | |
15759 | grep -v '^ *+' conftest.er1 >conftest.err | |
15760 | rm -f conftest.er1 | |
15761 | cat conftest.err >&5 | |
15762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15763 | (exit $ac_status); } >/dev/null; then | |
15764 | if test -s conftest.err; then | |
15765 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
15766 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
15767 | else | |
15768 | ac_cpp_err= | |
15769 | fi | |
15770 | else | |
15771 | ac_cpp_err=yes | |
15772 | fi | |
15773 | if test -z "$ac_cpp_err"; then | |
15774 | # Broken: success on invalid input. | |
15775 | continue | |
15776 | else | |
15777 | echo "$as_me: failed program was:" >&5 | |
15778 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15779 | ||
15780 | # Passes both tests. | |
15781 | ac_preproc_ok=: | |
15782 | break | |
15783 | fi | |
15784 | rm -f conftest.err conftest.$ac_ext | |
15785 | ||
15786 | done | |
15787 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
15788 | rm -f conftest.err conftest.$ac_ext | |
15789 | if $ac_preproc_ok; then | |
15790 | : | |
15791 | else | |
15792 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
15793 | See \`config.log' for more details." >&5 | |
15794 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
15795 | See \`config.log' for more details." >&2;} | |
15796 | { (exit 1); exit 1; }; } | |
15797 | fi | |
15798 | ||
15799 | ac_ext=cc | |
15800 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15801 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15802 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15803 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
15804 | ||
15805 | ||
a848cd7e SC |
15806 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
15807 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
15808 | if test "${ac_cv_header_stdc+set}" = set; then | |
15809 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15810 | else | |
15811 | cat >conftest.$ac_ext <<_ACEOF | |
15812 | /* confdefs.h. */ | |
15813 | _ACEOF | |
15814 | cat confdefs.h >>conftest.$ac_ext | |
15815 | cat >>conftest.$ac_ext <<_ACEOF | |
15816 | /* end confdefs.h. */ | |
15817 | #include <stdlib.h> | |
15818 | #include <stdarg.h> | |
15819 | #include <string.h> | |
15820 | #include <float.h> | |
15821 | ||
15822 | int | |
15823 | main () | |
15824 | { | |
15825 | ||
15826 | ; | |
15827 | return 0; | |
15828 | } | |
15829 | _ACEOF | |
15830 | rm -f conftest.$ac_objext | |
15831 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15832 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15833 | ac_status=$? |
ac1cb8d3 VS |
15834 | grep -v '^ *+' conftest.er1 >conftest.err |
15835 | rm -f conftest.er1 | |
15836 | cat conftest.err >&5 | |
a848cd7e SC |
15837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15838 | (exit $ac_status); } && | |
d25774ab JS |
15839 | { ac_try='test -z "$ac_cxx_werror_flag" |
15840 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15842 | (eval $ac_try) 2>&5 | |
15843 | ac_status=$? | |
15844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15845 | (exit $ac_status); }; } && | |
15846 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15848 | (eval $ac_try) 2>&5 | |
15849 | ac_status=$? | |
15850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15851 | (exit $ac_status); }; }; then | |
15852 | ac_cv_header_stdc=yes | |
15853 | else | |
15854 | echo "$as_me: failed program was:" >&5 | |
15855 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15856 | ||
15857 | ac_cv_header_stdc=no | |
15858 | fi | |
ac1cb8d3 | 15859 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15860 | |
15861 | if test $ac_cv_header_stdc = yes; then | |
15862 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
15863 | cat >conftest.$ac_ext <<_ACEOF | |
15864 | /* confdefs.h. */ | |
15865 | _ACEOF | |
15866 | cat confdefs.h >>conftest.$ac_ext | |
15867 | cat >>conftest.$ac_ext <<_ACEOF | |
15868 | /* end confdefs.h. */ | |
15869 | #include <string.h> | |
15870 | ||
15871 | _ACEOF | |
15872 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15873 | $EGREP "memchr" >/dev/null 2>&1; then | |
15874 | : | |
15875 | else | |
15876 | ac_cv_header_stdc=no | |
15877 | fi | |
15878 | rm -f conftest* | |
15879 | ||
15880 | fi | |
15881 | ||
15882 | if test $ac_cv_header_stdc = yes; then | |
15883 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
15884 | cat >conftest.$ac_ext <<_ACEOF | |
15885 | /* confdefs.h. */ | |
15886 | _ACEOF | |
15887 | cat confdefs.h >>conftest.$ac_ext | |
15888 | cat >>conftest.$ac_ext <<_ACEOF | |
15889 | /* end confdefs.h. */ | |
15890 | #include <stdlib.h> | |
15891 | ||
15892 | _ACEOF | |
15893 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15894 | $EGREP "free" >/dev/null 2>&1; then | |
15895 | : | |
15896 | else | |
15897 | ac_cv_header_stdc=no | |
15898 | fi | |
15899 | rm -f conftest* | |
15900 | ||
15901 | fi | |
15902 | ||
15903 | if test $ac_cv_header_stdc = yes; then | |
15904 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
15905 | if test "$cross_compiling" = yes; then | |
15906 | : | |
15907 | else | |
15908 | cat >conftest.$ac_ext <<_ACEOF | |
15909 | /* confdefs.h. */ | |
15910 | _ACEOF | |
15911 | cat confdefs.h >>conftest.$ac_ext | |
15912 | cat >>conftest.$ac_ext <<_ACEOF | |
15913 | /* end confdefs.h. */ | |
15914 | #include <ctype.h> | |
15915 | #if ((' ' & 0x0FF) == 0x020) | |
15916 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
15917 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
15918 | #else | |
15919 | # define ISLOWER(c) \ | |
ac1cb8d3 VS |
15920 | (('a' <= (c) && (c) <= 'i') \ |
15921 | || ('j' <= (c) && (c) <= 'r') \ | |
15922 | || ('s' <= (c) && (c) <= 'z')) | |
a848cd7e SC |
15923 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
15924 | #endif | |
15925 | ||
15926 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
15927 | int | |
15928 | main () | |
15929 | { | |
15930 | int i; | |
15931 | for (i = 0; i < 256; i++) | |
15932 | if (XOR (islower (i), ISLOWER (i)) | |
ac1cb8d3 | 15933 | || toupper (i) != TOUPPER (i)) |
a848cd7e SC |
15934 | exit(2); |
15935 | exit (0); | |
15936 | } | |
15937 | _ACEOF | |
15938 | rm -f conftest$ac_exeext | |
15939 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15940 | (eval $ac_link) 2>&5 | |
15941 | ac_status=$? | |
15942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15943 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15945 | (eval $ac_try) 2>&5 | |
15946 | ac_status=$? | |
15947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15948 | (exit $ac_status); }; }; then | |
15949 | : | |
15950 | else | |
15951 | echo "$as_me: program exited with status $ac_status" >&5 | |
15952 | echo "$as_me: failed program was:" >&5 | |
15953 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15954 | ||
15955 | ( exit $ac_status ) | |
15956 | ac_cv_header_stdc=no | |
15957 | fi | |
ac1cb8d3 | 15958 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15959 | fi |
15960 | fi | |
15961 | fi | |
15962 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
15963 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
15964 | if test $ac_cv_header_stdc = yes; then | |
15965 | ||
15966 | cat >>confdefs.h <<\_ACEOF | |
15967 | #define STDC_HEADERS 1 | |
15968 | _ACEOF | |
15969 | ||
15970 | fi | |
15971 | ||
15972 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
15973 | ||
15974 | ||
15975 | ||
15976 | ||
15977 | ||
15978 | ||
15979 | ||
15980 | ||
15981 | ||
15982 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
ac1cb8d3 | 15983 | inttypes.h stdint.h unistd.h |
a848cd7e SC |
15984 | do |
15985 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15986 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15987 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15988 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15989 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15990 | else | |
15991 | cat >conftest.$ac_ext <<_ACEOF | |
15992 | /* confdefs.h. */ | |
15993 | _ACEOF | |
15994 | cat confdefs.h >>conftest.$ac_ext | |
15995 | cat >>conftest.$ac_ext <<_ACEOF | |
15996 | /* end confdefs.h. */ | |
15997 | $ac_includes_default | |
15998 | ||
15999 | #include <$ac_header> | |
16000 | _ACEOF | |
16001 | rm -f conftest.$ac_objext | |
16002 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16003 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16004 | ac_status=$? |
ac1cb8d3 VS |
16005 | grep -v '^ *+' conftest.er1 >conftest.err |
16006 | rm -f conftest.er1 | |
16007 | cat conftest.err >&5 | |
a848cd7e SC |
16008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16009 | (exit $ac_status); } && | |
d25774ab JS |
16010 | { ac_try='test -z "$ac_cxx_werror_flag" |
16011 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16013 | (eval $ac_try) 2>&5 | |
16014 | ac_status=$? | |
16015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16016 | (exit $ac_status); }; } && | |
16017 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16019 | (eval $ac_try) 2>&5 | |
16020 | ac_status=$? | |
16021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16022 | (exit $ac_status); }; }; then | |
16023 | eval "$as_ac_Header=yes" | |
16024 | else | |
16025 | echo "$as_me: failed program was:" >&5 | |
16026 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16027 | ||
16028 | eval "$as_ac_Header=no" | |
16029 | fi | |
ac1cb8d3 | 16030 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16031 | fi |
16032 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16033 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16034 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16035 | cat >>confdefs.h <<_ACEOF | |
16036 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16037 | _ACEOF | |
16038 | ||
16039 | fi | |
16040 | ||
16041 | done | |
16042 | ||
16043 | ||
16044 | ||
16045 | for ac_header in stdlib.h | |
16046 | do | |
16047 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16048 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16049 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16050 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16051 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16052 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16053 | fi | |
16054 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16055 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16056 | else | |
16057 | # Is the header compilable? | |
16058 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16059 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16060 | cat >conftest.$ac_ext <<_ACEOF | |
16061 | /* confdefs.h. */ | |
16062 | _ACEOF | |
16063 | cat confdefs.h >>conftest.$ac_ext | |
16064 | cat >>conftest.$ac_ext <<_ACEOF | |
16065 | /* end confdefs.h. */ | |
16066 | $ac_includes_default | |
16067 | #include <$ac_header> | |
16068 | _ACEOF | |
16069 | rm -f conftest.$ac_objext | |
16070 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16071 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16072 | ac_status=$? |
ac1cb8d3 VS |
16073 | grep -v '^ *+' conftest.er1 >conftest.err |
16074 | rm -f conftest.er1 | |
16075 | cat conftest.err >&5 | |
a848cd7e SC |
16076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16077 | (exit $ac_status); } && | |
d25774ab JS |
16078 | { ac_try='test -z "$ac_cxx_werror_flag" |
16079 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16081 | (eval $ac_try) 2>&5 | |
16082 | ac_status=$? | |
16083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16084 | (exit $ac_status); }; } && | |
16085 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16087 | (eval $ac_try) 2>&5 | |
16088 | ac_status=$? | |
16089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16090 | (exit $ac_status); }; }; then | |
16091 | ac_header_compiler=yes | |
16092 | else | |
16093 | echo "$as_me: failed program was:" >&5 | |
16094 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16095 | ||
16096 | ac_header_compiler=no | |
16097 | fi | |
ac1cb8d3 | 16098 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16099 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16100 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16101 | ||
16102 | # Is the header present? | |
16103 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16104 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16105 | cat >conftest.$ac_ext <<_ACEOF | |
16106 | /* confdefs.h. */ | |
16107 | _ACEOF | |
16108 | cat confdefs.h >>conftest.$ac_ext | |
16109 | cat >>conftest.$ac_ext <<_ACEOF | |
16110 | /* end confdefs.h. */ | |
16111 | #include <$ac_header> | |
16112 | _ACEOF | |
16113 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16114 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16115 | ac_status=$? | |
16116 | grep -v '^ *+' conftest.er1 >conftest.err | |
16117 | rm -f conftest.er1 | |
16118 | cat conftest.err >&5 | |
16119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16120 | (exit $ac_status); } >/dev/null; then | |
16121 | if test -s conftest.err; then | |
5d7b7554 VZ |
16122 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
16123 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
16124 | else |
16125 | ac_cpp_err= | |
16126 | fi | |
16127 | else | |
16128 | ac_cpp_err=yes | |
16129 | fi | |
16130 | if test -z "$ac_cpp_err"; then | |
16131 | ac_header_preproc=yes | |
16132 | else | |
16133 | echo "$as_me: failed program was:" >&5 | |
16134 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16135 | ||
16136 | ac_header_preproc=no | |
16137 | fi | |
16138 | rm -f conftest.err conftest.$ac_ext | |
16139 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16140 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16141 | ||
16142 | # So? What about this header? | |
5d7b7554 | 16143 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 16144 | yes:no: ) |
a848cd7e SC |
16145 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16146 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16147 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16148 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16149 | ac_header_preproc=yes | |
a848cd7e | 16150 | ;; |
ac1cb8d3 | 16151 | no:yes:* ) |
a848cd7e SC |
16152 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16153 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16154 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16155 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16156 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16157 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16158 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16159 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16160 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16161 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16162 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16163 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16164 | ( |
16165 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16166 | ## ----------------------------------------- ## |
16167 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16168 | ## ----------------------------------------- ## | |
a848cd7e SC |
16169 | _ASBOX |
16170 | ) | | |
16171 | sed "s/^/$as_me: WARNING: /" >&2 | |
16172 | ;; | |
16173 | esac | |
16174 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16175 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16176 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16178 | else | |
ac1cb8d3 | 16179 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16180 | fi |
16181 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16182 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16183 | ||
16184 | fi | |
16185 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16186 | cat >>confdefs.h <<_ACEOF | |
16187 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16188 | _ACEOF | |
16189 | ||
16190 | fi | |
16191 | ||
16192 | done | |
16193 | ||
16194 | ||
16195 | for ac_header in malloc.h | |
16196 | do | |
16197 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16198 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16199 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16200 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16201 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16202 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16203 | fi | |
16204 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16205 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16206 | else | |
16207 | # Is the header compilable? | |
16208 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16209 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16210 | cat >conftest.$ac_ext <<_ACEOF | |
16211 | /* confdefs.h. */ | |
16212 | _ACEOF | |
16213 | cat confdefs.h >>conftest.$ac_ext | |
16214 | cat >>conftest.$ac_ext <<_ACEOF | |
16215 | /* end confdefs.h. */ | |
16216 | $ac_includes_default | |
16217 | #include <$ac_header> | |
16218 | _ACEOF | |
16219 | rm -f conftest.$ac_objext | |
16220 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16221 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16222 | ac_status=$? |
ac1cb8d3 VS |
16223 | grep -v '^ *+' conftest.er1 >conftest.err |
16224 | rm -f conftest.er1 | |
16225 | cat conftest.err >&5 | |
a848cd7e SC |
16226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16227 | (exit $ac_status); } && | |
d25774ab JS |
16228 | { ac_try='test -z "$ac_cxx_werror_flag" |
16229 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16231 | (eval $ac_try) 2>&5 | |
16232 | ac_status=$? | |
16233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16234 | (exit $ac_status); }; } && | |
16235 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16237 | (eval $ac_try) 2>&5 | |
16238 | ac_status=$? | |
16239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16240 | (exit $ac_status); }; }; then | |
16241 | ac_header_compiler=yes | |
16242 | else | |
16243 | echo "$as_me: failed program was:" >&5 | |
16244 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16245 | ||
16246 | ac_header_compiler=no | |
16247 | fi | |
ac1cb8d3 | 16248 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16249 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16250 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16251 | ||
16252 | # Is the header present? | |
16253 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16254 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16255 | cat >conftest.$ac_ext <<_ACEOF | |
16256 | /* confdefs.h. */ | |
16257 | _ACEOF | |
16258 | cat confdefs.h >>conftest.$ac_ext | |
16259 | cat >>conftest.$ac_ext <<_ACEOF | |
16260 | /* end confdefs.h. */ | |
16261 | #include <$ac_header> | |
16262 | _ACEOF | |
16263 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16264 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16265 | ac_status=$? | |
16266 | grep -v '^ *+' conftest.er1 >conftest.err | |
16267 | rm -f conftest.er1 | |
16268 | cat conftest.err >&5 | |
16269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16270 | (exit $ac_status); } >/dev/null; then | |
16271 | if test -s conftest.err; then | |
5d7b7554 VZ |
16272 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
16273 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
16274 | else |
16275 | ac_cpp_err= | |
16276 | fi | |
16277 | else | |
16278 | ac_cpp_err=yes | |
16279 | fi | |
16280 | if test -z "$ac_cpp_err"; then | |
16281 | ac_header_preproc=yes | |
16282 | else | |
16283 | echo "$as_me: failed program was:" >&5 | |
16284 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16285 | ||
16286 | ac_header_preproc=no | |
16287 | fi | |
16288 | rm -f conftest.err conftest.$ac_ext | |
16289 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16290 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16291 | ||
16292 | # So? What about this header? | |
5d7b7554 | 16293 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 16294 | yes:no: ) |
a848cd7e SC |
16295 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16296 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16297 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16298 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16299 | ac_header_preproc=yes | |
a848cd7e | 16300 | ;; |
ac1cb8d3 | 16301 | no:yes:* ) |
a848cd7e SC |
16302 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16303 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16304 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16305 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16306 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16307 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16308 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16309 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16310 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16311 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16312 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16313 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16314 | ( |
16315 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16316 | ## ----------------------------------------- ## |
16317 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16318 | ## ----------------------------------------- ## | |
a848cd7e SC |
16319 | _ASBOX |
16320 | ) | | |
16321 | sed "s/^/$as_me: WARNING: /" >&2 | |
16322 | ;; | |
16323 | esac | |
16324 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16325 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16326 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16327 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16328 | else | |
ac1cb8d3 | 16329 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16330 | fi |
16331 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16332 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16333 | ||
16334 | fi | |
16335 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16336 | cat >>confdefs.h <<_ACEOF | |
16337 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16338 | _ACEOF | |
16339 | ||
16340 | fi | |
16341 | ||
16342 | done | |
16343 | ||
16344 | ||
16345 | for ac_header in unistd.h | |
16346 | do | |
16347 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16348 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16349 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16350 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16351 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16352 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16353 | fi | |
16354 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16355 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16356 | else | |
16357 | # Is the header compilable? | |
16358 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16359 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16360 | cat >conftest.$ac_ext <<_ACEOF | |
16361 | /* confdefs.h. */ | |
16362 | _ACEOF | |
16363 | cat confdefs.h >>conftest.$ac_ext | |
16364 | cat >>conftest.$ac_ext <<_ACEOF | |
16365 | /* end confdefs.h. */ | |
16366 | $ac_includes_default | |
16367 | #include <$ac_header> | |
16368 | _ACEOF | |
16369 | rm -f conftest.$ac_objext | |
16370 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16371 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16372 | ac_status=$? |
ac1cb8d3 VS |
16373 | grep -v '^ *+' conftest.er1 >conftest.err |
16374 | rm -f conftest.er1 | |
16375 | cat conftest.err >&5 | |
a848cd7e SC |
16376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16377 | (exit $ac_status); } && | |
d25774ab JS |
16378 | { ac_try='test -z "$ac_cxx_werror_flag" |
16379 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16381 | (eval $ac_try) 2>&5 | |
16382 | ac_status=$? | |
16383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16384 | (exit $ac_status); }; } && | |
16385 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16387 | (eval $ac_try) 2>&5 | |
16388 | ac_status=$? | |
16389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16390 | (exit $ac_status); }; }; then | |
16391 | ac_header_compiler=yes | |
16392 | else | |
16393 | echo "$as_me: failed program was:" >&5 | |
16394 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16395 | ||
16396 | ac_header_compiler=no | |
16397 | fi | |
ac1cb8d3 | 16398 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16399 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16400 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16401 | ||
16402 | # Is the header present? | |
16403 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16404 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16405 | cat >conftest.$ac_ext <<_ACEOF | |
16406 | /* confdefs.h. */ | |
16407 | _ACEOF | |
16408 | cat confdefs.h >>conftest.$ac_ext | |
16409 | cat >>conftest.$ac_ext <<_ACEOF | |
16410 | /* end confdefs.h. */ | |
16411 | #include <$ac_header> | |
16412 | _ACEOF | |
16413 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16414 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16415 | ac_status=$? | |
16416 | grep -v '^ *+' conftest.er1 >conftest.err | |
16417 | rm -f conftest.er1 | |
16418 | cat conftest.err >&5 | |
16419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16420 | (exit $ac_status); } >/dev/null; then | |
16421 | if test -s conftest.err; then | |
5d7b7554 VZ |
16422 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
16423 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
16424 | else |
16425 | ac_cpp_err= | |
16426 | fi | |
16427 | else | |
16428 | ac_cpp_err=yes | |
16429 | fi | |
16430 | if test -z "$ac_cpp_err"; then | |
16431 | ac_header_preproc=yes | |
16432 | else | |
16433 | echo "$as_me: failed program was:" >&5 | |
16434 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16435 | ||
16436 | ac_header_preproc=no | |
16437 | fi | |
16438 | rm -f conftest.err conftest.$ac_ext | |
16439 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16440 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16441 | ||
16442 | # So? What about this header? | |
5d7b7554 | 16443 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 16444 | yes:no: ) |
a848cd7e SC |
16445 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16446 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16447 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16448 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16449 | ac_header_preproc=yes | |
a848cd7e | 16450 | ;; |
ac1cb8d3 | 16451 | no:yes:* ) |
a848cd7e SC |
16452 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16453 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16454 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16455 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16456 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16457 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16458 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16459 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16460 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16461 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16462 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16463 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16464 | ( |
16465 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16466 | ## ----------------------------------------- ## |
16467 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16468 | ## ----------------------------------------- ## | |
a848cd7e SC |
16469 | _ASBOX |
16470 | ) | | |
16471 | sed "s/^/$as_me: WARNING: /" >&2 | |
16472 | ;; | |
16473 | esac | |
16474 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16475 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16476 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16477 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16478 | else | |
ac1cb8d3 | 16479 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16480 | fi |
16481 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16482 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16483 | ||
16484 | fi | |
16485 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16486 | cat >>confdefs.h <<_ACEOF | |
16487 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16488 | _ACEOF | |
16489 | ||
16490 | fi | |
16491 | ||
16492 | done | |
16493 | ||
16494 | ||
16495 | for ac_header in wchar.h | |
16496 | do | |
16497 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16498 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16499 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16500 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16501 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16502 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16503 | fi | |
16504 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16505 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16506 | else | |
16507 | # Is the header compilable? | |
16508 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16509 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16510 | cat >conftest.$ac_ext <<_ACEOF | |
16511 | /* confdefs.h. */ | |
16512 | _ACEOF | |
16513 | cat confdefs.h >>conftest.$ac_ext | |
16514 | cat >>conftest.$ac_ext <<_ACEOF | |
16515 | /* end confdefs.h. */ | |
16516 | $ac_includes_default | |
16517 | #include <$ac_header> | |
16518 | _ACEOF | |
16519 | rm -f conftest.$ac_objext | |
16520 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16521 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16522 | ac_status=$? |
ac1cb8d3 VS |
16523 | grep -v '^ *+' conftest.er1 >conftest.err |
16524 | rm -f conftest.er1 | |
16525 | cat conftest.err >&5 | |
a848cd7e SC |
16526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16527 | (exit $ac_status); } && | |
d25774ab JS |
16528 | { ac_try='test -z "$ac_cxx_werror_flag" |
16529 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16531 | (eval $ac_try) 2>&5 | |
16532 | ac_status=$? | |
16533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16534 | (exit $ac_status); }; } && | |
16535 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16537 | (eval $ac_try) 2>&5 | |
16538 | ac_status=$? | |
16539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16540 | (exit $ac_status); }; }; then | |
16541 | ac_header_compiler=yes | |
16542 | else | |
16543 | echo "$as_me: failed program was:" >&5 | |
16544 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16545 | ||
16546 | ac_header_compiler=no | |
16547 | fi | |
ac1cb8d3 | 16548 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16549 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16550 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16551 | ||
16552 | # Is the header present? | |
16553 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16554 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16555 | cat >conftest.$ac_ext <<_ACEOF | |
16556 | /* confdefs.h. */ | |
16557 | _ACEOF | |
16558 | cat confdefs.h >>conftest.$ac_ext | |
16559 | cat >>conftest.$ac_ext <<_ACEOF | |
16560 | /* end confdefs.h. */ | |
16561 | #include <$ac_header> | |
16562 | _ACEOF | |
16563 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16564 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16565 | ac_status=$? | |
16566 | grep -v '^ *+' conftest.er1 >conftest.err | |
16567 | rm -f conftest.er1 | |
16568 | cat conftest.err >&5 | |
16569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16570 | (exit $ac_status); } >/dev/null; then | |
16571 | if test -s conftest.err; then | |
5d7b7554 VZ |
16572 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
16573 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
16574 | else |
16575 | ac_cpp_err= | |
16576 | fi | |
16577 | else | |
16578 | ac_cpp_err=yes | |
16579 | fi | |
16580 | if test -z "$ac_cpp_err"; then | |
16581 | ac_header_preproc=yes | |
16582 | else | |
16583 | echo "$as_me: failed program was:" >&5 | |
16584 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16585 | ||
16586 | ac_header_preproc=no | |
16587 | fi | |
16588 | rm -f conftest.err conftest.$ac_ext | |
16589 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16590 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16591 | ||
16592 | # So? What about this header? | |
5d7b7554 | 16593 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 16594 | yes:no: ) |
a848cd7e SC |
16595 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16596 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16597 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16598 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16599 | ac_header_preproc=yes | |
a848cd7e | 16600 | ;; |
ac1cb8d3 | 16601 | no:yes:* ) |
a848cd7e SC |
16602 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16603 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16604 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16605 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16606 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16607 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16608 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16609 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16610 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16611 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16612 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16613 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16614 | ( |
16615 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16616 | ## ----------------------------------------- ## |
16617 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16618 | ## ----------------------------------------- ## | |
a848cd7e SC |
16619 | _ASBOX |
16620 | ) | | |
16621 | sed "s/^/$as_me: WARNING: /" >&2 | |
16622 | ;; | |
16623 | esac | |
16624 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16625 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16626 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16627 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16628 | else | |
ac1cb8d3 | 16629 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16630 | fi |
16631 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16632 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16633 | ||
16634 | fi | |
16635 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16636 | cat >>confdefs.h <<_ACEOF | |
16637 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16638 | _ACEOF | |
16639 | ||
16640 | fi | |
16641 | ||
16642 | done | |
16643 | ||
16644 | ||
16645 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
16646 | ||
16647 | for ac_header in wcstr.h | |
16648 | do | |
16649 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16650 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16651 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16652 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16653 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16654 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16655 | fi | |
16656 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16657 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16658 | else | |
16659 | # Is the header compilable? | |
16660 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16661 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16662 | cat >conftest.$ac_ext <<_ACEOF | |
16663 | /* confdefs.h. */ | |
16664 | _ACEOF | |
16665 | cat confdefs.h >>conftest.$ac_ext | |
16666 | cat >>conftest.$ac_ext <<_ACEOF | |
16667 | /* end confdefs.h. */ | |
16668 | $ac_includes_default | |
16669 | #include <$ac_header> | |
16670 | _ACEOF | |
16671 | rm -f conftest.$ac_objext | |
16672 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16673 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16674 | ac_status=$? |
ac1cb8d3 VS |
16675 | grep -v '^ *+' conftest.er1 >conftest.err |
16676 | rm -f conftest.er1 | |
16677 | cat conftest.err >&5 | |
a848cd7e SC |
16678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16679 | (exit $ac_status); } && | |
d25774ab JS |
16680 | { ac_try='test -z "$ac_cxx_werror_flag" |
16681 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16683 | (eval $ac_try) 2>&5 | |
16684 | ac_status=$? | |
16685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16686 | (exit $ac_status); }; } && | |
16687 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16689 | (eval $ac_try) 2>&5 | |
16690 | ac_status=$? | |
16691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16692 | (exit $ac_status); }; }; then | |
16693 | ac_header_compiler=yes | |
16694 | else | |
16695 | echo "$as_me: failed program was:" >&5 | |
16696 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16697 | ||
16698 | ac_header_compiler=no | |
16699 | fi | |
ac1cb8d3 | 16700 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16701 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16702 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16703 | ||
16704 | # Is the header present? | |
16705 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16706 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16707 | cat >conftest.$ac_ext <<_ACEOF | |
16708 | /* confdefs.h. */ | |
16709 | _ACEOF | |
16710 | cat confdefs.h >>conftest.$ac_ext | |
16711 | cat >>conftest.$ac_ext <<_ACEOF | |
16712 | /* end confdefs.h. */ | |
16713 | #include <$ac_header> | |
16714 | _ACEOF | |
16715 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16716 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16717 | ac_status=$? | |
16718 | grep -v '^ *+' conftest.er1 >conftest.err | |
16719 | rm -f conftest.er1 | |
16720 | cat conftest.err >&5 | |
16721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16722 | (exit $ac_status); } >/dev/null; then | |
16723 | if test -s conftest.err; then | |
5d7b7554 VZ |
16724 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
16725 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
16726 | else |
16727 | ac_cpp_err= | |
16728 | fi | |
16729 | else | |
16730 | ac_cpp_err=yes | |
16731 | fi | |
16732 | if test -z "$ac_cpp_err"; then | |
16733 | ac_header_preproc=yes | |
16734 | else | |
16735 | echo "$as_me: failed program was:" >&5 | |
16736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16737 | ||
16738 | ac_header_preproc=no | |
16739 | fi | |
16740 | rm -f conftest.err conftest.$ac_ext | |
16741 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16742 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16743 | ||
16744 | # So? What about this header? | |
5d7b7554 | 16745 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 16746 | yes:no: ) |
a848cd7e SC |
16747 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16748 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16749 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16750 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16751 | ac_header_preproc=yes | |
a848cd7e | 16752 | ;; |
ac1cb8d3 | 16753 | no:yes:* ) |
a848cd7e SC |
16754 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16755 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16756 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16757 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16758 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16759 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16760 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16761 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16762 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16763 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16764 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16765 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16766 | ( |
16767 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16768 | ## ----------------------------------------- ## |
16769 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16770 | ## ----------------------------------------- ## | |
a848cd7e SC |
16771 | _ASBOX |
16772 | ) | | |
16773 | sed "s/^/$as_me: WARNING: /" >&2 | |
16774 | ;; | |
16775 | esac | |
16776 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16777 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16778 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16779 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16780 | else | |
ac1cb8d3 | 16781 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16782 | fi |
16783 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16784 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16785 | ||
16786 | fi | |
16787 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16788 | cat >>confdefs.h <<_ACEOF | |
16789 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16790 | _ACEOF | |
16791 | ||
16792 | fi | |
16793 | ||
16794 | done | |
16795 | ||
16796 | fi | |
16797 | ||
16798 | ||
16799 | for ac_header in fnmatch.h | |
16800 | do | |
16801 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16802 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16803 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16804 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16805 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16806 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16807 | fi | |
16808 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16809 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16810 | else | |
16811 | # Is the header compilable? | |
16812 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16813 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16814 | cat >conftest.$ac_ext <<_ACEOF | |
16815 | /* confdefs.h. */ | |
16816 | _ACEOF | |
16817 | cat confdefs.h >>conftest.$ac_ext | |
16818 | cat >>conftest.$ac_ext <<_ACEOF | |
16819 | /* end confdefs.h. */ | |
16820 | $ac_includes_default | |
16821 | #include <$ac_header> | |
16822 | _ACEOF | |
16823 | rm -f conftest.$ac_objext | |
16824 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16825 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16826 | ac_status=$? |
ac1cb8d3 VS |
16827 | grep -v '^ *+' conftest.er1 >conftest.err |
16828 | rm -f conftest.er1 | |
16829 | cat conftest.err >&5 | |
a848cd7e SC |
16830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16831 | (exit $ac_status); } && | |
d25774ab JS |
16832 | { ac_try='test -z "$ac_cxx_werror_flag" |
16833 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16835 | (eval $ac_try) 2>&5 | |
16836 | ac_status=$? | |
16837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16838 | (exit $ac_status); }; } && | |
16839 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16841 | (eval $ac_try) 2>&5 | |
16842 | ac_status=$? | |
16843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16844 | (exit $ac_status); }; }; then | |
16845 | ac_header_compiler=yes | |
16846 | else | |
16847 | echo "$as_me: failed program was:" >&5 | |
16848 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16849 | ||
16850 | ac_header_compiler=no | |
16851 | fi | |
ac1cb8d3 | 16852 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16853 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16854 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16855 | ||
16856 | # Is the header present? | |
16857 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16858 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16859 | cat >conftest.$ac_ext <<_ACEOF | |
16860 | /* confdefs.h. */ | |
16861 | _ACEOF | |
16862 | cat confdefs.h >>conftest.$ac_ext | |
16863 | cat >>conftest.$ac_ext <<_ACEOF | |
16864 | /* end confdefs.h. */ | |
16865 | #include <$ac_header> | |
16866 | _ACEOF | |
16867 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16868 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16869 | ac_status=$? | |
16870 | grep -v '^ *+' conftest.er1 >conftest.err | |
16871 | rm -f conftest.er1 | |
16872 | cat conftest.err >&5 | |
16873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16874 | (exit $ac_status); } >/dev/null; then | |
16875 | if test -s conftest.err; then | |
5d7b7554 VZ |
16876 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
16877 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
16878 | else |
16879 | ac_cpp_err= | |
16880 | fi | |
16881 | else | |
16882 | ac_cpp_err=yes | |
16883 | fi | |
16884 | if test -z "$ac_cpp_err"; then | |
16885 | ac_header_preproc=yes | |
16886 | else | |
16887 | echo "$as_me: failed program was:" >&5 | |
16888 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16889 | ||
16890 | ac_header_preproc=no | |
16891 | fi | |
16892 | rm -f conftest.err conftest.$ac_ext | |
16893 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16894 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16895 | ||
16896 | # So? What about this header? | |
5d7b7554 | 16897 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 16898 | yes:no: ) |
a848cd7e SC |
16899 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16900 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16901 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16902 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16903 | ac_header_preproc=yes | |
a848cd7e | 16904 | ;; |
ac1cb8d3 | 16905 | no:yes:* ) |
a848cd7e SC |
16906 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16907 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16908 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16909 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16910 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16911 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16912 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16913 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16914 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16915 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16916 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16917 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16918 | ( |
16919 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16920 | ## ----------------------------------------- ## |
16921 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16922 | ## ----------------------------------------- ## | |
a848cd7e SC |
16923 | _ASBOX |
16924 | ) | | |
16925 | sed "s/^/$as_me: WARNING: /" >&2 | |
16926 | ;; | |
16927 | esac | |
16928 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16929 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16930 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16932 | else | |
ac1cb8d3 | 16933 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16934 | fi |
16935 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16936 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16937 | ||
16938 | fi | |
16939 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16940 | cat >>confdefs.h <<_ACEOF | |
16941 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16942 | _ACEOF | |
16943 | ||
16944 | fi | |
16945 | ||
16946 | done | |
16947 | ||
16948 | ||
a848cd7e SC |
16949 | |
16950 | for ac_header in langinfo.h | |
16951 | do | |
16952 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16953 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16954 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16955 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16956 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16957 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16958 | fi | |
16959 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16960 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16961 | else | |
16962 | # Is the header compilable? | |
16963 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16964 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16965 | cat >conftest.$ac_ext <<_ACEOF | |
16966 | /* confdefs.h. */ | |
16967 | _ACEOF | |
16968 | cat confdefs.h >>conftest.$ac_ext | |
16969 | cat >>conftest.$ac_ext <<_ACEOF | |
16970 | /* end confdefs.h. */ | |
16971 | $ac_includes_default | |
16972 | #include <$ac_header> | |
16973 | _ACEOF | |
16974 | rm -f conftest.$ac_objext | |
16975 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16976 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16977 | ac_status=$? |
ac1cb8d3 VS |
16978 | grep -v '^ *+' conftest.er1 >conftest.err |
16979 | rm -f conftest.er1 | |
16980 | cat conftest.err >&5 | |
a848cd7e SC |
16981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16982 | (exit $ac_status); } && | |
d25774ab JS |
16983 | { ac_try='test -z "$ac_cxx_werror_flag" |
16984 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16986 | (eval $ac_try) 2>&5 | |
16987 | ac_status=$? | |
16988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16989 | (exit $ac_status); }; } && | |
16990 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16992 | (eval $ac_try) 2>&5 | |
16993 | ac_status=$? | |
16994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16995 | (exit $ac_status); }; }; then | |
16996 | ac_header_compiler=yes | |
16997 | else | |
16998 | echo "$as_me: failed program was:" >&5 | |
16999 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17000 | ||
17001 | ac_header_compiler=no | |
17002 | fi | |
ac1cb8d3 | 17003 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17004 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17005 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17006 | ||
17007 | # Is the header present? | |
17008 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17009 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
17010 | cat >conftest.$ac_ext <<_ACEOF | |
17011 | /* confdefs.h. */ | |
17012 | _ACEOF | |
17013 | cat confdefs.h >>conftest.$ac_ext | |
17014 | cat >>conftest.$ac_ext <<_ACEOF | |
17015 | /* end confdefs.h. */ | |
17016 | #include <$ac_header> | |
17017 | _ACEOF | |
17018 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17019 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17020 | ac_status=$? | |
17021 | grep -v '^ *+' conftest.er1 >conftest.err | |
17022 | rm -f conftest.er1 | |
17023 | cat conftest.err >&5 | |
17024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17025 | (exit $ac_status); } >/dev/null; then | |
17026 | if test -s conftest.err; then | |
5d7b7554 VZ |
17027 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
17028 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
17029 | else |
17030 | ac_cpp_err= | |
17031 | fi | |
17032 | else | |
17033 | ac_cpp_err=yes | |
17034 | fi | |
17035 | if test -z "$ac_cpp_err"; then | |
17036 | ac_header_preproc=yes | |
17037 | else | |
17038 | echo "$as_me: failed program was:" >&5 | |
17039 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17040 | ||
17041 | ac_header_preproc=no | |
17042 | fi | |
17043 | rm -f conftest.err conftest.$ac_ext | |
17044 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17045 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17046 | ||
17047 | # So? What about this header? | |
5d7b7554 | 17048 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 17049 | yes:no: ) |
a848cd7e SC |
17050 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17051 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
17052 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
17053 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17054 | ac_header_preproc=yes | |
a848cd7e | 17055 | ;; |
ac1cb8d3 | 17056 | no:yes:* ) |
a848cd7e SC |
17057 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17058 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
17059 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
17060 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17061 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17062 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17063 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17064 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
17065 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
17066 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
17067 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
17068 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
17069 | ( |
17070 | cat <<\_ASBOX | |
ac1cb8d3 VS |
17071 | ## ----------------------------------------- ## |
17072 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
17073 | ## ----------------------------------------- ## | |
a848cd7e SC |
17074 | _ASBOX |
17075 | ) | | |
17076 | sed "s/^/$as_me: WARNING: /" >&2 | |
17077 | ;; | |
17078 | esac | |
17079 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17080 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17081 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17083 | else | |
ac1cb8d3 | 17084 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
17085 | fi |
17086 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17087 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17088 | ||
17089 | fi | |
17090 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
17091 | cat >>confdefs.h <<_ACEOF | |
17092 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17093 | _ACEOF | |
17094 | ||
17095 | fi | |
17096 | ||
17097 | done | |
17098 | ||
17099 | ||
17100 | case "${host}" in | |
17101 | *-pc-os2_emx | *-pc-os2-emx ) | |
391a765e VS |
17102 | if test $ac_cv_header_langinfo_h = "yes" \ |
17103 | -a \( "$wx_cv_gccversion" = "EMX2" \ | |
17104 | -o "$wx_cv_gccversion" = "EMX3" \ | |
17105 | -o "$wx_cv_gccversion" = "Innotek5" \); then | |
a848cd7e SC |
17106 | LIBS="$LIBS -lintl" |
17107 | fi | |
17108 | ;; | |
17109 | esac | |
17110 | ||
a848cd7e SC |
17111 | |
17112 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
17113 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
17114 | if test "${ac_cv_c_const+set}" = set; then | |
17115 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17116 | else | |
17117 | cat >conftest.$ac_ext <<_ACEOF | |
17118 | /* confdefs.h. */ | |
17119 | _ACEOF | |
17120 | cat confdefs.h >>conftest.$ac_ext | |
17121 | cat >>conftest.$ac_ext <<_ACEOF | |
17122 | /* end confdefs.h. */ | |
17123 | ||
17124 | int | |
17125 | main () | |
17126 | { | |
17127 | /* FIXME: Include the comments suggested by Paul. */ | |
17128 | #ifndef __cplusplus | |
17129 | /* Ultrix mips cc rejects this. */ | |
17130 | typedef int charset[2]; | |
17131 | const charset x; | |
17132 | /* SunOS 4.1.1 cc rejects this. */ | |
17133 | char const *const *ccp; | |
17134 | char **p; | |
17135 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
17136 | struct point {int x, y;}; | |
17137 | static struct point const zero = {0,0}; | |
17138 | /* AIX XL C 1.02.0.0 rejects this. | |
17139 | It does not let you subtract one const X* pointer from another in | |
17140 | an arm of an if-expression whose if-part is not a constant | |
17141 | expression */ | |
17142 | const char *g = "string"; | |
17143 | ccp = &g + (g ? g-g : 0); | |
17144 | /* HPUX 7.0 cc rejects these. */ | |
17145 | ++ccp; | |
17146 | p = (char**) ccp; | |
17147 | ccp = (char const *const *) p; | |
17148 | { /* SCO 3.2v4 cc rejects this. */ | |
17149 | char *t; | |
17150 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
17151 | ||
17152 | *t++ = 0; | |
17153 | } | |
17154 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
17155 | int x[] = {25, 17}; | |
17156 | const int *foo = &x[0]; | |
17157 | ++foo; | |
17158 | } | |
17159 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
17160 | typedef const int *iptr; | |
17161 | iptr p = 0; | |
17162 | ++p; | |
17163 | } | |
17164 | { /* AIX XL C 1.02.0.0 rejects this saying | |
17165 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
17166 | struct s { int j; const int *ap[3]; }; | |
17167 | struct s *b; b->j = 5; | |
17168 | } | |
17169 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
17170 | const int foo = 10; | |
17171 | } | |
17172 | #endif | |
17173 | ||
17174 | ; | |
17175 | return 0; | |
17176 | } | |
17177 | _ACEOF | |
17178 | rm -f conftest.$ac_objext | |
17179 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17180 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17181 | ac_status=$? |
ac1cb8d3 VS |
17182 | grep -v '^ *+' conftest.er1 >conftest.err |
17183 | rm -f conftest.er1 | |
17184 | cat conftest.err >&5 | |
a848cd7e SC |
17185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17186 | (exit $ac_status); } && | |
d25774ab JS |
17187 | { ac_try='test -z "$ac_cxx_werror_flag" |
17188 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17190 | (eval $ac_try) 2>&5 | |
17191 | ac_status=$? | |
17192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17193 | (exit $ac_status); }; } && | |
17194 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17196 | (eval $ac_try) 2>&5 | |
17197 | ac_status=$? | |
17198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17199 | (exit $ac_status); }; }; then | |
17200 | ac_cv_c_const=yes | |
17201 | else | |
17202 | echo "$as_me: failed program was:" >&5 | |
17203 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17204 | ||
17205 | ac_cv_c_const=no | |
17206 | fi | |
ac1cb8d3 | 17207 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17208 | fi |
17209 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
17210 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
17211 | if test $ac_cv_c_const = no; then | |
17212 | ||
17213 | cat >>confdefs.h <<\_ACEOF | |
17214 | #define const | |
17215 | _ACEOF | |
17216 | ||
17217 | fi | |
17218 | ||
17219 | echo "$as_me:$LINENO: checking for inline" >&5 | |
17220 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
17221 | if test "${ac_cv_c_inline+set}" = set; then | |
17222 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17223 | else | |
17224 | ac_cv_c_inline=no | |
17225 | for ac_kw in inline __inline__ __inline; do | |
17226 | cat >conftest.$ac_ext <<_ACEOF | |
17227 | /* confdefs.h. */ | |
17228 | _ACEOF | |
17229 | cat confdefs.h >>conftest.$ac_ext | |
17230 | cat >>conftest.$ac_ext <<_ACEOF | |
17231 | /* end confdefs.h. */ | |
17232 | #ifndef __cplusplus | |
17233 | typedef int foo_t; | |
17234 | static $ac_kw foo_t static_foo () {return 0; } | |
17235 | $ac_kw foo_t foo () {return 0; } | |
17236 | #endif | |
17237 | ||
17238 | _ACEOF | |
17239 | rm -f conftest.$ac_objext | |
17240 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17241 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17242 | ac_status=$? |
ac1cb8d3 VS |
17243 | grep -v '^ *+' conftest.er1 >conftest.err |
17244 | rm -f conftest.er1 | |
17245 | cat conftest.err >&5 | |
a848cd7e SC |
17246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17247 | (exit $ac_status); } && | |
d25774ab JS |
17248 | { ac_try='test -z "$ac_cxx_werror_flag" |
17249 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17251 | (eval $ac_try) 2>&5 | |
17252 | ac_status=$? | |
17253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17254 | (exit $ac_status); }; } && | |
17255 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17257 | (eval $ac_try) 2>&5 | |
17258 | ac_status=$? | |
17259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17260 | (exit $ac_status); }; }; then | |
17261 | ac_cv_c_inline=$ac_kw; break | |
17262 | else | |
17263 | echo "$as_me: failed program was:" >&5 | |
17264 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17265 | ||
17266 | fi | |
ac1cb8d3 | 17267 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17268 | done |
17269 | ||
17270 | fi | |
17271 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
17272 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
ac1cb8d3 VS |
17273 | |
17274 | ||
a848cd7e SC |
17275 | case $ac_cv_c_inline in |
17276 | inline | yes) ;; | |
ac1cb8d3 VS |
17277 | *) |
17278 | case $ac_cv_c_inline in | |
17279 | no) ac_val=;; | |
17280 | *) ac_val=$ac_cv_c_inline;; | |
17281 | esac | |
17282 | cat >>confdefs.h <<_ACEOF | |
17283 | #ifndef __cplusplus | |
17284 | #define inline $ac_val | |
17285 | #endif | |
de59c161 | 17286 | _ACEOF |
ac1cb8d3 | 17287 | ;; |
a848cd7e SC |
17288 | esac |
17289 | ||
17290 | ||
17291 | echo "$as_me:$LINENO: checking for char" >&5 | |
17292 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
17293 | if test "${ac_cv_type_char+set}" = set; then | |
17294 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17295 | else | |
17296 | cat >conftest.$ac_ext <<_ACEOF | |
17297 | /* confdefs.h. */ | |
17298 | _ACEOF | |
17299 | cat confdefs.h >>conftest.$ac_ext | |
17300 | cat >>conftest.$ac_ext <<_ACEOF | |
17301 | /* end confdefs.h. */ | |
17302 | $ac_includes_default | |
17303 | int | |
17304 | main () | |
17305 | { | |
17306 | if ((char *) 0) | |
17307 | return 0; | |
17308 | if (sizeof (char)) | |
17309 | return 0; | |
17310 | ; | |
17311 | return 0; | |
17312 | } | |
17313 | _ACEOF | |
17314 | rm -f conftest.$ac_objext | |
17315 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17316 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17317 | ac_status=$? |
ac1cb8d3 VS |
17318 | grep -v '^ *+' conftest.er1 >conftest.err |
17319 | rm -f conftest.er1 | |
17320 | cat conftest.err >&5 | |
a848cd7e SC |
17321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17322 | (exit $ac_status); } && | |
d25774ab JS |
17323 | { ac_try='test -z "$ac_cxx_werror_flag" |
17324 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17326 | (eval $ac_try) 2>&5 | |
17327 | ac_status=$? | |
17328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17329 | (exit $ac_status); }; } && | |
17330 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17332 | (eval $ac_try) 2>&5 | |
17333 | ac_status=$? | |
17334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17335 | (exit $ac_status); }; }; then | |
17336 | ac_cv_type_char=yes | |
17337 | else | |
17338 | echo "$as_me: failed program was:" >&5 | |
17339 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17340 | ||
17341 | ac_cv_type_char=no | |
17342 | fi | |
ac1cb8d3 | 17343 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17344 | fi |
17345 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
17346 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
17347 | ||
17348 | echo "$as_me:$LINENO: checking size of char" >&5 | |
17349 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
17350 | if test "${ac_cv_sizeof_char+set}" = set; then | |
17351 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17352 | else | |
17353 | if test "$ac_cv_type_char" = yes; then | |
17354 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17355 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17356 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17357 | # This bug is HP SR number 8606223364. | |
17358 | if test "$cross_compiling" = yes; then | |
17359 | # Depending upon the size, compute the lo and hi bounds. | |
17360 | cat >conftest.$ac_ext <<_ACEOF | |
17361 | /* confdefs.h. */ | |
17362 | _ACEOF | |
17363 | cat confdefs.h >>conftest.$ac_ext | |
17364 | cat >>conftest.$ac_ext <<_ACEOF | |
17365 | /* end confdefs.h. */ | |
17366 | $ac_includes_default | |
17367 | int | |
17368 | main () | |
17369 | { | |
17370 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
17371 | test_array [0] = 0 | |
17372 | ||
17373 | ; | |
17374 | return 0; | |
17375 | } | |
17376 | _ACEOF | |
17377 | rm -f conftest.$ac_objext | |
17378 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17379 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17380 | ac_status=$? |
ac1cb8d3 VS |
17381 | grep -v '^ *+' conftest.er1 >conftest.err |
17382 | rm -f conftest.er1 | |
17383 | cat conftest.err >&5 | |
a848cd7e SC |
17384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17385 | (exit $ac_status); } && | |
d25774ab JS |
17386 | { ac_try='test -z "$ac_cxx_werror_flag" |
17387 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17389 | (eval $ac_try) 2>&5 | |
17390 | ac_status=$? | |
17391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17392 | (exit $ac_status); }; } && | |
17393 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17395 | (eval $ac_try) 2>&5 | |
17396 | ac_status=$? | |
17397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17398 | (exit $ac_status); }; }; then | |
17399 | ac_lo=0 ac_mid=0 | |
17400 | while :; do | |
17401 | cat >conftest.$ac_ext <<_ACEOF | |
17402 | /* confdefs.h. */ | |
17403 | _ACEOF | |
17404 | cat confdefs.h >>conftest.$ac_ext | |
17405 | cat >>conftest.$ac_ext <<_ACEOF | |
17406 | /* end confdefs.h. */ | |
17407 | $ac_includes_default | |
17408 | int | |
17409 | main () | |
17410 | { | |
17411 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
17412 | test_array [0] = 0 | |
17413 | ||
17414 | ; | |
17415 | return 0; | |
17416 | } | |
17417 | _ACEOF | |
17418 | rm -f conftest.$ac_objext | |
17419 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17420 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17421 | ac_status=$? |
ac1cb8d3 VS |
17422 | grep -v '^ *+' conftest.er1 >conftest.err |
17423 | rm -f conftest.er1 | |
17424 | cat conftest.err >&5 | |
a848cd7e SC |
17425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17426 | (exit $ac_status); } && | |
d25774ab JS |
17427 | { ac_try='test -z "$ac_cxx_werror_flag" |
17428 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17430 | (eval $ac_try) 2>&5 | |
17431 | ac_status=$? | |
17432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17433 | (exit $ac_status); }; } && | |
17434 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17436 | (eval $ac_try) 2>&5 | |
17437 | ac_status=$? | |
17438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17439 | (exit $ac_status); }; }; then | |
17440 | ac_hi=$ac_mid; break | |
17441 | else | |
17442 | echo "$as_me: failed program was:" >&5 | |
17443 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17444 | ||
17445 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17446 | if test $ac_lo -le $ac_mid; then |
17447 | ac_lo= ac_hi= | |
17448 | break | |
17449 | fi | |
17450 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17451 | fi |
ac1cb8d3 | 17452 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17453 | done |
17454 | else | |
17455 | echo "$as_me: failed program was:" >&5 | |
17456 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17457 | ||
17458 | cat >conftest.$ac_ext <<_ACEOF | |
17459 | /* confdefs.h. */ | |
17460 | _ACEOF | |
17461 | cat confdefs.h >>conftest.$ac_ext | |
17462 | cat >>conftest.$ac_ext <<_ACEOF | |
17463 | /* end confdefs.h. */ | |
17464 | $ac_includes_default | |
17465 | int | |
17466 | main () | |
17467 | { | |
17468 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
17469 | test_array [0] = 0 | |
17470 | ||
17471 | ; | |
17472 | return 0; | |
17473 | } | |
17474 | _ACEOF | |
17475 | rm -f conftest.$ac_objext | |
17476 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17477 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17478 | ac_status=$? |
ac1cb8d3 VS |
17479 | grep -v '^ *+' conftest.er1 >conftest.err |
17480 | rm -f conftest.er1 | |
17481 | cat conftest.err >&5 | |
a848cd7e SC |
17482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17483 | (exit $ac_status); } && | |
d25774ab JS |
17484 | { ac_try='test -z "$ac_cxx_werror_flag" |
17485 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17487 | (eval $ac_try) 2>&5 | |
17488 | ac_status=$? | |
17489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17490 | (exit $ac_status); }; } && | |
17491 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17493 | (eval $ac_try) 2>&5 | |
17494 | ac_status=$? | |
17495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17496 | (exit $ac_status); }; }; then | |
17497 | ac_hi=-1 ac_mid=-1 | |
17498 | while :; do | |
17499 | cat >conftest.$ac_ext <<_ACEOF | |
17500 | /* confdefs.h. */ | |
17501 | _ACEOF | |
17502 | cat confdefs.h >>conftest.$ac_ext | |
17503 | cat >>conftest.$ac_ext <<_ACEOF | |
17504 | /* end confdefs.h. */ | |
17505 | $ac_includes_default | |
17506 | int | |
17507 | main () | |
17508 | { | |
17509 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
17510 | test_array [0] = 0 | |
17511 | ||
17512 | ; | |
17513 | return 0; | |
17514 | } | |
17515 | _ACEOF | |
17516 | rm -f conftest.$ac_objext | |
17517 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17518 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17519 | ac_status=$? |
ac1cb8d3 VS |
17520 | grep -v '^ *+' conftest.er1 >conftest.err |
17521 | rm -f conftest.er1 | |
17522 | cat conftest.err >&5 | |
a848cd7e SC |
17523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17524 | (exit $ac_status); } && | |
d25774ab JS |
17525 | { ac_try='test -z "$ac_cxx_werror_flag" |
17526 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17528 | (eval $ac_try) 2>&5 | |
17529 | ac_status=$? | |
17530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17531 | (exit $ac_status); }; } && | |
17532 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17534 | (eval $ac_try) 2>&5 | |
17535 | ac_status=$? | |
17536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17537 | (exit $ac_status); }; }; then | |
17538 | ac_lo=$ac_mid; break | |
17539 | else | |
17540 | echo "$as_me: failed program was:" >&5 | |
17541 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17542 | ||
17543 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17544 | if test $ac_mid -le $ac_hi; then |
17545 | ac_lo= ac_hi= | |
17546 | break | |
17547 | fi | |
17548 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17549 | fi |
ac1cb8d3 | 17550 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17551 | done |
17552 | else | |
17553 | echo "$as_me: failed program was:" >&5 | |
17554 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17555 | ||
17556 | ac_lo= ac_hi= | |
17557 | fi | |
ac1cb8d3 | 17558 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17559 | fi |
ac1cb8d3 | 17560 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17561 | # Binary search between lo and hi bounds. |
17562 | while test "x$ac_lo" != "x$ac_hi"; do | |
17563 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17564 | cat >conftest.$ac_ext <<_ACEOF | |
17565 | /* confdefs.h. */ | |
17566 | _ACEOF | |
17567 | cat confdefs.h >>conftest.$ac_ext | |
17568 | cat >>conftest.$ac_ext <<_ACEOF | |
17569 | /* end confdefs.h. */ | |
17570 | $ac_includes_default | |
17571 | int | |
17572 | main () | |
17573 | { | |
17574 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
17575 | test_array [0] = 0 | |
17576 | ||
17577 | ; | |
17578 | return 0; | |
17579 | } | |
17580 | _ACEOF | |
17581 | rm -f conftest.$ac_objext | |
17582 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17583 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17584 | ac_status=$? |
ac1cb8d3 VS |
17585 | grep -v '^ *+' conftest.er1 >conftest.err |
17586 | rm -f conftest.er1 | |
17587 | cat conftest.err >&5 | |
a848cd7e SC |
17588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17589 | (exit $ac_status); } && | |
d25774ab JS |
17590 | { ac_try='test -z "$ac_cxx_werror_flag" |
17591 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17593 | (eval $ac_try) 2>&5 | |
17594 | ac_status=$? | |
17595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17596 | (exit $ac_status); }; } && | |
17597 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17599 | (eval $ac_try) 2>&5 | |
17600 | ac_status=$? | |
17601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17602 | (exit $ac_status); }; }; then | |
17603 | ac_hi=$ac_mid | |
17604 | else | |
17605 | echo "$as_me: failed program was:" >&5 | |
17606 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17607 | ||
17608 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17609 | fi | |
ac1cb8d3 | 17610 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17611 | done |
17612 | case $ac_lo in | |
17613 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
17614 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
17615 | See \`config.log' for more details." >&5 | |
17616 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
17617 | See \`config.log' for more details." >&2;} | |
17618 | { (exit 1); exit 1; }; } ;; | |
17619 | esac | |
17620 | else | |
17621 | if test "$cross_compiling" = yes; then | |
d25774ab JS |
17622 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
17623 | See \`config.log' for more details." >&5 | |
17624 | echo "$as_me: error: cannot run test program while cross compiling | |
17625 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
17626 | { (exit 1); exit 1; }; } |
17627 | else | |
17628 | cat >conftest.$ac_ext <<_ACEOF | |
17629 | /* confdefs.h. */ | |
17630 | _ACEOF | |
17631 | cat confdefs.h >>conftest.$ac_ext | |
17632 | cat >>conftest.$ac_ext <<_ACEOF | |
17633 | /* end confdefs.h. */ | |
17634 | $ac_includes_default | |
17635 | long longval () { return (long) (sizeof (char)); } | |
17636 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
17637 | #include <stdio.h> | |
17638 | #include <stdlib.h> | |
17639 | int | |
17640 | main () | |
17641 | { | |
17642 | ||
17643 | FILE *f = fopen ("conftest.val", "w"); | |
17644 | if (! f) | |
17645 | exit (1); | |
17646 | if (((long) (sizeof (char))) < 0) | |
17647 | { | |
17648 | long i = longval (); | |
17649 | if (i != ((long) (sizeof (char)))) | |
17650 | exit (1); | |
17651 | fprintf (f, "%ld\n", i); | |
17652 | } | |
17653 | else | |
17654 | { | |
17655 | unsigned long i = ulongval (); | |
17656 | if (i != ((long) (sizeof (char)))) | |
17657 | exit (1); | |
17658 | fprintf (f, "%lu\n", i); | |
17659 | } | |
17660 | exit (ferror (f) || fclose (f) != 0); | |
17661 | ||
17662 | ; | |
17663 | return 0; | |
17664 | } | |
17665 | _ACEOF | |
17666 | rm -f conftest$ac_exeext | |
17667 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17668 | (eval $ac_link) 2>&5 | |
17669 | ac_status=$? | |
17670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17671 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17673 | (eval $ac_try) 2>&5 | |
17674 | ac_status=$? | |
17675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17676 | (exit $ac_status); }; }; then | |
17677 | ac_cv_sizeof_char=`cat conftest.val` | |
17678 | else | |
17679 | echo "$as_me: program exited with status $ac_status" >&5 | |
17680 | echo "$as_me: failed program was:" >&5 | |
17681 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17682 | ||
17683 | ( exit $ac_status ) | |
17684 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
17685 | See \`config.log' for more details." >&5 | |
17686 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
17687 | See \`config.log' for more details." >&2;} | |
17688 | { (exit 1); exit 1; }; } | |
17689 | fi | |
ac1cb8d3 | 17690 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17691 | fi |
17692 | fi | |
17693 | rm -f conftest.val | |
17694 | else | |
17695 | ac_cv_sizeof_char=0 | |
17696 | fi | |
17697 | fi | |
17698 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
17699 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
17700 | cat >>confdefs.h <<_ACEOF | |
17701 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
17702 | _ACEOF | |
17703 | ||
17704 | ||
17705 | echo "$as_me:$LINENO: checking for short" >&5 | |
17706 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
17707 | if test "${ac_cv_type_short+set}" = set; then | |
17708 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17709 | else | |
17710 | cat >conftest.$ac_ext <<_ACEOF | |
17711 | /* confdefs.h. */ | |
17712 | _ACEOF | |
17713 | cat confdefs.h >>conftest.$ac_ext | |
17714 | cat >>conftest.$ac_ext <<_ACEOF | |
17715 | /* end confdefs.h. */ | |
17716 | $ac_includes_default | |
17717 | int | |
17718 | main () | |
17719 | { | |
17720 | if ((short *) 0) | |
17721 | return 0; | |
17722 | if (sizeof (short)) | |
17723 | return 0; | |
17724 | ; | |
17725 | return 0; | |
17726 | } | |
17727 | _ACEOF | |
17728 | rm -f conftest.$ac_objext | |
17729 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17730 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17731 | ac_status=$? |
ac1cb8d3 VS |
17732 | grep -v '^ *+' conftest.er1 >conftest.err |
17733 | rm -f conftest.er1 | |
17734 | cat conftest.err >&5 | |
a848cd7e SC |
17735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17736 | (exit $ac_status); } && | |
d25774ab JS |
17737 | { ac_try='test -z "$ac_cxx_werror_flag" |
17738 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17740 | (eval $ac_try) 2>&5 | |
17741 | ac_status=$? | |
17742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17743 | (exit $ac_status); }; } && | |
17744 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17746 | (eval $ac_try) 2>&5 | |
17747 | ac_status=$? | |
17748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17749 | (exit $ac_status); }; }; then | |
17750 | ac_cv_type_short=yes | |
17751 | else | |
17752 | echo "$as_me: failed program was:" >&5 | |
17753 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17754 | ||
17755 | ac_cv_type_short=no | |
17756 | fi | |
ac1cb8d3 | 17757 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17758 | fi |
17759 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
17760 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
17761 | ||
17762 | echo "$as_me:$LINENO: checking size of short" >&5 | |
17763 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
17764 | if test "${ac_cv_sizeof_short+set}" = set; then | |
17765 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17766 | else | |
17767 | if test "$ac_cv_type_short" = yes; then | |
17768 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17769 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17770 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17771 | # This bug is HP SR number 8606223364. | |
17772 | if test "$cross_compiling" = yes; then | |
17773 | # Depending upon the size, compute the lo and hi bounds. | |
17774 | cat >conftest.$ac_ext <<_ACEOF | |
17775 | /* confdefs.h. */ | |
17776 | _ACEOF | |
17777 | cat confdefs.h >>conftest.$ac_ext | |
17778 | cat >>conftest.$ac_ext <<_ACEOF | |
17779 | /* end confdefs.h. */ | |
17780 | $ac_includes_default | |
17781 | int | |
17782 | main () | |
17783 | { | |
17784 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
17785 | test_array [0] = 0 | |
17786 | ||
17787 | ; | |
17788 | return 0; | |
17789 | } | |
17790 | _ACEOF | |
17791 | rm -f conftest.$ac_objext | |
17792 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17793 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17794 | ac_status=$? |
ac1cb8d3 VS |
17795 | grep -v '^ *+' conftest.er1 >conftest.err |
17796 | rm -f conftest.er1 | |
17797 | cat conftest.err >&5 | |
a848cd7e SC |
17798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17799 | (exit $ac_status); } && | |
d25774ab JS |
17800 | { ac_try='test -z "$ac_cxx_werror_flag" |
17801 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17803 | (eval $ac_try) 2>&5 | |
17804 | ac_status=$? | |
17805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17806 | (exit $ac_status); }; } && | |
17807 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17809 | (eval $ac_try) 2>&5 | |
17810 | ac_status=$? | |
17811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17812 | (exit $ac_status); }; }; then | |
17813 | ac_lo=0 ac_mid=0 | |
17814 | while :; do | |
17815 | cat >conftest.$ac_ext <<_ACEOF | |
17816 | /* confdefs.h. */ | |
17817 | _ACEOF | |
17818 | cat confdefs.h >>conftest.$ac_ext | |
17819 | cat >>conftest.$ac_ext <<_ACEOF | |
17820 | /* end confdefs.h. */ | |
17821 | $ac_includes_default | |
17822 | int | |
17823 | main () | |
17824 | { | |
17825 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
17826 | test_array [0] = 0 | |
17827 | ||
17828 | ; | |
17829 | return 0; | |
17830 | } | |
17831 | _ACEOF | |
17832 | rm -f conftest.$ac_objext | |
17833 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17834 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17835 | ac_status=$? |
ac1cb8d3 VS |
17836 | grep -v '^ *+' conftest.er1 >conftest.err |
17837 | rm -f conftest.er1 | |
17838 | cat conftest.err >&5 | |
a848cd7e SC |
17839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17840 | (exit $ac_status); } && | |
d25774ab JS |
17841 | { ac_try='test -z "$ac_cxx_werror_flag" |
17842 | || 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=$ac_mid; break | |
17855 | else | |
17856 | echo "$as_me: failed program was:" >&5 | |
17857 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17858 | ||
17859 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17860 | if test $ac_lo -le $ac_mid; then |
17861 | ac_lo= ac_hi= | |
17862 | break | |
17863 | fi | |
17864 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17865 | fi |
ac1cb8d3 | 17866 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17867 | done |
17868 | else | |
17869 | echo "$as_me: failed program was:" >&5 | |
17870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17871 | ||
17872 | cat >conftest.$ac_ext <<_ACEOF | |
17873 | /* confdefs.h. */ | |
17874 | _ACEOF | |
17875 | cat confdefs.h >>conftest.$ac_ext | |
17876 | cat >>conftest.$ac_ext <<_ACEOF | |
17877 | /* end confdefs.h. */ | |
17878 | $ac_includes_default | |
17879 | int | |
17880 | main () | |
17881 | { | |
17882 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
17883 | test_array [0] = 0 | |
17884 | ||
17885 | ; | |
17886 | return 0; | |
17887 | } | |
17888 | _ACEOF | |
17889 | rm -f conftest.$ac_objext | |
17890 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17891 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17892 | ac_status=$? |
ac1cb8d3 VS |
17893 | grep -v '^ *+' conftest.er1 >conftest.err |
17894 | rm -f conftest.er1 | |
17895 | cat conftest.err >&5 | |
a848cd7e SC |
17896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17897 | (exit $ac_status); } && | |
d25774ab JS |
17898 | { ac_try='test -z "$ac_cxx_werror_flag" |
17899 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17901 | (eval $ac_try) 2>&5 | |
17902 | ac_status=$? | |
17903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17904 | (exit $ac_status); }; } && | |
17905 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17907 | (eval $ac_try) 2>&5 | |
17908 | ac_status=$? | |
17909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17910 | (exit $ac_status); }; }; then | |
17911 | ac_hi=-1 ac_mid=-1 | |
17912 | while :; do | |
17913 | cat >conftest.$ac_ext <<_ACEOF | |
17914 | /* confdefs.h. */ | |
17915 | _ACEOF | |
17916 | cat confdefs.h >>conftest.$ac_ext | |
17917 | cat >>conftest.$ac_ext <<_ACEOF | |
17918 | /* end confdefs.h. */ | |
17919 | $ac_includes_default | |
17920 | int | |
17921 | main () | |
17922 | { | |
17923 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
17924 | test_array [0] = 0 | |
17925 | ||
17926 | ; | |
17927 | return 0; | |
17928 | } | |
17929 | _ACEOF | |
17930 | rm -f conftest.$ac_objext | |
17931 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17932 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17933 | ac_status=$? |
ac1cb8d3 VS |
17934 | grep -v '^ *+' conftest.er1 >conftest.err |
17935 | rm -f conftest.er1 | |
17936 | cat conftest.err >&5 | |
a848cd7e SC |
17937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17938 | (exit $ac_status); } && | |
d25774ab JS |
17939 | { ac_try='test -z "$ac_cxx_werror_flag" |
17940 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17942 | (eval $ac_try) 2>&5 | |
17943 | ac_status=$? | |
17944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17945 | (exit $ac_status); }; } && | |
17946 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
17952 | ac_lo=$ac_mid; break | |
17953 | else | |
17954 | echo "$as_me: failed program was:" >&5 | |
17955 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17956 | ||
17957 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17958 | if test $ac_mid -le $ac_hi; then |
17959 | ac_lo= ac_hi= | |
17960 | break | |
17961 | fi | |
17962 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17963 | fi |
ac1cb8d3 | 17964 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17965 | done |
17966 | else | |
17967 | echo "$as_me: failed program was:" >&5 | |
17968 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17969 | ||
17970 | ac_lo= ac_hi= | |
17971 | fi | |
ac1cb8d3 | 17972 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17973 | fi |
ac1cb8d3 | 17974 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17975 | # Binary search between lo and hi bounds. |
17976 | while test "x$ac_lo" != "x$ac_hi"; do | |
17977 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17978 | cat >conftest.$ac_ext <<_ACEOF | |
17979 | /* confdefs.h. */ | |
17980 | _ACEOF | |
17981 | cat confdefs.h >>conftest.$ac_ext | |
17982 | cat >>conftest.$ac_ext <<_ACEOF | |
17983 | /* end confdefs.h. */ | |
17984 | $ac_includes_default | |
17985 | int | |
17986 | main () | |
17987 | { | |
17988 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
17989 | test_array [0] = 0 | |
17990 | ||
17991 | ; | |
17992 | return 0; | |
17993 | } | |
17994 | _ACEOF | |
17995 | rm -f conftest.$ac_objext | |
17996 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17997 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17998 | ac_status=$? |
ac1cb8d3 VS |
17999 | grep -v '^ *+' conftest.er1 >conftest.err |
18000 | rm -f conftest.er1 | |
18001 | cat conftest.err >&5 | |
a848cd7e SC |
18002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18003 | (exit $ac_status); } && | |
d25774ab JS |
18004 | { ac_try='test -z "$ac_cxx_werror_flag" |
18005 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18007 | (eval $ac_try) 2>&5 | |
18008 | ac_status=$? | |
18009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18010 | (exit $ac_status); }; } && | |
18011 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18013 | (eval $ac_try) 2>&5 | |
18014 | ac_status=$? | |
18015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18016 | (exit $ac_status); }; }; then | |
18017 | ac_hi=$ac_mid | |
18018 | else | |
18019 | echo "$as_me: failed program was:" >&5 | |
18020 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18021 | ||
18022 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18023 | fi | |
ac1cb8d3 | 18024 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18025 | done |
18026 | case $ac_lo in | |
18027 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
18028 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
18029 | See \`config.log' for more details." >&5 | |
18030 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
18031 | See \`config.log' for more details." >&2;} | |
18032 | { (exit 1); exit 1; }; } ;; | |
18033 | esac | |
18034 | else | |
18035 | if test "$cross_compiling" = yes; then | |
d25774ab JS |
18036 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
18037 | See \`config.log' for more details." >&5 | |
18038 | echo "$as_me: error: cannot run test program while cross compiling | |
18039 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
18040 | { (exit 1); exit 1; }; } |
18041 | else | |
18042 | cat >conftest.$ac_ext <<_ACEOF | |
18043 | /* confdefs.h. */ | |
18044 | _ACEOF | |
18045 | cat confdefs.h >>conftest.$ac_ext | |
18046 | cat >>conftest.$ac_ext <<_ACEOF | |
18047 | /* end confdefs.h. */ | |
18048 | $ac_includes_default | |
18049 | long longval () { return (long) (sizeof (short)); } | |
18050 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
18051 | #include <stdio.h> | |
18052 | #include <stdlib.h> | |
18053 | int | |
18054 | main () | |
18055 | { | |
18056 | ||
18057 | FILE *f = fopen ("conftest.val", "w"); | |
18058 | if (! f) | |
18059 | exit (1); | |
18060 | if (((long) (sizeof (short))) < 0) | |
18061 | { | |
18062 | long i = longval (); | |
18063 | if (i != ((long) (sizeof (short)))) | |
18064 | exit (1); | |
18065 | fprintf (f, "%ld\n", i); | |
18066 | } | |
18067 | else | |
18068 | { | |
18069 | unsigned long i = ulongval (); | |
18070 | if (i != ((long) (sizeof (short)))) | |
18071 | exit (1); | |
18072 | fprintf (f, "%lu\n", i); | |
18073 | } | |
18074 | exit (ferror (f) || fclose (f) != 0); | |
18075 | ||
18076 | ; | |
18077 | return 0; | |
18078 | } | |
18079 | _ACEOF | |
18080 | rm -f conftest$ac_exeext | |
18081 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18082 | (eval $ac_link) 2>&5 | |
18083 | ac_status=$? | |
18084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18085 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18087 | (eval $ac_try) 2>&5 | |
18088 | ac_status=$? | |
18089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18090 | (exit $ac_status); }; }; then | |
18091 | ac_cv_sizeof_short=`cat conftest.val` | |
18092 | else | |
18093 | echo "$as_me: program exited with status $ac_status" >&5 | |
18094 | echo "$as_me: failed program was:" >&5 | |
18095 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18096 | ||
18097 | ( exit $ac_status ) | |
18098 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
18099 | See \`config.log' for more details." >&5 | |
18100 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
18101 | See \`config.log' for more details." >&2;} | |
18102 | { (exit 1); exit 1; }; } | |
18103 | fi | |
ac1cb8d3 | 18104 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18105 | fi |
18106 | fi | |
18107 | rm -f conftest.val | |
18108 | else | |
18109 | ac_cv_sizeof_short=0 | |
18110 | fi | |
18111 | fi | |
18112 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
18113 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
18114 | cat >>confdefs.h <<_ACEOF | |
18115 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
18116 | _ACEOF | |
18117 | ||
18118 | ||
18119 | echo "$as_me:$LINENO: checking for void *" >&5 | |
18120 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
18121 | if test "${ac_cv_type_void_p+set}" = set; then | |
18122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18123 | else | |
18124 | cat >conftest.$ac_ext <<_ACEOF | |
18125 | /* confdefs.h. */ | |
18126 | _ACEOF | |
18127 | cat confdefs.h >>conftest.$ac_ext | |
18128 | cat >>conftest.$ac_ext <<_ACEOF | |
18129 | /* end confdefs.h. */ | |
18130 | $ac_includes_default | |
18131 | int | |
18132 | main () | |
18133 | { | |
18134 | if ((void * *) 0) | |
18135 | return 0; | |
18136 | if (sizeof (void *)) | |
18137 | return 0; | |
18138 | ; | |
18139 | return 0; | |
18140 | } | |
18141 | _ACEOF | |
18142 | rm -f conftest.$ac_objext | |
18143 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18144 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18145 | ac_status=$? |
ac1cb8d3 VS |
18146 | grep -v '^ *+' conftest.er1 >conftest.err |
18147 | rm -f conftest.er1 | |
18148 | cat conftest.err >&5 | |
a848cd7e SC |
18149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18150 | (exit $ac_status); } && | |
d25774ab JS |
18151 | { ac_try='test -z "$ac_cxx_werror_flag" |
18152 | || 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_cv_type_void_p=yes | |
18165 | else | |
18166 | echo "$as_me: failed program was:" >&5 | |
18167 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18168 | ||
18169 | ac_cv_type_void_p=no | |
18170 | fi | |
ac1cb8d3 | 18171 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18172 | fi |
18173 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
18174 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
18175 | ||
18176 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
18177 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
18178 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
18179 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18180 | else | |
18181 | if test "$ac_cv_type_void_p" = yes; then | |
18182 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18183 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18184 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18185 | # This bug is HP SR number 8606223364. | |
18186 | if test "$cross_compiling" = yes; then | |
18187 | # Depending upon the size, compute the lo and hi bounds. | |
18188 | cat >conftest.$ac_ext <<_ACEOF | |
18189 | /* confdefs.h. */ | |
18190 | _ACEOF | |
18191 | cat confdefs.h >>conftest.$ac_ext | |
18192 | cat >>conftest.$ac_ext <<_ACEOF | |
18193 | /* end confdefs.h. */ | |
18194 | $ac_includes_default | |
18195 | int | |
18196 | main () | |
18197 | { | |
18198 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
18199 | test_array [0] = 0 | |
18200 | ||
18201 | ; | |
18202 | return 0; | |
18203 | } | |
18204 | _ACEOF | |
18205 | rm -f conftest.$ac_objext | |
18206 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18207 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18208 | ac_status=$? |
ac1cb8d3 VS |
18209 | grep -v '^ *+' conftest.er1 >conftest.err |
18210 | rm -f conftest.er1 | |
18211 | cat conftest.err >&5 | |
a848cd7e SC |
18212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18213 | (exit $ac_status); } && | |
d25774ab JS |
18214 | { ac_try='test -z "$ac_cxx_werror_flag" |
18215 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18217 | (eval $ac_try) 2>&5 | |
18218 | ac_status=$? | |
18219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18220 | (exit $ac_status); }; } && | |
18221 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18223 | (eval $ac_try) 2>&5 | |
18224 | ac_status=$? | |
18225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18226 | (exit $ac_status); }; }; then | |
18227 | ac_lo=0 ac_mid=0 | |
18228 | while :; do | |
18229 | cat >conftest.$ac_ext <<_ACEOF | |
18230 | /* confdefs.h. */ | |
18231 | _ACEOF | |
18232 | cat confdefs.h >>conftest.$ac_ext | |
18233 | cat >>conftest.$ac_ext <<_ACEOF | |
18234 | /* end confdefs.h. */ | |
18235 | $ac_includes_default | |
18236 | int | |
18237 | main () | |
18238 | { | |
18239 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
18240 | test_array [0] = 0 | |
18241 | ||
18242 | ; | |
18243 | return 0; | |
18244 | } | |
18245 | _ACEOF | |
18246 | rm -f conftest.$ac_objext | |
18247 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18248 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18249 | ac_status=$? |
ac1cb8d3 VS |
18250 | grep -v '^ *+' conftest.er1 >conftest.err |
18251 | rm -f conftest.er1 | |
18252 | cat conftest.err >&5 | |
a848cd7e SC |
18253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18254 | (exit $ac_status); } && | |
d25774ab JS |
18255 | { ac_try='test -z "$ac_cxx_werror_flag" |
18256 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18258 | (eval $ac_try) 2>&5 | |
18259 | ac_status=$? | |
18260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18261 | (exit $ac_status); }; } && | |
18262 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18264 | (eval $ac_try) 2>&5 | |
18265 | ac_status=$? | |
18266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18267 | (exit $ac_status); }; }; then | |
18268 | ac_hi=$ac_mid; break | |
18269 | else | |
18270 | echo "$as_me: failed program was:" >&5 | |
18271 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18272 | ||
18273 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18274 | if test $ac_lo -le $ac_mid; then |
18275 | ac_lo= ac_hi= | |
18276 | break | |
18277 | fi | |
18278 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18279 | fi |
ac1cb8d3 | 18280 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18281 | done |
18282 | else | |
18283 | echo "$as_me: failed program was:" >&5 | |
18284 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18285 | ||
18286 | cat >conftest.$ac_ext <<_ACEOF | |
18287 | /* confdefs.h. */ | |
18288 | _ACEOF | |
18289 | cat confdefs.h >>conftest.$ac_ext | |
18290 | cat >>conftest.$ac_ext <<_ACEOF | |
18291 | /* end confdefs.h. */ | |
18292 | $ac_includes_default | |
18293 | int | |
18294 | main () | |
18295 | { | |
18296 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
18297 | test_array [0] = 0 | |
18298 | ||
18299 | ; | |
18300 | return 0; | |
18301 | } | |
18302 | _ACEOF | |
18303 | rm -f conftest.$ac_objext | |
18304 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18305 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18306 | ac_status=$? |
ac1cb8d3 VS |
18307 | grep -v '^ *+' conftest.er1 >conftest.err |
18308 | rm -f conftest.er1 | |
18309 | cat conftest.err >&5 | |
a848cd7e SC |
18310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18311 | (exit $ac_status); } && | |
d25774ab JS |
18312 | { ac_try='test -z "$ac_cxx_werror_flag" |
18313 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18315 | (eval $ac_try) 2>&5 | |
18316 | ac_status=$? | |
18317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18318 | (exit $ac_status); }; } && | |
18319 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18321 | (eval $ac_try) 2>&5 | |
18322 | ac_status=$? | |
18323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18324 | (exit $ac_status); }; }; then | |
18325 | ac_hi=-1 ac_mid=-1 | |
18326 | while :; do | |
18327 | cat >conftest.$ac_ext <<_ACEOF | |
18328 | /* confdefs.h. */ | |
18329 | _ACEOF | |
18330 | cat confdefs.h >>conftest.$ac_ext | |
18331 | cat >>conftest.$ac_ext <<_ACEOF | |
18332 | /* end confdefs.h. */ | |
18333 | $ac_includes_default | |
18334 | int | |
18335 | main () | |
18336 | { | |
18337 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
18338 | test_array [0] = 0 | |
18339 | ||
18340 | ; | |
18341 | return 0; | |
18342 | } | |
18343 | _ACEOF | |
18344 | rm -f conftest.$ac_objext | |
18345 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18346 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18347 | ac_status=$? |
ac1cb8d3 VS |
18348 | grep -v '^ *+' conftest.er1 >conftest.err |
18349 | rm -f conftest.er1 | |
18350 | cat conftest.err >&5 | |
a848cd7e SC |
18351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18352 | (exit $ac_status); } && | |
d25774ab JS |
18353 | { ac_try='test -z "$ac_cxx_werror_flag" |
18354 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18356 | (eval $ac_try) 2>&5 | |
18357 | ac_status=$? | |
18358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18359 | (exit $ac_status); }; } && | |
18360 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18362 | (eval $ac_try) 2>&5 | |
18363 | ac_status=$? | |
18364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18365 | (exit $ac_status); }; }; then | |
18366 | ac_lo=$ac_mid; break | |
18367 | else | |
18368 | echo "$as_me: failed program was:" >&5 | |
18369 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18370 | ||
18371 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18372 | if test $ac_mid -le $ac_hi; then |
18373 | ac_lo= ac_hi= | |
18374 | break | |
18375 | fi | |
18376 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18377 | fi |
ac1cb8d3 | 18378 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18379 | done |
18380 | else | |
18381 | echo "$as_me: failed program was:" >&5 | |
18382 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18383 | ||
18384 | ac_lo= ac_hi= | |
18385 | fi | |
ac1cb8d3 | 18386 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18387 | fi |
ac1cb8d3 | 18388 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18389 | # Binary search between lo and hi bounds. |
18390 | while test "x$ac_lo" != "x$ac_hi"; do | |
18391 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18392 | cat >conftest.$ac_ext <<_ACEOF | |
18393 | /* confdefs.h. */ | |
18394 | _ACEOF | |
18395 | cat confdefs.h >>conftest.$ac_ext | |
18396 | cat >>conftest.$ac_ext <<_ACEOF | |
18397 | /* end confdefs.h. */ | |
18398 | $ac_includes_default | |
18399 | int | |
18400 | main () | |
18401 | { | |
18402 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
18403 | test_array [0] = 0 | |
18404 | ||
18405 | ; | |
18406 | return 0; | |
18407 | } | |
18408 | _ACEOF | |
18409 | rm -f conftest.$ac_objext | |
18410 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18411 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18412 | ac_status=$? |
ac1cb8d3 VS |
18413 | grep -v '^ *+' conftest.er1 >conftest.err |
18414 | rm -f conftest.er1 | |
18415 | cat conftest.err >&5 | |
a848cd7e SC |
18416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18417 | (exit $ac_status); } && | |
d25774ab JS |
18418 | { ac_try='test -z "$ac_cxx_werror_flag" |
18419 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18421 | (eval $ac_try) 2>&5 | |
18422 | ac_status=$? | |
18423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18424 | (exit $ac_status); }; } && | |
18425 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18427 | (eval $ac_try) 2>&5 | |
18428 | ac_status=$? | |
18429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18430 | (exit $ac_status); }; }; then | |
18431 | ac_hi=$ac_mid | |
18432 | else | |
18433 | echo "$as_me: failed program was:" >&5 | |
18434 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18435 | ||
18436 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18437 | fi | |
ac1cb8d3 | 18438 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18439 | done |
18440 | case $ac_lo in | |
18441 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
18442 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
18443 | See \`config.log' for more details." >&5 | |
18444 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
18445 | See \`config.log' for more details." >&2;} | |
18446 | { (exit 1); exit 1; }; } ;; | |
18447 | esac | |
18448 | else | |
18449 | if test "$cross_compiling" = yes; then | |
d25774ab JS |
18450 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
18451 | See \`config.log' for more details." >&5 | |
18452 | echo "$as_me: error: cannot run test program while cross compiling | |
18453 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
18454 | { (exit 1); exit 1; }; } |
18455 | else | |
18456 | cat >conftest.$ac_ext <<_ACEOF | |
18457 | /* confdefs.h. */ | |
18458 | _ACEOF | |
18459 | cat confdefs.h >>conftest.$ac_ext | |
18460 | cat >>conftest.$ac_ext <<_ACEOF | |
18461 | /* end confdefs.h. */ | |
18462 | $ac_includes_default | |
18463 | long longval () { return (long) (sizeof (void *)); } | |
18464 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
18465 | #include <stdio.h> | |
18466 | #include <stdlib.h> | |
18467 | int | |
18468 | main () | |
18469 | { | |
18470 | ||
18471 | FILE *f = fopen ("conftest.val", "w"); | |
18472 | if (! f) | |
18473 | exit (1); | |
18474 | if (((long) (sizeof (void *))) < 0) | |
18475 | { | |
18476 | long i = longval (); | |
18477 | if (i != ((long) (sizeof (void *)))) | |
18478 | exit (1); | |
18479 | fprintf (f, "%ld\n", i); | |
18480 | } | |
18481 | else | |
18482 | { | |
18483 | unsigned long i = ulongval (); | |
18484 | if (i != ((long) (sizeof (void *)))) | |
18485 | exit (1); | |
18486 | fprintf (f, "%lu\n", i); | |
18487 | } | |
18488 | exit (ferror (f) || fclose (f) != 0); | |
18489 | ||
18490 | ; | |
18491 | return 0; | |
18492 | } | |
18493 | _ACEOF | |
18494 | rm -f conftest$ac_exeext | |
18495 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18496 | (eval $ac_link) 2>&5 | |
18497 | ac_status=$? | |
18498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18499 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18501 | (eval $ac_try) 2>&5 | |
18502 | ac_status=$? | |
18503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18504 | (exit $ac_status); }; }; then | |
18505 | ac_cv_sizeof_void_p=`cat conftest.val` | |
18506 | else | |
18507 | echo "$as_me: program exited with status $ac_status" >&5 | |
18508 | echo "$as_me: failed program was:" >&5 | |
18509 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18510 | ||
18511 | ( exit $ac_status ) | |
18512 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
18513 | See \`config.log' for more details." >&5 | |
18514 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
18515 | See \`config.log' for more details." >&2;} | |
18516 | { (exit 1); exit 1; }; } | |
18517 | fi | |
ac1cb8d3 | 18518 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18519 | fi |
18520 | fi | |
18521 | rm -f conftest.val | |
18522 | else | |
18523 | ac_cv_sizeof_void_p=0 | |
18524 | fi | |
18525 | fi | |
18526 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
18527 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
18528 | cat >>confdefs.h <<_ACEOF | |
18529 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
18530 | _ACEOF | |
18531 | ||
18532 | ||
18533 | echo "$as_me:$LINENO: checking for int" >&5 | |
18534 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
18535 | if test "${ac_cv_type_int+set}" = set; then | |
18536 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18537 | else | |
18538 | cat >conftest.$ac_ext <<_ACEOF | |
18539 | /* confdefs.h. */ | |
18540 | _ACEOF | |
18541 | cat confdefs.h >>conftest.$ac_ext | |
18542 | cat >>conftest.$ac_ext <<_ACEOF | |
18543 | /* end confdefs.h. */ | |
18544 | $ac_includes_default | |
18545 | int | |
18546 | main () | |
18547 | { | |
18548 | if ((int *) 0) | |
18549 | return 0; | |
18550 | if (sizeof (int)) | |
18551 | return 0; | |
18552 | ; | |
18553 | return 0; | |
18554 | } | |
18555 | _ACEOF | |
18556 | rm -f conftest.$ac_objext | |
18557 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18558 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18559 | ac_status=$? |
ac1cb8d3 VS |
18560 | grep -v '^ *+' conftest.er1 >conftest.err |
18561 | rm -f conftest.er1 | |
18562 | cat conftest.err >&5 | |
a848cd7e SC |
18563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18564 | (exit $ac_status); } && | |
d25774ab JS |
18565 | { ac_try='test -z "$ac_cxx_werror_flag" |
18566 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18568 | (eval $ac_try) 2>&5 | |
18569 | ac_status=$? | |
18570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18571 | (exit $ac_status); }; } && | |
18572 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18574 | (eval $ac_try) 2>&5 | |
18575 | ac_status=$? | |
18576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18577 | (exit $ac_status); }; }; then | |
18578 | ac_cv_type_int=yes | |
18579 | else | |
18580 | echo "$as_me: failed program was:" >&5 | |
18581 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18582 | ||
18583 | ac_cv_type_int=no | |
18584 | fi | |
ac1cb8d3 | 18585 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18586 | fi |
18587 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
18588 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
18589 | ||
18590 | echo "$as_me:$LINENO: checking size of int" >&5 | |
18591 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
18592 | if test "${ac_cv_sizeof_int+set}" = set; then | |
18593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18594 | else | |
18595 | if test "$ac_cv_type_int" = yes; then | |
18596 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18597 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18598 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18599 | # This bug is HP SR number 8606223364. | |
18600 | if test "$cross_compiling" = yes; then | |
18601 | # Depending upon the size, compute the lo and hi bounds. | |
18602 | cat >conftest.$ac_ext <<_ACEOF | |
18603 | /* confdefs.h. */ | |
18604 | _ACEOF | |
18605 | cat confdefs.h >>conftest.$ac_ext | |
18606 | cat >>conftest.$ac_ext <<_ACEOF | |
18607 | /* end confdefs.h. */ | |
18608 | $ac_includes_default | |
18609 | int | |
18610 | main () | |
18611 | { | |
18612 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
18613 | test_array [0] = 0 | |
18614 | ||
18615 | ; | |
18616 | return 0; | |
18617 | } | |
18618 | _ACEOF | |
18619 | rm -f conftest.$ac_objext | |
18620 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18621 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18622 | ac_status=$? |
ac1cb8d3 VS |
18623 | grep -v '^ *+' conftest.er1 >conftest.err |
18624 | rm -f conftest.er1 | |
18625 | cat conftest.err >&5 | |
a848cd7e SC |
18626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18627 | (exit $ac_status); } && | |
d25774ab JS |
18628 | { ac_try='test -z "$ac_cxx_werror_flag" |
18629 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18631 | (eval $ac_try) 2>&5 | |
18632 | ac_status=$? | |
18633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18634 | (exit $ac_status); }; } && | |
18635 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18637 | (eval $ac_try) 2>&5 | |
18638 | ac_status=$? | |
18639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18640 | (exit $ac_status); }; }; then | |
18641 | ac_lo=0 ac_mid=0 | |
18642 | while :; do | |
18643 | cat >conftest.$ac_ext <<_ACEOF | |
18644 | /* confdefs.h. */ | |
18645 | _ACEOF | |
18646 | cat confdefs.h >>conftest.$ac_ext | |
18647 | cat >>conftest.$ac_ext <<_ACEOF | |
18648 | /* end confdefs.h. */ | |
18649 | $ac_includes_default | |
18650 | int | |
18651 | main () | |
18652 | { | |
18653 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
18654 | test_array [0] = 0 | |
18655 | ||
18656 | ; | |
18657 | return 0; | |
18658 | } | |
18659 | _ACEOF | |
18660 | rm -f conftest.$ac_objext | |
18661 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18662 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18663 | ac_status=$? |
ac1cb8d3 VS |
18664 | grep -v '^ *+' conftest.er1 >conftest.err |
18665 | rm -f conftest.er1 | |
18666 | cat conftest.err >&5 | |
a848cd7e SC |
18667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18668 | (exit $ac_status); } && | |
d25774ab JS |
18669 | { ac_try='test -z "$ac_cxx_werror_flag" |
18670 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18672 | (eval $ac_try) 2>&5 | |
18673 | ac_status=$? | |
18674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18675 | (exit $ac_status); }; } && | |
18676 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18678 | (eval $ac_try) 2>&5 | |
18679 | ac_status=$? | |
18680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18681 | (exit $ac_status); }; }; then | |
18682 | ac_hi=$ac_mid; break | |
18683 | else | |
18684 | echo "$as_me: failed program was:" >&5 | |
18685 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18686 | ||
18687 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18688 | if test $ac_lo -le $ac_mid; then |
18689 | ac_lo= ac_hi= | |
18690 | break | |
18691 | fi | |
18692 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18693 | fi |
ac1cb8d3 | 18694 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18695 | done |
18696 | else | |
18697 | echo "$as_me: failed program was:" >&5 | |
18698 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18699 | ||
18700 | cat >conftest.$ac_ext <<_ACEOF | |
18701 | /* confdefs.h. */ | |
18702 | _ACEOF | |
18703 | cat confdefs.h >>conftest.$ac_ext | |
18704 | cat >>conftest.$ac_ext <<_ACEOF | |
18705 | /* end confdefs.h. */ | |
18706 | $ac_includes_default | |
18707 | int | |
18708 | main () | |
18709 | { | |
18710 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
18711 | test_array [0] = 0 | |
18712 | ||
18713 | ; | |
18714 | return 0; | |
18715 | } | |
18716 | _ACEOF | |
18717 | rm -f conftest.$ac_objext | |
18718 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18719 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18720 | ac_status=$? |
ac1cb8d3 VS |
18721 | grep -v '^ *+' conftest.er1 >conftest.err |
18722 | rm -f conftest.er1 | |
18723 | cat conftest.err >&5 | |
a848cd7e SC |
18724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18725 | (exit $ac_status); } && | |
d25774ab JS |
18726 | { ac_try='test -z "$ac_cxx_werror_flag" |
18727 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18729 | (eval $ac_try) 2>&5 | |
18730 | ac_status=$? | |
18731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18732 | (exit $ac_status); }; } && | |
18733 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18735 | (eval $ac_try) 2>&5 | |
18736 | ac_status=$? | |
18737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18738 | (exit $ac_status); }; }; then | |
18739 | ac_hi=-1 ac_mid=-1 | |
18740 | while :; do | |
18741 | cat >conftest.$ac_ext <<_ACEOF | |
18742 | /* confdefs.h. */ | |
18743 | _ACEOF | |
18744 | cat confdefs.h >>conftest.$ac_ext | |
18745 | cat >>conftest.$ac_ext <<_ACEOF | |
18746 | /* end confdefs.h. */ | |
18747 | $ac_includes_default | |
18748 | int | |
18749 | main () | |
18750 | { | |
18751 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
18752 | test_array [0] = 0 | |
18753 | ||
18754 | ; | |
18755 | return 0; | |
18756 | } | |
18757 | _ACEOF | |
18758 | rm -f conftest.$ac_objext | |
18759 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18760 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18761 | ac_status=$? |
ac1cb8d3 VS |
18762 | grep -v '^ *+' conftest.er1 >conftest.err |
18763 | rm -f conftest.er1 | |
18764 | cat conftest.err >&5 | |
a848cd7e SC |
18765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18766 | (exit $ac_status); } && | |
d25774ab JS |
18767 | { ac_try='test -z "$ac_cxx_werror_flag" |
18768 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18770 | (eval $ac_try) 2>&5 | |
18771 | ac_status=$? | |
18772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18773 | (exit $ac_status); }; } && | |
18774 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18776 | (eval $ac_try) 2>&5 | |
18777 | ac_status=$? | |
18778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18779 | (exit $ac_status); }; }; then | |
18780 | ac_lo=$ac_mid; break | |
18781 | else | |
18782 | echo "$as_me: failed program was:" >&5 | |
18783 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18784 | ||
18785 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18786 | if test $ac_mid -le $ac_hi; then |
18787 | ac_lo= ac_hi= | |
18788 | break | |
18789 | fi | |
18790 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18791 | fi |
ac1cb8d3 | 18792 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18793 | done |
18794 | else | |
18795 | echo "$as_me: failed program was:" >&5 | |
18796 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18797 | ||
18798 | ac_lo= ac_hi= | |
18799 | fi | |
ac1cb8d3 | 18800 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18801 | fi |
ac1cb8d3 | 18802 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18803 | # Binary search between lo and hi bounds. |
18804 | while test "x$ac_lo" != "x$ac_hi"; do | |
18805 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18806 | cat >conftest.$ac_ext <<_ACEOF | |
18807 | /* confdefs.h. */ | |
18808 | _ACEOF | |
18809 | cat confdefs.h >>conftest.$ac_ext | |
18810 | cat >>conftest.$ac_ext <<_ACEOF | |
18811 | /* end confdefs.h. */ | |
18812 | $ac_includes_default | |
18813 | int | |
18814 | main () | |
18815 | { | |
18816 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
18817 | test_array [0] = 0 | |
18818 | ||
18819 | ; | |
18820 | return 0; | |
18821 | } | |
18822 | _ACEOF | |
18823 | rm -f conftest.$ac_objext | |
18824 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18825 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18826 | ac_status=$? |
ac1cb8d3 VS |
18827 | grep -v '^ *+' conftest.er1 >conftest.err |
18828 | rm -f conftest.er1 | |
18829 | cat conftest.err >&5 | |
a848cd7e SC |
18830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18831 | (exit $ac_status); } && | |
d25774ab JS |
18832 | { ac_try='test -z "$ac_cxx_werror_flag" |
18833 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18835 | (eval $ac_try) 2>&5 | |
18836 | ac_status=$? | |
18837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18838 | (exit $ac_status); }; } && | |
18839 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18841 | (eval $ac_try) 2>&5 | |
18842 | ac_status=$? | |
18843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18844 | (exit $ac_status); }; }; then | |
18845 | ac_hi=$ac_mid | |
18846 | else | |
18847 | echo "$as_me: failed program was:" >&5 | |
18848 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18849 | ||
18850 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18851 | fi | |
ac1cb8d3 | 18852 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18853 | done |
18854 | case $ac_lo in | |
18855 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
18856 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
18857 | See \`config.log' for more details." >&5 | |
18858 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
18859 | See \`config.log' for more details." >&2;} | |
18860 | { (exit 1); exit 1; }; } ;; | |
18861 | esac | |
18862 | else | |
18863 | if test "$cross_compiling" = yes; then | |
d25774ab JS |
18864 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
18865 | See \`config.log' for more details." >&5 | |
18866 | echo "$as_me: error: cannot run test program while cross compiling | |
18867 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
18868 | { (exit 1); exit 1; }; } |
18869 | else | |
18870 | cat >conftest.$ac_ext <<_ACEOF | |
18871 | /* confdefs.h. */ | |
18872 | _ACEOF | |
18873 | cat confdefs.h >>conftest.$ac_ext | |
18874 | cat >>conftest.$ac_ext <<_ACEOF | |
18875 | /* end confdefs.h. */ | |
18876 | $ac_includes_default | |
18877 | long longval () { return (long) (sizeof (int)); } | |
18878 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
18879 | #include <stdio.h> | |
18880 | #include <stdlib.h> | |
18881 | int | |
18882 | main () | |
18883 | { | |
18884 | ||
18885 | FILE *f = fopen ("conftest.val", "w"); | |
18886 | if (! f) | |
18887 | exit (1); | |
18888 | if (((long) (sizeof (int))) < 0) | |
18889 | { | |
18890 | long i = longval (); | |
18891 | if (i != ((long) (sizeof (int)))) | |
18892 | exit (1); | |
18893 | fprintf (f, "%ld\n", i); | |
18894 | } | |
18895 | else | |
18896 | { | |
18897 | unsigned long i = ulongval (); | |
18898 | if (i != ((long) (sizeof (int)))) | |
18899 | exit (1); | |
18900 | fprintf (f, "%lu\n", i); | |
18901 | } | |
18902 | exit (ferror (f) || fclose (f) != 0); | |
18903 | ||
18904 | ; | |
18905 | return 0; | |
18906 | } | |
18907 | _ACEOF | |
18908 | rm -f conftest$ac_exeext | |
18909 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18910 | (eval $ac_link) 2>&5 | |
18911 | ac_status=$? | |
18912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18913 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18915 | (eval $ac_try) 2>&5 | |
18916 | ac_status=$? | |
18917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18918 | (exit $ac_status); }; }; then | |
18919 | ac_cv_sizeof_int=`cat conftest.val` | |
18920 | else | |
18921 | echo "$as_me: program exited with status $ac_status" >&5 | |
18922 | echo "$as_me: failed program was:" >&5 | |
18923 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18924 | ||
18925 | ( exit $ac_status ) | |
18926 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
18927 | See \`config.log' for more details." >&5 | |
18928 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
18929 | See \`config.log' for more details." >&2;} | |
18930 | { (exit 1); exit 1; }; } | |
18931 | fi | |
ac1cb8d3 | 18932 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18933 | fi |
18934 | fi | |
18935 | rm -f conftest.val | |
18936 | else | |
18937 | ac_cv_sizeof_int=0 | |
18938 | fi | |
18939 | fi | |
18940 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
18941 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
18942 | cat >>confdefs.h <<_ACEOF | |
18943 | #define SIZEOF_INT $ac_cv_sizeof_int | |
18944 | _ACEOF | |
18945 | ||
18946 | ||
18947 | echo "$as_me:$LINENO: checking for long" >&5 | |
18948 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
18949 | if test "${ac_cv_type_long+set}" = set; then | |
18950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18951 | else | |
18952 | cat >conftest.$ac_ext <<_ACEOF | |
18953 | /* confdefs.h. */ | |
18954 | _ACEOF | |
18955 | cat confdefs.h >>conftest.$ac_ext | |
18956 | cat >>conftest.$ac_ext <<_ACEOF | |
18957 | /* end confdefs.h. */ | |
18958 | $ac_includes_default | |
18959 | int | |
18960 | main () | |
18961 | { | |
18962 | if ((long *) 0) | |
18963 | return 0; | |
18964 | if (sizeof (long)) | |
18965 | return 0; | |
18966 | ; | |
18967 | return 0; | |
18968 | } | |
18969 | _ACEOF | |
18970 | rm -f conftest.$ac_objext | |
18971 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18972 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18973 | ac_status=$? |
ac1cb8d3 VS |
18974 | grep -v '^ *+' conftest.er1 >conftest.err |
18975 | rm -f conftest.er1 | |
18976 | cat conftest.err >&5 | |
a848cd7e SC |
18977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18978 | (exit $ac_status); } && | |
d25774ab JS |
18979 | { ac_try='test -z "$ac_cxx_werror_flag" |
18980 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18982 | (eval $ac_try) 2>&5 | |
18983 | ac_status=$? | |
18984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18985 | (exit $ac_status); }; } && | |
18986 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18988 | (eval $ac_try) 2>&5 | |
18989 | ac_status=$? | |
18990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18991 | (exit $ac_status); }; }; then | |
18992 | ac_cv_type_long=yes | |
18993 | else | |
18994 | echo "$as_me: failed program was:" >&5 | |
18995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18996 | ||
18997 | ac_cv_type_long=no | |
18998 | fi | |
ac1cb8d3 | 18999 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19000 | fi |
19001 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
19002 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
19003 | ||
19004 | echo "$as_me:$LINENO: checking size of long" >&5 | |
19005 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
19006 | if test "${ac_cv_sizeof_long+set}" = set; then | |
19007 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19008 | else | |
19009 | if test "$ac_cv_type_long" = yes; then | |
19010 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19011 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19012 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19013 | # This bug is HP SR number 8606223364. | |
19014 | if test "$cross_compiling" = yes; then | |
19015 | # Depending upon the size, compute the lo and hi bounds. | |
19016 | cat >conftest.$ac_ext <<_ACEOF | |
19017 | /* confdefs.h. */ | |
19018 | _ACEOF | |
19019 | cat confdefs.h >>conftest.$ac_ext | |
19020 | cat >>conftest.$ac_ext <<_ACEOF | |
19021 | /* end confdefs.h. */ | |
19022 | $ac_includes_default | |
19023 | int | |
19024 | main () | |
19025 | { | |
19026 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
19027 | test_array [0] = 0 | |
19028 | ||
19029 | ; | |
19030 | return 0; | |
19031 | } | |
19032 | _ACEOF | |
19033 | rm -f conftest.$ac_objext | |
19034 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19035 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19036 | ac_status=$? |
ac1cb8d3 VS |
19037 | grep -v '^ *+' conftest.er1 >conftest.err |
19038 | rm -f conftest.er1 | |
19039 | cat conftest.err >&5 | |
a848cd7e SC |
19040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19041 | (exit $ac_status); } && | |
d25774ab JS |
19042 | { ac_try='test -z "$ac_cxx_werror_flag" |
19043 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19045 | (eval $ac_try) 2>&5 | |
19046 | ac_status=$? | |
19047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19048 | (exit $ac_status); }; } && | |
19049 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19051 | (eval $ac_try) 2>&5 | |
19052 | ac_status=$? | |
19053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19054 | (exit $ac_status); }; }; then | |
19055 | ac_lo=0 ac_mid=0 | |
19056 | while :; do | |
19057 | cat >conftest.$ac_ext <<_ACEOF | |
19058 | /* confdefs.h. */ | |
19059 | _ACEOF | |
19060 | cat confdefs.h >>conftest.$ac_ext | |
19061 | cat >>conftest.$ac_ext <<_ACEOF | |
19062 | /* end confdefs.h. */ | |
19063 | $ac_includes_default | |
19064 | int | |
19065 | main () | |
19066 | { | |
19067 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
19068 | test_array [0] = 0 | |
19069 | ||
19070 | ; | |
19071 | return 0; | |
19072 | } | |
19073 | _ACEOF | |
19074 | rm -f conftest.$ac_objext | |
19075 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19076 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19077 | ac_status=$? |
ac1cb8d3 VS |
19078 | grep -v '^ *+' conftest.er1 >conftest.err |
19079 | rm -f conftest.er1 | |
19080 | cat conftest.err >&5 | |
a848cd7e SC |
19081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19082 | (exit $ac_status); } && | |
d25774ab JS |
19083 | { ac_try='test -z "$ac_cxx_werror_flag" |
19084 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19086 | (eval $ac_try) 2>&5 | |
19087 | ac_status=$? | |
19088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19089 | (exit $ac_status); }; } && | |
19090 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19092 | (eval $ac_try) 2>&5 | |
19093 | ac_status=$? | |
19094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19095 | (exit $ac_status); }; }; then | |
19096 | ac_hi=$ac_mid; break | |
19097 | else | |
19098 | echo "$as_me: failed program was:" >&5 | |
19099 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19100 | ||
19101 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
19102 | if test $ac_lo -le $ac_mid; then |
19103 | ac_lo= ac_hi= | |
19104 | break | |
19105 | fi | |
19106 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 19107 | fi |
ac1cb8d3 | 19108 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19109 | done |
19110 | else | |
19111 | echo "$as_me: failed program was:" >&5 | |
19112 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19113 | ||
19114 | cat >conftest.$ac_ext <<_ACEOF | |
19115 | /* confdefs.h. */ | |
19116 | _ACEOF | |
19117 | cat confdefs.h >>conftest.$ac_ext | |
19118 | cat >>conftest.$ac_ext <<_ACEOF | |
19119 | /* end confdefs.h. */ | |
19120 | $ac_includes_default | |
19121 | int | |
19122 | main () | |
19123 | { | |
19124 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
19125 | test_array [0] = 0 | |
19126 | ||
19127 | ; | |
19128 | return 0; | |
19129 | } | |
19130 | _ACEOF | |
19131 | rm -f conftest.$ac_objext | |
19132 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19133 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19134 | ac_status=$? |
ac1cb8d3 VS |
19135 | grep -v '^ *+' conftest.er1 >conftest.err |
19136 | rm -f conftest.er1 | |
19137 | cat conftest.err >&5 | |
a848cd7e SC |
19138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19139 | (exit $ac_status); } && | |
d25774ab JS |
19140 | { ac_try='test -z "$ac_cxx_werror_flag" |
19141 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19143 | (eval $ac_try) 2>&5 | |
19144 | ac_status=$? | |
19145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19146 | (exit $ac_status); }; } && | |
19147 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19149 | (eval $ac_try) 2>&5 | |
19150 | ac_status=$? | |
19151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19152 | (exit $ac_status); }; }; then | |
19153 | ac_hi=-1 ac_mid=-1 | |
19154 | while :; do | |
19155 | cat >conftest.$ac_ext <<_ACEOF | |
19156 | /* confdefs.h. */ | |
19157 | _ACEOF | |
19158 | cat confdefs.h >>conftest.$ac_ext | |
19159 | cat >>conftest.$ac_ext <<_ACEOF | |
19160 | /* end confdefs.h. */ | |
19161 | $ac_includes_default | |
19162 | int | |
19163 | main () | |
19164 | { | |
19165 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
19166 | test_array [0] = 0 | |
19167 | ||
19168 | ; | |
19169 | return 0; | |
19170 | } | |
19171 | _ACEOF | |
19172 | rm -f conftest.$ac_objext | |
19173 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19174 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19175 | ac_status=$? |
ac1cb8d3 VS |
19176 | grep -v '^ *+' conftest.er1 >conftest.err |
19177 | rm -f conftest.er1 | |
19178 | cat conftest.err >&5 | |
a848cd7e SC |
19179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19180 | (exit $ac_status); } && | |
d25774ab JS |
19181 | { ac_try='test -z "$ac_cxx_werror_flag" |
19182 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19184 | (eval $ac_try) 2>&5 | |
19185 | ac_status=$? | |
19186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19187 | (exit $ac_status); }; } && | |
19188 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19190 | (eval $ac_try) 2>&5 | |
19191 | ac_status=$? | |
19192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19193 | (exit $ac_status); }; }; then | |
19194 | ac_lo=$ac_mid; break | |
19195 | else | |
19196 | echo "$as_me: failed program was:" >&5 | |
19197 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19198 | ||
19199 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
19200 | if test $ac_mid -le $ac_hi; then |
19201 | ac_lo= ac_hi= | |
19202 | break | |
19203 | fi | |
19204 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 19205 | fi |
ac1cb8d3 | 19206 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19207 | done |
19208 | else | |
19209 | echo "$as_me: failed program was:" >&5 | |
19210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19211 | ||
19212 | ac_lo= ac_hi= | |
19213 | fi | |
ac1cb8d3 | 19214 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19215 | fi |
ac1cb8d3 | 19216 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19217 | # Binary search between lo and hi bounds. |
19218 | while test "x$ac_lo" != "x$ac_hi"; do | |
19219 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19220 | cat >conftest.$ac_ext <<_ACEOF | |
19221 | /* confdefs.h. */ | |
19222 | _ACEOF | |
19223 | cat confdefs.h >>conftest.$ac_ext | |
19224 | cat >>conftest.$ac_ext <<_ACEOF | |
19225 | /* end confdefs.h. */ | |
19226 | $ac_includes_default | |
19227 | int | |
19228 | main () | |
19229 | { | |
19230 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
19231 | test_array [0] = 0 | |
19232 | ||
19233 | ; | |
19234 | return 0; | |
19235 | } | |
19236 | _ACEOF | |
19237 | rm -f conftest.$ac_objext | |
19238 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19239 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19240 | ac_status=$? |
ac1cb8d3 VS |
19241 | grep -v '^ *+' conftest.er1 >conftest.err |
19242 | rm -f conftest.er1 | |
19243 | cat conftest.err >&5 | |
a848cd7e SC |
19244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19245 | (exit $ac_status); } && | |
d25774ab JS |
19246 | { ac_try='test -z "$ac_cxx_werror_flag" |
19247 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19249 | (eval $ac_try) 2>&5 | |
19250 | ac_status=$? | |
19251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19252 | (exit $ac_status); }; } && | |
19253 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19255 | (eval $ac_try) 2>&5 | |
19256 | ac_status=$? | |
19257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19258 | (exit $ac_status); }; }; then | |
19259 | ac_hi=$ac_mid | |
19260 | else | |
19261 | echo "$as_me: failed program was:" >&5 | |
19262 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19263 | ||
19264 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19265 | fi | |
ac1cb8d3 | 19266 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19267 | done |
19268 | case $ac_lo in | |
19269 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
19270 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
19271 | See \`config.log' for more details." >&5 | |
19272 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
19273 | See \`config.log' for more details." >&2;} | |
19274 | { (exit 1); exit 1; }; } ;; | |
19275 | esac | |
19276 | else | |
19277 | if test "$cross_compiling" = yes; then | |
d25774ab JS |
19278 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
19279 | See \`config.log' for more details." >&5 | |
19280 | echo "$as_me: error: cannot run test program while cross compiling | |
19281 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
19282 | { (exit 1); exit 1; }; } |
19283 | else | |
19284 | cat >conftest.$ac_ext <<_ACEOF | |
19285 | /* confdefs.h. */ | |
19286 | _ACEOF | |
19287 | cat confdefs.h >>conftest.$ac_ext | |
19288 | cat >>conftest.$ac_ext <<_ACEOF | |
19289 | /* end confdefs.h. */ | |
19290 | $ac_includes_default | |
19291 | long longval () { return (long) (sizeof (long)); } | |
19292 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
19293 | #include <stdio.h> | |
19294 | #include <stdlib.h> | |
19295 | int | |
19296 | main () | |
19297 | { | |
19298 | ||
19299 | FILE *f = fopen ("conftest.val", "w"); | |
19300 | if (! f) | |
19301 | exit (1); | |
19302 | if (((long) (sizeof (long))) < 0) | |
19303 | { | |
19304 | long i = longval (); | |
19305 | if (i != ((long) (sizeof (long)))) | |
19306 | exit (1); | |
19307 | fprintf (f, "%ld\n", i); | |
19308 | } | |
19309 | else | |
19310 | { | |
19311 | unsigned long i = ulongval (); | |
19312 | if (i != ((long) (sizeof (long)))) | |
19313 | exit (1); | |
19314 | fprintf (f, "%lu\n", i); | |
19315 | } | |
19316 | exit (ferror (f) || fclose (f) != 0); | |
19317 | ||
19318 | ; | |
19319 | return 0; | |
19320 | } | |
19321 | _ACEOF | |
19322 | rm -f conftest$ac_exeext | |
19323 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19324 | (eval $ac_link) 2>&5 | |
19325 | ac_status=$? | |
19326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19327 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19329 | (eval $ac_try) 2>&5 | |
19330 | ac_status=$? | |
19331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19332 | (exit $ac_status); }; }; then | |
19333 | ac_cv_sizeof_long=`cat conftest.val` | |
19334 | else | |
19335 | echo "$as_me: program exited with status $ac_status" >&5 | |
19336 | echo "$as_me: failed program was:" >&5 | |
19337 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19338 | ||
19339 | ( exit $ac_status ) | |
19340 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
19341 | See \`config.log' for more details." >&5 | |
19342 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
19343 | See \`config.log' for more details." >&2;} | |
19344 | { (exit 1); exit 1; }; } | |
19345 | fi | |
ac1cb8d3 | 19346 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19347 | fi |
19348 | fi | |
19349 | rm -f conftest.val | |
19350 | else | |
19351 | ac_cv_sizeof_long=0 | |
19352 | fi | |
19353 | fi | |
19354 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
19355 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
19356 | cat >>confdefs.h <<_ACEOF | |
19357 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
19358 | _ACEOF | |
19359 | ||
19360 | ||
19361 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
19362 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
19363 | if test "${ac_cv_type_size_t+set}" = set; then | |
19364 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19365 | else | |
19366 | cat >conftest.$ac_ext <<_ACEOF | |
19367 | /* confdefs.h. */ | |
19368 | _ACEOF | |
19369 | cat confdefs.h >>conftest.$ac_ext | |
19370 | cat >>conftest.$ac_ext <<_ACEOF | |
19371 | /* end confdefs.h. */ | |
19372 | $ac_includes_default | |
19373 | int | |
19374 | main () | |
19375 | { | |
19376 | if ((size_t *) 0) | |
19377 | return 0; | |
19378 | if (sizeof (size_t)) | |
19379 | return 0; | |
19380 | ; | |
19381 | return 0; | |
19382 | } | |
19383 | _ACEOF | |
19384 | rm -f conftest.$ac_objext | |
19385 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19386 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19387 | ac_status=$? |
ac1cb8d3 VS |
19388 | grep -v '^ *+' conftest.er1 >conftest.err |
19389 | rm -f conftest.er1 | |
19390 | cat conftest.err >&5 | |
a848cd7e SC |
19391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19392 | (exit $ac_status); } && | |
d25774ab JS |
19393 | { ac_try='test -z "$ac_cxx_werror_flag" |
19394 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19396 | (eval $ac_try) 2>&5 | |
19397 | ac_status=$? | |
19398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19399 | (exit $ac_status); }; } && | |
19400 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19402 | (eval $ac_try) 2>&5 | |
19403 | ac_status=$? | |
19404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19405 | (exit $ac_status); }; }; then | |
19406 | ac_cv_type_size_t=yes | |
19407 | else | |
19408 | echo "$as_me: failed program was:" >&5 | |
19409 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19410 | ||
19411 | ac_cv_type_size_t=no | |
19412 | fi | |
ac1cb8d3 | 19413 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19414 | fi |
19415 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
19416 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
19417 | ||
19418 | echo "$as_me:$LINENO: checking size of size_t" >&5 | |
19419 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
19420 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
19421 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19422 | else | |
19423 | if test "$ac_cv_type_size_t" = yes; then | |
19424 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19425 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19426 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19427 | # This bug is HP SR number 8606223364. | |
19428 | if test "$cross_compiling" = yes; then | |
19429 | # Depending upon the size, compute the lo and hi bounds. | |
19430 | cat >conftest.$ac_ext <<_ACEOF | |
19431 | /* confdefs.h. */ | |
19432 | _ACEOF | |
19433 | cat confdefs.h >>conftest.$ac_ext | |
19434 | cat >>conftest.$ac_ext <<_ACEOF | |
19435 | /* end confdefs.h. */ | |
19436 | $ac_includes_default | |
19437 | int | |
19438 | main () | |
19439 | { | |
19440 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
19441 | test_array [0] = 0 | |
19442 | ||
19443 | ; | |
19444 | return 0; | |
19445 | } | |
19446 | _ACEOF | |
19447 | rm -f conftest.$ac_objext | |
19448 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19449 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19450 | ac_status=$? |
ac1cb8d3 VS |
19451 | grep -v '^ *+' conftest.er1 >conftest.err |
19452 | rm -f conftest.er1 | |
19453 | cat conftest.err >&5 | |
a848cd7e SC |
19454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19455 | (exit $ac_status); } && | |
d25774ab JS |
19456 | { ac_try='test -z "$ac_cxx_werror_flag" |
19457 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19459 | (eval $ac_try) 2>&5 | |
19460 | ac_status=$? | |
19461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19462 | (exit $ac_status); }; } && | |
19463 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19465 | (eval $ac_try) 2>&5 | |
19466 | ac_status=$? | |
19467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19468 | (exit $ac_status); }; }; then | |
19469 | ac_lo=0 ac_mid=0 | |
19470 | while :; do | |
19471 | cat >conftest.$ac_ext <<_ACEOF | |
19472 | /* confdefs.h. */ | |
19473 | _ACEOF | |
19474 | cat confdefs.h >>conftest.$ac_ext | |
19475 | cat >>conftest.$ac_ext <<_ACEOF | |
19476 | /* end confdefs.h. */ | |
19477 | $ac_includes_default | |
19478 | int | |
19479 | main () | |
19480 | { | |
19481 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
19482 | test_array [0] = 0 | |
19483 | ||
19484 | ; | |
19485 | return 0; | |
19486 | } | |
19487 | _ACEOF | |
19488 | rm -f conftest.$ac_objext | |
19489 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19490 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19491 | ac_status=$? |
ac1cb8d3 VS |
19492 | grep -v '^ *+' conftest.er1 >conftest.err |
19493 | rm -f conftest.er1 | |
19494 | cat conftest.err >&5 | |
a848cd7e SC |
19495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19496 | (exit $ac_status); } && | |
d25774ab JS |
19497 | { ac_try='test -z "$ac_cxx_werror_flag" |
19498 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19500 | (eval $ac_try) 2>&5 | |
19501 | ac_status=$? | |
19502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19503 | (exit $ac_status); }; } && | |
19504 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19506 | (eval $ac_try) 2>&5 | |
19507 | ac_status=$? | |
19508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19509 | (exit $ac_status); }; }; then | |
19510 | ac_hi=$ac_mid; break | |
19511 | else | |
19512 | echo "$as_me: failed program was:" >&5 | |
19513 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19514 | ||
19515 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
19516 | if test $ac_lo -le $ac_mid; then |
19517 | ac_lo= ac_hi= | |
19518 | break | |
19519 | fi | |
19520 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 19521 | fi |
ac1cb8d3 | 19522 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19523 | done |
19524 | else | |
19525 | echo "$as_me: failed program was:" >&5 | |
19526 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19527 | ||
19528 | cat >conftest.$ac_ext <<_ACEOF | |
19529 | /* confdefs.h. */ | |
19530 | _ACEOF | |
19531 | cat confdefs.h >>conftest.$ac_ext | |
19532 | cat >>conftest.$ac_ext <<_ACEOF | |
19533 | /* end confdefs.h. */ | |
19534 | $ac_includes_default | |
19535 | int | |
19536 | main () | |
19537 | { | |
19538 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; | |
19539 | test_array [0] = 0 | |
19540 | ||
19541 | ; | |
19542 | return 0; | |
19543 | } | |
19544 | _ACEOF | |
19545 | rm -f conftest.$ac_objext | |
19546 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19547 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19548 | ac_status=$? |
ac1cb8d3 VS |
19549 | grep -v '^ *+' conftest.er1 >conftest.err |
19550 | rm -f conftest.er1 | |
19551 | cat conftest.err >&5 | |
a848cd7e SC |
19552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19553 | (exit $ac_status); } && | |
d25774ab JS |
19554 | { ac_try='test -z "$ac_cxx_werror_flag" |
19555 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19557 | (eval $ac_try) 2>&5 | |
19558 | ac_status=$? | |
19559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19560 | (exit $ac_status); }; } && | |
19561 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19563 | (eval $ac_try) 2>&5 | |
19564 | ac_status=$? | |
19565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19566 | (exit $ac_status); }; }; then | |
19567 | ac_hi=-1 ac_mid=-1 | |
19568 | while :; do | |
19569 | cat >conftest.$ac_ext <<_ACEOF | |
19570 | /* confdefs.h. */ | |
19571 | _ACEOF | |
19572 | cat confdefs.h >>conftest.$ac_ext | |
19573 | cat >>conftest.$ac_ext <<_ACEOF | |
19574 | /* end confdefs.h. */ | |
19575 | $ac_includes_default | |
19576 | int | |
19577 | main () | |
19578 | { | |
19579 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
19580 | test_array [0] = 0 | |
19581 | ||
19582 | ; | |
19583 | return 0; | |
19584 | } | |
19585 | _ACEOF | |
19586 | rm -f conftest.$ac_objext | |
19587 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19588 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19589 | ac_status=$? |
ac1cb8d3 VS |
19590 | grep -v '^ *+' conftest.er1 >conftest.err |
19591 | rm -f conftest.er1 | |
19592 | cat conftest.err >&5 | |
a848cd7e SC |
19593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19594 | (exit $ac_status); } && | |
d25774ab JS |
19595 | { ac_try='test -z "$ac_cxx_werror_flag" |
19596 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19598 | (eval $ac_try) 2>&5 | |
19599 | ac_status=$? | |
19600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19601 | (exit $ac_status); }; } && | |
19602 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19604 | (eval $ac_try) 2>&5 | |
19605 | ac_status=$? | |
19606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19607 | (exit $ac_status); }; }; then | |
19608 | ac_lo=$ac_mid; break | |
19609 | else | |
19610 | echo "$as_me: failed program was:" >&5 | |
19611 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19612 | ||
19613 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
19614 | if test $ac_mid -le $ac_hi; then |
19615 | ac_lo= ac_hi= | |
19616 | break | |
19617 | fi | |
19618 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 19619 | fi |
ac1cb8d3 | 19620 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19621 | done |
19622 | else | |
19623 | echo "$as_me: failed program was:" >&5 | |
19624 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19625 | ||
19626 | ac_lo= ac_hi= | |
19627 | fi | |
ac1cb8d3 | 19628 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19629 | fi |
ac1cb8d3 | 19630 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19631 | # Binary search between lo and hi bounds. |
19632 | while test "x$ac_lo" != "x$ac_hi"; do | |
19633 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19634 | cat >conftest.$ac_ext <<_ACEOF | |
19635 | /* confdefs.h. */ | |
19636 | _ACEOF | |
19637 | cat confdefs.h >>conftest.$ac_ext | |
19638 | cat >>conftest.$ac_ext <<_ACEOF | |
19639 | /* end confdefs.h. */ | |
19640 | $ac_includes_default | |
19641 | int | |
19642 | main () | |
19643 | { | |
19644 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
19645 | test_array [0] = 0 | |
19646 | ||
19647 | ; | |
19648 | return 0; | |
19649 | } | |
19650 | _ACEOF | |
19651 | rm -f conftest.$ac_objext | |
19652 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19653 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19654 | ac_status=$? |
ac1cb8d3 VS |
19655 | grep -v '^ *+' conftest.er1 >conftest.err |
19656 | rm -f conftest.er1 | |
19657 | cat conftest.err >&5 | |
a848cd7e SC |
19658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19659 | (exit $ac_status); } && | |
d25774ab JS |
19660 | { ac_try='test -z "$ac_cxx_werror_flag" |
19661 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19663 | (eval $ac_try) 2>&5 | |
19664 | ac_status=$? | |
19665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19666 | (exit $ac_status); }; } && | |
19667 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19669 | (eval $ac_try) 2>&5 | |
19670 | ac_status=$? | |
19671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19672 | (exit $ac_status); }; }; then | |
19673 | ac_hi=$ac_mid | |
19674 | else | |
19675 | echo "$as_me: failed program was:" >&5 | |
19676 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19677 | ||
19678 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19679 | fi | |
ac1cb8d3 | 19680 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19681 | done |
19682 | case $ac_lo in | |
19683 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
19684 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
19685 | See \`config.log' for more details." >&5 | |
19686 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
19687 | See \`config.log' for more details." >&2;} | |
19688 | { (exit 1); exit 1; }; } ;; | |
19689 | esac | |
19690 | else | |
19691 | if test "$cross_compiling" = yes; then | |
d25774ab JS |
19692 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
19693 | See \`config.log' for more details." >&5 | |
19694 | echo "$as_me: error: cannot run test program while cross compiling | |
19695 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
19696 | { (exit 1); exit 1; }; } |
19697 | else | |
19698 | cat >conftest.$ac_ext <<_ACEOF | |
19699 | /* confdefs.h. */ | |
19700 | _ACEOF | |
19701 | cat confdefs.h >>conftest.$ac_ext | |
19702 | cat >>conftest.$ac_ext <<_ACEOF | |
19703 | /* end confdefs.h. */ | |
19704 | $ac_includes_default | |
19705 | long longval () { return (long) (sizeof (size_t)); } | |
19706 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
19707 | #include <stdio.h> | |
19708 | #include <stdlib.h> | |
19709 | int | |
19710 | main () | |
19711 | { | |
19712 | ||
19713 | FILE *f = fopen ("conftest.val", "w"); | |
19714 | if (! f) | |
19715 | exit (1); | |
19716 | if (((long) (sizeof (size_t))) < 0) | |
19717 | { | |
19718 | long i = longval (); | |
19719 | if (i != ((long) (sizeof (size_t)))) | |
19720 | exit (1); | |
19721 | fprintf (f, "%ld\n", i); | |
19722 | } | |
19723 | else | |
19724 | { | |
19725 | unsigned long i = ulongval (); | |
19726 | if (i != ((long) (sizeof (size_t)))) | |
19727 | exit (1); | |
19728 | fprintf (f, "%lu\n", i); | |
19729 | } | |
19730 | exit (ferror (f) || fclose (f) != 0); | |
19731 | ||
19732 | ; | |
19733 | return 0; | |
19734 | } | |
19735 | _ACEOF | |
19736 | rm -f conftest$ac_exeext | |
19737 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19738 | (eval $ac_link) 2>&5 | |
19739 | ac_status=$? | |
19740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19741 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19743 | (eval $ac_try) 2>&5 | |
19744 | ac_status=$? | |
19745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19746 | (exit $ac_status); }; }; then | |
19747 | ac_cv_sizeof_size_t=`cat conftest.val` | |
19748 | else | |
19749 | echo "$as_me: program exited with status $ac_status" >&5 | |
19750 | echo "$as_me: failed program was:" >&5 | |
19751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19752 | ||
19753 | ( exit $ac_status ) | |
19754 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
19755 | See \`config.log' for more details." >&5 | |
19756 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
19757 | See \`config.log' for more details." >&2;} | |
19758 | { (exit 1); exit 1; }; } | |
19759 | fi | |
ac1cb8d3 | 19760 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19761 | fi |
19762 | fi | |
19763 | rm -f conftest.val | |
19764 | else | |
19765 | ac_cv_sizeof_size_t=0 | |
19766 | fi | |
19767 | fi | |
19768 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 | |
19769 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
19770 | cat >>confdefs.h <<_ACEOF | |
19771 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
19772 | _ACEOF | |
19773 | ||
19774 | ||
19775 | ||
19776 | case "${host}" in | |
19777 | arm-*-linux* ) | |
19778 | echo "$as_me:$LINENO: checking for long long" >&5 | |
19779 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
19780 | if test "${ac_cv_type_long_long+set}" = set; then | |
19781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19782 | else | |
19783 | cat >conftest.$ac_ext <<_ACEOF | |
19784 | /* confdefs.h. */ | |
19785 | _ACEOF | |
19786 | cat confdefs.h >>conftest.$ac_ext | |
19787 | cat >>conftest.$ac_ext <<_ACEOF | |
19788 | /* end confdefs.h. */ | |
19789 | $ac_includes_default | |
19790 | int | |
19791 | main () | |
19792 | { | |
19793 | if ((long long *) 0) | |
19794 | return 0; | |
19795 | if (sizeof (long long)) | |
19796 | return 0; | |
19797 | ; | |
19798 | return 0; | |
19799 | } | |
19800 | _ACEOF | |
19801 | rm -f conftest.$ac_objext | |
19802 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19803 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19804 | ac_status=$? |
ac1cb8d3 VS |
19805 | grep -v '^ *+' conftest.er1 >conftest.err |
19806 | rm -f conftest.er1 | |
19807 | cat conftest.err >&5 | |
a848cd7e SC |
19808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19809 | (exit $ac_status); } && | |
d25774ab JS |
19810 | { ac_try='test -z "$ac_cxx_werror_flag" |
19811 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19813 | (eval $ac_try) 2>&5 | |
19814 | ac_status=$? | |
19815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19816 | (exit $ac_status); }; } && | |
19817 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19819 | (eval $ac_try) 2>&5 | |
19820 | ac_status=$? | |
19821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19822 | (exit $ac_status); }; }; then | |
19823 | ac_cv_type_long_long=yes | |
19824 | else | |
19825 | echo "$as_me: failed program was:" >&5 | |
19826 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19827 | ||
19828 | ac_cv_type_long_long=no | |
19829 | fi | |
ac1cb8d3 | 19830 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19831 | fi |
19832 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
19833 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
19834 | ||
19835 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
19836 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
19837 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
19838 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19839 | else | |
19840 | if test "$ac_cv_type_long_long" = yes; then | |
19841 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19842 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19843 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19844 | # This bug is HP SR number 8606223364. | |
19845 | if test "$cross_compiling" = yes; then | |
19846 | # Depending upon the size, compute the lo and hi bounds. | |
19847 | cat >conftest.$ac_ext <<_ACEOF | |
19848 | /* confdefs.h. */ | |
19849 | _ACEOF | |
19850 | cat confdefs.h >>conftest.$ac_ext | |
19851 | cat >>conftest.$ac_ext <<_ACEOF | |
19852 | /* end confdefs.h. */ | |
19853 | $ac_includes_default | |
19854 | int | |
19855 | main () | |
19856 | { | |
19857 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
19858 | test_array [0] = 0 | |
19859 | ||
19860 | ; | |
19861 | return 0; | |
19862 | } | |
19863 | _ACEOF | |
19864 | rm -f conftest.$ac_objext | |
19865 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19866 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19867 | ac_status=$? |
ac1cb8d3 VS |
19868 | grep -v '^ *+' conftest.er1 >conftest.err |
19869 | rm -f conftest.er1 | |
19870 | cat conftest.err >&5 | |
a848cd7e SC |
19871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19872 | (exit $ac_status); } && | |
d25774ab JS |
19873 | { ac_try='test -z "$ac_cxx_werror_flag" |
19874 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19876 | (eval $ac_try) 2>&5 | |
19877 | ac_status=$? | |
19878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19879 | (exit $ac_status); }; } && | |
19880 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19882 | (eval $ac_try) 2>&5 | |
19883 | ac_status=$? | |
19884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19885 | (exit $ac_status); }; }; then | |
19886 | ac_lo=0 ac_mid=0 | |
19887 | while :; do | |
19888 | cat >conftest.$ac_ext <<_ACEOF | |
19889 | /* confdefs.h. */ | |
19890 | _ACEOF | |
19891 | cat confdefs.h >>conftest.$ac_ext | |
19892 | cat >>conftest.$ac_ext <<_ACEOF | |
19893 | /* end confdefs.h. */ | |
19894 | $ac_includes_default | |
19895 | int | |
19896 | main () | |
19897 | { | |
19898 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
19899 | test_array [0] = 0 | |
19900 | ||
19901 | ; | |
19902 | return 0; | |
19903 | } | |
19904 | _ACEOF | |
19905 | rm -f conftest.$ac_objext | |
19906 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19907 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19908 | ac_status=$? |
ac1cb8d3 VS |
19909 | grep -v '^ *+' conftest.er1 >conftest.err |
19910 | rm -f conftest.er1 | |
19911 | cat conftest.err >&5 | |
a848cd7e SC |
19912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19913 | (exit $ac_status); } && | |
d25774ab JS |
19914 | { ac_try='test -z "$ac_cxx_werror_flag" |
19915 | || 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_hi=$ac_mid; break | |
19928 | else | |
19929 | echo "$as_me: failed program was:" >&5 | |
19930 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19931 | ||
19932 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
19933 | if test $ac_lo -le $ac_mid; then |
19934 | ac_lo= ac_hi= | |
19935 | break | |
19936 | fi | |
19937 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
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 | cat >conftest.$ac_ext <<_ACEOF | |
19946 | /* confdefs.h. */ | |
19947 | _ACEOF | |
19948 | cat confdefs.h >>conftest.$ac_ext | |
19949 | cat >>conftest.$ac_ext <<_ACEOF | |
19950 | /* end confdefs.h. */ | |
19951 | $ac_includes_default | |
19952 | int | |
19953 | main () | |
19954 | { | |
19955 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
19956 | test_array [0] = 0 | |
19957 | ||
19958 | ; | |
19959 | return 0; | |
19960 | } | |
19961 | _ACEOF | |
19962 | rm -f conftest.$ac_objext | |
19963 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19964 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19965 | ac_status=$? |
ac1cb8d3 VS |
19966 | grep -v '^ *+' conftest.er1 >conftest.err |
19967 | rm -f conftest.er1 | |
19968 | cat conftest.err >&5 | |
a848cd7e SC |
19969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19970 | (exit $ac_status); } && | |
d25774ab JS |
19971 | { ac_try='test -z "$ac_cxx_werror_flag" |
19972 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19974 | (eval $ac_try) 2>&5 | |
19975 | ac_status=$? | |
19976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19977 | (exit $ac_status); }; } && | |
19978 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19980 | (eval $ac_try) 2>&5 | |
19981 | ac_status=$? | |
19982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19983 | (exit $ac_status); }; }; then | |
19984 | ac_hi=-1 ac_mid=-1 | |
19985 | while :; do | |
19986 | cat >conftest.$ac_ext <<_ACEOF | |
19987 | /* confdefs.h. */ | |
19988 | _ACEOF | |
19989 | cat confdefs.h >>conftest.$ac_ext | |
19990 | cat >>conftest.$ac_ext <<_ACEOF | |
19991 | /* end confdefs.h. */ | |
19992 | $ac_includes_default | |
19993 | int | |
19994 | main () | |
19995 | { | |
19996 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
19997 | test_array [0] = 0 | |
19998 | ||
19999 | ; | |
20000 | return 0; | |
20001 | } | |
20002 | _ACEOF | |
20003 | rm -f conftest.$ac_objext | |
20004 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20005 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20006 | ac_status=$? |
ac1cb8d3 VS |
20007 | grep -v '^ *+' conftest.er1 >conftest.err |
20008 | rm -f conftest.er1 | |
20009 | cat conftest.err >&5 | |
a848cd7e SC |
20010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20011 | (exit $ac_status); } && | |
d25774ab JS |
20012 | { ac_try='test -z "$ac_cxx_werror_flag" |
20013 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20015 | (eval $ac_try) 2>&5 | |
20016 | ac_status=$? | |
20017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20018 | (exit $ac_status); }; } && | |
20019 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20021 | (eval $ac_try) 2>&5 | |
20022 | ac_status=$? | |
20023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20024 | (exit $ac_status); }; }; then | |
20025 | ac_lo=$ac_mid; break | |
20026 | else | |
20027 | echo "$as_me: failed program was:" >&5 | |
20028 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20029 | ||
20030 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
20031 | if test $ac_mid -le $ac_hi; then |
20032 | ac_lo= ac_hi= | |
20033 | break | |
20034 | fi | |
20035 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 20036 | fi |
ac1cb8d3 | 20037 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20038 | done |
20039 | else | |
20040 | echo "$as_me: failed program was:" >&5 | |
20041 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20042 | ||
20043 | ac_lo= ac_hi= | |
20044 | fi | |
ac1cb8d3 | 20045 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 20046 | fi |
ac1cb8d3 | 20047 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20048 | # Binary search between lo and hi bounds. |
20049 | while test "x$ac_lo" != "x$ac_hi"; do | |
20050 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20051 | cat >conftest.$ac_ext <<_ACEOF | |
20052 | /* confdefs.h. */ | |
20053 | _ACEOF | |
20054 | cat confdefs.h >>conftest.$ac_ext | |
20055 | cat >>conftest.$ac_ext <<_ACEOF | |
20056 | /* end confdefs.h. */ | |
20057 | $ac_includes_default | |
20058 | int | |
20059 | main () | |
20060 | { | |
20061 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20062 | test_array [0] = 0 | |
20063 | ||
20064 | ; | |
20065 | return 0; | |
20066 | } | |
20067 | _ACEOF | |
20068 | rm -f conftest.$ac_objext | |
20069 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20070 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20071 | ac_status=$? |
ac1cb8d3 VS |
20072 | grep -v '^ *+' conftest.er1 >conftest.err |
20073 | rm -f conftest.er1 | |
20074 | cat conftest.err >&5 | |
a848cd7e SC |
20075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20076 | (exit $ac_status); } && | |
d25774ab JS |
20077 | { ac_try='test -z "$ac_cxx_werror_flag" |
20078 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20080 | (eval $ac_try) 2>&5 | |
20081 | ac_status=$? | |
20082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20083 | (exit $ac_status); }; } && | |
20084 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20086 | (eval $ac_try) 2>&5 | |
20087 | ac_status=$? | |
20088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20089 | (exit $ac_status); }; }; then | |
20090 | ac_hi=$ac_mid | |
20091 | else | |
20092 | echo "$as_me: failed program was:" >&5 | |
20093 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20094 | ||
20095 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
20096 | fi | |
ac1cb8d3 | 20097 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20098 | done |
20099 | case $ac_lo in | |
20100 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
20101 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20102 | See \`config.log' for more details." >&5 | |
20103 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20104 | See \`config.log' for more details." >&2;} | |
20105 | { (exit 1); exit 1; }; } ;; | |
20106 | esac | |
20107 | else | |
20108 | if test "$cross_compiling" = yes; then | |
d25774ab JS |
20109 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
20110 | See \`config.log' for more details." >&5 | |
20111 | echo "$as_me: error: cannot run test program while cross compiling | |
20112 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
20113 | { (exit 1); exit 1; }; } |
20114 | else | |
20115 | cat >conftest.$ac_ext <<_ACEOF | |
20116 | /* confdefs.h. */ | |
20117 | _ACEOF | |
20118 | cat confdefs.h >>conftest.$ac_ext | |
20119 | cat >>conftest.$ac_ext <<_ACEOF | |
20120 | /* end confdefs.h. */ | |
20121 | $ac_includes_default | |
20122 | long longval () { return (long) (sizeof (long long)); } | |
20123 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
20124 | #include <stdio.h> | |
20125 | #include <stdlib.h> | |
20126 | int | |
20127 | main () | |
20128 | { | |
20129 | ||
20130 | FILE *f = fopen ("conftest.val", "w"); | |
20131 | if (! f) | |
20132 | exit (1); | |
20133 | if (((long) (sizeof (long long))) < 0) | |
20134 | { | |
20135 | long i = longval (); | |
20136 | if (i != ((long) (sizeof (long long)))) | |
20137 | exit (1); | |
20138 | fprintf (f, "%ld\n", i); | |
20139 | } | |
20140 | else | |
20141 | { | |
20142 | unsigned long i = ulongval (); | |
20143 | if (i != ((long) (sizeof (long long)))) | |
20144 | exit (1); | |
20145 | fprintf (f, "%lu\n", i); | |
20146 | } | |
20147 | exit (ferror (f) || fclose (f) != 0); | |
20148 | ||
20149 | ; | |
20150 | return 0; | |
20151 | } | |
20152 | _ACEOF | |
20153 | rm -f conftest$ac_exeext | |
20154 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20155 | (eval $ac_link) 2>&5 | |
20156 | ac_status=$? | |
20157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20158 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20160 | (eval $ac_try) 2>&5 | |
20161 | ac_status=$? | |
20162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20163 | (exit $ac_status); }; }; then | |
20164 | ac_cv_sizeof_long_long=`cat conftest.val` | |
20165 | else | |
20166 | echo "$as_me: program exited with status $ac_status" >&5 | |
20167 | echo "$as_me: failed program was:" >&5 | |
20168 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20169 | ||
20170 | ( exit $ac_status ) | |
20171 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20172 | See \`config.log' for more details." >&5 | |
20173 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20174 | See \`config.log' for more details." >&2;} | |
20175 | { (exit 1); exit 1; }; } | |
20176 | fi | |
ac1cb8d3 | 20177 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20178 | fi |
20179 | fi | |
20180 | rm -f conftest.val | |
20181 | else | |
20182 | ac_cv_sizeof_long_long=0 | |
20183 | fi | |
20184 | fi | |
20185 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
20186 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
20187 | cat >>confdefs.h <<_ACEOF | |
20188 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
20189 | _ACEOF | |
20190 | ||
20191 | ||
20192 | ;; | |
20193 | *-hp-hpux* ) | |
20194 | echo "$as_me:$LINENO: checking for long long" >&5 | |
20195 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
20196 | if test "${ac_cv_type_long_long+set}" = set; then | |
20197 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20198 | else | |
20199 | cat >conftest.$ac_ext <<_ACEOF | |
20200 | /* confdefs.h. */ | |
20201 | _ACEOF | |
20202 | cat confdefs.h >>conftest.$ac_ext | |
20203 | cat >>conftest.$ac_ext <<_ACEOF | |
20204 | /* end confdefs.h. */ | |
20205 | $ac_includes_default | |
20206 | int | |
20207 | main () | |
20208 | { | |
20209 | if ((long long *) 0) | |
20210 | return 0; | |
20211 | if (sizeof (long long)) | |
20212 | return 0; | |
20213 | ; | |
20214 | return 0; | |
20215 | } | |
20216 | _ACEOF | |
20217 | rm -f conftest.$ac_objext | |
20218 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20219 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20220 | ac_status=$? |
ac1cb8d3 VS |
20221 | grep -v '^ *+' conftest.er1 >conftest.err |
20222 | rm -f conftest.er1 | |
20223 | cat conftest.err >&5 | |
a848cd7e SC |
20224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20225 | (exit $ac_status); } && | |
d25774ab JS |
20226 | { ac_try='test -z "$ac_cxx_werror_flag" |
20227 | || 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_cv_type_long_long=yes | |
20240 | else | |
20241 | echo "$as_me: failed program was:" >&5 | |
20242 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20243 | ||
20244 | ac_cv_type_long_long=no | |
20245 | fi | |
ac1cb8d3 | 20246 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20247 | fi |
20248 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
20249 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
20250 | ||
20251 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
20252 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
20253 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
20254 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20255 | else | |
20256 | if test "$ac_cv_type_long_long" = yes; then | |
20257 | # The cast to unsigned long works around a bug in the HP C Compiler | |
20258 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20259 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20260 | # This bug is HP SR number 8606223364. | |
20261 | if test "$cross_compiling" = yes; then | |
20262 | # Depending upon the size, compute the lo and hi bounds. | |
20263 | cat >conftest.$ac_ext <<_ACEOF | |
20264 | /* confdefs.h. */ | |
20265 | _ACEOF | |
20266 | cat confdefs.h >>conftest.$ac_ext | |
20267 | cat >>conftest.$ac_ext <<_ACEOF | |
20268 | /* end confdefs.h. */ | |
20269 | $ac_includes_default | |
20270 | int | |
20271 | main () | |
20272 | { | |
20273 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
20274 | test_array [0] = 0 | |
20275 | ||
20276 | ; | |
20277 | return 0; | |
20278 | } | |
20279 | _ACEOF | |
20280 | rm -f conftest.$ac_objext | |
20281 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20282 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20283 | ac_status=$? |
ac1cb8d3 VS |
20284 | grep -v '^ *+' conftest.er1 >conftest.err |
20285 | rm -f conftest.er1 | |
20286 | cat conftest.err >&5 | |
a848cd7e SC |
20287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20288 | (exit $ac_status); } && | |
d25774ab JS |
20289 | { ac_try='test -z "$ac_cxx_werror_flag" |
20290 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20292 | (eval $ac_try) 2>&5 | |
20293 | ac_status=$? | |
20294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20295 | (exit $ac_status); }; } && | |
20296 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20298 | (eval $ac_try) 2>&5 | |
20299 | ac_status=$? | |
20300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20301 | (exit $ac_status); }; }; then | |
20302 | ac_lo=0 ac_mid=0 | |
20303 | while :; do | |
20304 | cat >conftest.$ac_ext <<_ACEOF | |
20305 | /* confdefs.h. */ | |
20306 | _ACEOF | |
20307 | cat confdefs.h >>conftest.$ac_ext | |
20308 | cat >>conftest.$ac_ext <<_ACEOF | |
20309 | /* end confdefs.h. */ | |
20310 | $ac_includes_default | |
20311 | int | |
20312 | main () | |
20313 | { | |
20314 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20315 | test_array [0] = 0 | |
20316 | ||
20317 | ; | |
20318 | return 0; | |
20319 | } | |
20320 | _ACEOF | |
20321 | rm -f conftest.$ac_objext | |
20322 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20323 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20324 | ac_status=$? |
ac1cb8d3 VS |
20325 | grep -v '^ *+' conftest.er1 >conftest.err |
20326 | rm -f conftest.er1 | |
20327 | cat conftest.err >&5 | |
a848cd7e SC |
20328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20329 | (exit $ac_status); } && | |
d25774ab JS |
20330 | { ac_try='test -z "$ac_cxx_werror_flag" |
20331 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20333 | (eval $ac_try) 2>&5 | |
20334 | ac_status=$? | |
20335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20336 | (exit $ac_status); }; } && | |
20337 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20339 | (eval $ac_try) 2>&5 | |
20340 | ac_status=$? | |
20341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20342 | (exit $ac_status); }; }; then | |
20343 | ac_hi=$ac_mid; break | |
20344 | else | |
20345 | echo "$as_me: failed program was:" >&5 | |
20346 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20347 | ||
20348 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
20349 | if test $ac_lo -le $ac_mid; then |
20350 | ac_lo= ac_hi= | |
20351 | break | |
20352 | fi | |
20353 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 20354 | fi |
ac1cb8d3 | 20355 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20356 | done |
20357 | else | |
20358 | echo "$as_me: failed program was:" >&5 | |
20359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20360 | ||
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))) < 0)]; | |
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); } && | |
d25774ab JS |
20387 | { ac_try='test -z "$ac_cxx_werror_flag" |
20388 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20390 | (eval $ac_try) 2>&5 | |
20391 | ac_status=$? | |
20392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20393 | (exit $ac_status); }; } && | |
20394 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20396 | (eval $ac_try) 2>&5 | |
20397 | ac_status=$? | |
20398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20399 | (exit $ac_status); }; }; then | |
20400 | ac_hi=-1 ac_mid=-1 | |
20401 | while :; do | |
20402 | cat >conftest.$ac_ext <<_ACEOF | |
20403 | /* confdefs.h. */ | |
20404 | _ACEOF | |
20405 | cat confdefs.h >>conftest.$ac_ext | |
20406 | cat >>conftest.$ac_ext <<_ACEOF | |
20407 | /* end confdefs.h. */ | |
20408 | $ac_includes_default | |
20409 | int | |
20410 | main () | |
20411 | { | |
20412 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
20413 | test_array [0] = 0 | |
20414 | ||
20415 | ; | |
20416 | return 0; | |
20417 | } | |
20418 | _ACEOF | |
20419 | rm -f conftest.$ac_objext | |
20420 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20421 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20422 | ac_status=$? |
ac1cb8d3 VS |
20423 | grep -v '^ *+' conftest.er1 >conftest.err |
20424 | rm -f conftest.er1 | |
20425 | cat conftest.err >&5 | |
a848cd7e SC |
20426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20427 | (exit $ac_status); } && | |
d25774ab JS |
20428 | { ac_try='test -z "$ac_cxx_werror_flag" |
20429 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20431 | (eval $ac_try) 2>&5 | |
20432 | ac_status=$? | |
20433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20434 | (exit $ac_status); }; } && | |
20435 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20437 | (eval $ac_try) 2>&5 | |
20438 | ac_status=$? | |
20439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20440 | (exit $ac_status); }; }; then | |
20441 | ac_lo=$ac_mid; break | |
20442 | else | |
20443 | echo "$as_me: failed program was:" >&5 | |
20444 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20445 | ||
20446 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
20447 | if test $ac_mid -le $ac_hi; then |
20448 | ac_lo= ac_hi= | |
20449 | break | |
20450 | fi | |
20451 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 20452 | fi |
ac1cb8d3 | 20453 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20454 | done |
20455 | else | |
20456 | echo "$as_me: failed program was:" >&5 | |
20457 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20458 | ||
20459 | ac_lo= ac_hi= | |
20460 | fi | |
ac1cb8d3 | 20461 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 20462 | fi |
ac1cb8d3 | 20463 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20464 | # Binary search between lo and hi bounds. |
20465 | while test "x$ac_lo" != "x$ac_hi"; do | |
20466 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20467 | cat >conftest.$ac_ext <<_ACEOF | |
20468 | /* confdefs.h. */ | |
20469 | _ACEOF | |
20470 | cat confdefs.h >>conftest.$ac_ext | |
20471 | cat >>conftest.$ac_ext <<_ACEOF | |
20472 | /* end confdefs.h. */ | |
20473 | $ac_includes_default | |
20474 | int | |
20475 | main () | |
20476 | { | |
20477 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20478 | test_array [0] = 0 | |
20479 | ||
20480 | ; | |
20481 | return 0; | |
20482 | } | |
20483 | _ACEOF | |
20484 | rm -f conftest.$ac_objext | |
20485 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20486 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20487 | ac_status=$? |
ac1cb8d3 VS |
20488 | grep -v '^ *+' conftest.er1 >conftest.err |
20489 | rm -f conftest.er1 | |
20490 | cat conftest.err >&5 | |
a848cd7e SC |
20491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20492 | (exit $ac_status); } && | |
d25774ab JS |
20493 | { ac_try='test -z "$ac_cxx_werror_flag" |
20494 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20496 | (eval $ac_try) 2>&5 | |
20497 | ac_status=$? | |
20498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20499 | (exit $ac_status); }; } && | |
20500 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20502 | (eval $ac_try) 2>&5 | |
20503 | ac_status=$? | |
20504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20505 | (exit $ac_status); }; }; then | |
20506 | ac_hi=$ac_mid | |
20507 | else | |
20508 | echo "$as_me: failed program was:" >&5 | |
20509 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20510 | ||
20511 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
20512 | fi | |
ac1cb8d3 | 20513 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20514 | done |
20515 | case $ac_lo in | |
20516 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
20517 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20518 | See \`config.log' for more details." >&5 | |
20519 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20520 | See \`config.log' for more details." >&2;} | |
20521 | { (exit 1); exit 1; }; } ;; | |
20522 | esac | |
20523 | else | |
20524 | if test "$cross_compiling" = yes; then | |
d25774ab JS |
20525 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
20526 | See \`config.log' for more details." >&5 | |
20527 | echo "$as_me: error: cannot run test program while cross compiling | |
20528 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
20529 | { (exit 1); exit 1; }; } |
20530 | else | |
20531 | cat >conftest.$ac_ext <<_ACEOF | |
20532 | /* confdefs.h. */ | |
20533 | _ACEOF | |
20534 | cat confdefs.h >>conftest.$ac_ext | |
20535 | cat >>conftest.$ac_ext <<_ACEOF | |
20536 | /* end confdefs.h. */ | |
20537 | $ac_includes_default | |
20538 | long longval () { return (long) (sizeof (long long)); } | |
20539 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
20540 | #include <stdio.h> | |
20541 | #include <stdlib.h> | |
20542 | int | |
20543 | main () | |
20544 | { | |
20545 | ||
20546 | FILE *f = fopen ("conftest.val", "w"); | |
20547 | if (! f) | |
20548 | exit (1); | |
20549 | if (((long) (sizeof (long long))) < 0) | |
20550 | { | |
20551 | long i = longval (); | |
20552 | if (i != ((long) (sizeof (long long)))) | |
20553 | exit (1); | |
20554 | fprintf (f, "%ld\n", i); | |
20555 | } | |
20556 | else | |
20557 | { | |
20558 | unsigned long i = ulongval (); | |
20559 | if (i != ((long) (sizeof (long long)))) | |
20560 | exit (1); | |
20561 | fprintf (f, "%lu\n", i); | |
20562 | } | |
20563 | exit (ferror (f) || fclose (f) != 0); | |
20564 | ||
20565 | ; | |
20566 | return 0; | |
20567 | } | |
20568 | _ACEOF | |
20569 | rm -f conftest$ac_exeext | |
20570 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20571 | (eval $ac_link) 2>&5 | |
20572 | ac_status=$? | |
20573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20574 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20576 | (eval $ac_try) 2>&5 | |
20577 | ac_status=$? | |
20578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20579 | (exit $ac_status); }; }; then | |
20580 | ac_cv_sizeof_long_long=`cat conftest.val` | |
20581 | else | |
20582 | echo "$as_me: program exited with status $ac_status" >&5 | |
20583 | echo "$as_me: failed program was:" >&5 | |
20584 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20585 | ||
20586 | ( exit $ac_status ) | |
20587 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20588 | See \`config.log' for more details." >&5 | |
20589 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20590 | See \`config.log' for more details." >&2;} | |
20591 | { (exit 1); exit 1; }; } | |
20592 | fi | |
ac1cb8d3 | 20593 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20594 | fi |
20595 | fi | |
20596 | rm -f conftest.val | |
20597 | else | |
20598 | ac_cv_sizeof_long_long=0 | |
20599 | fi | |
20600 | fi | |
20601 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
20602 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
20603 | cat >>confdefs.h <<_ACEOF | |
20604 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
20605 | _ACEOF | |
20606 | ||
20607 | ||
20608 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
c92ad099 | 20609 | CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS" |
a848cd7e SC |
20610 | fi |
20611 | ;; | |
20612 | * ) | |
20613 | echo "$as_me:$LINENO: checking for long long" >&5 | |
20614 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
20615 | if test "${ac_cv_type_long_long+set}" = set; then | |
20616 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20617 | else | |
20618 | cat >conftest.$ac_ext <<_ACEOF | |
20619 | /* confdefs.h. */ | |
20620 | _ACEOF | |
20621 | cat confdefs.h >>conftest.$ac_ext | |
20622 | cat >>conftest.$ac_ext <<_ACEOF | |
20623 | /* end confdefs.h. */ | |
20624 | $ac_includes_default | |
20625 | int | |
20626 | main () | |
20627 | { | |
20628 | if ((long long *) 0) | |
20629 | return 0; | |
20630 | if (sizeof (long long)) | |
20631 | return 0; | |
20632 | ; | |
20633 | return 0; | |
20634 | } | |
20635 | _ACEOF | |
20636 | rm -f conftest.$ac_objext | |
20637 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20638 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20639 | ac_status=$? |
ac1cb8d3 VS |
20640 | grep -v '^ *+' conftest.er1 >conftest.err |
20641 | rm -f conftest.er1 | |
20642 | cat conftest.err >&5 | |
a848cd7e SC |
20643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20644 | (exit $ac_status); } && | |
d25774ab JS |
20645 | { ac_try='test -z "$ac_cxx_werror_flag" |
20646 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20648 | (eval $ac_try) 2>&5 | |
20649 | ac_status=$? | |
20650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20651 | (exit $ac_status); }; } && | |
20652 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20654 | (eval $ac_try) 2>&5 | |
20655 | ac_status=$? | |
20656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20657 | (exit $ac_status); }; }; then | |
20658 | ac_cv_type_long_long=yes | |
20659 | else | |
20660 | echo "$as_me: failed program was:" >&5 | |
20661 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20662 | ||
20663 | ac_cv_type_long_long=no | |
20664 | fi | |
ac1cb8d3 | 20665 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20666 | fi |
20667 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
20668 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
20669 | ||
20670 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
20671 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
20672 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
20673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20674 | else | |
20675 | if test "$ac_cv_type_long_long" = yes; then | |
20676 | # The cast to unsigned long works around a bug in the HP C Compiler | |
20677 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20678 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20679 | # This bug is HP SR number 8606223364. | |
20680 | if test "$cross_compiling" = yes; then | |
20681 | # Depending upon the size, compute the lo and hi bounds. | |
20682 | cat >conftest.$ac_ext <<_ACEOF | |
20683 | /* confdefs.h. */ | |
20684 | _ACEOF | |
20685 | cat confdefs.h >>conftest.$ac_ext | |
20686 | cat >>conftest.$ac_ext <<_ACEOF | |
20687 | /* end confdefs.h. */ | |
20688 | $ac_includes_default | |
20689 | int | |
20690 | main () | |
20691 | { | |
20692 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
20693 | test_array [0] = 0 | |
20694 | ||
20695 | ; | |
20696 | return 0; | |
20697 | } | |
20698 | _ACEOF | |
20699 | rm -f conftest.$ac_objext | |
20700 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20701 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20702 | ac_status=$? |
ac1cb8d3 VS |
20703 | grep -v '^ *+' conftest.er1 >conftest.err |
20704 | rm -f conftest.er1 | |
20705 | cat conftest.err >&5 | |
a848cd7e SC |
20706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20707 | (exit $ac_status); } && | |
d25774ab JS |
20708 | { ac_try='test -z "$ac_cxx_werror_flag" |
20709 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20711 | (eval $ac_try) 2>&5 | |
20712 | ac_status=$? | |
20713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20714 | (exit $ac_status); }; } && | |
20715 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20717 | (eval $ac_try) 2>&5 | |
20718 | ac_status=$? | |
20719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20720 | (exit $ac_status); }; }; then | |
20721 | ac_lo=0 ac_mid=0 | |
20722 | while :; do | |
20723 | cat >conftest.$ac_ext <<_ACEOF | |
20724 | /* confdefs.h. */ | |
20725 | _ACEOF | |
20726 | cat confdefs.h >>conftest.$ac_ext | |
20727 | cat >>conftest.$ac_ext <<_ACEOF | |
20728 | /* end confdefs.h. */ | |
20729 | $ac_includes_default | |
20730 | int | |
20731 | main () | |
20732 | { | |
20733 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20734 | test_array [0] = 0 | |
20735 | ||
20736 | ; | |
20737 | return 0; | |
20738 | } | |
20739 | _ACEOF | |
20740 | rm -f conftest.$ac_objext | |
20741 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20742 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20743 | ac_status=$? |
ac1cb8d3 VS |
20744 | grep -v '^ *+' conftest.er1 >conftest.err |
20745 | rm -f conftest.er1 | |
20746 | cat conftest.err >&5 | |
a848cd7e SC |
20747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20748 | (exit $ac_status); } && | |
d25774ab JS |
20749 | { ac_try='test -z "$ac_cxx_werror_flag" |
20750 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20752 | (eval $ac_try) 2>&5 | |
20753 | ac_status=$? | |
20754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20755 | (exit $ac_status); }; } && | |
20756 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20758 | (eval $ac_try) 2>&5 | |
20759 | ac_status=$? | |
20760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20761 | (exit $ac_status); }; }; then | |
20762 | ac_hi=$ac_mid; break | |
20763 | else | |
20764 | echo "$as_me: failed program was:" >&5 | |
20765 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20766 | ||
20767 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
20768 | if test $ac_lo -le $ac_mid; then |
20769 | ac_lo= ac_hi= | |
20770 | break | |
20771 | fi | |
20772 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 20773 | fi |
ac1cb8d3 | 20774 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20775 | done |
20776 | else | |
20777 | echo "$as_me: failed program was:" >&5 | |
20778 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20779 | ||
20780 | cat >conftest.$ac_ext <<_ACEOF | |
20781 | /* confdefs.h. */ | |
20782 | _ACEOF | |
20783 | cat confdefs.h >>conftest.$ac_ext | |
20784 | cat >>conftest.$ac_ext <<_ACEOF | |
20785 | /* end confdefs.h. */ | |
20786 | $ac_includes_default | |
20787 | int | |
20788 | main () | |
20789 | { | |
20790 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
20791 | test_array [0] = 0 | |
20792 | ||
20793 | ; | |
20794 | return 0; | |
20795 | } | |
20796 | _ACEOF | |
20797 | rm -f conftest.$ac_objext | |
20798 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20799 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20800 | ac_status=$? |
ac1cb8d3 VS |
20801 | grep -v '^ *+' conftest.er1 >conftest.err |
20802 | rm -f conftest.er1 | |
20803 | cat conftest.err >&5 | |
a848cd7e SC |
20804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20805 | (exit $ac_status); } && | |
d25774ab JS |
20806 | { ac_try='test -z "$ac_cxx_werror_flag" |
20807 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20809 | (eval $ac_try) 2>&5 | |
20810 | ac_status=$? | |
20811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20812 | (exit $ac_status); }; } && | |
20813 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20815 | (eval $ac_try) 2>&5 | |
20816 | ac_status=$? | |
20817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20818 | (exit $ac_status); }; }; then | |
20819 | ac_hi=-1 ac_mid=-1 | |
20820 | while :; do | |
20821 | cat >conftest.$ac_ext <<_ACEOF | |
20822 | /* confdefs.h. */ | |
20823 | _ACEOF | |
20824 | cat confdefs.h >>conftest.$ac_ext | |
20825 | cat >>conftest.$ac_ext <<_ACEOF | |
20826 | /* end confdefs.h. */ | |
20827 | $ac_includes_default | |
20828 | int | |
20829 | main () | |
20830 | { | |
20831 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
20832 | test_array [0] = 0 | |
20833 | ||
20834 | ; | |
20835 | return 0; | |
20836 | } | |
20837 | _ACEOF | |
20838 | rm -f conftest.$ac_objext | |
20839 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20840 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20841 | ac_status=$? |
ac1cb8d3 VS |
20842 | grep -v '^ *+' conftest.er1 >conftest.err |
20843 | rm -f conftest.er1 | |
20844 | cat conftest.err >&5 | |
a848cd7e SC |
20845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20846 | (exit $ac_status); } && | |
d25774ab JS |
20847 | { ac_try='test -z "$ac_cxx_werror_flag" |
20848 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20850 | (eval $ac_try) 2>&5 | |
20851 | ac_status=$? | |
20852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20853 | (exit $ac_status); }; } && | |
20854 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20856 | (eval $ac_try) 2>&5 | |
20857 | ac_status=$? | |
20858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20859 | (exit $ac_status); }; }; then | |
20860 | ac_lo=$ac_mid; break | |
20861 | else | |
20862 | echo "$as_me: failed program was:" >&5 | |
20863 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20864 | ||
20865 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
20866 | if test $ac_mid -le $ac_hi; then |
20867 | ac_lo= ac_hi= | |
20868 | break | |
20869 | fi | |
20870 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 20871 | fi |
ac1cb8d3 | 20872 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20873 | done |
20874 | else | |
20875 | echo "$as_me: failed program was:" >&5 | |
20876 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20877 | ||
20878 | ac_lo= ac_hi= | |
20879 | fi | |
ac1cb8d3 | 20880 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 20881 | fi |
ac1cb8d3 | 20882 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20883 | # Binary search between lo and hi bounds. |
20884 | while test "x$ac_lo" != "x$ac_hi"; do | |
20885 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20886 | cat >conftest.$ac_ext <<_ACEOF | |
20887 | /* confdefs.h. */ | |
20888 | _ACEOF | |
20889 | cat confdefs.h >>conftest.$ac_ext | |
20890 | cat >>conftest.$ac_ext <<_ACEOF | |
20891 | /* end confdefs.h. */ | |
20892 | $ac_includes_default | |
20893 | int | |
20894 | main () | |
20895 | { | |
20896 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20897 | test_array [0] = 0 | |
20898 | ||
20899 | ; | |
20900 | return 0; | |
20901 | } | |
20902 | _ACEOF | |
20903 | rm -f conftest.$ac_objext | |
20904 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20905 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20906 | ac_status=$? |
ac1cb8d3 VS |
20907 | grep -v '^ *+' conftest.er1 >conftest.err |
20908 | rm -f conftest.er1 | |
20909 | cat conftest.err >&5 | |
a848cd7e SC |
20910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20911 | (exit $ac_status); } && | |
d25774ab JS |
20912 | { ac_try='test -z "$ac_cxx_werror_flag" |
20913 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20915 | (eval $ac_try) 2>&5 | |
20916 | ac_status=$? | |
20917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20918 | (exit $ac_status); }; } && | |
20919 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20921 | (eval $ac_try) 2>&5 | |
20922 | ac_status=$? | |
20923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20924 | (exit $ac_status); }; }; then | |
20925 | ac_hi=$ac_mid | |
20926 | else | |
20927 | echo "$as_me: failed program was:" >&5 | |
20928 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20929 | ||
20930 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
20931 | fi | |
ac1cb8d3 | 20932 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20933 | done |
20934 | case $ac_lo in | |
20935 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
20936 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20937 | See \`config.log' for more details." >&5 | |
20938 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20939 | See \`config.log' for more details." >&2;} | |
20940 | { (exit 1); exit 1; }; } ;; | |
20941 | esac | |
20942 | else | |
20943 | if test "$cross_compiling" = yes; then | |
d25774ab JS |
20944 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
20945 | See \`config.log' for more details." >&5 | |
20946 | echo "$as_me: error: cannot run test program while cross compiling | |
20947 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
20948 | { (exit 1); exit 1; }; } |
20949 | else | |
20950 | cat >conftest.$ac_ext <<_ACEOF | |
20951 | /* confdefs.h. */ | |
20952 | _ACEOF | |
20953 | cat confdefs.h >>conftest.$ac_ext | |
20954 | cat >>conftest.$ac_ext <<_ACEOF | |
20955 | /* end confdefs.h. */ | |
20956 | $ac_includes_default | |
20957 | long longval () { return (long) (sizeof (long long)); } | |
20958 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
20959 | #include <stdio.h> | |
20960 | #include <stdlib.h> | |
20961 | int | |
20962 | main () | |
20963 | { | |
20964 | ||
20965 | FILE *f = fopen ("conftest.val", "w"); | |
20966 | if (! f) | |
20967 | exit (1); | |
20968 | if (((long) (sizeof (long long))) < 0) | |
20969 | { | |
20970 | long i = longval (); | |
20971 | if (i != ((long) (sizeof (long long)))) | |
20972 | exit (1); | |
20973 | fprintf (f, "%ld\n", i); | |
20974 | } | |
20975 | else | |
20976 | { | |
20977 | unsigned long i = ulongval (); | |
20978 | if (i != ((long) (sizeof (long long)))) | |
20979 | exit (1); | |
20980 | fprintf (f, "%lu\n", i); | |
20981 | } | |
20982 | exit (ferror (f) || fclose (f) != 0); | |
20983 | ||
20984 | ; | |
20985 | return 0; | |
20986 | } | |
20987 | _ACEOF | |
20988 | rm -f conftest$ac_exeext | |
20989 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20990 | (eval $ac_link) 2>&5 | |
20991 | ac_status=$? | |
20992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20993 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20995 | (eval $ac_try) 2>&5 | |
20996 | ac_status=$? | |
20997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20998 | (exit $ac_status); }; }; then | |
20999 | ac_cv_sizeof_long_long=`cat conftest.val` | |
21000 | else | |
21001 | echo "$as_me: program exited with status $ac_status" >&5 | |
21002 | echo "$as_me: failed program was:" >&5 | |
21003 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21004 | ||
21005 | ( exit $ac_status ) | |
21006 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
21007 | See \`config.log' for more details." >&5 | |
21008 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
21009 | See \`config.log' for more details." >&2;} | |
21010 | { (exit 1); exit 1; }; } | |
21011 | fi | |
ac1cb8d3 | 21012 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21013 | fi |
21014 | fi | |
21015 | rm -f conftest.val | |
21016 | else | |
21017 | ac_cv_sizeof_long_long=0 | |
21018 | fi | |
21019 | fi | |
21020 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
21021 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
21022 | cat >>confdefs.h <<_ACEOF | |
21023 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
21024 | _ACEOF | |
21025 | ||
21026 | ||
21027 | esac | |
21028 | ||
238ecede MW |
21029 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
21030 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 | |
21031 | if test "${ac_cv_type_wchar_t+set}" = set; then | |
21032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21033 | else | |
21034 | cat >conftest.$ac_ext <<_ACEOF | |
21035 | /* confdefs.h. */ | |
21036 | _ACEOF | |
21037 | cat confdefs.h >>conftest.$ac_ext | |
21038 | cat >>conftest.$ac_ext <<_ACEOF | |
21039 | /* end confdefs.h. */ | |
21040 | ||
83d8eb47 MW |
21041 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21042 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21043 | # error "fake wchar_t" |
21044 | #endif | |
21045 | #ifdef HAVE_WCHAR_H | |
21046 | # ifdef __CYGWIN__ | |
21047 | # include <stddef.h> | |
21048 | # endif | |
21049 | # include <wchar.h> | |
21050 | #endif | |
21051 | #ifdef HAVE_STDLIB_H | |
21052 | # include <stdlib.h> | |
21053 | #endif | |
21054 | #include <stdio.h> | |
21055 | ||
21056 | ||
21057 | ||
21058 | int | |
21059 | main () | |
21060 | { | |
21061 | if ((wchar_t *) 0) | |
21062 | return 0; | |
21063 | if (sizeof (wchar_t)) | |
21064 | return 0; | |
21065 | ; | |
21066 | return 0; | |
21067 | } | |
21068 | _ACEOF | |
21069 | rm -f conftest.$ac_objext | |
21070 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21071 | (eval $ac_compile) 2>conftest.er1 | |
21072 | ac_status=$? | |
21073 | grep -v '^ *+' conftest.er1 >conftest.err | |
21074 | rm -f conftest.er1 | |
21075 | cat conftest.err >&5 | |
21076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21077 | (exit $ac_status); } && | |
d25774ab JS |
21078 | { ac_try='test -z "$ac_cxx_werror_flag" |
21079 | || test ! -s conftest.err' | |
238ecede MW |
21080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21081 | (eval $ac_try) 2>&5 | |
21082 | ac_status=$? | |
21083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21084 | (exit $ac_status); }; } && | |
21085 | { ac_try='test -s conftest.$ac_objext' | |
21086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21087 | (eval $ac_try) 2>&5 | |
21088 | ac_status=$? | |
21089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21090 | (exit $ac_status); }; }; then | |
21091 | ac_cv_type_wchar_t=yes | |
21092 | else | |
21093 | echo "$as_me: failed program was:" >&5 | |
21094 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21095 | ||
21096 | ac_cv_type_wchar_t=no | |
21097 | fi | |
21098 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21099 | fi | |
21100 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 | |
21101 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 | |
21102 | ||
a848cd7e SC |
21103 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
21104 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
238ecede | 21105 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
a848cd7e SC |
21106 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21107 | else | |
238ecede MW |
21108 | if test "$ac_cv_type_wchar_t" = yes; then |
21109 | # The cast to unsigned long works around a bug in the HP C Compiler | |
21110 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
21111 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
21112 | # This bug is HP SR number 8606223364. | |
21113 | if test "$cross_compiling" = yes; then | |
21114 | # Depending upon the size, compute the lo and hi bounds. | |
21115 | cat >conftest.$ac_ext <<_ACEOF | |
21116 | /* confdefs.h. */ | |
21117 | _ACEOF | |
21118 | cat confdefs.h >>conftest.$ac_ext | |
21119 | cat >>conftest.$ac_ext <<_ACEOF | |
21120 | /* end confdefs.h. */ | |
21121 | ||
83d8eb47 MW |
21122 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21123 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21124 | # error "fake wchar_t" |
21125 | #endif | |
21126 | #ifdef HAVE_WCHAR_H | |
21127 | # ifdef __CYGWIN__ | |
21128 | # include <stddef.h> | |
21129 | # endif | |
21130 | # include <wchar.h> | |
21131 | #endif | |
21132 | #ifdef HAVE_STDLIB_H | |
21133 | # include <stdlib.h> | |
21134 | #endif | |
21135 | #include <stdio.h> | |
21136 | ||
21137 | ||
21138 | ||
21139 | int | |
21140 | main () | |
21141 | { | |
21142 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; | |
21143 | test_array [0] = 0 | |
21144 | ||
21145 | ; | |
21146 | return 0; | |
21147 | } | |
21148 | _ACEOF | |
21149 | rm -f conftest.$ac_objext | |
21150 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21151 | (eval $ac_compile) 2>conftest.er1 | |
21152 | ac_status=$? | |
21153 | grep -v '^ *+' conftest.er1 >conftest.err | |
21154 | rm -f conftest.er1 | |
21155 | cat conftest.err >&5 | |
21156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21157 | (exit $ac_status); } && | |
d25774ab JS |
21158 | { ac_try='test -z "$ac_cxx_werror_flag" |
21159 | || test ! -s conftest.err' | |
238ecede MW |
21160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21161 | (eval $ac_try) 2>&5 | |
21162 | ac_status=$? | |
21163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21164 | (exit $ac_status); }; } && | |
21165 | { ac_try='test -s conftest.$ac_objext' | |
21166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21167 | (eval $ac_try) 2>&5 | |
21168 | ac_status=$? | |
21169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21170 | (exit $ac_status); }; }; then | |
21171 | ac_lo=0 ac_mid=0 | |
21172 | while :; do | |
21173 | cat >conftest.$ac_ext <<_ACEOF | |
21174 | /* confdefs.h. */ | |
21175 | _ACEOF | |
21176 | cat confdefs.h >>conftest.$ac_ext | |
21177 | cat >>conftest.$ac_ext <<_ACEOF | |
21178 | /* end confdefs.h. */ | |
21179 | ||
83d8eb47 MW |
21180 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21181 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21182 | # error "fake wchar_t" |
21183 | #endif | |
21184 | #ifdef HAVE_WCHAR_H | |
21185 | # ifdef __CYGWIN__ | |
21186 | # include <stddef.h> | |
21187 | # endif | |
21188 | # include <wchar.h> | |
21189 | #endif | |
21190 | #ifdef HAVE_STDLIB_H | |
21191 | # include <stdlib.h> | |
21192 | #endif | |
21193 | #include <stdio.h> | |
21194 | ||
21195 | ||
21196 | ||
21197 | int | |
21198 | main () | |
21199 | { | |
21200 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
21201 | test_array [0] = 0 | |
21202 | ||
21203 | ; | |
21204 | return 0; | |
21205 | } | |
21206 | _ACEOF | |
21207 | rm -f conftest.$ac_objext | |
21208 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21209 | (eval $ac_compile) 2>conftest.er1 | |
21210 | ac_status=$? | |
21211 | grep -v '^ *+' conftest.er1 >conftest.err | |
21212 | rm -f conftest.er1 | |
21213 | cat conftest.err >&5 | |
21214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21215 | (exit $ac_status); } && | |
d25774ab JS |
21216 | { ac_try='test -z "$ac_cxx_werror_flag" |
21217 | || test ! -s conftest.err' | |
238ecede MW |
21218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21219 | (eval $ac_try) 2>&5 | |
21220 | ac_status=$? | |
21221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21222 | (exit $ac_status); }; } && | |
21223 | { ac_try='test -s conftest.$ac_objext' | |
21224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21225 | (eval $ac_try) 2>&5 | |
21226 | ac_status=$? | |
21227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21228 | (exit $ac_status); }; }; then | |
21229 | ac_hi=$ac_mid; break | |
21230 | else | |
21231 | echo "$as_me: failed program was:" >&5 | |
21232 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21233 | ||
21234 | ac_lo=`expr $ac_mid + 1` | |
21235 | if test $ac_lo -le $ac_mid; then | |
21236 | ac_lo= ac_hi= | |
21237 | break | |
21238 | fi | |
21239 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
21240 | fi | |
21241 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21242 | done | |
21243 | else | |
21244 | echo "$as_me: failed program was:" >&5 | |
21245 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21246 | ||
21247 | cat >conftest.$ac_ext <<_ACEOF | |
21248 | /* confdefs.h. */ | |
21249 | _ACEOF | |
21250 | cat confdefs.h >>conftest.$ac_ext | |
21251 | cat >>conftest.$ac_ext <<_ACEOF | |
21252 | /* end confdefs.h. */ | |
21253 | ||
83d8eb47 MW |
21254 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21255 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21256 | # error "fake wchar_t" |
21257 | #endif | |
21258 | #ifdef HAVE_WCHAR_H | |
21259 | # ifdef __CYGWIN__ | |
21260 | # include <stddef.h> | |
21261 | # endif | |
21262 | # include <wchar.h> | |
21263 | #endif | |
21264 | #ifdef HAVE_STDLIB_H | |
21265 | # include <stdlib.h> | |
21266 | #endif | |
21267 | #include <stdio.h> | |
21268 | ||
21269 | ||
21270 | ||
21271 | int | |
21272 | main () | |
21273 | { | |
21274 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; | |
21275 | test_array [0] = 0 | |
21276 | ||
21277 | ; | |
21278 | return 0; | |
21279 | } | |
21280 | _ACEOF | |
21281 | rm -f conftest.$ac_objext | |
21282 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21283 | (eval $ac_compile) 2>conftest.er1 | |
21284 | ac_status=$? | |
21285 | grep -v '^ *+' conftest.er1 >conftest.err | |
21286 | rm -f conftest.er1 | |
21287 | cat conftest.err >&5 | |
21288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21289 | (exit $ac_status); } && | |
d25774ab JS |
21290 | { ac_try='test -z "$ac_cxx_werror_flag" |
21291 | || test ! -s conftest.err' | |
238ecede MW |
21292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21293 | (eval $ac_try) 2>&5 | |
21294 | ac_status=$? | |
21295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21296 | (exit $ac_status); }; } && | |
21297 | { ac_try='test -s conftest.$ac_objext' | |
21298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21299 | (eval $ac_try) 2>&5 | |
21300 | ac_status=$? | |
21301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21302 | (exit $ac_status); }; }; then | |
21303 | ac_hi=-1 ac_mid=-1 | |
21304 | while :; do | |
21305 | cat >conftest.$ac_ext <<_ACEOF | |
21306 | /* confdefs.h. */ | |
21307 | _ACEOF | |
21308 | cat confdefs.h >>conftest.$ac_ext | |
21309 | cat >>conftest.$ac_ext <<_ACEOF | |
21310 | /* end confdefs.h. */ | |
21311 | ||
83d8eb47 MW |
21312 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21313 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21314 | # error "fake wchar_t" |
21315 | #endif | |
21316 | #ifdef HAVE_WCHAR_H | |
21317 | # ifdef __CYGWIN__ | |
21318 | # include <stddef.h> | |
21319 | # endif | |
21320 | # include <wchar.h> | |
21321 | #endif | |
21322 | #ifdef HAVE_STDLIB_H | |
21323 | # include <stdlib.h> | |
21324 | #endif | |
21325 | #include <stdio.h> | |
21326 | ||
21327 | ||
21328 | ||
21329 | int | |
21330 | main () | |
21331 | { | |
21332 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; | |
21333 | test_array [0] = 0 | |
21334 | ||
21335 | ; | |
21336 | return 0; | |
21337 | } | |
21338 | _ACEOF | |
21339 | rm -f conftest.$ac_objext | |
21340 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21341 | (eval $ac_compile) 2>conftest.er1 | |
21342 | ac_status=$? | |
21343 | grep -v '^ *+' conftest.er1 >conftest.err | |
21344 | rm -f conftest.er1 | |
21345 | cat conftest.err >&5 | |
21346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21347 | (exit $ac_status); } && | |
d25774ab JS |
21348 | { ac_try='test -z "$ac_cxx_werror_flag" |
21349 | || test ! -s conftest.err' | |
238ecede MW |
21350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21351 | (eval $ac_try) 2>&5 | |
21352 | ac_status=$? | |
21353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21354 | (exit $ac_status); }; } && | |
21355 | { ac_try='test -s conftest.$ac_objext' | |
21356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21357 | (eval $ac_try) 2>&5 | |
21358 | ac_status=$? | |
21359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21360 | (exit $ac_status); }; }; then | |
21361 | ac_lo=$ac_mid; break | |
21362 | else | |
21363 | echo "$as_me: failed program was:" >&5 | |
21364 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21365 | ||
21366 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
21367 | if test $ac_mid -le $ac_hi; then | |
21368 | ac_lo= ac_hi= | |
21369 | break | |
21370 | fi | |
21371 | ac_mid=`expr 2 '*' $ac_mid` | |
21372 | fi | |
21373 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21374 | done | |
21375 | else | |
21376 | echo "$as_me: failed program was:" >&5 | |
21377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21378 | ||
21379 | ac_lo= ac_hi= | |
21380 | fi | |
21381 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21382 | fi | |
21383 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21384 | # Binary search between lo and hi bounds. | |
21385 | while test "x$ac_lo" != "x$ac_hi"; do | |
21386 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
21387 | cat >conftest.$ac_ext <<_ACEOF | |
21388 | /* confdefs.h. */ | |
21389 | _ACEOF | |
21390 | cat confdefs.h >>conftest.$ac_ext | |
21391 | cat >>conftest.$ac_ext <<_ACEOF | |
21392 | /* end confdefs.h. */ | |
21393 | ||
83d8eb47 MW |
21394 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21395 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21396 | # error "fake wchar_t" |
21397 | #endif | |
21398 | #ifdef HAVE_WCHAR_H | |
21399 | # ifdef __CYGWIN__ | |
21400 | # include <stddef.h> | |
21401 | # endif | |
21402 | # include <wchar.h> | |
21403 | #endif | |
21404 | #ifdef HAVE_STDLIB_H | |
21405 | # include <stdlib.h> | |
21406 | #endif | |
21407 | #include <stdio.h> | |
a848cd7e | 21408 | |
a848cd7e | 21409 | |
a848cd7e | 21410 | |
238ecede MW |
21411 | int |
21412 | main () | |
21413 | { | |
21414 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
21415 | test_array [0] = 0 | |
a848cd7e | 21416 | |
238ecede MW |
21417 | ; |
21418 | return 0; | |
21419 | } | |
21420 | _ACEOF | |
21421 | rm -f conftest.$ac_objext | |
21422 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21423 | (eval $ac_compile) 2>conftest.er1 | |
21424 | ac_status=$? | |
21425 | grep -v '^ *+' conftest.er1 >conftest.err | |
21426 | rm -f conftest.er1 | |
21427 | cat conftest.err >&5 | |
21428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21429 | (exit $ac_status); } && | |
d25774ab JS |
21430 | { ac_try='test -z "$ac_cxx_werror_flag" |
21431 | || test ! -s conftest.err' | |
238ecede MW |
21432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21433 | (eval $ac_try) 2>&5 | |
21434 | ac_status=$? | |
21435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21436 | (exit $ac_status); }; } && | |
21437 | { ac_try='test -s conftest.$ac_objext' | |
21438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21439 | (eval $ac_try) 2>&5 | |
21440 | ac_status=$? | |
21441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21442 | (exit $ac_status); }; }; then | |
21443 | ac_hi=$ac_mid | |
21444 | else | |
21445 | echo "$as_me: failed program was:" >&5 | |
21446 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21447 | ||
21448 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
21449 | fi | |
21450 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21451 | done | |
21452 | case $ac_lo in | |
21453 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; | |
21454 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 | |
21455 | See \`config.log' for more details." >&5 | |
21456 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
21457 | See \`config.log' for more details." >&2;} | |
21458 | { (exit 1); exit 1; }; } ;; | |
21459 | esac | |
21460 | else | |
21461 | if test "$cross_compiling" = yes; then | |
d25774ab JS |
21462 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
21463 | See \`config.log' for more details." >&5 | |
21464 | echo "$as_me: error: cannot run test program while cross compiling | |
21465 | See \`config.log' for more details." >&2;} | |
238ecede | 21466 | { (exit 1); exit 1; }; } |
a848cd7e SC |
21467 | else |
21468 | cat >conftest.$ac_ext <<_ACEOF | |
21469 | /* confdefs.h. */ | |
21470 | _ACEOF | |
21471 | cat confdefs.h >>conftest.$ac_ext | |
21472 | cat >>conftest.$ac_ext <<_ACEOF | |
21473 | /* end confdefs.h. */ | |
21474 | ||
83d8eb47 MW |
21475 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21476 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21477 | # error "fake wchar_t" |
21478 | #endif | |
21479 | #ifdef HAVE_WCHAR_H | |
21480 | # ifdef __CYGWIN__ | |
21481 | # include <stddef.h> | |
21482 | # endif | |
21483 | # include <wchar.h> | |
21484 | #endif | |
21485 | #ifdef HAVE_STDLIB_H | |
21486 | # include <stdlib.h> | |
21487 | #endif | |
21488 | #include <stdio.h> | |
21489 | ||
21490 | ||
21491 | ||
21492 | long longval () { return (long) (sizeof (wchar_t)); } | |
21493 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } | |
21494 | #include <stdio.h> | |
21495 | #include <stdlib.h> | |
21496 | int | |
21497 | main () | |
21498 | { | |
a848cd7e | 21499 | |
238ecede MW |
21500 | FILE *f = fopen ("conftest.val", "w"); |
21501 | if (! f) | |
21502 | exit (1); | |
21503 | if (((long) (sizeof (wchar_t))) < 0) | |
21504 | { | |
21505 | long i = longval (); | |
21506 | if (i != ((long) (sizeof (wchar_t)))) | |
21507 | exit (1); | |
21508 | fprintf (f, "%ld\n", i); | |
21509 | } | |
21510 | else | |
21511 | { | |
21512 | unsigned long i = ulongval (); | |
21513 | if (i != ((long) (sizeof (wchar_t)))) | |
21514 | exit (1); | |
21515 | fprintf (f, "%lu\n", i); | |
21516 | } | |
21517 | exit (ferror (f) || fclose (f) != 0); | |
21518 | ||
21519 | ; | |
21520 | return 0; | |
21521 | } | |
a848cd7e SC |
21522 | _ACEOF |
21523 | rm -f conftest$ac_exeext | |
21524 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21525 | (eval $ac_link) 2>&5 | |
21526 | ac_status=$? | |
21527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21528 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21530 | (eval $ac_try) 2>&5 | |
21531 | ac_status=$? | |
21532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21533 | (exit $ac_status); }; }; then | |
238ecede | 21534 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
a848cd7e SC |
21535 | else |
21536 | echo "$as_me: program exited with status $ac_status" >&5 | |
21537 | echo "$as_me: failed program was:" >&5 | |
21538 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21539 | ||
21540 | ( exit $ac_status ) | |
238ecede MW |
21541 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
21542 | See \`config.log' for more details." >&5 | |
21543 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
21544 | See \`config.log' for more details." >&2;} | |
21545 | { (exit 1); exit 1; }; } | |
a848cd7e | 21546 | fi |
ac1cb8d3 | 21547 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 21548 | fi |
a848cd7e | 21549 | fi |
238ecede MW |
21550 | rm -f conftest.val |
21551 | else | |
21552 | ac_cv_sizeof_wchar_t=0 | |
21553 | fi | |
21554 | fi | |
21555 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 | |
21556 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 | |
a848cd7e | 21557 | cat >>confdefs.h <<_ACEOF |
238ecede | 21558 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
a848cd7e SC |
21559 | _ACEOF |
21560 | ||
21561 | ||
47a7e797 MW |
21562 | if test "$ac_cv_sizeof_wchar_t" != "0"; then |
21563 | wxUSE_WCHAR_T=yes | |
21564 | else | |
21565 | wxUSE_WCHAR_T=no | |
21566 | fi | |
238ecede | 21567 | |
ba3d13e1 VZ |
21568 | echo "$as_me:$LINENO: checking for va_copy" >&5 |
21569 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6 | |
21570 | if test "${wx_cv_func_va_copy+set}" = set; then | |
21571 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21572 | else | |
21573 | ||
21574 | cat >conftest.$ac_ext <<_ACEOF | |
21575 | ||
21576 | #include <stdarg.h> | |
21577 | void foo(char *f, ...) | |
21578 | { | |
21579 | va_list ap1, ap2; | |
21580 | va_start(ap1, f); | |
21581 | va_copy(ap2, ap1); | |
21582 | va_end(ap2); | |
21583 | va_end(ap1); | |
21584 | } | |
5886b072 VZ |
21585 | int main() |
21586 | { | |
b902e639 VZ |
21587 | foo("hi", 17); |
21588 | return 0; | |
5886b072 | 21589 | } |
ba3d13e1 VZ |
21590 | _ACEOF |
21591 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21592 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21593 | (eval $ac_link) 2>conftest.er1 | |
21594 | ac_status=$? | |
21595 | grep -v '^ *+' conftest.er1 >conftest.err | |
21596 | rm -f conftest.er1 | |
21597 | cat conftest.err >&5 | |
21598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21599 | (exit $ac_status); } && | |
d25774ab JS |
21600 | { ac_try='test -z "$ac_cxx_werror_flag" |
21601 | || test ! -s conftest.err' | |
ba3d13e1 VZ |
21602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21603 | (eval $ac_try) 2>&5 | |
21604 | ac_status=$? | |
21605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21606 | (exit $ac_status); }; } && | |
21607 | { ac_try='test -s conftest$ac_exeext' | |
21608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21609 | (eval $ac_try) 2>&5 | |
21610 | ac_status=$? | |
21611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21612 | (exit $ac_status); }; }; then | |
21613 | wx_cv_func_va_copy=yes | |
21614 | else | |
21615 | echo "$as_me: failed program was:" >&5 | |
21616 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21617 | ||
21618 | wx_cv_func_va_copy=no | |
21619 | ||
21620 | fi | |
21621 | rm -f conftest.err conftest.$ac_objext \ | |
21622 | conftest$ac_exeext conftest.$ac_ext | |
21623 | ||
21624 | ||
21625 | fi | |
21626 | echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5 | |
21627 | echo "${ECHO_T}$wx_cv_func_va_copy" >&6 | |
21628 | ||
21629 | if test $wx_cv_func_va_copy = "yes"; then | |
21630 | cat >>confdefs.h <<\_ACEOF | |
21631 | #define HAVE_VA_COPY 1 | |
21632 | _ACEOF | |
21633 | ||
21634 | else | |
21635 | echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5 | |
21636 | echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6 | |
21637 | if test "${wx_cv_type_va_list_lvalue+set}" = set; then | |
21638 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21639 | else | |
21640 | ||
21641 | if test "$cross_compiling" = yes; then | |
21642 | wx_cv_type_va_list_lvalue=yes | |
21643 | ||
21644 | else | |
21645 | cat >conftest.$ac_ext <<_ACEOF | |
21646 | ||
21647 | #include <stdarg.h> | |
21648 | int foo(char *f, ...) | |
21649 | { | |
21650 | va_list ap1, ap2; | |
21651 | va_start(ap1, f); | |
21652 | ap2 = ap1; | |
21653 | if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 ) | |
21654 | return 1; | |
21655 | va_end(ap2); | |
21656 | va_end(ap1); | |
21657 | return 0; | |
21658 | } | |
21659 | int main() | |
21660 | { | |
21661 | return foo("hi", 17); | |
21662 | } | |
21663 | _ACEOF | |
21664 | rm -f conftest$ac_exeext | |
21665 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21666 | (eval $ac_link) 2>&5 | |
21667 | ac_status=$? | |
21668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21669 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21671 | (eval $ac_try) 2>&5 | |
21672 | ac_status=$? | |
21673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21674 | (exit $ac_status); }; }; then | |
21675 | wx_cv_type_va_list_lvalue=yes | |
21676 | else | |
21677 | echo "$as_me: program exited with status $ac_status" >&5 | |
21678 | echo "$as_me: failed program was:" >&5 | |
21679 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21680 | ||
21681 | ( exit $ac_status ) | |
21682 | wx_cv_type_va_list_lvalue=no | |
21683 | fi | |
21684 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
21685 | fi | |
21686 | ||
21687 | ||
21688 | fi | |
21689 | echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5 | |
21690 | echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6 | |
21691 | ||
21692 | if test $wx_cv_type_va_list_lvalue != "yes"; then | |
21693 | cat >>confdefs.h <<\_ACEOF | |
21694 | #define VA_LIST_IS_ARRAY 1 | |
21695 | _ACEOF | |
21696 | ||
21697 | fi | |
21698 | fi | |
21699 | ||
a848cd7e SC |
21700 | # Check whether --enable-largefile or --disable-largefile was given. |
21701 | if test "${enable_largefile+set}" = set; then | |
21702 | enableval="$enable_largefile" | |
21703 | ||
21704 | fi; | |
21705 | if test "$enable_largefile" != no; then | |
21706 | wx_largefile=no | |
21707 | ||
21708 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
21709 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
21710 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
21711 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21712 | else | |
21713 | ||
21714 | cat >conftest.$ac_ext <<_ACEOF | |
21715 | /* confdefs.h. */ | |
21716 | _ACEOF | |
21717 | cat confdefs.h >>conftest.$ac_ext | |
21718 | cat >>conftest.$ac_ext <<_ACEOF | |
21719 | /* end confdefs.h. */ | |
21720 | #define _FILE_OFFSET_BITS 64 | |
21721 | #include <sys/types.h> | |
21722 | int | |
21723 | main () | |
21724 | { | |
21725 | typedef struct { | |
21726 | unsigned int field: sizeof(off_t) == 8; | |
21727 | } wxlf; | |
21728 | ||
21729 | ; | |
21730 | return 0; | |
21731 | } | |
21732 | _ACEOF | |
21733 | rm -f conftest.$ac_objext | |
21734 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21735 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21736 | ac_status=$? |
ac1cb8d3 VS |
21737 | grep -v '^ *+' conftest.er1 >conftest.err |
21738 | rm -f conftest.er1 | |
21739 | cat conftest.err >&5 | |
a848cd7e SC |
21740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21741 | (exit $ac_status); } && | |
d25774ab JS |
21742 | { ac_try='test -z "$ac_cxx_werror_flag" |
21743 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21745 | (eval $ac_try) 2>&5 | |
21746 | ac_status=$? | |
21747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21748 | (exit $ac_status); }; } && | |
21749 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21751 | (eval $ac_try) 2>&5 | |
21752 | ac_status=$? | |
21753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21754 | (exit $ac_status); }; }; then | |
21755 | ac_cv_sys_file_offset_bits=64 | |
21756 | else | |
21757 | echo "$as_me: failed program was:" >&5 | |
21758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21759 | ||
21760 | ac_cv_sys_file_offset_bits=no | |
21761 | fi | |
ac1cb8d3 | 21762 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21763 | |
21764 | ||
21765 | fi | |
21766 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
21767 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
21768 | ||
21769 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
21770 | wx_largefile=yes | |
21771 | cat >>confdefs.h <<_ACEOF | |
21772 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
21773 | _ACEOF | |
21774 | ||
21775 | fi | |
21776 | ||
21777 | if test "x$wx_largefile" != "xyes"; then | |
21778 | ||
21779 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
21780 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
21781 | if test "${ac_cv_sys_large_files+set}" = set; then | |
21782 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21783 | else | |
21784 | ||
21785 | cat >conftest.$ac_ext <<_ACEOF | |
21786 | /* confdefs.h. */ | |
21787 | _ACEOF | |
21788 | cat confdefs.h >>conftest.$ac_ext | |
21789 | cat >>conftest.$ac_ext <<_ACEOF | |
21790 | /* end confdefs.h. */ | |
21791 | #define _LARGE_FILES 1 | |
21792 | #include <sys/types.h> | |
21793 | int | |
21794 | main () | |
21795 | { | |
21796 | typedef struct { | |
21797 | unsigned int field: sizeof(off_t) == 8; | |
21798 | } wxlf; | |
21799 | ||
21800 | ; | |
21801 | return 0; | |
21802 | } | |
21803 | _ACEOF | |
21804 | rm -f conftest.$ac_objext | |
21805 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21806 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21807 | ac_status=$? |
ac1cb8d3 VS |
21808 | grep -v '^ *+' conftest.er1 >conftest.err |
21809 | rm -f conftest.er1 | |
21810 | cat conftest.err >&5 | |
a848cd7e SC |
21811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21812 | (exit $ac_status); } && | |
d25774ab JS |
21813 | { ac_try='test -z "$ac_cxx_werror_flag" |
21814 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21816 | (eval $ac_try) 2>&5 | |
21817 | ac_status=$? | |
21818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21819 | (exit $ac_status); }; } && | |
21820 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21822 | (eval $ac_try) 2>&5 | |
21823 | ac_status=$? | |
21824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21825 | (exit $ac_status); }; }; then | |
21826 | ac_cv_sys_large_files=1 | |
21827 | else | |
21828 | echo "$as_me: failed program was:" >&5 | |
21829 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21830 | ||
21831 | ac_cv_sys_large_files=no | |
21832 | fi | |
ac1cb8d3 | 21833 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21834 | |
21835 | ||
21836 | fi | |
21837 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
21838 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
21839 | ||
21840 | if test "$ac_cv_sys_large_files" != no; then | |
21841 | wx_largefile=yes | |
21842 | cat >>confdefs.h <<_ACEOF | |
21843 | #define _LARGE_FILES $ac_cv_sys_large_files | |
21844 | _ACEOF | |
21845 | ||
21846 | fi | |
21847 | ||
21848 | fi | |
21849 | ||
21850 | echo "$as_me:$LINENO: checking if large file support is available" >&5 | |
21851 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
21852 | if test "x$wx_largefile" = "xyes"; then | |
21853 | cat >>confdefs.h <<\_ACEOF | |
21854 | #define HAVE_LARGEFILE_SUPPORT 1 | |
21855 | _ACEOF | |
21856 | ||
21857 | fi | |
21858 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 | |
21859 | echo "${ECHO_T}$wx_largefile" >&6 | |
21860 | fi | |
21861 | ||
5b674b9d DE |
21862 | |
21863 | if test "x$wx_largefile" = "xyes"; then | |
21864 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then | |
5ff751d6 | 21865 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" |
00421666 MW |
21866 | |
21867 | if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then | |
21868 | echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5 | |
21869 | echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6 | |
21870 | if test "${wx_cv_STDC_EXT_required+set}" = set; then | |
21871 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21872 | else | |
21873 | ||
00421666 MW |
21874 | cat >conftest.$ac_ext <<_ACEOF |
21875 | /* confdefs.h. */ | |
21876 | _ACEOF | |
21877 | cat confdefs.h >>conftest.$ac_ext | |
21878 | cat >>conftest.$ac_ext <<_ACEOF | |
21879 | /* end confdefs.h. */ | |
21880 | ||
21881 | int | |
21882 | main () | |
21883 | { | |
21884 | ||
21885 | #ifndef __STDC_EXT__ | |
21886 | choke me | |
21887 | #endif | |
21888 | ||
21889 | ; | |
21890 | return 0; | |
21891 | } | |
21892 | _ACEOF | |
21893 | rm -f conftest.$ac_objext | |
21894 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21895 | (eval $ac_compile) 2>conftest.er1 | |
21896 | ac_status=$? | |
21897 | grep -v '^ *+' conftest.er1 >conftest.err | |
21898 | rm -f conftest.er1 | |
21899 | cat conftest.err >&5 | |
21900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21901 | (exit $ac_status); } && | |
d25774ab JS |
21902 | { ac_try='test -z "$ac_cxx_werror_flag" |
21903 | || test ! -s conftest.err' | |
00421666 MW |
21904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21905 | (eval $ac_try) 2>&5 | |
21906 | ac_status=$? | |
21907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21908 | (exit $ac_status); }; } && | |
21909 | { ac_try='test -s conftest.$ac_objext' | |
21910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21911 | (eval $ac_try) 2>&5 | |
21912 | ac_status=$? | |
21913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21914 | (exit $ac_status); }; }; then | |
21915 | wx_cv_STDC_EXT_required=no | |
21916 | else | |
21917 | echo "$as_me: failed program was:" >&5 | |
21918 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21919 | ||
21920 | wx_cv_STDC_EXT_required=yes | |
21921 | ||
21922 | fi | |
21923 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
00421666 MW |
21924 | |
21925 | ||
21926 | fi | |
21927 | echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5 | |
21928 | echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6 | |
21929 | if test "x$wx_cv_STDC_EXT_required" = "xyes"; then | |
5ff751d6 | 21930 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__" |
00421666 MW |
21931 | fi |
21932 | fi | |
5b674b9d | 21933 | else |
5ff751d6 | 21934 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES" |
5b674b9d DE |
21935 | fi |
21936 | echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | |
5294a27e VZ |
21937 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
21938 | if test "${ac_cv_sys_largefile_source+set}" = set; then | |
21939 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21940 | else | |
21941 | while :; do | |
21942 | ac_cv_sys_largefile_source=no | |
21943 | cat >conftest.$ac_ext <<_ACEOF | |
21944 | /* confdefs.h. */ | |
21945 | _ACEOF | |
21946 | cat confdefs.h >>conftest.$ac_ext | |
21947 | cat >>conftest.$ac_ext <<_ACEOF | |
21948 | /* end confdefs.h. */ | |
21949 | #include <stdio.h> | |
21950 | int | |
21951 | main () | |
21952 | { | |
21953 | return !fseeko; | |
21954 | ; | |
21955 | return 0; | |
21956 | } | |
21957 | _ACEOF | |
21958 | rm -f conftest.$ac_objext | |
21959 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21960 | (eval $ac_compile) 2>conftest.er1 | |
21961 | ac_status=$? | |
21962 | grep -v '^ *+' conftest.er1 >conftest.err | |
21963 | rm -f conftest.er1 | |
21964 | cat conftest.err >&5 | |
21965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21966 | (exit $ac_status); } && | |
d25774ab JS |
21967 | { ac_try='test -z "$ac_cxx_werror_flag" |
21968 | || test ! -s conftest.err' | |
5294a27e VZ |
21969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21970 | (eval $ac_try) 2>&5 | |
21971 | ac_status=$? | |
21972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21973 | (exit $ac_status); }; } && | |
21974 | { ac_try='test -s conftest.$ac_objext' | |
21975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21976 | (eval $ac_try) 2>&5 | |
21977 | ac_status=$? | |
21978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21979 | (exit $ac_status); }; }; then | |
21980 | break | |
21981 | else | |
21982 | echo "$as_me: failed program was:" >&5 | |
21983 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21984 | ||
21985 | fi | |
21986 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21987 | cat >conftest.$ac_ext <<_ACEOF | |
21988 | /* confdefs.h. */ | |
21989 | _ACEOF | |
21990 | cat confdefs.h >>conftest.$ac_ext | |
21991 | cat >>conftest.$ac_ext <<_ACEOF | |
21992 | /* end confdefs.h. */ | |
21993 | #define _LARGEFILE_SOURCE 1 | |
21994 | #include <stdio.h> | |
21995 | int | |
21996 | main () | |
21997 | { | |
21998 | return !fseeko; | |
21999 | ; | |
22000 | return 0; | |
22001 | } | |
22002 | _ACEOF | |
22003 | rm -f conftest.$ac_objext | |
22004 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22005 | (eval $ac_compile) 2>conftest.er1 | |
22006 | ac_status=$? | |
22007 | grep -v '^ *+' conftest.er1 >conftest.err | |
22008 | rm -f conftest.er1 | |
22009 | cat conftest.err >&5 | |
22010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22011 | (exit $ac_status); } && | |
d25774ab JS |
22012 | { ac_try='test -z "$ac_cxx_werror_flag" |
22013 | || test ! -s conftest.err' | |
5294a27e VZ |
22014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22015 | (eval $ac_try) 2>&5 | |
22016 | ac_status=$? | |
22017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22018 | (exit $ac_status); }; } && | |
22019 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
22025 | ac_cv_sys_largefile_source=1; break | |
22026 | else | |
22027 | echo "$as_me: failed program was:" >&5 | |
22028 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22029 | ||
22030 | fi | |
22031 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22032 | break | |
22033 | done | |
22034 | fi | |
22035 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 | |
22036 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 | |
22037 | if test "$ac_cv_sys_largefile_source" != no; then | |
22038 | ||
22039 | cat >>confdefs.h <<_ACEOF | |
22040 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
22041 | _ACEOF | |
22042 | ||
22043 | fi | |
22044 | rm -f conftest* | |
22045 | ||
22046 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | |
22047 | # in glibc 2.1.3, but that breaks too many other things. | |
22048 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
22049 | echo "$as_me:$LINENO: checking for fseeko" >&5 | |
22050 | echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 | |
22051 | if test "${ac_cv_func_fseeko+set}" = set; then | |
22052 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22053 | else | |
22054 | cat >conftest.$ac_ext <<_ACEOF | |
22055 | /* confdefs.h. */ | |
22056 | _ACEOF | |
22057 | cat confdefs.h >>conftest.$ac_ext | |
22058 | cat >>conftest.$ac_ext <<_ACEOF | |
22059 | /* end confdefs.h. */ | |
22060 | #include <stdio.h> | |
22061 | int | |
22062 | main () | |
22063 | { | |
22064 | return fseeko && fseeko (stdin, 0, 0); | |
22065 | ; | |
22066 | return 0; | |
22067 | } | |
22068 | _ACEOF | |
22069 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22070 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22071 | (eval $ac_link) 2>conftest.er1 | |
22072 | ac_status=$? | |
22073 | grep -v '^ *+' conftest.er1 >conftest.err | |
22074 | rm -f conftest.er1 | |
22075 | cat conftest.err >&5 | |
22076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22077 | (exit $ac_status); } && | |
d25774ab JS |
22078 | { ac_try='test -z "$ac_cxx_werror_flag" |
22079 | || test ! -s conftest.err' | |
5294a27e VZ |
22080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22081 | (eval $ac_try) 2>&5 | |
22082 | ac_status=$? | |
22083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22084 | (exit $ac_status); }; } && | |
22085 | { ac_try='test -s conftest$ac_exeext' | |
22086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22087 | (eval $ac_try) 2>&5 | |
22088 | ac_status=$? | |
22089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22090 | (exit $ac_status); }; }; then | |
22091 | ac_cv_func_fseeko=yes | |
22092 | else | |
22093 | echo "$as_me: failed program was:" >&5 | |
22094 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22095 | ||
22096 | ac_cv_func_fseeko=no | |
22097 | fi | |
22098 | rm -f conftest.err conftest.$ac_objext \ | |
22099 | conftest$ac_exeext conftest.$ac_ext | |
22100 | fi | |
22101 | echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 | |
22102 | echo "${ECHO_T}$ac_cv_func_fseeko" >&6 | |
22103 | if test $ac_cv_func_fseeko = yes; then | |
22104 | ||
22105 | cat >>confdefs.h <<\_ACEOF | |
22106 | #define HAVE_FSEEKO 1 | |
22107 | _ACEOF | |
22108 | ||
22109 | fi | |
22110 | ||
5b674b9d | 22111 | if test "$ac_cv_sys_largefile_source" != no; then |
5ff751d6 | 22112 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source" |
a848cd7e | 22113 | fi |
a848cd7e SC |
22114 | fi |
22115 | ||
22116 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
22117 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
22118 | if test "${ac_cv_c_bigendian+set}" = set; then | |
22119 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22120 | else | |
22121 | ac_cv_c_bigendian=unknown | |
22122 | # See if sys/param.h defines the BYTE_ORDER macro. | |
22123 | cat >conftest.$ac_ext <<_ACEOF | |
22124 | /* confdefs.h. */ | |
22125 | _ACEOF | |
22126 | cat confdefs.h >>conftest.$ac_ext | |
22127 | cat >>conftest.$ac_ext <<_ACEOF | |
22128 | /* end confdefs.h. */ | |
22129 | #include <sys/types.h> | |
22130 | #include <sys/param.h> | |
22131 | int | |
22132 | main () | |
22133 | { | |
22134 | ||
22135 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
22136 | bogus endian macros | |
22137 | #endif | |
22138 | ; | |
22139 | return 0; | |
22140 | } | |
22141 | _ACEOF | |
22142 | rm -f conftest.$ac_objext | |
22143 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22144 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22145 | ac_status=$? |
ac1cb8d3 VS |
22146 | grep -v '^ *+' conftest.er1 >conftest.err |
22147 | rm -f conftest.er1 | |
22148 | cat conftest.err >&5 | |
a848cd7e SC |
22149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22150 | (exit $ac_status); } && | |
d25774ab JS |
22151 | { ac_try='test -z "$ac_cxx_werror_flag" |
22152 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22154 | (eval $ac_try) 2>&5 | |
22155 | ac_status=$? | |
22156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22157 | (exit $ac_status); }; } && | |
22158 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22160 | (eval $ac_try) 2>&5 | |
22161 | ac_status=$? | |
22162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22163 | (exit $ac_status); }; }; then | |
22164 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
22165 | cat >conftest.$ac_ext <<_ACEOF | |
22166 | /* confdefs.h. */ | |
22167 | _ACEOF | |
22168 | cat confdefs.h >>conftest.$ac_ext | |
22169 | cat >>conftest.$ac_ext <<_ACEOF | |
22170 | /* end confdefs.h. */ | |
22171 | #include <sys/types.h> | |
22172 | #include <sys/param.h> | |
22173 | int | |
22174 | main () | |
22175 | { | |
22176 | ||
22177 | #if BYTE_ORDER != BIG_ENDIAN | |
22178 | not big endian | |
22179 | #endif | |
22180 | ; | |
22181 | return 0; | |
22182 | } | |
22183 | _ACEOF | |
22184 | rm -f conftest.$ac_objext | |
22185 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22186 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22187 | ac_status=$? |
ac1cb8d3 VS |
22188 | grep -v '^ *+' conftest.er1 >conftest.err |
22189 | rm -f conftest.er1 | |
22190 | cat conftest.err >&5 | |
a848cd7e SC |
22191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22192 | (exit $ac_status); } && | |
d25774ab JS |
22193 | { ac_try='test -z "$ac_cxx_werror_flag" |
22194 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22196 | (eval $ac_try) 2>&5 | |
22197 | ac_status=$? | |
22198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22199 | (exit $ac_status); }; } && | |
22200 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22202 | (eval $ac_try) 2>&5 | |
22203 | ac_status=$? | |
22204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22205 | (exit $ac_status); }; }; then | |
22206 | ac_cv_c_bigendian=yes | |
22207 | else | |
22208 | echo "$as_me: failed program was:" >&5 | |
22209 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22210 | ||
22211 | ac_cv_c_bigendian=no | |
22212 | fi | |
ac1cb8d3 | 22213 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22214 | else |
22215 | echo "$as_me: failed program was:" >&5 | |
22216 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22217 | ||
22218 | fi | |
ac1cb8d3 | 22219 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22220 | if test $ac_cv_c_bigendian = unknown; then |
22221 | if test "$cross_compiling" = yes; then | |
22222 | ac_cv_c_bigendian=unknown | |
22223 | else | |
22224 | cat >conftest.$ac_ext <<_ACEOF | |
22225 | /* confdefs.h. */ | |
22226 | _ACEOF | |
22227 | cat confdefs.h >>conftest.$ac_ext | |
22228 | cat >>conftest.$ac_ext <<_ACEOF | |
22229 | /* end confdefs.h. */ | |
22230 | main () { | |
22231 | /* Are we little or big endian? From Harbison&Steele. */ | |
22232 | union | |
22233 | { | |
22234 | long l; | |
22235 | char c[sizeof (long)]; | |
22236 | } u; | |
22237 | u.l = 1; | |
22238 | exit (u.c[sizeof (long) - 1] == 1); | |
22239 | } | |
22240 | _ACEOF | |
22241 | rm -f conftest$ac_exeext | |
22242 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22243 | (eval $ac_link) 2>&5 | |
22244 | ac_status=$? | |
22245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22246 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22248 | (eval $ac_try) 2>&5 | |
22249 | ac_status=$? | |
22250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22251 | (exit $ac_status); }; }; then | |
22252 | ac_cv_c_bigendian=no | |
22253 | else | |
22254 | echo "$as_me: program exited with status $ac_status" >&5 | |
22255 | echo "$as_me: failed program was:" >&5 | |
22256 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22257 | ||
22258 | ( exit $ac_status ) | |
22259 | ac_cv_c_bigendian=yes | |
22260 | fi | |
ac1cb8d3 | 22261 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22262 | fi |
22263 | fi | |
22264 | fi | |
22265 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
22266 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
22267 | if test $ac_cv_c_bigendian = unknown; then | |
22268 | { 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 | |
22269 | 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;} | |
22270 | fi | |
22271 | if test $ac_cv_c_bigendian = yes; then | |
22272 | cat >>confdefs.h <<\_ACEOF | |
22273 | #define WORDS_BIGENDIAN 1 | |
22274 | _ACEOF | |
22275 | ||
22276 | fi | |
22277 | ||
22278 | ||
a848cd7e SC |
22279 | |
22280 | ||
22281 | ||
22282 | ac_ext=cc | |
22283 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22284 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22285 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22286 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22287 | ||
22288 | ||
22289 | ||
22290 | for ac_header in iostream | |
22291 | do | |
22292 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
22293 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22294 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22295 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22296 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22297 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22298 | fi | |
22299 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22300 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22301 | else | |
22302 | # Is the header compilable? | |
22303 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
22304 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
22305 | cat >conftest.$ac_ext <<_ACEOF | |
22306 | /* confdefs.h. */ | |
22307 | _ACEOF | |
22308 | cat confdefs.h >>conftest.$ac_ext | |
22309 | cat >>conftest.$ac_ext <<_ACEOF | |
22310 | /* end confdefs.h. */ | |
22311 | $ac_includes_default | |
22312 | #include <$ac_header> | |
22313 | _ACEOF | |
22314 | rm -f conftest.$ac_objext | |
22315 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22316 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22317 | ac_status=$? |
ac1cb8d3 VS |
22318 | grep -v '^ *+' conftest.er1 >conftest.err |
22319 | rm -f conftest.er1 | |
22320 | cat conftest.err >&5 | |
a848cd7e SC |
22321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22322 | (exit $ac_status); } && | |
d25774ab JS |
22323 | { ac_try='test -z "$ac_cxx_werror_flag" |
22324 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22326 | (eval $ac_try) 2>&5 | |
22327 | ac_status=$? | |
22328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22329 | (exit $ac_status); }; } && | |
22330 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22332 | (eval $ac_try) 2>&5 | |
22333 | ac_status=$? | |
22334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22335 | (exit $ac_status); }; }; then | |
22336 | ac_header_compiler=yes | |
22337 | else | |
22338 | echo "$as_me: failed program was:" >&5 | |
22339 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22340 | ||
22341 | ac_header_compiler=no | |
22342 | fi | |
ac1cb8d3 | 22343 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22344 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22345 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22346 | ||
22347 | # Is the header present? | |
22348 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
22349 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
22350 | cat >conftest.$ac_ext <<_ACEOF | |
22351 | /* confdefs.h. */ | |
22352 | _ACEOF | |
22353 | cat confdefs.h >>conftest.$ac_ext | |
22354 | cat >>conftest.$ac_ext <<_ACEOF | |
22355 | /* end confdefs.h. */ | |
22356 | #include <$ac_header> | |
22357 | _ACEOF | |
22358 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22359 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22360 | ac_status=$? | |
22361 | grep -v '^ *+' conftest.er1 >conftest.err | |
22362 | rm -f conftest.er1 | |
22363 | cat conftest.err >&5 | |
22364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22365 | (exit $ac_status); } >/dev/null; then | |
22366 | if test -s conftest.err; then | |
22367 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 22368 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
22369 | else |
22370 | ac_cpp_err= | |
22371 | fi | |
22372 | else | |
22373 | ac_cpp_err=yes | |
22374 | fi | |
22375 | if test -z "$ac_cpp_err"; then | |
22376 | ac_header_preproc=yes | |
22377 | else | |
22378 | echo "$as_me: failed program was:" >&5 | |
22379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22380 | ||
22381 | ac_header_preproc=no | |
22382 | fi | |
22383 | rm -f conftest.err conftest.$ac_ext | |
22384 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22385 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22386 | ||
22387 | # So? What about this header? | |
ac1cb8d3 VS |
22388 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
22389 | yes:no: ) | |
a848cd7e SC |
22390 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
22391 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22392 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
22393 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
22394 | ac_header_preproc=yes | |
a848cd7e | 22395 | ;; |
ac1cb8d3 | 22396 | no:yes:* ) |
a848cd7e SC |
22397 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
22398 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22399 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
22400 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
22401 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
22402 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
22403 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
22404 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22405 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
22406 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22407 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
22408 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22409 | ( |
22410 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22411 | ## ----------------------------------------- ## |
22412 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22413 | ## ----------------------------------------- ## | |
a848cd7e SC |
22414 | _ASBOX |
22415 | ) | | |
22416 | sed "s/^/$as_me: WARNING: /" >&2 | |
22417 | ;; | |
22418 | esac | |
22419 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22420 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22421 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22422 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22423 | else | |
ac1cb8d3 | 22424 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
22425 | fi |
22426 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22427 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22428 | ||
22429 | fi | |
22430 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
22431 | cat >>confdefs.h <<_ACEOF | |
22432 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
22433 | _ACEOF | |
22434 | ||
22435 | fi | |
22436 | ||
22437 | done | |
22438 | ||
22439 | ||
22440 | if test "$ac_cv_header_iostream" = "yes" ; then | |
22441 | : | |
22442 | else | |
22443 | cat >>confdefs.h <<\_ACEOF | |
22444 | #define wxUSE_IOSTREAMH 1 | |
22445 | _ACEOF | |
22446 | ||
22447 | fi | |
22448 | ||
5d7b7554 VZ |
22449 | ac_ext=cc |
22450 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22451 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22452 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22453 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
a848cd7e SC |
22454 | |
22455 | ||
22456 | ||
22457 | ||
22458 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 | |
22459 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
22460 | if test "${wx_cv_cpp_bool+set}" = set; then | |
22461 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22462 | else | |
22463 | ||
22464 | ||
22465 | ||
22466 | ac_ext=cc | |
22467 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22468 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22469 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22470 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22471 | ||
22472 | ||
22473 | cat >conftest.$ac_ext <<_ACEOF | |
22474 | /* confdefs.h. */ | |
22475 | _ACEOF | |
22476 | cat confdefs.h >>conftest.$ac_ext | |
22477 | cat >>conftest.$ac_ext <<_ACEOF | |
22478 | /* end confdefs.h. */ | |
22479 | ||
22480 | ||
22481 | int | |
22482 | main () | |
22483 | { | |
22484 | ||
22485 | bool b = true; | |
22486 | ||
22487 | return 0; | |
22488 | ||
22489 | ; | |
22490 | return 0; | |
22491 | } | |
22492 | _ACEOF | |
22493 | rm -f conftest.$ac_objext | |
22494 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22495 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22496 | ac_status=$? |
ac1cb8d3 VS |
22497 | grep -v '^ *+' conftest.er1 >conftest.err |
22498 | rm -f conftest.er1 | |
22499 | cat conftest.err >&5 | |
a848cd7e SC |
22500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22501 | (exit $ac_status); } && | |
d25774ab JS |
22502 | { ac_try='test -z "$ac_cxx_werror_flag" |
22503 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22505 | (eval $ac_try) 2>&5 | |
22506 | ac_status=$? | |
22507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22508 | (exit $ac_status); }; } && | |
22509 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22511 | (eval $ac_try) 2>&5 | |
22512 | ac_status=$? | |
22513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22514 | (exit $ac_status); }; }; then | |
22515 | ||
22516 | wx_cv_cpp_bool=yes | |
22517 | ||
22518 | else | |
22519 | echo "$as_me: failed program was:" >&5 | |
22520 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22521 | ||
22522 | ||
22523 | wx_cv_cpp_bool=no | |
22524 | ||
22525 | ||
22526 | fi | |
ac1cb8d3 | 22527 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 22528 | |
5d7b7554 VZ |
22529 | ac_ext=cc |
22530 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22531 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22532 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22533 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
a848cd7e SC |
22534 | |
22535 | ||
22536 | fi | |
22537 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
22538 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
22539 | ||
22540 | if test "$wx_cv_cpp_bool" = "yes"; then | |
22541 | cat >>confdefs.h <<\_ACEOF | |
22542 | #define HAVE_BOOL 1 | |
22543 | _ACEOF | |
22544 | ||
22545 | fi | |
22546 | ||
22547 | ||
22548 | ||
22549 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 | |
22550 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
22551 | if test "${wx_cv_explicit+set}" = set; then | |
22552 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22553 | else | |
22554 | ||
22555 | ||
22556 | ||
22557 | ac_ext=cc | |
22558 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22559 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22560 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22561 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22562 | ||
22563 | ||
22564 | cat >conftest.$ac_ext <<_ACEOF | |
22565 | /* confdefs.h. */ | |
22566 | _ACEOF | |
22567 | cat confdefs.h >>conftest.$ac_ext | |
22568 | cat >>conftest.$ac_ext <<_ACEOF | |
22569 | /* end confdefs.h. */ | |
22570 | ||
22571 | class Foo { public: explicit Foo(int) {} }; | |
22572 | ||
22573 | int | |
22574 | main () | |
22575 | { | |
22576 | ||
22577 | return 0; | |
22578 | ||
22579 | ; | |
22580 | return 0; | |
22581 | } | |
22582 | _ACEOF | |
22583 | rm -f conftest.$ac_objext | |
22584 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22585 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22586 | ac_status=$? |
ac1cb8d3 VS |
22587 | grep -v '^ *+' conftest.er1 >conftest.err |
22588 | rm -f conftest.er1 | |
22589 | cat conftest.err >&5 | |
a848cd7e SC |
22590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22591 | (exit $ac_status); } && | |
d25774ab JS |
22592 | { ac_try='test -z "$ac_cxx_werror_flag" |
22593 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22595 | (eval $ac_try) 2>&5 | |
22596 | ac_status=$? | |
22597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22598 | (exit $ac_status); }; } && | |
22599 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22601 | (eval $ac_try) 2>&5 | |
22602 | ac_status=$? | |
22603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22604 | (exit $ac_status); }; }; then | |
22605 | ||
22606 | cat >conftest.$ac_ext <<_ACEOF | |
22607 | /* confdefs.h. */ | |
22608 | _ACEOF | |
22609 | cat confdefs.h >>conftest.$ac_ext | |
22610 | cat >>conftest.$ac_ext <<_ACEOF | |
22611 | /* end confdefs.h. */ | |
22612 | ||
22613 | class Foo { public: explicit Foo(int) {} }; | |
22614 | static void TakeFoo(const Foo& foo) { } | |
22615 | ||
22616 | int | |
22617 | main () | |
22618 | { | |
22619 | ||
22620 | TakeFoo(17); | |
22621 | return 0; | |
22622 | ||
22623 | ; | |
22624 | return 0; | |
22625 | } | |
22626 | _ACEOF | |
22627 | rm -f conftest.$ac_objext | |
22628 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22629 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22630 | ac_status=$? |
ac1cb8d3 VS |
22631 | grep -v '^ *+' conftest.er1 >conftest.err |
22632 | rm -f conftest.er1 | |
22633 | cat conftest.err >&5 | |
a848cd7e SC |
22634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22635 | (exit $ac_status); } && | |
d25774ab JS |
22636 | { ac_try='test -z "$ac_cxx_werror_flag" |
22637 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22639 | (eval $ac_try) 2>&5 | |
22640 | ac_status=$? | |
22641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22642 | (exit $ac_status); }; } && | |
22643 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22645 | (eval $ac_try) 2>&5 | |
22646 | ac_status=$? | |
22647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22648 | (exit $ac_status); }; }; then | |
22649 | wx_cv_explicit=no | |
22650 | else | |
22651 | echo "$as_me: failed program was:" >&5 | |
22652 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22653 | ||
22654 | wx_cv_explicit=yes | |
22655 | ||
22656 | fi | |
ac1cb8d3 | 22657 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22658 | |
22659 | else | |
22660 | echo "$as_me: failed program was:" >&5 | |
22661 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22662 | ||
22663 | wx_cv_explicit=no | |
22664 | ||
22665 | fi | |
ac1cb8d3 | 22666 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 22667 | |
5d7b7554 VZ |
22668 | ac_ext=cc |
22669 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22670 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22671 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22672 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
a848cd7e SC |
22673 | |
22674 | ||
22675 | fi | |
22676 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
22677 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
22678 | ||
22679 | if test "$wx_cv_explicit" = "yes"; then | |
22680 | cat >>confdefs.h <<\_ACEOF | |
22681 | #define HAVE_EXPLICIT 1 | |
22682 | _ACEOF | |
22683 | ||
22684 | fi | |
22685 | ||
22686 | ||
22687 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 | |
22688 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
22689 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
22690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22691 | else | |
22692 | ||
22693 | ||
22694 | ac_ext=cc | |
22695 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22696 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22697 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22698 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22699 | ||
22700 | cat >conftest.$ac_ext <<_ACEOF | |
22701 | /* confdefs.h. */ | |
22702 | _ACEOF | |
22703 | cat confdefs.h >>conftest.$ac_ext | |
22704 | cat >>conftest.$ac_ext <<_ACEOF | |
22705 | /* end confdefs.h. */ | |
22706 | ||
22707 | int | |
22708 | main () | |
22709 | { | |
22710 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
22711 | ; | |
22712 | return 0; | |
22713 | } | |
22714 | _ACEOF | |
22715 | rm -f conftest.$ac_objext | |
22716 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22717 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22718 | ac_status=$? |
ac1cb8d3 VS |
22719 | grep -v '^ *+' conftest.er1 >conftest.err |
22720 | rm -f conftest.er1 | |
22721 | cat conftest.err >&5 | |
a848cd7e SC |
22722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22723 | (exit $ac_status); } && | |
d25774ab JS |
22724 | { ac_try='test -z "$ac_cxx_werror_flag" |
22725 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22727 | (eval $ac_try) 2>&5 | |
22728 | ac_status=$? | |
22729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22730 | (exit $ac_status); }; } && | |
22731 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22733 | (eval $ac_try) 2>&5 | |
22734 | ac_status=$? | |
22735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22736 | (exit $ac_status); }; }; then | |
22737 | ac_cv_cxx_const_cast=yes | |
22738 | else | |
22739 | echo "$as_me: failed program was:" >&5 | |
22740 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22741 | ||
22742 | ac_cv_cxx_const_cast=no | |
22743 | fi | |
ac1cb8d3 | 22744 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5d7b7554 VZ |
22745 | ac_ext=cc |
22746 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22747 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22748 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22749 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
a848cd7e SC |
22750 | |
22751 | ||
22752 | fi | |
22753 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 | |
22754 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
22755 | if test "$ac_cv_cxx_const_cast" = yes; then | |
22756 | ||
22757 | cat >>confdefs.h <<\_ACEOF | |
22758 | #define HAVE_CONST_CAST | |
22759 | _ACEOF | |
22760 | ||
22761 | fi | |
22762 | ||
7714864e RL |
22763 | echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5 |
22764 | echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6 | |
22765 | if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then | |
22766 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22767 | else | |
22768 | ||
22769 | ||
22770 | ac_ext=cc | |
22771 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22772 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22773 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22774 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22775 | ||
22776 | cat >conftest.$ac_ext <<_ACEOF | |
22777 | /* confdefs.h. */ | |
22778 | _ACEOF | |
22779 | cat confdefs.h >>conftest.$ac_ext | |
22780 | cat >>conftest.$ac_ext <<_ACEOF | |
22781 | /* end confdefs.h. */ | |
22782 | #include <typeinfo> | |
22783 | class Base { public : Base () {} virtual void f () = 0;}; | |
22784 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
22785 | class Unrelated { public : Unrelated () {} }; | |
22786 | int g (Unrelated&) { return 0; } | |
22787 | int | |
22788 | main () | |
22789 | { | |
22790 | ||
22791 | Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e); | |
22792 | ; | |
22793 | return 0; | |
22794 | } | |
22795 | _ACEOF | |
22796 | rm -f conftest.$ac_objext | |
22797 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22798 | (eval $ac_compile) 2>conftest.er1 | |
22799 | ac_status=$? | |
22800 | grep -v '^ *+' conftest.er1 >conftest.err | |
22801 | rm -f conftest.er1 | |
22802 | cat conftest.err >&5 | |
22803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22804 | (exit $ac_status); } && | |
d25774ab JS |
22805 | { ac_try='test -z "$ac_cxx_werror_flag" |
22806 | || test ! -s conftest.err' | |
7714864e RL |
22807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22808 | (eval $ac_try) 2>&5 | |
22809 | ac_status=$? | |
22810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22811 | (exit $ac_status); }; } && | |
22812 | { ac_try='test -s conftest.$ac_objext' | |
22813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22814 | (eval $ac_try) 2>&5 | |
22815 | ac_status=$? | |
22816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22817 | (exit $ac_status); }; }; then | |
22818 | ac_cv_cxx_reinterpret_cast=yes | |
22819 | else | |
22820 | echo "$as_me: failed program was:" >&5 | |
22821 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22822 | ||
22823 | ac_cv_cxx_reinterpret_cast=no | |
22824 | fi | |
22825 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5d7b7554 VZ |
22826 | ac_ext=cc |
22827 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22828 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22829 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22830 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7714864e RL |
22831 | |
22832 | ||
22833 | fi | |
22834 | echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5 | |
22835 | echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6 | |
22836 | if test "$ac_cv_cxx_reinterpret_cast" = yes; then | |
22837 | ||
22838 | cat >>confdefs.h <<\_ACEOF | |
22839 | #define HAVE_REINTERPRET_CAST | |
22840 | _ACEOF | |
22841 | ||
22842 | fi | |
22843 | ||
a848cd7e SC |
22844 | echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5 |
22845 | echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6 | |
22846 | if test "${ac_cv_cxx_static_cast+set}" = set; then | |
22847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22848 | else | |
22849 | ||
22850 | ||
22851 | ac_ext=cc | |
22852 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22853 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22854 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22855 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22856 | ||
22857 | cat >conftest.$ac_ext <<_ACEOF | |
22858 | /* confdefs.h. */ | |
22859 | _ACEOF | |
22860 | cat confdefs.h >>conftest.$ac_ext | |
22861 | cat >>conftest.$ac_ext <<_ACEOF | |
22862 | /* end confdefs.h. */ | |
22863 | #include <typeinfo> | |
22864 | class Base { public : Base () {} virtual void f () = 0; }; | |
22865 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
22866 | int g (Derived&) { return 0; } | |
22867 | int | |
22868 | main () | |
22869 | { | |
22870 | ||
22871 | Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); | |
22872 | ; | |
22873 | return 0; | |
22874 | } | |
22875 | _ACEOF | |
22876 | rm -f conftest.$ac_objext | |
22877 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22878 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22879 | ac_status=$? |
ac1cb8d3 VS |
22880 | grep -v '^ *+' conftest.er1 >conftest.err |
22881 | rm -f conftest.er1 | |
22882 | cat conftest.err >&5 | |
a848cd7e SC |
22883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22884 | (exit $ac_status); } && | |
d25774ab JS |
22885 | { ac_try='test -z "$ac_cxx_werror_flag" |
22886 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22888 | (eval $ac_try) 2>&5 | |
22889 | ac_status=$? | |
22890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22891 | (exit $ac_status); }; } && | |
22892 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22894 | (eval $ac_try) 2>&5 | |
22895 | ac_status=$? | |
22896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22897 | (exit $ac_status); }; }; then | |
22898 | ac_cv_cxx_static_cast=yes | |
22899 | else | |
22900 | echo "$as_me: failed program was:" >&5 | |
22901 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22902 | ||
22903 | ac_cv_cxx_static_cast=no | |
22904 | fi | |
ac1cb8d3 | 22905 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5d7b7554 VZ |
22906 | ac_ext=cc |
22907 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22908 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22909 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22910 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
a848cd7e SC |
22911 | |
22912 | ||
22913 | fi | |
22914 | echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5 | |
22915 | echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6 | |
22916 | if test "$ac_cv_cxx_static_cast" = yes; then | |
22917 | ||
22918 | cat >>confdefs.h <<\_ACEOF | |
22919 | #define HAVE_STATIC_CAST | |
22920 | _ACEOF | |
22921 | ||
22922 | fi | |
22923 | ||
22924 | ||
3c28b7cb | 22925 | if test "x$SUNCXX" = xyes; then |
c92ad099 | 22926 | CXXFLAGS="-features=tmplife $CXXFLAGS" |
3c28b7cb MW |
22927 | fi |
22928 | ||
9122d155 | 22929 | if test "x$SUNCC" = xyes; then |
c92ad099 | 22930 | CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS" |
9122d155 VZ |
22931 | fi |
22932 | ||
0ad5d837 | 22933 | if test "x$SGICC" = "xyes"; then |
c92ad099 | 22934 | CFLAGS="-woff 3970 $CFLAGS" |
0ad5d837 VZ |
22935 | fi |
22936 | if test "x$SGICXX" = "xyes"; then | |
c92ad099 | 22937 | CXXFLAGS="-woff 3970 $CXXFLAGS" |
0ad5d837 VZ |
22938 | fi |
22939 | ||
2eef8513 | 22940 | if test "x$HPCC" = "xyes"; then |
c92ad099 | 22941 | CFLAGS="+W 2011,2450 $CFLAGS" |
2eef8513 VZ |
22942 | fi |
22943 | if test "x$HPCXX" = "xyes"; then | |
c92ad099 | 22944 | CXXFLAGS="+W 2340 $CXXFLAGS" |
2eef8513 VZ |
22945 | fi |
22946 | ||
22947 | if test "x$COMPAQCXX" = "xyes"; then | |
22948 | CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit" | |
22949 | fi | |
22950 | ||
f56c22b4 | 22951 | if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then |
f56c22b4 MW |
22952 | if test "$wxUSE_UNICODE" = "yes"; then |
22953 | std_string="std::wstring" | |
22954 | char_type="wchar_t" | |
22955 | else | |
22956 | std_string="std::string" | |
22957 | char_type="char" | |
22958 | fi | |
22959 | ||
22960 | echo "$as_me:$LINENO: checking for $std_string in <string>" >&5 | |
22961 | echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6 | |
a848cd7e SC |
22962 | cat >conftest.$ac_ext <<_ACEOF |
22963 | /* confdefs.h. */ | |
22964 | _ACEOF | |
22965 | cat confdefs.h >>conftest.$ac_ext | |
22966 | cat >>conftest.$ac_ext <<_ACEOF | |
22967 | /* end confdefs.h. */ | |
22968 | #include <string> | |
a848cd7e SC |
22969 | int |
22970 | main () | |
22971 | { | |
f56c22b4 | 22972 | $std_string foo; |
a848cd7e SC |
22973 | ; |
22974 | return 0; | |
22975 | } | |
22976 | _ACEOF | |
22977 | rm -f conftest.$ac_objext | |
22978 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22979 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22980 | ac_status=$? |
ac1cb8d3 VS |
22981 | grep -v '^ *+' conftest.er1 >conftest.err |
22982 | rm -f conftest.er1 | |
22983 | cat conftest.err >&5 | |
a848cd7e SC |
22984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22985 | (exit $ac_status); } && | |
d25774ab JS |
22986 | { ac_try='test -z "$ac_cxx_werror_flag" |
22987 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22989 | (eval $ac_try) 2>&5 | |
22990 | ac_status=$? | |
22991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22992 | (exit $ac_status); }; } && | |
22993 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22995 | (eval $ac_try) 2>&5 | |
22996 | ac_status=$? | |
22997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22998 | (exit $ac_status); }; }; then | |
22999 | echo "$as_me:$LINENO: result: yes" >&5 | |
23000 | echo "${ECHO_T}yes" >&6 | |
0a08f02a MB |
23001 | cat >>confdefs.h <<\_ACEOF |
23002 | #define HAVE_STD_WSTRING 1 | |
23003 | _ACEOF | |
23004 | ||
a848cd7e SC |
23005 | else |
23006 | echo "$as_me: failed program was:" >&5 | |
23007 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23008 | ||
23009 | echo "$as_me:$LINENO: result: no" >&5 | |
23010 | echo "${ECHO_T}no" >&6 | |
f56c22b4 MW |
23011 | echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5 |
23012 | echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6 | |
0a08f02a MB |
23013 | cat >conftest.$ac_ext <<_ACEOF |
23014 | /* confdefs.h. */ | |
23015 | _ACEOF | |
23016 | cat confdefs.h >>conftest.$ac_ext | |
23017 | cat >>conftest.$ac_ext <<_ACEOF | |
23018 | /* end confdefs.h. */ | |
23019 | ||
23020 | #ifdef HAVE_WCHAR_H | |
23021 | # ifdef __CYGWIN__ | |
23022 | # include <stddef.h> | |
23023 | # endif | |
23024 | # include <wchar.h> | |
23025 | #endif | |
23026 | #ifdef HAVE_STDLIB_H | |
23027 | # include <stdlib.h> | |
23028 | #endif | |
23029 | #include <stdio.h> | |
23030 | #include <string> | |
23031 | ||
23032 | int | |
23033 | main () | |
23034 | { | |
f56c22b4 MW |
23035 | std::basic_string<$char_type> foo; |
23036 | const $char_type* dummy = foo.c_str(); | |
0a08f02a MB |
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); } && | |
d25774ab JS |
23050 | { ac_try='test -z "$ac_cxx_werror_flag" |
23051 | || test ! -s conftest.err' | |
0a08f02a MB |
23052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23053 | (eval $ac_try) 2>&5 | |
23054 | ac_status=$? | |
23055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23056 | (exit $ac_status); }; } && | |
23057 | { ac_try='test -s conftest.$ac_objext' | |
23058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23059 | (eval $ac_try) 2>&5 | |
23060 | ac_status=$? | |
23061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23062 | (exit $ac_status); }; }; then | |
23063 | echo "$as_me:$LINENO: result: yes" >&5 | |
23064 | echo "${ECHO_T}yes" >&6 | |
23065 | else | |
23066 | echo "$as_me: failed program was:" >&5 | |
23067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23068 | ||
23069 | echo "$as_me:$LINENO: result: no" >&5 | |
23070 | echo "${ECHO_T}no" >&6 | |
f56c22b4 | 23071 | if test "$wxUSE_STL" = "yes"; then |
4b9918c5 MW |
23072 | { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5 |
23073 | echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;} | |
23074 | { (exit 1); exit 1; }; } | |
23075 | elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then | |
23076 | { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5 | |
23077 | echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;} | |
a848cd7e | 23078 | { (exit 1); exit 1; }; } |
f56c22b4 MW |
23079 | else |
23080 | { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5 | |
23081 | echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;} | |
23082 | wxUSE_STD_STRING=no | |
23083 | fi | |
23084 | ||
0a08f02a | 23085 | |
a848cd7e | 23086 | fi |
ac1cb8d3 | 23087 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 23088 | |
0a08f02a MB |
23089 | fi |
23090 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
f56c22b4 MW |
23091 | fi |
23092 | ||
23093 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
f56c22b4 MW |
23094 | echo "$as_me:$LINENO: checking for std::istream" >&5 |
23095 | echo $ECHO_N "checking for std::istream... $ECHO_C" >&6 | |
23096 | if test "${ac_cv_type_std__istream+set}" = set; then | |
23097 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23098 | else | |
23099 | cat >conftest.$ac_ext <<_ACEOF | |
23100 | /* confdefs.h. */ | |
23101 | _ACEOF | |
23102 | cat confdefs.h >>conftest.$ac_ext | |
23103 | cat >>conftest.$ac_ext <<_ACEOF | |
23104 | /* end confdefs.h. */ | |
23105 | #include <iostream> | |
23106 | ||
23107 | int | |
23108 | main () | |
23109 | { | |
23110 | if ((std::istream *) 0) | |
23111 | return 0; | |
23112 | if (sizeof (std::istream)) | |
23113 | return 0; | |
23114 | ; | |
23115 | return 0; | |
23116 | } | |
23117 | _ACEOF | |
23118 | rm -f conftest.$ac_objext | |
23119 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23120 | (eval $ac_compile) 2>conftest.er1 | |
23121 | ac_status=$? | |
23122 | grep -v '^ *+' conftest.er1 >conftest.err | |
23123 | rm -f conftest.er1 | |
23124 | cat conftest.err >&5 | |
23125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23126 | (exit $ac_status); } && | |
d25774ab JS |
23127 | { ac_try='test -z "$ac_cxx_werror_flag" |
23128 | || test ! -s conftest.err' | |
f56c22b4 MW |
23129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23130 | (eval $ac_try) 2>&5 | |
23131 | ac_status=$? | |
23132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23133 | (exit $ac_status); }; } && | |
23134 | { ac_try='test -s conftest.$ac_objext' | |
23135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23136 | (eval $ac_try) 2>&5 | |
23137 | ac_status=$? | |
23138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23139 | (exit $ac_status); }; }; then | |
23140 | ac_cv_type_std__istream=yes | |
23141 | else | |
23142 | echo "$as_me: failed program was:" >&5 | |
23143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23144 | ||
23145 | ac_cv_type_std__istream=no | |
23146 | fi | |
23147 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
23148 | fi | |
23149 | echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5 | |
23150 | echo "${ECHO_T}$ac_cv_type_std__istream" >&6 | |
23151 | if test $ac_cv_type_std__istream = yes; then | |
23152 | ||
23153 | cat >>confdefs.h <<_ACEOF | |
23154 | #define HAVE_STD__ISTREAM 1 | |
23155 | _ACEOF | |
23156 | ||
23157 | ||
23158 | else | |
23159 | wxUSE_STD_IOSTREAM=no | |
23160 | fi | |
23161 | echo "$as_me:$LINENO: checking for std::ostream" >&5 | |
23162 | echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6 | |
23163 | if test "${ac_cv_type_std__ostream+set}" = set; then | |
23164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23165 | else | |
23166 | cat >conftest.$ac_ext <<_ACEOF | |
23167 | /* confdefs.h. */ | |
23168 | _ACEOF | |
23169 | cat confdefs.h >>conftest.$ac_ext | |
23170 | cat >>conftest.$ac_ext <<_ACEOF | |
23171 | /* end confdefs.h. */ | |
23172 | #include <iostream> | |
23173 | ||
23174 | int | |
23175 | main () | |
23176 | { | |
23177 | if ((std::ostream *) 0) | |
23178 | return 0; | |
23179 | if (sizeof (std::ostream)) | |
23180 | return 0; | |
23181 | ; | |
23182 | return 0; | |
23183 | } | |
23184 | _ACEOF | |
23185 | rm -f conftest.$ac_objext | |
23186 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23187 | (eval $ac_compile) 2>conftest.er1 | |
23188 | ac_status=$? | |
23189 | grep -v '^ *+' conftest.er1 >conftest.err | |
23190 | rm -f conftest.er1 | |
23191 | cat conftest.err >&5 | |
23192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23193 | (exit $ac_status); } && | |
d25774ab JS |
23194 | { ac_try='test -z "$ac_cxx_werror_flag" |
23195 | || test ! -s conftest.err' | |
f56c22b4 MW |
23196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23197 | (eval $ac_try) 2>&5 | |
23198 | ac_status=$? | |
23199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23200 | (exit $ac_status); }; } && | |
23201 | { ac_try='test -s conftest.$ac_objext' | |
23202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23203 | (eval $ac_try) 2>&5 | |
23204 | ac_status=$? | |
23205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23206 | (exit $ac_status); }; }; then | |
23207 | ac_cv_type_std__ostream=yes | |
23208 | else | |
23209 | echo "$as_me: failed program was:" >&5 | |
23210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23211 | ||
23212 | ac_cv_type_std__ostream=no | |
23213 | fi | |
23214 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
23215 | fi | |
23216 | echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5 | |
23217 | echo "${ECHO_T}$ac_cv_type_std__ostream" >&6 | |
23218 | if test $ac_cv_type_std__ostream = yes; then | |
23219 | ||
23220 | cat >>confdefs.h <<_ACEOF | |
23221 | #define HAVE_STD__OSTREAM 1 | |
23222 | _ACEOF | |
23223 | ||
23224 | ||
23225 | else | |
23226 | wxUSE_STD_IOSTREAM=no | |
23227 | fi | |
23228 | ||
23229 | ||
23230 | if test "$wxUSE_STD_IOSTREAM" != "yes"; then | |
4b9918c5 MW |
23231 | if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then |
23232 | { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5 | |
23233 | echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;} | |
23234 | { (exit 1); exit 1; }; } | |
23235 | else | |
23236 | { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5 | |
f56c22b4 | 23237 | echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;} |
4b9918c5 | 23238 | fi |
f56c22b4 | 23239 | fi |
0a08f02a MB |
23240 | fi |
23241 | ||
23242 | if test "$wxUSE_STL" = "yes"; then | |
0a08f02a MB |
23243 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 |
23244 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
a848cd7e SC |
23245 | cat >conftest.$ac_ext <<_ACEOF |
23246 | /* confdefs.h. */ | |
23247 | _ACEOF | |
23248 | cat confdefs.h >>conftest.$ac_ext | |
23249 | cat >>conftest.$ac_ext <<_ACEOF | |
23250 | /* end confdefs.h. */ | |
23251 | #include <string> | |
0a08f02a MB |
23252 | #include <functional> |
23253 | #include <algorithm> | |
23254 | #include <vector> | |
23255 | #include <list> | |
a848cd7e SC |
23256 | int |
23257 | main () | |
23258 | { | |
0a08f02a MB |
23259 | std::vector<int> moo; |
23260 | std::list<int> foo; | |
23261 | std::vector<int>::iterator it = | |
23262 | std::find_if(moo.begin(), moo.end(), | |
23263 | std::bind2nd(std::less<int>(), 3)); | |
a848cd7e SC |
23264 | ; |
23265 | return 0; | |
23266 | } | |
23267 | _ACEOF | |
23268 | rm -f conftest.$ac_objext | |
23269 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23270 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23271 | ac_status=$? |
ac1cb8d3 VS |
23272 | grep -v '^ *+' conftest.er1 >conftest.err |
23273 | rm -f conftest.er1 | |
23274 | cat conftest.err >&5 | |
a848cd7e SC |
23275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23276 | (exit $ac_status); } && | |
d25774ab JS |
23277 | { ac_try='test -z "$ac_cxx_werror_flag" |
23278 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23280 | (eval $ac_try) 2>&5 | |
23281 | ac_status=$? | |
23282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23283 | (exit $ac_status); }; } && | |
23284 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23286 | (eval $ac_try) 2>&5 | |
23287 | ac_status=$? | |
23288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23289 | (exit $ac_status); }; }; then | |
23290 | echo "$as_me:$LINENO: result: yes" >&5 | |
23291 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
23292 | else |
23293 | echo "$as_me: failed program was:" >&5 | |
23294 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23295 | ||
23296 | echo "$as_me:$LINENO: result: no" >&5 | |
23297 | echo "${ECHO_T}no" >&6 | |
0a08f02a MB |
23298 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 |
23299 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
23300 | { (exit 1); exit 1; }; } | |
a848cd7e | 23301 | fi |
ac1cb8d3 | 23302 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23303 | |
23304 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
23305 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
23306 | cat >conftest.$ac_ext <<_ACEOF | |
23307 | /* confdefs.h. */ | |
23308 | _ACEOF | |
23309 | cat confdefs.h >>conftest.$ac_ext | |
23310 | cat >>conftest.$ac_ext <<_ACEOF | |
23311 | /* end confdefs.h. */ | |
23312 | #include <string> | |
23313 | int | |
23314 | main () | |
23315 | { | |
23316 | std::string foo, bar; | |
23317 | foo.compare(bar); | |
23318 | foo.compare(1, 1, bar); | |
23319 | foo.compare(1, 1, bar, 1, 1); | |
23320 | foo.compare(""); | |
23321 | foo.compare(1, 1, ""); | |
23322 | foo.compare(1, 1, "", 2); | |
23323 | ; | |
23324 | return 0; | |
23325 | } | |
23326 | _ACEOF | |
23327 | rm -f conftest.$ac_objext | |
23328 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23329 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23330 | ac_status=$? |
ac1cb8d3 VS |
23331 | grep -v '^ *+' conftest.er1 >conftest.err |
23332 | rm -f conftest.er1 | |
23333 | cat conftest.err >&5 | |
a848cd7e SC |
23334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23335 | (exit $ac_status); } && | |
d25774ab JS |
23336 | { ac_try='test -z "$ac_cxx_werror_flag" |
23337 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23339 | (eval $ac_try) 2>&5 | |
23340 | ac_status=$? | |
23341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23342 | (exit $ac_status); }; } && | |
23343 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23345 | (eval $ac_try) 2>&5 | |
23346 | ac_status=$? | |
23347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23348 | (exit $ac_status); }; }; then | |
23349 | echo "$as_me:$LINENO: result: yes" >&5 | |
23350 | echo "${ECHO_T}yes" >&6 | |
23351 | cat >>confdefs.h <<\_ACEOF | |
23352 | #define HAVE_STD_STRING_COMPARE 1 | |
23353 | _ACEOF | |
23354 | ||
23355 | else | |
23356 | echo "$as_me: failed program was:" >&5 | |
23357 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23358 | ||
23359 | echo "$as_me:$LINENO: result: no" >&5 | |
23360 | echo "${ECHO_T}no" >&6 | |
23361 | fi | |
ac1cb8d3 | 23362 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23363 | |
23364 | if test "${ac_cv_header_hash_map+set}" = set; then | |
23365 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
23366 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
23367 | if test "${ac_cv_header_hash_map+set}" = set; then | |
23368 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23369 | fi | |
23370 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
23371 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
23372 | else | |
23373 | # Is the header compilable? | |
23374 | echo "$as_me:$LINENO: checking hash_map usability" >&5 | |
23375 | echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6 | |
23376 | cat >conftest.$ac_ext <<_ACEOF | |
23377 | /* confdefs.h. */ | |
23378 | _ACEOF | |
23379 | cat confdefs.h >>conftest.$ac_ext | |
23380 | cat >>conftest.$ac_ext <<_ACEOF | |
23381 | /* end confdefs.h. */ | |
23382 | $ac_includes_default | |
23383 | #include <hash_map> | |
23384 | _ACEOF | |
23385 | rm -f conftest.$ac_objext | |
23386 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23387 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 23388 | ac_status=$? |
ac1cb8d3 VS |
23389 | grep -v '^ *+' conftest.er1 >conftest.err |
23390 | rm -f conftest.er1 | |
23391 | cat conftest.err >&5 | |
bdcade0a MB |
23392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23393 | (exit $ac_status); } && | |
d25774ab JS |
23394 | { ac_try='test -z "$ac_cxx_werror_flag" |
23395 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23397 | (eval $ac_try) 2>&5 | |
23398 | ac_status=$? | |
23399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23400 | (exit $ac_status); }; } && | |
23401 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
23402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23403 | (eval $ac_try) 2>&5 | |
23404 | ac_status=$? | |
23405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23406 | (exit $ac_status); }; }; then | |
23407 | ac_header_compiler=yes | |
23408 | else | |
23409 | echo "$as_me: failed program was:" >&5 | |
23410 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23411 | ||
23412 | ac_header_compiler=no | |
23413 | fi | |
ac1cb8d3 | 23414 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23415 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23416 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23417 | ||
23418 | # Is the header present? | |
23419 | echo "$as_me:$LINENO: checking hash_map presence" >&5 | |
23420 | echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6 | |
23421 | cat >conftest.$ac_ext <<_ACEOF | |
23422 | /* confdefs.h. */ | |
23423 | _ACEOF | |
23424 | cat confdefs.h >>conftest.$ac_ext | |
23425 | cat >>conftest.$ac_ext <<_ACEOF | |
23426 | /* end confdefs.h. */ | |
23427 | #include <hash_map> | |
23428 | _ACEOF | |
23429 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23430 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23431 | ac_status=$? | |
23432 | grep -v '^ *+' conftest.er1 >conftest.err | |
23433 | rm -f conftest.er1 | |
23434 | cat conftest.err >&5 | |
23435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23436 | (exit $ac_status); } >/dev/null; then | |
23437 | if test -s conftest.err; then | |
23438 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 23439 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
23440 | else |
23441 | ac_cpp_err= | |
23442 | fi | |
23443 | else | |
23444 | ac_cpp_err=yes | |
23445 | fi | |
23446 | if test -z "$ac_cpp_err"; then | |
23447 | ac_header_preproc=yes | |
23448 | else | |
23449 | echo "$as_me: failed program was:" >&5 | |
23450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23451 | ||
23452 | ac_header_preproc=no | |
23453 | fi | |
23454 | rm -f conftest.err conftest.$ac_ext | |
23455 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23456 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23457 | ||
23458 | # So? What about this header? | |
ac1cb8d3 VS |
23459 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
23460 | yes:no: ) | |
bdcade0a MB |
23461 | { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
23462 | echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23463 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5 |
23464 | echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;} | |
23465 | ac_header_preproc=yes | |
bdcade0a | 23466 | ;; |
ac1cb8d3 | 23467 | no:yes:* ) |
bdcade0a MB |
23468 | { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5 |
23469 | echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23470 | { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5 |
23471 | echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;} | |
23472 | { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5 | |
23473 | echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;} | |
23474 | { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
23475 | echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
23476 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5 |
23477 | echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23478 | { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5 |
23479 | echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
23480 | ( |
23481 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23482 | ## ----------------------------------------- ## |
23483 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23484 | ## ----------------------------------------- ## | |
bdcade0a MB |
23485 | _ASBOX |
23486 | ) | | |
23487 | sed "s/^/$as_me: WARNING: /" >&2 | |
23488 | ;; | |
23489 | esac | |
23490 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
23491 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
23492 | if test "${ac_cv_header_hash_map+set}" = set; then | |
23493 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23494 | else | |
23495 | ac_cv_header_hash_map=$ac_header_preproc | |
23496 | fi | |
23497 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
23498 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
23499 | ||
23500 | fi | |
23501 | if test $ac_cv_header_hash_map = yes; then | |
23502 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
23503 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
23504 | cat >conftest.$ac_ext <<_ACEOF | |
23505 | /* confdefs.h. */ | |
23506 | _ACEOF | |
23507 | cat confdefs.h >>conftest.$ac_ext | |
23508 | cat >>conftest.$ac_ext <<_ACEOF | |
23509 | /* end confdefs.h. */ | |
23510 | #include <hash_map> | |
23511 | #include <hash_set> | |
23512 | int | |
23513 | main () | |
23514 | { | |
23515 | std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1; | |
23516 | std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2; | |
23517 | ; | |
23518 | return 0; | |
23519 | } | |
23520 | _ACEOF | |
23521 | rm -f conftest.$ac_objext | |
23522 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23523 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 23524 | ac_status=$? |
ac1cb8d3 VS |
23525 | grep -v '^ *+' conftest.er1 >conftest.err |
23526 | rm -f conftest.er1 | |
23527 | cat conftest.err >&5 | |
bdcade0a MB |
23528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23529 | (exit $ac_status); } && | |
d25774ab JS |
23530 | { ac_try='test -z "$ac_cxx_werror_flag" |
23531 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23533 | (eval $ac_try) 2>&5 | |
23534 | ac_status=$? | |
23535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23536 | (exit $ac_status); }; } && | |
23537 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
23538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23539 | (eval $ac_try) 2>&5 | |
23540 | ac_status=$? | |
23541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23542 | (exit $ac_status); }; }; then | |
23543 | echo "$as_me:$LINENO: result: yes" >&5 | |
23544 | echo "${ECHO_T}yes" >&6 | |
23545 | cat >>confdefs.h <<\_ACEOF | |
23546 | #define HAVE_HASH_MAP 1 | |
23547 | _ACEOF | |
23548 | ||
23549 | cat >>confdefs.h <<\_ACEOF | |
23550 | #define HAVE_STD_HASH_MAP 1 | |
23551 | _ACEOF | |
23552 | ||
23553 | else | |
23554 | echo "$as_me: failed program was:" >&5 | |
23555 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23556 | ||
23557 | echo "$as_me:$LINENO: result: no" >&5 | |
23558 | echo "${ECHO_T}no" >&6 | |
23559 | fi | |
ac1cb8d3 | 23560 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23561 | |
23562 | fi | |
23563 | ||
23564 | ||
23565 | ||
23566 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
23567 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
23568 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
23569 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
23570 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23571 | fi | |
23572 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
23573 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
23574 | else | |
23575 | # Is the header compilable? | |
23576 | echo "$as_me:$LINENO: checking ext/hash_map usability" >&5 | |
23577 | echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6 | |
23578 | cat >conftest.$ac_ext <<_ACEOF | |
23579 | /* confdefs.h. */ | |
23580 | _ACEOF | |
23581 | cat confdefs.h >>conftest.$ac_ext | |
23582 | cat >>conftest.$ac_ext <<_ACEOF | |
23583 | /* end confdefs.h. */ | |
23584 | $ac_includes_default | |
23585 | #include <ext/hash_map> | |
23586 | _ACEOF | |
23587 | rm -f conftest.$ac_objext | |
23588 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23589 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 23590 | ac_status=$? |
ac1cb8d3 VS |
23591 | grep -v '^ *+' conftest.er1 >conftest.err |
23592 | rm -f conftest.er1 | |
23593 | cat conftest.err >&5 | |
bdcade0a MB |
23594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23595 | (exit $ac_status); } && | |
d25774ab JS |
23596 | { ac_try='test -z "$ac_cxx_werror_flag" |
23597 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23599 | (eval $ac_try) 2>&5 | |
23600 | ac_status=$? | |
23601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23602 | (exit $ac_status); }; } && | |
23603 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
23604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23605 | (eval $ac_try) 2>&5 | |
23606 | ac_status=$? | |
23607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23608 | (exit $ac_status); }; }; then | |
23609 | ac_header_compiler=yes | |
23610 | else | |
23611 | echo "$as_me: failed program was:" >&5 | |
23612 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23613 | ||
23614 | ac_header_compiler=no | |
23615 | fi | |
ac1cb8d3 | 23616 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23617 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23618 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23619 | ||
23620 | # Is the header present? | |
23621 | echo "$as_me:$LINENO: checking ext/hash_map presence" >&5 | |
23622 | echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6 | |
23623 | cat >conftest.$ac_ext <<_ACEOF | |
23624 | /* confdefs.h. */ | |
23625 | _ACEOF | |
23626 | cat confdefs.h >>conftest.$ac_ext | |
23627 | cat >>conftest.$ac_ext <<_ACEOF | |
23628 | /* end confdefs.h. */ | |
23629 | #include <ext/hash_map> | |
23630 | _ACEOF | |
23631 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23632 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23633 | ac_status=$? | |
23634 | grep -v '^ *+' conftest.er1 >conftest.err | |
23635 | rm -f conftest.er1 | |
23636 | cat conftest.err >&5 | |
23637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23638 | (exit $ac_status); } >/dev/null; then | |
23639 | if test -s conftest.err; then | |
23640 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 23641 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
23642 | else |
23643 | ac_cpp_err= | |
23644 | fi | |
23645 | else | |
23646 | ac_cpp_err=yes | |
23647 | fi | |
23648 | if test -z "$ac_cpp_err"; then | |
23649 | ac_header_preproc=yes | |
23650 | else | |
23651 | echo "$as_me: failed program was:" >&5 | |
23652 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23653 | ||
23654 | ac_header_preproc=no | |
23655 | fi | |
23656 | rm -f conftest.err conftest.$ac_ext | |
23657 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23658 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23659 | ||
23660 | # So? What about this header? | |
ac1cb8d3 VS |
23661 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
23662 | yes:no: ) | |
bdcade0a MB |
23663 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
23664 | echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23665 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5 |
23666 | echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;} | |
23667 | ac_header_preproc=yes | |
bdcade0a | 23668 | ;; |
ac1cb8d3 | 23669 | no:yes:* ) |
bdcade0a MB |
23670 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5 |
23671 | echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23672 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5 |
23673 | echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;} | |
23674 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5 | |
23675 | echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;} | |
23676 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
23677 | echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
23678 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5 |
23679 | echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23680 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5 |
23681 | echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
23682 | ( |
23683 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23684 | ## ----------------------------------------- ## |
23685 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23686 | ## ----------------------------------------- ## | |
bdcade0a MB |
23687 | _ASBOX |
23688 | ) | | |
23689 | sed "s/^/$as_me: WARNING: /" >&2 | |
23690 | ;; | |
23691 | esac | |
23692 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
23693 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
23694 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
23695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23696 | else | |
23697 | ac_cv_header_ext_hash_map=$ac_header_preproc | |
23698 | fi | |
23699 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
23700 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
23701 | ||
23702 | fi | |
23703 | if test $ac_cv_header_ext_hash_map = yes; then | |
23704 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
23705 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
23706 | cat >conftest.$ac_ext <<_ACEOF | |
23707 | /* confdefs.h. */ | |
23708 | _ACEOF | |
23709 | cat confdefs.h >>conftest.$ac_ext | |
23710 | cat >>conftest.$ac_ext <<_ACEOF | |
23711 | /* end confdefs.h. */ | |
23712 | #include <ext/hash_map> | |
23713 | #include <ext/hash_set> | |
23714 | int | |
23715 | main () | |
23716 | { | |
23717 | __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1; | |
23718 | __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2; | |
23719 | ; | |
23720 | return 0; | |
23721 | } | |
23722 | _ACEOF | |
23723 | rm -f conftest.$ac_objext | |
23724 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23725 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 23726 | ac_status=$? |
ac1cb8d3 VS |
23727 | grep -v '^ *+' conftest.er1 >conftest.err |
23728 | rm -f conftest.er1 | |
23729 | cat conftest.err >&5 | |
bdcade0a MB |
23730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23731 | (exit $ac_status); } && | |
d25774ab JS |
23732 | { ac_try='test -z "$ac_cxx_werror_flag" |
23733 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23735 | (eval $ac_try) 2>&5 | |
23736 | ac_status=$? | |
23737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23738 | (exit $ac_status); }; } && | |
23739 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
23740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23741 | (eval $ac_try) 2>&5 | |
23742 | ac_status=$? | |
23743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23744 | (exit $ac_status); }; }; then | |
23745 | echo "$as_me:$LINENO: result: yes" >&5 | |
23746 | echo "${ECHO_T}yes" >&6 | |
23747 | cat >>confdefs.h <<\_ACEOF | |
23748 | #define HAVE_EXT_HASH_MAP 1 | |
23749 | _ACEOF | |
23750 | ||
23751 | cat >>confdefs.h <<\_ACEOF | |
23752 | #define HAVE_GNU_CXX_HASH_MAP 1 | |
23753 | _ACEOF | |
23754 | ||
23755 | else | |
23756 | echo "$as_me: failed program was:" >&5 | |
23757 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23758 | ||
23759 | echo "$as_me:$LINENO: result: no" >&5 | |
23760 | echo "${ECHO_T}no" >&6 | |
23761 | fi | |
ac1cb8d3 | 23762 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23763 | |
23764 | fi | |
23765 | ||
23766 | ||
a848cd7e SC |
23767 | fi |
23768 | ||
23769 | ||
23770 | SEARCH_INCLUDE="\ | |
23771 | /usr/local/include \ | |
23772 | \ | |
23773 | /usr/Motif-2.1/include \ | |
23774 | /usr/Motif-1.2/include \ | |
23775 | /usr/include/Motif1.2 \ | |
a848cd7e SC |
23776 | \ |
23777 | /usr/dt/include \ | |
23778 | /usr/openwin/include \ | |
23779 | \ | |
23780 | /usr/include/Xm \ | |
23781 | \ | |
23782 | /usr/X11R6/include \ | |
23783 | /usr/X11R6.4/include \ | |
23784 | /usr/X11R5/include \ | |
23785 | /usr/X11R4/include \ | |
23786 | \ | |
23787 | /usr/include/X11R6 \ | |
23788 | /usr/include/X11R5 \ | |
23789 | /usr/include/X11R4 \ | |
23790 | \ | |
23791 | /usr/local/X11R6/include \ | |
23792 | /usr/local/X11R5/include \ | |
23793 | /usr/local/X11R4/include \ | |
23794 | \ | |
23795 | /usr/local/include/X11R6 \ | |
23796 | /usr/local/include/X11R5 \ | |
23797 | /usr/local/include/X11R4 \ | |
23798 | \ | |
23799 | /usr/X11/include \ | |
23800 | /usr/include/X11 \ | |
23801 | /usr/local/X11/include \ | |
23802 | /usr/local/include/X11 \ | |
23803 | \ | |
a848cd7e | 23804 | /usr/XFree86/include/X11 \ |
e051b34e MW |
23805 | /usr/pkg/include \ |
23806 | \ | |
a848cd7e SC |
23807 | /usr/openwin/share/include" |
23808 | ||
6f9cf1e6 | 23809 | echo "$as_me:$LINENO: checking for libraries directory" >&5 |
0ad5d837 | 23810 | echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6 |
6f9cf1e6 MW |
23811 | |
23812 | case "${host}" in | |
23813 | *-*-irix6* ) | |
23814 | if test "${wx_cv_std_libpath+set}" = set; then | |
0ad5d837 VZ |
23815 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23816 | else | |
23817 | ||
c687b303 VZ |
23818 | for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do |
23819 | for e in a so sl dylib dll.a; do | |
23820 | libc="$d/libc.$e" | |
23821 | if test -f $libc; then | |
23822 | save_LIBS="$LIBS" | |
23823 | LIBS="$libc" | |
23824 | cat >conftest.$ac_ext <<_ACEOF | |
0ad5d837 VZ |
23825 | int main() { return 0; } |
23826 | _ACEOF | |
23827 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23828 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23829 | (eval $ac_link) 2>conftest.er1 | |
23830 | ac_status=$? | |
23831 | grep -v '^ *+' conftest.er1 >conftest.err | |
23832 | rm -f conftest.er1 | |
23833 | cat conftest.err >&5 | |
23834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23835 | (exit $ac_status); } && | |
d25774ab JS |
23836 | { ac_try='test -z "$ac_cxx_werror_flag" |
23837 | || test ! -s conftest.err' | |
0ad5d837 VZ |
23838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23839 | (eval $ac_try) 2>&5 | |
23840 | ac_status=$? | |
23841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23842 | (exit $ac_status); }; } && | |
23843 | { ac_try='test -s conftest$ac_exeext' | |
23844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23845 | (eval $ac_try) 2>&5 | |
23846 | ac_status=$? | |
23847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23848 | (exit $ac_status); }; }; then | |
23849 | wx_cv_std_libpath=`echo $d | sed s@/usr/@@` | |
23850 | else | |
23851 | echo "$as_me: failed program was:" >&5 | |
23852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23853 | ||
23854 | fi | |
23855 | rm -f conftest.err conftest.$ac_objext \ | |
23856 | conftest$ac_exeext conftest.$ac_ext | |
c687b303 VZ |
23857 | LIBS="$save_LIBS" |
23858 | if test "x$wx_cv_std_libpath" != "x"; then | |
23859 | break 2 | |
23860 | fi | |
23861 | fi | |
23862 | done | |
23863 | done | |
23864 | if test "x$wx_cv_std_libpath" = "x"; then | |
23865 | wx_cv_std_libpath="lib" | |
0ad5d837 | 23866 | fi |
0ad5d837 VZ |
23867 | |
23868 | ||
23869 | fi | |
6f9cf1e6 MW |
23870 | |
23871 | ;; | |
23872 | ||
23873 | *-*-solaris2* ) | |
23874 | if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then | |
23875 | wx_cv_std_libpath="lib/64" | |
23876 | else | |
23877 | wx_cv_std_libpath="lib" | |
23878 | fi | |
23879 | ;; | |
23880 | ||
23881 | *-*-linux* ) | |
23882 | if test "$ac_cv_sizeof_void_p" = 8 -a \ | |
23883 | -d "/usr/lib64" -a ! -h "/usr/lib64"; then | |
23884 | wx_cv_std_libpath="lib64" | |
23885 | else | |
23886 | wx_cv_std_libpath="lib" | |
23887 | fi | |
c687b303 VZ |
23888 | ;; |
23889 | ||
23890 | *) | |
23891 | wx_cv_std_libpath="lib"; | |
23892 | ;; | |
23893 | esac | |
0ad5d837 | 23894 | |
6f9cf1e6 MW |
23895 | echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5 |
23896 | echo "${ECHO_T}$wx_cv_std_libpath" >&6 | |
23897 | ||
23898 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath" | |
a848cd7e | 23899 | |
3eca31dc MW |
23900 | if test "$build" != "$host" -a "$GCC" = yes; then |
23901 | if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then | |
23902 | cross_root=`dirname $cross_root` | |
23903 | cross_root=`dirname $cross_root` | |
23904 | ||
23905 | SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"` | |
23906 | SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"` | |
5c60e845 | 23907 | SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include" |
3eca31dc MW |
23908 | |
23909 | if test -z "$PKG_CONFIG_PATH"; then | |
23910 | PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig" | |
23911 | export PKG_CONFIG_PATH | |
23912 | fi | |
23913 | ||
23914 | if test -z "$x_includes" -o "$x_includes" = NONE; then | |
23915 | ||
23916 | ac_find_includes= | |
23917 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
23918 | do | |
23919 | if test -f "$ac_dir/X11/Intrinsic.h"; then | |
23920 | ac_find_includes=$ac_dir | |
23921 | break | |
23922 | fi | |
23923 | done | |
23924 | ||
23925 | x_includes=$ac_find_includes | |
23926 | fi | |
23927 | if test -z "$x_libraries" -o "$x_libraries" = NONE; then | |
23928 | ||
0ad5d837 VZ |
23929 | ac_find_libraries= |
23930 | for ac_dir in $SEARCH_LIB; | |
3eca31dc MW |
23931 | do |
23932 | for ac_extension in a so sl dylib dll.a; do | |
23933 | if test -f "$ac_dir/libXt.$ac_extension"; then | |
23934 | ac_find_libraries=$ac_dir | |
23935 | break 2 | |
23936 | fi | |
23937 | done | |
23938 | done | |
23939 | ||
23940 | x_libraries=$ac_find_libraries | |
23941 | fi | |
23942 | fi | |
23943 | fi | |
23944 | ||
a848cd7e SC |
23945 | |
23946 | cat >confcache <<\_ACEOF | |
23947 | # This file is a shell script that caches the results of configure | |
23948 | # tests run on this system so they can be shared between configure | |
23949 | # scripts and configure runs, see configure's option --config-cache. | |
23950 | # It is not useful on other systems. If it contains results you don't | |
23951 | # want to keep, you may remove or edit it. | |
23952 | # | |
23953 | # config.status only pays attention to the cache file if you give it | |
23954 | # the --recheck option to rerun configure. | |
23955 | # | |
23956 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
23957 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
23958 | # following values. | |
23959 | ||
23960 | _ACEOF | |
23961 | ||
23962 | # The following way of writing the cache mishandles newlines in values, | |
23963 | # but we know of no workaround that is simple, portable, and efficient. | |
23964 | # So, don't put newlines in cache variables' values. | |
23965 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
23966 | # and sets the high bit in the cache file unless we assign to the vars. | |
23967 | { | |
23968 | (set) 2>&1 | | |
23969 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
23970 | *ac_space=\ *) | |
23971 | # `set' does not quote correctly, so add quotes (double-quote | |
23972 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
23973 | sed -n \ | |
ac1cb8d3 VS |
23974 | "s/'/'\\\\''/g; |
23975 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
23976 | ;; |
23977 | *) | |
23978 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
23979 | sed -n \ | |
ac1cb8d3 | 23980 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
23981 | ;; |
23982 | esac; | |
23983 | } | | |
23984 | sed ' | |
23985 | t clear | |
23986 | : clear | |
23987 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
23988 | t end | |
23989 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
23990 | : end' >>confcache | |
23991 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
23992 | if test -w $cache_file; then | |
23993 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
23994 | cat confcache >$cache_file | |
23995 | else | |
23996 | echo "not updating unwritable cache $cache_file" | |
23997 | fi | |
23998 | fi | |
23999 | rm -f confcache | |
24000 | ||
24001 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then | |
24002 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 | |
24003 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
24004 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
24005 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24006 | else | |
24007 | ||
24008 | cat >conftest.$ac_ext <<_ACEOF | |
24009 | /* confdefs.h. */ | |
24010 | _ACEOF | |
24011 | cat confdefs.h >>conftest.$ac_ext | |
24012 | cat >>conftest.$ac_ext <<_ACEOF | |
24013 | /* end confdefs.h. */ | |
24014 | #include <features.h> | |
24015 | int | |
24016 | main () | |
24017 | { | |
24018 | ||
24019 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) | |
04e525a0 | 24020 | not glibc 2.1 |
a848cd7e SC |
24021 | #endif |
24022 | ||
24023 | ; | |
24024 | return 0; | |
24025 | } | |
24026 | _ACEOF | |
24027 | rm -f conftest.$ac_objext | |
24028 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24029 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24030 | ac_status=$? |
ac1cb8d3 VS |
24031 | grep -v '^ *+' conftest.er1 >conftest.err |
24032 | rm -f conftest.er1 | |
24033 | cat conftest.err >&5 | |
a848cd7e SC |
24034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24035 | (exit $ac_status); } && | |
d25774ab JS |
24036 | { ac_try='test -z "$ac_cxx_werror_flag" |
24037 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24039 | (eval $ac_try) 2>&5 | |
24040 | ac_status=$? | |
24041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24042 | (exit $ac_status); }; } && | |
24043 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24045 | (eval $ac_try) 2>&5 | |
24046 | ac_status=$? | |
24047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24048 | (exit $ac_status); }; }; then | |
24049 | ||
24050 | wx_cv_lib_glibc21=yes | |
24051 | ||
24052 | else | |
24053 | echo "$as_me: failed program was:" >&5 | |
24054 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24055 | ||
24056 | ||
24057 | wx_cv_lib_glibc21=no | |
24058 | ||
24059 | ||
24060 | fi | |
ac1cb8d3 | 24061 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24062 | |
24063 | fi | |
24064 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
24065 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
24066 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
24067 | cat >>confdefs.h <<\_ACEOF | |
24068 | #define wxHAVE_GLIBC2 1 | |
24069 | _ACEOF | |
24070 | ||
24071 | fi | |
24072 | fi | |
24073 | ||
24074 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
24075 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
24076 | cat >>confdefs.h <<\_ACEOF | |
24077 | #define _GNU_SOURCE 1 | |
24078 | _ACEOF | |
24079 | ||
24080 | fi | |
24081 | fi | |
24082 | ||
5d7b7554 VZ |
24083 | have_cos=0 |
24084 | have_floor=0 | |
a848cd7e | 24085 | |
5d7b7554 VZ |
24086 | for ac_func in cos |
24087 | do | |
24088 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
24089 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24090 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24091 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
a848cd7e | 24092 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 24093 | else |
5d7b7554 | 24094 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
24095 | /* confdefs.h. */ |
24096 | _ACEOF | |
24097 | cat confdefs.h >>conftest.$ac_ext | |
24098 | cat >>conftest.$ac_ext <<_ACEOF | |
24099 | /* end confdefs.h. */ | |
5d7b7554 VZ |
24100 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
24101 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24102 | #define $ac_func innocuous_$ac_func | |
24103 | ||
24104 | /* System header to define __stub macros and hopefully few prototypes, | |
24105 | which can conflict with char $ac_func (); below. | |
24106 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24107 | <limits.h> exists even on freestanding compilers. */ | |
24108 | ||
24109 | #ifdef __STDC__ | |
24110 | # include <limits.h> | |
24111 | #else | |
24112 | # include <assert.h> | |
24113 | #endif | |
24114 | ||
24115 | #undef $ac_func | |
24116 | ||
24117 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24118 | #ifdef __cplusplus | |
24119 | extern "C" | |
24120 | { | |
24121 | #endif | |
24122 | /* We use char because int might match the return type of a gcc2 | |
24123 | builtin and then its argument prototype would still apply. */ | |
24124 | char $ac_func (); | |
24125 | /* The GNU C library defines this for functions which it implements | |
24126 | to always fail with ENOSYS. Some functions are actually named | |
24127 | something starting with __ and the normal name is an alias. */ | |
24128 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24129 | choke me | |
24130 | #else | |
24131 | char (*f) () = $ac_func; | |
24132 | #endif | |
24133 | #ifdef __cplusplus | |
24134 | } | |
24135 | #endif | |
24136 | ||
24137 | int | |
24138 | main () | |
24139 | { | |
24140 | return f != $ac_func; | |
24141 | ; | |
24142 | return 0; | |
24143 | } | |
a848cd7e | 24144 | _ACEOF |
5d7b7554 VZ |
24145 | rm -f conftest.$ac_objext conftest$ac_exeext |
24146 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24147 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 24148 | ac_status=$? |
ac1cb8d3 VS |
24149 | grep -v '^ *+' conftest.er1 >conftest.err |
24150 | rm -f conftest.er1 | |
24151 | cat conftest.err >&5 | |
a848cd7e SC |
24152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24153 | (exit $ac_status); } && | |
d25774ab JS |
24154 | { ac_try='test -z "$ac_cxx_werror_flag" |
24155 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24157 | (eval $ac_try) 2>&5 | |
24158 | ac_status=$? | |
24159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24160 | (exit $ac_status); }; } && | |
5d7b7554 | 24161 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
24162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24163 | (eval $ac_try) 2>&5 | |
24164 | ac_status=$? | |
24165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24166 | (exit $ac_status); }; }; then | |
5d7b7554 | 24167 | eval "$as_ac_var=yes" |
a848cd7e SC |
24168 | else |
24169 | echo "$as_me: failed program was:" >&5 | |
24170 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24171 | ||
5d7b7554 | 24172 | eval "$as_ac_var=no" |
a848cd7e | 24173 | fi |
5d7b7554 VZ |
24174 | rm -f conftest.err conftest.$ac_objext \ |
24175 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e | 24176 | fi |
5d7b7554 VZ |
24177 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
24178 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24179 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24180 | cat >>confdefs.h <<_ACEOF | |
24181 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24182 | _ACEOF | |
24183 | have_cos=1 | |
a848cd7e | 24184 | fi |
5d7b7554 | 24185 | done |
a848cd7e | 24186 | |
ab0f0edd | 24187 | |
5d7b7554 | 24188 | for ac_func in floor |
a848cd7e SC |
24189 | do |
24190 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
24191 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24192 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24193 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24194 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24195 | else | |
24196 | cat >conftest.$ac_ext <<_ACEOF | |
24197 | /* confdefs.h. */ | |
24198 | _ACEOF | |
24199 | cat confdefs.h >>conftest.$ac_ext | |
24200 | cat >>conftest.$ac_ext <<_ACEOF | |
24201 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24202 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
24203 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24204 | #define $ac_func innocuous_$ac_func | |
24205 | ||
a848cd7e SC |
24206 | /* System header to define __stub macros and hopefully few prototypes, |
24207 | which can conflict with char $ac_func (); below. | |
24208 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24209 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24210 | |
a848cd7e SC |
24211 | #ifdef __STDC__ |
24212 | # include <limits.h> | |
24213 | #else | |
24214 | # include <assert.h> | |
24215 | #endif | |
ac1cb8d3 VS |
24216 | |
24217 | #undef $ac_func | |
24218 | ||
a848cd7e SC |
24219 | /* Override any gcc2 internal prototype to avoid an error. */ |
24220 | #ifdef __cplusplus | |
24221 | extern "C" | |
24222 | { | |
24223 | #endif | |
24224 | /* We use char because int might match the return type of a gcc2 | |
24225 | builtin and then its argument prototype would still apply. */ | |
24226 | char $ac_func (); | |
24227 | /* The GNU C library defines this for functions which it implements | |
24228 | to always fail with ENOSYS. Some functions are actually named | |
24229 | something starting with __ and the normal name is an alias. */ | |
24230 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24231 | choke me | |
24232 | #else | |
24233 | char (*f) () = $ac_func; | |
24234 | #endif | |
24235 | #ifdef __cplusplus | |
24236 | } | |
24237 | #endif | |
24238 | ||
24239 | int | |
24240 | main () | |
24241 | { | |
24242 | return f != $ac_func; | |
24243 | ; | |
24244 | return 0; | |
24245 | } | |
24246 | _ACEOF | |
24247 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24248 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24249 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24250 | ac_status=$? |
ac1cb8d3 VS |
24251 | grep -v '^ *+' conftest.er1 >conftest.err |
24252 | rm -f conftest.er1 | |
24253 | cat conftest.err >&5 | |
a848cd7e SC |
24254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24255 | (exit $ac_status); } && | |
d25774ab JS |
24256 | { ac_try='test -z "$ac_cxx_werror_flag" |
24257 | || test ! -s conftest.err' | |
5d7b7554 VZ |
24258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24259 | (eval $ac_try) 2>&5 | |
24260 | ac_status=$? | |
24261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24262 | (exit $ac_status); }; } && | |
24263 | { ac_try='test -s conftest$ac_exeext' | |
24264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24265 | (eval $ac_try) 2>&5 | |
24266 | ac_status=$? | |
24267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24268 | (exit $ac_status); }; }; then | |
24269 | eval "$as_ac_var=yes" | |
24270 | else | |
24271 | echo "$as_me: failed program was:" >&5 | |
24272 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24273 | ||
24274 | eval "$as_ac_var=no" | |
24275 | fi | |
24276 | rm -f conftest.err conftest.$ac_objext \ | |
24277 | conftest$ac_exeext conftest.$ac_ext | |
24278 | fi | |
24279 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24280 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24281 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24282 | cat >>confdefs.h <<_ACEOF | |
24283 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24284 | _ACEOF | |
24285 | have_floor=1 | |
24286 | fi | |
24287 | done | |
24288 | ||
24289 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 | |
24290 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
24291 | if test "$have_cos" = 1 -a "$have_floor" = 1; then | |
24292 | echo "$as_me:$LINENO: result: yes" >&5 | |
24293 | echo "${ECHO_T}yes" >&6 | |
24294 | else | |
24295 | echo "$as_me:$LINENO: result: no" >&5 | |
24296 | echo "${ECHO_T}no" >&6 | |
24297 | LIBS="$LIBS -lm" | |
24298 | # use different functions to avoid configure caching | |
24299 | have_sin=0 | |
24300 | have_ceil=0 | |
24301 | ||
24302 | for ac_func in sin | |
24303 | do | |
24304 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
24305 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24306 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24307 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24308 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24309 | else | |
24310 | cat >conftest.$ac_ext <<_ACEOF | |
24311 | /* confdefs.h. */ | |
24312 | _ACEOF | |
24313 | cat confdefs.h >>conftest.$ac_ext | |
24314 | cat >>conftest.$ac_ext <<_ACEOF | |
24315 | /* end confdefs.h. */ | |
24316 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
24317 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24318 | #define $ac_func innocuous_$ac_func | |
24319 | ||
24320 | /* System header to define __stub macros and hopefully few prototypes, | |
24321 | which can conflict with char $ac_func (); below. | |
24322 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24323 | <limits.h> exists even on freestanding compilers. */ | |
24324 | ||
24325 | #ifdef __STDC__ | |
24326 | # include <limits.h> | |
24327 | #else | |
24328 | # include <assert.h> | |
24329 | #endif | |
24330 | ||
24331 | #undef $ac_func | |
24332 | ||
24333 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24334 | #ifdef __cplusplus | |
24335 | extern "C" | |
24336 | { | |
24337 | #endif | |
24338 | /* We use char because int might match the return type of a gcc2 | |
24339 | builtin and then its argument prototype would still apply. */ | |
24340 | char $ac_func (); | |
24341 | /* The GNU C library defines this for functions which it implements | |
24342 | to always fail with ENOSYS. Some functions are actually named | |
24343 | something starting with __ and the normal name is an alias. */ | |
24344 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24345 | choke me | |
24346 | #else | |
24347 | char (*f) () = $ac_func; | |
24348 | #endif | |
24349 | #ifdef __cplusplus | |
24350 | } | |
24351 | #endif | |
24352 | ||
24353 | int | |
24354 | main () | |
24355 | { | |
24356 | return f != $ac_func; | |
24357 | ; | |
24358 | return 0; | |
24359 | } | |
24360 | _ACEOF | |
24361 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24362 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24363 | (eval $ac_link) 2>conftest.er1 | |
24364 | ac_status=$? | |
24365 | grep -v '^ *+' conftest.er1 >conftest.err | |
24366 | rm -f conftest.er1 | |
24367 | cat conftest.err >&5 | |
24368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24369 | (exit $ac_status); } && | |
d25774ab JS |
24370 | { ac_try='test -z "$ac_cxx_werror_flag" |
24371 | || test ! -s conftest.err' | |
5d7b7554 VZ |
24372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24373 | (eval $ac_try) 2>&5 | |
24374 | ac_status=$? | |
24375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24376 | (exit $ac_status); }; } && | |
24377 | { ac_try='test -s conftest$ac_exeext' | |
24378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24379 | (eval $ac_try) 2>&5 | |
24380 | ac_status=$? | |
24381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24382 | (exit $ac_status); }; }; then | |
24383 | eval "$as_ac_var=yes" | |
24384 | else | |
24385 | echo "$as_me: failed program was:" >&5 | |
24386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24387 | ||
24388 | eval "$as_ac_var=no" | |
24389 | fi | |
24390 | rm -f conftest.err conftest.$ac_objext \ | |
24391 | conftest$ac_exeext conftest.$ac_ext | |
24392 | fi | |
24393 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24394 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24395 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24396 | cat >>confdefs.h <<_ACEOF | |
24397 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24398 | _ACEOF | |
24399 | have_sin=1 | |
24400 | fi | |
24401 | done | |
24402 | ||
24403 | ||
24404 | for ac_func in ceil | |
24405 | do | |
24406 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
24407 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24408 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24409 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24411 | else | |
24412 | cat >conftest.$ac_ext <<_ACEOF | |
24413 | /* confdefs.h. */ | |
24414 | _ACEOF | |
24415 | cat confdefs.h >>conftest.$ac_ext | |
24416 | cat >>conftest.$ac_ext <<_ACEOF | |
24417 | /* end confdefs.h. */ | |
24418 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
24419 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24420 | #define $ac_func innocuous_$ac_func | |
24421 | ||
24422 | /* System header to define __stub macros and hopefully few prototypes, | |
24423 | which can conflict with char $ac_func (); below. | |
24424 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24425 | <limits.h> exists even on freestanding compilers. */ | |
24426 | ||
24427 | #ifdef __STDC__ | |
24428 | # include <limits.h> | |
24429 | #else | |
24430 | # include <assert.h> | |
24431 | #endif | |
24432 | ||
24433 | #undef $ac_func | |
24434 | ||
24435 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24436 | #ifdef __cplusplus | |
24437 | extern "C" | |
24438 | { | |
24439 | #endif | |
24440 | /* We use char because int might match the return type of a gcc2 | |
24441 | builtin and then its argument prototype would still apply. */ | |
24442 | char $ac_func (); | |
24443 | /* The GNU C library defines this for functions which it implements | |
24444 | to always fail with ENOSYS. Some functions are actually named | |
24445 | something starting with __ and the normal name is an alias. */ | |
24446 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24447 | choke me | |
24448 | #else | |
24449 | char (*f) () = $ac_func; | |
24450 | #endif | |
24451 | #ifdef __cplusplus | |
24452 | } | |
24453 | #endif | |
24454 | ||
24455 | int | |
24456 | main () | |
24457 | { | |
24458 | return f != $ac_func; | |
24459 | ; | |
24460 | return 0; | |
24461 | } | |
24462 | _ACEOF | |
24463 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24464 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24465 | (eval $ac_link) 2>conftest.er1 | |
24466 | ac_status=$? | |
24467 | grep -v '^ *+' conftest.er1 >conftest.err | |
24468 | rm -f conftest.er1 | |
24469 | cat conftest.err >&5 | |
24470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24471 | (exit $ac_status); } && | |
d25774ab JS |
24472 | { ac_try='test -z "$ac_cxx_werror_flag" |
24473 | || test ! -s conftest.err' | |
5d7b7554 VZ |
24474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24475 | (eval $ac_try) 2>&5 | |
24476 | ac_status=$? | |
24477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24478 | (exit $ac_status); }; } && | |
24479 | { ac_try='test -s conftest$ac_exeext' | |
24480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24481 | (eval $ac_try) 2>&5 | |
24482 | ac_status=$? | |
24483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24484 | (exit $ac_status); }; }; then | |
24485 | eval "$as_ac_var=yes" | |
24486 | else | |
24487 | echo "$as_me: failed program was:" >&5 | |
24488 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24489 | ||
24490 | eval "$as_ac_var=no" | |
24491 | fi | |
24492 | rm -f conftest.err conftest.$ac_objext \ | |
24493 | conftest$ac_exeext conftest.$ac_ext | |
24494 | fi | |
24495 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24496 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24497 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24498 | cat >>confdefs.h <<_ACEOF | |
24499 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24500 | _ACEOF | |
24501 | have_ceil=1 | |
24502 | fi | |
24503 | done | |
24504 | ||
24505 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 | |
24506 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
24507 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then | |
24508 | echo "$as_me:$LINENO: result: yes" >&5 | |
24509 | echo "${ECHO_T}yes" >&6 | |
24510 | else | |
24511 | echo "$as_me:$LINENO: result: no" >&5 | |
24512 | echo "${ECHO_T}no" >&6 | |
24513 | # not sure we should warn the user, crash, etc. | |
24514 | fi | |
24515 | fi | |
24516 | ||
24517 | ||
24518 | ||
24519 | if test "$wxUSE_REGEX" != "no"; then | |
24520 | cat >>confdefs.h <<\_ACEOF | |
24521 | #define wxUSE_REGEX 1 | |
24522 | _ACEOF | |
24523 | ||
24524 | ||
24525 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then | |
24526 | { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5 | |
24527 | echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;} | |
24528 | wxUSE_REGEX=builtin | |
24529 | fi | |
24530 | ||
24531 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
24532 | if test "${ac_cv_header_regex_h+set}" = set; then | |
24533 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
24534 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
24535 | if test "${ac_cv_header_regex_h+set}" = set; then | |
24536 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24537 | fi | |
24538 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
24539 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
24540 | else | |
24541 | # Is the header compilable? | |
24542 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
24543 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
24544 | cat >conftest.$ac_ext <<_ACEOF | |
24545 | /* confdefs.h. */ | |
24546 | _ACEOF | |
24547 | cat confdefs.h >>conftest.$ac_ext | |
24548 | cat >>conftest.$ac_ext <<_ACEOF | |
24549 | /* end confdefs.h. */ | |
24550 | $ac_includes_default | |
24551 | #include <regex.h> | |
24552 | _ACEOF | |
24553 | rm -f conftest.$ac_objext | |
24554 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24555 | (eval $ac_compile) 2>conftest.er1 | |
24556 | ac_status=$? | |
24557 | grep -v '^ *+' conftest.er1 >conftest.err | |
24558 | rm -f conftest.er1 | |
24559 | cat conftest.err >&5 | |
24560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24561 | (exit $ac_status); } && | |
d25774ab JS |
24562 | { ac_try='test -z "$ac_cxx_werror_flag" |
24563 | || test ! -s conftest.err' | |
5d7b7554 VZ |
24564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24565 | (eval $ac_try) 2>&5 | |
24566 | ac_status=$? | |
24567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24568 | (exit $ac_status); }; } && | |
24569 | { ac_try='test -s conftest.$ac_objext' | |
24570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24571 | (eval $ac_try) 2>&5 | |
24572 | ac_status=$? | |
24573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24574 | (exit $ac_status); }; }; then | |
24575 | ac_header_compiler=yes | |
24576 | else | |
24577 | echo "$as_me: failed program was:" >&5 | |
24578 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24579 | ||
24580 | ac_header_compiler=no | |
24581 | fi | |
24582 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
24583 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
24584 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24585 | ||
24586 | # Is the header present? | |
24587 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
24588 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
24589 | cat >conftest.$ac_ext <<_ACEOF | |
24590 | /* confdefs.h. */ | |
24591 | _ACEOF | |
24592 | cat confdefs.h >>conftest.$ac_ext | |
24593 | cat >>conftest.$ac_ext <<_ACEOF | |
24594 | /* end confdefs.h. */ | |
24595 | #include <regex.h> | |
24596 | _ACEOF | |
24597 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24598 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24599 | ac_status=$? | |
24600 | grep -v '^ *+' conftest.er1 >conftest.err | |
24601 | rm -f conftest.er1 | |
24602 | cat conftest.err >&5 | |
24603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24604 | (exit $ac_status); } >/dev/null; then | |
24605 | if test -s conftest.err; then | |
24606 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
24607 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
24608 | else | |
24609 | ac_cpp_err= | |
24610 | fi | |
24611 | else | |
24612 | ac_cpp_err=yes | |
24613 | fi | |
24614 | if test -z "$ac_cpp_err"; then | |
24615 | ac_header_preproc=yes | |
24616 | else | |
24617 | echo "$as_me: failed program was:" >&5 | |
24618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24619 | ||
24620 | ac_header_preproc=no | |
24621 | fi | |
24622 | rm -f conftest.err conftest.$ac_ext | |
24623 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24624 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24625 | ||
24626 | # So? What about this header? | |
24627 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in | |
24628 | yes:no: ) | |
24629 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
24630 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
24631 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5 | |
24632 | echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;} | |
24633 | ac_header_preproc=yes | |
24634 | ;; | |
24635 | no:yes:* ) | |
24636 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 | |
24637 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
24638 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 | |
24639 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
24640 | { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5 | |
24641 | echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;} | |
24642 | { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24643 | echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
24644 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 | |
24645 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
24646 | { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5 | |
24647 | echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;} | |
24648 | ( | |
24649 | cat <<\_ASBOX | |
24650 | ## ----------------------------------------- ## | |
24651 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24652 | ## ----------------------------------------- ## | |
24653 | _ASBOX | |
24654 | ) | | |
24655 | sed "s/^/$as_me: WARNING: /" >&2 | |
24656 | ;; | |
24657 | esac | |
24658 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
24659 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
24660 | if test "${ac_cv_header_regex_h+set}" = set; then | |
24661 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24662 | else | |
24663 | ac_cv_header_regex_h=$ac_header_preproc | |
24664 | fi | |
24665 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
24666 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
24667 | ||
24668 | fi | |
24669 | if test $ac_cv_header_regex_h = yes; then | |
24670 | ||
24671 | ||
24672 | for ac_func in regcomp re_search | |
24673 | do | |
24674 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
24675 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24676 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24677 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24678 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24679 | else | |
24680 | cat >conftest.$ac_ext <<_ACEOF | |
24681 | /* confdefs.h. */ | |
24682 | _ACEOF | |
24683 | cat confdefs.h >>conftest.$ac_ext | |
24684 | cat >>conftest.$ac_ext <<_ACEOF | |
24685 | /* end confdefs.h. */ | |
24686 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
24687 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24688 | #define $ac_func innocuous_$ac_func | |
24689 | ||
24690 | /* System header to define __stub macros and hopefully few prototypes, | |
24691 | which can conflict with char $ac_func (); below. | |
24692 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24693 | <limits.h> exists even on freestanding compilers. */ | |
24694 | ||
24695 | #ifdef __STDC__ | |
24696 | # include <limits.h> | |
24697 | #else | |
24698 | # include <assert.h> | |
24699 | #endif | |
24700 | ||
24701 | #undef $ac_func | |
24702 | ||
24703 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24704 | #ifdef __cplusplus | |
24705 | extern "C" | |
24706 | { | |
24707 | #endif | |
24708 | /* We use char because int might match the return type of a gcc2 | |
24709 | builtin and then its argument prototype would still apply. */ | |
24710 | char $ac_func (); | |
24711 | /* The GNU C library defines this for functions which it implements | |
24712 | to always fail with ENOSYS. Some functions are actually named | |
24713 | something starting with __ and the normal name is an alias. */ | |
24714 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24715 | choke me | |
24716 | #else | |
24717 | char (*f) () = $ac_func; | |
24718 | #endif | |
24719 | #ifdef __cplusplus | |
24720 | } | |
24721 | #endif | |
24722 | ||
24723 | int | |
24724 | main () | |
24725 | { | |
24726 | return f != $ac_func; | |
24727 | ; | |
24728 | return 0; | |
24729 | } | |
24730 | _ACEOF | |
24731 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24732 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24733 | (eval $ac_link) 2>conftest.er1 | |
24734 | ac_status=$? | |
24735 | grep -v '^ *+' conftest.er1 >conftest.err | |
24736 | rm -f conftest.er1 | |
24737 | cat conftest.err >&5 | |
24738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24739 | (exit $ac_status); } && | |
d25774ab JS |
24740 | { ac_try='test -z "$ac_cxx_werror_flag" |
24741 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24743 | (eval $ac_try) 2>&5 | |
24744 | ac_status=$? | |
24745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24746 | (exit $ac_status); }; } && | |
24747 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24749 | (eval $ac_try) 2>&5 | |
24750 | ac_status=$? | |
24751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24752 | (exit $ac_status); }; }; then | |
24753 | eval "$as_ac_var=yes" | |
24754 | else | |
24755 | echo "$as_me: failed program was:" >&5 | |
24756 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24757 | ||
24758 | eval "$as_ac_var=no" | |
24759 | fi | |
ac1cb8d3 VS |
24760 | rm -f conftest.err conftest.$ac_objext \ |
24761 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24762 | fi |
24763 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24764 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24765 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24766 | cat >>confdefs.h <<_ACEOF | |
24767 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24768 | _ACEOF | |
24769 | ||
24770 | fi | |
24771 | done | |
24772 | ||
24773 | fi | |
24774 | ||
24775 | ||
24776 | ||
24777 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
24778 | if test "$wxUSE_REGEX" = "sys" ; then | |
24779 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 | |
24780 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
24781 | { (exit 1); exit 1; }; } | |
24782 | else | |
24783 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 | |
24784 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
24785 | wxUSE_REGEX=builtin | |
24786 | fi | |
24787 | else | |
24788 | wxUSE_REGEX=sys | |
24789 | cat >>confdefs.h <<\_ACEOF | |
24790 | #define WX_NO_REGEX_ADVANCED 1 | |
24791 | _ACEOF | |
24792 | ||
24793 | fi | |
24794 | fi | |
24795 | fi | |
24796 | ||
24797 | ||
24798 | ZLIB_LINK= | |
24799 | if test "$wxUSE_ZLIB" != "no" ; then | |
24800 | cat >>confdefs.h <<\_ACEOF | |
24801 | #define wxUSE_ZLIB 1 | |
24802 | _ACEOF | |
24803 | ||
24804 | ||
24805 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
24806 | if test "$USE_DARWIN" = 1; then | |
24807 | system_zlib_h_ok="yes" | |
24808 | else | |
24809 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 | |
24810 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
24811 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
24812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24813 | else | |
24814 | if test "$cross_compiling" = yes; then | |
24815 | unset ac_cv_header_zlib_h | |
24816 | ||
24817 | else | |
24818 | cat >conftest.$ac_ext <<_ACEOF | |
24819 | /* confdefs.h. */ | |
24820 | _ACEOF | |
24821 | cat confdefs.h >>conftest.$ac_ext | |
24822 | cat >>conftest.$ac_ext <<_ACEOF | |
24823 | /* end confdefs.h. */ | |
24824 | ||
24825 | #include <zlib.h> | |
24826 | #include <stdio.h> | |
24827 | ||
24828 | int main() | |
24829 | { | |
24830 | FILE *f=fopen("conftestval", "w"); | |
24831 | if (!f) exit(1); | |
24832 | fprintf(f, "%s", | |
24833 | ZLIB_VERSION[0] == '1' && | |
24834 | (ZLIB_VERSION[2] > '1' || | |
24835 | (ZLIB_VERSION[2] == '1' && | |
24836 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
24837 | exit(0); | |
24838 | } | |
24839 | ||
24840 | _ACEOF | |
24841 | rm -f conftest$ac_exeext | |
24842 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24843 | (eval $ac_link) 2>&5 | |
24844 | ac_status=$? | |
24845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24846 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
24847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24848 | (eval $ac_try) 2>&5 | |
24849 | ac_status=$? | |
24850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24851 | (exit $ac_status); }; }; then | |
24852 | ac_cv_header_zlib_h=`cat conftestval` | |
24853 | else | |
24854 | echo "$as_me: program exited with status $ac_status" >&5 | |
24855 | echo "$as_me: failed program was:" >&5 | |
24856 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24857 | ||
24858 | ( exit $ac_status ) | |
24859 | ac_cv_header_zlib_h=no | |
24860 | fi | |
ac1cb8d3 | 24861 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24862 | fi |
24863 | ||
24864 | fi | |
24865 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
24866 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
24867 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
24868 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
24869 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
24870 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
24871 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24872 | fi | |
24873 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
24874 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
24875 | else | |
24876 | # Is the header compilable? | |
24877 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
24878 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
24879 | cat >conftest.$ac_ext <<_ACEOF | |
24880 | /* confdefs.h. */ | |
24881 | _ACEOF | |
24882 | cat confdefs.h >>conftest.$ac_ext | |
24883 | cat >>conftest.$ac_ext <<_ACEOF | |
24884 | /* end confdefs.h. */ | |
24885 | $ac_includes_default | |
24886 | #include <zlib.h> | |
24887 | _ACEOF | |
24888 | rm -f conftest.$ac_objext | |
24889 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24890 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24891 | ac_status=$? |
ac1cb8d3 VS |
24892 | grep -v '^ *+' conftest.er1 >conftest.err |
24893 | rm -f conftest.er1 | |
24894 | cat conftest.err >&5 | |
a848cd7e SC |
24895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24896 | (exit $ac_status); } && | |
d25774ab JS |
24897 | { ac_try='test -z "$ac_cxx_werror_flag" |
24898 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24900 | (eval $ac_try) 2>&5 | |
24901 | ac_status=$? | |
24902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24903 | (exit $ac_status); }; } && | |
24904 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24906 | (eval $ac_try) 2>&5 | |
24907 | ac_status=$? | |
24908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24909 | (exit $ac_status); }; }; then | |
24910 | ac_header_compiler=yes | |
24911 | else | |
24912 | echo "$as_me: failed program was:" >&5 | |
24913 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24914 | ||
24915 | ac_header_compiler=no | |
24916 | fi | |
ac1cb8d3 | 24917 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24918 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24919 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24920 | ||
24921 | # Is the header present? | |
24922 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
24923 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
24924 | cat >conftest.$ac_ext <<_ACEOF | |
24925 | /* confdefs.h. */ | |
24926 | _ACEOF | |
24927 | cat confdefs.h >>conftest.$ac_ext | |
24928 | cat >>conftest.$ac_ext <<_ACEOF | |
24929 | /* end confdefs.h. */ | |
24930 | #include <zlib.h> | |
24931 | _ACEOF | |
24932 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24933 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24934 | ac_status=$? | |
24935 | grep -v '^ *+' conftest.er1 >conftest.err | |
24936 | rm -f conftest.er1 | |
24937 | cat conftest.err >&5 | |
24938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24939 | (exit $ac_status); } >/dev/null; then | |
24940 | if test -s conftest.err; then | |
5d7b7554 VZ |
24941 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
24942 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
24943 | else |
24944 | ac_cpp_err= | |
24945 | fi | |
24946 | else | |
24947 | ac_cpp_err=yes | |
24948 | fi | |
24949 | if test -z "$ac_cpp_err"; then | |
24950 | ac_header_preproc=yes | |
24951 | else | |
24952 | echo "$as_me: failed program was:" >&5 | |
24953 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24954 | ||
24955 | ac_header_preproc=no | |
24956 | fi | |
24957 | rm -f conftest.err conftest.$ac_ext | |
24958 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24959 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24960 | ||
24961 | # So? What about this header? | |
5d7b7554 | 24962 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 24963 | yes:no: ) |
a848cd7e SC |
24964 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
24965 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24966 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
24967 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
24968 | ac_header_preproc=yes | |
a848cd7e | 24969 | ;; |
ac1cb8d3 | 24970 | no:yes:* ) |
a848cd7e SC |
24971 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
24972 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24973 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
24974 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
24975 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
24976 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
24977 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24978 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
24979 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
24980 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24981 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
24982 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
24983 | ( |
24984 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24985 | ## ----------------------------------------- ## |
24986 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24987 | ## ----------------------------------------- ## | |
a848cd7e SC |
24988 | _ASBOX |
24989 | ) | | |
24990 | sed "s/^/$as_me: WARNING: /" >&2 | |
24991 | ;; | |
24992 | esac | |
24993 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
24994 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
24995 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
24996 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24997 | else | |
24998 | ac_cv_header_zlib_h=$ac_header_preproc | |
24999 | fi | |
25000 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
25001 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
25002 | ||
25003 | fi | |
25004 | ||
25005 | ||
25006 | ||
25007 | system_zlib_h_ok=$ac_cv_header_zlib_h | |
25008 | fi | |
25009 | ||
25010 | if test "$system_zlib_h_ok" = "yes"; then | |
25011 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | |
25012 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
25013 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
25014 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25015 | else | |
25016 | ac_check_lib_save_LIBS=$LIBS | |
25017 | LIBS="-lz $LIBS" | |
25018 | cat >conftest.$ac_ext <<_ACEOF | |
25019 | /* confdefs.h. */ | |
25020 | _ACEOF | |
25021 | cat confdefs.h >>conftest.$ac_ext | |
25022 | cat >>conftest.$ac_ext <<_ACEOF | |
25023 | /* end confdefs.h. */ | |
25024 | ||
25025 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25026 | #ifdef __cplusplus | |
25027 | extern "C" | |
25028 | #endif | |
25029 | /* We use char because int might match the return type of a gcc2 | |
25030 | builtin and then its argument prototype would still apply. */ | |
25031 | char deflate (); | |
25032 | int | |
25033 | main () | |
25034 | { | |
25035 | deflate (); | |
25036 | ; | |
25037 | return 0; | |
25038 | } | |
25039 | _ACEOF | |
25040 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25041 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25042 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25043 | ac_status=$? |
ac1cb8d3 VS |
25044 | grep -v '^ *+' conftest.er1 >conftest.err |
25045 | rm -f conftest.er1 | |
25046 | cat conftest.err >&5 | |
a848cd7e SC |
25047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25048 | (exit $ac_status); } && | |
d25774ab JS |
25049 | { ac_try='test -z "$ac_cxx_werror_flag" |
25050 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25052 | (eval $ac_try) 2>&5 | |
25053 | ac_status=$? | |
25054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25055 | (exit $ac_status); }; } && | |
25056 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25058 | (eval $ac_try) 2>&5 | |
25059 | ac_status=$? | |
25060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25061 | (exit $ac_status); }; }; then | |
25062 | ac_cv_lib_z_deflate=yes | |
25063 | else | |
25064 | echo "$as_me: failed program was:" >&5 | |
25065 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25066 | ||
25067 | ac_cv_lib_z_deflate=no | |
25068 | fi | |
ac1cb8d3 VS |
25069 | rm -f conftest.err conftest.$ac_objext \ |
25070 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25071 | LIBS=$ac_check_lib_save_LIBS |
25072 | fi | |
25073 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
25074 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
25075 | if test $ac_cv_lib_z_deflate = yes; then | |
25076 | ZLIB_LINK=" -lz" | |
25077 | fi | |
25078 | ||
25079 | fi | |
25080 | ||
25081 | if test "x$ZLIB_LINK" = "x" ; then | |
25082 | if test "$wxUSE_ZLIB" = "sys" ; then | |
25083 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 | |
25084 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
25085 | { (exit 1); exit 1; }; } | |
25086 | else | |
25087 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 | |
25088 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
25089 | wxUSE_ZLIB=builtin | |
25090 | fi | |
25091 | else | |
25092 | wxUSE_ZLIB=sys | |
25093 | fi | |
25094 | fi | |
25095 | fi | |
25096 | ||
25097 | ||
25098 | PNG_LINK= | |
25099 | if test "$wxUSE_LIBPNG" != "no" ; then | |
25100 | cat >>confdefs.h <<\_ACEOF | |
25101 | #define wxUSE_LIBPNG 1 | |
25102 | _ACEOF | |
25103 | ||
25104 | ||
25105 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
25106 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 | |
25107 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
25108 | wxUSE_LIBPNG=sys | |
25109 | fi | |
25110 | ||
25111 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
25112 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 | |
25113 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
25114 | wxUSE_LIBPNG=builtin | |
25115 | fi | |
25116 | ||
25117 | if test "$wxUSE_MGL" != 1 ; then | |
25118 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
25119 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 | |
25120 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
25121 | if test "${ac_cv_header_png_h+set}" = set; then | |
25122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25123 | else | |
25124 | if test "$cross_compiling" = yes; then | |
25125 | unset ac_cv_header_png_h | |
25126 | ||
25127 | else | |
25128 | cat >conftest.$ac_ext <<_ACEOF | |
25129 | /* confdefs.h. */ | |
25130 | _ACEOF | |
25131 | cat confdefs.h >>conftest.$ac_ext | |
25132 | cat >>conftest.$ac_ext <<_ACEOF | |
25133 | /* end confdefs.h. */ | |
25134 | ||
25135 | #include <png.h> | |
25136 | #include <stdio.h> | |
25137 | ||
25138 | int main() | |
25139 | { | |
25140 | FILE *f=fopen("conftestval", "w"); | |
25141 | if (!f) exit(1); | |
25142 | fprintf(f, "%s", | |
25143 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
25144 | exit(0); | |
25145 | } | |
25146 | ||
25147 | _ACEOF | |
25148 | rm -f conftest$ac_exeext | |
25149 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25150 | (eval $ac_link) 2>&5 | |
25151 | ac_status=$? | |
25152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25153 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
25154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25155 | (eval $ac_try) 2>&5 | |
25156 | ac_status=$? | |
25157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25158 | (exit $ac_status); }; }; then | |
25159 | ac_cv_header_png_h=`cat conftestval` | |
25160 | else | |
25161 | echo "$as_me: program exited with status $ac_status" >&5 | |
25162 | echo "$as_me: failed program was:" >&5 | |
25163 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25164 | ||
25165 | ( exit $ac_status ) | |
25166 | ac_cv_header_png_h=no | |
25167 | fi | |
ac1cb8d3 | 25168 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25169 | fi |
25170 | ||
25171 | fi | |
25172 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
25173 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
25174 | if test "${ac_cv_header_png_h+set}" = set; then | |
25175 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
25176 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
25177 | if test "${ac_cv_header_png_h+set}" = set; then | |
25178 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25179 | fi | |
25180 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
25181 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
25182 | else | |
25183 | # Is the header compilable? | |
25184 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
25185 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
25186 | cat >conftest.$ac_ext <<_ACEOF | |
25187 | /* confdefs.h. */ | |
25188 | _ACEOF | |
25189 | cat confdefs.h >>conftest.$ac_ext | |
25190 | cat >>conftest.$ac_ext <<_ACEOF | |
25191 | /* end confdefs.h. */ | |
25192 | $ac_includes_default | |
25193 | #include <png.h> | |
25194 | _ACEOF | |
25195 | rm -f conftest.$ac_objext | |
25196 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25197 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25198 | ac_status=$? |
ac1cb8d3 VS |
25199 | grep -v '^ *+' conftest.er1 >conftest.err |
25200 | rm -f conftest.er1 | |
25201 | cat conftest.err >&5 | |
a848cd7e SC |
25202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25203 | (exit $ac_status); } && | |
d25774ab JS |
25204 | { ac_try='test -z "$ac_cxx_werror_flag" |
25205 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25207 | (eval $ac_try) 2>&5 | |
25208 | ac_status=$? | |
25209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25210 | (exit $ac_status); }; } && | |
25211 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25213 | (eval $ac_try) 2>&5 | |
25214 | ac_status=$? | |
25215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25216 | (exit $ac_status); }; }; then | |
25217 | ac_header_compiler=yes | |
25218 | else | |
25219 | echo "$as_me: failed program was:" >&5 | |
25220 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25221 | ||
25222 | ac_header_compiler=no | |
25223 | fi | |
ac1cb8d3 | 25224 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25225 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25226 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25227 | ||
25228 | # Is the header present? | |
25229 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
25230 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
25231 | cat >conftest.$ac_ext <<_ACEOF | |
25232 | /* confdefs.h. */ | |
25233 | _ACEOF | |
25234 | cat confdefs.h >>conftest.$ac_ext | |
25235 | cat >>conftest.$ac_ext <<_ACEOF | |
25236 | /* end confdefs.h. */ | |
25237 | #include <png.h> | |
25238 | _ACEOF | |
25239 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25240 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25241 | ac_status=$? | |
25242 | grep -v '^ *+' conftest.er1 >conftest.err | |
25243 | rm -f conftest.er1 | |
25244 | cat conftest.err >&5 | |
25245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25246 | (exit $ac_status); } >/dev/null; then | |
25247 | if test -s conftest.err; then | |
5d7b7554 VZ |
25248 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
25249 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
25250 | else |
25251 | ac_cpp_err= | |
25252 | fi | |
25253 | else | |
25254 | ac_cpp_err=yes | |
25255 | fi | |
25256 | if test -z "$ac_cpp_err"; then | |
25257 | ac_header_preproc=yes | |
25258 | else | |
25259 | echo "$as_me: failed program was:" >&5 | |
25260 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25261 | ||
25262 | ac_header_preproc=no | |
25263 | fi | |
25264 | rm -f conftest.err conftest.$ac_ext | |
25265 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25266 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25267 | ||
25268 | # So? What about this header? | |
5d7b7554 | 25269 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 25270 | yes:no: ) |
a848cd7e SC |
25271 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
25272 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25273 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
25274 | echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} | |
25275 | ac_header_preproc=yes | |
a848cd7e | 25276 | ;; |
ac1cb8d3 | 25277 | no:yes:* ) |
a848cd7e SC |
25278 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
25279 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25280 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
25281 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
25282 | { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 | |
25283 | echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} | |
25284 | { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 | |
25285 | echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25286 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
25287 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25288 | { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
25289 | echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25290 | ( |
25291 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25292 | ## ----------------------------------------- ## |
25293 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25294 | ## ----------------------------------------- ## | |
a848cd7e SC |
25295 | _ASBOX |
25296 | ) | | |
25297 | sed "s/^/$as_me: WARNING: /" >&2 | |
25298 | ;; | |
25299 | esac | |
25300 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
25301 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
25302 | if test "${ac_cv_header_png_h+set}" = set; then | |
25303 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25304 | else | |
25305 | ac_cv_header_png_h=$ac_header_preproc | |
25306 | fi | |
25307 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
25308 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
25309 | ||
25310 | fi | |
25311 | ||
25312 | ||
25313 | ||
25314 | if test "$ac_cv_header_png_h" = "yes"; then | |
25315 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 | |
25316 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
25317 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
25318 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25319 | else | |
25320 | ac_check_lib_save_LIBS=$LIBS | |
25321 | LIBS="-lpng -lz -lm $LIBS" | |
25322 | cat >conftest.$ac_ext <<_ACEOF | |
25323 | /* confdefs.h. */ | |
25324 | _ACEOF | |
25325 | cat confdefs.h >>conftest.$ac_ext | |
25326 | cat >>conftest.$ac_ext <<_ACEOF | |
25327 | /* end confdefs.h. */ | |
25328 | ||
25329 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25330 | #ifdef __cplusplus | |
25331 | extern "C" | |
25332 | #endif | |
25333 | /* We use char because int might match the return type of a gcc2 | |
25334 | builtin and then its argument prototype would still apply. */ | |
25335 | char png_check_sig (); | |
25336 | int | |
25337 | main () | |
25338 | { | |
25339 | png_check_sig (); | |
25340 | ; | |
25341 | return 0; | |
25342 | } | |
25343 | _ACEOF | |
25344 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25345 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25346 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25347 | ac_status=$? |
ac1cb8d3 VS |
25348 | grep -v '^ *+' conftest.er1 >conftest.err |
25349 | rm -f conftest.er1 | |
25350 | cat conftest.err >&5 | |
a848cd7e SC |
25351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25352 | (exit $ac_status); } && | |
d25774ab JS |
25353 | { ac_try='test -z "$ac_cxx_werror_flag" |
25354 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25356 | (eval $ac_try) 2>&5 | |
25357 | ac_status=$? | |
25358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25359 | (exit $ac_status); }; } && | |
25360 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25362 | (eval $ac_try) 2>&5 | |
25363 | ac_status=$? | |
25364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25365 | (exit $ac_status); }; }; then | |
25366 | ac_cv_lib_png_png_check_sig=yes | |
25367 | else | |
25368 | echo "$as_me: failed program was:" >&5 | |
25369 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25370 | ||
25371 | ac_cv_lib_png_png_check_sig=no | |
25372 | fi | |
ac1cb8d3 VS |
25373 | rm -f conftest.err conftest.$ac_objext \ |
25374 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25375 | LIBS=$ac_check_lib_save_LIBS |
25376 | fi | |
25377 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
25378 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
25379 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
25380 | PNG_LINK=" -lpng -lz" | |
25381 | fi | |
25382 | ||
25383 | fi | |
25384 | ||
25385 | if test "x$PNG_LINK" = "x" ; then | |
25386 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
25387 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 | |
25388 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
25389 | { (exit 1); exit 1; }; } | |
25390 | else | |
25391 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 | |
25392 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
25393 | wxUSE_LIBPNG=builtin | |
25394 | fi | |
25395 | else | |
25396 | wxUSE_LIBPNG=sys | |
25397 | fi | |
25398 | fi | |
25399 | fi | |
25400 | ||
25401 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
25402 | fi | |
25403 | ||
25404 | ||
25405 | JPEG_LINK= | |
25406 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
25407 | cat >>confdefs.h <<\_ACEOF | |
25408 | #define wxUSE_LIBJPEG 1 | |
25409 | _ACEOF | |
25410 | ||
25411 | ||
25412 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
25413 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 | |
25414 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
25415 | wxUSE_LIBJPEG=sys | |
25416 | fi | |
25417 | ||
25418 | if test "$wxUSE_MGL" != 1 ; then | |
25419 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
25420 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 | |
25421 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
25422 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
25423 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25424 | else | |
25425 | cat >conftest.$ac_ext <<_ACEOF | |
25426 | /* confdefs.h. */ | |
25427 | _ACEOF | |
25428 | cat confdefs.h >>conftest.$ac_ext | |
25429 | cat >>conftest.$ac_ext <<_ACEOF | |
25430 | /* end confdefs.h. */ | |
25431 | ||
25432 | #undef HAVE_STDLIB_H | |
25433 | #include <stdio.h> | |
25434 | #include <jpeglib.h> | |
25435 | ||
25436 | int | |
25437 | main () | |
25438 | { | |
25439 | ||
25440 | ||
25441 | ; | |
25442 | return 0; | |
25443 | } | |
25444 | _ACEOF | |
25445 | rm -f conftest.$ac_objext | |
25446 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25447 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25448 | ac_status=$? |
ac1cb8d3 VS |
25449 | grep -v '^ *+' conftest.er1 >conftest.err |
25450 | rm -f conftest.er1 | |
25451 | cat conftest.err >&5 | |
a848cd7e SC |
25452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25453 | (exit $ac_status); } && | |
d25774ab JS |
25454 | { ac_try='test -z "$ac_cxx_werror_flag" |
25455 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25457 | (eval $ac_try) 2>&5 | |
25458 | ac_status=$? | |
25459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25460 | (exit $ac_status); }; } && | |
25461 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25463 | (eval $ac_try) 2>&5 | |
25464 | ac_status=$? | |
25465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25466 | (exit $ac_status); }; }; then | |
25467 | ac_cv_header_jpeglib_h=yes | |
25468 | else | |
25469 | echo "$as_me: failed program was:" >&5 | |
25470 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25471 | ||
25472 | ac_cv_header_jpeglib_h=no | |
25473 | ||
25474 | fi | |
ac1cb8d3 | 25475 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25476 | |
25477 | fi | |
25478 | ||
25479 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 | |
25480 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
25481 | ||
25482 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
25483 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 | |
25484 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
25485 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
25486 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25487 | else | |
25488 | ac_check_lib_save_LIBS=$LIBS | |
25489 | LIBS="-ljpeg $LIBS" | |
25490 | cat >conftest.$ac_ext <<_ACEOF | |
25491 | /* confdefs.h. */ | |
25492 | _ACEOF | |
25493 | cat confdefs.h >>conftest.$ac_ext | |
25494 | cat >>conftest.$ac_ext <<_ACEOF | |
25495 | /* end confdefs.h. */ | |
25496 | ||
25497 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25498 | #ifdef __cplusplus | |
25499 | extern "C" | |
25500 | #endif | |
25501 | /* We use char because int might match the return type of a gcc2 | |
25502 | builtin and then its argument prototype would still apply. */ | |
25503 | char jpeg_read_header (); | |
25504 | int | |
25505 | main () | |
25506 | { | |
25507 | jpeg_read_header (); | |
25508 | ; | |
25509 | return 0; | |
25510 | } | |
25511 | _ACEOF | |
25512 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25513 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25514 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25515 | ac_status=$? |
ac1cb8d3 VS |
25516 | grep -v '^ *+' conftest.er1 >conftest.err |
25517 | rm -f conftest.er1 | |
25518 | cat conftest.err >&5 | |
a848cd7e SC |
25519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25520 | (exit $ac_status); } && | |
d25774ab JS |
25521 | { ac_try='test -z "$ac_cxx_werror_flag" |
25522 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25524 | (eval $ac_try) 2>&5 | |
25525 | ac_status=$? | |
25526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25527 | (exit $ac_status); }; } && | |
25528 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25530 | (eval $ac_try) 2>&5 | |
25531 | ac_status=$? | |
25532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25533 | (exit $ac_status); }; }; then | |
25534 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
25535 | else | |
25536 | echo "$as_me: failed program was:" >&5 | |
25537 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25538 | ||
25539 | ac_cv_lib_jpeg_jpeg_read_header=no | |
25540 | fi | |
ac1cb8d3 VS |
25541 | rm -f conftest.err conftest.$ac_objext \ |
25542 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25543 | LIBS=$ac_check_lib_save_LIBS |
25544 | fi | |
25545 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
25546 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
25547 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
25548 | JPEG_LINK=" -ljpeg" | |
25549 | fi | |
25550 | ||
25551 | fi | |
25552 | ||
25553 | if test "x$JPEG_LINK" = "x" ; then | |
25554 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
25555 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 | |
25556 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
25557 | { (exit 1); exit 1; }; } | |
25558 | else | |
25559 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 | |
25560 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
25561 | wxUSE_LIBJPEG=builtin | |
25562 | fi | |
25563 | else | |
25564 | wxUSE_LIBJPEG=sys | |
25565 | fi | |
25566 | fi | |
25567 | fi | |
25568 | fi | |
25569 | ||
25570 | ||
25571 | TIFF_LINK= | |
25572 | TIFF_PREREQ_LINKS=-lm | |
25573 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
25574 | cat >>confdefs.h <<\_ACEOF | |
25575 | #define wxUSE_LIBTIFF 1 | |
25576 | _ACEOF | |
25577 | ||
25578 | ||
25579 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
25580 | if test "$wxUSE_LIBJPEG" = "sys"; then | |
25581 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
25582 | fi | |
25583 | if test "$wxUSE_ZLIB" = "sys"; then | |
25584 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
25585 | fi | |
25586 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
25587 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
25588 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
25589 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
25590 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25591 | fi | |
25592 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
25593 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
25594 | else | |
25595 | # Is the header compilable? | |
25596 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
25597 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
25598 | cat >conftest.$ac_ext <<_ACEOF | |
25599 | /* confdefs.h. */ | |
25600 | _ACEOF | |
25601 | cat confdefs.h >>conftest.$ac_ext | |
25602 | cat >>conftest.$ac_ext <<_ACEOF | |
25603 | /* end confdefs.h. */ | |
25604 | $ac_includes_default | |
25605 | #include <tiffio.h> | |
25606 | _ACEOF | |
25607 | rm -f conftest.$ac_objext | |
25608 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25609 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25610 | ac_status=$? |
ac1cb8d3 VS |
25611 | grep -v '^ *+' conftest.er1 >conftest.err |
25612 | rm -f conftest.er1 | |
25613 | cat conftest.err >&5 | |
a848cd7e SC |
25614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25615 | (exit $ac_status); } && | |
d25774ab JS |
25616 | { ac_try='test -z "$ac_cxx_werror_flag" |
25617 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25619 | (eval $ac_try) 2>&5 | |
25620 | ac_status=$? | |
25621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25622 | (exit $ac_status); }; } && | |
25623 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25625 | (eval $ac_try) 2>&5 | |
25626 | ac_status=$? | |
25627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25628 | (exit $ac_status); }; }; then | |
25629 | ac_header_compiler=yes | |
25630 | else | |
25631 | echo "$as_me: failed program was:" >&5 | |
25632 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25633 | ||
25634 | ac_header_compiler=no | |
25635 | fi | |
ac1cb8d3 | 25636 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25637 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25638 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25639 | ||
25640 | # Is the header present? | |
25641 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
25642 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
25643 | cat >conftest.$ac_ext <<_ACEOF | |
25644 | /* confdefs.h. */ | |
25645 | _ACEOF | |
25646 | cat confdefs.h >>conftest.$ac_ext | |
25647 | cat >>conftest.$ac_ext <<_ACEOF | |
25648 | /* end confdefs.h. */ | |
25649 | #include <tiffio.h> | |
25650 | _ACEOF | |
25651 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25652 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25653 | ac_status=$? | |
25654 | grep -v '^ *+' conftest.er1 >conftest.err | |
25655 | rm -f conftest.er1 | |
25656 | cat conftest.err >&5 | |
25657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25658 | (exit $ac_status); } >/dev/null; then | |
25659 | if test -s conftest.err; then | |
5d7b7554 VZ |
25660 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
25661 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
25662 | else |
25663 | ac_cpp_err= | |
25664 | fi | |
25665 | else | |
25666 | ac_cpp_err=yes | |
25667 | fi | |
25668 | if test -z "$ac_cpp_err"; then | |
25669 | ac_header_preproc=yes | |
25670 | else | |
25671 | echo "$as_me: failed program was:" >&5 | |
25672 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25673 | ||
25674 | ac_header_preproc=no | |
25675 | fi | |
25676 | rm -f conftest.err conftest.$ac_ext | |
25677 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25678 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25679 | ||
25680 | # So? What about this header? | |
5d7b7554 | 25681 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 25682 | yes:no: ) |
a848cd7e SC |
25683 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
25684 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25685 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
25686 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
25687 | ac_header_preproc=yes | |
a848cd7e | 25688 | ;; |
ac1cb8d3 | 25689 | no:yes:* ) |
a848cd7e SC |
25690 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
25691 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25692 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
25693 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
25694 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
25695 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
25696 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
25697 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25698 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
25699 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25700 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
25701 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25702 | ( |
25703 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25704 | ## ----------------------------------------- ## |
25705 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25706 | ## ----------------------------------------- ## | |
a848cd7e SC |
25707 | _ASBOX |
25708 | ) | | |
25709 | sed "s/^/$as_me: WARNING: /" >&2 | |
25710 | ;; | |
25711 | esac | |
25712 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
25713 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
25714 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
25715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25716 | else | |
25717 | ac_cv_header_tiffio_h=$ac_header_preproc | |
25718 | fi | |
25719 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
25720 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
25721 | ||
25722 | fi | |
25723 | if test $ac_cv_header_tiffio_h = yes; then | |
25724 | ||
25725 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
25726 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
25727 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
25728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25729 | else | |
25730 | ac_check_lib_save_LIBS=$LIBS | |
25731 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" | |
25732 | cat >conftest.$ac_ext <<_ACEOF | |
25733 | /* confdefs.h. */ | |
25734 | _ACEOF | |
25735 | cat confdefs.h >>conftest.$ac_ext | |
25736 | cat >>conftest.$ac_ext <<_ACEOF | |
25737 | /* end confdefs.h. */ | |
25738 | ||
25739 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25740 | #ifdef __cplusplus | |
25741 | extern "C" | |
25742 | #endif | |
25743 | /* We use char because int might match the return type of a gcc2 | |
25744 | builtin and then its argument prototype would still apply. */ | |
25745 | char TIFFError (); | |
25746 | int | |
25747 | main () | |
25748 | { | |
25749 | TIFFError (); | |
25750 | ; | |
25751 | return 0; | |
25752 | } | |
25753 | _ACEOF | |
25754 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25755 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25756 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25757 | ac_status=$? |
ac1cb8d3 VS |
25758 | grep -v '^ *+' conftest.er1 >conftest.err |
25759 | rm -f conftest.er1 | |
25760 | cat conftest.err >&5 | |
a848cd7e SC |
25761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25762 | (exit $ac_status); } && | |
d25774ab JS |
25763 | { ac_try='test -z "$ac_cxx_werror_flag" |
25764 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25766 | (eval $ac_try) 2>&5 | |
25767 | ac_status=$? | |
25768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25769 | (exit $ac_status); }; } && | |
25770 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25772 | (eval $ac_try) 2>&5 | |
25773 | ac_status=$? | |
25774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25775 | (exit $ac_status); }; }; then | |
25776 | ac_cv_lib_tiff_TIFFError=yes | |
25777 | else | |
25778 | echo "$as_me: failed program was:" >&5 | |
25779 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25780 | ||
25781 | ac_cv_lib_tiff_TIFFError=no | |
25782 | fi | |
ac1cb8d3 VS |
25783 | rm -f conftest.err conftest.$ac_objext \ |
25784 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25785 | LIBS=$ac_check_lib_save_LIBS |
25786 | fi | |
25787 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
25788 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
25789 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
25790 | TIFF_LINK=" -ltiff" | |
25791 | fi | |
25792 | ||
25793 | ||
25794 | ||
25795 | fi | |
25796 | ||
25797 | ||
25798 | ||
25799 | if test "x$TIFF_LINK" = "x" ; then | |
25800 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
25801 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 | |
25802 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
25803 | { (exit 1); exit 1; }; } | |
25804 | else | |
25805 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 | |
25806 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
25807 | wxUSE_LIBTIFF=builtin | |
25808 | fi | |
25809 | else | |
25810 | wxUSE_LIBTIFF=sys | |
25811 | fi | |
25812 | fi | |
25813 | fi | |
25814 | ||
25815 | ||
47a7e797 MW |
25816 | if test "$wxUSE_WCHAR_T" != "yes"; then |
25817 | if test "$wxUSE_EXPAT" != "no"; then | |
25818 | { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5 | |
25819 | echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;} | |
25820 | wxUSE_EXPAT=no | |
25821 | fi | |
25822 | if test "$wxUSE_XML" != "no"; then | |
25823 | { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5 | |
25824 | echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;} | |
25825 | wxUSE_XML=no | |
25826 | fi | |
25827 | fi | |
25828 | ||
a848cd7e SC |
25829 | if test "$wxUSE_EXPAT" != "no"; then |
25830 | wxUSE_XML=yes | |
25831 | cat >>confdefs.h <<\_ACEOF | |
25832 | #define wxUSE_EXPAT 1 | |
25833 | _ACEOF | |
25834 | ||
25835 | cat >>confdefs.h <<\_ACEOF | |
25836 | #define wxUSE_XML 1 | |
25837 | _ACEOF | |
25838 | ||
25839 | ||
25840 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
25841 | if test "${ac_cv_header_expat_h+set}" = set; then | |
25842 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
25843 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
25844 | if test "${ac_cv_header_expat_h+set}" = set; then | |
25845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25846 | fi | |
25847 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
25848 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
25849 | else | |
25850 | # Is the header compilable? | |
25851 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
25852 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
25853 | cat >conftest.$ac_ext <<_ACEOF | |
25854 | /* confdefs.h. */ | |
25855 | _ACEOF | |
25856 | cat confdefs.h >>conftest.$ac_ext | |
25857 | cat >>conftest.$ac_ext <<_ACEOF | |
25858 | /* end confdefs.h. */ | |
25859 | $ac_includes_default | |
25860 | #include <expat.h> | |
25861 | _ACEOF | |
25862 | rm -f conftest.$ac_objext | |
25863 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25864 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25865 | ac_status=$? |
ac1cb8d3 VS |
25866 | grep -v '^ *+' conftest.er1 >conftest.err |
25867 | rm -f conftest.er1 | |
25868 | cat conftest.err >&5 | |
a848cd7e SC |
25869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25870 | (exit $ac_status); } && | |
d25774ab JS |
25871 | { ac_try='test -z "$ac_cxx_werror_flag" |
25872 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25874 | (eval $ac_try) 2>&5 | |
25875 | ac_status=$? | |
25876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25877 | (exit $ac_status); }; } && | |
25878 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25880 | (eval $ac_try) 2>&5 | |
25881 | ac_status=$? | |
25882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25883 | (exit $ac_status); }; }; then | |
25884 | ac_header_compiler=yes | |
25885 | else | |
25886 | echo "$as_me: failed program was:" >&5 | |
25887 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25888 | ||
25889 | ac_header_compiler=no | |
25890 | fi | |
ac1cb8d3 | 25891 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25892 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25893 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25894 | ||
25895 | # Is the header present? | |
25896 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
25897 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
25898 | cat >conftest.$ac_ext <<_ACEOF | |
25899 | /* confdefs.h. */ | |
25900 | _ACEOF | |
25901 | cat confdefs.h >>conftest.$ac_ext | |
25902 | cat >>conftest.$ac_ext <<_ACEOF | |
25903 | /* end confdefs.h. */ | |
25904 | #include <expat.h> | |
25905 | _ACEOF | |
25906 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25907 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25908 | ac_status=$? | |
25909 | grep -v '^ *+' conftest.er1 >conftest.err | |
25910 | rm -f conftest.er1 | |
25911 | cat conftest.err >&5 | |
25912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25913 | (exit $ac_status); } >/dev/null; then | |
25914 | if test -s conftest.err; then | |
5d7b7554 VZ |
25915 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
25916 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
25917 | else |
25918 | ac_cpp_err= | |
25919 | fi | |
25920 | else | |
25921 | ac_cpp_err=yes | |
25922 | fi | |
25923 | if test -z "$ac_cpp_err"; then | |
25924 | ac_header_preproc=yes | |
25925 | else | |
25926 | echo "$as_me: failed program was:" >&5 | |
25927 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25928 | ||
25929 | ac_header_preproc=no | |
25930 | fi | |
25931 | rm -f conftest.err conftest.$ac_ext | |
25932 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25933 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25934 | ||
25935 | # So? What about this header? | |
5d7b7554 | 25936 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 25937 | yes:no: ) |
a848cd7e SC |
25938 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
25939 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25940 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 |
25941 | echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} | |
25942 | ac_header_preproc=yes | |
a848cd7e | 25943 | ;; |
ac1cb8d3 | 25944 | no:yes:* ) |
a848cd7e SC |
25945 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
25946 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25947 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
25948 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
25949 | { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 | |
25950 | echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} | |
25951 | { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 | |
25952 | echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25953 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
25954 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25955 | { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 |
25956 | echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25957 | ( |
25958 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25959 | ## ----------------------------------------- ## |
25960 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25961 | ## ----------------------------------------- ## | |
a848cd7e SC |
25962 | _ASBOX |
25963 | ) | | |
25964 | sed "s/^/$as_me: WARNING: /" >&2 | |
25965 | ;; | |
25966 | esac | |
25967 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
25968 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
25969 | if test "${ac_cv_header_expat_h+set}" = set; then | |
25970 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25971 | else | |
25972 | ac_cv_header_expat_h=$ac_header_preproc | |
25973 | fi | |
25974 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
25975 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
25976 | ||
25977 | fi | |
25978 | if test $ac_cv_header_expat_h = yes; then | |
25979 | found_expat_h=1 | |
25980 | fi | |
25981 | ||
25982 | ||
25983 | if test "x$found_expat_h" = "x1"; then | |
25984 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
25985 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
25986 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
25987 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25988 | else | |
25989 | ||
a848cd7e SC |
25990 | cat >conftest.$ac_ext <<_ACEOF |
25991 | /* confdefs.h. */ | |
25992 | _ACEOF | |
25993 | cat confdefs.h >>conftest.$ac_ext | |
25994 | cat >>conftest.$ac_ext <<_ACEOF | |
25995 | /* end confdefs.h. */ | |
25996 | #include <expat.h> | |
25997 | int | |
25998 | main () | |
25999 | { | |
26000 | ||
26001 | ; | |
26002 | return 0; | |
26003 | } | |
26004 | _ACEOF | |
26005 | rm -f conftest.$ac_objext | |
26006 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26007 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26008 | ac_status=$? |
ac1cb8d3 VS |
26009 | grep -v '^ *+' conftest.er1 >conftest.err |
26010 | rm -f conftest.er1 | |
26011 | cat conftest.err >&5 | |
a848cd7e SC |
26012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26013 | (exit $ac_status); } && | |
d25774ab JS |
26014 | { ac_try='test -z "$ac_cxx_werror_flag" |
26015 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26017 | (eval $ac_try) 2>&5 | |
26018 | ac_status=$? | |
26019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26020 | (exit $ac_status); }; } && | |
26021 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26023 | (eval $ac_try) 2>&5 | |
26024 | ac_status=$? | |
26025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26026 | (exit $ac_status); }; }; then | |
26027 | wx_cv_expat_is_not_broken=yes | |
26028 | else | |
26029 | echo "$as_me: failed program was:" >&5 | |
26030 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26031 | ||
26032 | wx_cv_expat_is_not_broken=no | |
26033 | ||
26034 | fi | |
ac1cb8d3 | 26035 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26036 | |
26037 | ||
26038 | fi | |
26039 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
26040 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
26041 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
26042 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
26043 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 | |
26044 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
26045 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26046 | else | |
26047 | ac_check_lib_save_LIBS=$LIBS | |
26048 | LIBS="-lexpat $LIBS" | |
26049 | cat >conftest.$ac_ext <<_ACEOF | |
26050 | /* confdefs.h. */ | |
26051 | _ACEOF | |
26052 | cat confdefs.h >>conftest.$ac_ext | |
26053 | cat >>conftest.$ac_ext <<_ACEOF | |
26054 | /* end confdefs.h. */ | |
26055 | ||
26056 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26057 | #ifdef __cplusplus | |
26058 | extern "C" | |
26059 | #endif | |
26060 | /* We use char because int might match the return type of a gcc2 | |
26061 | builtin and then its argument prototype would still apply. */ | |
26062 | char XML_ParserCreate (); | |
26063 | int | |
26064 | main () | |
26065 | { | |
26066 | XML_ParserCreate (); | |
26067 | ; | |
26068 | return 0; | |
26069 | } | |
26070 | _ACEOF | |
26071 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26072 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26073 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26074 | ac_status=$? |
ac1cb8d3 VS |
26075 | grep -v '^ *+' conftest.er1 >conftest.err |
26076 | rm -f conftest.er1 | |
26077 | cat conftest.err >&5 | |
a848cd7e SC |
26078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26079 | (exit $ac_status); } && | |
d25774ab JS |
26080 | { ac_try='test -z "$ac_cxx_werror_flag" |
26081 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26083 | (eval $ac_try) 2>&5 | |
26084 | ac_status=$? | |
26085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26086 | (exit $ac_status); }; } && | |
26087 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26089 | (eval $ac_try) 2>&5 | |
26090 | ac_status=$? | |
26091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26092 | (exit $ac_status); }; }; then | |
26093 | ac_cv_lib_expat_XML_ParserCreate=yes | |
26094 | else | |
26095 | echo "$as_me: failed program was:" >&5 | |
26096 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26097 | ||
26098 | ac_cv_lib_expat_XML_ParserCreate=no | |
26099 | fi | |
ac1cb8d3 VS |
26100 | rm -f conftest.err conftest.$ac_objext \ |
26101 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26102 | LIBS=$ac_check_lib_save_LIBS |
26103 | fi | |
26104 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
26105 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
26106 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
26107 | EXPAT_LINK=" -lexpat" | |
26108 | fi | |
26109 | ||
26110 | fi | |
26111 | fi | |
26112 | if test "x$EXPAT_LINK" = "x" ; then | |
26113 | if test "$wxUSE_EXPAT" = "sys" ; then | |
26114 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
26115 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
26116 | { (exit 1); exit 1; }; } | |
26117 | else | |
26118 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
26119 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
26120 | wxUSE_EXPAT=builtin | |
26121 | fi | |
26122 | else | |
26123 | wxUSE_EXPAT=sys | |
26124 | fi | |
26125 | fi | |
26126 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
26127 | ||
26128 | ||
26129 | subdirs="$subdirs src/expat" | |
26130 | ||
26131 | fi | |
26132 | fi | |
26133 | ||
26134 | ||
26135 | ||
26136 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
a848cd7e SC |
26137 | if test "${ac_cv_header_mspack_h+set}" = set; then |
26138 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
26139 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
26140 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
26141 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26142 | fi | |
26143 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
26144 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
26145 | else | |
26146 | # Is the header compilable? | |
26147 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
26148 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
26149 | cat >conftest.$ac_ext <<_ACEOF | |
26150 | /* confdefs.h. */ | |
26151 | _ACEOF | |
26152 | cat confdefs.h >>conftest.$ac_ext | |
26153 | cat >>conftest.$ac_ext <<_ACEOF | |
26154 | /* end confdefs.h. */ | |
26155 | $ac_includes_default | |
26156 | #include <mspack.h> | |
26157 | _ACEOF | |
26158 | rm -f conftest.$ac_objext | |
26159 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26160 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26161 | ac_status=$? |
ac1cb8d3 VS |
26162 | grep -v '^ *+' conftest.er1 >conftest.err |
26163 | rm -f conftest.er1 | |
26164 | cat conftest.err >&5 | |
a848cd7e SC |
26165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26166 | (exit $ac_status); } && | |
d25774ab JS |
26167 | { ac_try='test -z "$ac_cxx_werror_flag" |
26168 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26170 | (eval $ac_try) 2>&5 | |
26171 | ac_status=$? | |
26172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26173 | (exit $ac_status); }; } && | |
26174 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26176 | (eval $ac_try) 2>&5 | |
26177 | ac_status=$? | |
26178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26179 | (exit $ac_status); }; }; then | |
26180 | ac_header_compiler=yes | |
26181 | else | |
26182 | echo "$as_me: failed program was:" >&5 | |
26183 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26184 | ||
26185 | ac_header_compiler=no | |
26186 | fi | |
ac1cb8d3 | 26187 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26188 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26189 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26190 | ||
26191 | # Is the header present? | |
26192 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
26193 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
26194 | cat >conftest.$ac_ext <<_ACEOF | |
26195 | /* confdefs.h. */ | |
26196 | _ACEOF | |
26197 | cat confdefs.h >>conftest.$ac_ext | |
26198 | cat >>conftest.$ac_ext <<_ACEOF | |
26199 | /* end confdefs.h. */ | |
26200 | #include <mspack.h> | |
26201 | _ACEOF | |
26202 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26203 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26204 | ac_status=$? | |
26205 | grep -v '^ *+' conftest.er1 >conftest.err | |
26206 | rm -f conftest.er1 | |
26207 | cat conftest.err >&5 | |
26208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26209 | (exit $ac_status); } >/dev/null; then | |
26210 | if test -s conftest.err; then | |
5d7b7554 VZ |
26211 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
26212 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
26213 | else |
26214 | ac_cpp_err= | |
26215 | fi | |
26216 | else | |
26217 | ac_cpp_err=yes | |
26218 | fi | |
26219 | if test -z "$ac_cpp_err"; then | |
26220 | ac_header_preproc=yes | |
26221 | else | |
26222 | echo "$as_me: failed program was:" >&5 | |
26223 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26224 | ||
26225 | ac_header_preproc=no | |
26226 | fi | |
26227 | rm -f conftest.err conftest.$ac_ext | |
26228 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26229 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26230 | ||
26231 | # So? What about this header? | |
5d7b7554 | 26232 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 26233 | yes:no: ) |
a848cd7e SC |
26234 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
26235 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
26236 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5 |
26237 | echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;} | |
26238 | ac_header_preproc=yes | |
a848cd7e | 26239 | ;; |
ac1cb8d3 | 26240 | no:yes:* ) |
a848cd7e SC |
26241 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
26242 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
26243 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
26244 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
26245 | { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5 | |
26246 | echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;} | |
26247 | { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5 | |
26248 | echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
26249 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
26250 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
26251 | { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5 |
26252 | echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
26253 | ( |
26254 | cat <<\_ASBOX | |
ac1cb8d3 VS |
26255 | ## ----------------------------------------- ## |
26256 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
26257 | ## ----------------------------------------- ## | |
a848cd7e SC |
26258 | _ASBOX |
26259 | ) | | |
26260 | sed "s/^/$as_me: WARNING: /" >&2 | |
26261 | ;; | |
26262 | esac | |
26263 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
26264 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
26265 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
26266 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26267 | else | |
26268 | ac_cv_header_mspack_h=$ac_header_preproc | |
26269 | fi | |
26270 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
26271 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
26272 | ||
26273 | fi | |
26274 | if test $ac_cv_header_mspack_h = yes; then | |
26275 | found_mspack_h=1 | |
26276 | fi | |
26277 | ||
26278 | ||
26279 | if test "x$found_mspack_h" = "x1"; then | |
26280 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
26281 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
26282 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
26283 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26284 | else | |
26285 | ac_check_lib_save_LIBS=$LIBS | |
26286 | LIBS="-lmspack $LIBS" | |
26287 | cat >conftest.$ac_ext <<_ACEOF | |
26288 | /* confdefs.h. */ | |
26289 | _ACEOF | |
26290 | cat confdefs.h >>conftest.$ac_ext | |
26291 | cat >>conftest.$ac_ext <<_ACEOF | |
26292 | /* end confdefs.h. */ | |
26293 | ||
26294 | /* Override any gcc2 internal prototype to avoid an error. */ | |
26295 | #ifdef __cplusplus | |
26296 | extern "C" | |
26297 | #endif | |
26298 | /* We use char because int might match the return type of a gcc2 | |
26299 | builtin and then its argument prototype would still apply. */ | |
26300 | char mspack_create_chm_decompressor (); | |
26301 | int | |
26302 | main () | |
26303 | { | |
26304 | mspack_create_chm_decompressor (); | |
26305 | ; | |
26306 | return 0; | |
26307 | } | |
26308 | _ACEOF | |
26309 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26310 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26311 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26312 | ac_status=$? |
ac1cb8d3 VS |
26313 | grep -v '^ *+' conftest.er1 >conftest.err |
26314 | rm -f conftest.er1 | |
26315 | cat conftest.err >&5 | |
a848cd7e SC |
26316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26317 | (exit $ac_status); } && | |
d25774ab JS |
26318 | { ac_try='test -z "$ac_cxx_werror_flag" |
26319 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26321 | (eval $ac_try) 2>&5 | |
26322 | ac_status=$? | |
26323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26324 | (exit $ac_status); }; } && | |
26325 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26327 | (eval $ac_try) 2>&5 | |
26328 | ac_status=$? | |
26329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26330 | (exit $ac_status); }; }; then | |
26331 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
26332 | else | |
26333 | echo "$as_me: failed program was:" >&5 | |
26334 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26335 | ||
26336 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
26337 | fi | |
ac1cb8d3 VS |
26338 | rm -f conftest.err conftest.$ac_objext \ |
26339 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26340 | LIBS=$ac_check_lib_save_LIBS |
26341 | fi | |
26342 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
26343 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
26344 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
26345 | MSPACK_LINK=" -lmspack" | |
26346 | fi | |
26347 | ||
26348 | fi | |
26349 | if test "x$MSPACK_LINK" = "x" ; then | |
26350 | wxUSE_LIBMSPACK=no | |
dd3a2d96 VZ |
26351 | fi |
26352 | fi | |
26353 | ||
26354 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
26355 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
26356 | #define wxUSE_LIBMSPACK 1 |
26357 | _ACEOF | |
26358 | ||
a848cd7e SC |
26359 | fi |
26360 | ||
26361 | ||
26362 | ||
26363 | AFMINSTALL= | |
26364 | WIN32INSTALL= | |
26365 | ||
26366 | TOOLKIT= | |
26367 | TOOLKIT_INCLUDE= | |
26368 | WIDGET_SET= | |
26369 | ||
26370 | if test "$USE_WIN32" = 1 ; then | |
26371 | ||
26372 | for ac_header in w32api.h | |
26373 | do | |
26374 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
26375 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
26376 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
26377 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
26378 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
26379 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26380 | fi | |
26381 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
26382 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
26383 | else | |
26384 | # Is the header compilable? | |
26385 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
26386 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
26387 | cat >conftest.$ac_ext <<_ACEOF | |
26388 | /* confdefs.h. */ | |
26389 | _ACEOF | |
26390 | cat confdefs.h >>conftest.$ac_ext | |
26391 | cat >>conftest.$ac_ext <<_ACEOF | |
26392 | /* end confdefs.h. */ | |
26393 | $ac_includes_default | |
26394 | #include <$ac_header> | |
26395 | _ACEOF | |
26396 | rm -f conftest.$ac_objext | |
26397 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26398 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26399 | ac_status=$? |
ac1cb8d3 VS |
26400 | grep -v '^ *+' conftest.er1 >conftest.err |
26401 | rm -f conftest.er1 | |
26402 | cat conftest.err >&5 | |
a848cd7e SC |
26403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26404 | (exit $ac_status); } && | |
d25774ab JS |
26405 | { ac_try='test -z "$ac_cxx_werror_flag" |
26406 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26408 | (eval $ac_try) 2>&5 | |
26409 | ac_status=$? | |
26410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26411 | (exit $ac_status); }; } && | |
26412 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26414 | (eval $ac_try) 2>&5 | |
26415 | ac_status=$? | |
26416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26417 | (exit $ac_status); }; }; then | |
26418 | ac_header_compiler=yes | |
26419 | else | |
26420 | echo "$as_me: failed program was:" >&5 | |
26421 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26422 | ||
26423 | ac_header_compiler=no | |
26424 | fi | |
ac1cb8d3 | 26425 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26426 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26427 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26428 | ||
26429 | # Is the header present? | |
26430 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
26431 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
26432 | cat >conftest.$ac_ext <<_ACEOF | |
26433 | /* confdefs.h. */ | |
26434 | _ACEOF | |
26435 | cat confdefs.h >>conftest.$ac_ext | |
26436 | cat >>conftest.$ac_ext <<_ACEOF | |
26437 | /* end confdefs.h. */ | |
26438 | #include <$ac_header> | |
26439 | _ACEOF | |
26440 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26441 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26442 | ac_status=$? | |
26443 | grep -v '^ *+' conftest.er1 >conftest.err | |
26444 | rm -f conftest.er1 | |
26445 | cat conftest.err >&5 | |
26446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26447 | (exit $ac_status); } >/dev/null; then | |
26448 | if test -s conftest.err; then | |
5d7b7554 VZ |
26449 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
26450 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
26451 | else |
26452 | ac_cpp_err= | |
26453 | fi | |
26454 | else | |
26455 | ac_cpp_err=yes | |
26456 | fi | |
26457 | if test -z "$ac_cpp_err"; then | |
26458 | ac_header_preproc=yes | |
26459 | else | |
26460 | echo "$as_me: failed program was:" >&5 | |
26461 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26462 | ||
26463 | ac_header_preproc=no | |
26464 | fi | |
26465 | rm -f conftest.err conftest.$ac_ext | |
26466 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26467 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26468 | ||
26469 | # So? What about this header? | |
5d7b7554 | 26470 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 26471 | yes:no: ) |
a848cd7e SC |
26472 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
26473 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
26474 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
26475 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
26476 | ac_header_preproc=yes | |
a848cd7e | 26477 | ;; |
ac1cb8d3 | 26478 | no:yes:* ) |
a848cd7e SC |
26479 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
26480 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
26481 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
26482 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
26483 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
26484 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
26485 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
26486 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
26487 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
26488 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
26489 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
26490 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
26491 | ( |
26492 | cat <<\_ASBOX | |
ac1cb8d3 VS |
26493 | ## ----------------------------------------- ## |
26494 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
26495 | ## ----------------------------------------- ## | |
a848cd7e SC |
26496 | _ASBOX |
26497 | ) | | |
26498 | sed "s/^/$as_me: WARNING: /" >&2 | |
26499 | ;; | |
26500 | esac | |
26501 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
26502 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
26503 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
26504 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26505 | else | |
ac1cb8d3 | 26506 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
26507 | fi |
26508 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
26509 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
26510 | ||
26511 | fi | |
26512 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
26513 | cat >>confdefs.h <<_ACEOF | |
26514 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
26515 | _ACEOF | |
26516 | ||
26517 | fi | |
26518 | ||
26519 | done | |
26520 | ||
26521 | if test "${ac_cv_header_windows_h+set}" = set; then | |
26522 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
26523 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
26524 | if test "${ac_cv_header_windows_h+set}" = set; then | |
26525 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26526 | fi | |
26527 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
26528 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
26529 | else | |
26530 | # Is the header compilable? | |
26531 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
26532 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
26533 | cat >conftest.$ac_ext <<_ACEOF | |
26534 | /* confdefs.h. */ | |
26535 | _ACEOF | |
26536 | cat confdefs.h >>conftest.$ac_ext | |
26537 | cat >>conftest.$ac_ext <<_ACEOF | |
26538 | /* end confdefs.h. */ | |
26539 | $ac_includes_default | |
26540 | #include <windows.h> | |
26541 | _ACEOF | |
26542 | rm -f conftest.$ac_objext | |
26543 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 26544 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 26545 | ac_status=$? |
ac1cb8d3 VS |
26546 | grep -v '^ *+' conftest.er1 >conftest.err |
26547 | rm -f conftest.er1 | |
26548 | cat conftest.err >&5 | |
a848cd7e SC |
26549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26550 | (exit $ac_status); } && | |
d25774ab JS |
26551 | { ac_try='test -z "$ac_cxx_werror_flag" |
26552 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26554 | (eval $ac_try) 2>&5 | |
26555 | ac_status=$? | |
26556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26557 | (exit $ac_status); }; } && | |
26558 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
26559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26560 | (eval $ac_try) 2>&5 | |
26561 | ac_status=$? | |
26562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26563 | (exit $ac_status); }; }; then | |
26564 | ac_header_compiler=yes | |
26565 | else | |
26566 | echo "$as_me: failed program was:" >&5 | |
26567 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26568 | ||
26569 | ac_header_compiler=no | |
26570 | fi | |
ac1cb8d3 | 26571 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26572 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26573 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26574 | ||
26575 | # Is the header present? | |
26576 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
26577 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
26578 | cat >conftest.$ac_ext <<_ACEOF | |
26579 | /* confdefs.h. */ | |
26580 | _ACEOF | |
26581 | cat confdefs.h >>conftest.$ac_ext | |
26582 | cat >>conftest.$ac_ext <<_ACEOF | |
26583 | /* end confdefs.h. */ | |
26584 | #include <windows.h> | |
26585 | _ACEOF | |
26586 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26587 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26588 | ac_status=$? | |
26589 | grep -v '^ *+' conftest.er1 >conftest.err | |
26590 | rm -f conftest.er1 | |
26591 | cat conftest.err >&5 | |
26592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26593 | (exit $ac_status); } >/dev/null; then | |
26594 | if test -s conftest.err; then | |
5d7b7554 VZ |
26595 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
26596 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
26597 | else |
26598 | ac_cpp_err= | |
26599 | fi | |
26600 | else | |
26601 | ac_cpp_err=yes | |
26602 | fi | |
26603 | if test -z "$ac_cpp_err"; then | |
26604 | ac_header_preproc=yes | |
26605 | else | |
26606 | echo "$as_me: failed program was:" >&5 | |
26607 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26608 | ||
26609 | ac_header_preproc=no | |
26610 | fi | |
26611 | rm -f conftest.err conftest.$ac_ext | |
26612 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26613 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26614 | ||
26615 | # So? What about this header? | |
5d7b7554 | 26616 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 26617 | yes:no: ) |
a848cd7e SC |
26618 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
26619 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
26620 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 |
26621 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
26622 | ac_header_preproc=yes | |
a848cd7e | 26623 | ;; |
ac1cb8d3 | 26624 | no:yes:* ) |
a848cd7e SC |
26625 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
26626 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
26627 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
26628 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
26629 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
26630 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
26631 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
26632 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
26633 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
26634 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
26635 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 |
26636 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
26637 | ( |
26638 | cat <<\_ASBOX | |
ac1cb8d3 VS |
26639 | ## ----------------------------------------- ## |
26640 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
26641 | ## ----------------------------------------- ## | |
a848cd7e SC |
26642 | _ASBOX |
26643 | ) | | |
26644 | sed "s/^/$as_me: WARNING: /" >&2 | |
26645 | ;; | |
26646 | esac | |
26647 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
26648 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
26649 | if test "${ac_cv_header_windows_h+set}" = set; then | |
26650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26651 | else | |
26652 | ac_cv_header_windows_h=$ac_header_preproc | |
26653 | fi | |
26654 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
26655 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
26656 | ||
26657 | fi | |
26658 | if test $ac_cv_header_windows_h = yes; then | |
26659 | : | |
26660 | else | |
26661 | ||
26662 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 | |
26663 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
26664 | { (exit 1); exit 1; }; } | |
26665 | ||
26666 | fi | |
26667 | ||
26668 | ||
26669 | ||
26670 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" | |
26671 | ||
26672 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then | |
26673 | LIBS="$LIBS -loleacc" | |
26674 | fi | |
26675 | ||
26676 | case "${host}" in | |
26677 | *-*-cygwin* ) | |
26678 | LIBS="$LIBS -lkernel32 -luser32" | |
a848cd7e SC |
26679 | esac |
26680 | ||
26681 | if test "$wxUSE_ODBC" = "sys" ; then | |
26682 | wxUSE_ODBC = "yes" | |
26683 | fi | |
26684 | if test "$wxUSE_ODBC" = "yes" ; then | |
26685 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
26686 | cat >>confdefs.h <<\_ACEOF | |
26687 | #define wxUSE_ODBC 1 | |
26688 | _ACEOF | |
26689 | ||
26690 | fi | |
26691 | ||
370d2fd7 | 26692 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
a848cd7e SC |
26693 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" |
26694 | ||
004ee6da | 26695 | WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
370d2fd7 | 26696 | |
a848cd7e SC |
26697 | WIN32INSTALL=win32install |
26698 | fi | |
26699 | ||
26700 | if test "$wxUSE_GUI" = "yes"; then | |
26701 | USE_GUI=1 | |
26702 | ||
26703 | GUI_TK_LIBRARY= | |
26704 | ||
26705 | WXGTK12= | |
26706 | WXGTK127= | |
26707 | WXGTK20= | |
26708 | WXGPE= | |
26709 | ||
207bc66c RN |
26710 | if test "$wxUSE_COCOA" = 1 ; then |
26711 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then | |
26712 | { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5 | |
26713 | echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;} | |
26714 | wxUSE_PRINTING_ARCHITECTURE=no | |
26715 | fi | |
26716 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
26717 | { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5 | |
26718 | echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;} | |
26719 | wxUSE_DRAG_AND_DROP=no | |
26720 | fi | |
26721 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
26722 | { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5 | |
26723 | echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;} | |
26724 | wxUSE_DRAGIMAGE=no | |
26725 | fi | |
26726 | fi | |
26727 | ||
a848cd7e SC |
26728 | if test "$wxUSE_MSW" = 1 ; then |
26729 | TOOLKIT=MSW | |
26730 | GUIDIST=MSW_DIST | |
26731 | ||
ceec2216 | 26732 | case "${host}" in |
a848cd7e SC |
26733 | *-*-mingw32* ) |
26734 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
26735 | esac | |
26736 | fi | |
26737 | ||
26738 | if test "$wxUSE_GTK" = 1; then | |
5d7b7554 VZ |
26739 | ac_ext=c |
26740 | ac_cpp='$CPP $CPPFLAGS' | |
26741 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
26742 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26743 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
26744 | ||
26745 | ||
a848cd7e SC |
26746 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 |
26747 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
26748 | ||
26749 | gtk_version_cached=1 | |
26750 | if test "${wx_cv_lib_gtk+set}" = set; then | |
26751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26752 | else | |
26753 | ||
26754 | gtk_version_cached=0 | |
26755 | echo "$as_me:$LINENO: result: " >&5 | |
26756 | echo "${ECHO_T}" >&6 | |
26757 | ||
26758 | GTK_MODULES= | |
26759 | if test "$wxUSE_THREADS" = "yes"; then | |
26760 | GTK_MODULES=gthread | |
26761 | fi | |
26762 | ||
f597b41c | 26763 | wx_cv_lib_gtk= |
5001df0d MW |
26764 | if test "x$wxGTK_VERSION" != "x1" |
26765 | then | |
26766 | case "${host}" in | |
26767 | *-*-solaris2* ) | |
26768 | if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then | |
5ff751d6 | 26769 | enable_gtktest=no |
5001df0d MW |
26770 | fi |
26771 | esac | |
26772 | ||
a848cd7e SC |
26773 | # Check whether --enable-gtktest or --disable-gtktest was given. |
26774 | if test "${enable_gtktest+set}" = set; then | |
26775 | enableval="$enable_gtktest" | |
26776 | ||
26777 | else | |
26778 | enable_gtktest=yes | |
26779 | fi; | |
26780 | ||
26781 | pkg_config_args=gtk+-2.0 | |
26782 | for module in . $GTK_MODULES | |
26783 | do | |
26784 | case "$module" in | |
26785 | gthread) | |
26786 | pkg_config_args="$pkg_config_args gthread-2.0" | |
26787 | ;; | |
26788 | esac | |
26789 | done | |
26790 | ||
26791 | no_gtk="" | |
26792 | ||
26793 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
26794 | set dummy pkg-config; ac_word=$2 | |
26795 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
26796 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
26797 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
26798 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26799 | else | |
26800 | case $PKG_CONFIG in | |
26801 | [\\/]* | ?:[\\/]*) | |
26802 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
26803 | ;; | |
26804 | *) | |
26805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26806 | for as_dir in $PATH | |
26807 | do | |
26808 | IFS=$as_save_IFS | |
26809 | test -z "$as_dir" && as_dir=. | |
26810 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26811 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
26812 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
26813 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
26814 | break 2 | |
26815 | fi | |
26816 | done | |
26817 | done | |
26818 | ||
26819 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
26820 | ;; | |
26821 | esac | |
26822 | fi | |
26823 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
26824 | ||
26825 | if test -n "$PKG_CONFIG"; then | |
26826 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
26827 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
26828 | else | |
26829 | echo "$as_me:$LINENO: result: no" >&5 | |
26830 | echo "${ECHO_T}no" >&6 | |
26831 | fi | |
26832 | ||
26833 | ||
26834 | if test x$PKG_CONFIG != xno ; then | |
26835 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
26836 | : | |
26837 | else | |
c2218763 | 26838 | echo "*** pkg-config too old; version 0.7 or better required." |
a848cd7e SC |
26839 | no_gtk=yes |
26840 | PKG_CONFIG=no | |
26841 | fi | |
26842 | else | |
26843 | no_gtk=yes | |
26844 | fi | |
26845 | ||
26846 | min_gtk_version=2.0.0 | |
26847 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 | |
26848 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
26849 | ||
26850 | if test x$PKG_CONFIG != xno ; then | |
26851 | ## don't try to run the test against uninstalled libtool libs | |
26852 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
26853 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
26854 | enable_gtktest=no | |
26855 | fi | |
26856 | ||
26857 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
26858 | : | |
26859 | else | |
26860 | no_gtk=yes | |
26861 | fi | |
26862 | fi | |
26863 | ||
26864 | if test x"$no_gtk" = x ; then | |
26865 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
26866 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
26867 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
26868 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
26869 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
26870 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
26871 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
26872 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
26873 | if test "x$enable_gtktest" = "xyes" ; then | |
26874 | ac_save_CFLAGS="$CFLAGS" | |
26875 | ac_save_LIBS="$LIBS" | |
26876 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
26877 | LIBS="$GTK_LIBS $LIBS" | |
26878 | rm -f conf.gtktest | |
26879 | if test "$cross_compiling" = yes; then | |
26880 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
26881 | else | |
26882 | cat >conftest.$ac_ext <<_ACEOF | |
26883 | /* confdefs.h. */ | |
26884 | _ACEOF | |
26885 | cat confdefs.h >>conftest.$ac_ext | |
26886 | cat >>conftest.$ac_ext <<_ACEOF | |
26887 | /* end confdefs.h. */ | |
26888 | ||
26889 | #include <gtk/gtk.h> | |
26890 | #include <stdio.h> | |
26891 | #include <stdlib.h> | |
26892 | ||
26893 | int | |
26894 | main () | |
26895 | { | |
26896 | int major, minor, micro; | |
26897 | char *tmp_version; | |
26898 | ||
26899 | system ("touch conf.gtktest"); | |
26900 | ||
26901 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
26902 | tmp_version = g_strdup("$min_gtk_version"); | |
26903 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
26904 | printf("%s, bad version string\n", "$min_gtk_version"); | |
26905 | exit(1); | |
26906 | } | |
26907 | ||
26908 | if ((gtk_major_version != $gtk_config_major_version) || | |
26909 | (gtk_minor_version != $gtk_config_minor_version) || | |
26910 | (gtk_micro_version != $gtk_config_micro_version)) | |
26911 | { | |
26912 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
26913 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
26914 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26915 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
26916 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
26917 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
26918 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
26919 | printf("*** required on your system.\n"); | |
26920 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
26921 | printf("*** to point to the correct configuration files\n"); | |
26922 | } | |
26923 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
26924 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
26925 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
26926 | { | |
26927 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
26928 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
26929 | printf("*** library (version %d.%d.%d)\n", | |
26930 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26931 | } | |
26932 | else | |
26933 | { | |
26934 | if ((gtk_major_version > major) || | |
26935 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
26936 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
26937 | { | |
26938 | return 0; | |
26939 | } | |
26940 | else | |
26941 | { | |
26942 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
26943 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26944 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
26945 | major, minor, micro); | |
26946 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
26947 | printf("***\n"); | |
26948 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
26949 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
26950 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
26951 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
26952 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
26953 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
26954 | printf("*** so that the correct libraries are found at run-time))\n"); | |
26955 | } | |
26956 | } | |
26957 | return 1; | |
26958 | } | |
26959 | ||
26960 | _ACEOF | |
26961 | rm -f conftest$ac_exeext | |
26962 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26963 | (eval $ac_link) 2>&5 | |
26964 | ac_status=$? | |
26965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26966 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
26967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26968 | (eval $ac_try) 2>&5 | |
26969 | ac_status=$? | |
26970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26971 | (exit $ac_status); }; }; then | |
26972 | : | |
26973 | else | |
26974 | echo "$as_me: program exited with status $ac_status" >&5 | |
26975 | echo "$as_me: failed program was:" >&5 | |
26976 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26977 | ||
26978 | ( exit $ac_status ) | |
26979 | no_gtk=yes | |
26980 | fi | |
ac1cb8d3 | 26981 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26982 | fi |
26983 | CFLAGS="$ac_save_CFLAGS" | |
26984 | LIBS="$ac_save_LIBS" | |
26985 | fi | |
26986 | fi | |
26987 | if test "x$no_gtk" = x ; then | |
26988 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | |
26989 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
26990 | wx_cv_lib_gtk=2.0 | |
26991 | else | |
26992 | echo "$as_me:$LINENO: result: no" >&5 | |
26993 | echo "${ECHO_T}no" >&6 | |
26994 | if test "$PKG_CONFIG" = "no" ; then | |
26995 | echo "*** A new enough version of pkg-config was not found." | |
26996 | echo "*** See http://pkgconfig.sourceforge.net" | |
26997 | else | |
26998 | if test -f conf.gtktest ; then | |
26999 | : | |
27000 | else | |
27001 | echo "*** Could not run GTK+ test program, checking why..." | |
27002 | ac_save_CFLAGS="$CFLAGS" | |
27003 | ac_save_LIBS="$LIBS" | |
27004 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
27005 | LIBS="$LIBS $GTK_LIBS" | |
27006 | cat >conftest.$ac_ext <<_ACEOF | |
27007 | /* confdefs.h. */ | |
27008 | _ACEOF | |
27009 | cat confdefs.h >>conftest.$ac_ext | |
27010 | cat >>conftest.$ac_ext <<_ACEOF | |
27011 | /* end confdefs.h. */ | |
27012 | ||
27013 | #include <gtk/gtk.h> | |
27014 | #include <stdio.h> | |
27015 | ||
27016 | int | |
27017 | main () | |
27018 | { | |
27019 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
27020 | ; | |
27021 | return 0; | |
27022 | } | |
27023 | _ACEOF | |
27024 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27025 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27026 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27027 | ac_status=$? |
ac1cb8d3 VS |
27028 | grep -v '^ *+' conftest.er1 >conftest.err |
27029 | rm -f conftest.er1 | |
27030 | cat conftest.err >&5 | |
a848cd7e SC |
27031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27032 | (exit $ac_status); } && | |
d25774ab JS |
27033 | { ac_try='test -z "$ac_c_werror_flag" |
27034 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27036 | (eval $ac_try) 2>&5 | |
27037 | ac_status=$? | |
27038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27039 | (exit $ac_status); }; } && | |
27040 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27042 | (eval $ac_try) 2>&5 | |
27043 | ac_status=$? | |
27044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27045 | (exit $ac_status); }; }; then | |
27046 | echo "*** The test program compiled, but did not run. This usually means" | |
27047 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
27048 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
27049 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
27050 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
27051 | echo "*** is required on your system" | |
27052 | echo "***" | |
27053 | echo "*** If you have an old version installed, it is best to remove it, although" | |
27054 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
27055 | else | |
27056 | echo "$as_me: failed program was:" >&5 | |
27057 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27058 | ||
27059 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
27060 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | |
27061 | fi | |
ac1cb8d3 VS |
27062 | rm -f conftest.err conftest.$ac_objext \ |
27063 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27064 | CFLAGS="$ac_save_CFLAGS" |
27065 | LIBS="$ac_save_LIBS" | |
27066 | fi | |
27067 | fi | |
27068 | GTK_CFLAGS="" | |
27069 | GTK_LIBS="" | |
27070 | : | |
27071 | fi | |
27072 | ||
27073 | ||
27074 | rm -f conf.gtktest | |
27075 | ||
5001df0d MW |
27076 | |
27077 | case "${host}" in | |
27078 | *-*-solaris2* ) | |
27079 | if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then | |
27080 | GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'` | |
27081 | GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'` | |
27082 | fi | |
27083 | if test "$wxUSE_SHARED" != "yes"; then | |
27084 | GTK_LIBS="$GTK_LIBS -lX11" | |
27085 | fi | |
27086 | esac | |
f597b41c MW |
27087 | fi |
27088 | ||
f34ca037 MW |
27089 | if test -z "$wx_cv_lib_gtk"; then |
27090 | if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then | |
a848cd7e SC |
27091 | |
27092 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
27093 | if test "${with_gtk_prefix+set}" = set; then | |
27094 | withval="$with_gtk_prefix" | |
27095 | gtk_config_prefix="$withval" | |
27096 | else | |
27097 | gtk_config_prefix="" | |
27098 | fi; | |
27099 | ||
27100 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
27101 | if test "${with_gtk_exec_prefix+set}" = set; then | |
27102 | withval="$with_gtk_exec_prefix" | |
27103 | gtk_config_exec_prefix="$withval" | |
27104 | else | |
27105 | gtk_config_exec_prefix="" | |
27106 | fi; | |
27107 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
27108 | if test "${enable_gtktest+set}" = set; then | |
27109 | enableval="$enable_gtktest" | |
27110 | ||
27111 | else | |
27112 | enable_gtktest=yes | |
27113 | fi; | |
27114 | ||
27115 | for module in . $GTK_MODULES | |
27116 | do | |
27117 | case "$module" in | |
27118 | gthread) | |
27119 | gtk_config_args="$gtk_config_args gthread" | |
27120 | ;; | |
27121 | esac | |
27122 | done | |
27123 | ||
27124 | if test x$gtk_config_exec_prefix != x ; then | |
27125 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
27126 | if test x${GTK_CONFIG+set} != xset ; then | |
27127 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
27128 | fi | |
27129 | fi | |
27130 | if test x$gtk_config_prefix != x ; then | |
27131 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
27132 | if test x${GTK_CONFIG+set} != xset ; then | |
27133 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
27134 | fi | |
27135 | fi | |
27136 | ||
27137 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
27138 | set dummy gtk-config; ac_word=$2 | |
27139 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27140 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27141 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
27142 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27143 | else | |
27144 | case $GTK_CONFIG in | |
27145 | [\\/]* | ?:[\\/]*) | |
27146 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
27147 | ;; | |
27148 | *) | |
27149 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27150 | for as_dir in $PATH | |
27151 | do | |
27152 | IFS=$as_save_IFS | |
27153 | test -z "$as_dir" && as_dir=. | |
27154 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27155 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27156 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
27157 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27158 | break 2 | |
27159 | fi | |
27160 | done | |
27161 | done | |
27162 | ||
27163 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
27164 | ;; | |
27165 | esac | |
27166 | fi | |
27167 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
27168 | ||
27169 | if test -n "$GTK_CONFIG"; then | |
27170 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
27171 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
27172 | else | |
27173 | echo "$as_me:$LINENO: result: no" >&5 | |
27174 | echo "${ECHO_T}no" >&6 | |
27175 | fi | |
27176 | ||
27177 | min_gtk_version=1.2.7 | |
27178 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
27179 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
27180 | no_gtk="" | |
27181 | if test "$GTK_CONFIG" = "no" ; then | |
27182 | no_gtk=yes | |
27183 | else | |
27184 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
27185 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
27186 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
27187 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
27188 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
27189 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
27190 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
27191 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
27192 | if test "x$enable_gtktest" = "xyes" ; then | |
27193 | ac_save_CFLAGS="$CFLAGS" | |
27194 | ac_save_LIBS="$LIBS" | |
27195 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
27196 | LIBS="$GTK_LIBS $LIBS" | |
27197 | rm -f conf.gtktest | |
27198 | if test "$cross_compiling" = yes; then | |
27199 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
27200 | else | |
27201 | cat >conftest.$ac_ext <<_ACEOF | |
27202 | /* confdefs.h. */ | |
27203 | _ACEOF | |
27204 | cat confdefs.h >>conftest.$ac_ext | |
27205 | cat >>conftest.$ac_ext <<_ACEOF | |
27206 | /* end confdefs.h. */ | |
27207 | ||
27208 | #include <gtk/gtk.h> | |
27209 | #include <stdio.h> | |
27210 | #include <stdlib.h> | |
27211 | ||
27212 | int | |
27213 | main () | |
27214 | { | |
27215 | int major, minor, micro; | |
27216 | char *tmp_version; | |
27217 | ||
27218 | system ("touch conf.gtktest"); | |
27219 | ||
27220 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
27221 | tmp_version = g_strdup("$min_gtk_version"); | |
27222 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
27223 | printf("%s, bad version string\n", "$min_gtk_version"); | |
27224 | exit(1); | |
27225 | } | |
27226 | ||
27227 | if ((gtk_major_version != $gtk_config_major_version) || | |
27228 | (gtk_minor_version != $gtk_config_minor_version) || | |
27229 | (gtk_micro_version != $gtk_config_micro_version)) | |
27230 | { | |
27231 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
27232 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
27233 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27234 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
27235 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
27236 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
27237 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
27238 | printf("*** required on your system.\n"); | |
27239 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
27240 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
27241 | printf("*** before re-running configure\n"); | |
27242 | } | |
27243 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
27244 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
27245 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
27246 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
27247 | { | |
27248 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
27249 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
27250 | printf("*** library (version %d.%d.%d)\n", | |
27251 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27252 | } | |
27253 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
27254 | else | |
27255 | { | |
27256 | if ((gtk_major_version > major) || | |
27257 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
27258 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
27259 | { | |
27260 | return 0; | |
27261 | } | |
27262 | else | |
27263 | { | |
27264 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
27265 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27266 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
27267 | major, minor, micro); | |
27268 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
27269 | printf("***\n"); | |
27270 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
27271 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
27272 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
27273 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
27274 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
27275 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
27276 | printf("*** so that the correct libraries are found at run-time))\n"); | |
27277 | } | |
27278 | } | |
27279 | return 1; | |
27280 | } | |
27281 | ||
27282 | _ACEOF | |
27283 | rm -f conftest$ac_exeext | |
27284 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27285 | (eval $ac_link) 2>&5 | |
27286 | ac_status=$? | |
27287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27288 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
27289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27290 | (eval $ac_try) 2>&5 | |
27291 | ac_status=$? | |
27292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27293 | (exit $ac_status); }; }; then | |
27294 | : | |
27295 | else | |
27296 | echo "$as_me: program exited with status $ac_status" >&5 | |
27297 | echo "$as_me: failed program was:" >&5 | |
27298 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27299 | ||
27300 | ( exit $ac_status ) | |
27301 | no_gtk=yes | |
27302 | fi | |
ac1cb8d3 | 27303 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27304 | fi |
27305 | CFLAGS="$ac_save_CFLAGS" | |
27306 | LIBS="$ac_save_LIBS" | |
27307 | fi | |
27308 | fi | |
27309 | if test "x$no_gtk" = x ; then | |
27310 | echo "$as_me:$LINENO: result: yes" >&5 | |
27311 | echo "${ECHO_T}yes" >&6 | |
27312 | wx_cv_lib_gtk=1.2.7 | |
27313 | else | |
27314 | echo "$as_me:$LINENO: result: no" >&5 | |
27315 | echo "${ECHO_T}no" >&6 | |
27316 | if test "$GTK_CONFIG" = "no" ; then | |
27317 | echo "*** The gtk-config script installed by GTK could not be found" | |
27318 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
27319 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
27320 | echo "*** full path to gtk-config." | |
27321 | else | |
27322 | if test -f conf.gtktest ; then | |
27323 | : | |
27324 | else | |
27325 | echo "*** Could not run GTK test program, checking why..." | |
27326 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
27327 | LIBS="$LIBS $GTK_LIBS" | |
27328 | cat >conftest.$ac_ext <<_ACEOF | |
27329 | /* confdefs.h. */ | |
27330 | _ACEOF | |
27331 | cat confdefs.h >>conftest.$ac_ext | |
27332 | cat >>conftest.$ac_ext <<_ACEOF | |
27333 | /* end confdefs.h. */ | |
27334 | ||
27335 | #include <gtk/gtk.h> | |
27336 | #include <stdio.h> | |
27337 | ||
27338 | int | |
27339 | main () | |
27340 | { | |
27341 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
27342 | ; | |
27343 | return 0; | |
27344 | } | |
27345 | _ACEOF | |
27346 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27347 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27348 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27349 | ac_status=$? |
ac1cb8d3 VS |
27350 | grep -v '^ *+' conftest.er1 >conftest.err |
27351 | rm -f conftest.er1 | |
27352 | cat conftest.err >&5 | |
a848cd7e SC |
27353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27354 | (exit $ac_status); } && | |
d25774ab JS |
27355 | { ac_try='test -z "$ac_c_werror_flag" |
27356 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27358 | (eval $ac_try) 2>&5 | |
27359 | ac_status=$? | |
27360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27361 | (exit $ac_status); }; } && | |
27362 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27364 | (eval $ac_try) 2>&5 | |
27365 | ac_status=$? | |
27366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27367 | (exit $ac_status); }; }; then | |
27368 | echo "*** The test program compiled, but did not run. This usually means" | |
27369 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
27370 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
27371 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
27372 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
27373 | echo "*** is required on your system" | |
27374 | echo "***" | |
27375 | echo "*** If you have an old version installed, it is best to remove it, although" | |
27376 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
27377 | echo "***" | |
27378 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
27379 | echo "*** came with the system with the command" | |
27380 | echo "***" | |
27381 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
27382 | else | |
27383 | echo "$as_me: failed program was:" >&5 | |
27384 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27385 | ||
27386 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
27387 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
27388 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
27389 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
27390 | fi | |
ac1cb8d3 VS |
27391 | rm -f conftest.err conftest.$ac_objext \ |
27392 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27393 | CFLAGS="$ac_save_CFLAGS" |
27394 | LIBS="$ac_save_LIBS" | |
27395 | fi | |
27396 | fi | |
27397 | GTK_CFLAGS="" | |
27398 | GTK_LIBS="" | |
27399 | : | |
27400 | fi | |
27401 | ||
27402 | ||
27403 | rm -f conf.gtktest | |
27404 | ||
27405 | ||
f34ca037 | 27406 | if test -z "$wx_cv_lib_gtk"; then |
a848cd7e SC |
27407 | |
27408 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
27409 | if test "${with_gtk_prefix+set}" = set; then | |
27410 | withval="$with_gtk_prefix" | |
27411 | gtk_config_prefix="$withval" | |
27412 | else | |
27413 | gtk_config_prefix="" | |
27414 | fi; | |
27415 | ||
27416 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
27417 | if test "${with_gtk_exec_prefix+set}" = set; then | |
27418 | withval="$with_gtk_exec_prefix" | |
27419 | gtk_config_exec_prefix="$withval" | |
27420 | else | |
27421 | gtk_config_exec_prefix="" | |
27422 | fi; | |
27423 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
27424 | if test "${enable_gtktest+set}" = set; then | |
27425 | enableval="$enable_gtktest" | |
27426 | ||
27427 | else | |
27428 | enable_gtktest=yes | |
27429 | fi; | |
27430 | ||
27431 | for module in . $GTK_MODULES | |
27432 | do | |
27433 | case "$module" in | |
27434 | gthread) | |
27435 | gtk_config_args="$gtk_config_args gthread" | |
27436 | ;; | |
27437 | esac | |
27438 | done | |
27439 | ||
27440 | if test x$gtk_config_exec_prefix != x ; then | |
27441 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
27442 | if test x${GTK_CONFIG+set} != xset ; then | |
27443 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
27444 | fi | |
27445 | fi | |
27446 | if test x$gtk_config_prefix != x ; then | |
27447 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
27448 | if test x${GTK_CONFIG+set} != xset ; then | |
27449 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
27450 | fi | |
27451 | fi | |
27452 | ||
27453 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
27454 | set dummy gtk-config; ac_word=$2 | |
27455 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
27456 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
27457 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
27458 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27459 | else | |
27460 | case $GTK_CONFIG in | |
27461 | [\\/]* | ?:[\\/]*) | |
27462 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
27463 | ;; | |
27464 | *) | |
27465 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
27466 | for as_dir in $PATH | |
27467 | do | |
27468 | IFS=$as_save_IFS | |
27469 | test -z "$as_dir" && as_dir=. | |
27470 | for ac_exec_ext in '' $ac_executable_extensions; do | |
27471 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
27472 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
27473 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
27474 | break 2 | |
27475 | fi | |
27476 | done | |
27477 | done | |
27478 | ||
27479 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
27480 | ;; | |
27481 | esac | |
27482 | fi | |
27483 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
27484 | ||
27485 | if test -n "$GTK_CONFIG"; then | |
27486 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
27487 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
27488 | else | |
27489 | echo "$as_me:$LINENO: result: no" >&5 | |
27490 | echo "${ECHO_T}no" >&6 | |
27491 | fi | |
27492 | ||
27493 | min_gtk_version=1.2.3 | |
27494 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
27495 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
27496 | no_gtk="" | |
27497 | if test "$GTK_CONFIG" = "no" ; then | |
27498 | no_gtk=yes | |
27499 | else | |
27500 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
27501 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
27502 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
27503 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
27504 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
27505 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
27506 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
27507 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
27508 | if test "x$enable_gtktest" = "xyes" ; then | |
27509 | ac_save_CFLAGS="$CFLAGS" | |
27510 | ac_save_LIBS="$LIBS" | |
27511 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
27512 | LIBS="$GTK_LIBS $LIBS" | |
27513 | rm -f conf.gtktest | |
27514 | if test "$cross_compiling" = yes; then | |
27515 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
27516 | else | |
27517 | cat >conftest.$ac_ext <<_ACEOF | |
27518 | /* confdefs.h. */ | |
27519 | _ACEOF | |
27520 | cat confdefs.h >>conftest.$ac_ext | |
27521 | cat >>conftest.$ac_ext <<_ACEOF | |
27522 | /* end confdefs.h. */ | |
27523 | ||
27524 | #include <gtk/gtk.h> | |
27525 | #include <stdio.h> | |
27526 | #include <stdlib.h> | |
27527 | ||
27528 | int | |
27529 | main () | |
27530 | { | |
27531 | int major, minor, micro; | |
27532 | char *tmp_version; | |
27533 | ||
27534 | system ("touch conf.gtktest"); | |
27535 | ||
27536 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
27537 | tmp_version = g_strdup("$min_gtk_version"); | |
27538 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
27539 | printf("%s, bad version string\n", "$min_gtk_version"); | |
27540 | exit(1); | |
27541 | } | |
27542 | ||
27543 | if ((gtk_major_version != $gtk_config_major_version) || | |
27544 | (gtk_minor_version != $gtk_config_minor_version) || | |
27545 | (gtk_micro_version != $gtk_config_micro_version)) | |
27546 | { | |
27547 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
27548 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
27549 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27550 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
27551 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
27552 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
27553 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
27554 | printf("*** required on your system.\n"); | |
27555 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
27556 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
27557 | printf("*** before re-running configure\n"); | |
27558 | } | |
27559 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
27560 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
27561 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
27562 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
27563 | { | |
27564 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
27565 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
27566 | printf("*** library (version %d.%d.%d)\n", | |
27567 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27568 | } | |
27569 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
27570 | else | |
27571 | { | |
27572 | if ((gtk_major_version > major) || | |
27573 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
27574 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
27575 | { | |
27576 | return 0; | |
27577 | } | |
27578 | else | |
27579 | { | |
27580 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
27581 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
27582 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
27583 | major, minor, micro); | |
27584 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
27585 | printf("***\n"); | |
27586 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
27587 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
27588 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
27589 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
27590 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
27591 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
27592 | printf("*** so that the correct libraries are found at run-time))\n"); | |
27593 | } | |
27594 | } | |
27595 | return 1; | |
27596 | } | |
27597 | ||
27598 | _ACEOF | |
27599 | rm -f conftest$ac_exeext | |
27600 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27601 | (eval $ac_link) 2>&5 | |
27602 | ac_status=$? | |
27603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27604 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
27605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27606 | (eval $ac_try) 2>&5 | |
27607 | ac_status=$? | |
27608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27609 | (exit $ac_status); }; }; then | |
27610 | : | |
27611 | else | |
27612 | echo "$as_me: program exited with status $ac_status" >&5 | |
27613 | echo "$as_me: failed program was:" >&5 | |
27614 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27615 | ||
27616 | ( exit $ac_status ) | |
27617 | no_gtk=yes | |
27618 | fi | |
ac1cb8d3 | 27619 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27620 | fi |
27621 | CFLAGS="$ac_save_CFLAGS" | |
27622 | LIBS="$ac_save_LIBS" | |
27623 | fi | |
27624 | fi | |
27625 | if test "x$no_gtk" = x ; then | |
27626 | echo "$as_me:$LINENO: result: yes" >&5 | |
27627 | echo "${ECHO_T}yes" >&6 | |
27628 | wx_cv_lib_gtk=1.2.3 | |
27629 | else | |
27630 | echo "$as_me:$LINENO: result: no" >&5 | |
27631 | echo "${ECHO_T}no" >&6 | |
27632 | if test "$GTK_CONFIG" = "no" ; then | |
27633 | echo "*** The gtk-config script installed by GTK could not be found" | |
27634 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
27635 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
27636 | echo "*** full path to gtk-config." | |
27637 | else | |
27638 | if test -f conf.gtktest ; then | |
27639 | : | |
27640 | else | |
27641 | echo "*** Could not run GTK test program, checking why..." | |
27642 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
27643 | LIBS="$LIBS $GTK_LIBS" | |
27644 | cat >conftest.$ac_ext <<_ACEOF | |
27645 | /* confdefs.h. */ | |
27646 | _ACEOF | |
27647 | cat confdefs.h >>conftest.$ac_ext | |
27648 | cat >>conftest.$ac_ext <<_ACEOF | |
27649 | /* end confdefs.h. */ | |
27650 | ||
27651 | #include <gtk/gtk.h> | |
27652 | #include <stdio.h> | |
27653 | ||
27654 | int | |
27655 | main () | |
27656 | { | |
27657 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
27658 | ; | |
27659 | return 0; | |
27660 | } | |
27661 | _ACEOF | |
27662 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27663 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27664 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27665 | ac_status=$? |
ac1cb8d3 VS |
27666 | grep -v '^ *+' conftest.er1 >conftest.err |
27667 | rm -f conftest.er1 | |
27668 | cat conftest.err >&5 | |
a848cd7e SC |
27669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27670 | (exit $ac_status); } && | |
d25774ab JS |
27671 | { ac_try='test -z "$ac_c_werror_flag" |
27672 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27674 | (eval $ac_try) 2>&5 | |
27675 | ac_status=$? | |
27676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27677 | (exit $ac_status); }; } && | |
27678 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27680 | (eval $ac_try) 2>&5 | |
27681 | ac_status=$? | |
27682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27683 | (exit $ac_status); }; }; then | |
27684 | echo "*** The test program compiled, but did not run. This usually means" | |
27685 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
27686 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
27687 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
27688 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
27689 | echo "*** is required on your system" | |
27690 | echo "***" | |
27691 | echo "*** If you have an old version installed, it is best to remove it, although" | |
27692 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
27693 | echo "***" | |
27694 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
27695 | echo "*** came with the system with the command" | |
27696 | echo "***" | |
27697 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
27698 | else | |
27699 | echo "$as_me: failed program was:" >&5 | |
27700 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27701 | ||
27702 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
27703 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
27704 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
27705 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
27706 | fi | |
ac1cb8d3 VS |
27707 | rm -f conftest.err conftest.$ac_objext \ |
27708 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27709 | CFLAGS="$ac_save_CFLAGS" |
27710 | LIBS="$ac_save_LIBS" | |
27711 | fi | |
27712 | fi | |
27713 | GTK_CFLAGS="" | |
27714 | GTK_LIBS="" | |
27715 | : | |
27716 | fi | |
27717 | ||
27718 | ||
27719 | rm -f conf.gtktest | |
27720 | ||
f34ca037 | 27721 | fi |
a848cd7e SC |
27722 | fi |
27723 | fi | |
27724 | ||
27725 | if test -z "$wx_cv_lib_gtk"; then | |
27726 | wx_cv_lib_gtk=none | |
27727 | else | |
27728 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
d2822091 | 27729 | wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'` |
a848cd7e SC |
27730 | fi |
27731 | ||
27732 | ||
27733 | fi | |
27734 | ||
27735 | ||
27736 | if test "$gtk_version_cached" = 1; then | |
27737 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 | |
27738 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
27739 | fi | |
27740 | ||
27741 | case "$wx_cv_lib_gtk" in | |
27742 | 2.0) WXGTK20=1 | |
27743 | TOOLKIT_VERSION=2 | |
27744 | ;; | |
27745 | 1.2.7) WXGTK127=1 | |
27746 | WXGTK12=1 | |
27747 | ;; | |
27748 | 1.2.3) WXGTK12=1 | |
27749 | ;; | |
27750 | *) { { echo "$as_me:$LINENO: error: | |
f597b41c MW |
27751 | The development files for GTK+ were not found. For GTK+ 2, please |
27752 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
27753 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
27754 | and that the version is 1.2.3 or above. Also check that the | |
27755 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
27756 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e SC |
27757 | " >&5 |
27758 | echo "$as_me: error: | |
f597b41c MW |
27759 | The development files for GTK+ were not found. For GTK+ 2, please |
27760 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
27761 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
27762 | and that the version is 1.2.3 or above. Also check that the | |
27763 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
27764 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e SC |
27765 | " >&2;} |
27766 | { (exit 1); exit 1; }; } | |
27767 | ;; | |
27768 | esac | |
27769 | ||
27770 | if test "$WXGTK20" = 1; then | |
d25774ab | 27771 | save_CXXFLAGS="$CXXFLAGS" |
304205f1 | 27772 | save_LIBS="$LIBS" |
d25774ab | 27773 | CXXFLAGS="$wx_cv_cflags_gtk $CXXFLAGS" |
abc736fd | 27774 | LIBS="$LIBS $wx_cv_libs_gtk" |
304205f1 | 27775 | |
d12aef51 VZ |
27776 | echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5 |
27777 | echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6 | |
27778 | cat >conftest.$ac_ext <<_ACEOF | |
304205f1 VS |
27779 | /* confdefs.h. */ |
27780 | _ACEOF | |
27781 | cat confdefs.h >>conftest.$ac_ext | |
27782 | cat >>conftest.$ac_ext <<_ACEOF | |
27783 | /* end confdefs.h. */ | |
304205f1 | 27784 | |
d12aef51 | 27785 | #include <gtk/gtk.h> |
304205f1 | 27786 | |
d12aef51 VZ |
27787 | int |
27788 | main () | |
27789 | { | |
304205f1 | 27790 | |
d12aef51 | 27791 | void *f = gtk_icon_size_lookup; |
abc736fd MW |
27792 | |
27793 | ; | |
27794 | return 0; | |
27795 | } | |
27796 | _ACEOF | |
27797 | rm -f conftest.$ac_objext | |
27798 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27799 | (eval $ac_compile) 2>conftest.er1 | |
27800 | ac_status=$? | |
27801 | grep -v '^ *+' conftest.er1 >conftest.err | |
27802 | rm -f conftest.er1 | |
27803 | cat conftest.err >&5 | |
27804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27805 | (exit $ac_status); } && | |
d25774ab JS |
27806 | { ac_try='test -z "$ac_c_werror_flag" |
27807 | || test ! -s conftest.err' | |
abc736fd MW |
27808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27809 | (eval $ac_try) 2>&5 | |
27810 | ac_status=$? | |
27811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27812 | (exit $ac_status); }; } && | |
27813 | { ac_try='test -s conftest.$ac_objext' | |
27814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27815 | (eval $ac_try) 2>&5 | |
27816 | ac_status=$? | |
27817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27818 | (exit $ac_status); }; }; then | |
27819 | ||
27820 | echo "$as_me:$LINENO: result: no" >&5 | |
27821 | echo "${ECHO_T}no" >&6 | |
27822 | ||
27823 | else | |
27824 | echo "$as_me: failed program was:" >&5 | |
27825 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27826 | ||
27827 | ||
27828 | cat >>confdefs.h <<\_ACEOF | |
27829 | #define NEED_GTK_ICON_SIZE_LOOKUP 1 | |
27830 | _ACEOF | |
27831 | ||
27832 | echo "$as_me:$LINENO: result: yes" >&5 | |
27833 | echo "${ECHO_T}yes" >&6 | |
27834 | ||
27835 | fi | |
27836 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
27837 | ||
9755e73b VS |
27838 | echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5 |
27839 | echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6 | |
27840 | cat >conftest.$ac_ext <<_ACEOF | |
27841 | /* confdefs.h. */ | |
27842 | _ACEOF | |
27843 | cat confdefs.h >>conftest.$ac_ext | |
27844 | cat >>conftest.$ac_ext <<_ACEOF | |
27845 | /* end confdefs.h. */ | |
27846 | ||
27847 | #include <gtk/gtk.h> | |
27848 | ||
27849 | int | |
27850 | main () | |
27851 | { | |
27852 | ||
27853 | #if !GTK_CHECK_VERSION(2,4,0) | |
04e525a0 | 27854 | Not GTK+ 2.4 |
9755e73b VS |
27855 | #endif |
27856 | ||
27857 | ; | |
27858 | return 0; | |
27859 | } | |
27860 | _ACEOF | |
27861 | rm -f conftest.$ac_objext | |
27862 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27863 | (eval $ac_compile) 2>conftest.er1 | |
27864 | ac_status=$? | |
27865 | grep -v '^ *+' conftest.er1 >conftest.err | |
27866 | rm -f conftest.er1 | |
27867 | cat conftest.err >&5 | |
27868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27869 | (exit $ac_status); } && | |
d25774ab JS |
27870 | { ac_try='test -z "$ac_c_werror_flag" |
27871 | || test ! -s conftest.err' | |
9755e73b VS |
27872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27873 | (eval $ac_try) 2>&5 | |
27874 | ac_status=$? | |
27875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27876 | (exit $ac_status); }; } && | |
27877 | { ac_try='test -s conftest.$ac_objext' | |
27878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27879 | (eval $ac_try) 2>&5 | |
27880 | ac_status=$? | |
27881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27882 | (exit $ac_status); }; }; then | |
27883 | ||
27884 | cat >>confdefs.h <<\_ACEOF | |
27885 | #define __WXGTK24__ 1 | |
27886 | _ACEOF | |
27887 | ||
27888 | echo "$as_me:$LINENO: result: yes" >&5 | |
27889 | echo "${ECHO_T}yes" >&6 | |
27890 | ||
27891 | else | |
27892 | echo "$as_me: failed program was:" >&5 | |
27893 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27894 | ||
27895 | ||
27896 | echo "$as_me:$LINENO: result: no" >&5 | |
27897 | echo "${ECHO_T}no" >&6 | |
27898 | ||
27899 | fi | |
27900 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
27901 | ||
d25774ab | 27902 | CXXFLAGS="$save_CXXFLAGS" |
304205f1 | 27903 | LIBS="$save_LIBS" |
a848cd7e SC |
27904 | else |
27905 | if test "$wxUSE_UNICODE" = "yes"; then | |
27906 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 | |
27907 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
27908 | wxUSE_UNICODE=no | |
27909 | fi | |
27910 | fi | |
27911 | ||
e56f4f9e VZ |
27912 | ac_ext=cc |
27913 | ac_cpp='$CXXCPP $CPPFLAGS' | |
27914 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
27915 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27916 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
27917 | ||
27918 | ||
a848cd7e SC |
27919 | if test "$USE_DARWIN" != 1; then |
27920 | ||
27921 | for ac_func in poll | |
27922 | do | |
27923 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
27924 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27925 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27926 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27928 | else | |
27929 | cat >conftest.$ac_ext <<_ACEOF | |
27930 | /* confdefs.h. */ | |
27931 | _ACEOF | |
27932 | cat confdefs.h >>conftest.$ac_ext | |
27933 | cat >>conftest.$ac_ext <<_ACEOF | |
27934 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
27935 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
27936 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
27937 | #define $ac_func innocuous_$ac_func | |
27938 | ||
a848cd7e SC |
27939 | /* System header to define __stub macros and hopefully few prototypes, |
27940 | which can conflict with char $ac_func (); below. | |
27941 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27942 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 27943 | |
a848cd7e SC |
27944 | #ifdef __STDC__ |
27945 | # include <limits.h> | |
27946 | #else | |
27947 | # include <assert.h> | |
27948 | #endif | |
ac1cb8d3 VS |
27949 | |
27950 | #undef $ac_func | |
27951 | ||
a848cd7e SC |
27952 | /* Override any gcc2 internal prototype to avoid an error. */ |
27953 | #ifdef __cplusplus | |
27954 | extern "C" | |
27955 | { | |
27956 | #endif | |
27957 | /* We use char because int might match the return type of a gcc2 | |
27958 | builtin and then its argument prototype would still apply. */ | |
27959 | char $ac_func (); | |
27960 | /* The GNU C library defines this for functions which it implements | |
27961 | to always fail with ENOSYS. Some functions are actually named | |
27962 | something starting with __ and the normal name is an alias. */ | |
27963 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27964 | choke me | |
27965 | #else | |
27966 | char (*f) () = $ac_func; | |
27967 | #endif | |
27968 | #ifdef __cplusplus | |
27969 | } | |
27970 | #endif | |
27971 | ||
27972 | int | |
27973 | main () | |
27974 | { | |
27975 | return f != $ac_func; | |
27976 | ; | |
27977 | return 0; | |
27978 | } | |
27979 | _ACEOF | |
27980 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27981 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27982 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27983 | ac_status=$? |
ac1cb8d3 VS |
27984 | grep -v '^ *+' conftest.er1 >conftest.err |
27985 | rm -f conftest.er1 | |
27986 | cat conftest.err >&5 | |
a848cd7e SC |
27987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27988 | (exit $ac_status); } && | |
d25774ab JS |
27989 | { ac_try='test -z "$ac_cxx_werror_flag" |
27990 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27992 | (eval $ac_try) 2>&5 | |
27993 | ac_status=$? | |
27994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27995 | (exit $ac_status); }; } && | |
27996 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27998 | (eval $ac_try) 2>&5 | |
27999 | ac_status=$? | |
28000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28001 | (exit $ac_status); }; }; then | |
28002 | eval "$as_ac_var=yes" | |
28003 | else | |
28004 | echo "$as_me: failed program was:" >&5 | |
28005 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28006 | ||
28007 | eval "$as_ac_var=no" | |
28008 | fi | |
ac1cb8d3 VS |
28009 | rm -f conftest.err conftest.$ac_objext \ |
28010 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28011 | fi |
28012 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28013 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28014 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28015 | cat >>confdefs.h <<_ACEOF | |
28016 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28017 | _ACEOF | |
28018 | ||
28019 | fi | |
28020 | done | |
28021 | ||
28022 | fi | |
28023 | ||
28024 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
28025 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" | |
28026 | ||
28027 | AFMINSTALL=afminstall | |
28028 | TOOLKIT=GTK | |
28029 | GUIDIST=GTK_DIST | |
28030 | ||
28031 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 | |
28032 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
28033 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
28034 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28035 | else | |
28036 | ac_check_lib_save_LIBS=$LIBS | |
28037 | LIBS="-lgdk $LIBS" | |
28038 | cat >conftest.$ac_ext <<_ACEOF | |
28039 | /* confdefs.h. */ | |
28040 | _ACEOF | |
28041 | cat confdefs.h >>conftest.$ac_ext | |
28042 | cat >>conftest.$ac_ext <<_ACEOF | |
28043 | /* end confdefs.h. */ | |
28044 | ||
28045 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28046 | #ifdef __cplusplus | |
28047 | extern "C" | |
28048 | #endif | |
28049 | /* We use char because int might match the return type of a gcc2 | |
28050 | builtin and then its argument prototype would still apply. */ | |
28051 | char gdk_im_open (); | |
28052 | int | |
28053 | main () | |
28054 | { | |
28055 | gdk_im_open (); | |
28056 | ; | |
28057 | return 0; | |
28058 | } | |
28059 | _ACEOF | |
28060 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28061 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28062 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28063 | ac_status=$? |
ac1cb8d3 VS |
28064 | grep -v '^ *+' conftest.er1 >conftest.err |
28065 | rm -f conftest.er1 | |
28066 | cat conftest.err >&5 | |
a848cd7e SC |
28067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28068 | (exit $ac_status); } && | |
d25774ab JS |
28069 | { ac_try='test -z "$ac_cxx_werror_flag" |
28070 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28072 | (eval $ac_try) 2>&5 | |
28073 | ac_status=$? | |
28074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28075 | (exit $ac_status); }; } && | |
28076 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28078 | (eval $ac_try) 2>&5 | |
28079 | ac_status=$? | |
28080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28081 | (exit $ac_status); }; }; then | |
28082 | ac_cv_lib_gdk_gdk_im_open=yes | |
28083 | else | |
28084 | echo "$as_me: failed program was:" >&5 | |
28085 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28086 | ||
28087 | ac_cv_lib_gdk_gdk_im_open=no | |
28088 | fi | |
ac1cb8d3 VS |
28089 | rm -f conftest.err conftest.$ac_objext \ |
28090 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28091 | LIBS=$ac_check_lib_save_LIBS |
28092 | fi | |
28093 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
28094 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
28095 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
28096 | cat >>confdefs.h <<\_ACEOF | |
28097 | #define HAVE_XIM 1 | |
28098 | _ACEOF | |
28099 | ||
28100 | fi | |
28101 | ||
28102 | ||
28103 | ||
28104 | if test "$wxUSE_GPE" = "yes"; then | |
28105 | echo "$as_me:$LINENO: checking for gpewidget library" >&5 | |
28106 | echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6 | |
28107 | ||
0ad5d837 VZ |
28108 | ac_find_libraries= |
28109 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 28110 | do |
3eca31dc | 28111 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
28112 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then |
28113 | ac_find_libraries=$ac_dir | |
28114 | break 2 | |
28115 | fi | |
28116 | done | |
28117 | done | |
28118 | ||
28119 | if test "$ac_find_libraries" != "" ; then | |
28120 | ||
0ad5d837 | 28121 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
28122 | ac_path_to_link="" |
28123 | else | |
0ad5d837 VZ |
28124 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
28125 | result=$? | |
28126 | if test $result = 0; then | |
28127 | ac_path_to_link="" | |
28128 | else | |
28129 | ac_path_to_link=" -L$ac_find_libraries" | |
28130 | fi | |
a848cd7e SC |
28131 | fi |
28132 | ||
28133 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
28134 | WXGPE=1 | |
0ad5d837 VZ |
28135 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 |
28136 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e SC |
28137 | else |
28138 | echo "$as_me:$LINENO: result: not found" >&5 | |
28139 | echo "${ECHO_T}not found" >&6 | |
28140 | fi | |
28141 | ||
28142 | fi | |
28143 | fi | |
28144 | ||
28145 | if test "$wxUSE_MGL" = 1; then | |
28146 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 | |
28147 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
28148 | if test "x$MGL_ROOT" = x ; then | |
28149 | echo "$as_me:$LINENO: result: not found" >&5 | |
28150 | echo "${ECHO_T}not found" >&6 | |
28151 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
28152 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
28153 | { (exit 1); exit 1; }; } | |
28154 | else | |
28155 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 | |
28156 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
28157 | fi | |
28158 | ||
28159 | echo "$as_me:$LINENO: checking for libmgl location" >&5 | |
28160 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
28161 | case "${host}" in | |
28162 | *-*-linux* ) | |
28163 | if test "x$wxUSE_SHARED" = xyes ; then | |
28164 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
28165 | else | |
28166 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" | |
28167 | fi | |
28168 | ;; | |
28169 | *-pc-msdosdjgpp ) | |
28170 | mgl_os_candidates="dos32/dj2" | |
28171 | ;; | |
28172 | *) | |
28173 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 | |
28174 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
28175 | { (exit 1); exit 1; }; } | |
28176 | esac | |
28177 | ||
28178 | mgl_lib_type="" | |
28179 | mgl_os="" | |
28180 | ||
28181 | for mgl_os_i in $mgl_os_candidates ; do | |
28182 | if test "x$mgl_os" = x ; then | |
28183 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
28184 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
28185 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
28186 | mgl_lib_type=debug | |
28187 | mgl_os=$mgl_os_i | |
28188 | fi | |
28189 | fi | |
28190 | if test "x$mgl_lib_type" = x ; then | |
28191 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
28192 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
28193 | mgl_lib_type=release | |
28194 | mgl_os=$mgl_os_i | |
28195 | fi | |
28196 | fi | |
28197 | fi | |
28198 | done | |
28199 | ||
28200 | if test "x$mgl_os" = x ; then | |
28201 | echo "$as_me:$LINENO: result: not found" >&5 | |
28202 | echo "${ECHO_T}not found" >&6 | |
28203 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
28204 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
28205 | { (exit 1); exit 1; }; } | |
28206 | fi | |
28207 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 | |
28208 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
28209 | ||
28210 | wxUSE_UNIVERSAL="yes" | |
28211 | ||
28212 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
28213 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
28214 | ||
28215 | AFMINSTALL=afminstall | |
28216 | TOOLKIT=MGL | |
28217 | GUIDIST=MGL_DIST | |
28218 | fi | |
28219 | ||
28220 | if test "$wxUSE_MICROWIN" = 1; then | |
28221 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 | |
28222 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
28223 | if test "x$MICROWINDOWS" = x ; then | |
28224 | echo "$as_me:$LINENO: result: not found" >&5 | |
28225 | echo "${ECHO_T}not found" >&6 | |
28226 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
28227 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
28228 | { (exit 1); exit 1; }; } | |
28229 | else | |
28230 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 | |
28231 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
28232 | fi | |
28233 | ||
28234 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
28235 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 | |
28236 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
28237 | else | |
28238 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 | |
28239 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
28240 | { (exit 1); exit 1; }; } | |
28241 | fi | |
28242 | ||
28243 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
28244 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
28245 | ||
28246 | wxUSE_UNIVERSAL="yes" | |
28247 | ||
28248 | AFMINSTALL=afminstall | |
28249 | TOOLKIT=MICROWIN | |
28250 | GUIDIST=MICROWIN_DIST | |
28251 | ||
28252 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
28253 | fi | |
28254 | ||
74b84332 | 28255 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
d25774ab | 28256 | echo "$as_me:$LINENO: checking for X" >&5 |
a848cd7e SC |
28257 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
28258 | ||
28259 | ||
28260 | # Check whether --with-x or --without-x was given. | |
28261 | if test "${with_x+set}" = set; then | |
28262 | withval="$with_x" | |
28263 | ||
28264 | fi; | |
28265 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
28266 | if test "x$with_x" = xno; then | |
28267 | # The user explicitly disabled X. | |
28268 | have_x=disabled | |
28269 | else | |
28270 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
28271 | # Both variables are already set. | |
28272 | have_x=yes | |
28273 | else | |
28274 | if test "${ac_cv_have_x+set}" = set; then | |
28275 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28276 | else | |
28277 | # One or both of the vars are not set, and there is no cached value. | |
28278 | ac_x_includes=no ac_x_libraries=no | |
28279 | rm -fr conftest.dir | |
28280 | if mkdir conftest.dir; then | |
28281 | cd conftest.dir | |
28282 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
28283 | cat >Imakefile <<'_ACEOF' | |
28284 | acfindx: | |
28285 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
28286 | _ACEOF | |
28287 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
28288 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
28289 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
28290 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
28291 | for ac_extension in a so sl; do | |
28292 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
ac1cb8d3 VS |
28293 | test -f $ac_im_libdir/libX11.$ac_extension; then |
28294 | ac_im_usrlibdir=$ac_im_libdir; break | |
a848cd7e SC |
28295 | fi |
28296 | done | |
28297 | # Screen out bogus values from the imake configuration. They are | |
28298 | # bogus both because they are the default anyway, and because | |
28299 | # using them would break gcc on systems where it needs fixed includes. | |
28300 | case $ac_im_incroot in | |
28301 | /usr/include) ;; | |
28302 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
28303 | esac | |
28304 | case $ac_im_usrlibdir in | |
28305 | /usr/lib | /lib) ;; | |
28306 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
28307 | esac | |
28308 | fi | |
28309 | cd .. | |
28310 | rm -fr conftest.dir | |
28311 | fi | |
28312 | ||
28313 | # Standard set of common directories for X headers. | |
28314 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
28315 | ac_x_header_dirs=' | |
28316 | /usr/X11/include | |
28317 | /usr/X11R6/include | |
28318 | /usr/X11R5/include | |
28319 | /usr/X11R4/include | |
28320 | ||
28321 | /usr/include/X11 | |
28322 | /usr/include/X11R6 | |
28323 | /usr/include/X11R5 | |
28324 | /usr/include/X11R4 | |
28325 | ||
28326 | /usr/local/X11/include | |
28327 | /usr/local/X11R6/include | |
28328 | /usr/local/X11R5/include | |
28329 | /usr/local/X11R4/include | |
28330 | ||
28331 | /usr/local/include/X11 | |
28332 | /usr/local/include/X11R6 | |
28333 | /usr/local/include/X11R5 | |
28334 | /usr/local/include/X11R4 | |
28335 | ||
28336 | /usr/X386/include | |
28337 | /usr/x386/include | |
28338 | /usr/XFree86/include/X11 | |
28339 | ||
28340 | /usr/include | |
28341 | /usr/local/include | |
28342 | /usr/unsupported/include | |
28343 | /usr/athena/include | |
28344 | /usr/local/x11r5/include | |
28345 | /usr/lpp/Xamples/include | |
28346 | ||
28347 | /usr/openwin/include | |
28348 | /usr/openwin/share/include' | |
28349 | ||
28350 | if test "$ac_x_includes" = no; then | |
d25774ab | 28351 | # Guess where to find include files, by looking for Intrinsic.h. |
a848cd7e SC |
28352 | # First, try using that file with no special directory specified. |
28353 | cat >conftest.$ac_ext <<_ACEOF | |
28354 | /* confdefs.h. */ | |
28355 | _ACEOF | |
28356 | cat confdefs.h >>conftest.$ac_ext | |
28357 | cat >>conftest.$ac_ext <<_ACEOF | |
28358 | /* end confdefs.h. */ | |
d25774ab | 28359 | #include <X11/Intrinsic.h> |
a848cd7e SC |
28360 | _ACEOF |
28361 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
28362 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
28363 | ac_status=$? | |
28364 | grep -v '^ *+' conftest.er1 >conftest.err | |
28365 | rm -f conftest.er1 | |
28366 | cat conftest.err >&5 | |
28367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28368 | (exit $ac_status); } >/dev/null; then | |
28369 | if test -s conftest.err; then | |
5d7b7554 VZ |
28370 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
28371 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
28372 | else |
28373 | ac_cpp_err= | |
28374 | fi | |
28375 | else | |
28376 | ac_cpp_err=yes | |
28377 | fi | |
28378 | if test -z "$ac_cpp_err"; then | |
28379 | # We can compile using X headers with no special include directory. | |
28380 | ac_x_includes= | |
28381 | else | |
28382 | echo "$as_me: failed program was:" >&5 | |
28383 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28384 | ||
28385 | for ac_dir in $ac_x_header_dirs; do | |
d25774ab | 28386 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
a848cd7e SC |
28387 | ac_x_includes=$ac_dir |
28388 | break | |
28389 | fi | |
28390 | done | |
28391 | fi | |
28392 | rm -f conftest.err conftest.$ac_ext | |
28393 | fi # $ac_x_includes = no | |
28394 | ||
28395 | if test "$ac_x_libraries" = no; then | |
28396 | # Check for the libraries. | |
28397 | # See if we find them without any special options. | |
28398 | # Don't add to $LIBS permanently. | |
28399 | ac_save_LIBS=$LIBS | |
d25774ab | 28400 | LIBS="-lXt $LIBS" |
a848cd7e SC |
28401 | cat >conftest.$ac_ext <<_ACEOF |
28402 | /* confdefs.h. */ | |
28403 | _ACEOF | |
28404 | cat confdefs.h >>conftest.$ac_ext | |
28405 | cat >>conftest.$ac_ext <<_ACEOF | |
28406 | /* end confdefs.h. */ | |
d25774ab | 28407 | #include <X11/Intrinsic.h> |
a848cd7e SC |
28408 | int |
28409 | main () | |
28410 | { | |
d25774ab | 28411 | XtMalloc (0) |
a848cd7e SC |
28412 | ; |
28413 | return 0; | |
28414 | } | |
28415 | _ACEOF | |
28416 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28417 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28418 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28419 | ac_status=$? |
ac1cb8d3 VS |
28420 | grep -v '^ *+' conftest.er1 >conftest.err |
28421 | rm -f conftest.er1 | |
28422 | cat conftest.err >&5 | |
a848cd7e SC |
28423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28424 | (exit $ac_status); } && | |
d25774ab JS |
28425 | { ac_try='test -z "$ac_cxx_werror_flag" |
28426 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28428 | (eval $ac_try) 2>&5 | |
28429 | ac_status=$? | |
28430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28431 | (exit $ac_status); }; } && | |
28432 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28434 | (eval $ac_try) 2>&5 | |
28435 | ac_status=$? | |
28436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28437 | (exit $ac_status); }; }; then | |
28438 | LIBS=$ac_save_LIBS | |
28439 | # We can link X programs with no special library path. | |
28440 | ac_x_libraries= | |
28441 | else | |
28442 | echo "$as_me: failed program was:" >&5 | |
28443 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28444 | ||
28445 | LIBS=$ac_save_LIBS | |
28446 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
28447 | do | |
28448 | # Don't even attempt the hair of trying to link an X program! | |
28449 | for ac_extension in a so sl; do | |
d25774ab | 28450 | if test -r $ac_dir/libXt.$ac_extension; then |
a848cd7e SC |
28451 | ac_x_libraries=$ac_dir |
28452 | break 2 | |
28453 | fi | |
28454 | done | |
28455 | done | |
28456 | fi | |
ac1cb8d3 VS |
28457 | rm -f conftest.err conftest.$ac_objext \ |
28458 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28459 | fi # $ac_x_libraries = no |
28460 | ||
28461 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
28462 | # Didn't find X anywhere. Cache the known absence of X. | |
28463 | ac_cv_have_x="have_x=no" | |
28464 | else | |
28465 | # Record where we found X for the cache. | |
28466 | ac_cv_have_x="have_x=yes \ | |
ac1cb8d3 | 28467 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
a848cd7e SC |
28468 | fi |
28469 | fi | |
28470 | ||
28471 | fi | |
28472 | eval "$ac_cv_have_x" | |
28473 | fi # $with_x != no | |
28474 | ||
28475 | if test "$have_x" != yes; then | |
28476 | echo "$as_me:$LINENO: result: $have_x" >&5 | |
28477 | echo "${ECHO_T}$have_x" >&6 | |
28478 | no_x=yes | |
28479 | else | |
28480 | # If each of the values was on the command line, it overrides each guess. | |
28481 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
28482 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
28483 | # Update the cache value to reflect the command line values. | |
28484 | ac_cv_have_x="have_x=yes \ | |
28485 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
d25774ab JS |
28486 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
28487 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
a848cd7e SC |
28488 | fi |
28489 | ||
28490 | if test "$no_x" = yes; then | |
28491 | # Not all programs may use this symbol, but it does not hurt to define it. | |
28492 | ||
28493 | cat >>confdefs.h <<\_ACEOF | |
28494 | #define X_DISPLAY_MISSING 1 | |
28495 | _ACEOF | |
28496 | ||
28497 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
28498 | else | |
28499 | if test -n "$x_includes"; then | |
28500 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
28501 | fi | |
28502 | ||
28503 | # It would also be nice to do this for all -L options, not just this one. | |
28504 | if test -n "$x_libraries"; then | |
28505 | X_LIBS="$X_LIBS -L$x_libraries" | |
28506 | # For Solaris; some versions of Sun CC require a space after -R and | |
28507 | # others require no space. Words are not sufficient . . . . | |
28508 | case `(uname -sr) 2>/dev/null` in | |
28509 | "SunOS 5"*) | |
28510 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
28511 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
28512 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
28513 | cat >conftest.$ac_ext <<_ACEOF | |
28514 | /* confdefs.h. */ | |
28515 | _ACEOF | |
28516 | cat confdefs.h >>conftest.$ac_ext | |
28517 | cat >>conftest.$ac_ext <<_ACEOF | |
28518 | /* end confdefs.h. */ | |
28519 | ||
28520 | int | |
28521 | main () | |
28522 | { | |
28523 | ||
28524 | ; | |
28525 | return 0; | |
28526 | } | |
28527 | _ACEOF | |
28528 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28529 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28530 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28531 | ac_status=$? |
ac1cb8d3 VS |
28532 | grep -v '^ *+' conftest.er1 >conftest.err |
28533 | rm -f conftest.er1 | |
28534 | cat conftest.err >&5 | |
a848cd7e SC |
28535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28536 | (exit $ac_status); } && | |
d25774ab JS |
28537 | { ac_try='test -z "$ac_cxx_werror_flag" |
28538 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28540 | (eval $ac_try) 2>&5 | |
28541 | ac_status=$? | |
28542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28543 | (exit $ac_status); }; } && | |
28544 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28546 | (eval $ac_try) 2>&5 | |
28547 | ac_status=$? | |
28548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28549 | (exit $ac_status); }; }; then | |
28550 | ac_R_nospace=yes | |
28551 | else | |
28552 | echo "$as_me: failed program was:" >&5 | |
28553 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28554 | ||
28555 | ac_R_nospace=no | |
28556 | fi | |
ac1cb8d3 VS |
28557 | rm -f conftest.err conftest.$ac_objext \ |
28558 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28559 | if test $ac_R_nospace = yes; then |
28560 | echo "$as_me:$LINENO: result: no" >&5 | |
28561 | echo "${ECHO_T}no" >&6 | |
28562 | X_LIBS="$X_LIBS -R$x_libraries" | |
28563 | else | |
28564 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
28565 | cat >conftest.$ac_ext <<_ACEOF | |
28566 | /* confdefs.h. */ | |
28567 | _ACEOF | |
28568 | cat confdefs.h >>conftest.$ac_ext | |
28569 | cat >>conftest.$ac_ext <<_ACEOF | |
28570 | /* end confdefs.h. */ | |
28571 | ||
28572 | int | |
28573 | main () | |
28574 | { | |
28575 | ||
28576 | ; | |
28577 | return 0; | |
28578 | } | |
28579 | _ACEOF | |
28580 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28581 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28582 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28583 | ac_status=$? |
ac1cb8d3 VS |
28584 | grep -v '^ *+' conftest.er1 >conftest.err |
28585 | rm -f conftest.er1 | |
28586 | cat conftest.err >&5 | |
a848cd7e SC |
28587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28588 | (exit $ac_status); } && | |
d25774ab JS |
28589 | { ac_try='test -z "$ac_cxx_werror_flag" |
28590 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28592 | (eval $ac_try) 2>&5 | |
28593 | ac_status=$? | |
28594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28595 | (exit $ac_status); }; } && | |
28596 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28598 | (eval $ac_try) 2>&5 | |
28599 | ac_status=$? | |
28600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28601 | (exit $ac_status); }; }; then | |
28602 | ac_R_space=yes | |
28603 | else | |
28604 | echo "$as_me: failed program was:" >&5 | |
28605 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28606 | ||
28607 | ac_R_space=no | |
28608 | fi | |
ac1cb8d3 VS |
28609 | rm -f conftest.err conftest.$ac_objext \ |
28610 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28611 | if test $ac_R_space = yes; then |
28612 | echo "$as_me:$LINENO: result: yes" >&5 | |
28613 | echo "${ECHO_T}yes" >&6 | |
28614 | X_LIBS="$X_LIBS -R $x_libraries" | |
28615 | else | |
28616 | echo "$as_me:$LINENO: result: neither works" >&5 | |
28617 | echo "${ECHO_T}neither works" >&6 | |
28618 | fi | |
28619 | fi | |
28620 | LIBS=$ac_xsave_LIBS | |
28621 | esac | |
28622 | fi | |
28623 | ||
28624 | # Check for system-dependent libraries X programs must link with. | |
28625 | # Do this before checking for the system-independent R6 libraries | |
28626 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
28627 | ||
28628 | if test "$ISC" = yes; then | |
28629 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
28630 | else | |
28631 | # Martyn Johnson says this is needed for Ultrix, if the X | |
28632 | # libraries were built with DECnet support. And Karl Berry says | |
28633 | # the Alpha needs dnet_stub (dnet does not exist). | |
28634 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
28635 | cat >conftest.$ac_ext <<_ACEOF | |
28636 | /* confdefs.h. */ | |
28637 | _ACEOF | |
28638 | cat confdefs.h >>conftest.$ac_ext | |
28639 | cat >>conftest.$ac_ext <<_ACEOF | |
28640 | /* end confdefs.h. */ | |
28641 | ||
28642 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28643 | #ifdef __cplusplus | |
28644 | extern "C" | |
28645 | #endif | |
28646 | /* We use char because int might match the return type of a gcc2 | |
28647 | builtin and then its argument prototype would still apply. */ | |
28648 | char XOpenDisplay (); | |
28649 | int | |
28650 | main () | |
28651 | { | |
28652 | XOpenDisplay (); | |
28653 | ; | |
28654 | return 0; | |
28655 | } | |
28656 | _ACEOF | |
28657 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28658 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28659 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28660 | ac_status=$? |
ac1cb8d3 VS |
28661 | grep -v '^ *+' conftest.er1 >conftest.err |
28662 | rm -f conftest.er1 | |
28663 | cat conftest.err >&5 | |
a848cd7e SC |
28664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28665 | (exit $ac_status); } && | |
d25774ab JS |
28666 | { ac_try='test -z "$ac_cxx_werror_flag" |
28667 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28669 | (eval $ac_try) 2>&5 | |
28670 | ac_status=$? | |
28671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28672 | (exit $ac_status); }; } && | |
28673 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28675 | (eval $ac_try) 2>&5 | |
28676 | ac_status=$? | |
28677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28678 | (exit $ac_status); }; }; then | |
28679 | : | |
28680 | else | |
28681 | echo "$as_me: failed program was:" >&5 | |
28682 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28683 | ||
28684 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
28685 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
28686 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
28687 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28688 | else | |
28689 | ac_check_lib_save_LIBS=$LIBS | |
28690 | LIBS="-ldnet $LIBS" | |
28691 | cat >conftest.$ac_ext <<_ACEOF | |
28692 | /* confdefs.h. */ | |
28693 | _ACEOF | |
28694 | cat confdefs.h >>conftest.$ac_ext | |
28695 | cat >>conftest.$ac_ext <<_ACEOF | |
28696 | /* end confdefs.h. */ | |
28697 | ||
28698 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28699 | #ifdef __cplusplus | |
28700 | extern "C" | |
28701 | #endif | |
28702 | /* We use char because int might match the return type of a gcc2 | |
28703 | builtin and then its argument prototype would still apply. */ | |
28704 | char dnet_ntoa (); | |
28705 | int | |
28706 | main () | |
28707 | { | |
28708 | dnet_ntoa (); | |
28709 | ; | |
28710 | return 0; | |
28711 | } | |
28712 | _ACEOF | |
28713 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28714 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28715 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28716 | ac_status=$? |
ac1cb8d3 VS |
28717 | grep -v '^ *+' conftest.er1 >conftest.err |
28718 | rm -f conftest.er1 | |
28719 | cat conftest.err >&5 | |
a848cd7e SC |
28720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28721 | (exit $ac_status); } && | |
d25774ab JS |
28722 | { ac_try='test -z "$ac_cxx_werror_flag" |
28723 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28725 | (eval $ac_try) 2>&5 | |
28726 | ac_status=$? | |
28727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28728 | (exit $ac_status); }; } && | |
28729 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28731 | (eval $ac_try) 2>&5 | |
28732 | ac_status=$? | |
28733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28734 | (exit $ac_status); }; }; then | |
28735 | ac_cv_lib_dnet_dnet_ntoa=yes | |
28736 | else | |
28737 | echo "$as_me: failed program was:" >&5 | |
28738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28739 | ||
28740 | ac_cv_lib_dnet_dnet_ntoa=no | |
28741 | fi | |
ac1cb8d3 VS |
28742 | rm -f conftest.err conftest.$ac_objext \ |
28743 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28744 | LIBS=$ac_check_lib_save_LIBS |
28745 | fi | |
28746 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
28747 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
28748 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
28749 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
28750 | fi | |
28751 | ||
28752 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
28753 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
28754 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
28755 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
28756 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28757 | else | |
28758 | ac_check_lib_save_LIBS=$LIBS | |
28759 | LIBS="-ldnet_stub $LIBS" | |
28760 | cat >conftest.$ac_ext <<_ACEOF | |
28761 | /* confdefs.h. */ | |
28762 | _ACEOF | |
28763 | cat confdefs.h >>conftest.$ac_ext | |
28764 | cat >>conftest.$ac_ext <<_ACEOF | |
28765 | /* end confdefs.h. */ | |
28766 | ||
28767 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28768 | #ifdef __cplusplus | |
28769 | extern "C" | |
28770 | #endif | |
28771 | /* We use char because int might match the return type of a gcc2 | |
28772 | builtin and then its argument prototype would still apply. */ | |
28773 | char dnet_ntoa (); | |
28774 | int | |
28775 | main () | |
28776 | { | |
28777 | dnet_ntoa (); | |
28778 | ; | |
28779 | return 0; | |
28780 | } | |
28781 | _ACEOF | |
28782 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28783 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28784 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28785 | ac_status=$? |
ac1cb8d3 VS |
28786 | grep -v '^ *+' conftest.er1 >conftest.err |
28787 | rm -f conftest.er1 | |
28788 | cat conftest.err >&5 | |
a848cd7e SC |
28789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28790 | (exit $ac_status); } && | |
d25774ab JS |
28791 | { ac_try='test -z "$ac_cxx_werror_flag" |
28792 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28794 | (eval $ac_try) 2>&5 | |
28795 | ac_status=$? | |
28796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28797 | (exit $ac_status); }; } && | |
28798 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28800 | (eval $ac_try) 2>&5 | |
28801 | ac_status=$? | |
28802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28803 | (exit $ac_status); }; }; then | |
28804 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
28805 | else | |
28806 | echo "$as_me: failed program was:" >&5 | |
28807 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28808 | ||
28809 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
28810 | fi | |
ac1cb8d3 VS |
28811 | rm -f conftest.err conftest.$ac_objext \ |
28812 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28813 | LIBS=$ac_check_lib_save_LIBS |
28814 | fi | |
28815 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
28816 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
28817 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
28818 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
28819 | fi | |
28820 | ||
28821 | fi | |
28822 | fi | |
ac1cb8d3 VS |
28823 | rm -f conftest.err conftest.$ac_objext \ |
28824 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28825 | LIBS="$ac_xsave_LIBS" |
28826 | ||
28827 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
28828 | # to get the SysV transport functions. | |
28829 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
28830 | # needs -lnsl. | |
28831 | # The nsl library prevents programs from opening the X display | |
28832 | # on Irix 5.2, according to T.E. Dickey. | |
28833 | # The functions gethostbyname, getservbyname, and inet_addr are | |
28834 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
28835 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
28836 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
28837 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
28838 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28839 | else | |
28840 | cat >conftest.$ac_ext <<_ACEOF | |
28841 | /* confdefs.h. */ | |
28842 | _ACEOF | |
28843 | cat confdefs.h >>conftest.$ac_ext | |
28844 | cat >>conftest.$ac_ext <<_ACEOF | |
28845 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28846 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
28847 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28848 | #define gethostbyname innocuous_gethostbyname | |
28849 | ||
a848cd7e SC |
28850 | /* System header to define __stub macros and hopefully few prototypes, |
28851 | which can conflict with char gethostbyname (); below. | |
28852 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28853 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28854 | |
a848cd7e SC |
28855 | #ifdef __STDC__ |
28856 | # include <limits.h> | |
28857 | #else | |
28858 | # include <assert.h> | |
28859 | #endif | |
ac1cb8d3 VS |
28860 | |
28861 | #undef gethostbyname | |
28862 | ||
a848cd7e SC |
28863 | /* Override any gcc2 internal prototype to avoid an error. */ |
28864 | #ifdef __cplusplus | |
28865 | extern "C" | |
28866 | { | |
28867 | #endif | |
28868 | /* We use char because int might match the return type of a gcc2 | |
28869 | builtin and then its argument prototype would still apply. */ | |
28870 | char gethostbyname (); | |
28871 | /* The GNU C library defines this for functions which it implements | |
28872 | to always fail with ENOSYS. Some functions are actually named | |
28873 | something starting with __ and the normal name is an alias. */ | |
28874 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
28875 | choke me | |
28876 | #else | |
28877 | char (*f) () = gethostbyname; | |
28878 | #endif | |
28879 | #ifdef __cplusplus | |
28880 | } | |
28881 | #endif | |
28882 | ||
28883 | int | |
28884 | main () | |
28885 | { | |
28886 | return f != gethostbyname; | |
28887 | ; | |
28888 | return 0; | |
28889 | } | |
28890 | _ACEOF | |
28891 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28892 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28893 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28894 | ac_status=$? |
ac1cb8d3 VS |
28895 | grep -v '^ *+' conftest.er1 >conftest.err |
28896 | rm -f conftest.er1 | |
28897 | cat conftest.err >&5 | |
a848cd7e SC |
28898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28899 | (exit $ac_status); } && | |
d25774ab JS |
28900 | { ac_try='test -z "$ac_cxx_werror_flag" |
28901 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28903 | (eval $ac_try) 2>&5 | |
28904 | ac_status=$? | |
28905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28906 | (exit $ac_status); }; } && | |
28907 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28909 | (eval $ac_try) 2>&5 | |
28910 | ac_status=$? | |
28911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28912 | (exit $ac_status); }; }; then | |
28913 | ac_cv_func_gethostbyname=yes | |
28914 | else | |
28915 | echo "$as_me: failed program was:" >&5 | |
28916 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28917 | ||
28918 | ac_cv_func_gethostbyname=no | |
28919 | fi | |
ac1cb8d3 VS |
28920 | rm -f conftest.err conftest.$ac_objext \ |
28921 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28922 | fi |
28923 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
28924 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
28925 | ||
28926 | if test $ac_cv_func_gethostbyname = no; then | |
28927 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
28928 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
28929 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
28930 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28931 | else | |
28932 | ac_check_lib_save_LIBS=$LIBS | |
28933 | LIBS="-lnsl $LIBS" | |
28934 | cat >conftest.$ac_ext <<_ACEOF | |
28935 | /* confdefs.h. */ | |
28936 | _ACEOF | |
28937 | cat confdefs.h >>conftest.$ac_ext | |
28938 | cat >>conftest.$ac_ext <<_ACEOF | |
28939 | /* end confdefs.h. */ | |
28940 | ||
28941 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28942 | #ifdef __cplusplus | |
28943 | extern "C" | |
28944 | #endif | |
28945 | /* We use char because int might match the return type of a gcc2 | |
28946 | builtin and then its argument prototype would still apply. */ | |
28947 | char gethostbyname (); | |
28948 | int | |
28949 | main () | |
28950 | { | |
28951 | gethostbyname (); | |
28952 | ; | |
28953 | return 0; | |
28954 | } | |
28955 | _ACEOF | |
28956 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28957 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 VS |
28958 | (eval $ac_link) 2>conftest.er1 |
28959 | ac_status=$? | |
28960 | grep -v '^ *+' conftest.er1 >conftest.err | |
28961 | rm -f conftest.er1 | |
28962 | cat conftest.err >&5 | |
28963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28964 | (exit $ac_status); } && | |
d25774ab JS |
28965 | { ac_try='test -z "$ac_cxx_werror_flag" |
28966 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28968 | (eval $ac_try) 2>&5 | |
28969 | ac_status=$? | |
28970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28971 | (exit $ac_status); }; } && | |
28972 | { ac_try='test -s conftest$ac_exeext' | |
28973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28974 | (eval $ac_try) 2>&5 | |
28975 | ac_status=$? | |
28976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28977 | (exit $ac_status); }; }; then | |
28978 | ac_cv_lib_nsl_gethostbyname=yes | |
28979 | else | |
28980 | echo "$as_me: failed program was:" >&5 | |
28981 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28982 | ||
28983 | ac_cv_lib_nsl_gethostbyname=no | |
28984 | fi | |
28985 | rm -f conftest.err conftest.$ac_objext \ | |
28986 | conftest$ac_exeext conftest.$ac_ext | |
28987 | LIBS=$ac_check_lib_save_LIBS | |
28988 | fi | |
28989 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
28990 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
28991 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
28992 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
28993 | fi | |
28994 | ||
28995 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
28996 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
28997 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
28998 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
28999 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29000 | else | |
29001 | ac_check_lib_save_LIBS=$LIBS | |
29002 | LIBS="-lbsd $LIBS" | |
29003 | cat >conftest.$ac_ext <<_ACEOF | |
29004 | /* confdefs.h. */ | |
29005 | _ACEOF | |
29006 | cat confdefs.h >>conftest.$ac_ext | |
29007 | cat >>conftest.$ac_ext <<_ACEOF | |
29008 | /* end confdefs.h. */ | |
29009 | ||
29010 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29011 | #ifdef __cplusplus | |
29012 | extern "C" | |
29013 | #endif | |
29014 | /* We use char because int might match the return type of a gcc2 | |
29015 | builtin and then its argument prototype would still apply. */ | |
29016 | char gethostbyname (); | |
29017 | int | |
29018 | main () | |
29019 | { | |
29020 | gethostbyname (); | |
29021 | ; | |
29022 | return 0; | |
29023 | } | |
29024 | _ACEOF | |
29025 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29026 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29027 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 29028 | ac_status=$? |
ac1cb8d3 VS |
29029 | grep -v '^ *+' conftest.er1 >conftest.err |
29030 | rm -f conftest.er1 | |
29031 | cat conftest.err >&5 | |
a848cd7e SC |
29032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29033 | (exit $ac_status); } && | |
d25774ab JS |
29034 | { ac_try='test -z "$ac_cxx_werror_flag" |
29035 | || test ! -s conftest.err' | |
a848cd7e SC |
29036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29037 | (eval $ac_try) 2>&5 | |
29038 | ac_status=$? | |
29039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ac1cb8d3 VS |
29040 | (exit $ac_status); }; } && |
29041 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29043 | (eval $ac_try) 2>&5 | |
29044 | ac_status=$? | |
29045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29046 | (exit $ac_status); }; }; then | |
29047 | ac_cv_lib_bsd_gethostbyname=yes | |
29048 | else | |
29049 | echo "$as_me: failed program was:" >&5 | |
29050 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29051 | ||
29052 | ac_cv_lib_bsd_gethostbyname=no | |
29053 | fi | |
ac1cb8d3 VS |
29054 | rm -f conftest.err conftest.$ac_objext \ |
29055 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29056 | LIBS=$ac_check_lib_save_LIBS |
29057 | fi | |
29058 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
29059 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
29060 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
29061 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
29062 | fi | |
29063 | ||
29064 | fi | |
29065 | fi | |
29066 | ||
29067 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
29068 | # socket/setsockopt and other routines are undefined under SCO ODT | |
29069 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
29070 | # on later versions), says Simon Leinen: it contains gethostby* | |
29071 | # variants that don't use the name server (or something). -lsocket | |
29072 | # must be given before -lnsl if both are needed. We assume that | |
29073 | # if connect needs -lnsl, so does gethostbyname. | |
29074 | echo "$as_me:$LINENO: checking for connect" >&5 | |
29075 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
29076 | if test "${ac_cv_func_connect+set}" = set; then | |
29077 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29078 | else | |
29079 | cat >conftest.$ac_ext <<_ACEOF | |
29080 | /* confdefs.h. */ | |
29081 | _ACEOF | |
29082 | cat confdefs.h >>conftest.$ac_ext | |
29083 | cat >>conftest.$ac_ext <<_ACEOF | |
29084 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29085 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
29086 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29087 | #define connect innocuous_connect | |
29088 | ||
a848cd7e SC |
29089 | /* System header to define __stub macros and hopefully few prototypes, |
29090 | which can conflict with char connect (); below. | |
29091 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29092 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29093 | |
a848cd7e SC |
29094 | #ifdef __STDC__ |
29095 | # include <limits.h> | |
29096 | #else | |
29097 | # include <assert.h> | |
29098 | #endif | |
ac1cb8d3 VS |
29099 | |
29100 | #undef connect | |
29101 | ||
a848cd7e SC |
29102 | /* Override any gcc2 internal prototype to avoid an error. */ |
29103 | #ifdef __cplusplus | |
29104 | extern "C" | |
29105 | { | |
29106 | #endif | |
29107 | /* We use char because int might match the return type of a gcc2 | |
29108 | builtin and then its argument prototype would still apply. */ | |
29109 | char connect (); | |
29110 | /* The GNU C library defines this for functions which it implements | |
29111 | to always fail with ENOSYS. Some functions are actually named | |
29112 | something starting with __ and the normal name is an alias. */ | |
29113 | #if defined (__stub_connect) || defined (__stub___connect) | |
29114 | choke me | |
29115 | #else | |
29116 | char (*f) () = connect; | |
29117 | #endif | |
29118 | #ifdef __cplusplus | |
29119 | } | |
29120 | #endif | |
29121 | ||
29122 | int | |
29123 | main () | |
29124 | { | |
29125 | return f != connect; | |
29126 | ; | |
29127 | return 0; | |
29128 | } | |
29129 | _ACEOF | |
29130 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29131 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29132 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29133 | ac_status=$? |
ac1cb8d3 VS |
29134 | grep -v '^ *+' conftest.er1 >conftest.err |
29135 | rm -f conftest.er1 | |
29136 | cat conftest.err >&5 | |
a848cd7e SC |
29137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29138 | (exit $ac_status); } && | |
d25774ab JS |
29139 | { ac_try='test -z "$ac_cxx_werror_flag" |
29140 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29142 | (eval $ac_try) 2>&5 | |
29143 | ac_status=$? | |
29144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29145 | (exit $ac_status); }; } && | |
29146 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29148 | (eval $ac_try) 2>&5 | |
29149 | ac_status=$? | |
29150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29151 | (exit $ac_status); }; }; then | |
29152 | ac_cv_func_connect=yes | |
29153 | else | |
29154 | echo "$as_me: failed program was:" >&5 | |
29155 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29156 | ||
29157 | ac_cv_func_connect=no | |
29158 | fi | |
ac1cb8d3 VS |
29159 | rm -f conftest.err conftest.$ac_objext \ |
29160 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29161 | fi |
29162 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
29163 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
29164 | ||
29165 | if test $ac_cv_func_connect = no; then | |
29166 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
29167 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
29168 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
29169 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29170 | else | |
29171 | ac_check_lib_save_LIBS=$LIBS | |
29172 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
29173 | cat >conftest.$ac_ext <<_ACEOF | |
29174 | /* confdefs.h. */ | |
29175 | _ACEOF | |
29176 | cat confdefs.h >>conftest.$ac_ext | |
29177 | cat >>conftest.$ac_ext <<_ACEOF | |
29178 | /* end confdefs.h. */ | |
29179 | ||
29180 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29181 | #ifdef __cplusplus | |
29182 | extern "C" | |
29183 | #endif | |
29184 | /* We use char because int might match the return type of a gcc2 | |
29185 | builtin and then its argument prototype would still apply. */ | |
29186 | char connect (); | |
29187 | int | |
29188 | main () | |
29189 | { | |
29190 | connect (); | |
29191 | ; | |
29192 | return 0; | |
29193 | } | |
29194 | _ACEOF | |
29195 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29196 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29197 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29198 | ac_status=$? |
ac1cb8d3 VS |
29199 | grep -v '^ *+' conftest.er1 >conftest.err |
29200 | rm -f conftest.er1 | |
29201 | cat conftest.err >&5 | |
a848cd7e SC |
29202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29203 | (exit $ac_status); } && | |
d25774ab JS |
29204 | { ac_try='test -z "$ac_cxx_werror_flag" |
29205 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29207 | (eval $ac_try) 2>&5 | |
29208 | ac_status=$? | |
29209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29210 | (exit $ac_status); }; } && | |
29211 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29213 | (eval $ac_try) 2>&5 | |
29214 | ac_status=$? | |
29215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29216 | (exit $ac_status); }; }; then | |
29217 | ac_cv_lib_socket_connect=yes | |
29218 | else | |
29219 | echo "$as_me: failed program was:" >&5 | |
29220 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29221 | ||
29222 | ac_cv_lib_socket_connect=no | |
29223 | fi | |
ac1cb8d3 VS |
29224 | rm -f conftest.err conftest.$ac_objext \ |
29225 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29226 | LIBS=$ac_check_lib_save_LIBS |
29227 | fi | |
29228 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
29229 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
29230 | if test $ac_cv_lib_socket_connect = yes; then | |
29231 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
29232 | fi | |
29233 | ||
29234 | fi | |
29235 | ||
29236 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
29237 | echo "$as_me:$LINENO: checking for remove" >&5 | |
29238 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
29239 | if test "${ac_cv_func_remove+set}" = set; then | |
29240 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29241 | else | |
29242 | cat >conftest.$ac_ext <<_ACEOF | |
29243 | /* confdefs.h. */ | |
29244 | _ACEOF | |
29245 | cat confdefs.h >>conftest.$ac_ext | |
29246 | cat >>conftest.$ac_ext <<_ACEOF | |
29247 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29248 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
29249 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29250 | #define remove innocuous_remove | |
29251 | ||
a848cd7e SC |
29252 | /* System header to define __stub macros and hopefully few prototypes, |
29253 | which can conflict with char remove (); below. | |
29254 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29255 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29256 | |
a848cd7e SC |
29257 | #ifdef __STDC__ |
29258 | # include <limits.h> | |
29259 | #else | |
29260 | # include <assert.h> | |
29261 | #endif | |
ac1cb8d3 VS |
29262 | |
29263 | #undef remove | |
29264 | ||
a848cd7e SC |
29265 | /* Override any gcc2 internal prototype to avoid an error. */ |
29266 | #ifdef __cplusplus | |
29267 | extern "C" | |
29268 | { | |
29269 | #endif | |
29270 | /* We use char because int might match the return type of a gcc2 | |
29271 | builtin and then its argument prototype would still apply. */ | |
29272 | char remove (); | |
29273 | /* The GNU C library defines this for functions which it implements | |
29274 | to always fail with ENOSYS. Some functions are actually named | |
29275 | something starting with __ and the normal name is an alias. */ | |
29276 | #if defined (__stub_remove) || defined (__stub___remove) | |
29277 | choke me | |
29278 | #else | |
29279 | char (*f) () = remove; | |
29280 | #endif | |
29281 | #ifdef __cplusplus | |
29282 | } | |
29283 | #endif | |
29284 | ||
29285 | int | |
29286 | main () | |
29287 | { | |
29288 | return f != remove; | |
29289 | ; | |
29290 | return 0; | |
29291 | } | |
29292 | _ACEOF | |
29293 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29294 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29295 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29296 | ac_status=$? |
ac1cb8d3 VS |
29297 | grep -v '^ *+' conftest.er1 >conftest.err |
29298 | rm -f conftest.er1 | |
29299 | cat conftest.err >&5 | |
a848cd7e SC |
29300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29301 | (exit $ac_status); } && | |
d25774ab JS |
29302 | { ac_try='test -z "$ac_cxx_werror_flag" |
29303 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29305 | (eval $ac_try) 2>&5 | |
29306 | ac_status=$? | |
29307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29308 | (exit $ac_status); }; } && | |
29309 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29311 | (eval $ac_try) 2>&5 | |
29312 | ac_status=$? | |
29313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29314 | (exit $ac_status); }; }; then | |
29315 | ac_cv_func_remove=yes | |
29316 | else | |
29317 | echo "$as_me: failed program was:" >&5 | |
29318 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29319 | ||
29320 | ac_cv_func_remove=no | |
29321 | fi | |
ac1cb8d3 VS |
29322 | rm -f conftest.err conftest.$ac_objext \ |
29323 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29324 | fi |
29325 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
29326 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
29327 | ||
29328 | if test $ac_cv_func_remove = no; then | |
29329 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
29330 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
29331 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
29332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29333 | else | |
29334 | ac_check_lib_save_LIBS=$LIBS | |
29335 | LIBS="-lposix $LIBS" | |
29336 | cat >conftest.$ac_ext <<_ACEOF | |
29337 | /* confdefs.h. */ | |
29338 | _ACEOF | |
29339 | cat confdefs.h >>conftest.$ac_ext | |
29340 | cat >>conftest.$ac_ext <<_ACEOF | |
29341 | /* end confdefs.h. */ | |
29342 | ||
29343 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29344 | #ifdef __cplusplus | |
29345 | extern "C" | |
29346 | #endif | |
29347 | /* We use char because int might match the return type of a gcc2 | |
29348 | builtin and then its argument prototype would still apply. */ | |
29349 | char remove (); | |
29350 | int | |
29351 | main () | |
29352 | { | |
29353 | remove (); | |
29354 | ; | |
29355 | return 0; | |
29356 | } | |
29357 | _ACEOF | |
29358 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29359 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29360 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29361 | ac_status=$? |
ac1cb8d3 VS |
29362 | grep -v '^ *+' conftest.er1 >conftest.err |
29363 | rm -f conftest.er1 | |
29364 | cat conftest.err >&5 | |
a848cd7e SC |
29365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29366 | (exit $ac_status); } && | |
d25774ab JS |
29367 | { ac_try='test -z "$ac_cxx_werror_flag" |
29368 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29370 | (eval $ac_try) 2>&5 | |
29371 | ac_status=$? | |
29372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29373 | (exit $ac_status); }; } && | |
29374 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29376 | (eval $ac_try) 2>&5 | |
29377 | ac_status=$? | |
29378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29379 | (exit $ac_status); }; }; then | |
29380 | ac_cv_lib_posix_remove=yes | |
29381 | else | |
29382 | echo "$as_me: failed program was:" >&5 | |
29383 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29384 | ||
29385 | ac_cv_lib_posix_remove=no | |
29386 | fi | |
ac1cb8d3 VS |
29387 | rm -f conftest.err conftest.$ac_objext \ |
29388 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29389 | LIBS=$ac_check_lib_save_LIBS |
29390 | fi | |
29391 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
29392 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
29393 | if test $ac_cv_lib_posix_remove = yes; then | |
29394 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
29395 | fi | |
29396 | ||
29397 | fi | |
29398 | ||
29399 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
29400 | echo "$as_me:$LINENO: checking for shmat" >&5 | |
29401 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
29402 | if test "${ac_cv_func_shmat+set}" = set; then | |
29403 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29404 | else | |
29405 | cat >conftest.$ac_ext <<_ACEOF | |
29406 | /* confdefs.h. */ | |
29407 | _ACEOF | |
29408 | cat confdefs.h >>conftest.$ac_ext | |
29409 | cat >>conftest.$ac_ext <<_ACEOF | |
29410 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
29411 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
29412 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29413 | #define shmat innocuous_shmat | |
29414 | ||
a848cd7e SC |
29415 | /* System header to define __stub macros and hopefully few prototypes, |
29416 | which can conflict with char shmat (); below. | |
29417 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29418 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 29419 | |
a848cd7e SC |
29420 | #ifdef __STDC__ |
29421 | # include <limits.h> | |
29422 | #else | |
29423 | # include <assert.h> | |
29424 | #endif | |
ac1cb8d3 VS |
29425 | |
29426 | #undef shmat | |
29427 | ||
a848cd7e SC |
29428 | /* Override any gcc2 internal prototype to avoid an error. */ |
29429 | #ifdef __cplusplus | |
29430 | extern "C" | |
29431 | { | |
29432 | #endif | |
29433 | /* We use char because int might match the return type of a gcc2 | |
29434 | builtin and then its argument prototype would still apply. */ | |
29435 | char shmat (); | |
29436 | /* The GNU C library defines this for functions which it implements | |
29437 | to always fail with ENOSYS. Some functions are actually named | |
29438 | something starting with __ and the normal name is an alias. */ | |
29439 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
29440 | choke me | |
29441 | #else | |
29442 | char (*f) () = shmat; | |
29443 | #endif | |
29444 | #ifdef __cplusplus | |
29445 | } | |
29446 | #endif | |
29447 | ||
29448 | int | |
29449 | main () | |
29450 | { | |
29451 | return f != shmat; | |
29452 | ; | |
29453 | return 0; | |
29454 | } | |
29455 | _ACEOF | |
29456 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29457 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29458 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29459 | ac_status=$? |
ac1cb8d3 VS |
29460 | grep -v '^ *+' conftest.er1 >conftest.err |
29461 | rm -f conftest.er1 | |
29462 | cat conftest.err >&5 | |
a848cd7e SC |
29463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29464 | (exit $ac_status); } && | |
d25774ab JS |
29465 | { ac_try='test -z "$ac_cxx_werror_flag" |
29466 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29468 | (eval $ac_try) 2>&5 | |
29469 | ac_status=$? | |
29470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29471 | (exit $ac_status); }; } && | |
29472 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29474 | (eval $ac_try) 2>&5 | |
29475 | ac_status=$? | |
29476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29477 | (exit $ac_status); }; }; then | |
29478 | ac_cv_func_shmat=yes | |
29479 | else | |
29480 | echo "$as_me: failed program was:" >&5 | |
29481 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29482 | ||
29483 | ac_cv_func_shmat=no | |
29484 | fi | |
ac1cb8d3 VS |
29485 | rm -f conftest.err conftest.$ac_objext \ |
29486 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29487 | fi |
29488 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
29489 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
29490 | ||
29491 | if test $ac_cv_func_shmat = no; then | |
29492 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
29493 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
29494 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
29495 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29496 | else | |
29497 | ac_check_lib_save_LIBS=$LIBS | |
29498 | LIBS="-lipc $LIBS" | |
29499 | cat >conftest.$ac_ext <<_ACEOF | |
29500 | /* confdefs.h. */ | |
29501 | _ACEOF | |
29502 | cat confdefs.h >>conftest.$ac_ext | |
29503 | cat >>conftest.$ac_ext <<_ACEOF | |
29504 | /* end confdefs.h. */ | |
29505 | ||
29506 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29507 | #ifdef __cplusplus | |
29508 | extern "C" | |
29509 | #endif | |
29510 | /* We use char because int might match the return type of a gcc2 | |
29511 | builtin and then its argument prototype would still apply. */ | |
29512 | char shmat (); | |
29513 | int | |
29514 | main () | |
29515 | { | |
29516 | shmat (); | |
29517 | ; | |
29518 | return 0; | |
29519 | } | |
29520 | _ACEOF | |
29521 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29522 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29523 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29524 | ac_status=$? |
ac1cb8d3 VS |
29525 | grep -v '^ *+' conftest.er1 >conftest.err |
29526 | rm -f conftest.er1 | |
29527 | cat conftest.err >&5 | |
a848cd7e SC |
29528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29529 | (exit $ac_status); } && | |
d25774ab JS |
29530 | { ac_try='test -z "$ac_cxx_werror_flag" |
29531 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29533 | (eval $ac_try) 2>&5 | |
29534 | ac_status=$? | |
29535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29536 | (exit $ac_status); }; } && | |
29537 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29539 | (eval $ac_try) 2>&5 | |
29540 | ac_status=$? | |
29541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29542 | (exit $ac_status); }; }; then | |
29543 | ac_cv_lib_ipc_shmat=yes | |
29544 | else | |
29545 | echo "$as_me: failed program was:" >&5 | |
29546 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29547 | ||
29548 | ac_cv_lib_ipc_shmat=no | |
29549 | fi | |
ac1cb8d3 VS |
29550 | rm -f conftest.err conftest.$ac_objext \ |
29551 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29552 | LIBS=$ac_check_lib_save_LIBS |
29553 | fi | |
29554 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
29555 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
29556 | if test $ac_cv_lib_ipc_shmat = yes; then | |
29557 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
29558 | fi | |
29559 | ||
29560 | fi | |
29561 | fi | |
29562 | ||
29563 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
29564 | ac_save_LDFLAGS=$LDFLAGS | |
29565 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
29566 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
29567 | # check for ICE first), but we must link in the order -lSM -lICE or | |
29568 | # we get undefined symbols. So assume we have SM if we have ICE. | |
29569 | # These have to be linked with before -lX11, unlike the other | |
29570 | # libraries we check for below, so use a different variable. | |
29571 | # John Interrante, Karl Berry | |
29572 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
29573 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
29574 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
29575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29576 | else | |
29577 | ac_check_lib_save_LIBS=$LIBS | |
29578 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
29579 | cat >conftest.$ac_ext <<_ACEOF | |
29580 | /* confdefs.h. */ | |
29581 | _ACEOF | |
29582 | cat confdefs.h >>conftest.$ac_ext | |
29583 | cat >>conftest.$ac_ext <<_ACEOF | |
29584 | /* end confdefs.h. */ | |
29585 | ||
29586 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29587 | #ifdef __cplusplus | |
29588 | extern "C" | |
29589 | #endif | |
29590 | /* We use char because int might match the return type of a gcc2 | |
29591 | builtin and then its argument prototype would still apply. */ | |
29592 | char IceConnectionNumber (); | |
29593 | int | |
29594 | main () | |
29595 | { | |
29596 | IceConnectionNumber (); | |
29597 | ; | |
29598 | return 0; | |
29599 | } | |
29600 | _ACEOF | |
29601 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29602 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29603 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29604 | ac_status=$? |
ac1cb8d3 VS |
29605 | grep -v '^ *+' conftest.er1 >conftest.err |
29606 | rm -f conftest.er1 | |
29607 | cat conftest.err >&5 | |
a848cd7e SC |
29608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29609 | (exit $ac_status); } && | |
d25774ab JS |
29610 | { ac_try='test -z "$ac_cxx_werror_flag" |
29611 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29613 | (eval $ac_try) 2>&5 | |
29614 | ac_status=$? | |
29615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29616 | (exit $ac_status); }; } && | |
29617 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29619 | (eval $ac_try) 2>&5 | |
29620 | ac_status=$? | |
29621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29622 | (exit $ac_status); }; }; then | |
29623 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
29624 | else | |
29625 | echo "$as_me: failed program was:" >&5 | |
29626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29627 | ||
29628 | ac_cv_lib_ICE_IceConnectionNumber=no | |
29629 | fi | |
ac1cb8d3 VS |
29630 | rm -f conftest.err conftest.$ac_objext \ |
29631 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29632 | LIBS=$ac_check_lib_save_LIBS |
29633 | fi | |
29634 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
29635 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
29636 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
29637 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
29638 | fi | |
29639 | ||
29640 | LDFLAGS=$ac_save_LDFLAGS | |
29641 | ||
29642 | fi | |
29643 | ||
29644 | ||
29645 | if test "$no_x" = "yes"; then | |
89d90d6d VZ |
29646 | { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5 |
29647 | echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;} | |
29648 | { (exit 1); exit 1; }; } | |
a848cd7e SC |
29649 | fi |
29650 | ||
74b84332 VS |
29651 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'` |
29652 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
a848cd7e SC |
29653 | AFMINSTALL=afminstall |
29654 | COMPILED_X_PROGRAM=0 | |
29655 | ||
74b84332 VS |
29656 | fi |
29657 | ||
29658 | if test "$wxUSE_X11" = 1; then | |
a848cd7e SC |
29659 | if test "$wxUSE_NANOX" = "yes"; then |
29660 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 | |
29661 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
29662 | if test "x$MICROWIN" = x ; then | |
29663 | echo "$as_me:$LINENO: result: not found" >&5 | |
29664 | echo "${ECHO_T}not found" >&6 | |
29665 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
29666 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
29667 | { (exit 1); exit 1; }; } | |
29668 | else | |
29669 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 | |
29670 | echo "${ECHO_T}$MICROWIN" >&6 | |
29671 | cat >>confdefs.h <<\_ACEOF | |
29672 | #define wxUSE_NANOX 1 | |
29673 | _ACEOF | |
29674 | ||
29675 | fi | |
29676 | fi | |
29677 | ||
29678 | if test "$wxUSE_UNICODE" = "yes"; then | |
29679 | ||
29680 | succeeded=no | |
29681 | ||
29682 | if test -z "$PKG_CONFIG"; then | |
29683 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
29684 | set dummy pkg-config; ac_word=$2 | |
29685 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
29686 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
29687 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
29688 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29689 | else | |
29690 | case $PKG_CONFIG in | |
29691 | [\\/]* | ?:[\\/]*) | |
29692 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
29693 | ;; | |
29694 | *) | |
29695 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29696 | for as_dir in $PATH | |
29697 | do | |
29698 | IFS=$as_save_IFS | |
29699 | test -z "$as_dir" && as_dir=. | |
29700 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29701 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
29702 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
29703 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
29704 | break 2 | |
29705 | fi | |
29706 | done | |
29707 | done | |
29708 | ||
29709 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
29710 | ;; | |
29711 | esac | |
29712 | fi | |
29713 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
29714 | ||
29715 | if test -n "$PKG_CONFIG"; then | |
29716 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
29717 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
29718 | else | |
29719 | echo "$as_me:$LINENO: result: no" >&5 | |
29720 | echo "${ECHO_T}no" >&6 | |
29721 | fi | |
29722 | ||
29723 | fi | |
29724 | ||
29725 | if test "$PKG_CONFIG" = "no" ; then | |
29726 | echo "*** The pkg-config script could not be found. Make sure it is" | |
29727 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
29728 | echo "*** to the full path to pkg-config." | |
29729 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
29730 | else | |
29731 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
29732 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
29733 | echo "$as_me:$LINENO: checking for pangox" >&5 | |
29734 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
29735 | ||
29736 | if $PKG_CONFIG --exists "pangox" ; then | |
29737 | echo "$as_me:$LINENO: result: yes" >&5 | |
29738 | echo "${ECHO_T}yes" >&6 | |
29739 | succeeded=yes | |
29740 | ||
29741 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 | |
29742 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
29743 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` | |
29744 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 | |
29745 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
29746 | ||
29747 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 | |
29748 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
29749 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` | |
29750 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 | |
29751 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
29752 | else | |
29753 | PANGOX_CFLAGS="" | |
29754 | PANGOX_LIBS="" | |
29755 | ## If we have a custom action on failure, don't print errors, but | |
29756 | ## do set a variable so people can do so. | |
29757 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
29758 | ||
29759 | fi | |
29760 | ||
29761 | ||
29762 | ||
29763 | else | |
29764 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
29765 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
29766 | fi | |
29767 | fi | |
29768 | ||
29769 | if test $succeeded = yes; then | |
29770 | ||
c92ad099 | 29771 | CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS" |
a848cd7e SC |
29772 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" |
29773 | ||
29774 | else | |
29775 | ||
29776 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
29777 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
29778 | { (exit 1); exit 1; }; } | |
29779 | ||
29780 | ||
29781 | fi | |
29782 | ||
29783 | ||
29784 | succeeded=no | |
29785 | ||
29786 | if test -z "$PKG_CONFIG"; then | |
29787 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
29788 | set dummy pkg-config; ac_word=$2 | |
29789 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
29790 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
29791 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
29792 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29793 | else | |
29794 | case $PKG_CONFIG in | |
29795 | [\\/]* | ?:[\\/]*) | |
29796 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
29797 | ;; | |
29798 | *) | |
29799 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29800 | for as_dir in $PATH | |
29801 | do | |
29802 | IFS=$as_save_IFS | |
29803 | test -z "$as_dir" && as_dir=. | |
29804 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29805 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
29806 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
29807 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
29808 | break 2 | |
29809 | fi | |
29810 | done | |
29811 | done | |
29812 | ||
29813 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
29814 | ;; | |
29815 | esac | |
29816 | fi | |
29817 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
29818 | ||
29819 | if test -n "$PKG_CONFIG"; then | |
29820 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
29821 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
29822 | else | |
29823 | echo "$as_me:$LINENO: result: no" >&5 | |
29824 | echo "${ECHO_T}no" >&6 | |
29825 | fi | |
29826 | ||
29827 | fi | |
29828 | ||
29829 | if test "$PKG_CONFIG" = "no" ; then | |
29830 | echo "*** The pkg-config script could not be found. Make sure it is" | |
29831 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
29832 | echo "*** to the full path to pkg-config." | |
29833 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
29834 | else | |
29835 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
29836 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
29837 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
29838 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
29839 | ||
29840 | if $PKG_CONFIG --exists "pangoft2" ; then | |
29841 | echo "$as_me:$LINENO: result: yes" >&5 | |
29842 | echo "${ECHO_T}yes" >&6 | |
29843 | succeeded=yes | |
29844 | ||
29845 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
29846 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
29847 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
29848 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
29849 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
29850 | ||
29851 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
29852 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
29853 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
29854 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
29855 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
29856 | else | |
29857 | PANGOFT2_CFLAGS="" | |
29858 | PANGOFT2_LIBS="" | |
29859 | ## If we have a custom action on failure, don't print errors, but | |
29860 | ## do set a variable so people can do so. | |
29861 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
29862 | ||
29863 | fi | |
29864 | ||
29865 | ||
29866 | ||
29867 | else | |
29868 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
29869 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
29870 | fi | |
29871 | fi | |
29872 | ||
29873 | if test $succeeded = yes; then | |
29874 | ||
c92ad099 | 29875 | CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS" |
a848cd7e SC |
29876 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" |
29877 | ||
29878 | else | |
29879 | ||
29880 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
29881 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
29882 | wxUSE_PRINTING_ARCHITECTURE="no" | |
29883 | ||
29884 | ||
29885 | fi | |
29886 | ||
29887 | ||
29888 | succeeded=no | |
29889 | ||
29890 | if test -z "$PKG_CONFIG"; then | |
29891 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
29892 | set dummy pkg-config; ac_word=$2 | |
29893 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
29894 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
29895 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
29896 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29897 | else | |
29898 | case $PKG_CONFIG in | |
29899 | [\\/]* | ?:[\\/]*) | |
29900 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
29901 | ;; | |
29902 | *) | |
29903 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29904 | for as_dir in $PATH | |
29905 | do | |
29906 | IFS=$as_save_IFS | |
29907 | test -z "$as_dir" && as_dir=. | |
29908 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29909 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
29910 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
29911 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
29912 | break 2 | |
29913 | fi | |
29914 | done | |
29915 | done | |
29916 | ||
29917 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
29918 | ;; | |
29919 | esac | |
29920 | fi | |
29921 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
29922 | ||
29923 | if test -n "$PKG_CONFIG"; then | |
29924 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
29925 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
29926 | else | |
29927 | echo "$as_me:$LINENO: result: no" >&5 | |
29928 | echo "${ECHO_T}no" >&6 | |
29929 | fi | |
29930 | ||
29931 | fi | |
29932 | ||
29933 | if test "$PKG_CONFIG" = "no" ; then | |
29934 | echo "*** The pkg-config script could not be found. Make sure it is" | |
29935 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
29936 | echo "*** to the full path to pkg-config." | |
29937 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
29938 | else | |
29939 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
29940 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
29941 | echo "$as_me:$LINENO: checking for pangoxft" >&5 | |
29942 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
29943 | ||
29944 | if $PKG_CONFIG --exists "pangoxft" ; then | |
29945 | echo "$as_me:$LINENO: result: yes" >&5 | |
29946 | echo "${ECHO_T}yes" >&6 | |
29947 | succeeded=yes | |
29948 | ||
29949 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 | |
29950 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
29951 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` | |
29952 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 | |
29953 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
29954 | ||
29955 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 | |
29956 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
29957 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` | |
29958 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 | |
29959 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
29960 | else | |
29961 | PANGOXFT_CFLAGS="" | |
29962 | PANGOXFT_LIBS="" | |
29963 | ## If we have a custom action on failure, don't print errors, but | |
29964 | ## do set a variable so people can do so. | |
29965 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
29966 | ||
29967 | fi | |
29968 | ||
29969 | ||
29970 | ||
29971 | else | |
29972 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
29973 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
29974 | fi | |
29975 | fi | |
29976 | ||
29977 | if test $succeeded = yes; then | |
29978 | ||
4ae1af05 MB |
29979 | cat >>confdefs.h <<\_ACEOF |
29980 | #define HAVE_PANGO_XFT 1 | |
29981 | _ACEOF | |
29982 | ||
c92ad099 | 29983 | CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS" |
a848cd7e SC |
29984 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" |
29985 | ||
29986 | else | |
29987 | ||
29988 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
29989 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
29990 | ||
29991 | ||
29992 | fi | |
29993 | ||
e56f4f9e | 29994 | save_CXXFLAGS="$CXXFLAGS" |
304205f1 | 29995 | save_LIBS="$LIBS" |
e56f4f9e | 29996 | CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS" |
304205f1 VS |
29997 | LIBS="$LIBS $PANGOX_LIBS" |
29998 | ||
29999 | for ac_func in pango_font_family_is_monospace | |
30000 | do | |
30001 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30002 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30003 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30004 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30005 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30006 | else | |
30007 | cat >conftest.$ac_ext <<_ACEOF | |
30008 | /* confdefs.h. */ | |
30009 | _ACEOF | |
30010 | cat confdefs.h >>conftest.$ac_ext | |
30011 | cat >>conftest.$ac_ext <<_ACEOF | |
30012 | /* end confdefs.h. */ | |
30013 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
30014 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
30015 | #define $ac_func innocuous_$ac_func | |
30016 | ||
30017 | /* System header to define __stub macros and hopefully few prototypes, | |
30018 | which can conflict with char $ac_func (); below. | |
30019 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30020 | <limits.h> exists even on freestanding compilers. */ | |
30021 | ||
30022 | #ifdef __STDC__ | |
30023 | # include <limits.h> | |
30024 | #else | |
30025 | # include <assert.h> | |
30026 | #endif | |
30027 | ||
30028 | #undef $ac_func | |
30029 | ||
30030 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30031 | #ifdef __cplusplus | |
30032 | extern "C" | |
30033 | { | |
30034 | #endif | |
30035 | /* We use char because int might match the return type of a gcc2 | |
30036 | builtin and then its argument prototype would still apply. */ | |
30037 | char $ac_func (); | |
30038 | /* The GNU C library defines this for functions which it implements | |
30039 | to always fail with ENOSYS. Some functions are actually named | |
30040 | something starting with __ and the normal name is an alias. */ | |
30041 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30042 | choke me | |
30043 | #else | |
30044 | char (*f) () = $ac_func; | |
30045 | #endif | |
30046 | #ifdef __cplusplus | |
30047 | } | |
30048 | #endif | |
30049 | ||
30050 | int | |
30051 | main () | |
30052 | { | |
30053 | return f != $ac_func; | |
30054 | ; | |
30055 | return 0; | |
30056 | } | |
30057 | _ACEOF | |
30058 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30059 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30060 | (eval $ac_link) 2>conftest.er1 | |
30061 | ac_status=$? | |
30062 | grep -v '^ *+' conftest.er1 >conftest.err | |
30063 | rm -f conftest.er1 | |
30064 | cat conftest.err >&5 | |
30065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30066 | (exit $ac_status); } && | |
d25774ab JS |
30067 | { ac_try='test -z "$ac_cxx_werror_flag" |
30068 | || test ! -s conftest.err' | |
304205f1 VS |
30069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30070 | (eval $ac_try) 2>&5 | |
30071 | ac_status=$? | |
30072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30073 | (exit $ac_status); }; } && | |
30074 | { ac_try='test -s conftest$ac_exeext' | |
30075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30076 | (eval $ac_try) 2>&5 | |
30077 | ac_status=$? | |
30078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30079 | (exit $ac_status); }; }; then | |
30080 | eval "$as_ac_var=yes" | |
30081 | else | |
30082 | echo "$as_me: failed program was:" >&5 | |
30083 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30084 | ||
30085 | eval "$as_ac_var=no" | |
30086 | fi | |
30087 | rm -f conftest.err conftest.$ac_objext \ | |
30088 | conftest$ac_exeext conftest.$ac_ext | |
30089 | fi | |
30090 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30091 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30092 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30093 | cat >>confdefs.h <<_ACEOF | |
30094 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30095 | _ACEOF | |
30096 | ||
30097 | fi | |
30098 | done | |
30099 | ||
e56f4f9e | 30100 | CXXFLAGS="$save_CXXFLAGS" |
304205f1 | 30101 | LIBS="$save_LIBS" |
a848cd7e SC |
30102 | fi |
30103 | ||
30104 | wxUSE_UNIVERSAL="yes" | |
30105 | ||
30106 | if test "$wxUSE_NANOX" = "yes"; then | |
30107 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
30108 | 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" | |
30109 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
30110 | else | |
30111 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" | |
30112 | fi | |
30113 | ||
a848cd7e SC |
30114 | TOOLKIT=X11 |
30115 | GUIDIST=X11_DIST | |
30116 | fi | |
30117 | ||
30118 | if test "$wxUSE_MOTIF" = 1; then | |
0a08f02a MB |
30119 | if test "$wxUSE_UNICODE" = "yes"; then |
30120 | { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5 | |
30121 | echo "$as_me: error: Unicode configuration not supported with Motif" >&2;} | |
30122 | { (exit 1); exit 1; }; } | |
30123 | fi | |
30124 | ||
74b84332 VS |
30125 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
30126 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
a848cd7e | 30127 | |
74b84332 VS |
30128 | ac_find_includes= |
30129 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
30130 | do | |
30131 | if test -f "$ac_dir/Xm/Xm.h"; then | |
30132 | ac_find_includes=$ac_dir | |
30133 | break | |
30134 | fi | |
30135 | done | |
a848cd7e | 30136 | |
74b84332 VS |
30137 | if test "$ac_find_includes" != "" ; then |
30138 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
30139 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
30140 | ||
30141 | if test "x$ac_find_includes" = "x/usr/include"; then | |
30142 | ac_path_to_include="" | |
30143 | else | |
30144 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
30145 | result=$? | |
30146 | if test $result = 0; then | |
30147 | ac_path_to_include="" | |
30148 | else | |
30149 | ac_path_to_include=" -I$ac_find_includes" | |
30150 | fi | |
a848cd7e SC |
30151 | fi |
30152 | ||
74b84332 VS |
30153 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" |
30154 | else | |
e56f4f9e VZ |
30155 | save_CXXFLAGS=$CXXFLAGS |
30156 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
e051b34e | 30157 | |
74b84332 | 30158 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
30159 | /* confdefs.h. */ |
30160 | _ACEOF | |
30161 | cat confdefs.h >>conftest.$ac_ext | |
30162 | cat >>conftest.$ac_ext <<_ACEOF | |
30163 | /* end confdefs.h. */ | |
30164 | ||
74b84332 VS |
30165 | #include <Xm/Xm.h> |
30166 | ||
a848cd7e SC |
30167 | int |
30168 | main () | |
30169 | { | |
30170 | ||
74b84332 VS |
30171 | int version; |
30172 | version = xmUseVersion; | |
30173 | ||
a848cd7e SC |
30174 | ; |
30175 | return 0; | |
30176 | } | |
30177 | _ACEOF | |
74b84332 VS |
30178 | rm -f conftest.$ac_objext |
30179 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30180 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 30181 | ac_status=$? |
ac1cb8d3 VS |
30182 | grep -v '^ *+' conftest.er1 >conftest.err |
30183 | rm -f conftest.er1 | |
30184 | cat conftest.err >&5 | |
a848cd7e SC |
30185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30186 | (exit $ac_status); } && | |
d25774ab JS |
30187 | { ac_try='test -z "$ac_cxx_werror_flag" |
30188 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30190 | (eval $ac_try) 2>&5 | |
30191 | ac_status=$? | |
30192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30193 | (exit $ac_status); }; } && | |
74b84332 | 30194 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
30195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30196 | (eval $ac_try) 2>&5 | |
30197 | ac_status=$? | |
30198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30199 | (exit $ac_status); }; }; then | |
74b84332 VS |
30200 | |
30201 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
30202 | echo "${ECHO_T}found in default search path" >&6 | |
30203 | COMPILED_X_PROGRAM=1 | |
30204 | ||
a848cd7e SC |
30205 | else |
30206 | echo "$as_me: failed program was:" >&5 | |
30207 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30208 | ||
a848cd7e | 30209 | |
74b84332 VS |
30210 | echo "$as_me:$LINENO: result: no" >&5 |
30211 | echo "${ECHO_T}no" >&6 | |
e051b34e MW |
30212 | { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5 |
30213 | echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;} | |
74b84332 | 30214 | { (exit 1); exit 1; }; } |
a848cd7e | 30215 | |
a848cd7e | 30216 | |
a848cd7e | 30217 | fi |
74b84332 | 30218 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e051b34e | 30219 | |
e56f4f9e | 30220 | CXXFLAGS=$save_CXXFLAGS |
74b84332 VS |
30221 | fi |
30222 | ||
0ad5d837 VZ |
30223 | |
30224 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 | |
74b84332 VS |
30225 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 |
30226 | ||
0ad5d837 VZ |
30227 | ac_find_libraries= |
30228 | for ac_dir in $SEARCH_LIB; | |
74b84332 | 30229 | do |
3eca31dc | 30230 | for ac_extension in a so sl dylib dll.a; do |
74b84332 VS |
30231 | if test -f "$ac_dir/libXm.$ac_extension"; then |
30232 | ac_find_libraries=$ac_dir | |
30233 | break 2 | |
a848cd7e | 30234 | fi |
74b84332 VS |
30235 | done |
30236 | done | |
a848cd7e | 30237 | |
0ad5d837 VZ |
30238 | |
30239 | if test "x$ac_find_libraries" != "x" ; then | |
30240 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 | |
30241 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e | 30242 | |
74b84332 | 30243 | |
0ad5d837 | 30244 | if test "$ac_find_libraries" = "default location"; then |
74b84332 | 30245 | ac_path_to_link="" |
a848cd7e | 30246 | else |
0ad5d837 VZ |
30247 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
30248 | result=$? | |
30249 | if test $result = 0; then | |
30250 | ac_path_to_link="" | |
30251 | else | |
30252 | ac_path_to_link=" -L$ac_find_libraries" | |
30253 | fi | |
74b84332 VS |
30254 | fi |
30255 | ||
0ad5d837 VZ |
30256 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
30257 | else | |
e56f4f9e VZ |
30258 | save_CXXFLAGS=$CXXFLAGS |
30259 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
6f9cf1e6 MW |
30260 | save_LIBS="$LIBS" |
30261 | LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11" | |
74b84332 | 30262 | |
0ad5d837 | 30263 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
30264 | /* confdefs.h. */ |
30265 | _ACEOF | |
30266 | cat confdefs.h >>conftest.$ac_ext | |
30267 | cat >>conftest.$ac_ext <<_ACEOF | |
30268 | /* end confdefs.h. */ | |
30269 | ||
0ad5d837 | 30270 | #include <Xm/Xm.h> |
74b84332 | 30271 | |
a848cd7e SC |
30272 | int |
30273 | main () | |
30274 | { | |
74b84332 | 30275 | |
0ad5d837 VZ |
30276 | int version; |
30277 | version = xmUseVersion; | |
74b84332 | 30278 | |
a848cd7e SC |
30279 | ; |
30280 | return 0; | |
30281 | } | |
30282 | _ACEOF | |
0ad5d837 VZ |
30283 | rm -f conftest.$ac_objext conftest$ac_exeext |
30284 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30285 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 30286 | ac_status=$? |
ac1cb8d3 VS |
30287 | grep -v '^ *+' conftest.er1 >conftest.err |
30288 | rm -f conftest.er1 | |
30289 | cat conftest.err >&5 | |
a848cd7e SC |
30290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30291 | (exit $ac_status); } && | |
d25774ab JS |
30292 | { ac_try='test -z "$ac_cxx_werror_flag" |
30293 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30295 | (eval $ac_try) 2>&5 | |
30296 | ac_status=$? | |
30297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30298 | (exit $ac_status); }; } && | |
0ad5d837 | 30299 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
30300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30301 | (eval $ac_try) 2>&5 | |
30302 | ac_status=$? | |
30303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30304 | (exit $ac_status); }; }; then | |
74b84332 | 30305 | |
0ad5d837 | 30306 | echo "$as_me:$LINENO: result: found in default search path" >&5 |
74b84332 | 30307 | echo "${ECHO_T}found in default search path" >&6 |
0ad5d837 | 30308 | COMPILED_X_PROGRAM=1 |
74b84332 | 30309 | |
a848cd7e SC |
30310 | else |
30311 | echo "$as_me: failed program was:" >&5 | |
30312 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30313 | ||
74b84332 | 30314 | |
6f9cf1e6 | 30315 | echo "$as_me:$LINENO: result: no" >&5 |
74b84332 | 30316 | echo "${ECHO_T}no" >&6 |
6f9cf1e6 | 30317 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 |
74b84332 VS |
30318 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} |
30319 | { (exit 1); exit 1; }; } | |
30320 | ||
30321 | ||
30322 | fi | |
0ad5d837 VZ |
30323 | rm -f conftest.err conftest.$ac_objext \ |
30324 | conftest$ac_exeext conftest.$ac_ext | |
74b84332 | 30325 | |
e56f4f9e | 30326 | CXXFLAGS=$save_CXXFLAGS |
6f9cf1e6 | 30327 | LIBS="$save_LIBS" |
74b84332 VS |
30328 | fi |
30329 | ||
30330 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 | |
30331 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
30332 | libp_link="" | |
30333 | libsm_ice_link="" | |
30334 | libs_found=0 | |
30335 | for libp in "" " -lXp"; do | |
30336 | if test "$libs_found" = "0"; then | |
30337 | for libsm_ice in "" " -lSM -lICE"; do | |
30338 | if test "$libs_found" = "0"; then | |
30339 | save_LIBS="$LIBS" | |
30340 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
e56f4f9e VZ |
30341 | save_CXXFLAGS=$CXXFLAGS |
30342 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
74b84332 VS |
30343 | |
30344 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
30345 | /* confdefs.h. */ |
30346 | _ACEOF | |
30347 | cat confdefs.h >>conftest.$ac_ext | |
30348 | cat >>conftest.$ac_ext <<_ACEOF | |
30349 | /* end confdefs.h. */ | |
30350 | ||
74b84332 VS |
30351 | #include <Xm/Xm.h> |
30352 | #include <Xm/List.h> | |
30353 | ||
a848cd7e SC |
30354 | int |
30355 | main () | |
30356 | { | |
74b84332 VS |
30357 | |
30358 | XmString string = NULL; | |
30359 | Widget w = NULL; | |
30360 | int position = 0; | |
30361 | XmListAddItem(w, string, position); | |
30362 | ||
a848cd7e SC |
30363 | ; |
30364 | return 0; | |
30365 | } | |
30366 | _ACEOF | |
30367 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30368 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30369 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30370 | ac_status=$? |
ac1cb8d3 VS |
30371 | grep -v '^ *+' conftest.er1 >conftest.err |
30372 | rm -f conftest.er1 | |
30373 | cat conftest.err >&5 | |
a848cd7e SC |
30374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30375 | (exit $ac_status); } && | |
d25774ab JS |
30376 | { ac_try='test -z "$ac_cxx_werror_flag" |
30377 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30379 | (eval $ac_try) 2>&5 | |
30380 | ac_status=$? | |
30381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30382 | (exit $ac_status); }; } && | |
30383 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30385 | (eval $ac_try) 2>&5 | |
30386 | ac_status=$? | |
30387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30388 | (exit $ac_status); }; }; then | |
30389 | ||
30390 | libp_link="$libp" | |
30391 | libsm_ice_link="$libsm_ice" | |
30392 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 | |
30393 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
30394 | libs_found=1 | |
30395 | ||
30396 | else | |
30397 | echo "$as_me: failed program was:" >&5 | |
30398 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30399 | ||
30400 | ||
30401 | ||
30402 | fi | |
ac1cb8d3 VS |
30403 | rm -f conftest.err conftest.$ac_objext \ |
30404 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30405 | |
30406 | LIBS="$save_LIBS" | |
e56f4f9e | 30407 | CXXFLAGS=$save_CXXFLAGS |
a848cd7e SC |
30408 | fi |
30409 | done | |
30410 | fi | |
30411 | done | |
30412 | ||
30413 | if test "$libs_found" = "0"; then | |
30414 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 | |
30415 | echo "${ECHO_T}can't find the right libraries" >&6 | |
30416 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
30417 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
30418 | { (exit 1); exit 1; }; } | |
30419 | fi | |
30420 | ||
62fa8b3a MW |
30421 | echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5 |
30422 | echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6 | |
30423 | if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then | |
30424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30425 | else | |
30426 | ac_check_lib_save_LIBS=$LIBS | |
30427 | LIBS="-lSgm $LIBS" | |
30428 | cat >conftest.$ac_ext <<_ACEOF | |
30429 | /* confdefs.h. */ | |
30430 | _ACEOF | |
30431 | cat confdefs.h >>conftest.$ac_ext | |
30432 | cat >>conftest.$ac_ext <<_ACEOF | |
30433 | /* end confdefs.h. */ | |
30434 | ||
30435 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30436 | #ifdef __cplusplus | |
30437 | extern "C" | |
30438 | #endif | |
30439 | /* We use char because int might match the return type of a gcc2 | |
30440 | builtin and then its argument prototype would still apply. */ | |
30441 | char SgCreateList (); | |
30442 | int | |
30443 | main () | |
30444 | { | |
30445 | SgCreateList (); | |
30446 | ; | |
30447 | return 0; | |
30448 | } | |
30449 | _ACEOF | |
30450 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30451 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30452 | (eval $ac_link) 2>conftest.er1 | |
30453 | ac_status=$? | |
30454 | grep -v '^ *+' conftest.er1 >conftest.err | |
30455 | rm -f conftest.er1 | |
30456 | cat conftest.err >&5 | |
30457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30458 | (exit $ac_status); } && | |
d25774ab JS |
30459 | { ac_try='test -z "$ac_cxx_werror_flag" |
30460 | || test ! -s conftest.err' | |
62fa8b3a MW |
30461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30462 | (eval $ac_try) 2>&5 | |
30463 | ac_status=$? | |
30464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30465 | (exit $ac_status); }; } && | |
30466 | { ac_try='test -s conftest$ac_exeext' | |
30467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30468 | (eval $ac_try) 2>&5 | |
30469 | ac_status=$? | |
30470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30471 | (exit $ac_status); }; }; then | |
30472 | ac_cv_lib_Sgm_SgCreateList=yes | |
30473 | else | |
30474 | echo "$as_me: failed program was:" >&5 | |
30475 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30476 | ||
30477 | ac_cv_lib_Sgm_SgCreateList=no | |
30478 | fi | |
30479 | rm -f conftest.err conftest.$ac_objext \ | |
30480 | conftest$ac_exeext conftest.$ac_ext | |
30481 | LIBS=$ac_check_lib_save_LIBS | |
30482 | fi | |
30483 | echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5 | |
30484 | echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6 | |
30485 | if test $ac_cv_lib_Sgm_SgCreateList = yes; then | |
30486 | libsgm_link=" -lSgm" | |
30487 | fi | |
30488 | ||
30489 | ||
e56f4f9e VZ |
30490 | save_CXXFLAGS=$CXXFLAGS |
30491 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
0ad5d837 | 30492 | |
a848cd7e SC |
30493 | echo "$as_me:$LINENO: checking for Motif 2" >&5 |
30494 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
0ad5d837 VZ |
30495 | if test "${wx_cv_lib_motif2+set}" = set; then |
30496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30497 | else | |
30498 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
30499 | /* confdefs.h. */ |
30500 | _ACEOF | |
30501 | cat confdefs.h >>conftest.$ac_ext | |
30502 | cat >>conftest.$ac_ext <<_ACEOF | |
30503 | /* end confdefs.h. */ | |
30504 | ||
0ad5d837 | 30505 | #include <Xm/Xm.h> |
a848cd7e SC |
30506 | |
30507 | int | |
30508 | main () | |
30509 | { | |
30510 | ||
0ad5d837 VZ |
30511 | #if XmVersion < 2000 |
30512 | Not Motif 2 | |
30513 | #endif | |
a848cd7e SC |
30514 | |
30515 | ; | |
30516 | return 0; | |
30517 | } | |
30518 | _ACEOF | |
30519 | rm -f conftest.$ac_objext | |
30520 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30521 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30522 | ac_status=$? |
ac1cb8d3 VS |
30523 | grep -v '^ *+' conftest.er1 >conftest.err |
30524 | rm -f conftest.er1 | |
30525 | cat conftest.err >&5 | |
a848cd7e SC |
30526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30527 | (exit $ac_status); } && | |
d25774ab JS |
30528 | { ac_try='test -z "$ac_cxx_werror_flag" |
30529 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30531 | (eval $ac_try) 2>&5 | |
30532 | ac_status=$? | |
30533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30534 | (exit $ac_status); }; } && | |
30535 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30537 | (eval $ac_try) 2>&5 | |
30538 | ac_status=$? | |
30539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30540 | (exit $ac_status); }; }; then | |
0ad5d837 | 30541 | wx_cv_lib_motif2="yes" |
a848cd7e SC |
30542 | else |
30543 | echo "$as_me: failed program was:" >&5 | |
30544 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30545 | ||
0ad5d837 VZ |
30546 | wx_cv_lib_motif2="no" |
30547 | fi | |
30548 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30549 | fi | |
30550 | echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5 | |
30551 | echo "${ECHO_T}$wx_cv_lib_motif2" >&6 | |
30552 | if test "$wx_cv_lib_motif2" = "yes"; then | |
30553 | cat >>confdefs.h <<\_ACEOF | |
30554 | #define __WXMOTIF20__ 1 | |
30555 | _ACEOF | |
a848cd7e | 30556 | |
0ad5d837 VZ |
30557 | else |
30558 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
30559 | #define __WXMOTIF20__ 0 |
30560 | _ACEOF | |
30561 | ||
0ad5d837 | 30562 | fi |
2113bc77 MW |
30563 | |
30564 | echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5 | |
30565 | echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6 | |
0ad5d837 VZ |
30566 | if test "${wx_cv_lib_lesstif+set}" = set; then |
30567 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30568 | else | |
30569 | cat >conftest.$ac_ext <<_ACEOF | |
2113bc77 MW |
30570 | /* confdefs.h. */ |
30571 | _ACEOF | |
30572 | cat confdefs.h >>conftest.$ac_ext | |
30573 | cat >>conftest.$ac_ext <<_ACEOF | |
30574 | /* end confdefs.h. */ | |
30575 | ||
0ad5d837 | 30576 | #include <Xm/Xm.h> |
2113bc77 MW |
30577 | |
30578 | int | |
30579 | main () | |
30580 | { | |
30581 | ||
0ad5d837 VZ |
30582 | #if !defined(LesstifVersion) || LesstifVersion <= 0 |
30583 | Not Lesstif | |
30584 | #endif | |
2113bc77 MW |
30585 | |
30586 | ; | |
30587 | return 0; | |
30588 | } | |
30589 | _ACEOF | |
30590 | rm -f conftest.$ac_objext | |
30591 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30592 | (eval $ac_compile) 2>conftest.er1 | |
30593 | ac_status=$? | |
30594 | grep -v '^ *+' conftest.er1 >conftest.err | |
30595 | rm -f conftest.er1 | |
30596 | cat conftest.err >&5 | |
30597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30598 | (exit $ac_status); } && | |
d25774ab JS |
30599 | { ac_try='test -z "$ac_cxx_werror_flag" |
30600 | || test ! -s conftest.err' | |
2113bc77 MW |
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_objext' | |
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 | |
0ad5d837 | 30612 | wx_cv_lib_lesstif="yes" |
2113bc77 MW |
30613 | else |
30614 | echo "$as_me: failed program was:" >&5 | |
30615 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30616 | ||
0ad5d837 VZ |
30617 | wx_cv_lib_lesstif="no" |
30618 | fi | |
30619 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2113bc77 | 30620 | |
0ad5d837 VZ |
30621 | fi |
30622 | echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5 | |
30623 | echo "${ECHO_T}$wx_cv_lib_lesstif" >&6 | |
30624 | if test "$wx_cv_lib_lesstif" = "yes"; then | |
30625 | cat >>confdefs.h <<\_ACEOF | |
30626 | #define __WXLESSTIF__ 1 | |
30627 | _ACEOF | |
30628 | ||
30629 | else | |
30630 | cat >>confdefs.h <<\_ACEOF | |
2113bc77 MW |
30631 | #define __WXLESSTIF__ 0 |
30632 | _ACEOF | |
30633 | ||
0ad5d837 | 30634 | fi |
2113bc77 | 30635 | |
e56f4f9e | 30636 | CXXFLAGS=$save_CXXFLAGS |
a848cd7e | 30637 | |
62fa8b3a | 30638 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" |
a848cd7e SC |
30639 | TOOLKIT=MOTIF |
30640 | GUIDIST=MOTIF_DIST | |
30641 | fi | |
30642 | ||
74b84332 | 30643 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
a848cd7e SC |
30644 | if test "$wxUSE_LIBXPM" = "sys"; then |
30645 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
30646 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
30647 | ||
0ad5d837 VZ |
30648 | ac_find_libraries= |
30649 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 30650 | do |
3eca31dc | 30651 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
30652 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
30653 | ac_find_libraries=$ac_dir | |
30654 | break 2 | |
30655 | fi | |
30656 | done | |
30657 | done | |
30658 | ||
30659 | if test "$ac_find_libraries" != "" ; then | |
30660 | ||
0ad5d837 | 30661 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
30662 | ac_path_to_link="" |
30663 | else | |
0ad5d837 VZ |
30664 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
30665 | result=$? | |
30666 | if test $result = 0; then | |
30667 | ac_path_to_link="" | |
30668 | else | |
30669 | ac_path_to_link=" -L$ac_find_libraries" | |
30670 | fi | |
a848cd7e SC |
30671 | fi |
30672 | ||
30673 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
0ad5d837 VZ |
30674 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 |
30675 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e SC |
30676 | |
30677 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
30678 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
30679 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
30680 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30681 | else | |
30682 | ||
e56f4f9e VZ |
30683 | save_CXXFLAGS=$CXXFLAGS |
30684 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
a848cd7e SC |
30685 | |
30686 | cat >conftest.$ac_ext <<_ACEOF | |
30687 | /* confdefs.h. */ | |
30688 | _ACEOF | |
30689 | cat confdefs.h >>conftest.$ac_ext | |
30690 | cat >>conftest.$ac_ext <<_ACEOF | |
30691 | /* end confdefs.h. */ | |
30692 | ||
30693 | #include <X11/xpm.h> | |
30694 | ||
30695 | int | |
30696 | main () | |
30697 | { | |
30698 | ||
30699 | int version; | |
30700 | version = XpmLibraryVersion(); | |
30701 | ||
30702 | ; | |
30703 | return 0; | |
30704 | } | |
30705 | _ACEOF | |
30706 | rm -f conftest.$ac_objext | |
30707 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30708 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30709 | ac_status=$? |
ac1cb8d3 VS |
30710 | grep -v '^ *+' conftest.er1 >conftest.err |
30711 | rm -f conftest.er1 | |
30712 | cat conftest.err >&5 | |
a848cd7e SC |
30713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30714 | (exit $ac_status); } && | |
d25774ab JS |
30715 | { ac_try='test -z "$ac_cxx_werror_flag" |
30716 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30718 | (eval $ac_try) 2>&5 | |
30719 | ac_status=$? | |
30720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30721 | (exit $ac_status); }; } && | |
30722 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30724 | (eval $ac_try) 2>&5 | |
30725 | ac_status=$? | |
30726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30727 | (exit $ac_status); }; }; then | |
30728 | wx_cv_x11_xpm_h=yes | |
30729 | else | |
30730 | echo "$as_me: failed program was:" >&5 | |
30731 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30732 | ||
30733 | wx_cv_x11_xpm_h=no | |
30734 | ||
30735 | fi | |
ac1cb8d3 | 30736 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 30737 | |
e56f4f9e | 30738 | CXXFLAGS=$save_CXXFLAGS |
a848cd7e SC |
30739 | |
30740 | ||
30741 | fi | |
30742 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
30743 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
30744 | ||
30745 | if test $wx_cv_x11_xpm_h = "yes"; then | |
30746 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" | |
30747 | cat >>confdefs.h <<\_ACEOF | |
30748 | #define wxHAVE_LIB_XPM 1 | |
30749 | _ACEOF | |
30750 | ||
30751 | else | |
30752 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
30753 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
30754 | fi | |
30755 | fi | |
30756 | ||
30757 | fi | |
30758 | ||
30759 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
30760 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
30761 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
30762 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30763 | else | |
30764 | ac_check_lib_save_LIBS=$LIBS | |
30765 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
30766 | cat >conftest.$ac_ext <<_ACEOF | |
30767 | /* confdefs.h. */ | |
30768 | _ACEOF | |
30769 | cat confdefs.h >>conftest.$ac_ext | |
30770 | cat >>conftest.$ac_ext <<_ACEOF | |
30771 | /* end confdefs.h. */ | |
30772 | ||
30773 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30774 | #ifdef __cplusplus | |
30775 | extern "C" | |
30776 | #endif | |
30777 | /* We use char because int might match the return type of a gcc2 | |
30778 | builtin and then its argument prototype would still apply. */ | |
30779 | char XShapeQueryExtension (); | |
30780 | int | |
30781 | main () | |
30782 | { | |
30783 | XShapeQueryExtension (); | |
30784 | ; | |
30785 | return 0; | |
30786 | } | |
30787 | _ACEOF | |
30788 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30789 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30790 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30791 | ac_status=$? |
ac1cb8d3 VS |
30792 | grep -v '^ *+' conftest.er1 >conftest.err |
30793 | rm -f conftest.er1 | |
30794 | cat conftest.err >&5 | |
a848cd7e SC |
30795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30796 | (exit $ac_status); } && | |
d25774ab JS |
30797 | { ac_try='test -z "$ac_cxx_werror_flag" |
30798 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30800 | (eval $ac_try) 2>&5 | |
30801 | ac_status=$? | |
30802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30803 | (exit $ac_status); }; } && | |
30804 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30806 | (eval $ac_try) 2>&5 | |
30807 | ac_status=$? | |
30808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30809 | (exit $ac_status); }; }; then | |
30810 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
30811 | else | |
30812 | echo "$as_me: failed program was:" >&5 | |
30813 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30814 | ||
30815 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
30816 | fi | |
ac1cb8d3 VS |
30817 | rm -f conftest.err conftest.$ac_objext \ |
30818 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30819 | LIBS=$ac_check_lib_save_LIBS |
30820 | fi | |
30821 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
30822 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
30823 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
30824 | ||
30825 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
30826 | wxHAVE_XEXT_LIB=1 | |
30827 | ||
30828 | fi | |
30829 | ||
30830 | ||
30831 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
e56f4f9e VZ |
30832 | save_CXXFLAGS="$CXXFLAGS" |
30833 | CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS" | |
a848cd7e SC |
30834 | |
30835 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
30836 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
30837 | cat >conftest.$ac_ext <<_ACEOF | |
30838 | /* confdefs.h. */ | |
30839 | _ACEOF | |
30840 | cat confdefs.h >>conftest.$ac_ext | |
30841 | cat >>conftest.$ac_ext <<_ACEOF | |
30842 | /* end confdefs.h. */ | |
30843 | ||
30844 | #include <X11/Xlib.h> | |
30845 | #include <X11/extensions/shape.h> | |
30846 | ||
30847 | int | |
30848 | main () | |
30849 | { | |
30850 | ||
30851 | int dummy1, dummy2; | |
30852 | XShapeQueryExtension((Display*)NULL, | |
30853 | (int*)NULL, (int*)NULL); | |
30854 | ||
30855 | ; | |
30856 | return 0; | |
30857 | } | |
30858 | _ACEOF | |
30859 | rm -f conftest.$ac_objext | |
30860 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30861 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30862 | ac_status=$? |
ac1cb8d3 VS |
30863 | grep -v '^ *+' conftest.er1 >conftest.err |
30864 | rm -f conftest.er1 | |
30865 | cat conftest.err >&5 | |
a848cd7e SC |
30866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30867 | (exit $ac_status); } && | |
d25774ab JS |
30868 | { ac_try='test -z "$ac_cxx_werror_flag" |
30869 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30871 | (eval $ac_try) 2>&5 | |
30872 | ac_status=$? | |
30873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30874 | (exit $ac_status); }; } && | |
30875 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30877 | (eval $ac_try) 2>&5 | |
30878 | ac_status=$? | |
30879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30880 | (exit $ac_status); }; }; then | |
30881 | ||
30882 | cat >>confdefs.h <<\_ACEOF | |
30883 | #define HAVE_XSHAPE 1 | |
30884 | _ACEOF | |
30885 | ||
30886 | echo "$as_me:$LINENO: result: found" >&5 | |
30887 | echo "${ECHO_T}found" >&6 | |
30888 | ||
30889 | else | |
30890 | echo "$as_me: failed program was:" >&5 | |
30891 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30892 | ||
30893 | ||
30894 | echo "$as_me:$LINENO: result: not found" >&5 | |
30895 | echo "${ECHO_T}not found" >&6 | |
30896 | ||
30897 | fi | |
ac1cb8d3 | 30898 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e56f4f9e | 30899 | CXXFLAGS="$save_CXXFLAGS" |
a848cd7e SC |
30900 | |
30901 | fi | |
30902 | fi | |
30903 | ||
30904 | if test "$wxUSE_MAC" = 1; then | |
30905 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 | |
30906 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
30907 | if test "$GCC" = yes; then | |
30908 | echo "$as_me:$LINENO: result: gcc" >&5 | |
30909 | echo "${ECHO_T}gcc" >&6 | |
30910 | CPPFLAGS_PASCAL="-fpascal-strings" | |
30911 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
30912 | echo "$as_me:$LINENO: result: xlc" >&5 | |
30913 | echo "${ECHO_T}xlc" >&6 | |
30914 | CPPFLAGS_PASCAL="-qmacpstr" | |
30915 | else | |
30916 | echo "$as_me:$LINENO: result: none" >&5 | |
30917 | echo "${ECHO_T}none" >&6 | |
30918 | fi | |
30919 | ||
1e9e8aba | 30920 | if test "x$wxUSE_UNIX" = "xyes"; then |
c92ad099 | 30921 | CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS" |
1e9e8aba | 30922 | else |
c92ad099 | 30923 | CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS" |
1e9e8aba | 30924 | fi |
a848cd7e | 30925 | |
a848cd7e SC |
30926 | TOOLKIT=MAC |
30927 | GUIDIST=MACX_DIST | |
dd21ced8 | 30928 | WXBASEPORT="_carbon" |
a848cd7e SC |
30929 | fi |
30930 | ||
30931 | if test "$wxUSE_COCOA" = 1; then | |
a848cd7e SC |
30932 | TOOLKIT=COCOA |
30933 | GUIDIST=COCOA_DIST | |
30934 | fi | |
30935 | ||
30936 | if test "$wxUSE_PM" = 1; then | |
30937 | TOOLKIT=PM | |
de59c161 RD |
30938 | GUIDIST=PM_DIST |
30939 | echo "$as_me:$LINENO: checking for type SPBCDATA" >&5 | |
30940 | echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6 | |
30941 | if test "${wx_cv_spbcdata+set}" = set; then | |
30942 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30943 | else | |
30944 | ||
30945 | cat >conftest.$ac_ext <<_ACEOF | |
de59c161 RD |
30946 | /* confdefs.h. */ |
30947 | _ACEOF | |
30948 | cat confdefs.h >>conftest.$ac_ext | |
30949 | cat >>conftest.$ac_ext <<_ACEOF | |
30950 | /* end confdefs.h. */ | |
30951 | ||
30952 | #define INCL_PM | |
30953 | #include <os2.h> | |
30954 | ||
30955 | int | |
30956 | main () | |
30957 | { | |
30958 | ||
30959 | SPBCDATA test; | |
30960 | ||
30961 | ; | |
30962 | return 0; | |
30963 | } | |
30964 | _ACEOF | |
30965 | rm -f conftest.$ac_objext | |
30966 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30967 | (eval $ac_compile) 2>conftest.er1 |
de59c161 | 30968 | ac_status=$? |
ac1cb8d3 VS |
30969 | grep -v '^ *+' conftest.er1 >conftest.err |
30970 | rm -f conftest.er1 | |
30971 | cat conftest.err >&5 | |
de59c161 RD |
30972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30973 | (exit $ac_status); } && | |
d25774ab JS |
30974 | { ac_try='test -z "$ac_cxx_werror_flag" |
30975 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30977 | (eval $ac_try) 2>&5 | |
30978 | ac_status=$? | |
30979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30980 | (exit $ac_status); }; } && | |
30981 | { ac_try='test -s conftest.$ac_objext' | |
de59c161 RD |
30982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30983 | (eval $ac_try) 2>&5 | |
30984 | ac_status=$? | |
30985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30986 | (exit $ac_status); }; }; then | |
30987 | wx_cv_spbcdata=yes | |
30988 | else | |
30989 | echo "$as_me: failed program was:" >&5 | |
30990 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30991 | ||
30992 | wx_cv_spbcdata=no | |
30993 | ||
30994 | fi | |
ac1cb8d3 | 30995 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
de59c161 RD |
30996 | |
30997 | ||
30998 | fi | |
30999 | echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5 | |
31000 | echo "${ECHO_T}$wx_cv_spbcdata" >&6 | |
31001 | ||
31002 | if test $wx_cv_spbcdata = "yes"; then | |
31003 | cat >>confdefs.h <<\_ACEOF | |
31004 | #define HAVE_SPBCDATA 1 | |
31005 | _ACEOF | |
31006 | ||
31007 | fi | |
a848cd7e SC |
31008 | fi |
31009 | ||
31010 | if test "$TOOLKIT" = "PM" ; then | |
31011 | TOOLKIT_DIR="os2" | |
31012 | else | |
31013 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
31014 | fi | |
31015 | ||
a848cd7e | 31016 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
a848cd7e SC |
31017 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" |
31018 | WIDGET_SET=univ | |
a848cd7e SC |
31019 | fi |
31020 | ||
31021 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
31022 | DISTDIR="wx\$(TOOLKIT)" | |
31023 | else | |
31024 | USE_GUI=0 | |
31025 | ||
31026 | TOOLKIT_DIR="base" | |
31027 | ||
31028 | if test "$USE_WIN32" = 1 ; then | |
a848cd7e | 31029 | TOOLKIT="MSW" |
a848cd7e SC |
31030 | fi |
31031 | ||
a848cd7e SC |
31032 | GUIDIST="BASE_DIST" |
31033 | DISTDIR="wxBase" | |
31034 | fi | |
31035 | ||
31036 | ||
d12aef51 VZ |
31037 | if test "$wxUSE_GUI" = "yes"; then |
31038 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then | |
31039 | ||
31040 | for ac_header in X11/Xlib.h | |
31041 | do | |
31042 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
31043 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31044 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31045 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31046 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31047 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31048 | fi | |
31049 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31050 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31051 | else | |
31052 | # Is the header compilable? | |
31053 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
31054 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
31055 | cat >conftest.$ac_ext <<_ACEOF | |
31056 | /* confdefs.h. */ | |
31057 | _ACEOF | |
31058 | cat confdefs.h >>conftest.$ac_ext | |
31059 | cat >>conftest.$ac_ext <<_ACEOF | |
31060 | /* end confdefs.h. */ | |
31061 | $ac_includes_default | |
31062 | #include <$ac_header> | |
31063 | _ACEOF | |
31064 | rm -f conftest.$ac_objext | |
31065 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31066 | (eval $ac_compile) 2>conftest.er1 | |
31067 | ac_status=$? | |
31068 | grep -v '^ *+' conftest.er1 >conftest.err | |
31069 | rm -f conftest.er1 | |
31070 | cat conftest.err >&5 | |
31071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31072 | (exit $ac_status); } && | |
d25774ab JS |
31073 | { ac_try='test -z "$ac_cxx_werror_flag" |
31074 | || test ! -s conftest.err' | |
d12aef51 VZ |
31075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31076 | (eval $ac_try) 2>&5 | |
31077 | ac_status=$? | |
31078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31079 | (exit $ac_status); }; } && | |
31080 | { ac_try='test -s conftest.$ac_objext' | |
31081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31082 | (eval $ac_try) 2>&5 | |
31083 | ac_status=$? | |
31084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31085 | (exit $ac_status); }; }; then | |
31086 | ac_header_compiler=yes | |
31087 | else | |
31088 | echo "$as_me: failed program was:" >&5 | |
31089 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31090 | ||
31091 | ac_header_compiler=no | |
31092 | fi | |
31093 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31094 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
31095 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31096 | ||
31097 | # Is the header present? | |
31098 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
31099 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
31100 | cat >conftest.$ac_ext <<_ACEOF | |
31101 | /* confdefs.h. */ | |
31102 | _ACEOF | |
31103 | cat confdefs.h >>conftest.$ac_ext | |
31104 | cat >>conftest.$ac_ext <<_ACEOF | |
31105 | /* end confdefs.h. */ | |
31106 | #include <$ac_header> | |
31107 | _ACEOF | |
31108 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31109 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31110 | ac_status=$? | |
31111 | grep -v '^ *+' conftest.er1 >conftest.err | |
31112 | rm -f conftest.er1 | |
31113 | cat conftest.err >&5 | |
31114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31115 | (exit $ac_status); } >/dev/null; then | |
31116 | if test -s conftest.err; then | |
5d7b7554 VZ |
31117 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
31118 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
d12aef51 VZ |
31119 | else |
31120 | ac_cpp_err= | |
31121 | fi | |
31122 | else | |
31123 | ac_cpp_err=yes | |
31124 | fi | |
31125 | if test -z "$ac_cpp_err"; then | |
31126 | ac_header_preproc=yes | |
31127 | else | |
31128 | echo "$as_me: failed program was:" >&5 | |
31129 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31130 | ||
31131 | ac_header_preproc=no | |
31132 | fi | |
31133 | rm -f conftest.err conftest.$ac_ext | |
31134 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31135 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31136 | ||
31137 | # So? What about this header? | |
5d7b7554 | 31138 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
d12aef51 VZ |
31139 | yes:no: ) |
31140 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
31141 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
31142 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
31143 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
31144 | ac_header_preproc=yes | |
31145 | ;; | |
31146 | no:yes:* ) | |
31147 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
31148 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
31149 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
31150 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
31151 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
31152 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
31153 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
31154 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
31155 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
31156 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
31157 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
31158 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
31159 | ( | |
31160 | cat <<\_ASBOX | |
31161 | ## ----------------------------------------- ## | |
31162 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
31163 | ## ----------------------------------------- ## | |
31164 | _ASBOX | |
31165 | ) | | |
31166 | sed "s/^/$as_me: WARNING: /" >&2 | |
31167 | ;; | |
31168 | esac | |
31169 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31170 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31171 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31172 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31173 | else | |
31174 | eval "$as_ac_Header=\$ac_header_preproc" | |
31175 | fi | |
31176 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31177 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31178 | ||
31179 | fi | |
31180 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
31181 | cat >>confdefs.h <<_ACEOF | |
31182 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31183 | _ACEOF | |
31184 | ||
31185 | fi | |
31186 | ||
31187 | done | |
31188 | ||
31189 | ||
31190 | for ac_header in X11/XKBlib.h | |
31191 | do | |
31192 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
31193 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31194 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31195 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31196 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31197 | else | |
31198 | cat >conftest.$ac_ext <<_ACEOF | |
31199 | /* confdefs.h. */ | |
31200 | _ACEOF | |
31201 | cat confdefs.h >>conftest.$ac_ext | |
31202 | cat >>conftest.$ac_ext <<_ACEOF | |
31203 | /* end confdefs.h. */ | |
31204 | ||
31205 | #if HAVE_X11_XLIB_H | |
31206 | #include <X11/Xlib.h> | |
31207 | #endif | |
31208 | ||
31209 | ||
31210 | #include <$ac_header> | |
31211 | _ACEOF | |
31212 | rm -f conftest.$ac_objext | |
31213 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31214 | (eval $ac_compile) 2>conftest.er1 | |
31215 | ac_status=$? | |
31216 | grep -v '^ *+' conftest.er1 >conftest.err | |
31217 | rm -f conftest.er1 | |
31218 | cat conftest.err >&5 | |
31219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31220 | (exit $ac_status); } && | |
d25774ab JS |
31221 | { ac_try='test -z "$ac_cxx_werror_flag" |
31222 | || test ! -s conftest.err' | |
d12aef51 VZ |
31223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31224 | (eval $ac_try) 2>&5 | |
31225 | ac_status=$? | |
31226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31227 | (exit $ac_status); }; } && | |
31228 | { ac_try='test -s conftest.$ac_objext' | |
31229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31230 | (eval $ac_try) 2>&5 | |
31231 | ac_status=$? | |
31232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31233 | (exit $ac_status); }; }; then | |
31234 | eval "$as_ac_Header=yes" | |
31235 | else | |
31236 | echo "$as_me: failed program was:" >&5 | |
31237 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31238 | ||
31239 | eval "$as_ac_Header=no" | |
31240 | fi | |
31241 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31242 | fi | |
31243 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31244 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31245 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
31246 | cat >>confdefs.h <<_ACEOF | |
31247 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31248 | _ACEOF | |
31249 | ||
31250 | fi | |
31251 | ||
31252 | done | |
31253 | ||
31254 | fi | |
31255 | fi | |
31256 | ||
a848cd7e SC |
31257 | |
31258 | ||
31259 | IODBC_C_SRC="" | |
31260 | ||
31261 | ||
31262 | if test "$TOOLKIT" != "MSW" ; then | |
31263 | ||
31264 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then | |
31265 | ||
31266 | if test "${ac_cv_header_sql_h+set}" = set; then | |
31267 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
31268 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
31269 | if test "${ac_cv_header_sql_h+set}" = set; then | |
31270 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31271 | fi | |
31272 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
31273 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
31274 | else | |
31275 | # Is the header compilable? | |
31276 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
31277 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
31278 | cat >conftest.$ac_ext <<_ACEOF | |
31279 | /* confdefs.h. */ | |
31280 | _ACEOF | |
31281 | cat confdefs.h >>conftest.$ac_ext | |
31282 | cat >>conftest.$ac_ext <<_ACEOF | |
31283 | /* end confdefs.h. */ | |
31284 | $ac_includes_default | |
31285 | #include <sql.h> | |
31286 | _ACEOF | |
31287 | rm -f conftest.$ac_objext | |
31288 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31289 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31290 | ac_status=$? |
ac1cb8d3 VS |
31291 | grep -v '^ *+' conftest.er1 >conftest.err |
31292 | rm -f conftest.er1 | |
31293 | cat conftest.err >&5 | |
a848cd7e SC |
31294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31295 | (exit $ac_status); } && | |
d25774ab JS |
31296 | { ac_try='test -z "$ac_cxx_werror_flag" |
31297 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31299 | (eval $ac_try) 2>&5 | |
31300 | ac_status=$? | |
31301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31302 | (exit $ac_status); }; } && | |
31303 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31305 | (eval $ac_try) 2>&5 | |
31306 | ac_status=$? | |
31307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31308 | (exit $ac_status); }; }; then | |
31309 | ac_header_compiler=yes | |
31310 | else | |
31311 | echo "$as_me: failed program was:" >&5 | |
31312 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31313 | ||
31314 | ac_header_compiler=no | |
31315 | fi | |
ac1cb8d3 | 31316 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31317 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
31318 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31319 | ||
31320 | # Is the header present? | |
31321 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
31322 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
31323 | cat >conftest.$ac_ext <<_ACEOF | |
31324 | /* confdefs.h. */ | |
31325 | _ACEOF | |
31326 | cat confdefs.h >>conftest.$ac_ext | |
31327 | cat >>conftest.$ac_ext <<_ACEOF | |
31328 | /* end confdefs.h. */ | |
31329 | #include <sql.h> | |
31330 | _ACEOF | |
31331 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31332 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31333 | ac_status=$? | |
31334 | grep -v '^ *+' conftest.er1 >conftest.err | |
31335 | rm -f conftest.er1 | |
31336 | cat conftest.err >&5 | |
31337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31338 | (exit $ac_status); } >/dev/null; then | |
31339 | if test -s conftest.err; then | |
5d7b7554 VZ |
31340 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
31341 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
31342 | else |
31343 | ac_cpp_err= | |
31344 | fi | |
31345 | else | |
31346 | ac_cpp_err=yes | |
31347 | fi | |
31348 | if test -z "$ac_cpp_err"; then | |
31349 | ac_header_preproc=yes | |
31350 | else | |
31351 | echo "$as_me: failed program was:" >&5 | |
31352 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31353 | ||
31354 | ac_header_preproc=no | |
31355 | fi | |
31356 | rm -f conftest.err conftest.$ac_ext | |
31357 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31358 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31359 | ||
31360 | # So? What about this header? | |
5d7b7554 | 31361 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 31362 | yes:no: ) |
a848cd7e SC |
31363 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
31364 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
31365 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 |
31366 | echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} | |
31367 | ac_header_preproc=yes | |
a848cd7e | 31368 | ;; |
ac1cb8d3 | 31369 | no:yes:* ) |
a848cd7e SC |
31370 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
31371 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
31372 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
31373 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
31374 | { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 | |
31375 | echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} | |
31376 | { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 | |
31377 | echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
31378 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
31379 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
31380 | { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 |
31381 | echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
31382 | ( |
31383 | cat <<\_ASBOX | |
ac1cb8d3 VS |
31384 | ## ----------------------------------------- ## |
31385 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
31386 | ## ----------------------------------------- ## | |
a848cd7e SC |
31387 | _ASBOX |
31388 | ) | | |
31389 | sed "s/^/$as_me: WARNING: /" >&2 | |
31390 | ;; | |
31391 | esac | |
31392 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
31393 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
31394 | if test "${ac_cv_header_sql_h+set}" = set; then | |
31395 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31396 | else | |
31397 | ac_cv_header_sql_h=$ac_header_preproc | |
31398 | fi | |
31399 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
31400 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
31401 | ||
31402 | fi | |
31403 | if test $ac_cv_header_sql_h = yes; then | |
31404 | found_sql_h=1 | |
31405 | fi | |
31406 | ||
31407 | ||
31408 | if test "x$found_sql_h" = "x1" ; then | |
31409 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 | |
31410 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
31411 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
31412 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31413 | else | |
31414 | ac_check_lib_save_LIBS=$LIBS | |
31415 | LIBS="-liodbc $LIBS" | |
31416 | cat >conftest.$ac_ext <<_ACEOF | |
31417 | /* confdefs.h. */ | |
31418 | _ACEOF | |
31419 | cat confdefs.h >>conftest.$ac_ext | |
31420 | cat >>conftest.$ac_ext <<_ACEOF | |
31421 | /* end confdefs.h. */ | |
31422 | ||
31423 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31424 | #ifdef __cplusplus | |
31425 | extern "C" | |
31426 | #endif | |
31427 | /* We use char because int might match the return type of a gcc2 | |
31428 | builtin and then its argument prototype would still apply. */ | |
31429 | char SQLAllocEnv (); | |
31430 | int | |
31431 | main () | |
31432 | { | |
31433 | SQLAllocEnv (); | |
31434 | ; | |
31435 | return 0; | |
31436 | } | |
31437 | _ACEOF | |
31438 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31439 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31440 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31441 | ac_status=$? |
ac1cb8d3 VS |
31442 | grep -v '^ *+' conftest.er1 >conftest.err |
31443 | rm -f conftest.er1 | |
31444 | cat conftest.err >&5 | |
a848cd7e SC |
31445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31446 | (exit $ac_status); } && | |
d25774ab JS |
31447 | { ac_try='test -z "$ac_cxx_werror_flag" |
31448 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31450 | (eval $ac_try) 2>&5 | |
31451 | ac_status=$? | |
31452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31453 | (exit $ac_status); }; } && | |
31454 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31456 | (eval $ac_try) 2>&5 | |
31457 | ac_status=$? | |
31458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31459 | (exit $ac_status); }; }; then | |
31460 | ac_cv_lib_iodbc_SQLAllocEnv=yes | |
31461 | else | |
31462 | echo "$as_me: failed program was:" >&5 | |
31463 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31464 | ||
31465 | ac_cv_lib_iodbc_SQLAllocEnv=no | |
31466 | fi | |
ac1cb8d3 VS |
31467 | rm -f conftest.err conftest.$ac_objext \ |
31468 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31469 | LIBS=$ac_check_lib_save_LIBS |
31470 | fi | |
31471 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 | |
31472 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
31473 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
31474 | ODBC_LINK=" -liodbc" | |
31475 | else | |
31476 | ||
31477 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 | |
31478 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
31479 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
31480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31481 | else | |
31482 | ac_check_lib_save_LIBS=$LIBS | |
31483 | LIBS="-lunixodbc $LIBS" | |
31484 | cat >conftest.$ac_ext <<_ACEOF | |
31485 | /* confdefs.h. */ | |
31486 | _ACEOF | |
31487 | cat confdefs.h >>conftest.$ac_ext | |
31488 | cat >>conftest.$ac_ext <<_ACEOF | |
31489 | /* end confdefs.h. */ | |
31490 | ||
31491 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31492 | #ifdef __cplusplus | |
31493 | extern "C" | |
31494 | #endif | |
31495 | /* We use char because int might match the return type of a gcc2 | |
31496 | builtin and then its argument prototype would still apply. */ | |
31497 | char SQLAllocEnv (); | |
31498 | int | |
31499 | main () | |
31500 | { | |
31501 | SQLAllocEnv (); | |
31502 | ; | |
31503 | return 0; | |
31504 | } | |
31505 | _ACEOF | |
31506 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31507 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31508 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31509 | ac_status=$? |
ac1cb8d3 VS |
31510 | grep -v '^ *+' conftest.er1 >conftest.err |
31511 | rm -f conftest.er1 | |
31512 | cat conftest.err >&5 | |
a848cd7e SC |
31513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31514 | (exit $ac_status); } && | |
d25774ab JS |
31515 | { ac_try='test -z "$ac_cxx_werror_flag" |
31516 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31518 | (eval $ac_try) 2>&5 | |
31519 | ac_status=$? | |
31520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31521 | (exit $ac_status); }; } && | |
31522 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31524 | (eval $ac_try) 2>&5 | |
31525 | ac_status=$? | |
31526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31527 | (exit $ac_status); }; }; then | |
31528 | ac_cv_lib_unixodbc_SQLAllocEnv=yes | |
31529 | else | |
31530 | echo "$as_me: failed program was:" >&5 | |
31531 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31532 | ||
31533 | ac_cv_lib_unixodbc_SQLAllocEnv=no | |
31534 | fi | |
ac1cb8d3 VS |
31535 | rm -f conftest.err conftest.$ac_objext \ |
31536 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31537 | LIBS=$ac_check_lib_save_LIBS |
31538 | fi | |
31539 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 | |
31540 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
31541 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
31542 | ODBC_LINK=" -lunixodbc" | |
31543 | else | |
31544 | ||
31545 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 | |
31546 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
31547 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
31548 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31549 | else | |
31550 | ac_check_lib_save_LIBS=$LIBS | |
31551 | LIBS="-lodbc $LIBS" | |
31552 | cat >conftest.$ac_ext <<_ACEOF | |
31553 | /* confdefs.h. */ | |
31554 | _ACEOF | |
31555 | cat confdefs.h >>conftest.$ac_ext | |
31556 | cat >>conftest.$ac_ext <<_ACEOF | |
31557 | /* end confdefs.h. */ | |
31558 | ||
31559 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31560 | #ifdef __cplusplus | |
31561 | extern "C" | |
31562 | #endif | |
31563 | /* We use char because int might match the return type of a gcc2 | |
31564 | builtin and then its argument prototype would still apply. */ | |
31565 | char SQLAllocEnv (); | |
31566 | int | |
31567 | main () | |
31568 | { | |
31569 | SQLAllocEnv (); | |
31570 | ; | |
31571 | return 0; | |
31572 | } | |
31573 | _ACEOF | |
31574 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31575 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31576 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31577 | ac_status=$? |
ac1cb8d3 VS |
31578 | grep -v '^ *+' conftest.er1 >conftest.err |
31579 | rm -f conftest.er1 | |
31580 | cat conftest.err >&5 | |
a848cd7e SC |
31581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31582 | (exit $ac_status); } && | |
d25774ab JS |
31583 | { ac_try='test -z "$ac_cxx_werror_flag" |
31584 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31586 | (eval $ac_try) 2>&5 | |
31587 | ac_status=$? | |
31588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31589 | (exit $ac_status); }; } && | |
31590 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31592 | (eval $ac_try) 2>&5 | |
31593 | ac_status=$? | |
31594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31595 | (exit $ac_status); }; }; then | |
31596 | ac_cv_lib_odbc_SQLAllocEnv=yes | |
31597 | else | |
31598 | echo "$as_me: failed program was:" >&5 | |
31599 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31600 | ||
31601 | ac_cv_lib_odbc_SQLAllocEnv=no | |
31602 | fi | |
ac1cb8d3 VS |
31603 | rm -f conftest.err conftest.$ac_objext \ |
31604 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31605 | LIBS=$ac_check_lib_save_LIBS |
31606 | fi | |
31607 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 | |
31608 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
31609 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
31610 | ODBC_LINK=" -lodbc" | |
31611 | fi | |
31612 | ||
31613 | ||
31614 | fi | |
31615 | ||
31616 | ||
31617 | fi | |
31618 | ||
31619 | fi | |
31620 | if test "x$ODBC_LINK" = "x" ; then | |
31621 | if test "$wxUSE_ODBC" = "sys" ; then | |
31622 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
31623 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
31624 | { (exit 1); exit 1; }; } | |
31625 | else | |
31626 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
31627 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
31628 | wxUSE_ODBC=builtin | |
31629 | fi | |
31630 | else | |
31631 | wxUSE_ODBC=sys | |
31632 | fi | |
31633 | fi | |
a848cd7e | 31634 | |
2da0c077 RD |
31635 | if test "$wxUSE_ODBC" = "builtin" ; then |
31636 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
31637 | #define wxUSE_BUILTIN_IODBC 1 |
31638 | _ACEOF | |
31639 | ||
a848cd7e SC |
31640 | fi |
31641 | fi | |
31642 | ||
2da0c077 RD |
31643 | if test "$wxUSE_ODBC" != "no" ; then |
31644 | cat >>confdefs.h <<\_ACEOF | |
31645 | #define wxUSE_ODBC 1 | |
31646 | _ACEOF | |
31647 | ||
31648 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
31649 | ||
5ff751d6 | 31650 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_" |
2da0c077 | 31651 | fi |
a848cd7e | 31652 | |
01cb68df | 31653 | |
a848cd7e | 31654 | if test "$wxUSE_DISPLAY" = "yes"; then |
2a5d7a98 | 31655 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then |
a848cd7e SC |
31656 | echo "$as_me:$LINENO: checking for Xinerama" >&5 |
31657 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
31658 | ||
0ad5d837 VZ |
31659 | ac_find_libraries= |
31660 | for ac_dir in $SEARCH_LIB; | |
31661 | do | |
31662 | for ac_extension in a so sl dylib dll.a; do | |
31663 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
31664 | ac_find_libraries=$ac_dir | |
31665 | break 2 | |
31666 | fi | |
31667 | done | |
31668 | done | |
31669 | ||
a848cd7e SC |
31670 | if test "$ac_find_libraries" != "" ; then |
31671 | ||
0ad5d837 | 31672 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
31673 | ac_path_to_link="" |
31674 | else | |
0ad5d837 VZ |
31675 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
31676 | result=$? | |
31677 | if test $result = 0; then | |
31678 | ac_path_to_link="" | |
31679 | else | |
31680 | ac_path_to_link=" -L$ac_find_libraries" | |
31681 | fi | |
a848cd7e SC |
31682 | fi |
31683 | ||
31684 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
31685 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
31686 | fi | |
31687 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
31688 | echo "$as_me:$LINENO: result: yes" >&5 | |
31689 | echo "${ECHO_T}yes" >&6 | |
31690 | ||
31691 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
31692 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
31693 | ||
0ad5d837 VZ |
31694 | ac_find_libraries= |
31695 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 31696 | do |
3eca31dc | 31697 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
31698 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then |
31699 | ac_find_libraries=$ac_dir | |
31700 | break 2 | |
31701 | fi | |
31702 | done | |
31703 | done | |
31704 | ||
31705 | if test "$ac_find_libraries" != "" ; then | |
31706 | echo "$as_me:$LINENO: result: yes" >&5 | |
31707 | echo "${ECHO_T}yes" >&6 | |
31708 | ||
31709 | for ac_header in X11/extensions/xf86vmode.h | |
31710 | do | |
31711 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
31712 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31713 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31714 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31716 | else | |
31717 | cat >conftest.$ac_ext <<_ACEOF | |
31718 | /* confdefs.h. */ | |
31719 | _ACEOF | |
31720 | cat confdefs.h >>conftest.$ac_ext | |
31721 | cat >>conftest.$ac_ext <<_ACEOF | |
31722 | /* end confdefs.h. */ | |
31723 | ||
31724 | #if HAVE_X11_XLIB_H | |
31725 | #include <X11/Xlib.h> | |
31726 | #endif | |
31727 | ||
31728 | ||
31729 | #include <$ac_header> | |
31730 | _ACEOF | |
31731 | rm -f conftest.$ac_objext | |
31732 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31733 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31734 | ac_status=$? |
ac1cb8d3 VS |
31735 | grep -v '^ *+' conftest.er1 >conftest.err |
31736 | rm -f conftest.er1 | |
31737 | cat conftest.err >&5 | |
a848cd7e SC |
31738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31739 | (exit $ac_status); } && | |
d25774ab JS |
31740 | { ac_try='test -z "$ac_cxx_werror_flag" |
31741 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31743 | (eval $ac_try) 2>&5 | |
31744 | ac_status=$? | |
31745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31746 | (exit $ac_status); }; } && | |
31747 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31749 | (eval $ac_try) 2>&5 | |
31750 | ac_status=$? | |
31751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31752 | (exit $ac_status); }; }; then | |
31753 | eval "$as_ac_Header=yes" | |
31754 | else | |
31755 | echo "$as_me: failed program was:" >&5 | |
31756 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31757 | ||
31758 | eval "$as_ac_Header=no" | |
31759 | fi | |
ac1cb8d3 | 31760 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31761 | fi |
31762 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31763 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31764 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
31765 | cat >>confdefs.h <<_ACEOF | |
31766 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31767 | _ACEOF | |
31768 | ||
31769 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
31770 | ||
31771 | fi | |
31772 | ||
31773 | done | |
31774 | ||
31775 | else | |
31776 | echo "$as_me:$LINENO: result: no" >&5 | |
31777 | echo "${ECHO_T}no" >&6 | |
31778 | fi | |
31779 | ||
31780 | else | |
31781 | echo "$as_me:$LINENO: result: no" >&5 | |
31782 | echo "${ECHO_T}no" >&6 | |
dcc1b6ad VS |
31783 | { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5 |
31784 | echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;} | |
a848cd7e SC |
31785 | wxUSE_DISPLAY="no" |
31786 | fi | |
01cb68df RG |
31787 | elif test "$wxUSE_MSW" = 1; then |
31788 | ||
e5efa97e | 31789 | for ac_header in ddraw.h |
01cb68df RG |
31790 | do |
31791 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5294a27e | 31792 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
01cb68df RG |
31793 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
31794 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31795 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
01cb68df | 31796 | else |
5294a27e | 31797 | cat >conftest.$ac_ext <<_ACEOF |
01cb68df RG |
31798 | /* confdefs.h. */ |
31799 | _ACEOF | |
31800 | cat confdefs.h >>conftest.$ac_ext | |
31801 | cat >>conftest.$ac_ext <<_ACEOF | |
31802 | /* end confdefs.h. */ | |
5294a27e VZ |
31803 | #include <windows.h> |
31804 | ||
01cb68df RG |
31805 | #include <$ac_header> |
31806 | _ACEOF | |
31807 | rm -f conftest.$ac_objext | |
31808 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31809 | (eval $ac_compile) 2>conftest.er1 |
01cb68df | 31810 | ac_status=$? |
ac1cb8d3 VS |
31811 | grep -v '^ *+' conftest.er1 >conftest.err |
31812 | rm -f conftest.er1 | |
31813 | cat conftest.err >&5 | |
01cb68df RG |
31814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31815 | (exit $ac_status); } && | |
d25774ab JS |
31816 | { ac_try='test -z "$ac_cxx_werror_flag" |
31817 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31819 | (eval $ac_try) 2>&5 | |
31820 | ac_status=$? | |
31821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31822 | (exit $ac_status); }; } && | |
31823 | { ac_try='test -s conftest.$ac_objext' | |
01cb68df RG |
31824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31825 | (eval $ac_try) 2>&5 | |
31826 | ac_status=$? | |
31827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31828 | (exit $ac_status); }; }; then | |
5294a27e | 31829 | eval "$as_ac_Header=yes" |
01cb68df RG |
31830 | else |
31831 | echo "$as_me: failed program was:" >&5 | |
31832 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31833 | ||
5294a27e | 31834 | eval "$as_ac_Header=no" |
01cb68df | 31835 | fi |
ac1cb8d3 | 31836 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
01cb68df RG |
31837 | fi |
31838 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31839 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
01cb68df RG |
31840 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
31841 | cat >>confdefs.h <<_ACEOF | |
31842 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31843 | _ACEOF | |
31844 | ||
01cb68df RG |
31845 | fi |
31846 | ||
31847 | done | |
31848 | ||
a848cd7e SC |
31849 | fi |
31850 | fi | |
31851 | ||
31852 | ||
31853 | USE_OPENGL=0 | |
31854 | if test "$wxUSE_OPENGL" = "yes"; then | |
31855 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
31856 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
31857 | elif test "$wxUSE_MSW" = 1; then | |
31858 | OPENGL_LIBS="-lopengl32 -lglu32" | |
31859 | else | |
31860 | ||
31861 | ||
31862 | ac_find_includes= | |
31863 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
31864 | do | |
31865 | if test -f "$ac_dir/GL/gl.h"; then | |
31866 | ac_find_includes=$ac_dir | |
31867 | break | |
31868 | fi | |
31869 | done | |
31870 | ||
31871 | if test "$ac_find_includes" != "" ; then | |
31872 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
31873 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
31874 | ||
31875 | if test "x$ac_find_includes" = "x/usr/include"; then | |
31876 | ac_path_to_include="" | |
31877 | else | |
31878 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
31879 | result=$? | |
31880 | if test $result = 0; then | |
31881 | ac_path_to_include="" | |
31882 | else | |
31883 | ac_path_to_include=" -I$ac_find_includes" | |
31884 | fi | |
31885 | fi | |
31886 | ||
c92ad099 | 31887 | CPPFLAGS="$ac_path_to_include $CPPFLAGS" |
a848cd7e SC |
31888 | fi |
31889 | ||
31890 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
31891 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
31892 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
31893 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
31894 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31895 | fi | |
31896 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
31897 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
31898 | else | |
31899 | # Is the header compilable? | |
31900 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
31901 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
31902 | cat >conftest.$ac_ext <<_ACEOF | |
31903 | /* confdefs.h. */ | |
31904 | _ACEOF | |
31905 | cat confdefs.h >>conftest.$ac_ext | |
31906 | cat >>conftest.$ac_ext <<_ACEOF | |
31907 | /* end confdefs.h. */ | |
31908 | $ac_includes_default | |
31909 | #include <GL/gl.h> | |
31910 | _ACEOF | |
31911 | rm -f conftest.$ac_objext | |
31912 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31913 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31914 | ac_status=$? |
ac1cb8d3 VS |
31915 | grep -v '^ *+' conftest.er1 >conftest.err |
31916 | rm -f conftest.er1 | |
31917 | cat conftest.err >&5 | |
a848cd7e SC |
31918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31919 | (exit $ac_status); } && | |
d25774ab JS |
31920 | { ac_try='test -z "$ac_cxx_werror_flag" |
31921 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31923 | (eval $ac_try) 2>&5 | |
31924 | ac_status=$? | |
31925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31926 | (exit $ac_status); }; } && | |
31927 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31929 | (eval $ac_try) 2>&5 | |
31930 | ac_status=$? | |
31931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31932 | (exit $ac_status); }; }; then | |
31933 | ac_header_compiler=yes | |
31934 | else | |
31935 | echo "$as_me: failed program was:" >&5 | |
31936 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31937 | ||
31938 | ac_header_compiler=no | |
31939 | fi | |
ac1cb8d3 | 31940 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31941 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
31942 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31943 | ||
31944 | # Is the header present? | |
31945 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
31946 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
31947 | cat >conftest.$ac_ext <<_ACEOF | |
31948 | /* confdefs.h. */ | |
31949 | _ACEOF | |
31950 | cat confdefs.h >>conftest.$ac_ext | |
31951 | cat >>conftest.$ac_ext <<_ACEOF | |
31952 | /* end confdefs.h. */ | |
31953 | #include <GL/gl.h> | |
31954 | _ACEOF | |
31955 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31956 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31957 | ac_status=$? | |
31958 | grep -v '^ *+' conftest.er1 >conftest.err | |
31959 | rm -f conftest.er1 | |
31960 | cat conftest.err >&5 | |
31961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31962 | (exit $ac_status); } >/dev/null; then | |
31963 | if test -s conftest.err; then | |
5d7b7554 VZ |
31964 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
31965 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
31966 | else |
31967 | ac_cpp_err= | |
31968 | fi | |
31969 | else | |
31970 | ac_cpp_err=yes | |
31971 | fi | |
31972 | if test -z "$ac_cpp_err"; then | |
31973 | ac_header_preproc=yes | |
31974 | else | |
31975 | echo "$as_me: failed program was:" >&5 | |
31976 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31977 | ||
31978 | ac_header_preproc=no | |
31979 | fi | |
31980 | rm -f conftest.err conftest.$ac_ext | |
31981 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31982 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31983 | ||
31984 | # So? What about this header? | |
5d7b7554 | 31985 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 31986 | yes:no: ) |
a848cd7e SC |
31987 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
31988 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
31989 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 |
31990 | echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} | |
31991 | ac_header_preproc=yes | |
a848cd7e | 31992 | ;; |
ac1cb8d3 | 31993 | no:yes:* ) |
a848cd7e SC |
31994 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
31995 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
31996 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
31997 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
31998 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 | |
31999 | echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} | |
32000 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
32001 | echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
32002 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
32003 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
32004 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 |
32005 | echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
32006 | ( |
32007 | cat <<\_ASBOX | |
ac1cb8d3 VS |
32008 | ## ----------------------------------------- ## |
32009 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
32010 | ## ----------------------------------------- ## | |
a848cd7e SC |
32011 | _ASBOX |
32012 | ) | | |
32013 | sed "s/^/$as_me: WARNING: /" >&2 | |
32014 | ;; | |
32015 | esac | |
32016 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
32017 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
32018 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
32019 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32020 | else | |
32021 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
32022 | fi | |
32023 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
32024 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
32025 | ||
32026 | fi | |
32027 | if test $ac_cv_header_GL_gl_h = yes; then | |
32028 | ||
32029 | found_gl=0 | |
32030 | ||
32031 | echo "$as_me:$LINENO: checking for -lGL" >&5 | |
32032 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
32033 | ||
0ad5d837 VZ |
32034 | ac_find_libraries= |
32035 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 32036 | do |
3eca31dc | 32037 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
32038 | if test -f "$ac_dir/libGL.$ac_extension"; then |
32039 | ac_find_libraries=$ac_dir | |
32040 | break 2 | |
32041 | fi | |
32042 | done | |
32043 | done | |
32044 | ||
32045 | if test "$ac_find_libraries" != "" ; then | |
69120ee4 VZ |
32046 | echo "$as_me:$LINENO: result: yes" >&5 |
32047 | echo "${ECHO_T}yes" >&6 | |
32048 | ||
a848cd7e | 32049 | |
0ad5d837 | 32050 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
32051 | ac_path_to_link="" |
32052 | else | |
0ad5d837 VZ |
32053 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
32054 | result=$? | |
32055 | if test $result = 0; then | |
32056 | ac_path_to_link="" | |
32057 | else | |
32058 | ac_path_to_link=" -L$ac_find_libraries" | |
32059 | fi | |
a848cd7e SC |
32060 | fi |
32061 | ||
32062 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
32063 | LDFLAGS_GL="$ac_path_to_link" | |
32064 | fi | |
32065 | ||
69120ee4 VZ |
32066 | echo "$as_me:$LINENO: checking for -lGLU" >&5 |
32067 | echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6 | |
a848cd7e | 32068 | |
0ad5d837 VZ |
32069 | ac_find_libraries= |
32070 | for ac_dir in $SEARCH_LIB; | |
32071 | do | |
32072 | for ac_extension in a so sl dylib dll.a; do | |
32073 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
32074 | ac_find_libraries=$ac_dir | |
32075 | break 2 | |
32076 | fi | |
32077 | done | |
32078 | done | |
32079 | ||
a848cd7e SC |
32080 | if test "$ac_find_libraries" != "" ; then |
32081 | ||
0ad5d837 | 32082 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
32083 | ac_path_to_link="" |
32084 | else | |
0ad5d837 VZ |
32085 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
32086 | result=$? | |
32087 | if test $result = 0; then | |
32088 | ac_path_to_link="" | |
32089 | else | |
32090 | ac_path_to_link=" -L$ac_find_libraries" | |
32091 | fi | |
a848cd7e SC |
32092 | fi |
32093 | ||
32094 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
32095 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
32096 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
32097 | fi | |
32098 | ||
32099 | found_gl=1 | |
32100 | OPENGL_LIBS="-lGL -lGLU" | |
32101 | echo "$as_me:$LINENO: result: yes" >&5 | |
32102 | echo "${ECHO_T}yes" >&6 | |
69120ee4 VZ |
32103 | else |
32104 | echo "$as_me:$LINENO: result: no" >&5 | |
32105 | echo "${ECHO_T}no" >&6 | |
a848cd7e | 32106 | fi |
69120ee4 VZ |
32107 | else |
32108 | echo "$as_me:$LINENO: result: no" >&5 | |
32109 | echo "${ECHO_T}no" >&6 | |
a848cd7e SC |
32110 | fi |
32111 | ||
32112 | if test "$found_gl" != 1; then | |
a848cd7e SC |
32113 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 |
32114 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
32115 | ||
0ad5d837 VZ |
32116 | ac_find_libraries= |
32117 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 32118 | do |
3eca31dc | 32119 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
32120 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then |
32121 | ac_find_libraries=$ac_dir | |
32122 | break 2 | |
32123 | fi | |
32124 | done | |
32125 | done | |
32126 | ||
32127 | if test "$ac_find_libraries" != "" ; then | |
32128 | ||
0ad5d837 | 32129 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
32130 | ac_path_to_link="" |
32131 | else | |
0ad5d837 VZ |
32132 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
32133 | result=$? | |
32134 | if test $result = 0; then | |
32135 | ac_path_to_link="" | |
32136 | else | |
32137 | ac_path_to_link=" -L$ac_find_libraries" | |
32138 | fi | |
a848cd7e SC |
32139 | fi |
32140 | ||
32141 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
32142 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
32143 | echo "$as_me:$LINENO: result: yes" >&5 | |
32144 | echo "${ECHO_T}yes" >&6 | |
32145 | else | |
32146 | echo "$as_me:$LINENO: result: no" >&5 | |
32147 | echo "${ECHO_T}no" >&6 | |
32148 | fi | |
32149 | fi | |
32150 | ||
32151 | fi | |
32152 | ||
32153 | ||
32154 | ||
32155 | if test "x$OPENGL_LIBS" = "x"; then | |
32156 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 | |
32157 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
32158 | { (exit 1); exit 1; }; } | |
32159 | fi | |
32160 | fi | |
32161 | ||
32162 | if test "$wxUSE_OPENGL" = "yes"; then | |
32163 | USE_OPENGL=1 | |
32164 | cat >>confdefs.h <<\_ACEOF | |
32165 | #define wxUSE_OPENGL 1 | |
32166 | _ACEOF | |
32167 | ||
32168 | cat >>confdefs.h <<\_ACEOF | |
32169 | #define wxUSE_GLCANVAS 1 | |
32170 | _ACEOF | |
32171 | ||
32172 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" | |
32173 | fi | |
32174 | fi | |
32175 | ||
a848cd7e SC |
32176 | |
32177 | if test -n "$TOOLKIT" ; then | |
32178 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
32179 | fi | |
32180 | ||
a848cd7e SC |
32181 | |
32182 | ||
32183 | if test "$wxUSE_SHARED" = "yes"; then | |
32184 | case "${host}" in | |
32185 | *-pc-msdosdjgpp ) | |
32186 | wxUSE_SHARED=no | |
32187 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 | |
32188 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
32189 | ;; | |
32190 | esac | |
32191 | fi | |
32192 | ||
a848cd7e | 32193 | if test "$wxUSE_SHARED" = "yes"; then |
a848cd7e SC |
32194 | |
32195 | ||
32196 | found_versioning=no | |
32197 | ||
32198 | ||
32199 | if test $found_versioning = no ; then | |
32200 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 | |
32201 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
32202 | if test "${wx_cv_version_script+set}" = set; then | |
32203 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32204 | else | |
32205 | ||
32206 | echo "VER_1 { *; };" >conftest.sym | |
32207 | echo "int main() { return 0; }" >conftest.cpp | |
32208 | ||
32209 | if { ac_try=' | |
32210 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
32211 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' | |
32212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32213 | (eval $ac_try) 2>&5 | |
32214 | ac_status=$? | |
32215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32216 | (exit $ac_status); }; } ; then | |
32217 | if test -s conftest.stderr ; then | |
32218 | wx_cv_version_script=no | |
32219 | else | |
32220 | wx_cv_version_script=yes | |
32221 | fi | |
32222 | else | |
32223 | wx_cv_version_script=no | |
32224 | fi | |
e5d4b470 MW |
32225 | |
32226 | if test $wx_cv_version_script = yes | |
32227 | then | |
32228 | echo "struct B { virtual ~B() { } }; \ | |
32229 | struct D : public B { }; \ | |
32230 | void F() { D d; }" > conftest.cpp | |
32231 | ||
32232 | if { ac_try=' | |
32233 | $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
32234 | -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null' | |
32235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32236 | (eval $ac_try) 2>&5 | |
32237 | ac_status=$? | |
32238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32239 | (exit $ac_status); }; } && | |
32240 | { ac_try=' | |
32241 | $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
32242 | -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null' | |
32243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32244 | (eval $ac_try) 2>&5 | |
32245 | ac_status=$? | |
32246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32247 | (exit $ac_status); }; } | |
32248 | then | |
32249 | if { ac_try=' | |
32250 | $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
32251 | -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null' | |
32252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32253 | (eval $ac_try) 2>&5 | |
32254 | ac_status=$? | |
32255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32256 | (exit $ac_status); }; } | |
32257 | then | |
32258 | wx_cv_version_script=yes | |
32259 | else | |
32260 | wx_cv_version_script=no | |
32261 | fi | |
32262 | fi | |
32263 | fi | |
32264 | ||
a848cd7e | 32265 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp |
e5d4b470 | 32266 | rm -f conftest1.output conftest2.output conftest3.output |
a848cd7e SC |
32267 | |
32268 | fi | |
32269 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
32270 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
32271 | if test $wx_cv_version_script = yes ; then | |
32272 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" | |
32273 | fi | |
32274 | fi | |
32275 | ||
32276 | ||
32277 | case "${host}" in | |
32278 | *-*-linux* | *-*-gnu* ) | |
32279 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 32280 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
6ebeb4c7 | 32281 | ;; |
a848cd7e SC |
32282 | |
32283 | *-*-solaris2* ) | |
32284 | if test "$GCC" = yes ; then | |
c92ad099 | 32285 | CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS" |
a848cd7e SC |
32286 | |
32287 | saveLdflags="$LDFLAGS" | |
32288 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
32289 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 | |
32290 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
32291 | cat >conftest.$ac_ext <<_ACEOF | |
32292 | /* confdefs.h. */ | |
32293 | _ACEOF | |
32294 | cat confdefs.h >>conftest.$ac_ext | |
32295 | cat >>conftest.$ac_ext <<_ACEOF | |
32296 | /* end confdefs.h. */ | |
32297 | ||
32298 | int | |
32299 | main () | |
32300 | { | |
32301 | ||
32302 | ; | |
32303 | return 0; | |
32304 | } | |
32305 | _ACEOF | |
32306 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32307 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32308 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32309 | ac_status=$? |
ac1cb8d3 VS |
32310 | grep -v '^ *+' conftest.er1 >conftest.err |
32311 | rm -f conftest.er1 | |
32312 | cat conftest.err >&5 | |
a848cd7e SC |
32313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32314 | (exit $ac_status); } && | |
d25774ab JS |
32315 | { ac_try='test -z "$ac_cxx_werror_flag" |
32316 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32318 | (eval $ac_try) 2>&5 | |
32319 | ac_status=$? | |
32320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32321 | (exit $ac_status); }; } && | |
32322 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32324 | (eval $ac_try) 2>&5 | |
32325 | ac_status=$? | |
32326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32327 | (exit $ac_status); }; }; then | |
32328 | ||
32329 | echo "$as_me:$LINENO: result: yes" >&5 | |
32330 | echo "${ECHO_T}yes" >&6 | |
32331 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 32332 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
32333 | |
32334 | else | |
32335 | echo "$as_me: failed program was:" >&5 | |
32336 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32337 | ||
32338 | ||
32339 | echo "$as_me:$LINENO: result: no" >&5 | |
32340 | echo "${ECHO_T}no" >&6 | |
32341 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
32342 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
32343 | LDFLAGS="$saveLdflags -Wl,-R,/" | |
32344 | cat >conftest.$ac_ext <<_ACEOF | |
32345 | /* confdefs.h. */ | |
32346 | _ACEOF | |
32347 | cat confdefs.h >>conftest.$ac_ext | |
32348 | cat >>conftest.$ac_ext <<_ACEOF | |
32349 | /* end confdefs.h. */ | |
32350 | ||
32351 | int | |
32352 | main () | |
32353 | { | |
32354 | ||
32355 | ; | |
32356 | return 0; | |
32357 | } | |
32358 | _ACEOF | |
32359 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32360 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32361 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32362 | ac_status=$? |
ac1cb8d3 VS |
32363 | grep -v '^ *+' conftest.er1 >conftest.err |
32364 | rm -f conftest.er1 | |
32365 | cat conftest.err >&5 | |
a848cd7e SC |
32366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32367 | (exit $ac_status); } && | |
d25774ab JS |
32368 | { ac_try='test -z "$ac_cxx_werror_flag" |
32369 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32371 | (eval $ac_try) 2>&5 | |
32372 | ac_status=$? | |
32373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32374 | (exit $ac_status); }; } && | |
32375 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32377 | (eval $ac_try) 2>&5 | |
32378 | ac_status=$? | |
32379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32380 | (exit $ac_status); }; }; then | |
32381 | ||
ffa0583f | 32382 | echo "$as_me:$LINENO: result: yes" >&5 |
a848cd7e | 32383 | echo "${ECHO_T}yes" >&6 |
ffa0583f RL |
32384 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" |
32385 | WXCONFIG_RPATH="-Wl,-R,\$libdir" | |
32386 | ||
a848cd7e SC |
32387 | else |
32388 | echo "$as_me: failed program was:" >&5 | |
32389 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32390 | ||
32391 | ||
32392 | echo "$as_me:$LINENO: result: no" >&5 | |
32393 | echo "${ECHO_T}no" >&6 | |
32394 | ||
32395 | fi | |
ac1cb8d3 VS |
32396 | rm -f conftest.err conftest.$ac_objext \ |
32397 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32398 | |
32399 | fi | |
ac1cb8d3 VS |
32400 | rm -f conftest.err conftest.$ac_objext \ |
32401 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32402 | LDFLAGS="$saveLdflags" |
32403 | else | |
a848cd7e | 32404 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
ffa0583f | 32405 | WXCONFIG_RPATH="-R\$libdir" |
a848cd7e SC |
32406 | fi |
32407 | ;; | |
32408 | ||
cfda0ea8 | 32409 | *-*-darwin* ) |
0caebc27 MW |
32410 | install_name_tool=`which install_name_tool` |
32411 | if test "$install_name_tool" -a -x "$install_name_tool"; then | |
32412 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" | |
32413 | cat <<EOF >change-install-names | |
a848cd7e SC |
32414 | #!/bin/sh |
32415 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
32416 | inst_cmd="install_name_tool " | |
32417 | for i in \${libnames} ; do | |
32418 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
32419 | done | |
32420 | \${inst_cmd} \${3} | |
32421 | EOF | |
0caebc27 MW |
32422 | chmod +x change-install-names |
32423 | fi | |
a848cd7e SC |
32424 | ;; |
32425 | ||
32426 | *-*-cygwin* | *-*-mingw32* ) | |
5ff751d6 VZ |
32427 | WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL" |
32428 | ;; | |
a848cd7e | 32429 | |
81f90336 MW |
32430 | *-*-hpux* ) |
32431 | SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib" | |
32432 | WXCONFIG_RPATH="-Wl,+b,\$libdir" | |
5ff751d6 | 32433 | ;; |
81f90336 | 32434 | |
a848cd7e | 32435 | esac |
ceec2216 | 32436 | |
ffa0583f RL |
32437 | if test $wxUSE_RPATH = "no"; then |
32438 | SAMPLES_RPATH_FLAG='' | |
32439 | SAMPLES_RPATH_POSTLINK='' | |
32440 | WXCONFIG_RPATH='' | |
32441 | fi | |
32442 | ||
32443 | SHARED=1 | |
32444 | ||
32445 | else | |
32446 | ||
ceec2216 RL |
32447 | config_linkage_component="-static" |
32448 | SHARED=0 | |
ffa0583f | 32449 | |
ceec2216 | 32450 | fi |
a848cd7e | 32451 | |
a848cd7e | 32452 | |
ceec2216 RL |
32453 | UNICODE=0 |
32454 | lib_unicode_suffix= | |
32455 | WX_CHARTYPE="ansi" | |
32456 | if test "$wxUSE_UNICODE" = "yes"; then | |
32457 | lib_unicode_suffix=u | |
32458 | WX_CHARTYPE="unicode" | |
32459 | UNICODE=1 | |
a848cd7e SC |
32460 | fi |
32461 | ||
ceec2216 RL |
32462 | lib_debug_suffix= |
32463 | WX_DEBUGTYPE="release" | |
32464 | DEBUG_FLAG=0 | |
32465 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
32466 | lib_debug_suffix=d | |
32467 | WX_DEBUGTYPE="debug" | |
32468 | DEBUG_FLAG=1 | |
32469 | fi | |
a848cd7e | 32470 | |
ceec2216 RL |
32471 | WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR} |
32472 | WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'` | |
a848cd7e | 32473 | |
ceec2216 RL |
32474 | DEBUG_INFO=0 |
32475 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
32476 | DEBUG_INFO=1 | |
32477 | fi | |
a848cd7e | 32478 | |
ceec2216 | 32479 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
a848cd7e | 32480 | |
ceec2216 | 32481 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}" |
a848cd7e | 32482 | |
ceec2216 | 32483 | TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}" |
a848cd7e | 32484 | |
ceec2216 RL |
32485 | if test "$cross_compiling" = "yes"; then |
32486 | HOST_SUFFIX="-$host_alias" | |
32487 | TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX" | |
32488 | TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME" | |
a848cd7e SC |
32489 | fi |
32490 | ||
dd21ced8 | 32491 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
abc736fd MW |
32492 | if test "${TOOLKIT_DIR}" = "os2"; then |
32493 | WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" | |
32494 | else | |
32495 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" | |
32496 | fi | |
ceec2216 RL |
32497 | |
32498 | ||
32499 | ||
1d1af5ea DE |
32500 | if test "$wxUSE_COCOA" = 1; then |
32501 | ||
32502 | ||
32503 | ac_ext=c | |
32504 | ac_cpp='$CPP $CPPFLAGS' | |
32505 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32506 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32507 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
32508 | ||
32509 | ac_ext=m | |
32510 | ||
32511 | echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5 | |
32512 | echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6 | |
32513 | cat >conftest.$ac_ext <<_ACEOF | |
32514 | /* confdefs.h. */ | |
32515 | _ACEOF | |
32516 | cat confdefs.h >>conftest.$ac_ext | |
32517 | cat >>conftest.$ac_ext <<_ACEOF | |
32518 | /* end confdefs.h. */ | |
32519 | #include <AppKit/NSEvent.h> | |
32520 | #include <CoreFoundation/CoreFoundation.h> | |
32521 | ||
32522 | int | |
32523 | main () | |
32524 | { | |
32525 | ||
32526 | ; | |
32527 | return 0; | |
32528 | } | |
32529 | _ACEOF | |
32530 | rm -f conftest.$ac_objext | |
32531 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32532 | (eval $ac_compile) 2>conftest.er1 | |
32533 | ac_status=$? | |
32534 | grep -v '^ *+' conftest.er1 >conftest.err | |
32535 | rm -f conftest.er1 | |
32536 | cat conftest.err >&5 | |
32537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32538 | (exit $ac_status); } && | |
d25774ab JS |
32539 | { ac_try='test -z "$ac_c_werror_flag" |
32540 | || test ! -s conftest.err' | |
1d1af5ea DE |
32541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32542 | (eval $ac_try) 2>&5 | |
32543 | ac_status=$? | |
32544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32545 | (exit $ac_status); }; } && | |
32546 | { ac_try='test -s conftest.$ac_objext' | |
32547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32548 | (eval $ac_try) 2>&5 | |
32549 | ac_status=$? | |
32550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32551 | (exit $ac_status); }; }; then | |
32552 | echo "$as_me:$LINENO: result: no" >&5 | |
32553 | echo "${ECHO_T}no" >&6 | |
32554 | else | |
32555 | echo "$as_me: failed program was:" >&5 | |
32556 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32557 | ||
32558 | echo "$as_me:$LINENO: result: yes" >&5 | |
32559 | echo "${ECHO_T}yes" >&6 | |
32560 | echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5 | |
32561 | echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6 | |
32562 | cat >conftest.$ac_ext <<_ACEOF | |
32563 | /* confdefs.h. */ | |
32564 | _ACEOF | |
32565 | cat confdefs.h >>conftest.$ac_ext | |
32566 | cat >>conftest.$ac_ext <<_ACEOF | |
32567 | /* end confdefs.h. */ | |
32568 | #define __Point__ 1 | |
32569 | #include <AppKit/NSEvent.h> | |
32570 | #include <CoreFoundation/CoreFoundation.h> | |
32571 | ||
32572 | int | |
32573 | main () | |
32574 | { | |
32575 | ||
32576 | ; | |
32577 | return 0; | |
32578 | } | |
32579 | _ACEOF | |
32580 | rm -f conftest.$ac_objext | |
32581 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32582 | (eval $ac_compile) 2>conftest.er1 | |
32583 | ac_status=$? | |
32584 | grep -v '^ *+' conftest.er1 >conftest.err | |
32585 | rm -f conftest.er1 | |
32586 | cat conftest.err >&5 | |
32587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32588 | (exit $ac_status); } && | |
d25774ab JS |
32589 | { ac_try='test -z "$ac_c_werror_flag" |
32590 | || test ! -s conftest.err' | |
1d1af5ea DE |
32591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32592 | (eval $ac_try) 2>&5 | |
32593 | ac_status=$? | |
32594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32595 | (exit $ac_status); }; } && | |
32596 | { ac_try='test -s conftest.$ac_objext' | |
32597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32598 | (eval $ac_try) 2>&5 | |
32599 | ac_status=$? | |
32600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32601 | (exit $ac_status); }; }; then | |
32602 | echo "$as_me:$LINENO: result: yes" >&5 | |
32603 | echo "${ECHO_T}yes" >&6 | |
32604 | cat >>confdefs.h <<\_ACEOF | |
32605 | #define __Point__ 1 | |
32606 | _ACEOF | |
32607 | ||
32608 | ||
32609 | else | |
32610 | echo "$as_me: failed program was:" >&5 | |
32611 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32612 | ||
32613 | { { echo "$as_me:$LINENO: error: no | |
32614 | See \`config.log' for more details." >&5 | |
32615 | echo "$as_me: error: no | |
32616 | See \`config.log' for more details." >&2;} | |
32617 | { (exit 1); exit 1; }; } | |
32618 | ||
32619 | fi | |
32620 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32621 | ||
32622 | fi | |
32623 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5d7b7554 VZ |
32624 | ac_ext=cc |
32625 | ac_cpp='$CXXCPP $CPPFLAGS' | |
32626 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32627 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32628 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
1d1af5ea DE |
32629 | |
32630 | fi | |
32631 | ||
a848cd7e | 32632 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
abb9aae7 VZ |
32633 | WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r" |
32634 | WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc" | |
ceec2216 | 32635 | |
a848cd7e | 32636 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
a848cd7e SC |
32637 | |
32638 | # Extract the first word of "Rez", so it can be a program name with args. | |
32639 | set dummy Rez; ac_word=$2 | |
32640 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
32641 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 32642 | if test "${ac_cv_prog_REZ+set}" = set; then |
a848cd7e SC |
32643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
32644 | else | |
8ced02f6 DE |
32645 | if test -n "$REZ"; then |
32646 | ac_cv_prog_REZ="$REZ" # Let the user override the test. | |
a848cd7e SC |
32647 | else |
32648 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
32649 | for as_dir in $PATH | |
32650 | do | |
32651 | IFS=$as_save_IFS | |
32652 | test -z "$as_dir" && as_dir=. | |
32653 | for ac_exec_ext in '' $ac_executable_extensions; do | |
32654 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 32655 | ac_cv_prog_REZ="Rez" |
a848cd7e SC |
32656 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
32657 | break 2 | |
32658 | fi | |
32659 | done | |
32660 | done | |
32661 | ||
8ced02f6 | 32662 | test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez" |
a848cd7e SC |
32663 | fi |
32664 | fi | |
8ced02f6 DE |
32665 | REZ=$ac_cv_prog_REZ |
32666 | if test -n "$REZ"; then | |
32667 | echo "$as_me:$LINENO: result: $REZ" >&5 | |
32668 | echo "${ECHO_T}$REZ" >&6 | |
a848cd7e SC |
32669 | else |
32670 | echo "$as_me:$LINENO: result: no" >&5 | |
32671 | echo "${ECHO_T}no" >&6 | |
32672 | fi | |
32673 | ||
32674 | # Extract the first word of "DeRez", so it can be a program name with args. | |
32675 | set dummy DeRez; ac_word=$2 | |
32676 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
32677 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
32678 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
32679 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32680 | else | |
32681 | if test -n "$DEREZ"; then | |
32682 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
32683 | else | |
32684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
32685 | for as_dir in $PATH | |
32686 | do | |
32687 | IFS=$as_save_IFS | |
32688 | test -z "$as_dir" && as_dir=. | |
32689 | for ac_exec_ext in '' $ac_executable_extensions; do | |
32690 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
32691 | ac_cv_prog_DEREZ="DeRez" | |
32692 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
32693 | break 2 | |
32694 | fi | |
32695 | done | |
32696 | done | |
32697 | ||
32698 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
32699 | fi | |
32700 | fi | |
32701 | DEREZ=$ac_cv_prog_DEREZ | |
32702 | if test -n "$DEREZ"; then | |
32703 | echo "$as_me:$LINENO: result: $DEREZ" >&5 | |
32704 | echo "${ECHO_T}$DEREZ" >&6 | |
32705 | else | |
32706 | echo "$as_me:$LINENO: result: no" >&5 | |
32707 | echo "${ECHO_T}no" >&6 | |
32708 | fi | |
32709 | ||
32710 | # Extract the first word of "SetFile", so it can be a program name with args. | |
32711 | set dummy SetFile; ac_word=$2 | |
32712 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
32713 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
32714 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
32715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32716 | else | |
32717 | if test -n "$SETFILE"; then | |
32718 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
32719 | else | |
32720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
32721 | for as_dir in $PATH | |
32722 | do | |
32723 | IFS=$as_save_IFS | |
32724 | test -z "$as_dir" && as_dir=. | |
32725 | for ac_exec_ext in '' $ac_executable_extensions; do | |
32726 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
32727 | ac_cv_prog_SETFILE="SetFile" | |
32728 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
32729 | break 2 | |
32730 | fi | |
32731 | done | |
32732 | done | |
32733 | ||
32734 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
32735 | fi | |
32736 | fi | |
32737 | SETFILE=$ac_cv_prog_SETFILE | |
32738 | if test -n "$SETFILE"; then | |
32739 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
32740 | echo "${ECHO_T}$SETFILE" >&6 | |
32741 | else | |
32742 | echo "$as_me:$LINENO: result: no" >&5 | |
32743 | echo "${ECHO_T}no" >&6 | |
32744 | fi | |
32745 | ||
32746 | ||
32747 | MACSETFILE="\$(SETFILE)" | |
32748 | ||
32749 | if test "$wxUSE_MAC" = 1; then | |
8ced02f6 | 32750 | POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o" |
004ee6da RL |
32751 | RESCOMP="$REZ" |
32752 | WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o" | |
a848cd7e | 32753 | else |
004ee6da RL |
32754 | POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}" |
32755 | RESCOMP="echo -n \| $REZ" | |
32756 | WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII" | |
a848cd7e | 32757 | fi |
004ee6da | 32758 | |
a848cd7e | 32759 | else |
ffa0583f | 32760 | MACSETFILE="@true" |
a848cd7e | 32761 | |
8ced02f6 | 32762 | if test "$wxUSE_PM" = 1; then |
004ee6da RL |
32763 | RESCOMP="emxbind" |
32764 | WXCONFIG_RESFLAGS="-ep" | |
32765 | ||
32766 | POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS" | |
a848cd7e | 32767 | else |
8ced02f6 | 32768 | POSTLINK_COMMAND="@true" |
a848cd7e | 32769 | fi |
004ee6da | 32770 | |
a848cd7e SC |
32771 | fi |
32772 | ||
32773 | ||
32774 | ||
32775 | echo "$as_me:$LINENO: checking for mode_t" >&5 | |
32776 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
32777 | if test "${ac_cv_type_mode_t+set}" = set; then | |
32778 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32779 | else | |
32780 | cat >conftest.$ac_ext <<_ACEOF | |
32781 | /* confdefs.h. */ | |
32782 | _ACEOF | |
32783 | cat confdefs.h >>conftest.$ac_ext | |
32784 | cat >>conftest.$ac_ext <<_ACEOF | |
32785 | /* end confdefs.h. */ | |
32786 | $ac_includes_default | |
32787 | int | |
32788 | main () | |
32789 | { | |
32790 | if ((mode_t *) 0) | |
32791 | return 0; | |
32792 | if (sizeof (mode_t)) | |
32793 | return 0; | |
32794 | ; | |
32795 | return 0; | |
32796 | } | |
32797 | _ACEOF | |
32798 | rm -f conftest.$ac_objext | |
32799 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32800 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32801 | ac_status=$? |
ac1cb8d3 VS |
32802 | grep -v '^ *+' conftest.er1 >conftest.err |
32803 | rm -f conftest.er1 | |
32804 | cat conftest.err >&5 | |
a848cd7e SC |
32805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32806 | (exit $ac_status); } && | |
d25774ab JS |
32807 | { ac_try='test -z "$ac_cxx_werror_flag" |
32808 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32810 | (eval $ac_try) 2>&5 | |
32811 | ac_status=$? | |
32812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32813 | (exit $ac_status); }; } && | |
32814 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32816 | (eval $ac_try) 2>&5 | |
32817 | ac_status=$? | |
32818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32819 | (exit $ac_status); }; }; then | |
32820 | ac_cv_type_mode_t=yes | |
32821 | else | |
32822 | echo "$as_me: failed program was:" >&5 | |
32823 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32824 | ||
32825 | ac_cv_type_mode_t=no | |
32826 | fi | |
ac1cb8d3 | 32827 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32828 | fi |
32829 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
32830 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
32831 | if test $ac_cv_type_mode_t = yes; then | |
32832 | : | |
32833 | else | |
32834 | ||
32835 | cat >>confdefs.h <<_ACEOF | |
32836 | #define mode_t int | |
32837 | _ACEOF | |
32838 | ||
32839 | fi | |
32840 | ||
32841 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
32842 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
32843 | if test "${ac_cv_type_off_t+set}" = set; then | |
32844 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32845 | else | |
32846 | cat >conftest.$ac_ext <<_ACEOF | |
32847 | /* confdefs.h. */ | |
32848 | _ACEOF | |
32849 | cat confdefs.h >>conftest.$ac_ext | |
32850 | cat >>conftest.$ac_ext <<_ACEOF | |
32851 | /* end confdefs.h. */ | |
32852 | $ac_includes_default | |
32853 | int | |
32854 | main () | |
32855 | { | |
32856 | if ((off_t *) 0) | |
32857 | return 0; | |
32858 | if (sizeof (off_t)) | |
32859 | return 0; | |
32860 | ; | |
32861 | return 0; | |
32862 | } | |
32863 | _ACEOF | |
32864 | rm -f conftest.$ac_objext | |
32865 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32866 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32867 | ac_status=$? |
ac1cb8d3 VS |
32868 | grep -v '^ *+' conftest.er1 >conftest.err |
32869 | rm -f conftest.er1 | |
32870 | cat conftest.err >&5 | |
a848cd7e SC |
32871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32872 | (exit $ac_status); } && | |
d25774ab JS |
32873 | { ac_try='test -z "$ac_cxx_werror_flag" |
32874 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32876 | (eval $ac_try) 2>&5 | |
32877 | ac_status=$? | |
32878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32879 | (exit $ac_status); }; } && | |
32880 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32882 | (eval $ac_try) 2>&5 | |
32883 | ac_status=$? | |
32884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32885 | (exit $ac_status); }; }; then | |
32886 | ac_cv_type_off_t=yes | |
32887 | else | |
32888 | echo "$as_me: failed program was:" >&5 | |
32889 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32890 | ||
32891 | ac_cv_type_off_t=no | |
32892 | fi | |
ac1cb8d3 | 32893 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32894 | fi |
32895 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
32896 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
32897 | if test $ac_cv_type_off_t = yes; then | |
32898 | : | |
32899 | else | |
32900 | ||
32901 | cat >>confdefs.h <<_ACEOF | |
32902 | #define off_t long | |
32903 | _ACEOF | |
32904 | ||
32905 | fi | |
32906 | ||
32907 | echo "$as_me:$LINENO: checking for pid_t" >&5 | |
32908 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
32909 | if test "${ac_cv_type_pid_t+set}" = set; then | |
32910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32911 | else | |
32912 | cat >conftest.$ac_ext <<_ACEOF | |
32913 | /* confdefs.h. */ | |
32914 | _ACEOF | |
32915 | cat confdefs.h >>conftest.$ac_ext | |
32916 | cat >>conftest.$ac_ext <<_ACEOF | |
32917 | /* end confdefs.h. */ | |
32918 | $ac_includes_default | |
32919 | int | |
32920 | main () | |
32921 | { | |
32922 | if ((pid_t *) 0) | |
32923 | return 0; | |
32924 | if (sizeof (pid_t)) | |
32925 | return 0; | |
32926 | ; | |
32927 | return 0; | |
32928 | } | |
32929 | _ACEOF | |
32930 | rm -f conftest.$ac_objext | |
32931 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32932 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32933 | ac_status=$? |
ac1cb8d3 VS |
32934 | grep -v '^ *+' conftest.er1 >conftest.err |
32935 | rm -f conftest.er1 | |
32936 | cat conftest.err >&5 | |
a848cd7e SC |
32937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32938 | (exit $ac_status); } && | |
d25774ab JS |
32939 | { ac_try='test -z "$ac_cxx_werror_flag" |
32940 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32942 | (eval $ac_try) 2>&5 | |
32943 | ac_status=$? | |
32944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32945 | (exit $ac_status); }; } && | |
32946 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32948 | (eval $ac_try) 2>&5 | |
32949 | ac_status=$? | |
32950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32951 | (exit $ac_status); }; }; then | |
32952 | ac_cv_type_pid_t=yes | |
32953 | else | |
32954 | echo "$as_me: failed program was:" >&5 | |
32955 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32956 | ||
32957 | ac_cv_type_pid_t=no | |
32958 | fi | |
ac1cb8d3 | 32959 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32960 | fi |
32961 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
32962 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
32963 | if test $ac_cv_type_pid_t = yes; then | |
32964 | : | |
32965 | else | |
32966 | ||
32967 | cat >>confdefs.h <<_ACEOF | |
32968 | #define pid_t int | |
32969 | _ACEOF | |
32970 | ||
32971 | fi | |
32972 | ||
32973 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
32974 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
32975 | if test "${ac_cv_type_size_t+set}" = set; then | |
32976 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32977 | else | |
32978 | cat >conftest.$ac_ext <<_ACEOF | |
32979 | /* confdefs.h. */ | |
32980 | _ACEOF | |
32981 | cat confdefs.h >>conftest.$ac_ext | |
32982 | cat >>conftest.$ac_ext <<_ACEOF | |
32983 | /* end confdefs.h. */ | |
32984 | $ac_includes_default | |
32985 | int | |
32986 | main () | |
32987 | { | |
32988 | if ((size_t *) 0) | |
32989 | return 0; | |
32990 | if (sizeof (size_t)) | |
32991 | return 0; | |
32992 | ; | |
32993 | return 0; | |
32994 | } | |
32995 | _ACEOF | |
32996 | rm -f conftest.$ac_objext | |
32997 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32998 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32999 | ac_status=$? |
ac1cb8d3 VS |
33000 | grep -v '^ *+' conftest.er1 >conftest.err |
33001 | rm -f conftest.er1 | |
33002 | cat conftest.err >&5 | |
a848cd7e SC |
33003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33004 | (exit $ac_status); } && | |
d25774ab JS |
33005 | { ac_try='test -z "$ac_cxx_werror_flag" |
33006 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33008 | (eval $ac_try) 2>&5 | |
33009 | ac_status=$? | |
33010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33011 | (exit $ac_status); }; } && | |
33012 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33014 | (eval $ac_try) 2>&5 | |
33015 | ac_status=$? | |
33016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33017 | (exit $ac_status); }; }; then | |
33018 | ac_cv_type_size_t=yes | |
33019 | else | |
33020 | echo "$as_me: failed program was:" >&5 | |
33021 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33022 | ||
33023 | ac_cv_type_size_t=no | |
33024 | fi | |
ac1cb8d3 | 33025 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33026 | fi |
33027 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
33028 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
33029 | if test $ac_cv_type_size_t = yes; then | |
33030 | : | |
33031 | else | |
33032 | ||
33033 | cat >>confdefs.h <<_ACEOF | |
33034 | #define size_t unsigned | |
33035 | _ACEOF | |
33036 | ||
33037 | fi | |
33038 | ||
33039 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 | |
33040 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
33041 | if test "${ac_cv_type_uid_t+set}" = set; then | |
33042 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33043 | else | |
33044 | cat >conftest.$ac_ext <<_ACEOF | |
33045 | /* confdefs.h. */ | |
33046 | _ACEOF | |
33047 | cat confdefs.h >>conftest.$ac_ext | |
33048 | cat >>conftest.$ac_ext <<_ACEOF | |
33049 | /* end confdefs.h. */ | |
33050 | #include <sys/types.h> | |
33051 | ||
33052 | _ACEOF | |
33053 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
33054 | $EGREP "uid_t" >/dev/null 2>&1; then | |
33055 | ac_cv_type_uid_t=yes | |
33056 | else | |
33057 | ac_cv_type_uid_t=no | |
33058 | fi | |
33059 | rm -f conftest* | |
33060 | ||
33061 | fi | |
33062 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 | |
33063 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
33064 | if test $ac_cv_type_uid_t = no; then | |
33065 | ||
33066 | cat >>confdefs.h <<\_ACEOF | |
33067 | #define uid_t int | |
33068 | _ACEOF | |
33069 | ||
33070 | ||
33071 | cat >>confdefs.h <<\_ACEOF | |
33072 | #define gid_t int | |
33073 | _ACEOF | |
33074 | ||
33075 | fi | |
33076 | ||
33077 | ||
d51253e8 RL |
33078 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
33079 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | |
33080 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
33081 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33082 | else | |
33083 | cat >conftest.$ac_ext <<_ACEOF | |
33084 | /* confdefs.h. */ | |
33085 | _ACEOF | |
33086 | cat confdefs.h >>conftest.$ac_ext | |
33087 | cat >>conftest.$ac_ext <<_ACEOF | |
33088 | /* end confdefs.h. */ | |
33089 | $ac_includes_default | |
33090 | int | |
33091 | main () | |
33092 | { | |
33093 | if ((ssize_t *) 0) | |
33094 | return 0; | |
33095 | if (sizeof (ssize_t)) | |
33096 | return 0; | |
33097 | ; | |
33098 | return 0; | |
33099 | } | |
33100 | _ACEOF | |
33101 | rm -f conftest.$ac_objext | |
33102 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33103 | (eval $ac_compile) 2>conftest.er1 | |
33104 | ac_status=$? | |
33105 | grep -v '^ *+' conftest.er1 >conftest.err | |
33106 | rm -f conftest.er1 | |
33107 | cat conftest.err >&5 | |
33108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33109 | (exit $ac_status); } && | |
d25774ab JS |
33110 | { ac_try='test -z "$ac_cxx_werror_flag" |
33111 | || test ! -s conftest.err' | |
d51253e8 RL |
33112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33113 | (eval $ac_try) 2>&5 | |
33114 | ac_status=$? | |
33115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33116 | (exit $ac_status); }; } && | |
33117 | { ac_try='test -s conftest.$ac_objext' | |
33118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33119 | (eval $ac_try) 2>&5 | |
33120 | ac_status=$? | |
33121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33122 | (exit $ac_status); }; }; then | |
33123 | ac_cv_type_ssize_t=yes | |
33124 | else | |
33125 | echo "$as_me: failed program was:" >&5 | |
33126 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33127 | ||
33128 | ac_cv_type_ssize_t=no | |
33129 | fi | |
33130 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33131 | fi | |
33132 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 | |
33133 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 | |
33134 | if test $ac_cv_type_ssize_t = yes; then | |
33135 | ||
33136 | cat >>confdefs.h <<_ACEOF | |
33137 | #define HAVE_SSIZE_T 1 | |
33138 | _ACEOF | |
33139 | ||
33140 | ||
33141 | fi | |
33142 | ||
33143 | ||
a848cd7e SC |
33144 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 |
33145 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
33146 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
33147 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33148 | else | |
33149 | ||
33150 | cat >conftest.$ac_ext <<_ACEOF | |
33151 | /* confdefs.h. */ | |
33152 | _ACEOF | |
33153 | cat confdefs.h >>conftest.$ac_ext | |
33154 | cat >>conftest.$ac_ext <<_ACEOF | |
33155 | /* end confdefs.h. */ | |
33156 | #include <stddef.h> | |
33157 | int | |
33158 | main () | |
33159 | { | |
33160 | ||
33161 | return 0; } | |
33162 | ||
33163 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
33164 | ||
33165 | int bar() { | |
33166 | ||
33167 | ; | |
33168 | return 0; | |
33169 | } | |
33170 | _ACEOF | |
33171 | rm -f conftest.$ac_objext | |
33172 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33173 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33174 | ac_status=$? |
ac1cb8d3 VS |
33175 | grep -v '^ *+' conftest.er1 >conftest.err |
33176 | rm -f conftest.er1 | |
33177 | cat conftest.err >&5 | |
a848cd7e SC |
33178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33179 | (exit $ac_status); } && | |
d25774ab JS |
33180 | { ac_try='test -z "$ac_cxx_werror_flag" |
33181 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33183 | (eval $ac_try) 2>&5 | |
33184 | ac_status=$? | |
33185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33186 | (exit $ac_status); }; } && | |
33187 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33189 | (eval $ac_try) 2>&5 | |
33190 | ac_status=$? | |
33191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33192 | (exit $ac_status); }; }; then | |
33193 | wx_cv_size_t_is_uint=no | |
33194 | else | |
33195 | echo "$as_me: failed program was:" >&5 | |
33196 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33197 | ||
33198 | wx_cv_size_t_is_uint=yes | |
33199 | ||
33200 | fi | |
ac1cb8d3 | 33201 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33202 | |
33203 | ||
33204 | fi | |
33205 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
33206 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
33207 | ||
33208 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
33209 | cat >>confdefs.h <<\_ACEOF | |
33210 | #define wxSIZE_T_IS_UINT 1 | |
33211 | _ACEOF | |
33212 | ||
33213 | else | |
33214 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 | |
33215 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
33216 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
33217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33218 | else | |
33219 | cat >conftest.$ac_ext <<_ACEOF | |
33220 | /* confdefs.h. */ | |
33221 | _ACEOF | |
33222 | cat confdefs.h >>conftest.$ac_ext | |
33223 | cat >>conftest.$ac_ext <<_ACEOF | |
33224 | /* end confdefs.h. */ | |
33225 | #include <stddef.h> | |
33226 | int | |
33227 | main () | |
33228 | { | |
33229 | ||
33230 | return 0; } | |
33231 | ||
33232 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
33233 | ||
33234 | int bar() { | |
33235 | ||
33236 | ; | |
33237 | return 0; | |
33238 | } | |
33239 | _ACEOF | |
33240 | rm -f conftest.$ac_objext | |
33241 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33242 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33243 | ac_status=$? |
ac1cb8d3 VS |
33244 | grep -v '^ *+' conftest.er1 >conftest.err |
33245 | rm -f conftest.er1 | |
33246 | cat conftest.err >&5 | |
a848cd7e SC |
33247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33248 | (exit $ac_status); } && | |
d25774ab JS |
33249 | { ac_try='test -z "$ac_cxx_werror_flag" |
33250 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33252 | (eval $ac_try) 2>&5 | |
33253 | ac_status=$? | |
33254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33255 | (exit $ac_status); }; } && | |
33256 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33258 | (eval $ac_try) 2>&5 | |
33259 | ac_status=$? | |
33260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33261 | (exit $ac_status); }; }; then | |
33262 | wx_cv_size_t_is_ulong=no | |
33263 | else | |
33264 | echo "$as_me: failed program was:" >&5 | |
33265 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33266 | ||
33267 | wx_cv_size_t_is_ulong=yes | |
33268 | ||
33269 | fi | |
ac1cb8d3 | 33270 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33271 | |
33272 | fi | |
33273 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
33274 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
33275 | ||
33276 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
33277 | cat >>confdefs.h <<\_ACEOF | |
33278 | #define wxSIZE_T_IS_ULONG 1 | |
33279 | _ACEOF | |
33280 | ||
33281 | fi | |
33282 | fi | |
33283 | ||
a848cd7e SC |
33284 | |
33285 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 | |
33286 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
33287 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
33288 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33289 | else | |
33290 | ||
33291 | cat >conftest.$ac_ext <<_ACEOF | |
33292 | /* confdefs.h. */ | |
33293 | _ACEOF | |
33294 | cat confdefs.h >>conftest.$ac_ext | |
33295 | cat >>conftest.$ac_ext <<_ACEOF | |
33296 | /* end confdefs.h. */ | |
33297 | #include <pwd.h> | |
33298 | int | |
33299 | main () | |
33300 | { | |
33301 | ||
33302 | char *p; | |
33303 | struct passwd *pw; | |
33304 | p = pw->pw_gecos; | |
33305 | ||
33306 | ; | |
33307 | return 0; | |
33308 | } | |
33309 | _ACEOF | |
33310 | rm -f conftest.$ac_objext | |
33311 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33312 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33313 | ac_status=$? |
ac1cb8d3 VS |
33314 | grep -v '^ *+' conftest.er1 >conftest.err |
33315 | rm -f conftest.er1 | |
33316 | cat conftest.err >&5 | |
a848cd7e SC |
33317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33318 | (exit $ac_status); } && | |
d25774ab JS |
33319 | { ac_try='test -z "$ac_cxx_werror_flag" |
33320 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33322 | (eval $ac_try) 2>&5 | |
33323 | ac_status=$? | |
33324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33325 | (exit $ac_status); }; } && | |
33326 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33328 | (eval $ac_try) 2>&5 | |
33329 | ac_status=$? | |
33330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33331 | (exit $ac_status); }; }; then | |
33332 | ||
33333 | wx_cv_struct_pw_gecos=yes | |
33334 | ||
33335 | else | |
33336 | echo "$as_me: failed program was:" >&5 | |
33337 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33338 | ||
33339 | ||
33340 | wx_cv_struct_pw_gecos=no | |
33341 | ||
33342 | ||
33343 | fi | |
ac1cb8d3 | 33344 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33345 | |
33346 | ||
33347 | fi | |
33348 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
33349 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
33350 | ||
33351 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
33352 | cat >>confdefs.h <<\_ACEOF | |
33353 | #define HAVE_PW_GECOS 1 | |
33354 | _ACEOF | |
33355 | ||
33356 | fi | |
33357 | ||
33358 | ||
47a7e797 | 33359 | if test "$wxUSE_WCHAR_T" = "yes"; then |
a848cd7e SC |
33360 | cat >>confdefs.h <<\_ACEOF |
33361 | #define wxUSE_WCHAR_T 1 | |
33362 | _ACEOF | |
33363 | ||
33364 | ||
33365 | WCSLEN_FOUND=0 | |
33366 | WCHAR_LINK= | |
33367 | ||
33368 | for ac_func in wcslen | |
33369 | do | |
33370 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33371 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33372 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33373 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33374 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33375 | else | |
33376 | cat >conftest.$ac_ext <<_ACEOF | |
33377 | /* confdefs.h. */ | |
33378 | _ACEOF | |
33379 | cat confdefs.h >>conftest.$ac_ext | |
33380 | cat >>conftest.$ac_ext <<_ACEOF | |
33381 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33382 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33383 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33384 | #define $ac_func innocuous_$ac_func | |
33385 | ||
a848cd7e SC |
33386 | /* System header to define __stub macros and hopefully few prototypes, |
33387 | which can conflict with char $ac_func (); below. | |
33388 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33389 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33390 | |
a848cd7e SC |
33391 | #ifdef __STDC__ |
33392 | # include <limits.h> | |
33393 | #else | |
33394 | # include <assert.h> | |
33395 | #endif | |
ac1cb8d3 VS |
33396 | |
33397 | #undef $ac_func | |
33398 | ||
a848cd7e SC |
33399 | /* Override any gcc2 internal prototype to avoid an error. */ |
33400 | #ifdef __cplusplus | |
33401 | extern "C" | |
33402 | { | |
33403 | #endif | |
33404 | /* We use char because int might match the return type of a gcc2 | |
33405 | builtin and then its argument prototype would still apply. */ | |
33406 | char $ac_func (); | |
33407 | /* The GNU C library defines this for functions which it implements | |
33408 | to always fail with ENOSYS. Some functions are actually named | |
33409 | something starting with __ and the normal name is an alias. */ | |
33410 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33411 | choke me | |
33412 | #else | |
33413 | char (*f) () = $ac_func; | |
33414 | #endif | |
33415 | #ifdef __cplusplus | |
33416 | } | |
33417 | #endif | |
33418 | ||
33419 | int | |
33420 | main () | |
33421 | { | |
33422 | return f != $ac_func; | |
33423 | ; | |
33424 | return 0; | |
33425 | } | |
33426 | _ACEOF | |
33427 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33428 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33429 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33430 | ac_status=$? |
ac1cb8d3 VS |
33431 | grep -v '^ *+' conftest.er1 >conftest.err |
33432 | rm -f conftest.er1 | |
33433 | cat conftest.err >&5 | |
a848cd7e SC |
33434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33435 | (exit $ac_status); } && | |
d25774ab JS |
33436 | { ac_try='test -z "$ac_cxx_werror_flag" |
33437 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33439 | (eval $ac_try) 2>&5 | |
33440 | ac_status=$? | |
33441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33442 | (exit $ac_status); }; } && | |
33443 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33445 | (eval $ac_try) 2>&5 | |
33446 | ac_status=$? | |
33447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33448 | (exit $ac_status); }; }; then | |
33449 | eval "$as_ac_var=yes" | |
33450 | else | |
33451 | echo "$as_me: failed program was:" >&5 | |
33452 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33453 | ||
33454 | eval "$as_ac_var=no" | |
33455 | fi | |
ac1cb8d3 VS |
33456 | rm -f conftest.err conftest.$ac_objext \ |
33457 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33458 | fi |
33459 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33460 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33461 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33462 | cat >>confdefs.h <<_ACEOF | |
33463 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33464 | _ACEOF | |
33465 | WCSLEN_FOUND=1 | |
33466 | fi | |
33467 | done | |
33468 | ||
33469 | ||
33470 | if test "$WCSLEN_FOUND" = 0; then | |
33471 | if test "$TOOLKIT" = "MSW"; then | |
33472 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 | |
33473 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
33474 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
33475 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33476 | else | |
33477 | ac_check_lib_save_LIBS=$LIBS | |
33478 | LIBS="-lmsvcrt $LIBS" | |
33479 | cat >conftest.$ac_ext <<_ACEOF | |
33480 | /* confdefs.h. */ | |
33481 | _ACEOF | |
33482 | cat confdefs.h >>conftest.$ac_ext | |
33483 | cat >>conftest.$ac_ext <<_ACEOF | |
33484 | /* end confdefs.h. */ | |
33485 | ||
33486 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33487 | #ifdef __cplusplus | |
33488 | extern "C" | |
33489 | #endif | |
33490 | /* We use char because int might match the return type of a gcc2 | |
33491 | builtin and then its argument prototype would still apply. */ | |
33492 | char wcslen (); | |
33493 | int | |
33494 | main () | |
33495 | { | |
33496 | wcslen (); | |
33497 | ; | |
33498 | return 0; | |
33499 | } | |
33500 | _ACEOF | |
33501 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33502 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33503 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33504 | ac_status=$? |
ac1cb8d3 VS |
33505 | grep -v '^ *+' conftest.er1 >conftest.err |
33506 | rm -f conftest.er1 | |
33507 | cat conftest.err >&5 | |
a848cd7e SC |
33508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33509 | (exit $ac_status); } && | |
d25774ab JS |
33510 | { ac_try='test -z "$ac_cxx_werror_flag" |
33511 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33513 | (eval $ac_try) 2>&5 | |
33514 | ac_status=$? | |
33515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33516 | (exit $ac_status); }; } && | |
33517 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33519 | (eval $ac_try) 2>&5 | |
33520 | ac_status=$? | |
33521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33522 | (exit $ac_status); }; }; then | |
33523 | ac_cv_lib_msvcrt_wcslen=yes | |
33524 | else | |
33525 | echo "$as_me: failed program was:" >&5 | |
33526 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33527 | ||
33528 | ac_cv_lib_msvcrt_wcslen=no | |
33529 | fi | |
ac1cb8d3 VS |
33530 | rm -f conftest.err conftest.$ac_objext \ |
33531 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33532 | LIBS=$ac_check_lib_save_LIBS |
33533 | fi | |
33534 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
33535 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
33536 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
33537 | WCHAR_OK=1 | |
33538 | fi | |
33539 | ||
33540 | else | |
33541 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 | |
33542 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
33543 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
33544 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33545 | else | |
33546 | ac_check_lib_save_LIBS=$LIBS | |
33547 | LIBS="-lw $LIBS" | |
33548 | cat >conftest.$ac_ext <<_ACEOF | |
33549 | /* confdefs.h. */ | |
33550 | _ACEOF | |
33551 | cat confdefs.h >>conftest.$ac_ext | |
33552 | cat >>conftest.$ac_ext <<_ACEOF | |
33553 | /* end confdefs.h. */ | |
33554 | ||
33555 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33556 | #ifdef __cplusplus | |
33557 | extern "C" | |
33558 | #endif | |
33559 | /* We use char because int might match the return type of a gcc2 | |
33560 | builtin and then its argument prototype would still apply. */ | |
33561 | char wcslen (); | |
33562 | int | |
33563 | main () | |
33564 | { | |
33565 | wcslen (); | |
33566 | ; | |
33567 | return 0; | |
33568 | } | |
33569 | _ACEOF | |
33570 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33571 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33572 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33573 | ac_status=$? |
ac1cb8d3 VS |
33574 | grep -v '^ *+' conftest.er1 >conftest.err |
33575 | rm -f conftest.er1 | |
33576 | cat conftest.err >&5 | |
a848cd7e SC |
33577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33578 | (exit $ac_status); } && | |
d25774ab JS |
33579 | { ac_try='test -z "$ac_cxx_werror_flag" |
33580 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33582 | (eval $ac_try) 2>&5 | |
33583 | ac_status=$? | |
33584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33585 | (exit $ac_status); }; } && | |
33586 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33588 | (eval $ac_try) 2>&5 | |
33589 | ac_status=$? | |
33590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33591 | (exit $ac_status); }; }; then | |
33592 | ac_cv_lib_w_wcslen=yes | |
33593 | else | |
33594 | echo "$as_me: failed program was:" >&5 | |
33595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33596 | ||
33597 | ac_cv_lib_w_wcslen=no | |
33598 | fi | |
ac1cb8d3 VS |
33599 | rm -f conftest.err conftest.$ac_objext \ |
33600 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33601 | LIBS=$ac_check_lib_save_LIBS |
33602 | fi | |
33603 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
33604 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
33605 | if test $ac_cv_lib_w_wcslen = yes; then | |
33606 | ||
33607 | WCHAR_LINK=" -lw" | |
33608 | WCSLEN_FOUND=1 | |
33609 | ||
33610 | fi | |
33611 | ||
33612 | fi | |
33613 | fi | |
33614 | ||
33615 | if test "$WCSLEN_FOUND" = 1; then | |
33616 | cat >>confdefs.h <<\_ACEOF | |
33617 | #define HAVE_WCSLEN 1 | |
33618 | _ACEOF | |
33619 | ||
33620 | fi | |
33621 | ||
efdf6afe | 33622 | if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then |
c92ad099 | 33623 | CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS" |
473276a9 VS |
33624 | fi |
33625 | ||
efdf6afe VZ |
33626 | echo "$as_me:$LINENO: checking for mbstate_t" >&5 |
33627 | echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6 | |
33628 | if test "${ac_cv_type_mbstate_t+set}" = set; then | |
33629 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33630 | else | |
33631 | cat >conftest.$ac_ext <<_ACEOF | |
33632 | /* confdefs.h. */ | |
33633 | _ACEOF | |
33634 | cat confdefs.h >>conftest.$ac_ext | |
33635 | cat >>conftest.$ac_ext <<_ACEOF | |
33636 | /* end confdefs.h. */ | |
33637 | #include <wchar.h> | |
33638 | ||
33639 | int | |
33640 | main () | |
33641 | { | |
33642 | if ((mbstate_t *) 0) | |
33643 | return 0; | |
33644 | if (sizeof (mbstate_t)) | |
33645 | return 0; | |
33646 | ; | |
33647 | return 0; | |
33648 | } | |
33649 | _ACEOF | |
33650 | rm -f conftest.$ac_objext | |
33651 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33652 | (eval $ac_compile) 2>conftest.er1 | |
33653 | ac_status=$? | |
33654 | grep -v '^ *+' conftest.er1 >conftest.err | |
33655 | rm -f conftest.er1 | |
33656 | cat conftest.err >&5 | |
33657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33658 | (exit $ac_status); } && | |
d25774ab JS |
33659 | { ac_try='test -z "$ac_cxx_werror_flag" |
33660 | || test ! -s conftest.err' | |
efdf6afe VZ |
33661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33662 | (eval $ac_try) 2>&5 | |
33663 | ac_status=$? | |
33664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33665 | (exit $ac_status); }; } && | |
33666 | { ac_try='test -s conftest.$ac_objext' | |
33667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33668 | (eval $ac_try) 2>&5 | |
33669 | ac_status=$? | |
33670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33671 | (exit $ac_status); }; }; then | |
33672 | ac_cv_type_mbstate_t=yes | |
33673 | else | |
33674 | echo "$as_me: failed program was:" >&5 | |
33675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33676 | ||
33677 | ac_cv_type_mbstate_t=no | |
33678 | fi | |
33679 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33680 | fi | |
33681 | echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 | |
33682 | echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6 | |
33683 | if test $ac_cv_type_mbstate_t = yes; then | |
33684 | ||
33685 | cat >>confdefs.h <<_ACEOF | |
33686 | #define HAVE_MBSTATE_T 1 | |
33687 | _ACEOF | |
33688 | ||
a848cd7e SC |
33689 | |
33690 | for ac_func in wcsrtombs | |
33691 | do | |
33692 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33693 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33694 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33695 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33696 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33697 | else | |
33698 | cat >conftest.$ac_ext <<_ACEOF | |
33699 | /* confdefs.h. */ | |
33700 | _ACEOF | |
33701 | cat confdefs.h >>conftest.$ac_ext | |
33702 | cat >>conftest.$ac_ext <<_ACEOF | |
33703 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33704 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33705 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33706 | #define $ac_func innocuous_$ac_func | |
33707 | ||
a848cd7e SC |
33708 | /* System header to define __stub macros and hopefully few prototypes, |
33709 | which can conflict with char $ac_func (); below. | |
33710 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33711 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33712 | |
a848cd7e SC |
33713 | #ifdef __STDC__ |
33714 | # include <limits.h> | |
33715 | #else | |
33716 | # include <assert.h> | |
33717 | #endif | |
ac1cb8d3 VS |
33718 | |
33719 | #undef $ac_func | |
33720 | ||
a848cd7e SC |
33721 | /* Override any gcc2 internal prototype to avoid an error. */ |
33722 | #ifdef __cplusplus | |
33723 | extern "C" | |
33724 | { | |
33725 | #endif | |
33726 | /* We use char because int might match the return type of a gcc2 | |
33727 | builtin and then its argument prototype would still apply. */ | |
33728 | char $ac_func (); | |
33729 | /* The GNU C library defines this for functions which it implements | |
33730 | to always fail with ENOSYS. Some functions are actually named | |
33731 | something starting with __ and the normal name is an alias. */ | |
33732 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33733 | choke me | |
33734 | #else | |
33735 | char (*f) () = $ac_func; | |
33736 | #endif | |
33737 | #ifdef __cplusplus | |
33738 | } | |
33739 | #endif | |
33740 | ||
33741 | int | |
33742 | main () | |
33743 | { | |
33744 | return f != $ac_func; | |
33745 | ; | |
33746 | return 0; | |
33747 | } | |
33748 | _ACEOF | |
33749 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33750 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33751 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33752 | ac_status=$? |
ac1cb8d3 VS |
33753 | grep -v '^ *+' conftest.er1 >conftest.err |
33754 | rm -f conftest.er1 | |
33755 | cat conftest.err >&5 | |
a848cd7e SC |
33756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33757 | (exit $ac_status); } && | |
d25774ab JS |
33758 | { ac_try='test -z "$ac_cxx_werror_flag" |
33759 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33761 | (eval $ac_try) 2>&5 | |
33762 | ac_status=$? | |
33763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33764 | (exit $ac_status); }; } && | |
33765 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33767 | (eval $ac_try) 2>&5 | |
33768 | ac_status=$? | |
33769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33770 | (exit $ac_status); }; }; then | |
33771 | eval "$as_ac_var=yes" | |
33772 | else | |
33773 | echo "$as_me: failed program was:" >&5 | |
33774 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33775 | ||
33776 | eval "$as_ac_var=no" | |
33777 | fi | |
ac1cb8d3 VS |
33778 | rm -f conftest.err conftest.$ac_objext \ |
33779 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33780 | fi |
33781 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33782 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33783 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33784 | cat >>confdefs.h <<_ACEOF | |
33785 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33786 | _ACEOF | |
33787 | ||
33788 | fi | |
33789 | done | |
33790 | ||
efdf6afe VZ |
33791 | fi |
33792 | ||
a848cd7e SC |
33793 | else |
33794 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 | |
33795 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
33796 | fi | |
33797 | ||
a848cd7e | 33798 | |
4a767dd5 VZ |
33799 | |
33800 | for ac_func in snprintf vsnprintf | |
a848cd7e SC |
33801 | do |
33802 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33803 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33804 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33805 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33806 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33807 | else | |
33808 | cat >conftest.$ac_ext <<_ACEOF | |
33809 | /* confdefs.h. */ | |
33810 | _ACEOF | |
33811 | cat confdefs.h >>conftest.$ac_ext | |
33812 | cat >>conftest.$ac_ext <<_ACEOF | |
33813 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33814 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33815 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33816 | #define $ac_func innocuous_$ac_func | |
33817 | ||
a848cd7e SC |
33818 | /* System header to define __stub macros and hopefully few prototypes, |
33819 | which can conflict with char $ac_func (); below. | |
33820 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33821 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33822 | |
a848cd7e SC |
33823 | #ifdef __STDC__ |
33824 | # include <limits.h> | |
33825 | #else | |
33826 | # include <assert.h> | |
33827 | #endif | |
ac1cb8d3 VS |
33828 | |
33829 | #undef $ac_func | |
33830 | ||
a848cd7e SC |
33831 | /* Override any gcc2 internal prototype to avoid an error. */ |
33832 | #ifdef __cplusplus | |
33833 | extern "C" | |
33834 | { | |
33835 | #endif | |
33836 | /* We use char because int might match the return type of a gcc2 | |
33837 | builtin and then its argument prototype would still apply. */ | |
33838 | char $ac_func (); | |
33839 | /* The GNU C library defines this for functions which it implements | |
33840 | to always fail with ENOSYS. Some functions are actually named | |
33841 | something starting with __ and the normal name is an alias. */ | |
33842 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33843 | choke me | |
33844 | #else | |
33845 | char (*f) () = $ac_func; | |
33846 | #endif | |
33847 | #ifdef __cplusplus | |
33848 | } | |
33849 | #endif | |
33850 | ||
33851 | int | |
33852 | main () | |
33853 | { | |
33854 | return f != $ac_func; | |
33855 | ; | |
33856 | return 0; | |
33857 | } | |
33858 | _ACEOF | |
33859 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33860 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33861 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33862 | ac_status=$? |
ac1cb8d3 VS |
33863 | grep -v '^ *+' conftest.er1 >conftest.err |
33864 | rm -f conftest.er1 | |
33865 | cat conftest.err >&5 | |
a848cd7e SC |
33866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33867 | (exit $ac_status); } && | |
d25774ab JS |
33868 | { ac_try='test -z "$ac_cxx_werror_flag" |
33869 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33871 | (eval $ac_try) 2>&5 | |
33872 | ac_status=$? | |
33873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33874 | (exit $ac_status); }; } && | |
33875 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
33881 | eval "$as_ac_var=yes" | |
33882 | else | |
33883 | echo "$as_me: failed program was:" >&5 | |
33884 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33885 | ||
33886 | eval "$as_ac_var=no" | |
33887 | fi | |
ac1cb8d3 VS |
33888 | rm -f conftest.err conftest.$ac_objext \ |
33889 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33890 | fi |
33891 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33892 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33893 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33894 | cat >>confdefs.h <<_ACEOF | |
33895 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33896 | _ACEOF | |
33897 | ||
33898 | fi | |
33899 | done | |
33900 | ||
33901 | ||
33902 | if test "$ac_cv_func_vsnprintf" = "yes"; then | |
33903 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 | |
33904 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
33905 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
33906 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33907 | else | |
33908 | ||
efdf6afe | 33909 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
33910 | /* confdefs.h. */ |
33911 | _ACEOF | |
33912 | cat confdefs.h >>conftest.$ac_ext | |
33913 | cat >>conftest.$ac_ext <<_ACEOF | |
33914 | /* end confdefs.h. */ | |
33915 | ||
33916 | #include <stdio.h> | |
33917 | #include <stdarg.h> | |
efdf6afe VZ |
33918 | #ifdef __MSL__ |
33919 | #if __MSL__ >= 0x6000 | |
33920 | namespace std {} | |
33921 | using namespace std; | |
33922 | #endif | |
33923 | #endif | |
a848cd7e SC |
33924 | |
33925 | int | |
33926 | main () | |
33927 | { | |
33928 | ||
33929 | char *buf; | |
33930 | va_list ap; | |
62fa8b3a | 33931 | vsnprintf(buf, 10u, "%s", ap); |
c122b164 DE |
33932 | |
33933 | ; | |
33934 | return 0; | |
33935 | } | |
33936 | _ACEOF | |
33937 | rm -f conftest.$ac_objext | |
33938 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33939 | (eval $ac_compile) 2>conftest.er1 | |
33940 | ac_status=$? | |
33941 | grep -v '^ *+' conftest.er1 >conftest.err | |
33942 | rm -f conftest.er1 | |
33943 | cat conftest.err >&5 | |
33944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33945 | (exit $ac_status); } && | |
d25774ab JS |
33946 | { ac_try='test -z "$ac_cxx_werror_flag" |
33947 | || test ! -s conftest.err' | |
c122b164 DE |
33948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33949 | (eval $ac_try) 2>&5 | |
33950 | ac_status=$? | |
33951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33952 | (exit $ac_status); }; } && | |
33953 | { ac_try='test -s conftest.$ac_objext' | |
33954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33955 | (eval $ac_try) 2>&5 | |
33956 | ac_status=$? | |
33957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33958 | (exit $ac_status); }; }; then | |
33959 | wx_cv_func_vsnprintf_decl=yes | |
33960 | else | |
33961 | echo "$as_me: failed program was:" >&5 | |
33962 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33963 | ||
a848cd7e SC |
33964 | wx_cv_func_vsnprintf_decl=no |
33965 | ||
33966 | fi | |
ac1cb8d3 | 33967 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33968 | |
33969 | ||
33970 | fi | |
33971 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
33972 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
33973 | ||
33974 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
33975 | cat >>confdefs.h <<\_ACEOF | |
33976 | #define HAVE_VSNPRINTF_DECL 1 | |
33977 | _ACEOF | |
33978 | ||
62fa8b3a MW |
33979 | |
33980 | echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5 | |
33981 | echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6 | |
33982 | if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then | |
33983 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33984 | else | |
33985 | ||
33986 | cat >conftest.$ac_ext <<_ACEOF | |
33987 | /* confdefs.h. */ | |
33988 | _ACEOF | |
33989 | cat confdefs.h >>conftest.$ac_ext | |
33990 | cat >>conftest.$ac_ext <<_ACEOF | |
33991 | /* end confdefs.h. */ | |
33992 | ||
33993 | #include <stdio.h> | |
33994 | #include <stdarg.h> | |
33995 | #ifdef __MSL__ | |
33996 | #if __MSL__ >= 0x6000 | |
33997 | namespace std {} | |
33998 | using namespace std; | |
33999 | #endif | |
34000 | #endif | |
34001 | ||
34002 | int | |
34003 | main () | |
34004 | { | |
34005 | ||
34006 | char *buf; | |
34007 | va_list ap; | |
34008 | const char *fmt = "%s"; | |
34009 | vsnprintf(buf, 10u, fmt, ap); | |
34010 | ||
34011 | ; | |
34012 | return 0; | |
34013 | } | |
34014 | _ACEOF | |
34015 | rm -f conftest.$ac_objext | |
34016 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34017 | (eval $ac_compile) 2>conftest.er1 | |
34018 | ac_status=$? | |
34019 | grep -v '^ *+' conftest.er1 >conftest.err | |
34020 | rm -f conftest.er1 | |
34021 | cat conftest.err >&5 | |
34022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34023 | (exit $ac_status); } && | |
d25774ab JS |
34024 | { ac_try='test -z "$ac_cxx_werror_flag" |
34025 | || test ! -s conftest.err' | |
62fa8b3a MW |
34026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34027 | (eval $ac_try) 2>&5 | |
34028 | ac_status=$? | |
34029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34030 | (exit $ac_status); }; } && | |
34031 | { ac_try='test -s conftest.$ac_objext' | |
34032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34033 | (eval $ac_try) 2>&5 | |
34034 | ac_status=$? | |
34035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34036 | (exit $ac_status); }; }; then | |
34037 | wx_cv_func_broken_vsnprintf_decl=no | |
34038 | else | |
34039 | echo "$as_me: failed program was:" >&5 | |
34040 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34041 | ||
34042 | wx_cv_func_broken_vsnprintf_decl=yes | |
34043 | ||
34044 | fi | |
34045 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
34046 | ||
34047 | ||
34048 | fi | |
34049 | echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5 | |
34050 | echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6 | |
34051 | ||
34052 | if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then | |
34053 | cat >>confdefs.h <<\_ACEOF | |
34054 | #define HAVE_BROKEN_VSNPRINTF_DECL 1 | |
34055 | _ACEOF | |
34056 | ||
34057 | fi | |
a848cd7e SC |
34058 | fi |
34059 | fi | |
34060 | ||
4a767dd5 VZ |
34061 | if test "$ac_cv_func_snprintf" = "yes"; then |
34062 | echo "$as_me:$LINENO: checking for snprintf declaration" >&5 | |
34063 | echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6 | |
34064 | if test "${wx_cv_func_snprintf_decl+set}" = set; then | |
34065 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34066 | else | |
34067 | ||
34068 | cat >conftest.$ac_ext <<_ACEOF | |
34069 | /* confdefs.h. */ | |
34070 | _ACEOF | |
34071 | cat confdefs.h >>conftest.$ac_ext | |
34072 | cat >>conftest.$ac_ext <<_ACEOF | |
34073 | /* end confdefs.h. */ | |
34074 | ||
34075 | #include <stdio.h> | |
34076 | #include <stdarg.h> | |
34077 | #ifdef __MSL__ | |
34078 | #if __MSL__ >= 0x6000 | |
34079 | namespace std {} | |
34080 | using namespace std; | |
34081 | #endif | |
34082 | #endif | |
34083 | ||
34084 | int | |
34085 | main () | |
34086 | { | |
34087 | ||
34088 | char *buf; | |
62fa8b3a | 34089 | snprintf(buf, 10u, "%s", "wx"); |
4a767dd5 VZ |
34090 | |
34091 | ; | |
34092 | return 0; | |
34093 | } | |
34094 | _ACEOF | |
34095 | rm -f conftest.$ac_objext | |
34096 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34097 | (eval $ac_compile) 2>conftest.er1 | |
34098 | ac_status=$? | |
34099 | grep -v '^ *+' conftest.er1 >conftest.err | |
34100 | rm -f conftest.er1 | |
34101 | cat conftest.err >&5 | |
34102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34103 | (exit $ac_status); } && | |
d25774ab JS |
34104 | { ac_try='test -z "$ac_cxx_werror_flag" |
34105 | || test ! -s conftest.err' | |
4a767dd5 VZ |
34106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34107 | (eval $ac_try) 2>&5 | |
34108 | ac_status=$? | |
34109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34110 | (exit $ac_status); }; } && | |
34111 | { ac_try='test -s conftest.$ac_objext' | |
34112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34113 | (eval $ac_try) 2>&5 | |
34114 | ac_status=$? | |
34115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34116 | (exit $ac_status); }; }; then | |
34117 | wx_cv_func_snprintf_decl=yes | |
34118 | else | |
34119 | echo "$as_me: failed program was:" >&5 | |
34120 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34121 | ||
34122 | wx_cv_func_snprintf_decl=no | |
34123 | ||
34124 | fi | |
34125 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
34126 | ||
34127 | ||
34128 | fi | |
34129 | echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5 | |
34130 | echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6 | |
34131 | ||
34132 | if test "$wx_cv_func_snprintf_decl" = "yes"; then | |
34133 | cat >>confdefs.h <<\_ACEOF | |
34134 | #define HAVE_SNPRINTF_DECL 1 | |
34135 | _ACEOF | |
34136 | ||
62fa8b3a MW |
34137 | |
34138 | echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5 | |
34139 | echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6 | |
34140 | if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then | |
34141 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34142 | else | |
34143 | ||
34144 | cat >conftest.$ac_ext <<_ACEOF | |
34145 | /* confdefs.h. */ | |
34146 | _ACEOF | |
34147 | cat confdefs.h >>conftest.$ac_ext | |
34148 | cat >>conftest.$ac_ext <<_ACEOF | |
34149 | /* end confdefs.h. */ | |
34150 | ||
34151 | #include <stdio.h> | |
34152 | #include <stdarg.h> | |
34153 | #ifdef __MSL__ | |
34154 | #if __MSL__ >= 0x6000 | |
34155 | namespace std {} | |
34156 | using namespace std; | |
34157 | #endif | |
34158 | #endif | |
34159 | ||
34160 | int | |
34161 | main () | |
34162 | { | |
34163 | ||
34164 | char *buf; | |
34165 | const char *fmt = "%s"; | |
34166 | snprintf(buf, 10u, fmt, "wx"); | |
34167 | ||
34168 | ; | |
34169 | return 0; | |
34170 | } | |
34171 | _ACEOF | |
34172 | rm -f conftest.$ac_objext | |
34173 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34174 | (eval $ac_compile) 2>conftest.er1 | |
34175 | ac_status=$? | |
34176 | grep -v '^ *+' conftest.er1 >conftest.err | |
34177 | rm -f conftest.er1 | |
34178 | cat conftest.err >&5 | |
34179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34180 | (exit $ac_status); } && | |
d25774ab JS |
34181 | { ac_try='test -z "$ac_cxx_werror_flag" |
34182 | || test ! -s conftest.err' | |
62fa8b3a MW |
34183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34184 | (eval $ac_try) 2>&5 | |
34185 | ac_status=$? | |
34186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34187 | (exit $ac_status); }; } && | |
34188 | { ac_try='test -s conftest.$ac_objext' | |
34189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34190 | (eval $ac_try) 2>&5 | |
34191 | ac_status=$? | |
34192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34193 | (exit $ac_status); }; }; then | |
34194 | wx_cv_func_broken_snprintf_decl=no | |
34195 | else | |
34196 | echo "$as_me: failed program was:" >&5 | |
34197 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34198 | ||
34199 | wx_cv_func_broken_snprintf_decl=yes | |
34200 | ||
34201 | fi | |
34202 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
34203 | ||
34204 | ||
34205 | fi | |
34206 | echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5 | |
34207 | echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6 | |
34208 | ||
34209 | if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then | |
34210 | cat >>confdefs.h <<\_ACEOF | |
34211 | #define HAVE_BROKEN_SNPRINTF_DECL 1 | |
34212 | _ACEOF | |
34213 | ||
34214 | fi | |
4a767dd5 VZ |
34215 | fi |
34216 | fi | |
34217 | ||
a848cd7e SC |
34218 | if test "$wxUSE_UNICODE" = yes; then |
34219 | ||
34220 | ||
34221 | ||
fbe47c7b VS |
34222 | |
34223 | ||
34224 | ||
34225 | for ac_func in wputc wputchar putws fputws wprintf vswprintf | |
a848cd7e SC |
34226 | do |
34227 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34228 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34229 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34230 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34231 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34232 | else | |
34233 | cat >conftest.$ac_ext <<_ACEOF | |
34234 | /* confdefs.h. */ | |
34235 | _ACEOF | |
34236 | cat confdefs.h >>conftest.$ac_ext | |
34237 | cat >>conftest.$ac_ext <<_ACEOF | |
34238 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34239 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34240 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34241 | #define $ac_func innocuous_$ac_func | |
34242 | ||
a848cd7e SC |
34243 | /* System header to define __stub macros and hopefully few prototypes, |
34244 | which can conflict with char $ac_func (); below. | |
34245 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34246 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34247 | |
a848cd7e SC |
34248 | #ifdef __STDC__ |
34249 | # include <limits.h> | |
34250 | #else | |
34251 | # include <assert.h> | |
34252 | #endif | |
ac1cb8d3 VS |
34253 | |
34254 | #undef $ac_func | |
34255 | ||
a848cd7e SC |
34256 | /* Override any gcc2 internal prototype to avoid an error. */ |
34257 | #ifdef __cplusplus | |
34258 | extern "C" | |
34259 | { | |
34260 | #endif | |
34261 | /* We use char because int might match the return type of a gcc2 | |
34262 | builtin and then its argument prototype would still apply. */ | |
34263 | char $ac_func (); | |
34264 | /* The GNU C library defines this for functions which it implements | |
34265 | to always fail with ENOSYS. Some functions are actually named | |
34266 | something starting with __ and the normal name is an alias. */ | |
34267 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34268 | choke me | |
34269 | #else | |
34270 | char (*f) () = $ac_func; | |
34271 | #endif | |
34272 | #ifdef __cplusplus | |
34273 | } | |
34274 | #endif | |
34275 | ||
34276 | int | |
34277 | main () | |
34278 | { | |
34279 | return f != $ac_func; | |
34280 | ; | |
34281 | return 0; | |
34282 | } | |
34283 | _ACEOF | |
34284 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34285 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34286 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34287 | ac_status=$? |
ac1cb8d3 VS |
34288 | grep -v '^ *+' conftest.er1 >conftest.err |
34289 | rm -f conftest.er1 | |
34290 | cat conftest.err >&5 | |
a848cd7e SC |
34291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34292 | (exit $ac_status); } && | |
d25774ab JS |
34293 | { ac_try='test -z "$ac_cxx_werror_flag" |
34294 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34296 | (eval $ac_try) 2>&5 | |
34297 | ac_status=$? | |
34298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34299 | (exit $ac_status); }; } && | |
34300 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34302 | (eval $ac_try) 2>&5 | |
34303 | ac_status=$? | |
34304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34305 | (exit $ac_status); }; }; then | |
34306 | eval "$as_ac_var=yes" | |
34307 | else | |
34308 | echo "$as_me: failed program was:" >&5 | |
34309 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34310 | ||
34311 | eval "$as_ac_var=no" | |
34312 | fi | |
ac1cb8d3 VS |
34313 | rm -f conftest.err conftest.$ac_objext \ |
34314 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34315 | fi |
34316 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34317 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34318 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34319 | cat >>confdefs.h <<_ACEOF | |
34320 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34321 | _ACEOF | |
34322 | ||
34323 | fi | |
34324 | done | |
34325 | ||
34326 | ||
34327 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 | |
34328 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
34329 | cat >conftest.$ac_ext <<_ACEOF | |
34330 | /* confdefs.h. */ | |
34331 | _ACEOF | |
34332 | cat confdefs.h >>conftest.$ac_ext | |
34333 | cat >>conftest.$ac_ext <<_ACEOF | |
34334 | /* end confdefs.h. */ | |
34335 | #include <wchar.h> | |
34336 | int | |
34337 | main () | |
34338 | { | |
34339 | &_vsnwprintf; | |
34340 | ; | |
34341 | return 0; | |
34342 | } | |
34343 | _ACEOF | |
34344 | rm -f conftest.$ac_objext | |
34345 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34346 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34347 | ac_status=$? |
ac1cb8d3 VS |
34348 | grep -v '^ *+' conftest.er1 >conftest.err |
34349 | rm -f conftest.er1 | |
34350 | cat conftest.err >&5 | |
a848cd7e SC |
34351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34352 | (exit $ac_status); } && | |
d25774ab JS |
34353 | { ac_try='test -z "$ac_cxx_werror_flag" |
34354 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34356 | (eval $ac_try) 2>&5 | |
34357 | ac_status=$? | |
34358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34359 | (exit $ac_status); }; } && | |
34360 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34362 | (eval $ac_try) 2>&5 | |
34363 | ac_status=$? | |
34364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34365 | (exit $ac_status); }; }; then | |
34366 | echo "$as_me:$LINENO: result: yes" >&5 | |
34367 | echo "${ECHO_T}yes" >&6 | |
34368 | cat >>confdefs.h <<\_ACEOF | |
34369 | #define HAVE__VSNWPRINTF 1 | |
34370 | _ACEOF | |
34371 | ||
34372 | else | |
34373 | echo "$as_me: failed program was:" >&5 | |
34374 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34375 | ||
34376 | echo "$as_me:$LINENO: result: no" >&5 | |
34377 | echo "${ECHO_T}no" >&6 | |
34378 | fi | |
ac1cb8d3 | 34379 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext; |
a848cd7e SC |
34380 | fi |
34381 | ||
6ebeb4c7 VZ |
34382 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
34383 | ||
34384 | for ac_func in fnmatch | |
34385 | do | |
34386 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34387 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34388 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34389 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34390 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34391 | else | |
34392 | cat >conftest.$ac_ext <<_ACEOF | |
34393 | /* confdefs.h. */ | |
34394 | _ACEOF | |
34395 | cat confdefs.h >>conftest.$ac_ext | |
34396 | cat >>conftest.$ac_ext <<_ACEOF | |
34397 | /* end confdefs.h. */ | |
34398 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
34399 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34400 | #define $ac_func innocuous_$ac_func | |
34401 | ||
34402 | /* System header to define __stub macros and hopefully few prototypes, | |
34403 | which can conflict with char $ac_func (); below. | |
34404 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34405 | <limits.h> exists even on freestanding compilers. */ | |
34406 | ||
34407 | #ifdef __STDC__ | |
34408 | # include <limits.h> | |
34409 | #else | |
34410 | # include <assert.h> | |
34411 | #endif | |
34412 | ||
34413 | #undef $ac_func | |
34414 | ||
34415 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34416 | #ifdef __cplusplus | |
34417 | extern "C" | |
34418 | { | |
34419 | #endif | |
34420 | /* We use char because int might match the return type of a gcc2 | |
34421 | builtin and then its argument prototype would still apply. */ | |
34422 | char $ac_func (); | |
34423 | /* The GNU C library defines this for functions which it implements | |
34424 | to always fail with ENOSYS. Some functions are actually named | |
34425 | something starting with __ and the normal name is an alias. */ | |
34426 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34427 | choke me | |
34428 | #else | |
34429 | char (*f) () = $ac_func; | |
34430 | #endif | |
34431 | #ifdef __cplusplus | |
34432 | } | |
34433 | #endif | |
34434 | ||
34435 | int | |
34436 | main () | |
34437 | { | |
34438 | return f != $ac_func; | |
34439 | ; | |
34440 | return 0; | |
34441 | } | |
34442 | _ACEOF | |
34443 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34444 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
34445 | (eval $ac_link) 2>conftest.er1 | |
34446 | ac_status=$? | |
34447 | grep -v '^ *+' conftest.er1 >conftest.err | |
34448 | rm -f conftest.er1 | |
34449 | cat conftest.err >&5 | |
34450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34451 | (exit $ac_status); } && | |
d25774ab JS |
34452 | { ac_try='test -z "$ac_cxx_werror_flag" |
34453 | || test ! -s conftest.err' | |
6ebeb4c7 VZ |
34454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34455 | (eval $ac_try) 2>&5 | |
34456 | ac_status=$? | |
34457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34458 | (exit $ac_status); }; } && | |
34459 | { ac_try='test -s conftest$ac_exeext' | |
34460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34461 | (eval $ac_try) 2>&5 | |
34462 | ac_status=$? | |
34463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34464 | (exit $ac_status); }; }; then | |
34465 | eval "$as_ac_var=yes" | |
34466 | else | |
34467 | echo "$as_me: failed program was:" >&5 | |
34468 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34469 | ||
34470 | eval "$as_ac_var=no" | |
34471 | fi | |
34472 | rm -f conftest.err conftest.$ac_objext \ | |
34473 | conftest$ac_exeext conftest.$ac_ext | |
34474 | fi | |
34475 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34476 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34477 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34478 | cat >>confdefs.h <<_ACEOF | |
34479 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34480 | _ACEOF | |
34481 | ||
34482 | fi | |
34483 | done | |
34484 | ||
34485 | fi | |
34486 | ||
34487 | if test "$wxUSE_FILE" = "yes"; then | |
34488 | ||
34489 | for ac_func in fsync | |
34490 | do | |
34491 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34492 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34493 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34494 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34495 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34496 | else | |
34497 | cat >conftest.$ac_ext <<_ACEOF | |
34498 | /* confdefs.h. */ | |
34499 | _ACEOF | |
34500 | cat confdefs.h >>conftest.$ac_ext | |
34501 | cat >>conftest.$ac_ext <<_ACEOF | |
34502 | /* end confdefs.h. */ | |
34503 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
34504 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34505 | #define $ac_func innocuous_$ac_func | |
34506 | ||
34507 | /* System header to define __stub macros and hopefully few prototypes, | |
34508 | which can conflict with char $ac_func (); below. | |
34509 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34510 | <limits.h> exists even on freestanding compilers. */ | |
34511 | ||
34512 | #ifdef __STDC__ | |
34513 | # include <limits.h> | |
34514 | #else | |
34515 | # include <assert.h> | |
34516 | #endif | |
34517 | ||
34518 | #undef $ac_func | |
34519 | ||
34520 | /* Override any gcc2 internal prototype to avoid an error. */ | |
34521 | #ifdef __cplusplus | |
34522 | extern "C" | |
34523 | { | |
34524 | #endif | |
34525 | /* We use char because int might match the return type of a gcc2 | |
34526 | builtin and then its argument prototype would still apply. */ | |
34527 | char $ac_func (); | |
34528 | /* The GNU C library defines this for functions which it implements | |
34529 | to always fail with ENOSYS. Some functions are actually named | |
34530 | something starting with __ and the normal name is an alias. */ | |
34531 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34532 | choke me | |
34533 | #else | |
34534 | char (*f) () = $ac_func; | |
34535 | #endif | |
34536 | #ifdef __cplusplus | |
34537 | } | |
34538 | #endif | |
34539 | ||
34540 | int | |
34541 | main () | |
34542 | { | |
34543 | return f != $ac_func; | |
34544 | ; | |
34545 | return 0; | |
34546 | } | |
34547 | _ACEOF | |
34548 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34549 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
34550 | (eval $ac_link) 2>conftest.er1 | |
34551 | ac_status=$? | |
34552 | grep -v '^ *+' conftest.er1 >conftest.err | |
34553 | rm -f conftest.er1 | |
34554 | cat conftest.err >&5 | |
34555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34556 | (exit $ac_status); } && | |
d25774ab JS |
34557 | { ac_try='test -z "$ac_cxx_werror_flag" |
34558 | || test ! -s conftest.err' | |
6ebeb4c7 VZ |
34559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34560 | (eval $ac_try) 2>&5 | |
34561 | ac_status=$? | |
34562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34563 | (exit $ac_status); }; } && | |
34564 | { ac_try='test -s conftest$ac_exeext' | |
34565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34566 | (eval $ac_try) 2>&5 | |
34567 | ac_status=$? | |
34568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34569 | (exit $ac_status); }; }; then | |
34570 | eval "$as_ac_var=yes" | |
34571 | else | |
34572 | echo "$as_me: failed program was:" >&5 | |
34573 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34574 | ||
34575 | eval "$as_ac_var=no" | |
34576 | fi | |
34577 | rm -f conftest.err conftest.$ac_objext \ | |
34578 | conftest$ac_exeext conftest.$ac_ext | |
34579 | fi | |
34580 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34581 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34582 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34583 | cat >>confdefs.h <<_ACEOF | |
34584 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34585 | _ACEOF | |
34586 | ||
34587 | fi | |
34588 | done | |
34589 | ||
34590 | fi | |
a848cd7e SC |
34591 | |
34592 | ||
34593 | if test "$TOOLKIT" != "MSW"; then | |
34594 | ||
34595 | ||
a848cd7e SC |
34596 | |
34597 | ||
34598 | ||
34599 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
34600 | if test "${with_libiconv_prefix+set}" = set; then | |
34601 | withval="$with_libiconv_prefix" | |
34602 | ||
34603 | for dir in `echo "$withval" | tr : ' '`; do | |
34604 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
34605 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
34606 | done | |
34607 | ||
34608 | fi; | |
34609 | ||
34610 | echo "$as_me:$LINENO: checking for iconv" >&5 | |
34611 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
34612 | if test "${am_cv_func_iconv+set}" = set; then | |
34613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34614 | else | |
34615 | ||
34616 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
34617 | am_cv_lib_iconv=no | |
34618 | cat >conftest.$ac_ext <<_ACEOF | |
34619 | /* confdefs.h. */ | |
34620 | _ACEOF | |
34621 | cat confdefs.h >>conftest.$ac_ext | |
34622 | cat >>conftest.$ac_ext <<_ACEOF | |
34623 | /* end confdefs.h. */ | |
34624 | #include <stdlib.h> | |
34625 | #include <iconv.h> | |
34626 | int | |
34627 | main () | |
34628 | { | |
34629 | iconv_t cd = iconv_open("",""); | |
34630 | iconv(cd,NULL,NULL,NULL,NULL); | |
34631 | iconv_close(cd); | |
34632 | ; | |
34633 | return 0; | |
34634 | } | |
34635 | _ACEOF | |
34636 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34637 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34638 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34639 | ac_status=$? |
ac1cb8d3 VS |
34640 | grep -v '^ *+' conftest.er1 >conftest.err |
34641 | rm -f conftest.er1 | |
34642 | cat conftest.err >&5 | |
a848cd7e SC |
34643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34644 | (exit $ac_status); } && | |
d25774ab JS |
34645 | { ac_try='test -z "$ac_cxx_werror_flag" |
34646 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34648 | (eval $ac_try) 2>&5 | |
34649 | ac_status=$? | |
34650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34651 | (exit $ac_status); }; } && | |
34652 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34654 | (eval $ac_try) 2>&5 | |
34655 | ac_status=$? | |
34656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34657 | (exit $ac_status); }; }; then | |
34658 | am_cv_func_iconv=yes | |
34659 | else | |
34660 | echo "$as_me: failed program was:" >&5 | |
34661 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34662 | ||
34663 | fi | |
ac1cb8d3 VS |
34664 | rm -f conftest.err conftest.$ac_objext \ |
34665 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34666 | if test "$am_cv_func_iconv" != yes; then |
34667 | am_save_LIBS="$LIBS" | |
34668 | LIBS="$LIBS -liconv" | |
34669 | cat >conftest.$ac_ext <<_ACEOF | |
34670 | /* confdefs.h. */ | |
34671 | _ACEOF | |
34672 | cat confdefs.h >>conftest.$ac_ext | |
34673 | cat >>conftest.$ac_ext <<_ACEOF | |
34674 | /* end confdefs.h. */ | |
34675 | #include <stdlib.h> | |
34676 | #include <iconv.h> | |
34677 | int | |
34678 | main () | |
34679 | { | |
34680 | iconv_t cd = iconv_open("",""); | |
34681 | iconv(cd,NULL,NULL,NULL,NULL); | |
34682 | iconv_close(cd); | |
34683 | ; | |
34684 | return 0; | |
34685 | } | |
34686 | _ACEOF | |
34687 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34688 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34689 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34690 | ac_status=$? |
ac1cb8d3 VS |
34691 | grep -v '^ *+' conftest.er1 >conftest.err |
34692 | rm -f conftest.er1 | |
34693 | cat conftest.err >&5 | |
a848cd7e SC |
34694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34695 | (exit $ac_status); } && | |
d25774ab JS |
34696 | { ac_try='test -z "$ac_cxx_werror_flag" |
34697 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34699 | (eval $ac_try) 2>&5 | |
34700 | ac_status=$? | |
34701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34702 | (exit $ac_status); }; } && | |
34703 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34705 | (eval $ac_try) 2>&5 | |
34706 | ac_status=$? | |
34707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34708 | (exit $ac_status); }; }; then | |
34709 | am_cv_lib_iconv=yes | |
34710 | am_cv_func_iconv=yes | |
34711 | else | |
34712 | echo "$as_me: failed program was:" >&5 | |
34713 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34714 | ||
34715 | fi | |
ac1cb8d3 VS |
34716 | rm -f conftest.err conftest.$ac_objext \ |
34717 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34718 | LIBS="$am_save_LIBS" |
34719 | fi | |
34720 | ||
34721 | fi | |
34722 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
34723 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
34724 | if test "$am_cv_func_iconv" = yes; then | |
34725 | ||
34726 | cat >>confdefs.h <<\_ACEOF | |
34727 | #define HAVE_ICONV 1 | |
34728 | _ACEOF | |
34729 | ||
34730 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 | |
34731 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
34732 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
34733 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34734 | else | |
34735 | cat >conftest.$ac_ext <<_ACEOF | |
34736 | /* confdefs.h. */ | |
34737 | _ACEOF | |
34738 | cat confdefs.h >>conftest.$ac_ext | |
34739 | cat >>conftest.$ac_ext <<_ACEOF | |
34740 | /* end confdefs.h. */ | |
34741 | ||
34742 | #include <stdlib.h> | |
34743 | #include <iconv.h> | |
34744 | extern | |
34745 | #ifdef __cplusplus | |
34746 | "C" | |
34747 | #endif | |
34748 | #if defined(__STDC__) || defined(__cplusplus) | |
34749 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
34750 | #else | |
34751 | size_t iconv(); | |
34752 | #endif | |
34753 | ||
34754 | int | |
34755 | main () | |
34756 | { | |
34757 | ||
34758 | ; | |
34759 | return 0; | |
34760 | } | |
34761 | _ACEOF | |
34762 | rm -f conftest.$ac_objext | |
34763 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34764 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34765 | ac_status=$? |
ac1cb8d3 VS |
34766 | grep -v '^ *+' conftest.er1 >conftest.err |
34767 | rm -f conftest.er1 | |
34768 | cat conftest.err >&5 | |
a848cd7e SC |
34769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34770 | (exit $ac_status); } && | |
d25774ab JS |
34771 | { ac_try='test -z "$ac_cxx_werror_flag" |
34772 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34774 | (eval $ac_try) 2>&5 | |
34775 | ac_status=$? | |
34776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34777 | (exit $ac_status); }; } && | |
34778 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34780 | (eval $ac_try) 2>&5 | |
34781 | ac_status=$? | |
34782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34783 | (exit $ac_status); }; }; then | |
34784 | wx_cv_func_iconv_const="no" | |
34785 | else | |
34786 | echo "$as_me: failed program was:" >&5 | |
34787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34788 | ||
34789 | wx_cv_func_iconv_const="yes" | |
34790 | ||
34791 | fi | |
ac1cb8d3 | 34792 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34793 | |
34794 | fi | |
34795 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
34796 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
34797 | ||
34798 | iconv_const= | |
34799 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
34800 | iconv_const="const" | |
34801 | fi | |
34802 | ||
34803 | ||
34804 | cat >>confdefs.h <<_ACEOF | |
34805 | #define ICONV_CONST $iconv_const | |
34806 | _ACEOF | |
34807 | ||
34808 | fi | |
34809 | LIBICONV= | |
34810 | if test "$am_cv_lib_iconv" = yes; then | |
34811 | LIBICONV="-liconv" | |
34812 | fi | |
34813 | ||
34814 | ||
34815 | LIBS="$LIBICONV $LIBS" | |
a848cd7e SC |
34816 | |
34817 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
34818 | ||
34819 | for ac_func in sigaction | |
34820 | do | |
34821 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34822 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34823 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34824 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34825 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34826 | else | |
34827 | cat >conftest.$ac_ext <<_ACEOF | |
34828 | /* confdefs.h. */ | |
34829 | _ACEOF | |
34830 | cat confdefs.h >>conftest.$ac_ext | |
34831 | cat >>conftest.$ac_ext <<_ACEOF | |
34832 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34833 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34834 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34835 | #define $ac_func innocuous_$ac_func | |
34836 | ||
a848cd7e SC |
34837 | /* System header to define __stub macros and hopefully few prototypes, |
34838 | which can conflict with char $ac_func (); below. | |
34839 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34840 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34841 | |
a848cd7e SC |
34842 | #ifdef __STDC__ |
34843 | # include <limits.h> | |
34844 | #else | |
34845 | # include <assert.h> | |
34846 | #endif | |
ac1cb8d3 VS |
34847 | |
34848 | #undef $ac_func | |
34849 | ||
a848cd7e SC |
34850 | /* Override any gcc2 internal prototype to avoid an error. */ |
34851 | #ifdef __cplusplus | |
34852 | extern "C" | |
34853 | { | |
34854 | #endif | |
34855 | /* We use char because int might match the return type of a gcc2 | |
34856 | builtin and then its argument prototype would still apply. */ | |
34857 | char $ac_func (); | |
34858 | /* The GNU C library defines this for functions which it implements | |
34859 | to always fail with ENOSYS. Some functions are actually named | |
34860 | something starting with __ and the normal name is an alias. */ | |
34861 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34862 | choke me | |
34863 | #else | |
34864 | char (*f) () = $ac_func; | |
34865 | #endif | |
34866 | #ifdef __cplusplus | |
34867 | } | |
34868 | #endif | |
34869 | ||
34870 | int | |
34871 | main () | |
34872 | { | |
34873 | return f != $ac_func; | |
34874 | ; | |
34875 | return 0; | |
34876 | } | |
34877 | _ACEOF | |
34878 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34879 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34880 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34881 | ac_status=$? |
ac1cb8d3 VS |
34882 | grep -v '^ *+' conftest.er1 >conftest.err |
34883 | rm -f conftest.er1 | |
34884 | cat conftest.err >&5 | |
a848cd7e SC |
34885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34886 | (exit $ac_status); } && | |
d25774ab JS |
34887 | { ac_try='test -z "$ac_cxx_werror_flag" |
34888 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34890 | (eval $ac_try) 2>&5 | |
34891 | ac_status=$? | |
34892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34893 | (exit $ac_status); }; } && | |
34894 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34896 | (eval $ac_try) 2>&5 | |
34897 | ac_status=$? | |
34898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34899 | (exit $ac_status); }; }; then | |
34900 | eval "$as_ac_var=yes" | |
34901 | else | |
34902 | echo "$as_me: failed program was:" >&5 | |
34903 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34904 | ||
34905 | eval "$as_ac_var=no" | |
34906 | fi | |
ac1cb8d3 VS |
34907 | rm -f conftest.err conftest.$ac_objext \ |
34908 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34909 | fi |
34910 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34911 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34912 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34913 | cat >>confdefs.h <<_ACEOF | |
34914 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34915 | _ACEOF | |
34916 | ||
34917 | fi | |
34918 | done | |
34919 | ||
34920 | ||
34921 | if test "$ac_cv_func_sigaction" = "no"; then | |
34922 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 | |
34923 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
34924 | wxUSE_ON_FATAL_EXCEPTION=no | |
34925 | fi | |
34926 | ||
34927 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
a848cd7e SC |
34928 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 |
34929 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
34930 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
34931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34932 | else | |
34933 | ||
34934 | cat >conftest.$ac_ext <<_ACEOF | |
34935 | /* confdefs.h. */ | |
34936 | _ACEOF | |
34937 | cat confdefs.h >>conftest.$ac_ext | |
34938 | cat >>conftest.$ac_ext <<_ACEOF | |
34939 | /* end confdefs.h. */ | |
34940 | #include <signal.h> | |
34941 | int | |
34942 | main () | |
34943 | { | |
34944 | ||
34945 | extern void testSigHandler(int); | |
34946 | ||
34947 | struct sigaction sa; | |
34948 | sa.sa_handler = testSigHandler; | |
34949 | ||
34950 | ; | |
34951 | return 0; | |
34952 | } | |
34953 | _ACEOF | |
34954 | rm -f conftest.$ac_objext | |
34955 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34956 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34957 | ac_status=$? |
ac1cb8d3 VS |
34958 | grep -v '^ *+' conftest.er1 >conftest.err |
34959 | rm -f conftest.er1 | |
34960 | cat conftest.err >&5 | |
a848cd7e SC |
34961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34962 | (exit $ac_status); } && | |
d25774ab JS |
34963 | { ac_try='test -z "$ac_cxx_werror_flag" |
34964 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34966 | (eval $ac_try) 2>&5 | |
34967 | ac_status=$? | |
34968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34969 | (exit $ac_status); }; } && | |
34970 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34972 | (eval $ac_try) 2>&5 | |
34973 | ac_status=$? | |
34974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34975 | (exit $ac_status); }; }; then | |
34976 | ||
34977 | wx_cv_type_sa_handler=int | |
34978 | ||
34979 | else | |
34980 | echo "$as_me: failed program was:" >&5 | |
34981 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34982 | ||
34983 | ||
34984 | wx_cv_type_sa_handler=void | |
34985 | ||
34986 | fi | |
ac1cb8d3 | 34987 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34988 | |
34989 | fi | |
34990 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
34991 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
34992 | ||
a848cd7e SC |
34993 | cat >>confdefs.h <<_ACEOF |
34994 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
34995 | _ACEOF | |
34996 | ||
34997 | fi | |
34998 | fi | |
34999 | ||
eaff0f0d | 35000 | if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
eaff0f0d VZ |
35001 | echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5 |
35002 | echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6 | |
35003 | if test "${wx_cv_func_backtrace+set}" = set; then | |
35004 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35005 | else | |
35006 | ||
35007 | cat >conftest.$ac_ext <<_ACEOF | |
35008 | /* confdefs.h. */ | |
35009 | _ACEOF | |
35010 | cat confdefs.h >>conftest.$ac_ext | |
35011 | cat >>conftest.$ac_ext <<_ACEOF | |
35012 | /* end confdefs.h. */ | |
35013 | #include <execinfo.h> | |
35014 | int | |
35015 | main () | |
35016 | { | |
35017 | ||
35018 | void *trace[1]; | |
35019 | char **messages; | |
35020 | ||
35021 | backtrace(trace, 1); | |
35022 | messages = backtrace_symbols(trace, 1); | |
35023 | ||
35024 | ; | |
35025 | return 0; | |
35026 | } | |
35027 | _ACEOF | |
35028 | rm -f conftest.$ac_objext | |
35029 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35030 | (eval $ac_compile) 2>conftest.er1 | |
35031 | ac_status=$? | |
35032 | grep -v '^ *+' conftest.er1 >conftest.err | |
35033 | rm -f conftest.er1 | |
35034 | cat conftest.err >&5 | |
35035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35036 | (exit $ac_status); } && | |
d25774ab JS |
35037 | { ac_try='test -z "$ac_cxx_werror_flag" |
35038 | || test ! -s conftest.err' | |
eaff0f0d VZ |
35039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35040 | (eval $ac_try) 2>&5 | |
35041 | ac_status=$? | |
35042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35043 | (exit $ac_status); }; } && | |
35044 | { ac_try='test -s conftest.$ac_objext' | |
35045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35046 | (eval $ac_try) 2>&5 | |
35047 | ac_status=$? | |
35048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35049 | (exit $ac_status); }; }; then | |
35050 | wx_cv_func_backtrace=yes | |
35051 | else | |
35052 | echo "$as_me: failed program was:" >&5 | |
35053 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35054 | ||
35055 | wx_cv_func_backtrace=no | |
35056 | ||
35057 | fi | |
35058 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
35059 | ||
35060 | ||
35061 | fi | |
35062 | echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5 | |
35063 | echo "${ECHO_T}$wx_cv_func_backtrace" >&6 | |
35064 | ||
35065 | ||
35066 | if test "$wx_cv_func_backtrace" = "no"; then | |
35067 | { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5 | |
35068 | echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;} | |
35069 | wxUSE_STACKWALKER=no | |
35070 | else | |
35071 | echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5 | |
35072 | echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6 | |
35073 | if test "${wx_cv_func_cxa_demangle+set}" = set; then | |
35074 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35075 | else | |
35076 | ||
35077 | cat >conftest.$ac_ext <<_ACEOF | |
35078 | /* confdefs.h. */ | |
35079 | _ACEOF | |
35080 | cat confdefs.h >>conftest.$ac_ext | |
35081 | cat >>conftest.$ac_ext <<_ACEOF | |
35082 | /* end confdefs.h. */ | |
35083 | #include <cxxabi.h> | |
35084 | int | |
35085 | main () | |
35086 | { | |
35087 | ||
35088 | int rc; | |
35089 | __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc); | |
35090 | ||
35091 | ; | |
35092 | return 0; | |
35093 | } | |
35094 | _ACEOF | |
dfe0c803 JS |
35095 | rm -f conftest.$ac_objext conftest$ac_exeext |
35096 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
35097 | (eval $ac_link) 2>conftest.er1 | |
eaff0f0d VZ |
35098 | ac_status=$? |
35099 | grep -v '^ *+' conftest.er1 >conftest.err | |
35100 | rm -f conftest.er1 | |
35101 | cat conftest.err >&5 | |
35102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35103 | (exit $ac_status); } && | |
d25774ab JS |
35104 | { ac_try='test -z "$ac_cxx_werror_flag" |
35105 | || test ! -s conftest.err' | |
eaff0f0d VZ |
35106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35107 | (eval $ac_try) 2>&5 | |
35108 | ac_status=$? | |
35109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35110 | (exit $ac_status); }; } && | |
dfe0c803 | 35111 | { ac_try='test -s conftest$ac_exeext' |
eaff0f0d VZ |
35112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35113 | (eval $ac_try) 2>&5 | |
35114 | ac_status=$? | |
35115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35116 | (exit $ac_status); }; }; then | |
35117 | wx_cv_func_cxa_demangle=yes | |
35118 | else | |
35119 | echo "$as_me: failed program was:" >&5 | |
35120 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35121 | ||
35122 | wx_cv_func_cxa_demangle=no | |
35123 | ||
35124 | fi | |
dfe0c803 JS |
35125 | rm -f conftest.err conftest.$ac_objext \ |
35126 | conftest$ac_exeext conftest.$ac_ext | |
eaff0f0d VZ |
35127 | |
35128 | ||
35129 | fi | |
35130 | echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5 | |
35131 | echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6 | |
35132 | ||
35133 | if test "$wx_cv_func_cxa_demangle" = "yes"; then | |
35134 | cat >>confdefs.h <<\_ACEOF | |
35135 | #define HAVE_CXA_DEMANGLE 1 | |
35136 | _ACEOF | |
35137 | ||
35138 | fi | |
35139 | fi | |
eaff0f0d VZ |
35140 | fi |
35141 | ||
898beab1 DE |
35142 | if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then |
35143 | { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5 | |
35144 | echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;} | |
35145 | wxUSE_STACKWALKER=no | |
35146 | fi | |
35147 | ||
35148 | ||
a848cd7e SC |
35149 | |
35150 | ||
35151 | for ac_func in mkstemp mktemp | |
35152 | do | |
35153 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35154 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35155 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35156 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35157 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35158 | else | |
35159 | cat >conftest.$ac_ext <<_ACEOF | |
35160 | /* confdefs.h. */ | |
35161 | _ACEOF | |
35162 | cat confdefs.h >>conftest.$ac_ext | |
35163 | cat >>conftest.$ac_ext <<_ACEOF | |
35164 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35165 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35166 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35167 | #define $ac_func innocuous_$ac_func | |
35168 | ||
a848cd7e SC |
35169 | /* System header to define __stub macros and hopefully few prototypes, |
35170 | which can conflict with char $ac_func (); below. | |
35171 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35172 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35173 | |
a848cd7e SC |
35174 | #ifdef __STDC__ |
35175 | # include <limits.h> | |
35176 | #else | |
35177 | # include <assert.h> | |
35178 | #endif | |
ac1cb8d3 VS |
35179 | |
35180 | #undef $ac_func | |
35181 | ||
a848cd7e SC |
35182 | /* Override any gcc2 internal prototype to avoid an error. */ |
35183 | #ifdef __cplusplus | |
35184 | extern "C" | |
35185 | { | |
35186 | #endif | |
35187 | /* We use char because int might match the return type of a gcc2 | |
35188 | builtin and then its argument prototype would still apply. */ | |
35189 | char $ac_func (); | |
35190 | /* The GNU C library defines this for functions which it implements | |
35191 | to always fail with ENOSYS. Some functions are actually named | |
35192 | something starting with __ and the normal name is an alias. */ | |
35193 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35194 | choke me | |
35195 | #else | |
35196 | char (*f) () = $ac_func; | |
35197 | #endif | |
35198 | #ifdef __cplusplus | |
35199 | } | |
35200 | #endif | |
35201 | ||
35202 | int | |
35203 | main () | |
35204 | { | |
35205 | return f != $ac_func; | |
35206 | ; | |
35207 | return 0; | |
35208 | } | |
35209 | _ACEOF | |
35210 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35211 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35212 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35213 | ac_status=$? |
ac1cb8d3 VS |
35214 | grep -v '^ *+' conftest.er1 >conftest.err |
35215 | rm -f conftest.er1 | |
35216 | cat conftest.err >&5 | |
a848cd7e SC |
35217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35218 | (exit $ac_status); } && | |
d25774ab JS |
35219 | { ac_try='test -z "$ac_cxx_werror_flag" |
35220 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35222 | (eval $ac_try) 2>&5 | |
35223 | ac_status=$? | |
35224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35225 | (exit $ac_status); }; } && | |
35226 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35228 | (eval $ac_try) 2>&5 | |
35229 | ac_status=$? | |
35230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35231 | (exit $ac_status); }; }; then | |
35232 | eval "$as_ac_var=yes" | |
35233 | else | |
35234 | echo "$as_me: failed program was:" >&5 | |
35235 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35236 | ||
35237 | eval "$as_ac_var=no" | |
35238 | fi | |
ac1cb8d3 VS |
35239 | rm -f conftest.err conftest.$ac_objext \ |
35240 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35241 | fi |
35242 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35243 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35244 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35245 | cat >>confdefs.h <<_ACEOF | |
35246 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35247 | _ACEOF | |
35248 | break | |
35249 | fi | |
35250 | done | |
35251 | ||
35252 | ||
35253 | echo "$as_me:$LINENO: checking for statfs" >&5 | |
35254 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
35255 | if test "${wx_cv_func_statfs+set}" = set; then | |
35256 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35257 | else | |
35258 | cat >conftest.$ac_ext <<_ACEOF | |
35259 | /* confdefs.h. */ | |
35260 | _ACEOF | |
35261 | cat confdefs.h >>conftest.$ac_ext | |
35262 | cat >>conftest.$ac_ext <<_ACEOF | |
35263 | /* end confdefs.h. */ | |
35264 | ||
35265 | #if defined(__BSD__) | |
84ae7ca4 VZ |
35266 | #include <sys/param.h> |
35267 | #include <sys/mount.h> | |
a848cd7e | 35268 | #else |
84ae7ca4 | 35269 | #include <sys/vfs.h> |
a848cd7e SC |
35270 | #endif |
35271 | ||
35272 | int | |
35273 | main () | |
35274 | { | |
35275 | ||
35276 | long l; | |
35277 | struct statfs fs; | |
35278 | statfs("/", &fs); | |
35279 | l = fs.f_bsize; | |
35280 | l += fs.f_blocks; | |
35281 | l += fs.f_bavail; | |
35282 | ||
35283 | ; | |
35284 | return 0; | |
35285 | } | |
35286 | _ACEOF | |
35287 | rm -f conftest.$ac_objext | |
35288 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35289 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35290 | ac_status=$? |
ac1cb8d3 VS |
35291 | grep -v '^ *+' conftest.er1 >conftest.err |
35292 | rm -f conftest.er1 | |
35293 | cat conftest.err >&5 | |
a848cd7e SC |
35294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35295 | (exit $ac_status); } && | |
d25774ab JS |
35296 | { ac_try='test -z "$ac_cxx_werror_flag" |
35297 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35299 | (eval $ac_try) 2>&5 | |
35300 | ac_status=$? | |
35301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35302 | (exit $ac_status); }; } && | |
35303 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35305 | (eval $ac_try) 2>&5 | |
35306 | ac_status=$? | |
35307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35308 | (exit $ac_status); }; }; then | |
84ae7ca4 | 35309 | wx_cv_func_statfs=yes |
a848cd7e SC |
35310 | else |
35311 | echo "$as_me: failed program was:" >&5 | |
35312 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35313 | ||
84ae7ca4 | 35314 | wx_cv_func_statfs=no |
a848cd7e SC |
35315 | |
35316 | fi | |
ac1cb8d3 | 35317 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35318 | |
35319 | fi | |
35320 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
35321 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
35322 | ||
35323 | if test "$wx_cv_func_statfs" = "yes"; then | |
5d7b7554 | 35324 | echo "$as_me:$LINENO: checking for statfs declaration" >&5 |
84ae7ca4 VZ |
35325 | echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6 |
35326 | if test "${wx_cv_func_statfs_decl+set}" = set; then | |
35327 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35328 | else | |
0683aca6 VZ |
35329 | cat >conftest.$ac_ext <<_ACEOF |
35330 | /* confdefs.h. */ | |
35331 | _ACEOF | |
35332 | cat confdefs.h >>conftest.$ac_ext | |
35333 | cat >>conftest.$ac_ext <<_ACEOF | |
35334 | /* end confdefs.h. */ | |
84ae7ca4 | 35335 | |
0683aca6 VZ |
35336 | #if defined(__BSD__) |
35337 | #include <sys/param.h> | |
35338 | #include <sys/mount.h> | |
35339 | #else | |
35340 | #include <sys/vfs.h> | |
35341 | #endif | |
35342 | ||
35343 | int | |
35344 | main () | |
35345 | { | |
35346 | ||
35347 | struct statfs fs; | |
35348 | statfs("", &fs); | |
35349 | ||
35350 | ; | |
35351 | return 0; | |
35352 | } | |
35353 | _ACEOF | |
35354 | rm -f conftest.$ac_objext | |
35355 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35356 | (eval $ac_compile) 2>conftest.er1 | |
35357 | ac_status=$? | |
35358 | grep -v '^ *+' conftest.er1 >conftest.err | |
35359 | rm -f conftest.er1 | |
35360 | cat conftest.err >&5 | |
35361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35362 | (exit $ac_status); } && | |
d25774ab JS |
35363 | { ac_try='test -z "$ac_cxx_werror_flag" |
35364 | || test ! -s conftest.err' | |
0683aca6 VZ |
35365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35366 | (eval $ac_try) 2>&5 | |
35367 | ac_status=$? | |
35368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35369 | (exit $ac_status); }; } && | |
35370 | { ac_try='test -s conftest.$ac_objext' | |
35371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35372 | (eval $ac_try) 2>&5 | |
35373 | ac_status=$? | |
35374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35375 | (exit $ac_status); }; }; then | |
35376 | wx_cv_func_statfs_decl=yes | |
35377 | else | |
35378 | echo "$as_me: failed program was:" >&5 | |
35379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35380 | ||
35381 | wx_cv_func_statfs_decl=no | |
35382 | ||
35383 | fi | |
35384 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
84ae7ca4 VZ |
35385 | |
35386 | fi | |
35387 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5 | |
35388 | echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6 | |
84ae7ca4 VZ |
35389 | |
35390 | if test "$wx_cv_func_statfs_decl" = "yes"; then | |
35391 | cat >>confdefs.h <<\_ACEOF | |
35392 | #define HAVE_STATFS_DECL 1 | |
35393 | _ACEOF | |
35394 | ||
35395 | fi | |
35396 | ||
a848cd7e SC |
35397 | wx_cv_type_statvfs_t="struct statfs" |
35398 | cat >>confdefs.h <<\_ACEOF | |
35399 | #define HAVE_STATFS 1 | |
35400 | _ACEOF | |
35401 | ||
35402 | else | |
35403 | echo "$as_me:$LINENO: checking for statvfs" >&5 | |
35404 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
35405 | if test "${wx_cv_func_statvfs+set}" = set; then | |
35406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35407 | else | |
35408 | cat >conftest.$ac_ext <<_ACEOF | |
35409 | /* confdefs.h. */ | |
35410 | _ACEOF | |
35411 | cat confdefs.h >>conftest.$ac_ext | |
35412 | cat >>conftest.$ac_ext <<_ACEOF | |
35413 | /* end confdefs.h. */ | |
35414 | ||
35415 | #include <stddef.h> | |
35416 | #include <sys/statvfs.h> | |
35417 | ||
35418 | int | |
35419 | main () | |
35420 | { | |
35421 | ||
35422 | statvfs("/", NULL); | |
35423 | ||
35424 | ; | |
35425 | return 0; | |
35426 | } | |
35427 | _ACEOF | |
35428 | rm -f conftest.$ac_objext | |
35429 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35430 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35431 | ac_status=$? |
ac1cb8d3 VS |
35432 | grep -v '^ *+' conftest.er1 >conftest.err |
35433 | rm -f conftest.er1 | |
35434 | cat conftest.err >&5 | |
a848cd7e SC |
35435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35436 | (exit $ac_status); } && | |
d25774ab JS |
35437 | { ac_try='test -z "$ac_cxx_werror_flag" |
35438 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35440 | (eval $ac_try) 2>&5 | |
35441 | ac_status=$? | |
35442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35443 | (exit $ac_status); }; } && | |
35444 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35446 | (eval $ac_try) 2>&5 | |
35447 | ac_status=$? | |
35448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35449 | (exit $ac_status); }; }; then | |
35450 | wx_cv_func_statvfs=yes | |
35451 | else | |
35452 | echo "$as_me: failed program was:" >&5 | |
35453 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35454 | ||
35455 | wx_cv_func_statvfs=no | |
35456 | ||
35457 | fi | |
ac1cb8d3 | 35458 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35459 | |
35460 | fi | |
35461 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
35462 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
35463 | ||
35464 | if test "$wx_cv_func_statvfs" = "yes"; then | |
5d7b7554 | 35465 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 |
a848cd7e SC |
35466 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 |
35467 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
35468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35469 | else | |
35470 | cat >conftest.$ac_ext <<_ACEOF | |
35471 | /* confdefs.h. */ | |
35472 | _ACEOF | |
35473 | cat confdefs.h >>conftest.$ac_ext | |
35474 | cat >>conftest.$ac_ext <<_ACEOF | |
35475 | /* end confdefs.h. */ | |
35476 | ||
35477 | #include <sys/statvfs.h> | |
35478 | ||
35479 | int | |
35480 | main () | |
35481 | { | |
35482 | ||
35483 | long l; | |
35484 | statvfs_t fs; | |
35485 | statvfs("/", &fs); | |
35486 | l = fs.f_bsize; | |
35487 | l += fs.f_blocks; | |
35488 | l += fs.f_bavail; | |
35489 | ||
35490 | ; | |
35491 | return 0; | |
35492 | } | |
35493 | _ACEOF | |
35494 | rm -f conftest.$ac_objext | |
35495 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35496 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35497 | ac_status=$? |
ac1cb8d3 VS |
35498 | grep -v '^ *+' conftest.er1 >conftest.err |
35499 | rm -f conftest.er1 | |
35500 | cat conftest.err >&5 | |
a848cd7e SC |
35501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35502 | (exit $ac_status); } && | |
d25774ab JS |
35503 | { ac_try='test -z "$ac_cxx_werror_flag" |
35504 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35506 | (eval $ac_try) 2>&5 | |
35507 | ac_status=$? | |
35508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35509 | (exit $ac_status); }; } && | |
35510 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35512 | (eval $ac_try) 2>&5 | |
35513 | ac_status=$? | |
35514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35515 | (exit $ac_status); }; }; then | |
35516 | wx_cv_type_statvfs_t=statvfs_t | |
35517 | else | |
35518 | echo "$as_me: failed program was:" >&5 | |
35519 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35520 | ||
35521 | ||
35522 | cat >conftest.$ac_ext <<_ACEOF | |
35523 | /* confdefs.h. */ | |
35524 | _ACEOF | |
35525 | cat confdefs.h >>conftest.$ac_ext | |
35526 | cat >>conftest.$ac_ext <<_ACEOF | |
35527 | /* end confdefs.h. */ | |
35528 | ||
35529 | #include <sys/statvfs.h> | |
35530 | ||
35531 | int | |
35532 | main () | |
35533 | { | |
35534 | ||
35535 | long l; | |
35536 | struct statvfs fs; | |
35537 | statvfs("/", &fs); | |
35538 | l = fs.f_bsize; | |
35539 | l += fs.f_blocks; | |
35540 | l += fs.f_bavail; | |
35541 | ||
35542 | ; | |
35543 | return 0; | |
35544 | } | |
35545 | _ACEOF | |
35546 | rm -f conftest.$ac_objext | |
35547 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35548 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35549 | ac_status=$? |
ac1cb8d3 VS |
35550 | grep -v '^ *+' conftest.er1 >conftest.err |
35551 | rm -f conftest.er1 | |
35552 | cat conftest.err >&5 | |
a848cd7e SC |
35553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35554 | (exit $ac_status); } && | |
d25774ab JS |
35555 | { ac_try='test -z "$ac_cxx_werror_flag" |
35556 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35558 | (eval $ac_try) 2>&5 | |
35559 | ac_status=$? | |
35560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35561 | (exit $ac_status); }; } && | |
35562 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35564 | (eval $ac_try) 2>&5 | |
35565 | ac_status=$? | |
35566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35567 | (exit $ac_status); }; }; then | |
35568 | wx_cv_type_statvfs_t="struct statvfs" | |
35569 | else | |
35570 | echo "$as_me: failed program was:" >&5 | |
35571 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35572 | ||
35573 | wx_cv_type_statvfs_t="unknown" | |
35574 | ||
35575 | fi | |
ac1cb8d3 | 35576 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35577 | |
35578 | ||
35579 | fi | |
ac1cb8d3 | 35580 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35581 | |
35582 | fi | |
35583 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
35584 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
35585 | ||
a848cd7e SC |
35586 | if test "$wx_cv_type_statvfs_t" != "unknown"; then |
35587 | cat >>confdefs.h <<\_ACEOF | |
35588 | #define HAVE_STATVFS 1 | |
35589 | _ACEOF | |
35590 | ||
35591 | fi | |
35592 | else | |
35593 | wx_cv_type_statvfs_t="unknown" | |
35594 | fi | |
35595 | fi | |
35596 | ||
35597 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
35598 | cat >>confdefs.h <<_ACEOF | |
35599 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
35600 | _ACEOF | |
35601 | ||
35602 | else | |
35603 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 | |
35604 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
35605 | fi | |
35606 | ||
35607 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
35608 | ||
35609 | ||
35610 | for ac_func in fcntl flock | |
35611 | do | |
35612 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35613 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35614 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35615 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35616 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35617 | else | |
35618 | cat >conftest.$ac_ext <<_ACEOF | |
35619 | /* confdefs.h. */ | |
35620 | _ACEOF | |
35621 | cat confdefs.h >>conftest.$ac_ext | |
35622 | cat >>conftest.$ac_ext <<_ACEOF | |
35623 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35624 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35625 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35626 | #define $ac_func innocuous_$ac_func | |
35627 | ||
a848cd7e SC |
35628 | /* System header to define __stub macros and hopefully few prototypes, |
35629 | which can conflict with char $ac_func (); below. | |
35630 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35631 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35632 | |
a848cd7e SC |
35633 | #ifdef __STDC__ |
35634 | # include <limits.h> | |
35635 | #else | |
35636 | # include <assert.h> | |
35637 | #endif | |
ac1cb8d3 VS |
35638 | |
35639 | #undef $ac_func | |
35640 | ||
a848cd7e SC |
35641 | /* Override any gcc2 internal prototype to avoid an error. */ |
35642 | #ifdef __cplusplus | |
35643 | extern "C" | |
35644 | { | |
35645 | #endif | |
35646 | /* We use char because int might match the return type of a gcc2 | |
35647 | builtin and then its argument prototype would still apply. */ | |
35648 | char $ac_func (); | |
35649 | /* The GNU C library defines this for functions which it implements | |
35650 | to always fail with ENOSYS. Some functions are actually named | |
35651 | something starting with __ and the normal name is an alias. */ | |
35652 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35653 | choke me | |
35654 | #else | |
35655 | char (*f) () = $ac_func; | |
35656 | #endif | |
35657 | #ifdef __cplusplus | |
35658 | } | |
35659 | #endif | |
35660 | ||
35661 | int | |
35662 | main () | |
35663 | { | |
35664 | return f != $ac_func; | |
35665 | ; | |
35666 | return 0; | |
35667 | } | |
35668 | _ACEOF | |
35669 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35670 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35671 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35672 | ac_status=$? |
ac1cb8d3 VS |
35673 | grep -v '^ *+' conftest.er1 >conftest.err |
35674 | rm -f conftest.er1 | |
35675 | cat conftest.err >&5 | |
a848cd7e SC |
35676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35677 | (exit $ac_status); } && | |
d25774ab JS |
35678 | { ac_try='test -z "$ac_cxx_werror_flag" |
35679 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35681 | (eval $ac_try) 2>&5 | |
35682 | ac_status=$? | |
35683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35684 | (exit $ac_status); }; } && | |
35685 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35687 | (eval $ac_try) 2>&5 | |
35688 | ac_status=$? | |
35689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35690 | (exit $ac_status); }; }; then | |
35691 | eval "$as_ac_var=yes" | |
35692 | else | |
35693 | echo "$as_me: failed program was:" >&5 | |
35694 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35695 | ||
35696 | eval "$as_ac_var=no" | |
35697 | fi | |
ac1cb8d3 VS |
35698 | rm -f conftest.err conftest.$ac_objext \ |
35699 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35700 | fi |
35701 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35702 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35703 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35704 | cat >>confdefs.h <<_ACEOF | |
35705 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35706 | _ACEOF | |
35707 | break | |
35708 | fi | |
35709 | done | |
35710 | ||
35711 | ||
35712 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
35713 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 | |
35714 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
35715 | wxUSE_SNGLINST_CHECKER=no | |
35716 | fi | |
35717 | fi | |
35718 | ||
35719 | ||
35720 | for ac_func in timegm | |
35721 | do | |
35722 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35723 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35724 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35725 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35726 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35727 | else | |
35728 | cat >conftest.$ac_ext <<_ACEOF | |
35729 | /* confdefs.h. */ | |
35730 | _ACEOF | |
35731 | cat confdefs.h >>conftest.$ac_ext | |
35732 | cat >>conftest.$ac_ext <<_ACEOF | |
35733 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35734 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35735 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35736 | #define $ac_func innocuous_$ac_func | |
35737 | ||
a848cd7e SC |
35738 | /* System header to define __stub macros and hopefully few prototypes, |
35739 | which can conflict with char $ac_func (); below. | |
35740 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35741 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35742 | |
a848cd7e SC |
35743 | #ifdef __STDC__ |
35744 | # include <limits.h> | |
35745 | #else | |
35746 | # include <assert.h> | |
35747 | #endif | |
ac1cb8d3 VS |
35748 | |
35749 | #undef $ac_func | |
35750 | ||
a848cd7e SC |
35751 | /* Override any gcc2 internal prototype to avoid an error. */ |
35752 | #ifdef __cplusplus | |
35753 | extern "C" | |
35754 | { | |
35755 | #endif | |
35756 | /* We use char because int might match the return type of a gcc2 | |
35757 | builtin and then its argument prototype would still apply. */ | |
35758 | char $ac_func (); | |
35759 | /* The GNU C library defines this for functions which it implements | |
35760 | to always fail with ENOSYS. Some functions are actually named | |
35761 | something starting with __ and the normal name is an alias. */ | |
35762 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35763 | choke me | |
35764 | #else | |
35765 | char (*f) () = $ac_func; | |
35766 | #endif | |
35767 | #ifdef __cplusplus | |
35768 | } | |
35769 | #endif | |
35770 | ||
35771 | int | |
35772 | main () | |
35773 | { | |
35774 | return f != $ac_func; | |
35775 | ; | |
35776 | return 0; | |
35777 | } | |
35778 | _ACEOF | |
35779 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35780 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35781 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35782 | ac_status=$? |
ac1cb8d3 VS |
35783 | grep -v '^ *+' conftest.er1 >conftest.err |
35784 | rm -f conftest.er1 | |
35785 | cat conftest.err >&5 | |
a848cd7e SC |
35786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35787 | (exit $ac_status); } && | |
d25774ab JS |
35788 | { ac_try='test -z "$ac_cxx_werror_flag" |
35789 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35791 | (eval $ac_try) 2>&5 | |
35792 | ac_status=$? | |
35793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35794 | (exit $ac_status); }; } && | |
35795 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35797 | (eval $ac_try) 2>&5 | |
35798 | ac_status=$? | |
35799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35800 | (exit $ac_status); }; }; then | |
35801 | eval "$as_ac_var=yes" | |
35802 | else | |
35803 | echo "$as_me: failed program was:" >&5 | |
35804 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35805 | ||
35806 | eval "$as_ac_var=no" | |
35807 | fi | |
ac1cb8d3 VS |
35808 | rm -f conftest.err conftest.$ac_objext \ |
35809 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35810 | fi |
35811 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35812 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35813 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35814 | cat >>confdefs.h <<_ACEOF | |
35815 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35816 | _ACEOF | |
35817 | ||
35818 | fi | |
35819 | done | |
35820 | ||
35821 | ||
35822 | ||
35823 | ||
35824 | for ac_func in putenv setenv | |
35825 | do | |
35826 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35827 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35828 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35829 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35830 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35831 | else | |
35832 | cat >conftest.$ac_ext <<_ACEOF | |
35833 | /* confdefs.h. */ | |
35834 | _ACEOF | |
35835 | cat confdefs.h >>conftest.$ac_ext | |
35836 | cat >>conftest.$ac_ext <<_ACEOF | |
35837 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35838 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35839 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35840 | #define $ac_func innocuous_$ac_func | |
35841 | ||
a848cd7e SC |
35842 | /* System header to define __stub macros and hopefully few prototypes, |
35843 | which can conflict with char $ac_func (); below. | |
35844 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35845 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35846 | |
a848cd7e SC |
35847 | #ifdef __STDC__ |
35848 | # include <limits.h> | |
35849 | #else | |
35850 | # include <assert.h> | |
35851 | #endif | |
ac1cb8d3 VS |
35852 | |
35853 | #undef $ac_func | |
35854 | ||
a848cd7e SC |
35855 | /* Override any gcc2 internal prototype to avoid an error. */ |
35856 | #ifdef __cplusplus | |
35857 | extern "C" | |
35858 | { | |
35859 | #endif | |
35860 | /* We use char because int might match the return type of a gcc2 | |
35861 | builtin and then its argument prototype would still apply. */ | |
35862 | char $ac_func (); | |
35863 | /* The GNU C library defines this for functions which it implements | |
35864 | to always fail with ENOSYS. Some functions are actually named | |
35865 | something starting with __ and the normal name is an alias. */ | |
35866 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35867 | choke me | |
35868 | #else | |
35869 | char (*f) () = $ac_func; | |
35870 | #endif | |
35871 | #ifdef __cplusplus | |
35872 | } | |
35873 | #endif | |
35874 | ||
35875 | int | |
35876 | main () | |
35877 | { | |
35878 | return f != $ac_func; | |
35879 | ; | |
35880 | return 0; | |
35881 | } | |
35882 | _ACEOF | |
35883 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35884 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35885 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35886 | ac_status=$? |
ac1cb8d3 VS |
35887 | grep -v '^ *+' conftest.er1 >conftest.err |
35888 | rm -f conftest.er1 | |
35889 | cat conftest.err >&5 | |
a848cd7e SC |
35890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35891 | (exit $ac_status); } && | |
d25774ab JS |
35892 | { ac_try='test -z "$ac_cxx_werror_flag" |
35893 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35895 | (eval $ac_try) 2>&5 | |
35896 | ac_status=$? | |
35897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35898 | (exit $ac_status); }; } && | |
35899 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35901 | (eval $ac_try) 2>&5 | |
35902 | ac_status=$? | |
35903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35904 | (exit $ac_status); }; }; then | |
35905 | eval "$as_ac_var=yes" | |
35906 | else | |
35907 | echo "$as_me: failed program was:" >&5 | |
35908 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35909 | ||
35910 | eval "$as_ac_var=no" | |
35911 | fi | |
ac1cb8d3 VS |
35912 | rm -f conftest.err conftest.$ac_objext \ |
35913 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35914 | fi |
35915 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35916 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35917 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35918 | cat >>confdefs.h <<_ACEOF | |
35919 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35920 | _ACEOF | |
35921 | break | |
35922 | fi | |
35923 | done | |
35924 | ||
35925 | ||
35926 | HAVE_SOME_SLEEP_FUNC=0 | |
35927 | if test "$USE_BEOS" = 1; then | |
35928 | cat >>confdefs.h <<\_ACEOF | |
35929 | #define HAVE_SLEEP 1 | |
35930 | _ACEOF | |
35931 | ||
35932 | HAVE_SOME_SLEEP_FUNC=1 | |
35933 | fi | |
35934 | ||
35935 | if test "$USE_DARWIN" = 1; then | |
35936 | cat >>confdefs.h <<\_ACEOF | |
35937 | #define HAVE_USLEEP 1 | |
35938 | _ACEOF | |
35939 | ||
35940 | HAVE_SOME_SLEEP_FUNC=1 | |
35941 | fi | |
35942 | ||
35943 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
35944 | POSIX4_LINK= | |
35945 | ||
35946 | for ac_func in nanosleep | |
35947 | do | |
35948 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35949 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35950 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35951 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35952 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35953 | else | |
35954 | cat >conftest.$ac_ext <<_ACEOF | |
35955 | /* confdefs.h. */ | |
35956 | _ACEOF | |
35957 | cat confdefs.h >>conftest.$ac_ext | |
35958 | cat >>conftest.$ac_ext <<_ACEOF | |
35959 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35960 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35961 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35962 | #define $ac_func innocuous_$ac_func | |
35963 | ||
a848cd7e SC |
35964 | /* System header to define __stub macros and hopefully few prototypes, |
35965 | which can conflict with char $ac_func (); below. | |
35966 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35967 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35968 | |
a848cd7e SC |
35969 | #ifdef __STDC__ |
35970 | # include <limits.h> | |
35971 | #else | |
35972 | # include <assert.h> | |
35973 | #endif | |
ac1cb8d3 VS |
35974 | |
35975 | #undef $ac_func | |
35976 | ||
a848cd7e SC |
35977 | /* Override any gcc2 internal prototype to avoid an error. */ |
35978 | #ifdef __cplusplus | |
35979 | extern "C" | |
35980 | { | |
35981 | #endif | |
35982 | /* We use char because int might match the return type of a gcc2 | |
35983 | builtin and then its argument prototype would still apply. */ | |
35984 | char $ac_func (); | |
35985 | /* The GNU C library defines this for functions which it implements | |
35986 | to always fail with ENOSYS. Some functions are actually named | |
35987 | something starting with __ and the normal name is an alias. */ | |
35988 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35989 | choke me | |
35990 | #else | |
35991 | char (*f) () = $ac_func; | |
35992 | #endif | |
35993 | #ifdef __cplusplus | |
35994 | } | |
35995 | #endif | |
35996 | ||
35997 | int | |
35998 | main () | |
35999 | { | |
36000 | return f != $ac_func; | |
36001 | ; | |
36002 | return 0; | |
36003 | } | |
36004 | _ACEOF | |
36005 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36006 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36007 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36008 | ac_status=$? |
ac1cb8d3 VS |
36009 | grep -v '^ *+' conftest.er1 >conftest.err |
36010 | rm -f conftest.er1 | |
36011 | cat conftest.err >&5 | |
a848cd7e SC |
36012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36013 | (exit $ac_status); } && | |
d25774ab JS |
36014 | { ac_try='test -z "$ac_cxx_werror_flag" |
36015 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36017 | (eval $ac_try) 2>&5 | |
36018 | ac_status=$? | |
36019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36020 | (exit $ac_status); }; } && | |
36021 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36023 | (eval $ac_try) 2>&5 | |
36024 | ac_status=$? | |
36025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36026 | (exit $ac_status); }; }; then | |
36027 | eval "$as_ac_var=yes" | |
36028 | else | |
36029 | echo "$as_me: failed program was:" >&5 | |
36030 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36031 | ||
36032 | eval "$as_ac_var=no" | |
36033 | fi | |
ac1cb8d3 VS |
36034 | rm -f conftest.err conftest.$ac_objext \ |
36035 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36036 | fi |
36037 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36038 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36039 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36040 | cat >>confdefs.h <<_ACEOF | |
36041 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36042 | _ACEOF | |
36043 | cat >>confdefs.h <<\_ACEOF | |
36044 | #define HAVE_NANOSLEEP 1 | |
36045 | _ACEOF | |
36046 | ||
36047 | else | |
36048 | ||
36049 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
36050 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
36051 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
36052 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36053 | else | |
36054 | ac_check_lib_save_LIBS=$LIBS | |
36055 | LIBS="-lposix4 $LIBS" | |
36056 | cat >conftest.$ac_ext <<_ACEOF | |
36057 | /* confdefs.h. */ | |
36058 | _ACEOF | |
36059 | cat confdefs.h >>conftest.$ac_ext | |
36060 | cat >>conftest.$ac_ext <<_ACEOF | |
36061 | /* end confdefs.h. */ | |
36062 | ||
36063 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36064 | #ifdef __cplusplus | |
36065 | extern "C" | |
36066 | #endif | |
36067 | /* We use char because int might match the return type of a gcc2 | |
36068 | builtin and then its argument prototype would still apply. */ | |
36069 | char nanosleep (); | |
36070 | int | |
36071 | main () | |
36072 | { | |
36073 | nanosleep (); | |
36074 | ; | |
36075 | return 0; | |
36076 | } | |
36077 | _ACEOF | |
36078 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36079 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36080 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36081 | ac_status=$? |
ac1cb8d3 VS |
36082 | grep -v '^ *+' conftest.er1 >conftest.err |
36083 | rm -f conftest.er1 | |
36084 | cat conftest.err >&5 | |
a848cd7e SC |
36085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36086 | (exit $ac_status); } && | |
d25774ab JS |
36087 | { ac_try='test -z "$ac_cxx_werror_flag" |
36088 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36090 | (eval $ac_try) 2>&5 | |
36091 | ac_status=$? | |
36092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36093 | (exit $ac_status); }; } && | |
36094 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36096 | (eval $ac_try) 2>&5 | |
36097 | ac_status=$? | |
36098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36099 | (exit $ac_status); }; }; then | |
36100 | ac_cv_lib_posix4_nanosleep=yes | |
36101 | else | |
36102 | echo "$as_me: failed program was:" >&5 | |
36103 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36104 | ||
36105 | ac_cv_lib_posix4_nanosleep=no | |
36106 | fi | |
ac1cb8d3 VS |
36107 | rm -f conftest.err conftest.$ac_objext \ |
36108 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36109 | LIBS=$ac_check_lib_save_LIBS |
36110 | fi | |
36111 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
36112 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
36113 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
36114 | ||
36115 | cat >>confdefs.h <<\_ACEOF | |
36116 | #define HAVE_NANOSLEEP 1 | |
36117 | _ACEOF | |
36118 | ||
36119 | POSIX4_LINK=" -lposix4" | |
36120 | ||
36121 | else | |
36122 | ||
36123 | ||
36124 | for ac_func in usleep | |
36125 | do | |
36126 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36127 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36128 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36129 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36130 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36131 | else | |
36132 | cat >conftest.$ac_ext <<_ACEOF | |
36133 | /* confdefs.h. */ | |
36134 | _ACEOF | |
36135 | cat confdefs.h >>conftest.$ac_ext | |
36136 | cat >>conftest.$ac_ext <<_ACEOF | |
36137 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36138 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36139 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36140 | #define $ac_func innocuous_$ac_func | |
36141 | ||
a848cd7e SC |
36142 | /* System header to define __stub macros and hopefully few prototypes, |
36143 | which can conflict with char $ac_func (); below. | |
36144 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36145 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36146 | |
a848cd7e SC |
36147 | #ifdef __STDC__ |
36148 | # include <limits.h> | |
36149 | #else | |
36150 | # include <assert.h> | |
36151 | #endif | |
ac1cb8d3 VS |
36152 | |
36153 | #undef $ac_func | |
36154 | ||
a848cd7e SC |
36155 | /* Override any gcc2 internal prototype to avoid an error. */ |
36156 | #ifdef __cplusplus | |
36157 | extern "C" | |
36158 | { | |
36159 | #endif | |
36160 | /* We use char because int might match the return type of a gcc2 | |
36161 | builtin and then its argument prototype would still apply. */ | |
36162 | char $ac_func (); | |
36163 | /* The GNU C library defines this for functions which it implements | |
36164 | to always fail with ENOSYS. Some functions are actually named | |
36165 | something starting with __ and the normal name is an alias. */ | |
36166 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36167 | choke me | |
36168 | #else | |
36169 | char (*f) () = $ac_func; | |
36170 | #endif | |
36171 | #ifdef __cplusplus | |
36172 | } | |
36173 | #endif | |
36174 | ||
36175 | int | |
36176 | main () | |
36177 | { | |
36178 | return f != $ac_func; | |
36179 | ; | |
36180 | return 0; | |
36181 | } | |
36182 | _ACEOF | |
36183 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36184 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36185 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36186 | ac_status=$? |
ac1cb8d3 VS |
36187 | grep -v '^ *+' conftest.er1 >conftest.err |
36188 | rm -f conftest.er1 | |
36189 | cat conftest.err >&5 | |
a848cd7e SC |
36190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36191 | (exit $ac_status); } && | |
d25774ab JS |
36192 | { ac_try='test -z "$ac_cxx_werror_flag" |
36193 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36195 | (eval $ac_try) 2>&5 | |
36196 | ac_status=$? | |
36197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36198 | (exit $ac_status); }; } && | |
36199 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36201 | (eval $ac_try) 2>&5 | |
36202 | ac_status=$? | |
36203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36204 | (exit $ac_status); }; }; then | |
36205 | eval "$as_ac_var=yes" | |
36206 | else | |
36207 | echo "$as_me: failed program was:" >&5 | |
36208 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36209 | ||
36210 | eval "$as_ac_var=no" | |
36211 | fi | |
ac1cb8d3 VS |
36212 | rm -f conftest.err conftest.$ac_objext \ |
36213 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36214 | fi |
36215 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36216 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36217 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36218 | cat >>confdefs.h <<_ACEOF | |
36219 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36220 | _ACEOF | |
36221 | cat >>confdefs.h <<\_ACEOF | |
36222 | #define HAVE_USLEEP 1 | |
36223 | _ACEOF | |
36224 | ||
36225 | else | |
36226 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 | |
36227 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
36228 | ||
36229 | fi | |
36230 | done | |
36231 | ||
36232 | ||
36233 | ||
36234 | fi | |
36235 | ||
36236 | ||
36237 | ||
36238 | fi | |
36239 | done | |
36240 | ||
36241 | fi | |
36242 | ||
36243 | ||
36244 | ||
36245 | for ac_func in uname gethostname | |
36246 | do | |
36247 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36248 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36249 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36250 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36251 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36252 | else | |
36253 | cat >conftest.$ac_ext <<_ACEOF | |
36254 | /* confdefs.h. */ | |
36255 | _ACEOF | |
36256 | cat confdefs.h >>conftest.$ac_ext | |
36257 | cat >>conftest.$ac_ext <<_ACEOF | |
36258 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36259 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36260 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36261 | #define $ac_func innocuous_$ac_func | |
36262 | ||
a848cd7e SC |
36263 | /* System header to define __stub macros and hopefully few prototypes, |
36264 | which can conflict with char $ac_func (); below. | |
36265 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36266 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36267 | |
a848cd7e SC |
36268 | #ifdef __STDC__ |
36269 | # include <limits.h> | |
36270 | #else | |
36271 | # include <assert.h> | |
36272 | #endif | |
ac1cb8d3 VS |
36273 | |
36274 | #undef $ac_func | |
36275 | ||
a848cd7e SC |
36276 | /* Override any gcc2 internal prototype to avoid an error. */ |
36277 | #ifdef __cplusplus | |
36278 | extern "C" | |
36279 | { | |
36280 | #endif | |
36281 | /* We use char because int might match the return type of a gcc2 | |
36282 | builtin and then its argument prototype would still apply. */ | |
36283 | char $ac_func (); | |
36284 | /* The GNU C library defines this for functions which it implements | |
36285 | to always fail with ENOSYS. Some functions are actually named | |
36286 | something starting with __ and the normal name is an alias. */ | |
36287 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36288 | choke me | |
36289 | #else | |
36290 | char (*f) () = $ac_func; | |
36291 | #endif | |
36292 | #ifdef __cplusplus | |
36293 | } | |
36294 | #endif | |
36295 | ||
36296 | int | |
36297 | main () | |
36298 | { | |
36299 | return f != $ac_func; | |
36300 | ; | |
36301 | return 0; | |
36302 | } | |
36303 | _ACEOF | |
36304 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36305 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36306 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36307 | ac_status=$? |
ac1cb8d3 VS |
36308 | grep -v '^ *+' conftest.er1 >conftest.err |
36309 | rm -f conftest.er1 | |
36310 | cat conftest.err >&5 | |
a848cd7e SC |
36311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36312 | (exit $ac_status); } && | |
d25774ab JS |
36313 | { ac_try='test -z "$ac_cxx_werror_flag" |
36314 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36316 | (eval $ac_try) 2>&5 | |
36317 | ac_status=$? | |
36318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36319 | (exit $ac_status); }; } && | |
36320 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36322 | (eval $ac_try) 2>&5 | |
36323 | ac_status=$? | |
36324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36325 | (exit $ac_status); }; }; then | |
36326 | eval "$as_ac_var=yes" | |
36327 | else | |
36328 | echo "$as_me: failed program was:" >&5 | |
36329 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36330 | ||
36331 | eval "$as_ac_var=no" | |
36332 | fi | |
ac1cb8d3 VS |
36333 | rm -f conftest.err conftest.$ac_objext \ |
36334 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36335 | fi |
36336 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36337 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36338 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36339 | cat >>confdefs.h <<_ACEOF | |
36340 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36341 | _ACEOF | |
36342 | break | |
36343 | fi | |
36344 | done | |
36345 | ||
36346 | ||
a848cd7e SC |
36347 | |
36348 | for ac_func in strtok_r | |
36349 | do | |
36350 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36351 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36352 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36353 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36354 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36355 | else | |
36356 | cat >conftest.$ac_ext <<_ACEOF | |
36357 | /* confdefs.h. */ | |
36358 | _ACEOF | |
36359 | cat confdefs.h >>conftest.$ac_ext | |
36360 | cat >>conftest.$ac_ext <<_ACEOF | |
36361 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36362 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36363 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36364 | #define $ac_func innocuous_$ac_func | |
36365 | ||
a848cd7e SC |
36366 | /* System header to define __stub macros and hopefully few prototypes, |
36367 | which can conflict with char $ac_func (); below. | |
36368 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36369 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36370 | |
a848cd7e SC |
36371 | #ifdef __STDC__ |
36372 | # include <limits.h> | |
36373 | #else | |
36374 | # include <assert.h> | |
36375 | #endif | |
ac1cb8d3 VS |
36376 | |
36377 | #undef $ac_func | |
36378 | ||
a848cd7e SC |
36379 | /* Override any gcc2 internal prototype to avoid an error. */ |
36380 | #ifdef __cplusplus | |
36381 | extern "C" | |
36382 | { | |
36383 | #endif | |
36384 | /* We use char because int might match the return type of a gcc2 | |
36385 | builtin and then its argument prototype would still apply. */ | |
36386 | char $ac_func (); | |
36387 | /* The GNU C library defines this for functions which it implements | |
36388 | to always fail with ENOSYS. Some functions are actually named | |
36389 | something starting with __ and the normal name is an alias. */ | |
36390 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36391 | choke me | |
36392 | #else | |
36393 | char (*f) () = $ac_func; | |
36394 | #endif | |
36395 | #ifdef __cplusplus | |
36396 | } | |
36397 | #endif | |
36398 | ||
36399 | int | |
36400 | main () | |
36401 | { | |
36402 | return f != $ac_func; | |
36403 | ; | |
36404 | return 0; | |
36405 | } | |
36406 | _ACEOF | |
36407 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36408 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36409 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36410 | ac_status=$? |
ac1cb8d3 VS |
36411 | grep -v '^ *+' conftest.er1 >conftest.err |
36412 | rm -f conftest.er1 | |
36413 | cat conftest.err >&5 | |
a848cd7e SC |
36414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36415 | (exit $ac_status); } && | |
d25774ab JS |
36416 | { ac_try='test -z "$ac_cxx_werror_flag" |
36417 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36419 | (eval $ac_try) 2>&5 | |
36420 | ac_status=$? | |
36421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36422 | (exit $ac_status); }; } && | |
36423 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36425 | (eval $ac_try) 2>&5 | |
36426 | ac_status=$? | |
36427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36428 | (exit $ac_status); }; }; then | |
36429 | eval "$as_ac_var=yes" | |
36430 | else | |
36431 | echo "$as_me: failed program was:" >&5 | |
36432 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36433 | ||
36434 | eval "$as_ac_var=no" | |
36435 | fi | |
ac1cb8d3 VS |
36436 | rm -f conftest.err conftest.$ac_objext \ |
36437 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36438 | fi |
36439 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36440 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36441 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36442 | cat >>confdefs.h <<_ACEOF | |
36443 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36444 | _ACEOF | |
36445 | ||
36446 | fi | |
36447 | done | |
36448 | ||
36449 | ||
a848cd7e SC |
36450 | INET_LINK= |
36451 | ||
36452 | for ac_func in inet_addr | |
36453 | do | |
36454 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36455 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36456 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36457 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36458 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36459 | else | |
36460 | cat >conftest.$ac_ext <<_ACEOF | |
36461 | /* confdefs.h. */ | |
36462 | _ACEOF | |
36463 | cat confdefs.h >>conftest.$ac_ext | |
36464 | cat >>conftest.$ac_ext <<_ACEOF | |
36465 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36466 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36467 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36468 | #define $ac_func innocuous_$ac_func | |
36469 | ||
a848cd7e SC |
36470 | /* System header to define __stub macros and hopefully few prototypes, |
36471 | which can conflict with char $ac_func (); below. | |
36472 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36473 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36474 | |
a848cd7e SC |
36475 | #ifdef __STDC__ |
36476 | # include <limits.h> | |
36477 | #else | |
36478 | # include <assert.h> | |
36479 | #endif | |
ac1cb8d3 VS |
36480 | |
36481 | #undef $ac_func | |
36482 | ||
a848cd7e SC |
36483 | /* Override any gcc2 internal prototype to avoid an error. */ |
36484 | #ifdef __cplusplus | |
36485 | extern "C" | |
36486 | { | |
36487 | #endif | |
36488 | /* We use char because int might match the return type of a gcc2 | |
36489 | builtin and then its argument prototype would still apply. */ | |
36490 | char $ac_func (); | |
36491 | /* The GNU C library defines this for functions which it implements | |
36492 | to always fail with ENOSYS. Some functions are actually named | |
36493 | something starting with __ and the normal name is an alias. */ | |
36494 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36495 | choke me | |
36496 | #else | |
36497 | char (*f) () = $ac_func; | |
36498 | #endif | |
36499 | #ifdef __cplusplus | |
36500 | } | |
36501 | #endif | |
36502 | ||
36503 | int | |
36504 | main () | |
36505 | { | |
36506 | return f != $ac_func; | |
36507 | ; | |
36508 | return 0; | |
36509 | } | |
36510 | _ACEOF | |
36511 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36512 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36513 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36514 | ac_status=$? |
ac1cb8d3 VS |
36515 | grep -v '^ *+' conftest.er1 >conftest.err |
36516 | rm -f conftest.er1 | |
36517 | cat conftest.err >&5 | |
a848cd7e SC |
36518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36519 | (exit $ac_status); } && | |
d25774ab JS |
36520 | { ac_try='test -z "$ac_cxx_werror_flag" |
36521 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36523 | (eval $ac_try) 2>&5 | |
36524 | ac_status=$? | |
36525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36526 | (exit $ac_status); }; } && | |
36527 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36529 | (eval $ac_try) 2>&5 | |
36530 | ac_status=$? | |
36531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36532 | (exit $ac_status); }; }; then | |
36533 | eval "$as_ac_var=yes" | |
36534 | else | |
36535 | echo "$as_me: failed program was:" >&5 | |
36536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36537 | ||
36538 | eval "$as_ac_var=no" | |
36539 | fi | |
ac1cb8d3 VS |
36540 | rm -f conftest.err conftest.$ac_objext \ |
36541 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36542 | fi |
36543 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36544 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36545 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36546 | cat >>confdefs.h <<_ACEOF | |
36547 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36548 | _ACEOF | |
36549 | cat >>confdefs.h <<\_ACEOF | |
36550 | #define HAVE_INET_ADDR 1 | |
36551 | _ACEOF | |
36552 | ||
36553 | else | |
36554 | ||
36555 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
36556 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
36557 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
36558 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36559 | else | |
36560 | ac_check_lib_save_LIBS=$LIBS | |
36561 | LIBS="-lnsl $LIBS" | |
36562 | cat >conftest.$ac_ext <<_ACEOF | |
36563 | /* confdefs.h. */ | |
36564 | _ACEOF | |
36565 | cat confdefs.h >>conftest.$ac_ext | |
36566 | cat >>conftest.$ac_ext <<_ACEOF | |
36567 | /* end confdefs.h. */ | |
36568 | ||
36569 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36570 | #ifdef __cplusplus | |
36571 | extern "C" | |
36572 | #endif | |
36573 | /* We use char because int might match the return type of a gcc2 | |
36574 | builtin and then its argument prototype would still apply. */ | |
36575 | char inet_addr (); | |
36576 | int | |
36577 | main () | |
36578 | { | |
36579 | inet_addr (); | |
36580 | ; | |
36581 | return 0; | |
36582 | } | |
36583 | _ACEOF | |
36584 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36585 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36586 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36587 | ac_status=$? |
ac1cb8d3 VS |
36588 | grep -v '^ *+' conftest.er1 >conftest.err |
36589 | rm -f conftest.er1 | |
36590 | cat conftest.err >&5 | |
a848cd7e SC |
36591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36592 | (exit $ac_status); } && | |
d25774ab JS |
36593 | { ac_try='test -z "$ac_cxx_werror_flag" |
36594 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36596 | (eval $ac_try) 2>&5 | |
36597 | ac_status=$? | |
36598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36599 | (exit $ac_status); }; } && | |
36600 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36602 | (eval $ac_try) 2>&5 | |
36603 | ac_status=$? | |
36604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36605 | (exit $ac_status); }; }; then | |
36606 | ac_cv_lib_nsl_inet_addr=yes | |
36607 | else | |
36608 | echo "$as_me: failed program was:" >&5 | |
36609 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36610 | ||
36611 | ac_cv_lib_nsl_inet_addr=no | |
36612 | fi | |
ac1cb8d3 VS |
36613 | rm -f conftest.err conftest.$ac_objext \ |
36614 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36615 | LIBS=$ac_check_lib_save_LIBS |
36616 | fi | |
36617 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
36618 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
36619 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
36620 | INET_LINK="nsl" | |
36621 | else | |
36622 | ||
36623 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
36624 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
36625 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
36626 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36627 | else | |
36628 | ac_check_lib_save_LIBS=$LIBS | |
36629 | LIBS="-lresolv $LIBS" | |
36630 | cat >conftest.$ac_ext <<_ACEOF | |
36631 | /* confdefs.h. */ | |
36632 | _ACEOF | |
36633 | cat confdefs.h >>conftest.$ac_ext | |
36634 | cat >>conftest.$ac_ext <<_ACEOF | |
36635 | /* end confdefs.h. */ | |
36636 | ||
36637 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36638 | #ifdef __cplusplus | |
36639 | extern "C" | |
36640 | #endif | |
36641 | /* We use char because int might match the return type of a gcc2 | |
36642 | builtin and then its argument prototype would still apply. */ | |
36643 | char inet_addr (); | |
36644 | int | |
36645 | main () | |
36646 | { | |
36647 | inet_addr (); | |
36648 | ; | |
36649 | return 0; | |
36650 | } | |
36651 | _ACEOF | |
36652 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36653 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36654 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36655 | ac_status=$? |
ac1cb8d3 VS |
36656 | grep -v '^ *+' conftest.er1 >conftest.err |
36657 | rm -f conftest.er1 | |
36658 | cat conftest.err >&5 | |
a848cd7e SC |
36659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36660 | (exit $ac_status); } && | |
d25774ab JS |
36661 | { ac_try='test -z "$ac_cxx_werror_flag" |
36662 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36664 | (eval $ac_try) 2>&5 | |
36665 | ac_status=$? | |
36666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36667 | (exit $ac_status); }; } && | |
36668 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36670 | (eval $ac_try) 2>&5 | |
36671 | ac_status=$? | |
36672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36673 | (exit $ac_status); }; }; then | |
36674 | ac_cv_lib_resolv_inet_addr=yes | |
36675 | else | |
36676 | echo "$as_me: failed program was:" >&5 | |
36677 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36678 | ||
36679 | ac_cv_lib_resolv_inet_addr=no | |
36680 | fi | |
ac1cb8d3 VS |
36681 | rm -f conftest.err conftest.$ac_objext \ |
36682 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36683 | LIBS=$ac_check_lib_save_LIBS |
36684 | fi | |
36685 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
36686 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
36687 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
36688 | INET_LINK="resolv" | |
36689 | else | |
36690 | ||
36691 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
36692 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
36693 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
36694 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36695 | else | |
36696 | ac_check_lib_save_LIBS=$LIBS | |
36697 | LIBS="-lsocket $LIBS" | |
36698 | cat >conftest.$ac_ext <<_ACEOF | |
36699 | /* confdefs.h. */ | |
36700 | _ACEOF | |
36701 | cat confdefs.h >>conftest.$ac_ext | |
36702 | cat >>conftest.$ac_ext <<_ACEOF | |
36703 | /* end confdefs.h. */ | |
36704 | ||
36705 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36706 | #ifdef __cplusplus | |
36707 | extern "C" | |
36708 | #endif | |
36709 | /* We use char because int might match the return type of a gcc2 | |
36710 | builtin and then its argument prototype would still apply. */ | |
36711 | char inet_addr (); | |
36712 | int | |
36713 | main () | |
36714 | { | |
36715 | inet_addr (); | |
36716 | ; | |
36717 | return 0; | |
36718 | } | |
36719 | _ACEOF | |
36720 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36721 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36722 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36723 | ac_status=$? |
ac1cb8d3 VS |
36724 | grep -v '^ *+' conftest.er1 >conftest.err |
36725 | rm -f conftest.er1 | |
36726 | cat conftest.err >&5 | |
a848cd7e SC |
36727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36728 | (exit $ac_status); } && | |
d25774ab JS |
36729 | { ac_try='test -z "$ac_cxx_werror_flag" |
36730 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36732 | (eval $ac_try) 2>&5 | |
36733 | ac_status=$? | |
36734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36735 | (exit $ac_status); }; } && | |
36736 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36738 | (eval $ac_try) 2>&5 | |
36739 | ac_status=$? | |
36740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36741 | (exit $ac_status); }; }; then | |
36742 | ac_cv_lib_socket_inet_addr=yes | |
36743 | else | |
36744 | echo "$as_me: failed program was:" >&5 | |
36745 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36746 | ||
36747 | ac_cv_lib_socket_inet_addr=no | |
36748 | fi | |
ac1cb8d3 VS |
36749 | rm -f conftest.err conftest.$ac_objext \ |
36750 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36751 | LIBS=$ac_check_lib_save_LIBS |
36752 | fi | |
36753 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
36754 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
36755 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
36756 | INET_LINK="socket" | |
36757 | ||
36758 | fi | |
36759 | ||
36760 | ||
36761 | ||
36762 | fi | |
36763 | ||
36764 | ||
36765 | ||
36766 | fi | |
36767 | ||
36768 | ||
36769 | ||
36770 | fi | |
36771 | done | |
36772 | ||
36773 | ||
36774 | ||
36775 | for ac_func in inet_aton | |
36776 | do | |
36777 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36778 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36779 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36780 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36782 | else | |
36783 | cat >conftest.$ac_ext <<_ACEOF | |
36784 | /* confdefs.h. */ | |
36785 | _ACEOF | |
36786 | cat confdefs.h >>conftest.$ac_ext | |
36787 | cat >>conftest.$ac_ext <<_ACEOF | |
36788 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36789 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36790 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36791 | #define $ac_func innocuous_$ac_func | |
36792 | ||
a848cd7e SC |
36793 | /* System header to define __stub macros and hopefully few prototypes, |
36794 | which can conflict with char $ac_func (); below. | |
36795 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36796 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36797 | |
a848cd7e SC |
36798 | #ifdef __STDC__ |
36799 | # include <limits.h> | |
36800 | #else | |
36801 | # include <assert.h> | |
36802 | #endif | |
ac1cb8d3 VS |
36803 | |
36804 | #undef $ac_func | |
36805 | ||
a848cd7e SC |
36806 | /* Override any gcc2 internal prototype to avoid an error. */ |
36807 | #ifdef __cplusplus | |
36808 | extern "C" | |
36809 | { | |
36810 | #endif | |
36811 | /* We use char because int might match the return type of a gcc2 | |
36812 | builtin and then its argument prototype would still apply. */ | |
36813 | char $ac_func (); | |
36814 | /* The GNU C library defines this for functions which it implements | |
36815 | to always fail with ENOSYS. Some functions are actually named | |
36816 | something starting with __ and the normal name is an alias. */ | |
36817 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36818 | choke me | |
36819 | #else | |
36820 | char (*f) () = $ac_func; | |
36821 | #endif | |
36822 | #ifdef __cplusplus | |
36823 | } | |
36824 | #endif | |
36825 | ||
36826 | int | |
36827 | main () | |
36828 | { | |
36829 | return f != $ac_func; | |
36830 | ; | |
36831 | return 0; | |
36832 | } | |
36833 | _ACEOF | |
36834 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36835 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36836 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36837 | ac_status=$? |
ac1cb8d3 VS |
36838 | grep -v '^ *+' conftest.er1 >conftest.err |
36839 | rm -f conftest.er1 | |
36840 | cat conftest.err >&5 | |
a848cd7e SC |
36841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36842 | (exit $ac_status); } && | |
d25774ab JS |
36843 | { ac_try='test -z "$ac_cxx_werror_flag" |
36844 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36846 | (eval $ac_try) 2>&5 | |
36847 | ac_status=$? | |
36848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36849 | (exit $ac_status); }; } && | |
36850 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36852 | (eval $ac_try) 2>&5 | |
36853 | ac_status=$? | |
36854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36855 | (exit $ac_status); }; }; then | |
36856 | eval "$as_ac_var=yes" | |
36857 | else | |
36858 | echo "$as_me: failed program was:" >&5 | |
36859 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36860 | ||
36861 | eval "$as_ac_var=no" | |
36862 | fi | |
ac1cb8d3 VS |
36863 | rm -f conftest.err conftest.$ac_objext \ |
36864 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36865 | fi |
36866 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36867 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36868 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36869 | cat >>confdefs.h <<_ACEOF | |
36870 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36871 | _ACEOF | |
36872 | cat >>confdefs.h <<\_ACEOF | |
36873 | #define HAVE_INET_ATON 1 | |
36874 | _ACEOF | |
36875 | ||
36876 | else | |
36877 | ||
36878 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
36879 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
36880 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
36881 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
36882 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36883 | else | |
36884 | ac_check_lib_save_LIBS=$LIBS | |
36885 | LIBS="-l$INET_LINK $LIBS" | |
36886 | cat >conftest.$ac_ext <<_ACEOF | |
36887 | /* confdefs.h. */ | |
36888 | _ACEOF | |
36889 | cat confdefs.h >>conftest.$ac_ext | |
36890 | cat >>conftest.$ac_ext <<_ACEOF | |
36891 | /* end confdefs.h. */ | |
36892 | ||
36893 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36894 | #ifdef __cplusplus | |
36895 | extern "C" | |
36896 | #endif | |
36897 | /* We use char because int might match the return type of a gcc2 | |
36898 | builtin and then its argument prototype would still apply. */ | |
36899 | char inet_aton (); | |
36900 | int | |
36901 | main () | |
36902 | { | |
36903 | inet_aton (); | |
36904 | ; | |
36905 | return 0; | |
36906 | } | |
36907 | _ACEOF | |
36908 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36909 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36910 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36911 | ac_status=$? |
ac1cb8d3 VS |
36912 | grep -v '^ *+' conftest.er1 >conftest.err |
36913 | rm -f conftest.er1 | |
36914 | cat conftest.err >&5 | |
a848cd7e SC |
36915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36916 | (exit $ac_status); } && | |
d25774ab JS |
36917 | { ac_try='test -z "$ac_cxx_werror_flag" |
36918 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36920 | (eval $ac_try) 2>&5 | |
36921 | ac_status=$? | |
36922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36923 | (exit $ac_status); }; } && | |
36924 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36926 | (eval $ac_try) 2>&5 | |
36927 | ac_status=$? | |
36928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36929 | (exit $ac_status); }; }; then | |
36930 | eval "$as_ac_Lib=yes" | |
36931 | else | |
36932 | echo "$as_me: failed program was:" >&5 | |
36933 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36934 | ||
36935 | eval "$as_ac_Lib=no" | |
36936 | fi | |
ac1cb8d3 VS |
36937 | rm -f conftest.err conftest.$ac_objext \ |
36938 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36939 | LIBS=$ac_check_lib_save_LIBS |
36940 | fi | |
36941 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
36942 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
36943 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
36944 | cat >>confdefs.h <<\_ACEOF | |
36945 | #define HAVE_INET_ATON 1 | |
36946 | _ACEOF | |
36947 | ||
36948 | fi | |
36949 | ||
36950 | ||
36951 | fi | |
36952 | done | |
36953 | ||
36954 | ||
36955 | if test "x$INET_LINK" != "x"; then | |
36956 | cat >>confdefs.h <<\_ACEOF | |
36957 | #define HAVE_INET_ADDR 1 | |
36958 | _ACEOF | |
36959 | ||
36960 | INET_LINK=" -l$INET_LINK" | |
36961 | fi | |
36962 | ||
36963 | fi | |
36964 | ||
36965 | ||
36966 | ||
36967 | EXTRALIBS_ESD= | |
36968 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
36969 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
36970 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
36971 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36972 | else | |
36973 | ac_check_lib_save_LIBS=$LIBS | |
36974 | LIBS="-lesd $LIBS" | |
36975 | cat >conftest.$ac_ext <<_ACEOF | |
36976 | /* confdefs.h. */ | |
36977 | _ACEOF | |
36978 | cat confdefs.h >>conftest.$ac_ext | |
36979 | cat >>conftest.$ac_ext <<_ACEOF | |
36980 | /* end confdefs.h. */ | |
36981 | ||
36982 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36983 | #ifdef __cplusplus | |
36984 | extern "C" | |
36985 | #endif | |
36986 | /* We use char because int might match the return type of a gcc2 | |
36987 | builtin and then its argument prototype would still apply. */ | |
36988 | char esd_close (); | |
36989 | int | |
36990 | main () | |
36991 | { | |
36992 | esd_close (); | |
36993 | ; | |
36994 | return 0; | |
36995 | } | |
36996 | _ACEOF | |
36997 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36998 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36999 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37000 | ac_status=$? |
ac1cb8d3 VS |
37001 | grep -v '^ *+' conftest.er1 >conftest.err |
37002 | rm -f conftest.er1 | |
37003 | cat conftest.err >&5 | |
a848cd7e SC |
37004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37005 | (exit $ac_status); } && | |
d25774ab JS |
37006 | { ac_try='test -z "$ac_cxx_werror_flag" |
37007 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37009 | (eval $ac_try) 2>&5 | |
37010 | ac_status=$? | |
37011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37012 | (exit $ac_status); }; } && | |
37013 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37015 | (eval $ac_try) 2>&5 | |
37016 | ac_status=$? | |
37017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37018 | (exit $ac_status); }; }; then | |
37019 | ac_cv_lib_esd_esd_close=yes | |
37020 | else | |
37021 | echo "$as_me: failed program was:" >&5 | |
37022 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37023 | ||
37024 | ac_cv_lib_esd_esd_close=no | |
37025 | fi | |
ac1cb8d3 VS |
37026 | rm -f conftest.err conftest.$ac_objext \ |
37027 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37028 | LIBS=$ac_check_lib_save_LIBS |
37029 | fi | |
37030 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
37031 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
37032 | if test $ac_cv_lib_esd_esd_close = yes; then | |
37033 | ||
37034 | ||
37035 | for ac_header in esd.h | |
37036 | do | |
37037 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
37038 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37039 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
37040 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
37041 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37042 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37043 | fi | |
37044 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
37045 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
37046 | else | |
37047 | # Is the header compilable? | |
37048 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
37049 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
37050 | cat >conftest.$ac_ext <<_ACEOF | |
37051 | /* confdefs.h. */ | |
37052 | _ACEOF | |
37053 | cat confdefs.h >>conftest.$ac_ext | |
37054 | cat >>conftest.$ac_ext <<_ACEOF | |
37055 | /* end confdefs.h. */ | |
37056 | $ac_includes_default | |
37057 | #include <$ac_header> | |
37058 | _ACEOF | |
37059 | rm -f conftest.$ac_objext | |
37060 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37061 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37062 | ac_status=$? |
ac1cb8d3 VS |
37063 | grep -v '^ *+' conftest.er1 >conftest.err |
37064 | rm -f conftest.er1 | |
37065 | cat conftest.err >&5 | |
a848cd7e SC |
37066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37067 | (exit $ac_status); } && | |
d25774ab JS |
37068 | { ac_try='test -z "$ac_cxx_werror_flag" |
37069 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37071 | (eval $ac_try) 2>&5 | |
37072 | ac_status=$? | |
37073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37074 | (exit $ac_status); }; } && | |
37075 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37077 | (eval $ac_try) 2>&5 | |
37078 | ac_status=$? | |
37079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37080 | (exit $ac_status); }; }; then | |
37081 | ac_header_compiler=yes | |
37082 | else | |
37083 | echo "$as_me: failed program was:" >&5 | |
37084 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37085 | ||
37086 | ac_header_compiler=no | |
37087 | fi | |
ac1cb8d3 | 37088 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37089 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
37090 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
37091 | ||
37092 | # Is the header present? | |
37093 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
37094 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
37095 | cat >conftest.$ac_ext <<_ACEOF | |
37096 | /* confdefs.h. */ | |
37097 | _ACEOF | |
37098 | cat confdefs.h >>conftest.$ac_ext | |
37099 | cat >>conftest.$ac_ext <<_ACEOF | |
37100 | /* end confdefs.h. */ | |
37101 | #include <$ac_header> | |
37102 | _ACEOF | |
37103 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
37104 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
37105 | ac_status=$? | |
37106 | grep -v '^ *+' conftest.er1 >conftest.err | |
37107 | rm -f conftest.er1 | |
37108 | cat conftest.err >&5 | |
37109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37110 | (exit $ac_status); } >/dev/null; then | |
37111 | if test -s conftest.err; then | |
5d7b7554 VZ |
37112 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
37113 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
37114 | else |
37115 | ac_cpp_err= | |
37116 | fi | |
37117 | else | |
37118 | ac_cpp_err=yes | |
37119 | fi | |
37120 | if test -z "$ac_cpp_err"; then | |
37121 | ac_header_preproc=yes | |
37122 | else | |
37123 | echo "$as_me: failed program was:" >&5 | |
37124 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37125 | ||
37126 | ac_header_preproc=no | |
37127 | fi | |
37128 | rm -f conftest.err conftest.$ac_ext | |
37129 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
37130 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
37131 | ||
37132 | # So? What about this header? | |
5d7b7554 | 37133 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 37134 | yes:no: ) |
a848cd7e SC |
37135 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
37136 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
37137 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
37138 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
37139 | ac_header_preproc=yes | |
a848cd7e | 37140 | ;; |
ac1cb8d3 | 37141 | no:yes:* ) |
a848cd7e SC |
37142 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
37143 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
37144 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
37145 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
37146 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
37147 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
37148 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
37149 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
37150 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
37151 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
37152 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
37153 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
37154 | ( |
37155 | cat <<\_ASBOX | |
ac1cb8d3 VS |
37156 | ## ----------------------------------------- ## |
37157 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
37158 | ## ----------------------------------------- ## | |
a848cd7e SC |
37159 | _ASBOX |
37160 | ) | | |
37161 | sed "s/^/$as_me: WARNING: /" >&2 | |
37162 | ;; | |
37163 | esac | |
37164 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
37165 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
37166 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37167 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37168 | else | |
ac1cb8d3 | 37169 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
37170 | fi |
37171 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
37172 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
37173 | ||
37174 | fi | |
37175 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
37176 | cat >>confdefs.h <<_ACEOF | |
37177 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
37178 | _ACEOF | |
37179 | ||
37180 | EXTRALIBS_ESD="-lesd" | |
37181 | ||
37182 | fi | |
37183 | ||
37184 | done | |
37185 | ||
37186 | ||
37187 | fi | |
37188 | ||
37189 | ||
37190 | ||
37191 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 | |
37192 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
37193 | cat >conftest.$ac_ext <<_ACEOF | |
37194 | /* confdefs.h. */ | |
37195 | _ACEOF | |
37196 | cat confdefs.h >>conftest.$ac_ext | |
37197 | cat >>conftest.$ac_ext <<_ACEOF | |
37198 | /* end confdefs.h. */ | |
37199 | #ifdef __linux__ | |
37200 | #include <linux/cdrom.h> | |
37201 | #else | |
37202 | /* For Solaris */ | |
37203 | #include <sys/cdio.h> | |
37204 | #endif | |
37205 | ||
37206 | int | |
37207 | main () | |
37208 | { | |
37209 | struct cdrom_tocentry entry, old_entry; | |
37210 | ; | |
37211 | return 0; | |
37212 | } | |
37213 | _ACEOF | |
37214 | rm -f conftest.$ac_objext | |
37215 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37216 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37217 | ac_status=$? |
ac1cb8d3 VS |
37218 | grep -v '^ *+' conftest.er1 >conftest.err |
37219 | rm -f conftest.er1 | |
37220 | cat conftest.err >&5 | |
a848cd7e SC |
37221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37222 | (exit $ac_status); } && | |
d25774ab JS |
37223 | { ac_try='test -z "$ac_cxx_werror_flag" |
37224 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37226 | (eval $ac_try) 2>&5 | |
37227 | ac_status=$? | |
37228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37229 | (exit $ac_status); }; } && | |
37230 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37232 | (eval $ac_try) 2>&5 | |
37233 | ac_status=$? | |
37234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37235 | (exit $ac_status); }; }; then | |
37236 | echo "$as_me:$LINENO: result: yes" >&5 | |
37237 | echo "${ECHO_T}yes" >&6 | |
37238 | cat >>confdefs.h <<\_ACEOF | |
37239 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
37240 | _ACEOF | |
37241 | ||
37242 | else | |
37243 | echo "$as_me: failed program was:" >&5 | |
37244 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37245 | ||
37246 | echo "$as_me:$LINENO: result: no" >&5 | |
37247 | echo "${ECHO_T}no" >&6 | |
37248 | fi | |
ac1cb8d3 | 37249 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37250 | |
37251 | ||
37252 | cat >confcache <<\_ACEOF | |
37253 | # This file is a shell script that caches the results of configure | |
37254 | # tests run on this system so they can be shared between configure | |
37255 | # scripts and configure runs, see configure's option --config-cache. | |
37256 | # It is not useful on other systems. If it contains results you don't | |
37257 | # want to keep, you may remove or edit it. | |
37258 | # | |
37259 | # config.status only pays attention to the cache file if you give it | |
37260 | # the --recheck option to rerun configure. | |
37261 | # | |
37262 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
37263 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
37264 | # following values. | |
37265 | ||
37266 | _ACEOF | |
37267 | ||
37268 | # The following way of writing the cache mishandles newlines in values, | |
37269 | # but we know of no workaround that is simple, portable, and efficient. | |
37270 | # So, don't put newlines in cache variables' values. | |
37271 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
37272 | # and sets the high bit in the cache file unless we assign to the vars. | |
37273 | { | |
37274 | (set) 2>&1 | | |
37275 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
37276 | *ac_space=\ *) | |
37277 | # `set' does not quote correctly, so add quotes (double-quote | |
37278 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
37279 | sed -n \ | |
ac1cb8d3 VS |
37280 | "s/'/'\\\\''/g; |
37281 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
37282 | ;; |
37283 | *) | |
37284 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
37285 | sed -n \ | |
ac1cb8d3 | 37286 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
37287 | ;; |
37288 | esac; | |
37289 | } | | |
37290 | sed ' | |
37291 | t clear | |
37292 | : clear | |
37293 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
37294 | t end | |
37295 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
37296 | : end' >>confcache | |
37297 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
37298 | if test -w $cache_file; then | |
37299 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
37300 | cat confcache >$cache_file | |
37301 | else | |
37302 | echo "not updating unwritable cache $cache_file" | |
37303 | fi | |
37304 | fi | |
37305 | rm -f confcache | |
37306 | ||
37307 | ||
a848cd7e SC |
37308 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then |
37309 | ||
37310 | ||
37311 | THREADS_LINK= | |
e56f4f9e | 37312 | THREADS_CXXFLAGS= |
a848cd7e SC |
37313 | |
37314 | if test "$wxUSE_THREADS" = "yes" ; then | |
37315 | if test "$USE_BEOS" = 1; then | |
37316 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 | |
37317 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
37318 | wxUSE_THREADS="no" | |
37319 | fi | |
37320 | fi | |
37321 | ||
37322 | if test "$wxUSE_THREADS" = "yes" ; then | |
37323 | ||
37324 | ||
37325 | THREAD_OPTS="-pthread" | |
37326 | case "${host}" in | |
37327 | *-*-solaris2* | *-*-sunos4* ) | |
37328 | if test "x$GCC" = "xyes"; then | |
37329 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
37330 | else | |
37331 | THREAD_OPTS="-mt $THREAD_OPTS" | |
37332 | fi | |
37333 | ;; | |
37334 | *-*-freebsd*) | |
37335 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
37336 | ;; | |
37337 | *-*-darwin* | *-*-cygwin* ) | |
37338 | THREAD_OPTS="" | |
37339 | ;; | |
37340 | *-*-aix*) | |
37341 | THREAD_OPTS="pthreads" | |
37342 | ;; | |
37343 | *-hp-hpux* ) | |
00421666 MW |
37344 | if test "x$GCC" = "xyes"; then |
37345 | $CXX -dumpspecs | grep 'pthread:' >/dev/null || | |
37346 | THREAD_OPTS="" | |
37347 | else | |
0093c2fc | 37348 | THREAD_OPTS="-mt" |
a848cd7e SC |
37349 | fi |
37350 | ;; | |
37351 | ||
37352 | *-*-irix* ) | |
37353 | if test "x$GCC" = "xyes"; then | |
37354 | THREAD_OPTS="" | |
37355 | fi | |
37356 | ;; | |
37357 | ||
37358 | *-*-*UnixWare*) | |
37359 | if test "x$GCC" != "xyes"; then | |
37360 | THREAD_OPTS="-Ethread" | |
37361 | fi | |
37362 | ;; | |
37363 | esac | |
37364 | ||
37365 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
37366 | ||
37367 | THREADS_OK=no | |
37368 | for flag in $THREAD_OPTS; do | |
37369 | case $flag in | |
37370 | none) | |
37371 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 | |
37372 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
37373 | ;; | |
37374 | ||
37375 | -*) | |
37376 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 | |
37377 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
e56f4f9e | 37378 | THREADS_CXXFLAGS="$flag" |
a848cd7e SC |
37379 | ;; |
37380 | ||
37381 | *) | |
37382 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 | |
37383 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
37384 | THREADS_LINK="-l$flag" | |
37385 | ;; | |
37386 | esac | |
37387 | ||
37388 | save_LIBS="$LIBS" | |
e56f4f9e | 37389 | save_CXXFLAGS="$CXXFLAGS" |
a848cd7e | 37390 | LIBS="$THREADS_LINK $LIBS" |
e56f4f9e | 37391 | CXXFLAGS="$THREADS_CXXFLAGS $CXXFLAGS" |
a848cd7e SC |
37392 | |
37393 | cat >conftest.$ac_ext <<_ACEOF | |
37394 | /* confdefs.h. */ | |
37395 | _ACEOF | |
37396 | cat confdefs.h >>conftest.$ac_ext | |
37397 | cat >>conftest.$ac_ext <<_ACEOF | |
37398 | /* end confdefs.h. */ | |
37399 | #include <pthread.h> | |
37400 | int | |
37401 | main () | |
37402 | { | |
37403 | pthread_create(0,0,0,0); | |
37404 | ; | |
37405 | return 0; | |
37406 | } | |
37407 | _ACEOF | |
37408 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37409 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37410 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37411 | ac_status=$? |
ac1cb8d3 VS |
37412 | grep -v '^ *+' conftest.er1 >conftest.err |
37413 | rm -f conftest.er1 | |
37414 | cat conftest.err >&5 | |
a848cd7e SC |
37415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37416 | (exit $ac_status); } && | |
d25774ab JS |
37417 | { ac_try='test -z "$ac_cxx_werror_flag" |
37418 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37420 | (eval $ac_try) 2>&5 | |
37421 | ac_status=$? | |
37422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37423 | (exit $ac_status); }; } && | |
37424 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37426 | (eval $ac_try) 2>&5 | |
37427 | ac_status=$? | |
37428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37429 | (exit $ac_status); }; }; then | |
37430 | THREADS_OK=yes | |
37431 | else | |
37432 | echo "$as_me: failed program was:" >&5 | |
37433 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37434 | ||
37435 | fi | |
ac1cb8d3 VS |
37436 | rm -f conftest.err conftest.$ac_objext \ |
37437 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37438 | |
37439 | LIBS="$save_LIBS" | |
e56f4f9e | 37440 | CXXFLAGS="$save_CXXFLAGS" |
a848cd7e SC |
37441 | |
37442 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 | |
37443 | echo "${ECHO_T}$THREADS_OK" >&6 | |
37444 | if test "x$THREADS_OK" = "xyes"; then | |
37445 | break; | |
37446 | fi | |
37447 | ||
37448 | THREADS_LINK="" | |
e56f4f9e | 37449 | THREADS_CXXFLAGS="" |
a848cd7e SC |
37450 | done |
37451 | ||
37452 | if test "x$THREADS_OK" != "xyes"; then | |
37453 | wxUSE_THREADS=no | |
37454 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 | |
37455 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
37456 | else | |
e56f4f9e | 37457 | LDFLAGS="$THREADS_CXXFLAGS $LDFLAGS" |
a848cd7e SC |
37458 | LIBS="$THREADS_LINK $LIBS" |
37459 | ||
37460 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 | |
37461 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
37462 | flag=no | |
37463 | case "${host}" in | |
37464 | *-aix*) | |
37465 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
37466 | flag="-D_THREAD_SAFE" | |
37467 | ;; | |
37468 | *-freebsd*) | |
37469 | flag="-D_THREAD_SAFE" | |
37470 | ;; | |
37471 | *-hp-hpux* ) | |
37472 | flag="-D_REENTRANT" | |
37473 | if test "x$GCC" != "xyes"; then | |
37474 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
37475 | fi | |
37476 | ;; | |
37477 | *solaris* | alpha*-osf*) | |
37478 | flag="-D_REENTRANT" | |
37479 | ;; | |
37480 | esac | |
37481 | echo "$as_me:$LINENO: result: ${flag}" >&5 | |
37482 | echo "${ECHO_T}${flag}" >&6 | |
37483 | if test "x$flag" != xno; then | |
e56f4f9e | 37484 | THREADS_CXXFLAGS="$THREADS_CXXFLAGS $flag" |
a848cd7e SC |
37485 | fi |
37486 | ||
e56f4f9e | 37487 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS $THREADS_CXXFLAGS" |
a848cd7e SC |
37488 | fi |
37489 | fi | |
37490 | ||
37491 | if test "$wxUSE_THREADS" = "yes" ; then | |
37492 | ||
37493 | for ac_func in thr_setconcurrency | |
37494 | do | |
37495 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37496 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37497 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37498 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37499 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37500 | else | |
37501 | cat >conftest.$ac_ext <<_ACEOF | |
37502 | /* confdefs.h. */ | |
37503 | _ACEOF | |
37504 | cat confdefs.h >>conftest.$ac_ext | |
37505 | cat >>conftest.$ac_ext <<_ACEOF | |
37506 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37507 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37508 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37509 | #define $ac_func innocuous_$ac_func | |
37510 | ||
a848cd7e SC |
37511 | /* System header to define __stub macros and hopefully few prototypes, |
37512 | which can conflict with char $ac_func (); below. | |
37513 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37514 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37515 | |
a848cd7e SC |
37516 | #ifdef __STDC__ |
37517 | # include <limits.h> | |
37518 | #else | |
37519 | # include <assert.h> | |
37520 | #endif | |
ac1cb8d3 VS |
37521 | |
37522 | #undef $ac_func | |
37523 | ||
a848cd7e SC |
37524 | /* Override any gcc2 internal prototype to avoid an error. */ |
37525 | #ifdef __cplusplus | |
37526 | extern "C" | |
37527 | { | |
37528 | #endif | |
37529 | /* We use char because int might match the return type of a gcc2 | |
37530 | builtin and then its argument prototype would still apply. */ | |
37531 | char $ac_func (); | |
37532 | /* The GNU C library defines this for functions which it implements | |
37533 | to always fail with ENOSYS. Some functions are actually named | |
37534 | something starting with __ and the normal name is an alias. */ | |
37535 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37536 | choke me | |
37537 | #else | |
37538 | char (*f) () = $ac_func; | |
37539 | #endif | |
37540 | #ifdef __cplusplus | |
37541 | } | |
37542 | #endif | |
37543 | ||
37544 | int | |
37545 | main () | |
37546 | { | |
37547 | return f != $ac_func; | |
37548 | ; | |
37549 | return 0; | |
37550 | } | |
37551 | _ACEOF | |
37552 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37553 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37554 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37555 | ac_status=$? |
ac1cb8d3 VS |
37556 | grep -v '^ *+' conftest.er1 >conftest.err |
37557 | rm -f conftest.er1 | |
37558 | cat conftest.err >&5 | |
a848cd7e SC |
37559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37560 | (exit $ac_status); } && | |
d25774ab JS |
37561 | { ac_try='test -z "$ac_cxx_werror_flag" |
37562 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37564 | (eval $ac_try) 2>&5 | |
37565 | ac_status=$? | |
37566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37567 | (exit $ac_status); }; } && | |
37568 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37570 | (eval $ac_try) 2>&5 | |
37571 | ac_status=$? | |
37572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37573 | (exit $ac_status); }; }; then | |
37574 | eval "$as_ac_var=yes" | |
37575 | else | |
37576 | echo "$as_me: failed program was:" >&5 | |
37577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37578 | ||
37579 | eval "$as_ac_var=no" | |
37580 | fi | |
ac1cb8d3 VS |
37581 | rm -f conftest.err conftest.$ac_objext \ |
37582 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37583 | fi |
37584 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37585 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37586 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37587 | cat >>confdefs.h <<_ACEOF | |
37588 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37589 | _ACEOF | |
37590 | ||
37591 | fi | |
37592 | done | |
37593 | ||
37594 | ||
6ebeb4c7 VZ |
37595 | echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5 |
37596 | echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6 | |
37597 | if test "${wx_cv_func_pthread_cleanup+set}" = set; then | |
37598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37599 | else | |
37600 | ||
37601 | cat >conftest.$ac_ext <<_ACEOF | |
37602 | /* confdefs.h. */ | |
37603 | _ACEOF | |
37604 | cat confdefs.h >>conftest.$ac_ext | |
37605 | cat >>conftest.$ac_ext <<_ACEOF | |
37606 | /* end confdefs.h. */ | |
37607 | #include <pthread.h> | |
37608 | void ThreadCleanupFunc(void *p); | |
37609 | ||
37610 | int | |
37611 | main () | |
37612 | { | |
37613 | ||
37614 | void *p; | |
37615 | pthread_cleanup_push(ThreadCleanupFunc, p); | |
37616 | pthread_cleanup_pop(0); | |
37617 | ||
37618 | ; | |
37619 | return 0; | |
37620 | } | |
37621 | _ACEOF | |
37622 | rm -f conftest.$ac_objext | |
37623 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
37624 | (eval $ac_compile) 2>conftest.er1 | |
37625 | ac_status=$? | |
37626 | grep -v '^ *+' conftest.er1 >conftest.err | |
37627 | rm -f conftest.er1 | |
37628 | cat conftest.err >&5 | |
37629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37630 | (exit $ac_status); } && | |
d25774ab JS |
37631 | { ac_try='test -z "$ac_cxx_werror_flag" |
37632 | || test ! -s conftest.err' | |
6ebeb4c7 VZ |
37633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37634 | (eval $ac_try) 2>&5 | |
37635 | ac_status=$? | |
37636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37637 | (exit $ac_status); }; } && | |
37638 | { ac_try='test -s conftest.$ac_objext' | |
37639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37640 | (eval $ac_try) 2>&5 | |
37641 | ac_status=$? | |
37642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37643 | (exit $ac_status); }; }; then | |
37644 | ||
37645 | wx_cv_func_pthread_cleanup=yes | |
37646 | ||
37647 | else | |
37648 | echo "$as_me: failed program was:" >&5 | |
37649 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37650 | ||
37651 | ||
37652 | wx_cv_func_pthread_cleanup=no | |
37653 | ||
37654 | ||
37655 | fi | |
37656 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
37657 | ||
37658 | fi | |
37659 | echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5 | |
37660 | echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6 | |
37661 | if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then | |
37662 | cat >>confdefs.h <<\_ACEOF | |
37663 | #define wxHAVE_PTHREAD_CLEANUP 1 | |
37664 | _ACEOF | |
37665 | ||
37666 | fi | |
37667 | ||
a848cd7e SC |
37668 | |
37669 | for ac_header in sched.h | |
37670 | do | |
37671 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
37672 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37673 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
37674 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
37675 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37676 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37677 | fi | |
37678 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
37679 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
37680 | else | |
37681 | # Is the header compilable? | |
37682 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
37683 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
37684 | cat >conftest.$ac_ext <<_ACEOF | |
37685 | /* confdefs.h. */ | |
37686 | _ACEOF | |
37687 | cat confdefs.h >>conftest.$ac_ext | |
37688 | cat >>conftest.$ac_ext <<_ACEOF | |
37689 | /* end confdefs.h. */ | |
37690 | $ac_includes_default | |
37691 | #include <$ac_header> | |
37692 | _ACEOF | |
37693 | rm -f conftest.$ac_objext | |
37694 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37695 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37696 | ac_status=$? |
ac1cb8d3 VS |
37697 | grep -v '^ *+' conftest.er1 >conftest.err |
37698 | rm -f conftest.er1 | |
37699 | cat conftest.err >&5 | |
a848cd7e SC |
37700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37701 | (exit $ac_status); } && | |
d25774ab JS |
37702 | { ac_try='test -z "$ac_cxx_werror_flag" |
37703 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37705 | (eval $ac_try) 2>&5 | |
37706 | ac_status=$? | |
37707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37708 | (exit $ac_status); }; } && | |
37709 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37711 | (eval $ac_try) 2>&5 | |
37712 | ac_status=$? | |
37713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37714 | (exit $ac_status); }; }; then | |
37715 | ac_header_compiler=yes | |
37716 | else | |
37717 | echo "$as_me: failed program was:" >&5 | |
37718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37719 | ||
37720 | ac_header_compiler=no | |
37721 | fi | |
ac1cb8d3 | 37722 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37723 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
37724 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
37725 | ||
37726 | # Is the header present? | |
37727 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
37728 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
37729 | cat >conftest.$ac_ext <<_ACEOF | |
37730 | /* confdefs.h. */ | |
37731 | _ACEOF | |
37732 | cat confdefs.h >>conftest.$ac_ext | |
37733 | cat >>conftest.$ac_ext <<_ACEOF | |
37734 | /* end confdefs.h. */ | |
37735 | #include <$ac_header> | |
37736 | _ACEOF | |
37737 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
37738 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
37739 | ac_status=$? | |
37740 | grep -v '^ *+' conftest.er1 >conftest.err | |
37741 | rm -f conftest.er1 | |
37742 | cat conftest.err >&5 | |
37743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37744 | (exit $ac_status); } >/dev/null; then | |
37745 | if test -s conftest.err; then | |
5d7b7554 VZ |
37746 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
37747 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
37748 | else |
37749 | ac_cpp_err= | |
37750 | fi | |
37751 | else | |
37752 | ac_cpp_err=yes | |
37753 | fi | |
37754 | if test -z "$ac_cpp_err"; then | |
37755 | ac_header_preproc=yes | |
37756 | else | |
37757 | echo "$as_me: failed program was:" >&5 | |
37758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37759 | ||
37760 | ac_header_preproc=no | |
37761 | fi | |
37762 | rm -f conftest.err conftest.$ac_ext | |
37763 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
37764 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
37765 | ||
37766 | # So? What about this header? | |
5d7b7554 | 37767 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 37768 | yes:no: ) |
a848cd7e SC |
37769 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
37770 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
37771 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
37772 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
37773 | ac_header_preproc=yes | |
a848cd7e | 37774 | ;; |
ac1cb8d3 | 37775 | no:yes:* ) |
a848cd7e SC |
37776 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
37777 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
37778 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
37779 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
37780 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
37781 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
37782 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
37783 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
37784 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
37785 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
37786 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
37787 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
37788 | ( |
37789 | cat <<\_ASBOX | |
ac1cb8d3 VS |
37790 | ## ----------------------------------------- ## |
37791 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
37792 | ## ----------------------------------------- ## | |
a848cd7e SC |
37793 | _ASBOX |
37794 | ) | | |
37795 | sed "s/^/$as_me: WARNING: /" >&2 | |
37796 | ;; | |
37797 | esac | |
37798 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
37799 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
37800 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37801 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37802 | else | |
ac1cb8d3 | 37803 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
37804 | fi |
37805 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
37806 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
37807 | ||
37808 | fi | |
37809 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
37810 | cat >>confdefs.h <<_ACEOF | |
37811 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
37812 | _ACEOF | |
37813 | ||
37814 | fi | |
37815 | ||
37816 | done | |
37817 | ||
37818 | if test "$ac_cv_header_sched_h" = "yes"; then | |
37819 | echo "$as_me:$LINENO: checking for sched_yield" >&5 | |
37820 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
37821 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
37822 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37823 | else | |
37824 | cat >conftest.$ac_ext <<_ACEOF | |
37825 | /* confdefs.h. */ | |
37826 | _ACEOF | |
37827 | cat confdefs.h >>conftest.$ac_ext | |
37828 | cat >>conftest.$ac_ext <<_ACEOF | |
37829 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37830 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
37831 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37832 | #define sched_yield innocuous_sched_yield | |
37833 | ||
a848cd7e SC |
37834 | /* System header to define __stub macros and hopefully few prototypes, |
37835 | which can conflict with char sched_yield (); below. | |
37836 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37837 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37838 | |
a848cd7e SC |
37839 | #ifdef __STDC__ |
37840 | # include <limits.h> | |
37841 | #else | |
37842 | # include <assert.h> | |
37843 | #endif | |
ac1cb8d3 VS |
37844 | |
37845 | #undef sched_yield | |
37846 | ||
a848cd7e SC |
37847 | /* Override any gcc2 internal prototype to avoid an error. */ |
37848 | #ifdef __cplusplus | |
37849 | extern "C" | |
37850 | { | |
37851 | #endif | |
37852 | /* We use char because int might match the return type of a gcc2 | |
37853 | builtin and then its argument prototype would still apply. */ | |
37854 | char sched_yield (); | |
37855 | /* The GNU C library defines this for functions which it implements | |
37856 | to always fail with ENOSYS. Some functions are actually named | |
37857 | something starting with __ and the normal name is an alias. */ | |
37858 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
37859 | choke me | |
37860 | #else | |
37861 | char (*f) () = sched_yield; | |
37862 | #endif | |
37863 | #ifdef __cplusplus | |
37864 | } | |
37865 | #endif | |
37866 | ||
37867 | int | |
37868 | main () | |
37869 | { | |
37870 | return f != sched_yield; | |
37871 | ; | |
37872 | return 0; | |
37873 | } | |
37874 | _ACEOF | |
37875 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37876 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37877 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37878 | ac_status=$? |
ac1cb8d3 VS |
37879 | grep -v '^ *+' conftest.er1 >conftest.err |
37880 | rm -f conftest.er1 | |
37881 | cat conftest.err >&5 | |
a848cd7e SC |
37882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37883 | (exit $ac_status); } && | |
d25774ab JS |
37884 | { ac_try='test -z "$ac_cxx_werror_flag" |
37885 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37887 | (eval $ac_try) 2>&5 | |
37888 | ac_status=$? | |
37889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37890 | (exit $ac_status); }; } && | |
37891 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37893 | (eval $ac_try) 2>&5 | |
37894 | ac_status=$? | |
37895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37896 | (exit $ac_status); }; }; then | |
37897 | ac_cv_func_sched_yield=yes | |
37898 | else | |
37899 | echo "$as_me: failed program was:" >&5 | |
37900 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37901 | ||
37902 | ac_cv_func_sched_yield=no | |
37903 | fi | |
ac1cb8d3 VS |
37904 | rm -f conftest.err conftest.$ac_objext \ |
37905 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37906 | fi |
37907 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
37908 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
37909 | if test $ac_cv_func_sched_yield = yes; then | |
37910 | cat >>confdefs.h <<\_ACEOF | |
37911 | #define HAVE_SCHED_YIELD 1 | |
37912 | _ACEOF | |
37913 | ||
37914 | else | |
37915 | ||
37916 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 | |
37917 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
37918 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
37919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37920 | else | |
37921 | ac_check_lib_save_LIBS=$LIBS | |
37922 | LIBS="-lposix4 $LIBS" | |
37923 | cat >conftest.$ac_ext <<_ACEOF | |
37924 | /* confdefs.h. */ | |
37925 | _ACEOF | |
37926 | cat confdefs.h >>conftest.$ac_ext | |
37927 | cat >>conftest.$ac_ext <<_ACEOF | |
37928 | /* end confdefs.h. */ | |
37929 | ||
37930 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37931 | #ifdef __cplusplus | |
37932 | extern "C" | |
37933 | #endif | |
37934 | /* We use char because int might match the return type of a gcc2 | |
37935 | builtin and then its argument prototype would still apply. */ | |
37936 | char sched_yield (); | |
37937 | int | |
37938 | main () | |
37939 | { | |
37940 | sched_yield (); | |
37941 | ; | |
37942 | return 0; | |
37943 | } | |
37944 | _ACEOF | |
37945 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37946 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37947 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37948 | ac_status=$? |
ac1cb8d3 VS |
37949 | grep -v '^ *+' conftest.er1 >conftest.err |
37950 | rm -f conftest.er1 | |
37951 | cat conftest.err >&5 | |
a848cd7e SC |
37952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37953 | (exit $ac_status); } && | |
d25774ab JS |
37954 | { ac_try='test -z "$ac_cxx_werror_flag" |
37955 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37957 | (eval $ac_try) 2>&5 | |
37958 | ac_status=$? | |
37959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37960 | (exit $ac_status); }; } && | |
37961 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37963 | (eval $ac_try) 2>&5 | |
37964 | ac_status=$? | |
37965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37966 | (exit $ac_status); }; }; then | |
37967 | ac_cv_lib_posix4_sched_yield=yes | |
37968 | else | |
37969 | echo "$as_me: failed program was:" >&5 | |
37970 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37971 | ||
37972 | ac_cv_lib_posix4_sched_yield=no | |
37973 | fi | |
ac1cb8d3 VS |
37974 | rm -f conftest.err conftest.$ac_objext \ |
37975 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37976 | LIBS=$ac_check_lib_save_LIBS |
37977 | fi | |
37978 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
37979 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
37980 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
37981 | cat >>confdefs.h <<\_ACEOF | |
37982 | #define HAVE_SCHED_YIELD 1 | |
37983 | _ACEOF | |
37984 | POSIX4_LINK=" -lposix4" | |
37985 | else | |
37986 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 | |
37987 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
37988 | ||
37989 | fi | |
37990 | ||
37991 | ||
37992 | ||
37993 | fi | |
37994 | ||
37995 | fi | |
37996 | ||
37997 | HAVE_PRIOR_FUNCS=0 | |
37998 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 | |
37999 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
38000 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
38001 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38002 | else | |
38003 | cat >conftest.$ac_ext <<_ACEOF | |
38004 | /* confdefs.h. */ | |
38005 | _ACEOF | |
38006 | cat confdefs.h >>conftest.$ac_ext | |
38007 | cat >>conftest.$ac_ext <<_ACEOF | |
38008 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38009 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
38010 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38011 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
38012 | ||
a848cd7e SC |
38013 | /* System header to define __stub macros and hopefully few prototypes, |
38014 | which can conflict with char pthread_attr_getschedpolicy (); below. | |
38015 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38016 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38017 | |
a848cd7e SC |
38018 | #ifdef __STDC__ |
38019 | # include <limits.h> | |
38020 | #else | |
38021 | # include <assert.h> | |
38022 | #endif | |
ac1cb8d3 VS |
38023 | |
38024 | #undef pthread_attr_getschedpolicy | |
38025 | ||
a848cd7e SC |
38026 | /* Override any gcc2 internal prototype to avoid an error. */ |
38027 | #ifdef __cplusplus | |
38028 | extern "C" | |
38029 | { | |
38030 | #endif | |
38031 | /* We use char because int might match the return type of a gcc2 | |
38032 | builtin and then its argument prototype would still apply. */ | |
38033 | char pthread_attr_getschedpolicy (); | |
38034 | /* The GNU C library defines this for functions which it implements | |
38035 | to always fail with ENOSYS. Some functions are actually named | |
38036 | something starting with __ and the normal name is an alias. */ | |
38037 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
38038 | choke me | |
38039 | #else | |
38040 | char (*f) () = pthread_attr_getschedpolicy; | |
38041 | #endif | |
38042 | #ifdef __cplusplus | |
38043 | } | |
38044 | #endif | |
38045 | ||
38046 | int | |
38047 | main () | |
38048 | { | |
38049 | return f != pthread_attr_getschedpolicy; | |
38050 | ; | |
38051 | return 0; | |
38052 | } | |
38053 | _ACEOF | |
38054 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38055 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38056 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38057 | ac_status=$? |
ac1cb8d3 VS |
38058 | grep -v '^ *+' conftest.er1 >conftest.err |
38059 | rm -f conftest.er1 | |
38060 | cat conftest.err >&5 | |
a848cd7e SC |
38061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38062 | (exit $ac_status); } && | |
d25774ab JS |
38063 | { ac_try='test -z "$ac_cxx_werror_flag" |
38064 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38066 | (eval $ac_try) 2>&5 | |
38067 | ac_status=$? | |
38068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38069 | (exit $ac_status); }; } && | |
38070 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38072 | (eval $ac_try) 2>&5 | |
38073 | ac_status=$? | |
38074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38075 | (exit $ac_status); }; }; then | |
38076 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
38077 | else | |
38078 | echo "$as_me: failed program was:" >&5 | |
38079 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38080 | ||
38081 | ac_cv_func_pthread_attr_getschedpolicy=no | |
38082 | fi | |
ac1cb8d3 VS |
38083 | rm -f conftest.err conftest.$ac_objext \ |
38084 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38085 | fi |
38086 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
38087 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
38088 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
38089 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
38090 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
38091 | if test "${ac_cv_func_pthread_attr_setschedparam+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_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
38101 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38102 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
38103 | ||
a848cd7e SC |
38104 | /* System header to define __stub macros and hopefully few prototypes, |
38105 | which can conflict with char pthread_attr_setschedparam (); 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_attr_setschedparam | |
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_attr_setschedparam (); | |
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_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
38129 | choke me | |
38130 | #else | |
38131 | char (*f) () = pthread_attr_setschedparam; | |
38132 | #endif | |
38133 | #ifdef __cplusplus | |
38134 | } | |
38135 | #endif | |
38136 | ||
38137 | int | |
38138 | main () | |
38139 | { | |
38140 | return f != pthread_attr_setschedparam; | |
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); } && | |
d25774ab JS |
38154 | { ac_try='test -z "$ac_cxx_werror_flag" |
38155 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38157 | (eval $ac_try) 2>&5 | |
38158 | ac_status=$? | |
38159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38160 | (exit $ac_status); }; } && | |
38161 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38163 | (eval $ac_try) 2>&5 | |
38164 | ac_status=$? | |
38165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38166 | (exit $ac_status); }; }; then | |
38167 | ac_cv_func_pthread_attr_setschedparam=yes | |
38168 | else | |
38169 | echo "$as_me: failed program was:" >&5 | |
38170 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38171 | ||
38172 | ac_cv_func_pthread_attr_setschedparam=no | |
38173 | fi | |
ac1cb8d3 VS |
38174 | rm -f conftest.err conftest.$ac_objext \ |
38175 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38176 | fi |
38177 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
38178 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
38179 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
38180 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
38181 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
38182 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
38183 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38184 | else | |
38185 | cat >conftest.$ac_ext <<_ACEOF | |
38186 | /* confdefs.h. */ | |
38187 | _ACEOF | |
38188 | cat confdefs.h >>conftest.$ac_ext | |
38189 | cat >>conftest.$ac_ext <<_ACEOF | |
38190 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38191 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
38192 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38193 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
38194 | ||
a848cd7e SC |
38195 | /* System header to define __stub macros and hopefully few prototypes, |
38196 | which can conflict with char sched_get_priority_max (); below. | |
38197 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38198 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38199 | |
a848cd7e SC |
38200 | #ifdef __STDC__ |
38201 | # include <limits.h> | |
38202 | #else | |
38203 | # include <assert.h> | |
38204 | #endif | |
ac1cb8d3 VS |
38205 | |
38206 | #undef sched_get_priority_max | |
38207 | ||
a848cd7e SC |
38208 | /* Override any gcc2 internal prototype to avoid an error. */ |
38209 | #ifdef __cplusplus | |
38210 | extern "C" | |
38211 | { | |
38212 | #endif | |
38213 | /* We use char because int might match the return type of a gcc2 | |
38214 | builtin and then its argument prototype would still apply. */ | |
38215 | char sched_get_priority_max (); | |
38216 | /* The GNU C library defines this for functions which it implements | |
38217 | to always fail with ENOSYS. Some functions are actually named | |
38218 | something starting with __ and the normal name is an alias. */ | |
38219 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
38220 | choke me | |
38221 | #else | |
38222 | char (*f) () = sched_get_priority_max; | |
38223 | #endif | |
38224 | #ifdef __cplusplus | |
38225 | } | |
38226 | #endif | |
38227 | ||
38228 | int | |
38229 | main () | |
38230 | { | |
38231 | return f != sched_get_priority_max; | |
38232 | ; | |
38233 | return 0; | |
38234 | } | |
38235 | _ACEOF | |
38236 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38237 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38238 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38239 | ac_status=$? |
ac1cb8d3 VS |
38240 | grep -v '^ *+' conftest.er1 >conftest.err |
38241 | rm -f conftest.er1 | |
38242 | cat conftest.err >&5 | |
a848cd7e SC |
38243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38244 | (exit $ac_status); } && | |
d25774ab JS |
38245 | { ac_try='test -z "$ac_cxx_werror_flag" |
38246 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38248 | (eval $ac_try) 2>&5 | |
38249 | ac_status=$? | |
38250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38251 | (exit $ac_status); }; } && | |
38252 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38254 | (eval $ac_try) 2>&5 | |
38255 | ac_status=$? | |
38256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38257 | (exit $ac_status); }; }; then | |
38258 | ac_cv_func_sched_get_priority_max=yes | |
38259 | else | |
38260 | echo "$as_me: failed program was:" >&5 | |
38261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38262 | ||
38263 | ac_cv_func_sched_get_priority_max=no | |
38264 | fi | |
ac1cb8d3 VS |
38265 | rm -f conftest.err conftest.$ac_objext \ |
38266 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38267 | fi |
38268 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
38269 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
38270 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
38271 | HAVE_PRIOR_FUNCS=1 | |
38272 | else | |
38273 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 | |
38274 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
38275 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
38276 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38277 | else | |
38278 | ac_check_lib_save_LIBS=$LIBS | |
38279 | LIBS="-lposix4 $LIBS" | |
38280 | cat >conftest.$ac_ext <<_ACEOF | |
38281 | /* confdefs.h. */ | |
38282 | _ACEOF | |
38283 | cat confdefs.h >>conftest.$ac_ext | |
38284 | cat >>conftest.$ac_ext <<_ACEOF | |
38285 | /* end confdefs.h. */ | |
38286 | ||
38287 | /* Override any gcc2 internal prototype to avoid an error. */ | |
38288 | #ifdef __cplusplus | |
38289 | extern "C" | |
38290 | #endif | |
38291 | /* We use char because int might match the return type of a gcc2 | |
38292 | builtin and then its argument prototype would still apply. */ | |
38293 | char sched_get_priority_max (); | |
38294 | int | |
38295 | main () | |
38296 | { | |
38297 | sched_get_priority_max (); | |
38298 | ; | |
38299 | return 0; | |
38300 | } | |
38301 | _ACEOF | |
38302 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38303 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38304 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38305 | ac_status=$? |
ac1cb8d3 VS |
38306 | grep -v '^ *+' conftest.er1 >conftest.err |
38307 | rm -f conftest.er1 | |
38308 | cat conftest.err >&5 | |
a848cd7e SC |
38309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38310 | (exit $ac_status); } && | |
d25774ab JS |
38311 | { ac_try='test -z "$ac_cxx_werror_flag" |
38312 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38314 | (eval $ac_try) 2>&5 | |
38315 | ac_status=$? | |
38316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38317 | (exit $ac_status); }; } && | |
38318 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38320 | (eval $ac_try) 2>&5 | |
38321 | ac_status=$? | |
38322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38323 | (exit $ac_status); }; }; then | |
38324 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
38325 | else | |
38326 | echo "$as_me: failed program was:" >&5 | |
38327 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38328 | ||
38329 | ac_cv_lib_posix4_sched_get_priority_max=no | |
38330 | fi | |
ac1cb8d3 VS |
38331 | rm -f conftest.err conftest.$ac_objext \ |
38332 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38333 | LIBS=$ac_check_lib_save_LIBS |
38334 | fi | |
38335 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
38336 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
38337 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
38338 | ||
38339 | HAVE_PRIOR_FUNCS=1 | |
38340 | POSIX4_LINK=" -lposix4" | |
38341 | ||
38342 | fi | |
38343 | ||
38344 | ||
38345 | fi | |
38346 | ||
38347 | ||
38348 | fi | |
38349 | ||
38350 | ||
38351 | fi | |
38352 | ||
38353 | ||
38354 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
38355 | cat >>confdefs.h <<\_ACEOF | |
38356 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
38357 | _ACEOF | |
38358 | ||
38359 | else | |
38360 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 | |
38361 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
38362 | fi | |
38363 | ||
38364 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 | |
38365 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
38366 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
38367 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38368 | else | |
38369 | cat >conftest.$ac_ext <<_ACEOF | |
38370 | /* confdefs.h. */ | |
38371 | _ACEOF | |
38372 | cat confdefs.h >>conftest.$ac_ext | |
38373 | cat >>conftest.$ac_ext <<_ACEOF | |
38374 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
38375 | /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
38376 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38377 | #define pthread_cancel innocuous_pthread_cancel | |
38378 | ||
a848cd7e SC |
38379 | /* System header to define __stub macros and hopefully few prototypes, |
38380 | which can conflict with char pthread_cancel (); below. | |
38381 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38382 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38383 | |
a848cd7e SC |
38384 | #ifdef __STDC__ |
38385 | # include <limits.h> | |
38386 | #else | |
38387 | # include <assert.h> | |
38388 | #endif | |
ac1cb8d3 VS |
38389 | |
38390 | #undef pthread_cancel | |
38391 | ||
a848cd7e SC |
38392 | /* Override any gcc2 internal prototype to avoid an error. */ |
38393 | #ifdef __cplusplus | |
38394 | extern "C" | |
38395 | { | |
38396 | #endif | |
38397 | /* We use char because int might match the return type of a gcc2 | |
38398 | builtin and then its argument prototype would still apply. */ | |
38399 | char pthread_cancel (); | |
38400 | /* The GNU C library defines this for functions which it implements | |
38401 | to always fail with ENOSYS. Some functions are actually named | |
38402 | something starting with __ and the normal name is an alias. */ | |
38403 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
38404 | choke me | |
38405 | #else | |
38406 | char (*f) () = pthread_cancel; | |
38407 | #endif | |
38408 | #ifdef __cplusplus | |
38409 | } | |
38410 | #endif | |
38411 | ||
38412 | int | |
38413 | main () | |
38414 | { | |
38415 | return f != pthread_cancel; | |
38416 | ; | |
38417 | return 0; | |
38418 | } | |
38419 | _ACEOF | |
38420 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38421 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 38422 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 38423 | ac_status=$? |
ac1cb8d3 VS |
38424 | grep -v '^ *+' conftest.er1 >conftest.err |
38425 | rm -f conftest.er1 | |
38426 | cat conftest.err >&5 | |
a848cd7e SC |
38427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38428 | (exit $ac_status); } && | |
d25774ab JS |
38429 | { ac_try='test -z "$ac_cxx_werror_flag" |
38430 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38432 | (eval $ac_try) 2>&5 | |
38433 | ac_status=$? | |
38434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38435 | (exit $ac_status); }; } && | |
38436 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
38437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38438 | (eval $ac_try) 2>&5 | |
38439 | ac_status=$? | |
38440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38441 | (exit $ac_status); }; }; then | |
38442 | ac_cv_func_pthread_cancel=yes | |
38443 | else | |
38444 | echo "$as_me: failed program was:" >&5 | |
38445 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38446 | ||
38447 | ac_cv_func_pthread_cancel=no | |
38448 | fi | |
ac1cb8d3 VS |
38449 | rm -f conftest.err conftest.$ac_objext \ |
38450 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
38451 | fi |
38452 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
38453 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
38454 | if test $ac_cv_func_pthread_cancel = yes; then | |
38455 | cat >>confdefs.h <<\_ACEOF | |
38456 | #define HAVE_PTHREAD_CANCEL 1 | |
38457 | _ACEOF | |
38458 | ||
38459 | else | |
38460 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 | |
38461 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
38462 | fi | |
38463 | ||
38464 | ||
abc736fd MW |
38465 | echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5 |
38466 | echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6 | |
38467 | if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then | |
38468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38469 | else | |
38470 | cat >conftest.$ac_ext <<_ACEOF | |
38471 | /* confdefs.h. */ | |
38472 | _ACEOF | |
38473 | cat confdefs.h >>conftest.$ac_ext | |
38474 | cat >>conftest.$ac_ext <<_ACEOF | |
38475 | /* end confdefs.h. */ | |
38476 | /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize. | |
38477 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38478 | #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize | |
38479 | ||
38480 | /* System header to define __stub macros and hopefully few prototypes, | |
38481 | which can conflict with char pthread_attr_setstacksize (); below. | |
38482 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38483 | <limits.h> exists even on freestanding compilers. */ | |
38484 | ||
38485 | #ifdef __STDC__ | |
38486 | # include <limits.h> | |
38487 | #else | |
38488 | # include <assert.h> | |
38489 | #endif | |
38490 | ||
38491 | #undef pthread_attr_setstacksize | |
38492 | ||
38493 | /* Override any gcc2 internal prototype to avoid an error. */ | |
38494 | #ifdef __cplusplus | |
38495 | extern "C" | |
38496 | { | |
38497 | #endif | |
38498 | /* We use char because int might match the return type of a gcc2 | |
38499 | builtin and then its argument prototype would still apply. */ | |
38500 | char pthread_attr_setstacksize (); | |
38501 | /* The GNU C library defines this for functions which it implements | |
38502 | to always fail with ENOSYS. Some functions are actually named | |
38503 | something starting with __ and the normal name is an alias. */ | |
38504 | #if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize) | |
38505 | choke me | |
38506 | #else | |
38507 | char (*f) () = pthread_attr_setstacksize; | |
38508 | #endif | |
38509 | #ifdef __cplusplus | |
38510 | } | |
38511 | #endif | |
38512 | ||
38513 | int | |
38514 | main () | |
38515 | { | |
38516 | return f != pthread_attr_setstacksize; | |
38517 | ; | |
38518 | return 0; | |
38519 | } | |
38520 | _ACEOF | |
38521 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38522 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
38523 | (eval $ac_link) 2>conftest.er1 | |
38524 | ac_status=$? | |
38525 | grep -v '^ *+' conftest.er1 >conftest.err | |
38526 | rm -f conftest.er1 | |
38527 | cat conftest.err >&5 | |
38528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38529 | (exit $ac_status); } && | |
d25774ab JS |
38530 | { ac_try='test -z "$ac_cxx_werror_flag" |
38531 | || test ! -s conftest.err' | |
abc736fd MW |
38532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38533 | (eval $ac_try) 2>&5 | |
38534 | ac_status=$? | |
38535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38536 | (exit $ac_status); }; } && | |
38537 | { ac_try='test -s conftest$ac_exeext' | |
38538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38539 | (eval $ac_try) 2>&5 | |
38540 | ac_status=$? | |
38541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38542 | (exit $ac_status); }; }; then | |
38543 | ac_cv_func_pthread_attr_setstacksize=yes | |
38544 | else | |
38545 | echo "$as_me: failed program was:" >&5 | |
38546 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38547 | ||
38548 | ac_cv_func_pthread_attr_setstacksize=no | |
38549 | fi | |
38550 | rm -f conftest.err conftest.$ac_objext \ | |
38551 | conftest$ac_exeext conftest.$ac_ext | |
38552 | fi | |
38553 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5 | |
38554 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6 | |
38555 | if test $ac_cv_func_pthread_attr_setstacksize = yes; then | |
38556 | cat >>confdefs.h <<\_ACEOF | |
38557 | #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 | |
38558 | _ACEOF | |
38559 | ||
38560 | fi | |
38561 | ||
a848cd7e SC |
38562 | |
38563 | ||
38564 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
38565 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
38566 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
38567 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38568 | else | |
38569 | ||
38570 | cat >conftest.$ac_ext <<_ACEOF | |
38571 | /* confdefs.h. */ | |
38572 | _ACEOF | |
38573 | cat confdefs.h >>conftest.$ac_ext | |
38574 | cat >>conftest.$ac_ext <<_ACEOF | |
38575 | /* end confdefs.h. */ | |
38576 | #include <pthread.h> | |
38577 | int | |
38578 | main () | |
38579 | { | |
38580 | ||
38581 | pthread_mutexattr_t attr; | |
38582 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
38583 | ||
38584 | ; | |
38585 | return 0; | |
38586 | } | |
38587 | _ACEOF | |
38588 | rm -f conftest.$ac_objext | |
38589 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38590 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38591 | ac_status=$? |
ac1cb8d3 VS |
38592 | grep -v '^ *+' conftest.er1 >conftest.err |
38593 | rm -f conftest.er1 | |
38594 | cat conftest.err >&5 | |
a848cd7e SC |
38595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38596 | (exit $ac_status); } && | |
d25774ab JS |
38597 | { ac_try='test -z "$ac_cxx_werror_flag" |
38598 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38600 | (eval $ac_try) 2>&5 | |
38601 | ac_status=$? | |
38602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38603 | (exit $ac_status); }; } && | |
38604 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38606 | (eval $ac_try) 2>&5 | |
38607 | ac_status=$? | |
38608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38609 | (exit $ac_status); }; }; then | |
123dca7d | 38610 | wx_cv_type_pthread_mutexattr_t=yes |
a848cd7e SC |
38611 | else |
38612 | echo "$as_me: failed program was:" >&5 | |
38613 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38614 | ||
123dca7d | 38615 | wx_cv_type_pthread_mutexattr_t=no |
a848cd7e SC |
38616 | |
38617 | fi | |
ac1cb8d3 | 38618 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38619 | |
38620 | fi | |
38621 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
38622 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
38623 | ||
38624 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
38625 | cat >>confdefs.h <<\_ACEOF | |
38626 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
38627 | _ACEOF | |
38628 | ||
123dca7d VZ |
38629 | |
38630 | echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5 | |
38631 | echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6 | |
38632 | if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then | |
38633 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38634 | else | |
38635 | ||
38636 | cat >conftest.$ac_ext <<_ACEOF | |
38637 | /* confdefs.h. */ | |
38638 | _ACEOF | |
38639 | cat confdefs.h >>conftest.$ac_ext | |
38640 | cat >>conftest.$ac_ext <<_ACEOF | |
38641 | /* end confdefs.h. */ | |
38642 | #include <pthread.h> | |
38643 | int | |
38644 | main () | |
38645 | { | |
38646 | ||
38647 | pthread_mutexattr_t attr; | |
38648 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
38649 | ||
38650 | ; | |
38651 | return 0; | |
38652 | } | |
38653 | _ACEOF | |
38654 | rm -f conftest.$ac_objext | |
38655 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38656 | (eval $ac_compile) 2>conftest.er1 | |
38657 | ac_status=$? | |
38658 | grep -v '^ *+' conftest.er1 >conftest.err | |
38659 | rm -f conftest.er1 | |
38660 | cat conftest.err >&5 | |
38661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38662 | (exit $ac_status); } && | |
d25774ab JS |
38663 | { ac_try='test -z "$ac_cxx_werror_flag" |
38664 | || test ! -s conftest.err' | |
123dca7d VZ |
38665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38666 | (eval $ac_try) 2>&5 | |
38667 | ac_status=$? | |
38668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38669 | (exit $ac_status); }; } && | |
38670 | { ac_try='test -s conftest.$ac_objext' | |
38671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38672 | (eval $ac_try) 2>&5 | |
38673 | ac_status=$? | |
38674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38675 | (exit $ac_status); }; }; then | |
38676 | wx_cv_func_pthread_mutexattr_settype_decl=yes | |
38677 | else | |
38678 | echo "$as_me: failed program was:" >&5 | |
38679 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38680 | ||
38681 | wx_cv_func_pthread_mutexattr_settype_decl=no | |
38682 | ||
38683 | fi | |
38684 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38685 | ||
38686 | fi | |
38687 | echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5 | |
38688 | echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6 | |
38689 | if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then | |
38690 | cat >>confdefs.h <<\_ACEOF | |
38691 | #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1 | |
38692 | _ACEOF | |
38693 | ||
38694 | fi | |
a848cd7e SC |
38695 | else |
38696 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
38697 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
38698 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
38699 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38700 | else | |
38701 | ||
38702 | cat >conftest.$ac_ext <<_ACEOF | |
38703 | /* confdefs.h. */ | |
38704 | _ACEOF | |
38705 | cat confdefs.h >>conftest.$ac_ext | |
38706 | cat >>conftest.$ac_ext <<_ACEOF | |
38707 | /* end confdefs.h. */ | |
38708 | #include <pthread.h> | |
38709 | int | |
38710 | main () | |
38711 | { | |
38712 | ||
38713 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
38714 | ||
38715 | ; | |
38716 | return 0; | |
38717 | } | |
38718 | _ACEOF | |
38719 | rm -f conftest.$ac_objext | |
38720 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38721 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38722 | ac_status=$? |
ac1cb8d3 VS |
38723 | grep -v '^ *+' conftest.er1 >conftest.err |
38724 | rm -f conftest.er1 | |
38725 | cat conftest.err >&5 | |
a848cd7e SC |
38726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38727 | (exit $ac_status); } && | |
d25774ab JS |
38728 | { ac_try='test -z "$ac_cxx_werror_flag" |
38729 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38731 | (eval $ac_try) 2>&5 | |
38732 | ac_status=$? | |
38733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38734 | (exit $ac_status); }; } && | |
38735 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38737 | (eval $ac_try) 2>&5 | |
38738 | ac_status=$? | |
38739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38740 | (exit $ac_status); }; }; then | |
38741 | ||
38742 | wx_cv_type_pthread_rec_mutex_init=yes | |
38743 | ||
38744 | else | |
38745 | echo "$as_me: failed program was:" >&5 | |
38746 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38747 | ||
38748 | ||
38749 | wx_cv_type_pthread_rec_mutex_init=no | |
38750 | ||
38751 | ||
38752 | fi | |
ac1cb8d3 | 38753 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38754 | |
38755 | fi | |
38756 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
38757 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
38758 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
38759 | cat >>confdefs.h <<\_ACEOF | |
38760 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
38761 | _ACEOF | |
38762 | ||
38763 | else | |
38764 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 | |
38765 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
38766 | fi | |
38767 | fi | |
38768 | fi | |
38769 | ||
38770 | else | |
38771 | if test "$wxUSE_THREADS" = "yes" ; then | |
38772 | case "${host}" in | |
38773 | *-*-mingw32* ) | |
38774 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 | |
38775 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
38776 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
38777 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38778 | else | |
38779 | ||
e56f4f9e VZ |
38780 | CXXFLAGS_OLD="$CXXFLAGS" |
38781 | CXXFLAGS="-mthreads $CXXFLAGS" | |
a848cd7e SC |
38782 | cat >conftest.$ac_ext <<_ACEOF |
38783 | /* confdefs.h. */ | |
38784 | _ACEOF | |
38785 | cat confdefs.h >>conftest.$ac_ext | |
38786 | cat >>conftest.$ac_ext <<_ACEOF | |
38787 | /* end confdefs.h. */ | |
38788 | ||
38789 | int | |
38790 | main () | |
38791 | { | |
38792 | ||
38793 | ; | |
38794 | return 0; | |
38795 | } | |
38796 | _ACEOF | |
38797 | rm -f conftest.$ac_objext | |
38798 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38799 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38800 | ac_status=$? |
ac1cb8d3 VS |
38801 | grep -v '^ *+' conftest.er1 >conftest.err |
38802 | rm -f conftest.er1 | |
38803 | cat conftest.err >&5 | |
a848cd7e SC |
38804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38805 | (exit $ac_status); } && | |
d25774ab JS |
38806 | { ac_try='test -z "$ac_cxx_werror_flag" |
38807 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38809 | (eval $ac_try) 2>&5 | |
38810 | ac_status=$? | |
38811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38812 | (exit $ac_status); }; } && | |
38813 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38815 | (eval $ac_try) 2>&5 | |
38816 | ac_status=$? | |
38817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38818 | (exit $ac_status); }; }; then | |
38819 | wx_cv_cflags_mthread=yes | |
38820 | else | |
38821 | echo "$as_me: failed program was:" >&5 | |
38822 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38823 | ||
38824 | wx_cv_cflags_mthread=no | |
38825 | ||
38826 | fi | |
ac1cb8d3 | 38827 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38828 | |
38829 | ||
38830 | fi | |
38831 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
38832 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
38833 | ||
38834 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
e56f4f9e | 38835 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -mthreads" |
a848cd7e SC |
38836 | LDFLAGS="$LDFLAGS -mthreads" |
38837 | else | |
e56f4f9e | 38838 | CXXFLAGS="$CXXFLAGS_OLD" |
a848cd7e SC |
38839 | fi |
38840 | ;; | |
38841 | *-pc-os2*emx ) | |
5ff751d6 VZ |
38842 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__" |
38843 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
a848cd7e SC |
38844 | LDFLAGS="$LDFLAGS -Zmt" |
38845 | ;; | |
38846 | esac | |
38847 | fi | |
38848 | fi | |
38849 | ||
004ee6da RL |
38850 | echo "$as_me:$LINENO: checking for localtime_r" >&5 |
38851 | echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6 | |
38852 | if test "${ac_cv_func_localtime_r+set}" = set; then | |
a848cd7e SC |
38853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
38854 | else | |
38855 | cat >conftest.$ac_ext <<_ACEOF | |
38856 | /* confdefs.h. */ | |
38857 | _ACEOF | |
38858 | cat confdefs.h >>conftest.$ac_ext | |
38859 | cat >>conftest.$ac_ext <<_ACEOF | |
38860 | /* end confdefs.h. */ | |
004ee6da | 38861 | /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r. |
ac1cb8d3 | 38862 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
004ee6da | 38863 | #define localtime_r innocuous_localtime_r |
ac1cb8d3 | 38864 | |
a848cd7e | 38865 | /* System header to define __stub macros and hopefully few prototypes, |
004ee6da | 38866 | which can conflict with char localtime_r (); below. |
a848cd7e SC |
38867 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
38868 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38869 | |
a848cd7e SC |
38870 | #ifdef __STDC__ |
38871 | # include <limits.h> | |
38872 | #else | |
38873 | # include <assert.h> | |
38874 | #endif | |
ac1cb8d3 | 38875 | |
004ee6da | 38876 | #undef localtime_r |
ac1cb8d3 | 38877 | |
a848cd7e SC |
38878 | /* Override any gcc2 internal prototype to avoid an error. */ |
38879 | #ifdef __cplusplus | |
38880 | extern "C" | |
38881 | { | |
38882 | #endif | |
38883 | /* We use char because int might match the return type of a gcc2 | |
38884 | builtin and then its argument prototype would still apply. */ | |
004ee6da | 38885 | char localtime_r (); |
a848cd7e SC |
38886 | /* The GNU C library defines this for functions which it implements |
38887 | to always fail with ENOSYS. Some functions are actually named | |
38888 | something starting with __ and the normal name is an alias. */ | |
004ee6da | 38889 | #if defined (__stub_localtime_r) || defined (__stub___localtime_r) |
a848cd7e SC |
38890 | choke me |
38891 | #else | |
004ee6da | 38892 | char (*f) () = localtime_r; |
a848cd7e SC |
38893 | #endif |
38894 | #ifdef __cplusplus | |
38895 | } | |
38896 | #endif | |
38897 | ||
38898 | int | |
38899 | main () | |
38900 | { | |
004ee6da RL |
38901 | return f != localtime_r; |
38902 | ; | |
38903 | return 0; | |
38904 | } | |
38905 | _ACEOF | |
38906 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38907 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
38908 | (eval $ac_link) 2>conftest.er1 | |
38909 | ac_status=$? | |
38910 | grep -v '^ *+' conftest.er1 >conftest.err | |
38911 | rm -f conftest.er1 | |
38912 | cat conftest.err >&5 | |
38913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38914 | (exit $ac_status); } && | |
d25774ab JS |
38915 | { ac_try='test -z "$ac_cxx_werror_flag" |
38916 | || test ! -s conftest.err' | |
004ee6da RL |
38917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38918 | (eval $ac_try) 2>&5 | |
38919 | ac_status=$? | |
38920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38921 | (exit $ac_status); }; } && | |
38922 | { ac_try='test -s conftest$ac_exeext' | |
38923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38924 | (eval $ac_try) 2>&5 | |
38925 | ac_status=$? | |
38926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38927 | (exit $ac_status); }; }; then | |
38928 | ac_cv_func_localtime_r=yes | |
38929 | else | |
38930 | echo "$as_me: failed program was:" >&5 | |
38931 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38932 | ||
38933 | ac_cv_func_localtime_r=no | |
38934 | fi | |
38935 | rm -f conftest.err conftest.$ac_objext \ | |
38936 | conftest$ac_exeext conftest.$ac_ext | |
38937 | fi | |
38938 | echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5 | |
38939 | echo "${ECHO_T}$ac_cv_func_localtime_r" >&6 | |
38940 | if test $ac_cv_func_localtime_r = yes; then | |
38941 | cat >>confdefs.h <<\_ACEOF | |
38942 | #define HAVE_LOCALTIME_R 1 | |
38943 | _ACEOF | |
38944 | ||
38945 | fi | |
38946 | ||
38947 | echo "$as_me:$LINENO: checking for gmtime_r" >&5 | |
38948 | echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6 | |
38949 | if test "${ac_cv_func_gmtime_r+set}" = set; then | |
38950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38951 | else | |
38952 | cat >conftest.$ac_ext <<_ACEOF | |
38953 | /* confdefs.h. */ | |
38954 | _ACEOF | |
38955 | cat confdefs.h >>conftest.$ac_ext | |
38956 | cat >>conftest.$ac_ext <<_ACEOF | |
38957 | /* end confdefs.h. */ | |
38958 | /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r. | |
38959 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38960 | #define gmtime_r innocuous_gmtime_r | |
38961 | ||
38962 | /* System header to define __stub macros and hopefully few prototypes, | |
38963 | which can conflict with char gmtime_r (); below. | |
38964 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38965 | <limits.h> exists even on freestanding compilers. */ | |
38966 | ||
38967 | #ifdef __STDC__ | |
38968 | # include <limits.h> | |
38969 | #else | |
38970 | # include <assert.h> | |
38971 | #endif | |
38972 | ||
38973 | #undef gmtime_r | |
38974 | ||
38975 | /* Override any gcc2 internal prototype to avoid an error. */ | |
38976 | #ifdef __cplusplus | |
38977 | extern "C" | |
38978 | { | |
38979 | #endif | |
38980 | /* We use char because int might match the return type of a gcc2 | |
38981 | builtin and then its argument prototype would still apply. */ | |
38982 | char gmtime_r (); | |
38983 | /* The GNU C library defines this for functions which it implements | |
38984 | to always fail with ENOSYS. Some functions are actually named | |
38985 | something starting with __ and the normal name is an alias. */ | |
38986 | #if defined (__stub_gmtime_r) || defined (__stub___gmtime_r) | |
38987 | choke me | |
38988 | #else | |
38989 | char (*f) () = gmtime_r; | |
38990 | #endif | |
38991 | #ifdef __cplusplus | |
38992 | } | |
38993 | #endif | |
38994 | ||
38995 | int | |
38996 | main () | |
38997 | { | |
38998 | return f != gmtime_r; | |
38999 | ; | |
39000 | return 0; | |
39001 | } | |
39002 | _ACEOF | |
39003 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39004 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
39005 | (eval $ac_link) 2>conftest.er1 | |
39006 | ac_status=$? | |
39007 | grep -v '^ *+' conftest.er1 >conftest.err | |
39008 | rm -f conftest.er1 | |
39009 | cat conftest.err >&5 | |
39010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39011 | (exit $ac_status); } && | |
d25774ab JS |
39012 | { ac_try='test -z "$ac_cxx_werror_flag" |
39013 | || test ! -s conftest.err' | |
004ee6da RL |
39014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39015 | (eval $ac_try) 2>&5 | |
39016 | ac_status=$? | |
39017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39018 | (exit $ac_status); }; } && | |
39019 | { ac_try='test -s conftest$ac_exeext' | |
39020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39021 | (eval $ac_try) 2>&5 | |
39022 | ac_status=$? | |
39023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39024 | (exit $ac_status); }; }; then | |
39025 | ac_cv_func_gmtime_r=yes | |
39026 | else | |
39027 | echo "$as_me: failed program was:" >&5 | |
39028 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39029 | ||
39030 | ac_cv_func_gmtime_r=no | |
39031 | fi | |
39032 | rm -f conftest.err conftest.$ac_objext \ | |
39033 | conftest$ac_exeext conftest.$ac_ext | |
39034 | fi | |
39035 | echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5 | |
39036 | echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6 | |
39037 | if test $ac_cv_func_gmtime_r = yes; then | |
39038 | cat >>confdefs.h <<\_ACEOF | |
39039 | #define HAVE_GMTIME_R 1 | |
39040 | _ACEOF | |
39041 | ||
39042 | fi | |
39043 | ||
39044 | echo "$as_me:$LINENO: checking for readdir_r" >&5 | |
39045 | echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6 | |
39046 | if test "${ac_cv_func_readdir_r+set}" = set; then | |
39047 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39048 | else | |
39049 | cat >conftest.$ac_ext <<_ACEOF | |
39050 | /* confdefs.h. */ | |
39051 | _ACEOF | |
39052 | cat confdefs.h >>conftest.$ac_ext | |
39053 | cat >>conftest.$ac_ext <<_ACEOF | |
39054 | /* end confdefs.h. */ | |
39055 | /* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r. | |
39056 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39057 | #define readdir_r innocuous_readdir_r | |
39058 | ||
39059 | /* System header to define __stub macros and hopefully few prototypes, | |
39060 | which can conflict with char readdir_r (); below. | |
39061 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39062 | <limits.h> exists even on freestanding compilers. */ | |
39063 | ||
39064 | #ifdef __STDC__ | |
39065 | # include <limits.h> | |
39066 | #else | |
39067 | # include <assert.h> | |
39068 | #endif | |
39069 | ||
39070 | #undef readdir_r | |
39071 | ||
39072 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39073 | #ifdef __cplusplus | |
39074 | extern "C" | |
39075 | { | |
39076 | #endif | |
39077 | /* We use char because int might match the return type of a gcc2 | |
39078 | builtin and then its argument prototype would still apply. */ | |
39079 | char readdir_r (); | |
39080 | /* The GNU C library defines this for functions which it implements | |
39081 | to always fail with ENOSYS. Some functions are actually named | |
39082 | something starting with __ and the normal name is an alias. */ | |
39083 | #if defined (__stub_readdir_r) || defined (__stub___readdir_r) | |
39084 | choke me | |
39085 | #else | |
39086 | char (*f) () = readdir_r; | |
39087 | #endif | |
39088 | #ifdef __cplusplus | |
39089 | } | |
39090 | #endif | |
39091 | ||
39092 | int | |
39093 | main () | |
39094 | { | |
39095 | return f != readdir_r; | |
39096 | ; | |
39097 | return 0; | |
39098 | } | |
39099 | _ACEOF | |
39100 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39101 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
39102 | (eval $ac_link) 2>conftest.er1 | |
39103 | ac_status=$? | |
39104 | grep -v '^ *+' conftest.er1 >conftest.err | |
39105 | rm -f conftest.er1 | |
39106 | cat conftest.err >&5 | |
39107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39108 | (exit $ac_status); } && | |
d25774ab JS |
39109 | { ac_try='test -z "$ac_cxx_werror_flag" |
39110 | || test ! -s conftest.err' | |
004ee6da RL |
39111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39112 | (eval $ac_try) 2>&5 | |
39113 | ac_status=$? | |
39114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39115 | (exit $ac_status); }; } && | |
39116 | { ac_try='test -s conftest$ac_exeext' | |
39117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39118 | (eval $ac_try) 2>&5 | |
39119 | ac_status=$? | |
39120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39121 | (exit $ac_status); }; }; then | |
39122 | ac_cv_func_readdir_r=yes | |
39123 | else | |
39124 | echo "$as_me: failed program was:" >&5 | |
39125 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39126 | ||
39127 | ac_cv_func_readdir_r=no | |
39128 | fi | |
39129 | rm -f conftest.err conftest.$ac_objext \ | |
39130 | conftest$ac_exeext conftest.$ac_ext | |
39131 | fi | |
39132 | echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5 | |
39133 | echo "${ECHO_T}$ac_cv_func_readdir_r" >&6 | |
39134 | if test $ac_cv_func_readdir_r = yes; then | |
39135 | cat >>confdefs.h <<\_ACEOF | |
39136 | #define HAVE_READDIR_R 1 | |
39137 | _ACEOF | |
39138 | ||
39139 | fi | |
39140 | ||
004ee6da | 39141 | |
004ee6da RL |
39142 | |
39143 | ||
39144 | ac_ext=c | |
39145 | ac_cpp='$CPP $CPPFLAGS' | |
39146 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
39147 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
39148 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
39149 | ||
39150 | echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5 | |
39151 | echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6 | |
39152 | ||
39153 | if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then | |
39154 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39155 | else | |
39156 | ||
39157 | ||
39158 | ################################################################ | |
39159 | ||
39160 | ac_cv_func_which_gethostbyname_r=unknown | |
39161 | ||
39162 | # | |
39163 | # ONE ARGUMENT (sanity check) | |
39164 | # | |
39165 | ||
39166 | # This should fail, as there is no variant of gethostbyname_r() that takes | |
39167 | # a single argument. If it actually compiles, then we can assume that | |
39168 | # netdb.h is not declaring the function, and the compiler is thereby | |
39169 | # assuming an implicit prototype. In which case, we're out of luck. | |
39170 | # | |
39171 | cat >conftest.$ac_ext <<_ACEOF | |
39172 | /* confdefs.h. */ | |
39173 | _ACEOF | |
39174 | cat confdefs.h >>conftest.$ac_ext | |
39175 | cat >>conftest.$ac_ext <<_ACEOF | |
39176 | /* end confdefs.h. */ | |
39177 | #include <netdb.h> | |
39178 | int | |
39179 | main () | |
39180 | { | |
39181 | ||
39182 | char *name = "www.gnu.org"; | |
39183 | (void)gethostbyname_r(name) /* ; */ | |
39184 | ||
39185 | ; | |
39186 | return 0; | |
39187 | } | |
39188 | _ACEOF | |
39189 | rm -f conftest.$ac_objext | |
39190 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39191 | (eval $ac_compile) 2>conftest.er1 | |
39192 | ac_status=$? | |
39193 | grep -v '^ *+' conftest.er1 >conftest.err | |
39194 | rm -f conftest.er1 | |
39195 | cat conftest.err >&5 | |
39196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39197 | (exit $ac_status); } && | |
d25774ab JS |
39198 | { ac_try='test -z "$ac_c_werror_flag" |
39199 | || test ! -s conftest.err' | |
004ee6da RL |
39200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39201 | (eval $ac_try) 2>&5 | |
39202 | ac_status=$? | |
39203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39204 | (exit $ac_status); }; } && | |
39205 | { ac_try='test -s conftest.$ac_objext' | |
39206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39207 | (eval $ac_try) 2>&5 | |
39208 | ac_status=$? | |
39209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39210 | (exit $ac_status); }; }; then | |
39211 | ac_cv_func_which_gethostbyname_r=no | |
39212 | else | |
39213 | echo "$as_me: failed program was:" >&5 | |
39214 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39215 | ||
39216 | fi | |
39217 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39218 | ||
39219 | # | |
39220 | # SIX ARGUMENTS | |
39221 | # (e.g. Linux) | |
39222 | # | |
39223 | ||
39224 | if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then | |
39225 | ||
39226 | cat >conftest.$ac_ext <<_ACEOF | |
39227 | /* confdefs.h. */ | |
39228 | _ACEOF | |
39229 | cat confdefs.h >>conftest.$ac_ext | |
39230 | cat >>conftest.$ac_ext <<_ACEOF | |
39231 | /* end confdefs.h. */ | |
39232 | #include <netdb.h> | |
39233 | int | |
39234 | main () | |
39235 | { | |
39236 | ||
39237 | char *name = "www.gnu.org"; | |
39238 | struct hostent ret, *retp; | |
39239 | char buf[1024]; | |
39240 | int buflen = 1024; | |
39241 | int my_h_errno; | |
39242 | (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */ | |
39243 | ||
39244 | ; | |
39245 | return 0; | |
39246 | } | |
39247 | _ACEOF | |
39248 | rm -f conftest.$ac_objext | |
39249 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39250 | (eval $ac_compile) 2>conftest.er1 | |
39251 | ac_status=$? | |
39252 | grep -v '^ *+' conftest.er1 >conftest.err | |
39253 | rm -f conftest.er1 | |
39254 | cat conftest.err >&5 | |
39255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39256 | (exit $ac_status); } && | |
d25774ab JS |
39257 | { ac_try='test -z "$ac_c_werror_flag" |
39258 | || test ! -s conftest.err' | |
004ee6da RL |
39259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39260 | (eval $ac_try) 2>&5 | |
39261 | ac_status=$? | |
39262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39263 | (exit $ac_status); }; } && | |
39264 | { ac_try='test -s conftest.$ac_objext' | |
39265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39266 | (eval $ac_try) 2>&5 | |
39267 | ac_status=$? | |
39268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39269 | (exit $ac_status); }; }; then | |
39270 | ac_cv_func_which_gethostbyname_r=six | |
39271 | else | |
39272 | echo "$as_me: failed program was:" >&5 | |
39273 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39274 | ||
39275 | fi | |
39276 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39277 | ||
39278 | fi | |
39279 | ||
39280 | # | |
39281 | # FIVE ARGUMENTS | |
39282 | # (e.g. Solaris) | |
39283 | # | |
39284 | ||
39285 | if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then | |
39286 | ||
39287 | cat >conftest.$ac_ext <<_ACEOF | |
39288 | /* confdefs.h. */ | |
39289 | _ACEOF | |
39290 | cat confdefs.h >>conftest.$ac_ext | |
39291 | cat >>conftest.$ac_ext <<_ACEOF | |
39292 | /* end confdefs.h. */ | |
39293 | #include <netdb.h> | |
39294 | int | |
39295 | main () | |
39296 | { | |
39297 | ||
39298 | char *name = "www.gnu.org"; | |
39299 | struct hostent ret; | |
39300 | char buf[1024]; | |
39301 | int buflen = 1024; | |
39302 | int my_h_errno; | |
39303 | (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */ | |
39304 | ||
39305 | ; | |
39306 | return 0; | |
39307 | } | |
39308 | _ACEOF | |
39309 | rm -f conftest.$ac_objext | |
39310 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39311 | (eval $ac_compile) 2>conftest.er1 | |
39312 | ac_status=$? | |
39313 | grep -v '^ *+' conftest.er1 >conftest.err | |
39314 | rm -f conftest.er1 | |
39315 | cat conftest.err >&5 | |
39316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39317 | (exit $ac_status); } && | |
d25774ab JS |
39318 | { ac_try='test -z "$ac_c_werror_flag" |
39319 | || test ! -s conftest.err' | |
004ee6da RL |
39320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39321 | (eval $ac_try) 2>&5 | |
39322 | ac_status=$? | |
39323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39324 | (exit $ac_status); }; } && | |
39325 | { ac_try='test -s conftest.$ac_objext' | |
39326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39327 | (eval $ac_try) 2>&5 | |
39328 | ac_status=$? | |
39329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39330 | (exit $ac_status); }; }; then | |
39331 | ac_cv_func_which_gethostbyname_r=five | |
39332 | else | |
39333 | echo "$as_me: failed program was:" >&5 | |
39334 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39335 | ||
39336 | fi | |
39337 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39338 | ||
39339 | fi | |
39340 | ||
39341 | # | |
39342 | # THREE ARGUMENTS | |
39343 | # (e.g. AIX, HP-UX, Tru64) | |
39344 | # | |
39345 | ||
39346 | if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then | |
39347 | ||
39348 | cat >conftest.$ac_ext <<_ACEOF | |
39349 | /* confdefs.h. */ | |
39350 | _ACEOF | |
39351 | cat confdefs.h >>conftest.$ac_ext | |
39352 | cat >>conftest.$ac_ext <<_ACEOF | |
39353 | /* end confdefs.h. */ | |
39354 | #include <netdb.h> | |
39355 | int | |
39356 | main () | |
39357 | { | |
39358 | ||
39359 | char *name = "www.gnu.org"; | |
39360 | struct hostent ret; | |
39361 | struct hostent_data data; | |
39362 | (void)gethostbyname_r(name, &ret, &data) /* ; */ | |
39363 | ||
39364 | ; | |
39365 | return 0; | |
39366 | } | |
39367 | _ACEOF | |
39368 | rm -f conftest.$ac_objext | |
39369 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39370 | (eval $ac_compile) 2>conftest.er1 | |
39371 | ac_status=$? | |
39372 | grep -v '^ *+' conftest.er1 >conftest.err | |
39373 | rm -f conftest.er1 | |
39374 | cat conftest.err >&5 | |
39375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39376 | (exit $ac_status); } && | |
d25774ab JS |
39377 | { ac_try='test -z "$ac_c_werror_flag" |
39378 | || test ! -s conftest.err' | |
004ee6da RL |
39379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39380 | (eval $ac_try) 2>&5 | |
39381 | ac_status=$? | |
39382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39383 | (exit $ac_status); }; } && | |
39384 | { ac_try='test -s conftest.$ac_objext' | |
39385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39386 | (eval $ac_try) 2>&5 | |
39387 | ac_status=$? | |
39388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39389 | (exit $ac_status); }; }; then | |
39390 | ac_cv_func_which_gethostbyname_r=three | |
39391 | else | |
39392 | echo "$as_me: failed program was:" >&5 | |
39393 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39394 | ||
39395 | fi | |
39396 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39397 | ||
39398 | fi | |
39399 | ||
39400 | ################################################################ | |
39401 | ||
39402 | ||
39403 | fi | |
39404 | ||
39405 | case "$ac_cv_func_which_gethostbyname_r" in | |
39406 | three) | |
39407 | echo "$as_me:$LINENO: result: three" >&5 | |
39408 | echo "${ECHO_T}three" >&6 | |
39409 | cat >>confdefs.h <<\_ACEOF | |
39410 | #define HAVE_FUNC_GETHOSTBYNAME_R_3 1 | |
39411 | _ACEOF | |
39412 | ||
39413 | ;; | |
39414 | ||
39415 | five) | |
39416 | echo "$as_me:$LINENO: result: five" >&5 | |
39417 | echo "${ECHO_T}five" >&6 | |
39418 | cat >>confdefs.h <<\_ACEOF | |
39419 | #define HAVE_FUNC_GETHOSTBYNAME_R_5 1 | |
39420 | _ACEOF | |
39421 | ||
39422 | ;; | |
39423 | ||
39424 | six) | |
39425 | echo "$as_me:$LINENO: result: six" >&5 | |
39426 | echo "${ECHO_T}six" >&6 | |
39427 | cat >>confdefs.h <<\_ACEOF | |
39428 | #define HAVE_FUNC_GETHOSTBYNAME_R_6 1 | |
39429 | _ACEOF | |
39430 | ||
39431 | ;; | |
39432 | ||
39433 | no) | |
39434 | echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5 | |
39435 | echo "${ECHO_T}cannot find function declaration in netdb.h" >&6 | |
39436 | ;; | |
39437 | ||
39438 | unknown) | |
39439 | echo "$as_me:$LINENO: result: can't tell" >&5 | |
39440 | echo "${ECHO_T}can't tell" >&6 | |
39441 | ;; | |
39442 | ||
39443 | *) | |
39444 | { { echo "$as_me:$LINENO: error: internal error" >&5 | |
39445 | echo "$as_me: error: internal error" >&2;} | |
39446 | { (exit 1); exit 1; }; } | |
39447 | ;; | |
39448 | esac | |
39449 | ||
5ec3bc43 JS |
39450 | ac_ext=cc |
39451 | ac_cpp='$CXXCPP $CPPFLAGS' | |
39452 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
39453 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
39454 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
004ee6da RL |
39455 | |
39456 | ||
39457 | ||
39458 | if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \ | |
39459 | "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then | |
39460 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
39461 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
39462 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
39463 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39464 | else | |
39465 | cat >conftest.$ac_ext <<_ACEOF | |
39466 | /* confdefs.h. */ | |
39467 | _ACEOF | |
39468 | cat confdefs.h >>conftest.$ac_ext | |
39469 | cat >>conftest.$ac_ext <<_ACEOF | |
39470 | /* end confdefs.h. */ | |
39471 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. | |
39472 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39473 | #define gethostbyname innocuous_gethostbyname | |
39474 | ||
39475 | /* System header to define __stub macros and hopefully few prototypes, | |
39476 | which can conflict with char gethostbyname (); below. | |
39477 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39478 | <limits.h> exists even on freestanding compilers. */ | |
39479 | ||
39480 | #ifdef __STDC__ | |
39481 | # include <limits.h> | |
39482 | #else | |
39483 | # include <assert.h> | |
39484 | #endif | |
39485 | ||
39486 | #undef gethostbyname | |
39487 | ||
39488 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39489 | #ifdef __cplusplus | |
39490 | extern "C" | |
39491 | { | |
39492 | #endif | |
39493 | /* We use char because int might match the return type of a gcc2 | |
39494 | builtin and then its argument prototype would still apply. */ | |
39495 | char gethostbyname (); | |
39496 | /* The GNU C library defines this for functions which it implements | |
39497 | to always fail with ENOSYS. Some functions are actually named | |
39498 | something starting with __ and the normal name is an alias. */ | |
39499 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
39500 | choke me | |
39501 | #else | |
39502 | char (*f) () = gethostbyname; | |
39503 | #endif | |
39504 | #ifdef __cplusplus | |
39505 | } | |
39506 | #endif | |
39507 | ||
39508 | int | |
39509 | main () | |
39510 | { | |
39511 | return f != gethostbyname; | |
39512 | ; | |
39513 | return 0; | |
39514 | } | |
39515 | _ACEOF | |
39516 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39517 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
39518 | (eval $ac_link) 2>conftest.er1 | |
39519 | ac_status=$? | |
39520 | grep -v '^ *+' conftest.er1 >conftest.err | |
39521 | rm -f conftest.er1 | |
39522 | cat conftest.err >&5 | |
39523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39524 | (exit $ac_status); } && | |
d25774ab JS |
39525 | { ac_try='test -z "$ac_cxx_werror_flag" |
39526 | || test ! -s conftest.err' | |
004ee6da RL |
39527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39528 | (eval $ac_try) 2>&5 | |
39529 | ac_status=$? | |
39530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39531 | (exit $ac_status); }; } && | |
39532 | { ac_try='test -s conftest$ac_exeext' | |
39533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39534 | (eval $ac_try) 2>&5 | |
39535 | ac_status=$? | |
39536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39537 | (exit $ac_status); }; }; then | |
39538 | ac_cv_func_gethostbyname=yes | |
39539 | else | |
39540 | echo "$as_me: failed program was:" >&5 | |
39541 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39542 | ||
39543 | ac_cv_func_gethostbyname=no | |
39544 | fi | |
39545 | rm -f conftest.err conftest.$ac_objext \ | |
39546 | conftest$ac_exeext conftest.$ac_ext | |
39547 | fi | |
39548 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
39549 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
39550 | if test $ac_cv_func_gethostbyname = yes; then | |
39551 | cat >>confdefs.h <<\_ACEOF | |
39552 | #define HAVE_GETHOSTBYNAME 1 | |
39553 | _ACEOF | |
39554 | ||
39555 | fi | |
39556 | ||
39557 | fi | |
39558 | echo "$as_me:$LINENO: checking for getservbyname_r" >&5 | |
39559 | echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6 | |
004ee6da RL |
39560 | if test "${ac_cv_func_getservbyname_r+set}" = set; then |
39561 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39562 | else | |
39563 | cat >conftest.$ac_ext <<_ACEOF | |
39564 | /* confdefs.h. */ | |
39565 | _ACEOF | |
39566 | cat confdefs.h >>conftest.$ac_ext | |
39567 | cat >>conftest.$ac_ext <<_ACEOF | |
39568 | /* end confdefs.h. */ | |
39569 | /* Define getservbyname_r to an innocuous variant, in case <limits.h> declares getservbyname_r. | |
39570 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39571 | #define getservbyname_r innocuous_getservbyname_r | |
39572 | ||
39573 | /* System header to define __stub macros and hopefully few prototypes, | |
39574 | which can conflict with char getservbyname_r (); below. | |
39575 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39576 | <limits.h> exists even on freestanding compilers. */ | |
39577 | ||
39578 | #ifdef __STDC__ | |
39579 | # include <limits.h> | |
39580 | #else | |
39581 | # include <assert.h> | |
39582 | #endif | |
39583 | ||
39584 | #undef getservbyname_r | |
39585 | ||
39586 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39587 | #ifdef __cplusplus | |
39588 | extern "C" | |
39589 | { | |
39590 | #endif | |
39591 | /* We use char because int might match the return type of a gcc2 | |
39592 | builtin and then its argument prototype would still apply. */ | |
39593 | char getservbyname_r (); | |
39594 | /* The GNU C library defines this for functions which it implements | |
39595 | to always fail with ENOSYS. Some functions are actually named | |
39596 | something starting with __ and the normal name is an alias. */ | |
39597 | #if defined (__stub_getservbyname_r) || defined (__stub___getservbyname_r) | |
39598 | choke me | |
39599 | #else | |
39600 | char (*f) () = getservbyname_r; | |
39601 | #endif | |
39602 | #ifdef __cplusplus | |
39603 | } | |
39604 | #endif | |
39605 | ||
39606 | int | |
39607 | main () | |
39608 | { | |
39609 | return f != getservbyname_r; | |
39610 | ; | |
39611 | return 0; | |
39612 | } | |
39613 | _ACEOF | |
39614 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39615 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
39616 | (eval $ac_link) 2>conftest.er1 | |
39617 | ac_status=$? | |
39618 | grep -v '^ *+' conftest.er1 >conftest.err | |
39619 | rm -f conftest.er1 | |
39620 | cat conftest.err >&5 | |
39621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39622 | (exit $ac_status); } && | |
d25774ab JS |
39623 | { ac_try='test -z "$ac_cxx_werror_flag" |
39624 | || test ! -s conftest.err' | |
004ee6da RL |
39625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39626 | (eval $ac_try) 2>&5 | |
39627 | ac_status=$? | |
39628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39629 | (exit $ac_status); }; } && | |
39630 | { ac_try='test -s conftest$ac_exeext' | |
39631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39632 | (eval $ac_try) 2>&5 | |
39633 | ac_status=$? | |
39634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39635 | (exit $ac_status); }; }; then | |
39636 | ac_cv_func_getservbyname_r=yes | |
39637 | else | |
39638 | echo "$as_me: failed program was:" >&5 | |
39639 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39640 | ||
39641 | ac_cv_func_getservbyname_r=no | |
39642 | fi | |
39643 | rm -f conftest.err conftest.$ac_objext \ | |
39644 | conftest$ac_exeext conftest.$ac_ext | |
39645 | fi | |
39646 | echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_r" >&5 | |
39647 | echo "${ECHO_T}$ac_cv_func_getservbyname_r" >&6 | |
39648 | if test $ac_cv_func_getservbyname_r = yes; then | |
99879bbf | 39649 | cat >conftest.$ac_ext <<_ACEOF |
004ee6da RL |
39650 | /* confdefs.h. */ |
39651 | _ACEOF | |
39652 | cat confdefs.h >>conftest.$ac_ext | |
39653 | cat >>conftest.$ac_ext <<_ACEOF | |
39654 | /* end confdefs.h. */ | |
99879bbf | 39655 | #include <netdb.h> |
004ee6da RL |
39656 | int |
39657 | main () | |
39658 | { | |
39659 | ||
99879bbf MR |
39660 | char *name; |
39661 | char *proto; | |
39662 | struct servent *se; | |
39663 | struct servent_data data; | |
39664 | (void) getservbyname_r(name, proto, se, &data); | |
004ee6da RL |
39665 | |
39666 | ; | |
39667 | return 0; | |
39668 | } | |
39669 | _ACEOF | |
39670 | rm -f conftest.$ac_objext | |
39671 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39672 | (eval $ac_compile) 2>conftest.er1 | |
39673 | ac_status=$? | |
39674 | grep -v '^ *+' conftest.er1 >conftest.err | |
39675 | rm -f conftest.er1 | |
39676 | cat conftest.err >&5 | |
39677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39678 | (exit $ac_status); } && | |
d25774ab JS |
39679 | { ac_try='test -z "$ac_cxx_werror_flag" |
39680 | || test ! -s conftest.err' | |
004ee6da RL |
39681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39682 | (eval $ac_try) 2>&5 | |
39683 | ac_status=$? | |
39684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39685 | (exit $ac_status); }; } && | |
39686 | { ac_try='test -s conftest.$ac_objext' | |
39687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39688 | (eval $ac_try) 2>&5 | |
39689 | ac_status=$? | |
39690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39691 | (exit $ac_status); }; }; then | |
39692 | ac_cv_func_which_getservbyname_r=four | |
39693 | else | |
39694 | echo "$as_me: failed program was:" >&5 | |
39695 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39696 | ||
99879bbf | 39697 | cat >conftest.$ac_ext <<_ACEOF |
004ee6da RL |
39698 | /* confdefs.h. */ |
39699 | _ACEOF | |
39700 | cat confdefs.h >>conftest.$ac_ext | |
39701 | cat >>conftest.$ac_ext <<_ACEOF | |
39702 | /* end confdefs.h. */ | |
99879bbf | 39703 | #include <netdb.h> |
004ee6da RL |
39704 | int |
39705 | main () | |
39706 | { | |
39707 | ||
99879bbf MR |
39708 | char *name; |
39709 | char *proto; | |
39710 | struct servent *se, *res; | |
39711 | char buffer[2048]; | |
39712 | int buflen = 2048; | |
39713 | (void) getservbyname_r(name, proto, se, buffer, buflen, &res); | |
004ee6da RL |
39714 | |
39715 | ; | |
39716 | return 0; | |
39717 | } | |
39718 | _ACEOF | |
39719 | rm -f conftest.$ac_objext | |
39720 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39721 | (eval $ac_compile) 2>conftest.er1 | |
39722 | ac_status=$? | |
39723 | grep -v '^ *+' conftest.er1 >conftest.err | |
39724 | rm -f conftest.er1 | |
39725 | cat conftest.err >&5 | |
39726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39727 | (exit $ac_status); } && | |
d25774ab JS |
39728 | { ac_try='test -z "$ac_cxx_werror_flag" |
39729 | || test ! -s conftest.err' | |
004ee6da RL |
39730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39731 | (eval $ac_try) 2>&5 | |
39732 | ac_status=$? | |
39733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39734 | (exit $ac_status); }; } && | |
39735 | { ac_try='test -s conftest.$ac_objext' | |
39736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39737 | (eval $ac_try) 2>&5 | |
39738 | ac_status=$? | |
39739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39740 | (exit $ac_status); }; }; then | |
39741 | ac_cv_func_which_getservbyname_r=six | |
39742 | else | |
39743 | echo "$as_me: failed program was:" >&5 | |
39744 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39745 | ||
99879bbf | 39746 | cat >conftest.$ac_ext <<_ACEOF |
004ee6da RL |
39747 | /* confdefs.h. */ |
39748 | _ACEOF | |
39749 | cat confdefs.h >>conftest.$ac_ext | |
39750 | cat >>conftest.$ac_ext <<_ACEOF | |
39751 | /* end confdefs.h. */ | |
99879bbf | 39752 | #include <netdb.h> |
004ee6da RL |
39753 | int |
39754 | main () | |
39755 | { | |
39756 | ||
99879bbf MR |
39757 | char *name; |
39758 | char *proto; | |
39759 | struct servent *se; | |
39760 | char buffer[2048]; | |
39761 | int buflen = 2048; | |
39762 | (void) getservbyname_r(name, proto, se, buffer, buflen) | |
004ee6da RL |
39763 | |
39764 | ; | |
39765 | return 0; | |
39766 | } | |
39767 | _ACEOF | |
39768 | rm -f conftest.$ac_objext | |
39769 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39770 | (eval $ac_compile) 2>conftest.er1 | |
39771 | ac_status=$? | |
39772 | grep -v '^ *+' conftest.er1 >conftest.err | |
39773 | rm -f conftest.er1 | |
39774 | cat conftest.err >&5 | |
39775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39776 | (exit $ac_status); } && | |
d25774ab JS |
39777 | { ac_try='test -z "$ac_cxx_werror_flag" |
39778 | || test ! -s conftest.err' | |
004ee6da RL |
39779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39780 | (eval $ac_try) 2>&5 | |
39781 | ac_status=$? | |
39782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39783 | (exit $ac_status); }; } && | |
39784 | { ac_try='test -s conftest.$ac_objext' | |
39785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39786 | (eval $ac_try) 2>&5 | |
39787 | ac_status=$? | |
39788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39789 | (exit $ac_status); }; }; then | |
39790 | ac_cv_func_which_getservbyname_r=five | |
39791 | else | |
39792 | echo "$as_me: failed program was:" >&5 | |
39793 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39794 | ||
39795 | ac_cv_func_which_getservbyname_r=no | |
99879bbf | 39796 | |
004ee6da RL |
39797 | fi |
39798 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39799 | ||
004ee6da RL |
39800 | fi |
39801 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39802 | ||
004ee6da RL |
39803 | fi |
39804 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
004ee6da RL |
39805 | else |
39806 | ac_cv_func_which_getservbyname_r=no | |
39807 | fi | |
39808 | ||
004ee6da RL |
39809 | |
39810 | if test $ac_cv_func_which_getservbyname_r = six; then | |
39811 | cat >>confdefs.h <<\_ACEOF | |
39812 | #define HAVE_FUNC_GETSERVBYNAME_R_6 1 | |
39813 | _ACEOF | |
39814 | ||
39815 | elif test $ac_cv_func_which_getservbyname_r = five; then | |
39816 | cat >>confdefs.h <<\_ACEOF | |
39817 | #define HAVE_FUNC_GETSERVBYNAME_R_5 1 | |
39818 | _ACEOF | |
39819 | ||
39820 | elif test $ac_cv_func_which_getservbyname_r = four; then | |
39821 | cat >>confdefs.h <<\_ACEOF | |
39822 | #define HAVE_FUNC_GETSERVBYNAME_R_4 1 | |
39823 | _ACEOF | |
39824 | ||
004ee6da RL |
39825 | fi |
39826 | ||
39827 | ||
39828 | if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \ | |
39829 | "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then | |
39830 | ||
39831 | for ac_func in getservbyname | |
39832 | do | |
39833 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
39834 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39835 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
39836 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
39837 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39838 | else | |
39839 | cat >conftest.$ac_ext <<_ACEOF | |
39840 | /* confdefs.h. */ | |
39841 | _ACEOF | |
39842 | cat confdefs.h >>conftest.$ac_ext | |
39843 | cat >>conftest.$ac_ext <<_ACEOF | |
39844 | /* end confdefs.h. */ | |
39845 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
39846 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39847 | #define $ac_func innocuous_$ac_func | |
39848 | ||
39849 | /* System header to define __stub macros and hopefully few prototypes, | |
39850 | which can conflict with char $ac_func (); below. | |
39851 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39852 | <limits.h> exists even on freestanding compilers. */ | |
39853 | ||
39854 | #ifdef __STDC__ | |
39855 | # include <limits.h> | |
39856 | #else | |
39857 | # include <assert.h> | |
39858 | #endif | |
39859 | ||
39860 | #undef $ac_func | |
39861 | ||
39862 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39863 | #ifdef __cplusplus | |
39864 | extern "C" | |
39865 | { | |
39866 | #endif | |
39867 | /* We use char because int might match the return type of a gcc2 | |
39868 | builtin and then its argument prototype would still apply. */ | |
39869 | char $ac_func (); | |
39870 | /* The GNU C library defines this for functions which it implements | |
39871 | to always fail with ENOSYS. Some functions are actually named | |
39872 | something starting with __ and the normal name is an alias. */ | |
39873 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39874 | choke me | |
39875 | #else | |
39876 | char (*f) () = $ac_func; | |
39877 | #endif | |
39878 | #ifdef __cplusplus | |
39879 | } | |
39880 | #endif | |
39881 | ||
39882 | int | |
39883 | main () | |
39884 | { | |
39885 | return f != $ac_func; | |
39886 | ; | |
39887 | return 0; | |
39888 | } | |
39889 | _ACEOF | |
39890 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39891 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
39892 | (eval $ac_link) 2>conftest.er1 | |
39893 | ac_status=$? | |
39894 | grep -v '^ *+' conftest.er1 >conftest.err | |
39895 | rm -f conftest.er1 | |
39896 | cat conftest.err >&5 | |
39897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39898 | (exit $ac_status); } && | |
d25774ab JS |
39899 | { ac_try='test -z "$ac_cxx_werror_flag" |
39900 | || test ! -s conftest.err' | |
004ee6da RL |
39901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39902 | (eval $ac_try) 2>&5 | |
39903 | ac_status=$? | |
39904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39905 | (exit $ac_status); }; } && | |
39906 | { ac_try='test -s conftest$ac_exeext' | |
39907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39908 | (eval $ac_try) 2>&5 | |
39909 | ac_status=$? | |
39910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39911 | (exit $ac_status); }; }; then | |
39912 | eval "$as_ac_var=yes" | |
39913 | else | |
39914 | echo "$as_me: failed program was:" >&5 | |
39915 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39916 | ||
39917 | eval "$as_ac_var=no" | |
39918 | fi | |
39919 | rm -f conftest.err conftest.$ac_objext \ | |
39920 | conftest$ac_exeext conftest.$ac_ext | |
39921 | fi | |
39922 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39923 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39924 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39925 | cat >>confdefs.h <<_ACEOF | |
39926 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39927 | _ACEOF | |
39928 | cat >>confdefs.h <<\_ACEOF | |
39929 | #define HAVE_GETSERVBYNAME 1 | |
39930 | _ACEOF | |
39931 | ||
39932 | fi | |
39933 | done | |
39934 | ||
39935 | fi | |
39936 | ||
004ee6da RL |
39937 | if test "$wxUSE_THREADS" = "yes"; then |
39938 | cat >>confdefs.h <<\_ACEOF | |
39939 | #define wxUSE_THREADS 1 | |
39940 | _ACEOF | |
39941 | ||
39942 | ||
39943 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
39944 | else | |
39945 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
39946 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 | |
39947 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
39948 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
39949 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT" | |
39950 | echo "$as_me:$LINENO: result: yes" >&5 | |
39951 | echo "${ECHO_T}yes" >&6 | |
39952 | else | |
39953 | echo "$as_me:$LINENO: result: no" >&5 | |
39954 | echo "${ECHO_T}no" >&6 | |
39955 | fi | |
39956 | fi | |
39957 | fi | |
39958 | ||
39959 | if test "$WXGTK20" = 1 ; then | |
39960 | cat >>confdefs.h <<_ACEOF | |
39961 | #define __WXGTK20__ $WXGTK20 | |
39962 | _ACEOF | |
39963 | ||
39964 | WXGTK12=1 | |
39965 | fi | |
39966 | ||
39967 | if test "$WXGTK12" = 1 ; then | |
39968 | cat >>confdefs.h <<_ACEOF | |
39969 | #define __WXGTK12__ $WXGTK12 | |
39970 | _ACEOF | |
39971 | ||
39972 | fi | |
39973 | ||
39974 | if test "$WXGTK127" = 1 ; then | |
39975 | cat >>confdefs.h <<_ACEOF | |
39976 | #define __WXGTK127__ $WXGTK127 | |
39977 | _ACEOF | |
39978 | ||
39979 | fi | |
39980 | ||
39981 | if test "$WXGPE" = 1 ; then | |
39982 | cat >>confdefs.h <<_ACEOF | |
39983 | #define __WXGPE__ $WXGPE | |
39984 | _ACEOF | |
39985 | ||
39986 | fi | |
39987 | ||
39988 | DEBUG_CFLAGS= | |
39989 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
39990 | DEBUG_CFLAGS="-g" | |
39991 | wxUSE_OPTIMISE=no | |
39992 | fi | |
39993 | ||
39994 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
39995 | wxUSE_DEBUG_INFO=yes | |
39996 | if test "$GCC" = yes; then | |
39997 | DEBUG_CFLAGS="-ggdb" | |
39998 | fi | |
39999 | fi | |
40000 | ||
40001 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
40002 | cat >>confdefs.h <<\_ACEOF | |
40003 | #define WXDEBUG 1 | |
40004 | _ACEOF | |
40005 | ||
40006 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__" | |
40007 | else | |
40008 | if test "$wxUSE_GTK" = 1 ; then | |
99879bbf MR |
40009 | if test "x$wxGTK_VERSION" = "x1" ; then |
40010 | CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS" | |
40011 | fi | |
004ee6da RL |
40012 | fi |
40013 | fi | |
40014 | ||
40015 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
40016 | cat >>confdefs.h <<\_ACEOF | |
40017 | #define wxUSE_MEMORY_TRACING 1 | |
40018 | _ACEOF | |
40019 | ||
40020 | cat >>confdefs.h <<\_ACEOF | |
40021 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
40022 | _ACEOF | |
40023 | ||
40024 | cat >>confdefs.h <<\_ACEOF | |
40025 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
40026 | _ACEOF | |
40027 | ||
40028 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
40029 | fi | |
40030 | ||
40031 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
40032 | DMALLOC_LIBS="-ldmallocthcxx" | |
40033 | fi | |
40034 | ||
40035 | PROFILE_FLAGS= | |
40036 | if test "$wxUSE_PROFILE" = "yes" ; then | |
40037 | PROFILE_FLAGS=" -pg" | |
40038 | fi | |
40039 | ||
40040 | if test "$GCC" = "yes" ; then | |
40041 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
40042 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti" | |
40043 | fi | |
40044 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
40045 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions" | |
40046 | fi | |
40047 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
40048 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive" | |
40049 | fi | |
40050 | ||
40051 | case "${host}" in | |
40052 | powerpc*-*-aix* ) | |
40053 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc" | |
40054 | ;; | |
40055 | *-hppa* ) | |
40056 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections" | |
40057 | ;; | |
40058 | esac | |
40059 | fi | |
40060 | ||
40061 | OPTIMISE_CFLAGS= | |
40062 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
40063 | if test "$GCC" = yes ; then | |
40064 | OPTIMISE_CFLAGS="-O0" | |
40065 | fi | |
40066 | else | |
40067 | if test "$GCC" = yes ; then | |
e5efa97e VZ |
40068 | case "${host}" in |
40069 | *-pc-os2_emx | *-pc-os2-emx ) | |
40070 | OPTIMISE_CFLAGS="-O2" | |
40071 | ;; | |
40072 | *) | |
40073 | OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing" | |
40074 | ;; | |
40075 | esac | |
004ee6da RL |
40076 | else |
40077 | OPTIMISE_CFLAGS="-O" | |
40078 | fi | |
40079 | fi | |
40080 | ||
40081 | ||
40082 | if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then | |
40083 | cat >>confdefs.h <<\_ACEOF | |
40084 | #define WXWIN_COMPATIBILITY_2_4 1 | |
40085 | _ACEOF | |
40086 | ||
40087 | ||
40088 | WXWIN_COMPATIBILITY_2_6="yes" | |
40089 | fi | |
40090 | ||
40091 | if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then | |
40092 | cat >>confdefs.h <<\_ACEOF | |
40093 | #define WXWIN_COMPATIBILITY_2_6 1 | |
40094 | _ACEOF | |
40095 | ||
40096 | fi | |
40097 | ||
40098 | ||
40099 | if test "$wxUSE_GUI" = "yes"; then | |
40100 | cat >>confdefs.h <<\_ACEOF | |
40101 | #define wxUSE_GUI 1 | |
40102 | _ACEOF | |
40103 | ||
40104 | ||
40105 | fi | |
40106 | ||
40107 | ||
40108 | if test "$wxUSE_UNIX" = "yes"; then | |
40109 | cat >>confdefs.h <<\_ACEOF | |
40110 | #define wxUSE_UNIX 1 | |
40111 | _ACEOF | |
40112 | ||
40113 | fi | |
40114 | ||
40115 | ||
40116 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
40117 | ||
40118 | HAVE_DL_FUNCS=0 | |
40119 | HAVE_SHL_FUNCS=0 | |
40120 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
40121 | if test "$USE_DARWIN" = 1; then | |
40122 | HAVE_DL_FUNCS=1 | |
40123 | elif test "$USE_DOS" = 1; then | |
40124 | HAVE_DL_FUNCS=0 | |
40125 | else | |
40126 | ||
40127 | for ac_func in dlopen | |
40128 | do | |
40129 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
40130 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
40131 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
40132 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
40133 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40134 | else | |
40135 | cat >conftest.$ac_ext <<_ACEOF | |
40136 | /* confdefs.h. */ | |
40137 | _ACEOF | |
40138 | cat confdefs.h >>conftest.$ac_ext | |
40139 | cat >>conftest.$ac_ext <<_ACEOF | |
40140 | /* end confdefs.h. */ | |
40141 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
40142 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40143 | #define $ac_func innocuous_$ac_func | |
40144 | ||
40145 | /* System header to define __stub macros and hopefully few prototypes, | |
40146 | which can conflict with char $ac_func (); below. | |
40147 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40148 | <limits.h> exists even on freestanding compilers. */ | |
40149 | ||
40150 | #ifdef __STDC__ | |
40151 | # include <limits.h> | |
40152 | #else | |
40153 | # include <assert.h> | |
40154 | #endif | |
40155 | ||
40156 | #undef $ac_func | |
40157 | ||
40158 | /* Override any gcc2 internal prototype to avoid an error. */ | |
40159 | #ifdef __cplusplus | |
40160 | extern "C" | |
40161 | { | |
40162 | #endif | |
40163 | /* We use char because int might match the return type of a gcc2 | |
40164 | builtin and then its argument prototype would still apply. */ | |
40165 | char $ac_func (); | |
40166 | /* The GNU C library defines this for functions which it implements | |
40167 | to always fail with ENOSYS. Some functions are actually named | |
40168 | something starting with __ and the normal name is an alias. */ | |
40169 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
40170 | choke me | |
40171 | #else | |
40172 | char (*f) () = $ac_func; | |
40173 | #endif | |
40174 | #ifdef __cplusplus | |
40175 | } | |
40176 | #endif | |
40177 | ||
40178 | int | |
40179 | main () | |
40180 | { | |
40181 | return f != $ac_func; | |
a848cd7e SC |
40182 | ; |
40183 | return 0; | |
40184 | } | |
40185 | _ACEOF | |
40186 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40187 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40188 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40189 | ac_status=$? |
ac1cb8d3 VS |
40190 | grep -v '^ *+' conftest.er1 >conftest.err |
40191 | rm -f conftest.er1 | |
40192 | cat conftest.err >&5 | |
a848cd7e SC |
40193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40194 | (exit $ac_status); } && | |
d25774ab JS |
40195 | { ac_try='test -z "$ac_cxx_werror_flag" |
40196 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
40197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40198 | (eval $ac_try) 2>&5 | |
40199 | ac_status=$? | |
40200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40201 | (exit $ac_status); }; } && | |
40202 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40204 | (eval $ac_try) 2>&5 | |
40205 | ac_status=$? | |
40206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40207 | (exit $ac_status); }; }; then | |
40208 | eval "$as_ac_var=yes" | |
40209 | else | |
40210 | echo "$as_me: failed program was:" >&5 | |
40211 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40212 | ||
40213 | eval "$as_ac_var=no" | |
40214 | fi | |
ac1cb8d3 VS |
40215 | rm -f conftest.err conftest.$ac_objext \ |
40216 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40217 | fi |
40218 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
40219 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
40220 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
40221 | cat >>confdefs.h <<_ACEOF | |
40222 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
40223 | _ACEOF | |
40224 | ||
40225 | cat >>confdefs.h <<\_ACEOF | |
40226 | #define HAVE_DLOPEN 1 | |
40227 | _ACEOF | |
40228 | ||
40229 | HAVE_DL_FUNCS=1 | |
40230 | ||
40231 | else | |
40232 | ||
40233 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
40234 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
40235 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
40236 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40237 | else | |
40238 | ac_check_lib_save_LIBS=$LIBS | |
40239 | LIBS="-ldl $LIBS" | |
40240 | cat >conftest.$ac_ext <<_ACEOF | |
40241 | /* confdefs.h. */ | |
40242 | _ACEOF | |
40243 | cat confdefs.h >>conftest.$ac_ext | |
40244 | cat >>conftest.$ac_ext <<_ACEOF | |
40245 | /* end confdefs.h. */ | |
40246 | ||
40247 | /* Override any gcc2 internal prototype to avoid an error. */ | |
40248 | #ifdef __cplusplus | |
40249 | extern "C" | |
40250 | #endif | |
40251 | /* We use char because int might match the return type of a gcc2 | |
40252 | builtin and then its argument prototype would still apply. */ | |
40253 | char dlopen (); | |
40254 | int | |
40255 | main () | |
40256 | { | |
40257 | dlopen (); | |
40258 | ; | |
40259 | return 0; | |
40260 | } | |
40261 | _ACEOF | |
40262 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40263 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40264 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40265 | ac_status=$? |
ac1cb8d3 VS |
40266 | grep -v '^ *+' conftest.er1 >conftest.err |
40267 | rm -f conftest.er1 | |
40268 | cat conftest.err >&5 | |
a848cd7e SC |
40269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40270 | (exit $ac_status); } && | |
d25774ab JS |
40271 | { ac_try='test -z "$ac_cxx_werror_flag" |
40272 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
40273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40274 | (eval $ac_try) 2>&5 | |
40275 | ac_status=$? | |
40276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40277 | (exit $ac_status); }; } && | |
40278 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40280 | (eval $ac_try) 2>&5 | |
40281 | ac_status=$? | |
40282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40283 | (exit $ac_status); }; }; then | |
40284 | ac_cv_lib_dl_dlopen=yes | |
40285 | else | |
40286 | echo "$as_me: failed program was:" >&5 | |
40287 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40288 | ||
40289 | ac_cv_lib_dl_dlopen=no | |
40290 | fi | |
ac1cb8d3 VS |
40291 | rm -f conftest.err conftest.$ac_objext \ |
40292 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40293 | LIBS=$ac_check_lib_save_LIBS |
40294 | fi | |
40295 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
40296 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
40297 | if test $ac_cv_lib_dl_dlopen = yes; then | |
40298 | ||
40299 | cat >>confdefs.h <<\_ACEOF | |
40300 | #define HAVE_DLOPEN 1 | |
40301 | _ACEOF | |
40302 | ||
40303 | HAVE_DL_FUNCS=1 | |
40304 | DL_LINK=" -ldl$DL_LINK" | |
40305 | ||
40306 | else | |
40307 | ||
40308 | ||
40309 | for ac_func in shl_load | |
40310 | do | |
40311 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
40312 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
40313 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
40314 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
40315 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40316 | else | |
40317 | cat >conftest.$ac_ext <<_ACEOF | |
40318 | /* confdefs.h. */ | |
40319 | _ACEOF | |
40320 | cat confdefs.h >>conftest.$ac_ext | |
40321 | cat >>conftest.$ac_ext <<_ACEOF | |
40322 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
40323 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
40324 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40325 | #define $ac_func innocuous_$ac_func | |
40326 | ||
a848cd7e SC |
40327 | /* System header to define __stub macros and hopefully few prototypes, |
40328 | which can conflict with char $ac_func (); below. | |
40329 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40330 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 40331 | |
a848cd7e SC |
40332 | #ifdef __STDC__ |
40333 | # include <limits.h> | |
40334 | #else | |
40335 | # include <assert.h> | |
40336 | #endif | |
ac1cb8d3 VS |
40337 | |
40338 | #undef $ac_func | |
40339 | ||
a848cd7e SC |
40340 | /* Override any gcc2 internal prototype to avoid an error. */ |
40341 | #ifdef __cplusplus | |
40342 | extern "C" | |
40343 | { | |
40344 | #endif | |
40345 | /* We use char because int might match the return type of a gcc2 | |
40346 | builtin and then its argument prototype would still apply. */ | |
40347 | char $ac_func (); | |
40348 | /* The GNU C library defines this for functions which it implements | |
40349 | to always fail with ENOSYS. Some functions are actually named | |
40350 | something starting with __ and the normal name is an alias. */ | |
40351 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
40352 | choke me | |
40353 | #else | |
40354 | char (*f) () = $ac_func; | |
40355 | #endif | |
40356 | #ifdef __cplusplus | |
40357 | } | |
40358 | #endif | |
40359 | ||
40360 | int | |
40361 | main () | |
40362 | { | |
40363 | return f != $ac_func; | |
40364 | ; | |
40365 | return 0; | |
40366 | } | |
40367 | _ACEOF | |
40368 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40369 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40370 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40371 | ac_status=$? |
ac1cb8d3 VS |
40372 | grep -v '^ *+' conftest.er1 >conftest.err |
40373 | rm -f conftest.er1 | |
40374 | cat conftest.err >&5 | |
a848cd7e SC |
40375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40376 | (exit $ac_status); } && | |
d25774ab JS |
40377 | { ac_try='test -z "$ac_cxx_werror_flag" |
40378 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
40379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40380 | (eval $ac_try) 2>&5 | |
40381 | ac_status=$? | |
40382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40383 | (exit $ac_status); }; } && | |
40384 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40386 | (eval $ac_try) 2>&5 | |
40387 | ac_status=$? | |
40388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40389 | (exit $ac_status); }; }; then | |
40390 | eval "$as_ac_var=yes" | |
40391 | else | |
40392 | echo "$as_me: failed program was:" >&5 | |
40393 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40394 | ||
40395 | eval "$as_ac_var=no" | |
40396 | fi | |
ac1cb8d3 VS |
40397 | rm -f conftest.err conftest.$ac_objext \ |
40398 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40399 | fi |
40400 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
40401 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
40402 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
40403 | cat >>confdefs.h <<_ACEOF | |
40404 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
40405 | _ACEOF | |
40406 | ||
40407 | cat >>confdefs.h <<\_ACEOF | |
40408 | #define HAVE_SHL_LOAD 1 | |
40409 | _ACEOF | |
40410 | ||
40411 | HAVE_SHL_FUNCS=1 | |
40412 | ||
40413 | else | |
40414 | ||
40415 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
40416 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
40417 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
40418 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40419 | else | |
40420 | ac_check_lib_save_LIBS=$LIBS | |
40421 | LIBS="-lshl_load $LIBS" | |
40422 | cat >conftest.$ac_ext <<_ACEOF | |
40423 | /* confdefs.h. */ | |
40424 | _ACEOF | |
40425 | cat confdefs.h >>conftest.$ac_ext | |
40426 | cat >>conftest.$ac_ext <<_ACEOF | |
40427 | /* end confdefs.h. */ | |
40428 | ||
40429 | /* Override any gcc2 internal prototype to avoid an error. */ | |
40430 | #ifdef __cplusplus | |
40431 | extern "C" | |
40432 | #endif | |
40433 | /* We use char because int might match the return type of a gcc2 | |
40434 | builtin and then its argument prototype would still apply. */ | |
40435 | char dld (); | |
40436 | int | |
40437 | main () | |
40438 | { | |
40439 | dld (); | |
40440 | ; | |
40441 | return 0; | |
40442 | } | |
40443 | _ACEOF | |
40444 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40445 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40446 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40447 | ac_status=$? |
ac1cb8d3 VS |
40448 | grep -v '^ *+' conftest.er1 >conftest.err |
40449 | rm -f conftest.er1 | |
40450 | cat conftest.err >&5 | |
a848cd7e SC |
40451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40452 | (exit $ac_status); } && | |
d25774ab JS |
40453 | { ac_try='test -z "$ac_cxx_werror_flag" |
40454 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
40455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40456 | (eval $ac_try) 2>&5 | |
40457 | ac_status=$? | |
40458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40459 | (exit $ac_status); }; } && | |
40460 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40462 | (eval $ac_try) 2>&5 | |
40463 | ac_status=$? | |
40464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40465 | (exit $ac_status); }; }; then | |
40466 | ac_cv_lib_shl_load_dld=yes | |
40467 | else | |
40468 | echo "$as_me: failed program was:" >&5 | |
40469 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40470 | ||
40471 | ac_cv_lib_shl_load_dld=no | |
40472 | fi | |
ac1cb8d3 VS |
40473 | rm -f conftest.err conftest.$ac_objext \ |
40474 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40475 | LIBS=$ac_check_lib_save_LIBS |
40476 | fi | |
40477 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
40478 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
40479 | if test $ac_cv_lib_shl_load_dld = yes; then | |
40480 | ||
40481 | HAVE_SHL_FUNCS=1 | |
40482 | DL_LINK=" -ldld$DL_LINK" | |
40483 | ||
40484 | fi | |
40485 | ||
40486 | ||
40487 | fi | |
40488 | done | |
40489 | ||
40490 | ||
40491 | fi | |
40492 | ||
40493 | ||
40494 | fi | |
40495 | done | |
40496 | ||
40497 | ||
40498 | if test "$HAVE_DL_FUNCS" = 1; then | |
40499 | ||
40500 | for ac_func in dlerror | |
40501 | do | |
40502 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
40503 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
40504 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
40505 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
40506 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40507 | else | |
40508 | cat >conftest.$ac_ext <<_ACEOF | |
40509 | /* confdefs.h. */ | |
40510 | _ACEOF | |
40511 | cat confdefs.h >>conftest.$ac_ext | |
40512 | cat >>conftest.$ac_ext <<_ACEOF | |
40513 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
40514 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
40515 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40516 | #define $ac_func innocuous_$ac_func | |
40517 | ||
a848cd7e SC |
40518 | /* System header to define __stub macros and hopefully few prototypes, |
40519 | which can conflict with char $ac_func (); below. | |
40520 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40521 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 40522 | |
a848cd7e SC |
40523 | #ifdef __STDC__ |
40524 | # include <limits.h> | |
40525 | #else | |
40526 | # include <assert.h> | |
40527 | #endif | |
ac1cb8d3 VS |
40528 | |
40529 | #undef $ac_func | |
40530 | ||
a848cd7e SC |
40531 | /* Override any gcc2 internal prototype to avoid an error. */ |
40532 | #ifdef __cplusplus | |
40533 | extern "C" | |
40534 | { | |
40535 | #endif | |
40536 | /* We use char because int might match the return type of a gcc2 | |
40537 | builtin and then its argument prototype would still apply. */ | |
40538 | char $ac_func (); | |
40539 | /* The GNU C library defines this for functions which it implements | |
40540 | to always fail with ENOSYS. Some functions are actually named | |
40541 | something starting with __ and the normal name is an alias. */ | |
40542 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
40543 | choke me | |
40544 | #else | |
40545 | char (*f) () = $ac_func; | |
40546 | #endif | |
40547 | #ifdef __cplusplus | |
40548 | } | |
40549 | #endif | |
40550 | ||
40551 | int | |
40552 | main () | |
40553 | { | |
40554 | return f != $ac_func; | |
40555 | ; | |
40556 | return 0; | |
40557 | } | |
40558 | _ACEOF | |
40559 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40560 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40561 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40562 | ac_status=$? |
ac1cb8d3 VS |
40563 | grep -v '^ *+' conftest.er1 >conftest.err |
40564 | rm -f conftest.er1 | |
40565 | cat conftest.err >&5 | |
a848cd7e SC |
40566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40567 | (exit $ac_status); } && | |
d25774ab JS |
40568 | { ac_try='test -z "$ac_cxx_werror_flag" |
40569 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
40570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40571 | (eval $ac_try) 2>&5 | |
40572 | ac_status=$? | |
40573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40574 | (exit $ac_status); }; } && | |
40575 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40577 | (eval $ac_try) 2>&5 | |
40578 | ac_status=$? | |
40579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40580 | (exit $ac_status); }; }; then | |
40581 | eval "$as_ac_var=yes" | |
40582 | else | |
40583 | echo "$as_me: failed program was:" >&5 | |
40584 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40585 | ||
40586 | eval "$as_ac_var=no" | |
40587 | fi | |
ac1cb8d3 VS |
40588 | rm -f conftest.err conftest.$ac_objext \ |
40589 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40590 | fi |
40591 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
40592 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
40593 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
40594 | cat >>confdefs.h <<_ACEOF | |
40595 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
40596 | _ACEOF | |
40597 | cat >>confdefs.h <<\_ACEOF | |
40598 | #define HAVE_DLERROR 1 | |
40599 | _ACEOF | |
40600 | ||
40601 | else | |
40602 | ||
40603 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
40604 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
40605 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
40606 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40607 | else | |
40608 | ac_check_lib_save_LIBS=$LIBS | |
40609 | LIBS="-ldl $LIBS" | |
40610 | cat >conftest.$ac_ext <<_ACEOF | |
40611 | /* confdefs.h. */ | |
40612 | _ACEOF | |
40613 | cat confdefs.h >>conftest.$ac_ext | |
40614 | cat >>conftest.$ac_ext <<_ACEOF | |
40615 | /* end confdefs.h. */ | |
40616 | ||
40617 | /* Override any gcc2 internal prototype to avoid an error. */ | |
40618 | #ifdef __cplusplus | |
40619 | extern "C" | |
40620 | #endif | |
40621 | /* We use char because int might match the return type of a gcc2 | |
40622 | builtin and then its argument prototype would still apply. */ | |
40623 | char dlerror (); | |
40624 | int | |
40625 | main () | |
40626 | { | |
40627 | dlerror (); | |
40628 | ; | |
40629 | return 0; | |
40630 | } | |
40631 | _ACEOF | |
40632 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40633 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40634 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40635 | ac_status=$? |
ac1cb8d3 VS |
40636 | grep -v '^ *+' conftest.er1 >conftest.err |
40637 | rm -f conftest.er1 | |
40638 | cat conftest.err >&5 | |
a848cd7e SC |
40639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40640 | (exit $ac_status); } && | |
d25774ab JS |
40641 | { ac_try='test -z "$ac_cxx_werror_flag" |
40642 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
40643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40644 | (eval $ac_try) 2>&5 | |
40645 | ac_status=$? | |
40646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40647 | (exit $ac_status); }; } && | |
40648 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40650 | (eval $ac_try) 2>&5 | |
40651 | ac_status=$? | |
40652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40653 | (exit $ac_status); }; }; then | |
40654 | ac_cv_lib_dl_dlerror=yes | |
40655 | else | |
40656 | echo "$as_me: failed program was:" >&5 | |
40657 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40658 | ||
40659 | ac_cv_lib_dl_dlerror=no | |
40660 | fi | |
ac1cb8d3 VS |
40661 | rm -f conftest.err conftest.$ac_objext \ |
40662 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40663 | LIBS=$ac_check_lib_save_LIBS |
40664 | fi | |
40665 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
40666 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
40667 | if test $ac_cv_lib_dl_dlerror = yes; then | |
40668 | cat >>confdefs.h <<\_ACEOF | |
40669 | #define HAVE_DLERROR 1 | |
40670 | _ACEOF | |
40671 | ||
40672 | fi | |
40673 | ||
40674 | ||
40675 | ||
40676 | fi | |
40677 | done | |
40678 | ||
40679 | fi | |
40680 | fi | |
40681 | ||
40682 | if test "$HAVE_DL_FUNCS" = 0; then | |
40683 | if test "$HAVE_SHL_FUNCS" = 0; then | |
47a7e797 | 40684 | if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then |
a848cd7e SC |
40685 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 |
40686 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
40687 | wxUSE_DYNAMIC_LOADER=no | |
40688 | wxUSE_DYNLIB_CLASS=no | |
40689 | else | |
40690 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
40691 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
40692 | fi | |
40693 | fi | |
40694 | fi | |
40695 | fi | |
40696 | fi | |
40697 | ||
40698 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
40699 | cat >>confdefs.h <<\_ACEOF | |
40700 | #define wxUSE_DYNAMIC_LOADER 1 | |
40701 | _ACEOF | |
40702 | ||
40703 | fi | |
40704 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
40705 | cat >>confdefs.h <<\_ACEOF | |
40706 | #define wxUSE_DYNLIB_CLASS 1 | |
40707 | _ACEOF | |
40708 | ||
40709 | fi | |
40710 | ||
40711 | ||
40712 | ||
40713 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
40714 | if test "$wxUSE_SHARED" = "no" ; then | |
40715 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 | |
40716 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
40717 | wxUSE_PLUGINS=no | |
40718 | fi | |
40719 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
40720 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 | |
40721 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
40722 | wxUSE_PLUGINS=no | |
40723 | fi | |
40724 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
40725 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 | |
40726 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
40727 | wxUSE_PLUGINS=no | |
40728 | fi | |
40729 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
40730 | cat >>confdefs.h <<\_ACEOF | |
40731 | #define wxUSE_PLUGINS 1 | |
40732 | _ACEOF | |
40733 | ||
40734 | fi | |
40735 | fi | |
40736 | ||
40737 | ||
40738 | if test "$wxUSE_STL" = "yes"; then | |
40739 | cat >>confdefs.h <<\_ACEOF | |
40740 | #define wxUSE_STL 1 | |
40741 | _ACEOF | |
40742 | ||
40743 | fi | |
40744 | ||
40745 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
40746 | cat >>confdefs.h <<\_ACEOF | |
40747 | #define wxUSE_APPLE_IEEE 1 | |
40748 | _ACEOF | |
40749 | ||
40750 | fi | |
40751 | ||
40752 | if test "$wxUSE_TIMER" = "yes"; then | |
40753 | cat >>confdefs.h <<\_ACEOF | |
40754 | #define wxUSE_TIMER 1 | |
40755 | _ACEOF | |
40756 | ||
40757 | fi | |
40758 | ||
9c112555 | 40759 | if test "$USE_UNIX" = "1" ; then |
d12aef51 VZ |
40760 | echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5 |
40761 | echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6 | |
40762 | if test "${ac_cv_header_sys_soundcard+set}" = set; then | |
a848cd7e | 40763 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 40764 | else |
d12aef51 VZ |
40765 | |
40766 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
40767 | /* confdefs.h. */ |
40768 | _ACEOF | |
40769 | cat confdefs.h >>conftest.$ac_ext | |
40770 | cat >>conftest.$ac_ext <<_ACEOF | |
40771 | /* end confdefs.h. */ | |
d12aef51 VZ |
40772 | |
40773 | #include <sys/soundcard.h> | |
40774 | ||
40775 | int | |
40776 | main () | |
40777 | { | |
40778 | ||
40779 | ioctl(0, SNDCTL_DSP_SYNC, 0); | |
40780 | ||
40781 | ; | |
40782 | return 0; | |
40783 | } | |
a848cd7e | 40784 | _ACEOF |
d12aef51 VZ |
40785 | rm -f conftest.$ac_objext conftest$ac_exeext |
40786 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
40787 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 40788 | ac_status=$? |
ac1cb8d3 VS |
40789 | grep -v '^ *+' conftest.er1 >conftest.err |
40790 | rm -f conftest.er1 | |
40791 | cat conftest.err >&5 | |
a848cd7e SC |
40792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40793 | (exit $ac_status); } && | |
d25774ab JS |
40794 | { ac_try='test -z "$ac_cxx_werror_flag" |
40795 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
40796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40797 | (eval $ac_try) 2>&5 | |
40798 | ac_status=$? | |
40799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40800 | (exit $ac_status); }; } && | |
d12aef51 | 40801 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
40802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40803 | (eval $ac_try) 2>&5 | |
40804 | ac_status=$? | |
40805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40806 | (exit $ac_status); }; }; then | |
d12aef51 | 40807 | ac_cv_header_sys_soundcard=yes |
a848cd7e SC |
40808 | else |
40809 | echo "$as_me: failed program was:" >&5 | |
40810 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40811 | ||
a848cd7e | 40812 | |
d12aef51 VZ |
40813 | saveLibs="$LIBS" |
40814 | LIBS="$saveLibs -lossaudio" | |
40815 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
40816 | /* confdefs.h. */ |
40817 | _ACEOF | |
40818 | cat confdefs.h >>conftest.$ac_ext | |
40819 | cat >>conftest.$ac_ext <<_ACEOF | |
40820 | /* end confdefs.h. */ | |
d12aef51 VZ |
40821 | |
40822 | #include <sys/soundcard.h> | |
40823 | ||
40824 | int | |
40825 | main () | |
40826 | { | |
40827 | ||
40828 | ioctl(0, SNDCTL_DSP_SYNC, 0); | |
40829 | ||
40830 | ; | |
40831 | return 0; | |
40832 | } | |
a848cd7e | 40833 | _ACEOF |
d12aef51 VZ |
40834 | rm -f conftest.$ac_objext conftest$ac_exeext |
40835 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
40836 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e SC |
40837 | ac_status=$? |
40838 | grep -v '^ *+' conftest.er1 >conftest.err | |
40839 | rm -f conftest.er1 | |
40840 | cat conftest.err >&5 | |
40841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d12aef51 | 40842 | (exit $ac_status); } && |
d25774ab JS |
40843 | { ac_try='test -z "$ac_cxx_werror_flag" |
40844 | || test ! -s conftest.err' | |
d12aef51 VZ |
40845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40846 | (eval $ac_try) 2>&5 | |
40847 | ac_status=$? | |
40848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40849 | (exit $ac_status); }; } && | |
40850 | { ac_try='test -s conftest$ac_exeext' | |
40851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40852 | (eval $ac_try) 2>&5 | |
40853 | ac_status=$? | |
40854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40855 | (exit $ac_status); }; }; then | |
40856 | ac_cv_header_sys_soundcard=yes | |
a848cd7e SC |
40857 | else |
40858 | echo "$as_me: failed program was:" >&5 | |
40859 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40860 | ||
a848cd7e | 40861 | |
d12aef51 VZ |
40862 | LIBS="$saveLibs" |
40863 | ac_cv_header_sys_soundcard=no | |
40864 | ||
40865 | ||
a848cd7e | 40866 | fi |
d12aef51 VZ |
40867 | rm -f conftest.err conftest.$ac_objext \ |
40868 | conftest$ac_exeext conftest.$ac_ext | |
40869 | ||
a848cd7e SC |
40870 | |
40871 | fi | |
d12aef51 VZ |
40872 | rm -f conftest.err conftest.$ac_objext \ |
40873 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40874 | |
40875 | fi | |
d12aef51 VZ |
40876 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5 |
40877 | echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6 | |
a848cd7e | 40878 | |
d12aef51 VZ |
40879 | if test "$ac_cv_header_sys_soundcard" = "yes"; then |
40880 | cat >>confdefs.h <<\_ACEOF | |
40881 | #define HAVE_SYS_SOUNDCARD_H 1 | |
40882 | _ACEOF | |
a848cd7e | 40883 | |
d12aef51 VZ |
40884 | else |
40885 | DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia" | |
40886 | fi | |
9c112555 MW |
40887 | fi |
40888 | WITH_PLUGIN_SDL=0 | |
40889 | if test "$wxUSE_SOUND" = "yes"; then | |
40890 | if test "$USE_UNIX" = "1" ; then | |
a848cd7e SC |
40891 | if test "$wxUSE_LIBSDL" != "no"; then |
40892 | ||
40893 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. | |
40894 | if test "${with_sdl_prefix+set}" = set; then | |
40895 | withval="$with_sdl_prefix" | |
40896 | sdl_prefix="$withval" | |
40897 | else | |
40898 | sdl_prefix="" | |
40899 | fi; | |
40900 | ||
40901 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. | |
40902 | if test "${with_sdl_exec_prefix+set}" = set; then | |
40903 | withval="$with_sdl_exec_prefix" | |
40904 | sdl_exec_prefix="$withval" | |
40905 | else | |
40906 | sdl_exec_prefix="" | |
40907 | fi; | |
40908 | # Check whether --enable-sdltest or --disable-sdltest was given. | |
40909 | if test "${enable_sdltest+set}" = set; then | |
40910 | enableval="$enable_sdltest" | |
40911 | ||
40912 | else | |
40913 | enable_sdltest=yes | |
40914 | fi; | |
40915 | ||
40916 | if test x$sdl_exec_prefix != x ; then | |
40917 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" | |
40918 | if test x${SDL_CONFIG+set} != xset ; then | |
40919 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
40920 | fi | |
40921 | fi | |
40922 | if test x$sdl_prefix != x ; then | |
40923 | sdl_args="$sdl_args --prefix=$sdl_prefix" | |
40924 | if test x${SDL_CONFIG+set} != xset ; then | |
40925 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
40926 | fi | |
40927 | fi | |
40928 | ||
40929 | ||
40930 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
40931 | # Extract the first word of "sdl-config", so it can be a program name with args. | |
40932 | set dummy sdl-config; ac_word=$2 | |
40933 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40934 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40935 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then | |
40936 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40937 | else | |
40938 | case $SDL_CONFIG in | |
40939 | [\\/]* | ?:[\\/]*) | |
40940 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
40941 | ;; | |
40942 | *) | |
40943 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40944 | for as_dir in $PATH | |
40945 | do | |
40946 | IFS=$as_save_IFS | |
40947 | test -z "$as_dir" && as_dir=. | |
40948 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40949 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40950 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
40951 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40952 | break 2 | |
40953 | fi | |
40954 | done | |
40955 | done | |
40956 | ||
40957 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
40958 | ;; | |
40959 | esac | |
40960 | fi | |
40961 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
40962 | ||
40963 | if test -n "$SDL_CONFIG"; then | |
40964 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 | |
40965 | echo "${ECHO_T}$SDL_CONFIG" >&6 | |
40966 | else | |
40967 | echo "$as_me:$LINENO: result: no" >&5 | |
40968 | echo "${ECHO_T}no" >&6 | |
40969 | fi | |
40970 | ||
40971 | min_sdl_version=1.2.0 | |
40972 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 | |
40973 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 | |
40974 | no_sdl="" | |
40975 | if test "$SDL_CONFIG" = "no" ; then | |
40976 | no_sdl=yes | |
40977 | else | |
40978 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
40979 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
40980 | ||
40981 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
40982 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
40983 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
40984 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
40985 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
40986 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
40987 | if test "x$enable_sdltest" = "xyes" ; then | |
40988 | ac_save_CFLAGS="$CFLAGS" | |
94acd38e | 40989 | ac_save_CXXFLAGS="$CXXFLAGS" |
a848cd7e SC |
40990 | ac_save_LIBS="$LIBS" |
40991 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 40992 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
40993 | LIBS="$LIBS $SDL_LIBS" |
40994 | rm -f conf.sdltest | |
40995 | if test "$cross_compiling" = yes; then | |
40996 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
40997 | else | |
40998 | cat >conftest.$ac_ext <<_ACEOF | |
40999 | /* confdefs.h. */ | |
41000 | _ACEOF | |
41001 | cat confdefs.h >>conftest.$ac_ext | |
41002 | cat >>conftest.$ac_ext <<_ACEOF | |
41003 | /* end confdefs.h. */ | |
41004 | ||
41005 | #include <stdio.h> | |
41006 | #include <stdlib.h> | |
41007 | #include <string.h> | |
41008 | #include "SDL.h" | |
41009 | ||
41010 | char* | |
41011 | my_strdup (char *str) | |
41012 | { | |
41013 | char *new_str; | |
41014 | ||
41015 | if (str) | |
41016 | { | |
41017 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
41018 | strcpy (new_str, str); | |
41019 | } | |
41020 | else | |
41021 | new_str = NULL; | |
41022 | ||
41023 | return new_str; | |
41024 | } | |
41025 | ||
41026 | int main (int argc, char *argv[]) | |
41027 | { | |
41028 | int major, minor, micro; | |
41029 | char *tmp_version; | |
41030 | ||
41031 | /* This hangs on some systems (?) | |
41032 | system ("touch conf.sdltest"); | |
41033 | */ | |
41034 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
41035 | ||
41036 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
41037 | tmp_version = my_strdup("$min_sdl_version"); | |
41038 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
41039 | printf("%s, bad version string\n", "$min_sdl_version"); | |
41040 | exit(1); | |
41041 | } | |
41042 | ||
41043 | if (($sdl_major_version > major) || | |
41044 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
41045 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
41046 | { | |
41047 | return 0; | |
41048 | } | |
41049 | else | |
41050 | { | |
41051 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
41052 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
41053 | printf("*** best to upgrade to the required version.\n"); | |
41054 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
41055 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
41056 | printf("*** config.cache before re-running configure\n"); | |
41057 | return 1; | |
41058 | } | |
41059 | } | |
41060 | ||
41061 | ||
41062 | _ACEOF | |
41063 | rm -f conftest$ac_exeext | |
41064 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
41065 | (eval $ac_link) 2>&5 | |
41066 | ac_status=$? | |
41067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41068 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
41069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
41070 | (eval $ac_try) 2>&5 | |
41071 | ac_status=$? | |
41072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41073 | (exit $ac_status); }; }; then | |
41074 | : | |
41075 | else | |
41076 | echo "$as_me: program exited with status $ac_status" >&5 | |
41077 | echo "$as_me: failed program was:" >&5 | |
41078 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41079 | ||
41080 | ( exit $ac_status ) | |
41081 | no_sdl=yes | |
41082 | fi | |
ac1cb8d3 | 41083 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41084 | fi |
41085 | CFLAGS="$ac_save_CFLAGS" | |
94acd38e | 41086 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
41087 | LIBS="$ac_save_LIBS" |
41088 | fi | |
41089 | fi | |
41090 | if test "x$no_sdl" = x ; then | |
41091 | echo "$as_me:$LINENO: result: yes" >&5 | |
41092 | echo "${ECHO_T}yes" >&6 | |
41093 | ||
41094 | EXTRALIBS_SDL="$SDL_LIBS" | |
c92ad099 | 41095 | CXXFLAGS="$SDL_CFLAGS $CXXFLAGS" |
a848cd7e SC |
41096 | cat >>confdefs.h <<\_ACEOF |
41097 | #define wxUSE_LIBSDL 1 | |
41098 | _ACEOF | |
41099 | ||
41100 | ||
41101 | else | |
41102 | echo "$as_me:$LINENO: result: no" >&5 | |
41103 | echo "${ECHO_T}no" >&6 | |
41104 | if test "$SDL_CONFIG" = "no" ; then | |
41105 | echo "*** The sdl-config script installed by SDL could not be found" | |
41106 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
41107 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
41108 | echo "*** full path to sdl-config." | |
41109 | else | |
41110 | if test -f conf.sdltest ; then | |
41111 | : | |
41112 | else | |
41113 | echo "*** Could not run SDL test program, checking why..." | |
41114 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 41115 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
41116 | LIBS="$LIBS $SDL_LIBS" |
41117 | cat >conftest.$ac_ext <<_ACEOF | |
41118 | /* confdefs.h. */ | |
41119 | _ACEOF | |
41120 | cat confdefs.h >>conftest.$ac_ext | |
41121 | cat >>conftest.$ac_ext <<_ACEOF | |
41122 | /* end confdefs.h. */ | |
41123 | ||
41124 | #include <stdio.h> | |
41125 | #include "SDL.h" | |
41126 | ||
41127 | int main(int argc, char *argv[]) | |
41128 | { return 0; } | |
41129 | #undef main | |
41130 | #define main K_and_R_C_main | |
41131 | ||
41132 | int | |
41133 | main () | |
41134 | { | |
41135 | return 0; | |
41136 | ; | |
41137 | return 0; | |
41138 | } | |
41139 | _ACEOF | |
41140 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41141 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 41142 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 41143 | ac_status=$? |
ac1cb8d3 VS |
41144 | grep -v '^ *+' conftest.er1 >conftest.err |
41145 | rm -f conftest.er1 | |
41146 | cat conftest.err >&5 | |
a848cd7e SC |
41147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41148 | (exit $ac_status); } && | |
d25774ab JS |
41149 | { ac_try='test -z "$ac_cxx_werror_flag" |
41150 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41152 | (eval $ac_try) 2>&5 | |
41153 | ac_status=$? | |
41154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41155 | (exit $ac_status); }; } && | |
41156 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
41157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41158 | (eval $ac_try) 2>&5 | |
41159 | ac_status=$? | |
41160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41161 | (exit $ac_status); }; }; then | |
41162 | echo "*** The test program compiled, but did not run. This usually means" | |
41163 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
41164 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
41165 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
41166 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
41167 | echo "*** is required on your system" | |
41168 | echo "***" | |
41169 | echo "*** If you have an old version installed, it is best to remove it, although" | |
41170 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
41171 | else | |
41172 | echo "$as_me: failed program was:" >&5 | |
41173 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41174 | ||
41175 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
41176 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
41177 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
41178 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
41179 | fi | |
ac1cb8d3 VS |
41180 | rm -f conftest.err conftest.$ac_objext \ |
41181 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e | 41182 | CFLAGS="$ac_save_CFLAGS" |
94acd38e | 41183 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
41184 | LIBS="$ac_save_LIBS" |
41185 | fi | |
41186 | fi | |
41187 | SDL_CFLAGS="" | |
41188 | SDL_LIBS="" | |
41189 | wxUSE_LIBSDL="no" | |
41190 | fi | |
41191 | ||
41192 | ||
41193 | rm -f conf.sdltest | |
41194 | ||
41195 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
41196 | WITH_PLUGIN_SDL=1 | |
41197 | fi | |
41198 | fi | |
41199 | fi | |
41200 | ||
41201 | cat >>confdefs.h <<\_ACEOF | |
41202 | #define wxUSE_SOUND 1 | |
41203 | _ACEOF | |
41204 | ||
41205 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
41206 | fi | |
41207 | ||
d1c38808 VZ |
41208 | if test "$WXGTK20" = 1; then |
41209 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
41210 | if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then | |
41211 | ||
41212 | ||
41213 | succeeded=no | |
41214 | ||
41215 | if test -z "$PKG_CONFIG"; then | |
41216 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
41217 | set dummy pkg-config; ac_word=$2 | |
41218 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41219 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41220 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
41221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41222 | else | |
41223 | case $PKG_CONFIG in | |
41224 | [\\/]* | ?:[\\/]*) | |
41225 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
41226 | ;; | |
41227 | *) | |
41228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41229 | for as_dir in $PATH | |
41230 | do | |
41231 | IFS=$as_save_IFS | |
41232 | test -z "$as_dir" && as_dir=. | |
41233 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41234 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41235 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
41236 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41237 | break 2 | |
41238 | fi | |
41239 | done | |
41240 | done | |
41241 | ||
41242 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
41243 | ;; | |
41244 | esac | |
41245 | fi | |
41246 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
41247 | ||
41248 | if test -n "$PKG_CONFIG"; then | |
41249 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
41250 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
41251 | else | |
41252 | echo "$as_me:$LINENO: result: no" >&5 | |
41253 | echo "${ECHO_T}no" >&6 | |
41254 | fi | |
41255 | ||
41256 | fi | |
41257 | ||
41258 | if test "$PKG_CONFIG" = "no" ; then | |
41259 | echo "*** The pkg-config script could not be found. Make sure it is" | |
41260 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
41261 | echo "*** to the full path to pkg-config." | |
41262 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
41263 | else | |
41264 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
41265 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
ffa762ff VS |
41266 | echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5 |
41267 | echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6 | |
d1c38808 | 41268 | |
ffa762ff | 41269 | if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then |
d1c38808 VZ |
41270 | echo "$as_me:$LINENO: result: yes" >&5 |
41271 | echo "${ECHO_T}yes" >&6 | |
41272 | succeeded=yes | |
41273 | ||
41274 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5 | |
41275 | echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6 | |
ffa762ff | 41276 | LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
41277 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5 |
41278 | echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6 | |
41279 | ||
41280 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5 | |
41281 | echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6 | |
ffa762ff | 41282 | LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
41283 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5 |
41284 | echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6 | |
41285 | else | |
41286 | LIBGNOMEPRINTUI_CFLAGS="" | |
41287 | LIBGNOMEPRINTUI_LIBS="" | |
41288 | ## If we have a custom action on failure, don't print errors, but | |
41289 | ## do set a variable so people can do so. | |
ffa762ff | 41290 | LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
41291 | |
41292 | fi | |
41293 | ||
41294 | ||
41295 | ||
41296 | else | |
41297 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
41298 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
41299 | fi | |
41300 | fi | |
41301 | ||
41302 | if test $succeeded = yes; then | |
41303 | ||
c92ad099 | 41304 | CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS" |
d1c38808 VZ |
41305 | cat >>confdefs.h <<\_ACEOF |
41306 | #define wxUSE_LIBGNOMEPRINT 1 | |
41307 | _ACEOF | |
41308 | ||
41309 | ||
41310 | else | |
41311 | ||
41312 | { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5 | |
41313 | echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;} | |
41314 | wxUSE_LIBGNOMEPRINT="no" | |
41315 | ||
41316 | ||
41317 | fi | |
41318 | ||
41319 | fi | |
41320 | fi | |
41321 | fi | |
41322 | ||
2b850ae1 RR |
41323 | if test "$WXGTK20" = 1; then |
41324 | if test "$wxUSE_MIMETYPE" = "yes" ; then | |
41325 | if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then | |
41326 | ||
41327 | ||
41328 | succeeded=no | |
41329 | ||
41330 | if test -z "$PKG_CONFIG"; then | |
41331 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
41332 | set dummy pkg-config; ac_word=$2 | |
41333 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41334 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41335 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
41336 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41337 | else | |
41338 | case $PKG_CONFIG in | |
41339 | [\\/]* | ?:[\\/]*) | |
41340 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
41341 | ;; | |
41342 | *) | |
41343 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41344 | for as_dir in $PATH | |
41345 | do | |
41346 | IFS=$as_save_IFS | |
41347 | test -z "$as_dir" && as_dir=. | |
41348 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41349 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41350 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
41351 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41352 | break 2 | |
41353 | fi | |
41354 | done | |
41355 | done | |
41356 | ||
41357 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
41358 | ;; | |
41359 | esac | |
41360 | fi | |
41361 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
41362 | ||
41363 | if test -n "$PKG_CONFIG"; then | |
41364 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
41365 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
41366 | else | |
41367 | echo "$as_me:$LINENO: result: no" >&5 | |
41368 | echo "${ECHO_T}no" >&6 | |
41369 | fi | |
41370 | ||
41371 | fi | |
41372 | ||
41373 | if test "$PKG_CONFIG" = "no" ; then | |
41374 | echo "*** The pkg-config script could not be found. Make sure it is" | |
41375 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
41376 | echo "*** to the full path to pkg-config." | |
41377 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
41378 | else | |
41379 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
41380 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
41381 | echo "$as_me:$LINENO: checking for gnome-vfs-2.0 >= 2.0" >&5 | |
41382 | echo $ECHO_N "checking for gnome-vfs-2.0 >= 2.0... $ECHO_C" >&6 | |
41383 | ||
41384 | if $PKG_CONFIG --exists "gnome-vfs-2.0 >= 2.0" ; then | |
41385 | echo "$as_me:$LINENO: result: yes" >&5 | |
41386 | echo "${ECHO_T}yes" >&6 | |
41387 | succeeded=yes | |
41388 | ||
41389 | echo "$as_me:$LINENO: checking GNOMEVFS_CFLAGS" >&5 | |
41390 | echo $ECHO_N "checking GNOMEVFS_CFLAGS... $ECHO_C" >&6 | |
41391 | GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0"` | |
41392 | echo "$as_me:$LINENO: result: $GNOMEVFS_CFLAGS" >&5 | |
41393 | echo "${ECHO_T}$GNOMEVFS_CFLAGS" >&6 | |
41394 | ||
41395 | echo "$as_me:$LINENO: checking GNOMEVFS_LIBS" >&5 | |
41396 | echo $ECHO_N "checking GNOMEVFS_LIBS... $ECHO_C" >&6 | |
41397 | GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0"` | |
41398 | echo "$as_me:$LINENO: result: $GNOMEVFS_LIBS" >&5 | |
41399 | echo "${ECHO_T}$GNOMEVFS_LIBS" >&6 | |
41400 | else | |
41401 | GNOMEVFS_CFLAGS="" | |
41402 | GNOMEVFS_LIBS="" | |
41403 | ## If we have a custom action on failure, don't print errors, but | |
41404 | ## do set a variable so people can do so. | |
41405 | GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"` | |
41406 | ||
41407 | fi | |
41408 | ||
41409 | ||
41410 | ||
41411 | else | |
41412 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
41413 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
41414 | fi | |
41415 | fi | |
41416 | ||
41417 | if test $succeeded = yes; then | |
41418 | ||
41419 | CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS" | |
41420 | cat >>confdefs.h <<\_ACEOF | |
41421 | #define wxUSE_LIBGNOMEVFS 1 | |
41422 | _ACEOF | |
41423 | ||
41424 | ||
41425 | else | |
41426 | ||
41427 | { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5 | |
41428 | echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;} | |
41429 | wxUSE_LIBGNOMEVFS="no" | |
41430 | ||
41431 | ||
41432 | fi | |
41433 | ||
41434 | fi | |
41435 | fi | |
41436 | fi | |
41437 | ||
3565d135 RR |
41438 | if test "$WXGTK20" = 1; then |
41439 | if test "$wxUSE_LIBHILDON" = "yes" ; then | |
41440 | ||
41441 | succeeded=no | |
41442 | ||
41443 | if test -z "$PKG_CONFIG"; then | |
41444 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
41445 | set dummy pkg-config; ac_word=$2 | |
41446 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
41447 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
41448 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
41449 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41450 | else | |
41451 | case $PKG_CONFIG in | |
41452 | [\\/]* | ?:[\\/]*) | |
41453 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
41454 | ;; | |
41455 | *) | |
41456 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
41457 | for as_dir in $PATH | |
41458 | do | |
41459 | IFS=$as_save_IFS | |
41460 | test -z "$as_dir" && as_dir=. | |
41461 | for ac_exec_ext in '' $ac_executable_extensions; do | |
41462 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
41463 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
41464 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
41465 | break 2 | |
41466 | fi | |
41467 | done | |
41468 | done | |
41469 | ||
41470 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
41471 | ;; | |
41472 | esac | |
41473 | fi | |
41474 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
41475 | ||
41476 | if test -n "$PKG_CONFIG"; then | |
41477 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
41478 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
41479 | else | |
41480 | echo "$as_me:$LINENO: result: no" >&5 | |
41481 | echo "${ECHO_T}no" >&6 | |
41482 | fi | |
41483 | ||
41484 | fi | |
41485 | ||
41486 | if test "$PKG_CONFIG" = "no" ; then | |
41487 | echo "*** The pkg-config script could not be found. Make sure it is" | |
41488 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
41489 | echo "*** to the full path to pkg-config." | |
41490 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
41491 | else | |
41492 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
41493 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
41494 | echo "$as_me:$LINENO: checking for hildon-lgpl >= 0.9" >&5 | |
41495 | echo $ECHO_N "checking for hildon-lgpl >= 0.9... $ECHO_C" >&6 | |
41496 | ||
41497 | if $PKG_CONFIG --exists "hildon-lgpl >= 0.9" ; then | |
41498 | echo "$as_me:$LINENO: result: yes" >&5 | |
41499 | echo "${ECHO_T}yes" >&6 | |
41500 | succeeded=yes | |
41501 | ||
41502 | echo "$as_me:$LINENO: checking HILDON_CFLAGS" >&5 | |
41503 | echo $ECHO_N "checking HILDON_CFLAGS... $ECHO_C" >&6 | |
41504 | HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9"` | |
41505 | echo "$as_me:$LINENO: result: $HILDON_CFLAGS" >&5 | |
41506 | echo "${ECHO_T}$HILDON_CFLAGS" >&6 | |
41507 | ||
41508 | echo "$as_me:$LINENO: checking HILDON_LIBS" >&5 | |
41509 | echo $ECHO_N "checking HILDON_LIBS... $ECHO_C" >&6 | |
41510 | HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9"` | |
41511 | echo "$as_me:$LINENO: result: $HILDON_LIBS" >&5 | |
41512 | echo "${ECHO_T}$HILDON_LIBS" >&6 | |
41513 | else | |
41514 | HILDON_CFLAGS="" | |
41515 | HILDON_LIBS="" | |
41516 | ## If we have a custom action on failure, don't print errors, but | |
41517 | ## do set a variable so people can do so. | |
41518 | HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"` | |
41519 | ||
41520 | fi | |
41521 | ||
41522 | ||
41523 | ||
41524 | else | |
41525 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
41526 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
41527 | fi | |
41528 | fi | |
41529 | ||
41530 | if test $succeeded = yes; then | |
41531 | ||
41532 | EXTRALIBS_HILDON="$HILDON_LIBS" | |
41533 | CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS" | |
41534 | cat >>confdefs.h <<\_ACEOF | |
41535 | #define wxUSE_LIBHILDON 1 | |
41536 | _ACEOF | |
41537 | ||
41538 | ||
41539 | else | |
41540 | ||
41541 | { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5 | |
41542 | echo "$as_me: WARNING: libhildon_lgpl not found" >&2;} | |
41543 | wxUSE_LIBHILDON="no" | |
41544 | ||
41545 | ||
41546 | fi | |
41547 | ||
41548 | fi | |
41549 | fi | |
d1c38808 | 41550 | |
a848cd7e SC |
41551 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
41552 | cat >>confdefs.h <<\_ACEOF | |
41553 | #define wxUSE_CMDLINE_PARSER 1 | |
41554 | _ACEOF | |
41555 | ||
41556 | fi | |
41557 | ||
41558 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
41559 | cat >>confdefs.h <<\_ACEOF | |
41560 | #define wxUSE_STOPWATCH 1 | |
41561 | _ACEOF | |
41562 | ||
41563 | fi | |
41564 | ||
41565 | if test "$wxUSE_DATETIME" = "yes"; then | |
41566 | cat >>confdefs.h <<\_ACEOF | |
41567 | #define wxUSE_DATETIME 1 | |
41568 | _ACEOF | |
41569 | ||
41570 | fi | |
41571 | ||
41572 | if test "$wxUSE_FILE" = "yes"; then | |
41573 | cat >>confdefs.h <<\_ACEOF | |
41574 | #define wxUSE_FILE 1 | |
41575 | _ACEOF | |
41576 | ||
41577 | fi | |
41578 | ||
41579 | if test "$wxUSE_FFILE" = "yes"; then | |
41580 | cat >>confdefs.h <<\_ACEOF | |
41581 | #define wxUSE_FFILE 1 | |
41582 | _ACEOF | |
41583 | ||
41584 | fi | |
41585 | ||
41586 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
41587 | cat >>confdefs.h <<\_ACEOF | |
41588 | #define wxUSE_FILESYSTEM 1 | |
41589 | _ACEOF | |
41590 | ||
41591 | fi | |
41592 | ||
41593 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
41594 | cat >>confdefs.h <<\_ACEOF | |
41595 | #define wxUSE_FS_ZIP 1 | |
41596 | _ACEOF | |
41597 | ||
41598 | fi | |
41599 | ||
9e8e867f | 41600 | if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then |
a848cd7e | 41601 | cat >>confdefs.h <<\_ACEOF |
9e8e867f | 41602 | #define wxUSE_ARCHIVE_STREAMS 1 |
81f90336 MW |
41603 | _ACEOF |
41604 | ||
41605 | fi | |
41606 | ||
41607 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
9e8e867f | 41608 | if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then |
81f90336 MW |
41609 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5 |
41610 | echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;} | |
41611 | elif test "$wxUSE_ZLIB" = "no"; then | |
41612 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5 | |
41613 | echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;} | |
41614 | else | |
41615 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
41616 | #define wxUSE_ZIPSTREAM 1 |
41617 | _ACEOF | |
41618 | ||
81f90336 | 41619 | fi |
a848cd7e SC |
41620 | fi |
41621 | ||
a848cd7e | 41622 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
18228ab4 MW |
41623 | if test "$USE_UNIX" != 1; then |
41624 | { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5 | |
41625 | echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;} | |
41626 | wxUSE_ON_FATAL_EXCEPTION=no | |
41627 | else | |
41628 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
41629 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
41630 | _ACEOF | |
41631 | ||
18228ab4 | 41632 | fi |
a848cd7e SC |
41633 | fi |
41634 | ||
eaff0f0d VZ |
41635 | if test "$wxUSE_STACKWALKER" = "yes"; then |
41636 | cat >>confdefs.h <<\_ACEOF | |
41637 | #define wxUSE_STACKWALKER 1 | |
41638 | _ACEOF | |
41639 | ||
41640 | fi | |
41641 | ||
36b6448c | 41642 | if test "$wxUSE_DEBUGREPORT" = "yes"; then |
18228ab4 MW |
41643 | if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then |
41644 | { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5 | |
41645 | echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;} | |
dfe0c803 JS |
41646 | wxUSE_DEBUGREPORT=no |
41647 | else | |
41648 | cat >>confdefs.h <<\_ACEOF | |
36b6448c VZ |
41649 | #define wxUSE_DEBUGREPORT 1 |
41650 | _ACEOF | |
41651 | ||
21dfc162 MW |
41652 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
41653 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt" | |
41654 | fi | |
dfe0c803 | 41655 | fi |
36b6448c VZ |
41656 | fi |
41657 | ||
a848cd7e SC |
41658 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
41659 | cat >>confdefs.h <<\_ACEOF | |
41660 | #define wxUSE_SNGLINST_CHECKER 1 | |
41661 | _ACEOF | |
41662 | ||
41663 | fi | |
41664 | ||
41665 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
41666 | cat >>confdefs.h <<\_ACEOF | |
41667 | #define wxUSE_BUSYINFO 1 | |
41668 | _ACEOF | |
41669 | ||
41670 | fi | |
41671 | ||
41672 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
41673 | cat >>confdefs.h <<\_ACEOF | |
41674 | #define wxUSE_STD_IOSTREAM 1 | |
41675 | _ACEOF | |
41676 | ||
41677 | fi | |
41678 | ||
59746b65 MW |
41679 | if test "$wxUSE_STD_STRING" = "yes"; then |
41680 | cat >>confdefs.h <<\_ACEOF | |
41681 | #define wxUSE_STD_STRING 1 | |
41682 | _ACEOF | |
41683 | ||
41684 | fi | |
41685 | ||
07158944 VZ |
41686 | if test "$wxUSE_STDPATHS" = "yes"; then |
41687 | cat >>confdefs.h <<\_ACEOF | |
41688 | #define wxUSE_STDPATHS 1 | |
41689 | _ACEOF | |
41690 | ||
41691 | fi | |
41692 | ||
a848cd7e SC |
41693 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
41694 | cat >>confdefs.h <<\_ACEOF | |
41695 | #define wxUSE_TEXTBUFFER 1 | |
41696 | _ACEOF | |
41697 | ||
41698 | fi | |
41699 | ||
41700 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
41701 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
41702 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
41703 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
41704 | else | |
41705 | cat >>confdefs.h <<\_ACEOF | |
41706 | #define wxUSE_TEXTFILE 1 | |
41707 | _ACEOF | |
41708 | ||
41709 | fi | |
41710 | fi | |
41711 | ||
41712 | if test "$wxUSE_CONFIG" = "yes" ; then | |
41713 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
41714 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
41715 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
41716 | else | |
41717 | cat >>confdefs.h <<\_ACEOF | |
41718 | #define wxUSE_CONFIG 1 | |
89be85c2 VS |
41719 | _ACEOF |
41720 | ||
41721 | cat >>confdefs.h <<\_ACEOF | |
41722 | #define wxUSE_CONFIG_NATIVE 1 | |
a848cd7e SC |
41723 | _ACEOF |
41724 | ||
41725 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
41726 | fi | |
41727 | fi | |
41728 | ||
41729 | if test "$wxUSE_INTL" = "yes" ; then | |
41730 | if test "$wxUSE_FILE" != "yes"; then | |
41731 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
41732 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
41733 | else | |
41734 | cat >>confdefs.h <<\_ACEOF | |
41735 | #define wxUSE_INTL 1 | |
41736 | _ACEOF | |
41737 | ||
41738 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
41739 | GUIDIST="$GUIDIST INTL_DIST" | |
41740 | fi | |
41741 | fi | |
41742 | ||
41743 | if test "$wxUSE_LOG" = "yes"; then | |
41744 | cat >>confdefs.h <<\_ACEOF | |
41745 | #define wxUSE_LOG 1 | |
41746 | _ACEOF | |
41747 | ||
41748 | ||
41749 | if test "$wxUSE_LOGGUI" = "yes"; then | |
41750 | cat >>confdefs.h <<\_ACEOF | |
41751 | #define wxUSE_LOGGUI 1 | |
41752 | _ACEOF | |
41753 | ||
41754 | fi | |
41755 | ||
41756 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
41757 | cat >>confdefs.h <<\_ACEOF | |
41758 | #define wxUSE_LOGWINDOW 1 | |
41759 | _ACEOF | |
41760 | ||
41761 | fi | |
41762 | ||
41763 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
41764 | cat >>confdefs.h <<\_ACEOF | |
41765 | #define wxUSE_LOG_DIALOG 1 | |
41766 | _ACEOF | |
41767 | ||
41768 | fi | |
0b78747f MW |
41769 | |
41770 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard" | |
a848cd7e SC |
41771 | fi |
41772 | ||
41773 | if test "$wxUSE_LONGLONG" = "yes"; then | |
41774 | cat >>confdefs.h <<\_ACEOF | |
41775 | #define wxUSE_LONGLONG 1 | |
41776 | _ACEOF | |
41777 | ||
41778 | fi | |
41779 | ||
41780 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
41781 | cat >>confdefs.h <<\_ACEOF | |
41782 | #define wxUSE_GEOMETRY 1 | |
41783 | _ACEOF | |
41784 | ||
41785 | fi | |
41786 | ||
a848cd7e SC |
41787 | if test "$wxUSE_STREAMS" = "yes" ; then |
41788 | cat >>confdefs.h <<\_ACEOF | |
41789 | #define wxUSE_STREAMS 1 | |
41790 | _ACEOF | |
41791 | ||
41792 | fi | |
41793 | ||
41794 | ||
41795 | if test "$wxUSE_DATETIME" = "yes"; then | |
41796 | ||
41797 | for ac_func in strptime | |
41798 | do | |
41799 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
41800 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
41801 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
41802 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
41803 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41804 | else | |
41805 | cat >conftest.$ac_ext <<_ACEOF | |
41806 | /* confdefs.h. */ | |
41807 | _ACEOF | |
41808 | cat confdefs.h >>conftest.$ac_ext | |
41809 | cat >>conftest.$ac_ext <<_ACEOF | |
41810 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
41811 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
41812 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
41813 | #define $ac_func innocuous_$ac_func | |
41814 | ||
a848cd7e SC |
41815 | /* System header to define __stub macros and hopefully few prototypes, |
41816 | which can conflict with char $ac_func (); below. | |
41817 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
41818 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 41819 | |
a848cd7e SC |
41820 | #ifdef __STDC__ |
41821 | # include <limits.h> | |
41822 | #else | |
41823 | # include <assert.h> | |
41824 | #endif | |
ac1cb8d3 VS |
41825 | |
41826 | #undef $ac_func | |
41827 | ||
a848cd7e SC |
41828 | /* Override any gcc2 internal prototype to avoid an error. */ |
41829 | #ifdef __cplusplus | |
41830 | extern "C" | |
41831 | { | |
41832 | #endif | |
41833 | /* We use char because int might match the return type of a gcc2 | |
41834 | builtin and then its argument prototype would still apply. */ | |
41835 | char $ac_func (); | |
41836 | /* The GNU C library defines this for functions which it implements | |
41837 | to always fail with ENOSYS. Some functions are actually named | |
41838 | something starting with __ and the normal name is an alias. */ | |
41839 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
41840 | choke me | |
41841 | #else | |
41842 | char (*f) () = $ac_func; | |
41843 | #endif | |
41844 | #ifdef __cplusplus | |
41845 | } | |
41846 | #endif | |
41847 | ||
41848 | int | |
41849 | main () | |
41850 | { | |
41851 | return f != $ac_func; | |
41852 | ; | |
41853 | return 0; | |
41854 | } | |
41855 | _ACEOF | |
41856 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41857 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 41858 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 41859 | ac_status=$? |
ac1cb8d3 VS |
41860 | grep -v '^ *+' conftest.er1 >conftest.err |
41861 | rm -f conftest.er1 | |
41862 | cat conftest.err >&5 | |
a848cd7e SC |
41863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41864 | (exit $ac_status); } && | |
d25774ab JS |
41865 | { ac_try='test -z "$ac_cxx_werror_flag" |
41866 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41868 | (eval $ac_try) 2>&5 | |
41869 | ac_status=$? | |
41870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41871 | (exit $ac_status); }; } && | |
41872 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
41873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41874 | (eval $ac_try) 2>&5 | |
41875 | ac_status=$? | |
41876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41877 | (exit $ac_status); }; }; then | |
41878 | eval "$as_ac_var=yes" | |
41879 | else | |
41880 | echo "$as_me: failed program was:" >&5 | |
41881 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41882 | ||
41883 | eval "$as_ac_var=no" | |
41884 | fi | |
ac1cb8d3 VS |
41885 | rm -f conftest.err conftest.$ac_objext \ |
41886 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
41887 | fi |
41888 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
41889 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
41890 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
41891 | cat >>confdefs.h <<_ACEOF | |
41892 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
41893 | _ACEOF | |
41894 | ||
41895 | fi | |
41896 | done | |
41897 | ||
f536f005 VZ |
41898 | if test "$ac_cv_func_strptime" = "yes"; then |
41899 | echo "$as_me:$LINENO: checking for strptime declaration" >&5 | |
41900 | echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6 | |
41901 | if test "${wx_cv_func_strptime_decl+set}" = set; then | |
41902 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41903 | else | |
41904 | ||
f536f005 VZ |
41905 | cat >conftest.$ac_ext <<_ACEOF |
41906 | /* confdefs.h. */ | |
41907 | _ACEOF | |
41908 | cat confdefs.h >>conftest.$ac_ext | |
41909 | cat >>conftest.$ac_ext <<_ACEOF | |
41910 | /* end confdefs.h. */ | |
41911 | ||
41912 | #include <time.h> | |
41913 | ||
41914 | int | |
41915 | main () | |
41916 | { | |
41917 | ||
41918 | struct tm t; | |
41919 | strptime("foo", "bar", &t); | |
41920 | ||
41921 | ; | |
41922 | return 0; | |
41923 | } | |
41924 | _ACEOF | |
41925 | rm -f conftest.$ac_objext | |
41926 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
41927 | (eval $ac_compile) 2>conftest.er1 | |
41928 | ac_status=$? | |
41929 | grep -v '^ *+' conftest.er1 >conftest.err | |
41930 | rm -f conftest.er1 | |
41931 | cat conftest.err >&5 | |
41932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41933 | (exit $ac_status); } && | |
d25774ab JS |
41934 | { ac_try='test -z "$ac_cxx_werror_flag" |
41935 | || test ! -s conftest.err' | |
f536f005 VZ |
41936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41937 | (eval $ac_try) 2>&5 | |
41938 | ac_status=$? | |
41939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41940 | (exit $ac_status); }; } && | |
41941 | { ac_try='test -s conftest.$ac_objext' | |
41942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
41943 | (eval $ac_try) 2>&5 | |
41944 | ac_status=$? | |
41945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41946 | (exit $ac_status); }; }; then | |
41947 | wx_cv_func_strptime_decl=yes | |
41948 | else | |
41949 | echo "$as_me: failed program was:" >&5 | |
41950 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41951 | ||
41952 | wx_cv_func_strptime_decl=no | |
41953 | ||
41954 | fi | |
41955 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
f536f005 VZ |
41956 | |
41957 | ||
41958 | fi | |
41959 | echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5 | |
41960 | echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6 | |
41961 | fi | |
41962 | if test "$wx_cv_func_strptime_decl" = "yes"; then | |
41963 | cat >>confdefs.h <<\_ACEOF | |
41964 | #define HAVE_STRPTIME_DECL 1 | |
41965 | _ACEOF | |
41966 | ||
41967 | fi | |
a848cd7e SC |
41968 | |
41969 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
41970 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
41971 | if test "${wx_cv_var_timezone+set}" = set; then | |
41972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41973 | else | |
41974 | ||
41975 | cat >conftest.$ac_ext <<_ACEOF | |
41976 | /* confdefs.h. */ | |
41977 | _ACEOF | |
41978 | cat confdefs.h >>conftest.$ac_ext | |
41979 | cat >>conftest.$ac_ext <<_ACEOF | |
41980 | /* end confdefs.h. */ | |
41981 | ||
41982 | #include <time.h> | |
41983 | ||
41984 | int | |
41985 | main () | |
41986 | { | |
41987 | ||
41988 | int tz; | |
41989 | tz = timezone; | |
41990 | ||
41991 | ; | |
41992 | return 0; | |
41993 | } | |
41994 | _ACEOF | |
41995 | rm -f conftest.$ac_objext | |
41996 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41997 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41998 | ac_status=$? |
ac1cb8d3 VS |
41999 | grep -v '^ *+' conftest.er1 >conftest.err |
42000 | rm -f conftest.er1 | |
42001 | cat conftest.err >&5 | |
a848cd7e SC |
42002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42003 | (exit $ac_status); } && | |
d25774ab JS |
42004 | { ac_try='test -z "$ac_cxx_werror_flag" |
42005 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42007 | (eval $ac_try) 2>&5 | |
42008 | ac_status=$? | |
42009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42010 | (exit $ac_status); }; } && | |
42011 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42013 | (eval $ac_try) 2>&5 | |
42014 | ac_status=$? | |
42015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42016 | (exit $ac_status); }; }; then | |
42017 | ||
42018 | wx_cv_var_timezone=timezone | |
42019 | ||
42020 | else | |
42021 | echo "$as_me: failed program was:" >&5 | |
42022 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42023 | ||
42024 | ||
42025 | cat >conftest.$ac_ext <<_ACEOF | |
42026 | /* confdefs.h. */ | |
42027 | _ACEOF | |
42028 | cat confdefs.h >>conftest.$ac_ext | |
42029 | cat >>conftest.$ac_ext <<_ACEOF | |
42030 | /* end confdefs.h. */ | |
42031 | ||
42032 | #include <time.h> | |
42033 | ||
42034 | int | |
42035 | main () | |
42036 | { | |
42037 | ||
42038 | int tz; | |
42039 | tz = _timezone; | |
42040 | ||
42041 | ; | |
42042 | return 0; | |
42043 | } | |
42044 | _ACEOF | |
42045 | rm -f conftest.$ac_objext | |
42046 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42047 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42048 | ac_status=$? |
ac1cb8d3 VS |
42049 | grep -v '^ *+' conftest.er1 >conftest.err |
42050 | rm -f conftest.er1 | |
42051 | cat conftest.err >&5 | |
a848cd7e SC |
42052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42053 | (exit $ac_status); } && | |
d25774ab JS |
42054 | { ac_try='test -z "$ac_cxx_werror_flag" |
42055 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42057 | (eval $ac_try) 2>&5 | |
42058 | ac_status=$? | |
42059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42060 | (exit $ac_status); }; } && | |
42061 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42063 | (eval $ac_try) 2>&5 | |
42064 | ac_status=$? | |
42065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42066 | (exit $ac_status); }; }; then | |
42067 | ||
42068 | wx_cv_var_timezone=_timezone | |
42069 | ||
42070 | else | |
42071 | echo "$as_me: failed program was:" >&5 | |
42072 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42073 | ||
42074 | ||
42075 | cat >conftest.$ac_ext <<_ACEOF | |
42076 | /* confdefs.h. */ | |
42077 | _ACEOF | |
42078 | cat confdefs.h >>conftest.$ac_ext | |
42079 | cat >>conftest.$ac_ext <<_ACEOF | |
42080 | /* end confdefs.h. */ | |
42081 | ||
42082 | #include <time.h> | |
42083 | ||
42084 | int | |
42085 | main () | |
42086 | { | |
42087 | ||
42088 | int tz; | |
42089 | tz = __timezone; | |
42090 | ||
42091 | ; | |
42092 | return 0; | |
42093 | } | |
42094 | _ACEOF | |
42095 | rm -f conftest.$ac_objext | |
42096 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42097 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42098 | ac_status=$? |
ac1cb8d3 VS |
42099 | grep -v '^ *+' conftest.er1 >conftest.err |
42100 | rm -f conftest.er1 | |
42101 | cat conftest.err >&5 | |
a848cd7e SC |
42102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42103 | (exit $ac_status); } && | |
d25774ab JS |
42104 | { ac_try='test -z "$ac_cxx_werror_flag" |
42105 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42107 | (eval $ac_try) 2>&5 | |
42108 | ac_status=$? | |
42109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42110 | (exit $ac_status); }; } && | |
42111 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42113 | (eval $ac_try) 2>&5 | |
42114 | ac_status=$? | |
42115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42116 | (exit $ac_status); }; }; then | |
42117 | ||
42118 | wx_cv_var_timezone=__timezone | |
42119 | ||
42120 | else | |
42121 | echo "$as_me: failed program was:" >&5 | |
42122 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42123 | ||
42124 | ||
42125 | if test "$USE_DOS" = 0 ; then | |
42126 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
42127 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
42128 | fi | |
42129 | ||
42130 | ||
42131 | fi | |
ac1cb8d3 | 42132 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42133 | |
42134 | ||
42135 | fi | |
ac1cb8d3 | 42136 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42137 | |
42138 | ||
42139 | fi | |
ac1cb8d3 | 42140 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42141 | |
42142 | ||
42143 | fi | |
42144 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
42145 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
42146 | ||
42147 | if test "x$wx_cv_var_timezone" != x ; then | |
42148 | cat >>confdefs.h <<_ACEOF | |
42149 | #define WX_TIMEZONE $wx_cv_var_timezone | |
42150 | _ACEOF | |
42151 | ||
42152 | fi | |
42153 | ||
42154 | ||
42155 | for ac_func in localtime | |
42156 | do | |
42157 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
42158 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
42159 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
42160 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
42161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42162 | else | |
42163 | cat >conftest.$ac_ext <<_ACEOF | |
42164 | /* confdefs.h. */ | |
42165 | _ACEOF | |
42166 | cat confdefs.h >>conftest.$ac_ext | |
42167 | cat >>conftest.$ac_ext <<_ACEOF | |
42168 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
42169 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
42170 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
42171 | #define $ac_func innocuous_$ac_func | |
42172 | ||
a848cd7e SC |
42173 | /* System header to define __stub macros and hopefully few prototypes, |
42174 | which can conflict with char $ac_func (); below. | |
42175 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
42176 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 42177 | |
a848cd7e SC |
42178 | #ifdef __STDC__ |
42179 | # include <limits.h> | |
42180 | #else | |
42181 | # include <assert.h> | |
42182 | #endif | |
ac1cb8d3 VS |
42183 | |
42184 | #undef $ac_func | |
42185 | ||
a848cd7e SC |
42186 | /* Override any gcc2 internal prototype to avoid an error. */ |
42187 | #ifdef __cplusplus | |
42188 | extern "C" | |
42189 | { | |
42190 | #endif | |
42191 | /* We use char because int might match the return type of a gcc2 | |
42192 | builtin and then its argument prototype would still apply. */ | |
42193 | char $ac_func (); | |
42194 | /* The GNU C library defines this for functions which it implements | |
42195 | to always fail with ENOSYS. Some functions are actually named | |
42196 | something starting with __ and the normal name is an alias. */ | |
42197 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
42198 | choke me | |
42199 | #else | |
42200 | char (*f) () = $ac_func; | |
42201 | #endif | |
42202 | #ifdef __cplusplus | |
42203 | } | |
42204 | #endif | |
42205 | ||
42206 | int | |
42207 | main () | |
42208 | { | |
42209 | return f != $ac_func; | |
42210 | ; | |
42211 | return 0; | |
42212 | } | |
42213 | _ACEOF | |
42214 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42215 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42216 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42217 | ac_status=$? |
ac1cb8d3 VS |
42218 | grep -v '^ *+' conftest.er1 >conftest.err |
42219 | rm -f conftest.er1 | |
42220 | cat conftest.err >&5 | |
a848cd7e SC |
42221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42222 | (exit $ac_status); } && | |
d25774ab JS |
42223 | { ac_try='test -z "$ac_cxx_werror_flag" |
42224 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42226 | (eval $ac_try) 2>&5 | |
42227 | ac_status=$? | |
42228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42229 | (exit $ac_status); }; } && | |
42230 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42232 | (eval $ac_try) 2>&5 | |
42233 | ac_status=$? | |
42234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42235 | (exit $ac_status); }; }; then | |
42236 | eval "$as_ac_var=yes" | |
42237 | else | |
42238 | echo "$as_me: failed program was:" >&5 | |
42239 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42240 | ||
42241 | eval "$as_ac_var=no" | |
42242 | fi | |
ac1cb8d3 VS |
42243 | rm -f conftest.err conftest.$ac_objext \ |
42244 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42245 | fi |
42246 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
42247 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
42248 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
42249 | cat >>confdefs.h <<_ACEOF | |
42250 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
42251 | _ACEOF | |
42252 | ||
42253 | fi | |
42254 | done | |
42255 | ||
42256 | ||
42257 | if test "$ac_cv_func_localtime" = "yes"; then | |
42258 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
42259 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
42260 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
42261 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42262 | else | |
42263 | ||
42264 | cat >conftest.$ac_ext <<_ACEOF | |
42265 | /* confdefs.h. */ | |
42266 | _ACEOF | |
42267 | cat confdefs.h >>conftest.$ac_ext | |
42268 | cat >>conftest.$ac_ext <<_ACEOF | |
42269 | /* end confdefs.h. */ | |
42270 | ||
42271 | #include <time.h> | |
42272 | ||
42273 | int | |
42274 | main () | |
42275 | { | |
42276 | ||
42277 | struct tm tm; | |
42278 | tm.tm_gmtoff++; | |
42279 | ||
42280 | ; | |
42281 | return 0; | |
42282 | } | |
42283 | _ACEOF | |
42284 | rm -f conftest.$ac_objext | |
42285 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42286 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42287 | ac_status=$? |
ac1cb8d3 VS |
42288 | grep -v '^ *+' conftest.er1 >conftest.err |
42289 | rm -f conftest.er1 | |
42290 | cat conftest.err >&5 | |
a848cd7e SC |
42291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42292 | (exit $ac_status); } && | |
d25774ab JS |
42293 | { ac_try='test -z "$ac_cxx_werror_flag" |
42294 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42296 | (eval $ac_try) 2>&5 | |
42297 | ac_status=$? | |
42298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42299 | (exit $ac_status); }; } && | |
42300 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42302 | (eval $ac_try) 2>&5 | |
42303 | ac_status=$? | |
42304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42305 | (exit $ac_status); }; }; then | |
42306 | ||
42307 | wx_cv_struct_tm_has_gmtoff=yes | |
42308 | ||
42309 | else | |
42310 | echo "$as_me: failed program was:" >&5 | |
42311 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42312 | ||
42313 | wx_cv_struct_tm_has_gmtoff=no | |
42314 | ||
42315 | fi | |
ac1cb8d3 | 42316 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42317 | |
42318 | fi | |
42319 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
42320 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
42321 | fi | |
42322 | ||
42323 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
42324 | cat >>confdefs.h <<\_ACEOF | |
42325 | #define WX_GMTOFF_IN_TM 1 | |
42326 | _ACEOF | |
42327 | ||
42328 | fi | |
42329 | ||
42330 | ||
42331 | ||
42332 | for ac_func in gettimeofday ftime | |
42333 | do | |
42334 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
42335 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
42336 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
42337 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
42338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42339 | else | |
42340 | cat >conftest.$ac_ext <<_ACEOF | |
42341 | /* confdefs.h. */ | |
42342 | _ACEOF | |
42343 | cat confdefs.h >>conftest.$ac_ext | |
42344 | cat >>conftest.$ac_ext <<_ACEOF | |
42345 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
42346 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
42347 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
42348 | #define $ac_func innocuous_$ac_func | |
42349 | ||
a848cd7e SC |
42350 | /* System header to define __stub macros and hopefully few prototypes, |
42351 | which can conflict with char $ac_func (); below. | |
42352 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
42353 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 42354 | |
a848cd7e SC |
42355 | #ifdef __STDC__ |
42356 | # include <limits.h> | |
42357 | #else | |
42358 | # include <assert.h> | |
42359 | #endif | |
ac1cb8d3 VS |
42360 | |
42361 | #undef $ac_func | |
42362 | ||
a848cd7e SC |
42363 | /* Override any gcc2 internal prototype to avoid an error. */ |
42364 | #ifdef __cplusplus | |
42365 | extern "C" | |
42366 | { | |
42367 | #endif | |
42368 | /* We use char because int might match the return type of a gcc2 | |
42369 | builtin and then its argument prototype would still apply. */ | |
42370 | char $ac_func (); | |
42371 | /* The GNU C library defines this for functions which it implements | |
42372 | to always fail with ENOSYS. Some functions are actually named | |
42373 | something starting with __ and the normal name is an alias. */ | |
42374 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
42375 | choke me | |
42376 | #else | |
42377 | char (*f) () = $ac_func; | |
42378 | #endif | |
42379 | #ifdef __cplusplus | |
42380 | } | |
42381 | #endif | |
42382 | ||
42383 | int | |
42384 | main () | |
42385 | { | |
42386 | return f != $ac_func; | |
42387 | ; | |
42388 | return 0; | |
42389 | } | |
42390 | _ACEOF | |
42391 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42392 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42393 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42394 | ac_status=$? |
ac1cb8d3 VS |
42395 | grep -v '^ *+' conftest.er1 >conftest.err |
42396 | rm -f conftest.er1 | |
42397 | cat conftest.err >&5 | |
a848cd7e SC |
42398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42399 | (exit $ac_status); } && | |
d25774ab JS |
42400 | { ac_try='test -z "$ac_cxx_werror_flag" |
42401 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42403 | (eval $ac_try) 2>&5 | |
42404 | ac_status=$? | |
42405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42406 | (exit $ac_status); }; } && | |
42407 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42409 | (eval $ac_try) 2>&5 | |
42410 | ac_status=$? | |
42411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42412 | (exit $ac_status); }; }; then | |
42413 | eval "$as_ac_var=yes" | |
42414 | else | |
42415 | echo "$as_me: failed program was:" >&5 | |
42416 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42417 | ||
42418 | eval "$as_ac_var=no" | |
42419 | fi | |
ac1cb8d3 VS |
42420 | rm -f conftest.err conftest.$ac_objext \ |
42421 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42422 | fi |
42423 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
42424 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
42425 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
42426 | cat >>confdefs.h <<_ACEOF | |
42427 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
42428 | _ACEOF | |
42429 | break | |
42430 | fi | |
42431 | done | |
42432 | ||
42433 | ||
42434 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
42435 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
42436 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
42437 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
42438 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42439 | else | |
42440 | ||
5d7b7554 | 42441 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
42442 | /* confdefs.h. */ |
42443 | _ACEOF | |
42444 | cat confdefs.h >>conftest.$ac_ext | |
42445 | cat >>conftest.$ac_ext <<_ACEOF | |
42446 | /* end confdefs.h. */ | |
42447 | ||
42448 | #include <sys/time.h> | |
42449 | #include <unistd.h> | |
42450 | ||
42451 | int | |
42452 | main () | |
42453 | { | |
42454 | ||
42455 | struct timeval tv; | |
42456 | gettimeofday(&tv, NULL); | |
42457 | ||
42458 | ; | |
42459 | return 0; | |
42460 | } | |
42461 | _ACEOF | |
42462 | rm -f conftest.$ac_objext | |
42463 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42464 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42465 | ac_status=$? |
ac1cb8d3 VS |
42466 | grep -v '^ *+' conftest.er1 >conftest.err |
42467 | rm -f conftest.er1 | |
42468 | cat conftest.err >&5 | |
a848cd7e SC |
42469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42470 | (exit $ac_status); } && | |
d25774ab JS |
42471 | { ac_try='test -z "$ac_cxx_werror_flag" |
42472 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42474 | (eval $ac_try) 2>&5 | |
42475 | ac_status=$? | |
42476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42477 | (exit $ac_status); }; } && | |
42478 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42480 | (eval $ac_try) 2>&5 | |
42481 | ac_status=$? | |
42482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42483 | (exit $ac_status); }; }; then | |
42484 | wx_cv_func_gettimeofday_has_2_args=yes | |
42485 | else | |
42486 | echo "$as_me: failed program was:" >&5 | |
42487 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42488 | ||
42489 | cat >conftest.$ac_ext <<_ACEOF | |
42490 | /* confdefs.h. */ | |
42491 | _ACEOF | |
42492 | cat confdefs.h >>conftest.$ac_ext | |
42493 | cat >>conftest.$ac_ext <<_ACEOF | |
42494 | /* end confdefs.h. */ | |
42495 | ||
42496 | #include <sys/time.h> | |
42497 | #include <unistd.h> | |
42498 | ||
42499 | int | |
42500 | main () | |
42501 | { | |
42502 | ||
42503 | struct timeval tv; | |
42504 | gettimeofday(&tv); | |
42505 | ||
42506 | ; | |
42507 | return 0; | |
42508 | } | |
42509 | _ACEOF | |
42510 | rm -f conftest.$ac_objext | |
42511 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42512 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42513 | ac_status=$? |
ac1cb8d3 VS |
42514 | grep -v '^ *+' conftest.er1 >conftest.err |
42515 | rm -f conftest.er1 | |
42516 | cat conftest.err >&5 | |
a848cd7e SC |
42517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42518 | (exit $ac_status); } && | |
d25774ab JS |
42519 | { ac_try='test -z "$ac_cxx_werror_flag" |
42520 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42522 | (eval $ac_try) 2>&5 | |
42523 | ac_status=$? | |
42524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42525 | (exit $ac_status); }; } && | |
42526 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42528 | (eval $ac_try) 2>&5 | |
42529 | ac_status=$? | |
42530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42531 | (exit $ac_status); }; }; then | |
42532 | wx_cv_func_gettimeofday_has_2_args=no | |
42533 | else | |
42534 | echo "$as_me: failed program was:" >&5 | |
42535 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42536 | ||
42537 | ||
42538 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
42539 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
42540 | wx_cv_func_gettimeofday_has_2_args=unknown | |
42541 | ||
42542 | ||
42543 | fi | |
ac1cb8d3 | 42544 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42545 | |
42546 | fi | |
ac1cb8d3 | 42547 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42548 | |
42549 | fi | |
42550 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
42551 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
42552 | ||
42553 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
42554 | cat >>confdefs.h <<\_ACEOF | |
42555 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
42556 | _ACEOF | |
42557 | ||
42558 | fi | |
42559 | fi | |
42560 | ||
42561 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
42562 | fi | |
42563 | ||
42564 | ||
42565 | if test "$wxUSE_SOCKETS" = "yes"; then | |
42566 | if test "$wxUSE_MGL" = "1"; then | |
42567 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
42568 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
42569 | wxUSE_SOCKETS="no" | |
42570 | fi | |
42571 | fi | |
42572 | ||
42573 | if test "$wxUSE_SOCKETS" = "yes"; then | |
42574 | if test "$TOOLKIT" != "MSW"; then | |
42575 | echo "$as_me:$LINENO: checking for socket" >&5 | |
42576 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
42577 | if test "${ac_cv_func_socket+set}" = set; then | |
42578 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42579 | else | |
42580 | cat >conftest.$ac_ext <<_ACEOF | |
42581 | /* confdefs.h. */ | |
42582 | _ACEOF | |
42583 | cat confdefs.h >>conftest.$ac_ext | |
42584 | cat >>conftest.$ac_ext <<_ACEOF | |
42585 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
42586 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
42587 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
42588 | #define socket innocuous_socket | |
42589 | ||
a848cd7e SC |
42590 | /* System header to define __stub macros and hopefully few prototypes, |
42591 | which can conflict with char socket (); below. | |
42592 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
42593 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 42594 | |
a848cd7e SC |
42595 | #ifdef __STDC__ |
42596 | # include <limits.h> | |
42597 | #else | |
42598 | # include <assert.h> | |
42599 | #endif | |
ac1cb8d3 VS |
42600 | |
42601 | #undef socket | |
42602 | ||
a848cd7e SC |
42603 | /* Override any gcc2 internal prototype to avoid an error. */ |
42604 | #ifdef __cplusplus | |
42605 | extern "C" | |
42606 | { | |
42607 | #endif | |
42608 | /* We use char because int might match the return type of a gcc2 | |
42609 | builtin and then its argument prototype would still apply. */ | |
42610 | char socket (); | |
42611 | /* The GNU C library defines this for functions which it implements | |
42612 | to always fail with ENOSYS. Some functions are actually named | |
42613 | something starting with __ and the normal name is an alias. */ | |
42614 | #if defined (__stub_socket) || defined (__stub___socket) | |
42615 | choke me | |
42616 | #else | |
42617 | char (*f) () = socket; | |
42618 | #endif | |
42619 | #ifdef __cplusplus | |
42620 | } | |
42621 | #endif | |
42622 | ||
42623 | int | |
42624 | main () | |
42625 | { | |
42626 | return f != socket; | |
42627 | ; | |
42628 | return 0; | |
42629 | } | |
42630 | _ACEOF | |
42631 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42632 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42633 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42634 | ac_status=$? |
ac1cb8d3 VS |
42635 | grep -v '^ *+' conftest.er1 >conftest.err |
42636 | rm -f conftest.er1 | |
42637 | cat conftest.err >&5 | |
a848cd7e SC |
42638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42639 | (exit $ac_status); } && | |
d25774ab JS |
42640 | { ac_try='test -z "$ac_cxx_werror_flag" |
42641 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42643 | (eval $ac_try) 2>&5 | |
42644 | ac_status=$? | |
42645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42646 | (exit $ac_status); }; } && | |
42647 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42649 | (eval $ac_try) 2>&5 | |
42650 | ac_status=$? | |
42651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42652 | (exit $ac_status); }; }; then | |
42653 | ac_cv_func_socket=yes | |
42654 | else | |
42655 | echo "$as_me: failed program was:" >&5 | |
42656 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42657 | ||
42658 | ac_cv_func_socket=no | |
42659 | fi | |
ac1cb8d3 VS |
42660 | rm -f conftest.err conftest.$ac_objext \ |
42661 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42662 | fi |
42663 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
42664 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
42665 | if test $ac_cv_func_socket = yes; then | |
42666 | : | |
42667 | else | |
42668 | ||
42669 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
42670 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
42671 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
42672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42673 | else | |
42674 | ac_check_lib_save_LIBS=$LIBS | |
42675 | LIBS="-lsocket $LIBS" | |
42676 | cat >conftest.$ac_ext <<_ACEOF | |
42677 | /* confdefs.h. */ | |
42678 | _ACEOF | |
42679 | cat confdefs.h >>conftest.$ac_ext | |
42680 | cat >>conftest.$ac_ext <<_ACEOF | |
42681 | /* end confdefs.h. */ | |
42682 | ||
42683 | /* Override any gcc2 internal prototype to avoid an error. */ | |
42684 | #ifdef __cplusplus | |
42685 | extern "C" | |
42686 | #endif | |
42687 | /* We use char because int might match the return type of a gcc2 | |
42688 | builtin and then its argument prototype would still apply. */ | |
42689 | char socket (); | |
42690 | int | |
42691 | main () | |
42692 | { | |
42693 | socket (); | |
42694 | ; | |
42695 | return 0; | |
42696 | } | |
42697 | _ACEOF | |
42698 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42699 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42700 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42701 | ac_status=$? |
ac1cb8d3 VS |
42702 | grep -v '^ *+' conftest.er1 >conftest.err |
42703 | rm -f conftest.er1 | |
42704 | cat conftest.err >&5 | |
a848cd7e SC |
42705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42706 | (exit $ac_status); } && | |
d25774ab JS |
42707 | { ac_try='test -z "$ac_cxx_werror_flag" |
42708 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42710 | (eval $ac_try) 2>&5 | |
42711 | ac_status=$? | |
42712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42713 | (exit $ac_status); }; } && | |
42714 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42716 | (eval $ac_try) 2>&5 | |
42717 | ac_status=$? | |
42718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42719 | (exit $ac_status); }; }; then | |
42720 | ac_cv_lib_socket_socket=yes | |
42721 | else | |
42722 | echo "$as_me: failed program was:" >&5 | |
42723 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42724 | ||
42725 | ac_cv_lib_socket_socket=no | |
42726 | fi | |
ac1cb8d3 VS |
42727 | rm -f conftest.err conftest.$ac_objext \ |
42728 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42729 | LIBS=$ac_check_lib_save_LIBS |
42730 | fi | |
42731 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
42732 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
42733 | if test $ac_cv_lib_socket_socket = yes; then | |
42734 | if test "$INET_LINK" != " -lsocket"; then | |
42735 | INET_LINK="$INET_LINK -lsocket" | |
42736 | fi | |
42737 | else | |
42738 | ||
42739 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
42740 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
42741 | wxUSE_SOCKETS=no | |
42742 | ||
42743 | ||
42744 | fi | |
42745 | ||
42746 | ||
42747 | ||
42748 | fi | |
42749 | ||
42750 | fi | |
42751 | fi | |
42752 | ||
42753 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
42754 | if test "$TOOLKIT" != "MSW"; then | |
5d7b7554 | 42755 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 |
a848cd7e SC |
42756 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 |
42757 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
42758 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42759 | else | |
42760 | ||
42761 | cat >conftest.$ac_ext <<_ACEOF | |
42762 | /* confdefs.h. */ | |
42763 | _ACEOF | |
42764 | cat confdefs.h >>conftest.$ac_ext | |
42765 | cat >>conftest.$ac_ext <<_ACEOF | |
42766 | /* end confdefs.h. */ | |
42767 | ||
42768 | #include <sys/types.h> | |
42769 | #include <sys/socket.h> | |
42770 | ||
42771 | int | |
42772 | main () | |
42773 | { | |
42774 | ||
42775 | socklen_t len; | |
42776 | getsockname(0, 0, &len); | |
42777 | ||
42778 | ; | |
42779 | return 0; | |
42780 | } | |
42781 | _ACEOF | |
42782 | rm -f conftest.$ac_objext | |
42783 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42784 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42785 | ac_status=$? |
ac1cb8d3 VS |
42786 | grep -v '^ *+' conftest.er1 >conftest.err |
42787 | rm -f conftest.er1 | |
42788 | cat conftest.err >&5 | |
a848cd7e SC |
42789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42790 | (exit $ac_status); } && | |
d25774ab JS |
42791 | { ac_try='test -z "$ac_cxx_werror_flag" |
42792 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42794 | (eval $ac_try) 2>&5 | |
42795 | ac_status=$? | |
42796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42797 | (exit $ac_status); }; } && | |
42798 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42800 | (eval $ac_try) 2>&5 | |
42801 | ac_status=$? | |
42802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42803 | (exit $ac_status); }; }; then | |
42804 | wx_cv_type_getsockname3=socklen_t | |
42805 | else | |
42806 | echo "$as_me: failed program was:" >&5 | |
42807 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42808 | ||
42809 | ||
6459a506 | 42810 | CXXFLAGS_OLD="$CXXFLAGS" |
a848cd7e | 42811 | if test "$GCC" = yes ; then |
c92ad099 | 42812 | CXXFLAGS="-Werror $CXXFLAGS" |
a848cd7e SC |
42813 | fi |
42814 | ||
42815 | cat >conftest.$ac_ext <<_ACEOF | |
42816 | /* confdefs.h. */ | |
42817 | _ACEOF | |
42818 | cat confdefs.h >>conftest.$ac_ext | |
42819 | cat >>conftest.$ac_ext <<_ACEOF | |
42820 | /* end confdefs.h. */ | |
42821 | ||
42822 | #include <sys/types.h> | |
42823 | #include <sys/socket.h> | |
42824 | ||
42825 | int | |
42826 | main () | |
42827 | { | |
42828 | ||
42829 | size_t len; | |
42830 | getsockname(0, 0, &len); | |
42831 | ||
42832 | ; | |
42833 | return 0; | |
42834 | } | |
42835 | _ACEOF | |
42836 | rm -f conftest.$ac_objext | |
42837 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42838 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42839 | ac_status=$? |
ac1cb8d3 VS |
42840 | grep -v '^ *+' conftest.er1 >conftest.err |
42841 | rm -f conftest.er1 | |
42842 | cat conftest.err >&5 | |
a848cd7e SC |
42843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42844 | (exit $ac_status); } && | |
d25774ab JS |
42845 | { ac_try='test -z "$ac_cxx_werror_flag" |
42846 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42848 | (eval $ac_try) 2>&5 | |
42849 | ac_status=$? | |
42850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42851 | (exit $ac_status); }; } && | |
42852 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42854 | (eval $ac_try) 2>&5 | |
42855 | ac_status=$? | |
42856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42857 | (exit $ac_status); }; }; then | |
42858 | wx_cv_type_getsockname3=size_t | |
42859 | else | |
42860 | echo "$as_me: failed program was:" >&5 | |
42861 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42862 | ||
42863 | cat >conftest.$ac_ext <<_ACEOF | |
42864 | /* confdefs.h. */ | |
42865 | _ACEOF | |
42866 | cat confdefs.h >>conftest.$ac_ext | |
42867 | cat >>conftest.$ac_ext <<_ACEOF | |
42868 | /* end confdefs.h. */ | |
42869 | ||
42870 | #include <sys/types.h> | |
42871 | #include <sys/socket.h> | |
42872 | ||
42873 | int | |
42874 | main () | |
42875 | { | |
42876 | ||
42877 | int len; | |
42878 | getsockname(0, 0, &len); | |
42879 | ||
42880 | ; | |
42881 | return 0; | |
42882 | } | |
42883 | _ACEOF | |
42884 | rm -f conftest.$ac_objext | |
42885 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42886 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42887 | ac_status=$? |
ac1cb8d3 VS |
42888 | grep -v '^ *+' conftest.er1 >conftest.err |
42889 | rm -f conftest.er1 | |
42890 | cat conftest.err >&5 | |
a848cd7e SC |
42891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42892 | (exit $ac_status); } && | |
d25774ab JS |
42893 | { ac_try='test -z "$ac_cxx_werror_flag" |
42894 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42896 | (eval $ac_try) 2>&5 | |
42897 | ac_status=$? | |
42898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42899 | (exit $ac_status); }; } && | |
42900 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42902 | (eval $ac_try) 2>&5 | |
42903 | ac_status=$? | |
42904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42905 | (exit $ac_status); }; }; then | |
42906 | wx_cv_type_getsockname3=int | |
42907 | else | |
42908 | echo "$as_me: failed program was:" >&5 | |
42909 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42910 | ||
42911 | wx_cv_type_getsockname3=unknown | |
42912 | ||
42913 | fi | |
ac1cb8d3 | 42914 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42915 | |
42916 | fi | |
ac1cb8d3 | 42917 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 42918 | |
6459a506 | 42919 | CXXFLAGS="$CXXFLAGS_OLD" |
a848cd7e SC |
42920 | |
42921 | ||
42922 | fi | |
ac1cb8d3 | 42923 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42924 | |
42925 | fi | |
42926 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
42927 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
42928 | ||
42929 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
42930 | wxUSE_SOCKETS=no | |
42931 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
42932 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
42933 | else | |
42934 | cat >>confdefs.h <<_ACEOF | |
9e03e02d | 42935 | #define WX_SOCKLEN_T $wx_cv_type_getsockname3 |
5b674b9d DE |
42936 | _ACEOF |
42937 | ||
42938 | fi | |
42939 | echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5 | |
42940 | echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6 | |
42941 | if test "${wx_cv_type_getsockopt5+set}" = set; then | |
42942 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42943 | else | |
42944 | ||
42945 | cat >conftest.$ac_ext <<_ACEOF | |
42946 | /* confdefs.h. */ | |
42947 | _ACEOF | |
42948 | cat confdefs.h >>conftest.$ac_ext | |
42949 | cat >>conftest.$ac_ext <<_ACEOF | |
42950 | /* end confdefs.h. */ | |
42951 | ||
42952 | #include <sys/types.h> | |
42953 | #include <sys/socket.h> | |
42954 | ||
42955 | int | |
42956 | main () | |
42957 | { | |
42958 | ||
42959 | socklen_t len; | |
42960 | getsockopt(0, 0, 0, 0, &len); | |
42961 | ||
42962 | ; | |
42963 | return 0; | |
42964 | } | |
42965 | _ACEOF | |
42966 | rm -f conftest.$ac_objext | |
42967 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
42968 | (eval $ac_compile) 2>conftest.er1 | |
42969 | ac_status=$? | |
42970 | grep -v '^ *+' conftest.er1 >conftest.err | |
42971 | rm -f conftest.er1 | |
42972 | cat conftest.err >&5 | |
42973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42974 | (exit $ac_status); } && | |
d25774ab JS |
42975 | { ac_try='test -z "$ac_cxx_werror_flag" |
42976 | || test ! -s conftest.err' | |
5b674b9d DE |
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); }; } && | |
42982 | { ac_try='test -s conftest.$ac_objext' | |
42983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42984 | (eval $ac_try) 2>&5 | |
42985 | ac_status=$? | |
42986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42987 | (exit $ac_status); }; }; then | |
42988 | wx_cv_type_getsockopt5=socklen_t | |
42989 | else | |
42990 | echo "$as_me: failed program was:" >&5 | |
42991 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42992 | ||
42993 | ||
6459a506 | 42994 | CXXFLAGS_OLD="$CXXFLAGS" |
5b674b9d | 42995 | if test "$GCC" = yes ; then |
c92ad099 | 42996 | CXXFLAGS="-Werror $CXXFLAGS" |
5b674b9d DE |
42997 | fi |
42998 | ||
42999 | cat >conftest.$ac_ext <<_ACEOF | |
43000 | /* confdefs.h. */ | |
43001 | _ACEOF | |
43002 | cat confdefs.h >>conftest.$ac_ext | |
43003 | cat >>conftest.$ac_ext <<_ACEOF | |
43004 | /* end confdefs.h. */ | |
43005 | ||
43006 | #include <sys/types.h> | |
43007 | #include <sys/socket.h> | |
43008 | ||
43009 | int | |
43010 | main () | |
43011 | { | |
43012 | ||
43013 | size_t len; | |
43014 | getsockopt(0, 0, 0, 0, &len); | |
43015 | ||
43016 | ; | |
43017 | return 0; | |
43018 | } | |
43019 | _ACEOF | |
43020 | rm -f conftest.$ac_objext | |
43021 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
43022 | (eval $ac_compile) 2>conftest.er1 | |
43023 | ac_status=$? | |
43024 | grep -v '^ *+' conftest.er1 >conftest.err | |
43025 | rm -f conftest.er1 | |
43026 | cat conftest.err >&5 | |
43027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43028 | (exit $ac_status); } && | |
d25774ab JS |
43029 | { ac_try='test -z "$ac_cxx_werror_flag" |
43030 | || test ! -s conftest.err' | |
5b674b9d DE |
43031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43032 | (eval $ac_try) 2>&5 | |
43033 | ac_status=$? | |
43034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43035 | (exit $ac_status); }; } && | |
43036 | { ac_try='test -s conftest.$ac_objext' | |
43037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
43038 | (eval $ac_try) 2>&5 | |
43039 | ac_status=$? | |
43040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43041 | (exit $ac_status); }; }; then | |
43042 | wx_cv_type_getsockopt5=size_t | |
43043 | else | |
43044 | echo "$as_me: failed program was:" >&5 | |
43045 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43046 | ||
43047 | cat >conftest.$ac_ext <<_ACEOF | |
43048 | /* confdefs.h. */ | |
43049 | _ACEOF | |
43050 | cat confdefs.h >>conftest.$ac_ext | |
43051 | cat >>conftest.$ac_ext <<_ACEOF | |
43052 | /* end confdefs.h. */ | |
43053 | ||
43054 | #include <sys/types.h> | |
43055 | #include <sys/socket.h> | |
43056 | ||
43057 | int | |
43058 | main () | |
43059 | { | |
43060 | ||
43061 | int len; | |
43062 | getsockopt(0, 0, 0, 0, &len); | |
43063 | ||
43064 | ; | |
43065 | return 0; | |
43066 | } | |
43067 | _ACEOF | |
43068 | rm -f conftest.$ac_objext | |
43069 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
43070 | (eval $ac_compile) 2>conftest.er1 | |
43071 | ac_status=$? | |
43072 | grep -v '^ *+' conftest.er1 >conftest.err | |
43073 | rm -f conftest.er1 | |
43074 | cat conftest.err >&5 | |
43075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43076 | (exit $ac_status); } && | |
d25774ab JS |
43077 | { ac_try='test -z "$ac_cxx_werror_flag" |
43078 | || test ! -s conftest.err' | |
5b674b9d DE |
43079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43080 | (eval $ac_try) 2>&5 | |
43081 | ac_status=$? | |
43082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43083 | (exit $ac_status); }; } && | |
43084 | { ac_try='test -s conftest.$ac_objext' | |
43085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
43086 | (eval $ac_try) 2>&5 | |
43087 | ac_status=$? | |
43088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43089 | (exit $ac_status); }; }; then | |
43090 | wx_cv_type_getsockopt5=int | |
43091 | else | |
43092 | echo "$as_me: failed program was:" >&5 | |
43093 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43094 | ||
43095 | wx_cv_type_getsockopt5=unknown | |
43096 | ||
43097 | fi | |
43098 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
43099 | ||
43100 | fi | |
43101 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
43102 | ||
6459a506 | 43103 | CXXFLAGS="$CXXFLAGS_OLD" |
5b674b9d DE |
43104 | |
43105 | ||
43106 | fi | |
43107 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
43108 | ||
43109 | fi | |
43110 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5 | |
43111 | echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6 | |
43112 | ||
43113 | if test "$wx_cv_type_getsockopt5" = "unknown"; then | |
43114 | wxUSE_SOCKETS=no | |
43115 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
43116 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
43117 | else | |
43118 | cat >>confdefs.h <<_ACEOF | |
43119 | #define SOCKOPTLEN_T $wx_cv_type_getsockopt5 | |
a848cd7e SC |
43120 | _ACEOF |
43121 | ||
43122 | fi | |
43123 | fi | |
43124 | fi | |
43125 | ||
43126 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
43127 | cat >>confdefs.h <<\_ACEOF | |
43128 | #define wxUSE_SOCKETS 1 | |
43129 | _ACEOF | |
43130 | ||
43131 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
43132 | fi | |
43133 | ||
43134 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
43135 | if test "$wxUSE_SOCKETS" != "yes"; then | |
43136 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
43137 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
43138 | wxUSE_PROTOCOL=no | |
43139 | fi | |
43140 | fi | |
43141 | ||
43142 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
43143 | cat >>confdefs.h <<\_ACEOF | |
43144 | #define wxUSE_PROTOCOL 1 | |
43145 | _ACEOF | |
43146 | ||
43147 | ||
43148 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
43149 | cat >>confdefs.h <<\_ACEOF | |
43150 | #define wxUSE_PROTOCOL_HTTP 1 | |
43151 | _ACEOF | |
43152 | ||
43153 | fi | |
43154 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
43155 | cat >>confdefs.h <<\_ACEOF | |
43156 | #define wxUSE_PROTOCOL_FTP 1 | |
43157 | _ACEOF | |
43158 | ||
43159 | fi | |
43160 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
43161 | cat >>confdefs.h <<\_ACEOF | |
43162 | #define wxUSE_PROTOCOL_FILE 1 | |
43163 | _ACEOF | |
43164 | ||
43165 | fi | |
43166 | else | |
43167 | if test "$wxUSE_FS_INET" = "yes"; then | |
43168 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
43169 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
43170 | wxUSE_FS_INET="no" | |
43171 | fi | |
43172 | fi | |
43173 | ||
43174 | if test "$wxUSE_URL" = "yes"; then | |
43175 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
43176 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
43177 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
43178 | wxUSE_URL=no | |
43179 | fi | |
43180 | if test "$wxUSE_URL" = "yes"; then | |
43181 | cat >>confdefs.h <<\_ACEOF | |
43182 | #define wxUSE_URL 1 | |
43183 | _ACEOF | |
43184 | ||
43185 | fi | |
43186 | fi | |
43187 | ||
43188 | if test "$wxUSE_FS_INET" = "yes"; then | |
43189 | cat >>confdefs.h <<\_ACEOF | |
43190 | #define wxUSE_FS_INET 1 | |
43191 | _ACEOF | |
43192 | ||
43193 | fi | |
43194 | ||
43195 | ||
ee45c548 MW |
43196 | if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then |
43197 | wxUSE_JOYSTICK=no | |
43198 | ||
43199 | if test "$TOOLKIT" = "MSW"; then | |
43200 | wxUSE_JOYSTICK=yes | |
43201 | ||
43202 | elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then | |
43203 | if test "$USE_DARWIN" = 1; then | |
43204 | echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5 | |
43205 | echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6 | |
ee45c548 MW |
43206 | cat >conftest.$ac_ext <<_ACEOF |
43207 | /* confdefs.h. */ | |
43208 | _ACEOF | |
43209 | cat confdefs.h >>conftest.$ac_ext | |
43210 | cat >>conftest.$ac_ext <<_ACEOF | |
43211 | /* end confdefs.h. */ | |
43212 | #include <IOKit/hid/IOHIDLib.h> | |
43213 | int | |
43214 | main () | |
43215 | { | |
43216 | IOHIDQueueInterface *qi = NULL; | |
43217 | IOHIDCallbackFunction cb = NULL; | |
43218 | qi->setEventCallout(NULL, cb, NULL, NULL); | |
43219 | ; | |
43220 | return 0; | |
43221 | } | |
43222 | _ACEOF | |
43223 | rm -f conftest.$ac_objext | |
43224 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
43225 | (eval $ac_compile) 2>conftest.er1 | |
43226 | ac_status=$? | |
43227 | grep -v '^ *+' conftest.er1 >conftest.err | |
43228 | rm -f conftest.er1 | |
43229 | cat conftest.err >&5 | |
43230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43231 | (exit $ac_status); } && | |
d25774ab JS |
43232 | { ac_try='test -z "$ac_cxx_werror_flag" |
43233 | || test ! -s conftest.err' | |
ee45c548 MW |
43234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43235 | (eval $ac_try) 2>&5 | |
43236 | ac_status=$? | |
43237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43238 | (exit $ac_status); }; } && | |
43239 | { ac_try='test -s conftest.$ac_objext' | |
43240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
43241 | (eval $ac_try) 2>&5 | |
43242 | ac_status=$? | |
43243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43244 | (exit $ac_status); }; }; then | |
43245 | wxUSE_JOYSTICK=yes | |
a848cd7e | 43246 | |
ee45c548 MW |
43247 | else |
43248 | echo "$as_me: failed program was:" >&5 | |
43249 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43250 | ||
43251 | fi | |
43252 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
ee45c548 MW |
43253 | echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5 |
43254 | echo "${ECHO_T}$wxUSE_JOYSTICK" >&6 | |
43255 | fi | |
43256 | ||
43257 | else | |
a848cd7e SC |
43258 | |
43259 | for ac_header in linux/joystick.h | |
43260 | do | |
43261 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
43262 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
43263 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
43264 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
43265 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
43266 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43267 | fi | |
43268 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
43269 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
43270 | else | |
43271 | # Is the header compilable? | |
43272 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
43273 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
43274 | cat >conftest.$ac_ext <<_ACEOF | |
43275 | /* confdefs.h. */ | |
43276 | _ACEOF | |
43277 | cat confdefs.h >>conftest.$ac_ext | |
43278 | cat >>conftest.$ac_ext <<_ACEOF | |
43279 | /* end confdefs.h. */ | |
43280 | $ac_includes_default | |
43281 | #include <$ac_header> | |
43282 | _ACEOF | |
43283 | rm -f conftest.$ac_objext | |
43284 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43285 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43286 | ac_status=$? |
ac1cb8d3 VS |
43287 | grep -v '^ *+' conftest.er1 >conftest.err |
43288 | rm -f conftest.er1 | |
43289 | cat conftest.err >&5 | |
a848cd7e SC |
43290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43291 | (exit $ac_status); } && | |
d25774ab JS |
43292 | { ac_try='test -z "$ac_cxx_werror_flag" |
43293 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
43294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43295 | (eval $ac_try) 2>&5 | |
43296 | ac_status=$? | |
43297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43298 | (exit $ac_status); }; } && | |
43299 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43301 | (eval $ac_try) 2>&5 | |
43302 | ac_status=$? | |
43303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43304 | (exit $ac_status); }; }; then | |
43305 | ac_header_compiler=yes | |
43306 | else | |
43307 | echo "$as_me: failed program was:" >&5 | |
43308 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43309 | ||
43310 | ac_header_compiler=no | |
43311 | fi | |
ac1cb8d3 | 43312 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
43313 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
43314 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
43315 | ||
43316 | # Is the header present? | |
43317 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
43318 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
43319 | cat >conftest.$ac_ext <<_ACEOF | |
43320 | /* confdefs.h. */ | |
43321 | _ACEOF | |
43322 | cat confdefs.h >>conftest.$ac_ext | |
43323 | cat >>conftest.$ac_ext <<_ACEOF | |
43324 | /* end confdefs.h. */ | |
43325 | #include <$ac_header> | |
43326 | _ACEOF | |
43327 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
43328 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
43329 | ac_status=$? | |
43330 | grep -v '^ *+' conftest.er1 >conftest.err | |
43331 | rm -f conftest.er1 | |
43332 | cat conftest.err >&5 | |
43333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43334 | (exit $ac_status); } >/dev/null; then | |
43335 | if test -s conftest.err; then | |
5d7b7554 VZ |
43336 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
43337 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
43338 | else |
43339 | ac_cpp_err= | |
43340 | fi | |
43341 | else | |
43342 | ac_cpp_err=yes | |
43343 | fi | |
43344 | if test -z "$ac_cpp_err"; then | |
43345 | ac_header_preproc=yes | |
43346 | else | |
43347 | echo "$as_me: failed program was:" >&5 | |
43348 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43349 | ||
43350 | ac_header_preproc=no | |
43351 | fi | |
43352 | rm -f conftest.err conftest.$ac_ext | |
43353 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
43354 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
43355 | ||
43356 | # So? What about this header? | |
5d7b7554 | 43357 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 43358 | yes:no: ) |
a848cd7e SC |
43359 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
43360 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
43361 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
43362 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
43363 | ac_header_preproc=yes | |
a848cd7e | 43364 | ;; |
ac1cb8d3 | 43365 | no:yes:* ) |
a848cd7e SC |
43366 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
43367 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
43368 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
43369 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
43370 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
43371 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
43372 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
43373 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
43374 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
43375 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
43376 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
43377 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
43378 | ( |
43379 | cat <<\_ASBOX | |
ac1cb8d3 VS |
43380 | ## ----------------------------------------- ## |
43381 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
43382 | ## ----------------------------------------- ## | |
a848cd7e SC |
43383 | _ASBOX |
43384 | ) | | |
43385 | sed "s/^/$as_me: WARNING: /" >&2 | |
43386 | ;; | |
43387 | esac | |
43388 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
43389 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
43390 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
43391 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43392 | else | |
ac1cb8d3 | 43393 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
43394 | fi |
43395 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
43396 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
43397 | ||
43398 | fi | |
43399 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
43400 | cat >>confdefs.h <<_ACEOF | |
43401 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
43402 | _ACEOF | |
ee45c548 | 43403 | wxUSE_JOYSTICK=yes |
a848cd7e SC |
43404 | fi |
43405 | ||
43406 | done | |
43407 | ||
ee45c548 | 43408 | fi |
4cb1d3da | 43409 | |
ee45c548 MW |
43410 | if test "$wxUSE_JOYSTICK" = "yes"; then |
43411 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
43412 | #define wxUSE_JOYSTICK 1 |
43413 | _ACEOF | |
43414 | ||
ee45c548 MW |
43415 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
43416 | else | |
43417 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
43418 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
a848cd7e SC |
43419 | fi |
43420 | fi | |
43421 | ||
43422 | ||
43423 | ||
43424 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
43425 | cat >>confdefs.h <<\_ACEOF | |
43426 | #define wxUSE_FONTMAP 1 | |
43427 | _ACEOF | |
43428 | ||
43429 | fi | |
43430 | ||
43431 | if test "$wxUSE_UNICODE" = "yes" ; then | |
43432 | cat >>confdefs.h <<\_ACEOF | |
43433 | #define wxUSE_UNICODE 1 | |
43434 | _ACEOF | |
43435 | ||
43436 | ||
43437 | if test "$USE_WIN32" != 1; then | |
43438 | wxUSE_UNICODE_MSLU=no | |
43439 | fi | |
43440 | ||
43441 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
43442 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 | |
43443 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
43444 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
43445 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43446 | else | |
43447 | ac_check_lib_save_LIBS=$LIBS | |
43448 | LIBS="-lunicows $LIBS" | |
43449 | cat >conftest.$ac_ext <<_ACEOF | |
43450 | /* confdefs.h. */ | |
43451 | _ACEOF | |
43452 | cat confdefs.h >>conftest.$ac_ext | |
43453 | cat >>conftest.$ac_ext <<_ACEOF | |
43454 | /* end confdefs.h. */ | |
43455 | ||
43456 | ||
43457 | int | |
43458 | main () | |
43459 | { | |
43460 | main (); | |
43461 | ; | |
43462 | return 0; | |
43463 | } | |
43464 | _ACEOF | |
43465 | rm -f conftest.$ac_objext conftest$ac_exeext | |
43466 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 43467 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 43468 | ac_status=$? |
ac1cb8d3 VS |
43469 | grep -v '^ *+' conftest.er1 >conftest.err |
43470 | rm -f conftest.er1 | |
43471 | cat conftest.err >&5 | |
a848cd7e SC |
43472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43473 | (exit $ac_status); } && | |
d25774ab JS |
43474 | { ac_try='test -z "$ac_cxx_werror_flag" |
43475 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
43476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43477 | (eval $ac_try) 2>&5 | |
43478 | ac_status=$? | |
43479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43480 | (exit $ac_status); }; } && | |
43481 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
43482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43483 | (eval $ac_try) 2>&5 | |
43484 | ac_status=$? | |
43485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43486 | (exit $ac_status); }; }; then | |
43487 | ac_cv_lib_unicows_main=yes | |
43488 | else | |
43489 | echo "$as_me: failed program was:" >&5 | |
43490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43491 | ||
43492 | ac_cv_lib_unicows_main=no | |
43493 | fi | |
ac1cb8d3 VS |
43494 | rm -f conftest.err conftest.$ac_objext \ |
43495 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
43496 | LIBS=$ac_check_lib_save_LIBS |
43497 | fi | |
43498 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
43499 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
43500 | if test $ac_cv_lib_unicows_main = yes; then | |
43501 | ||
43502 | cat >>confdefs.h <<\_ACEOF | |
43503 | #define wxUSE_UNICODE_MSLU 1 | |
43504 | _ACEOF | |
43505 | ||
43506 | ||
43507 | else | |
43508 | ||
43509 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
43510 | Applications will only run on Windows NT/2000/XP!" >&5 | |
43511 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
43512 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
43513 | wxUSE_UNICODE_MSLU=no | |
43514 | ||
43515 | fi | |
43516 | ||
43517 | fi | |
43518 | fi | |
43519 | ||
43520 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
43521 | cat >>confdefs.h <<\_ACEOF | |
43522 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
43523 | _ACEOF | |
43524 | ||
43525 | fi | |
43526 | ||
43527 | ||
43528 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
43529 | cat >>confdefs.h <<\_ACEOF | |
43530 | #define wxUSE_POSTSCRIPT 1 | |
43531 | _ACEOF | |
43532 | ||
43533 | fi | |
43534 | ||
43535 | cat >>confdefs.h <<\_ACEOF | |
43536 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
43537 | _ACEOF | |
43538 | ||
43539 | ||
43540 | cat >>confdefs.h <<\_ACEOF | |
43541 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
43542 | _ACEOF | |
43543 | ||
43544 | ||
43545 | ||
43546 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
43547 | cat >>confdefs.h <<\_ACEOF | |
43548 | #define wxUSE_CONSTRAINTS 1 | |
43549 | _ACEOF | |
43550 | ||
43551 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
43552 | fi | |
43553 | ||
8a7b1113 VZ |
43554 | if test "$wxUSE_MDI" = "yes"; then |
43555 | cat >>confdefs.h <<\_ACEOF | |
43556 | #define wxUSE_MDI 1 | |
43557 | _ACEOF | |
43558 | ||
43559 | ||
43560 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
43561 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
43562 | #define wxUSE_MDI_ARCHITECTURE 1 |
43563 | _ACEOF | |
43564 | ||
8a7b1113 VZ |
43565 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
43566 | fi | |
a848cd7e SC |
43567 | fi |
43568 | ||
43569 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
43570 | cat >>confdefs.h <<\_ACEOF | |
43571 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
43572 | _ACEOF | |
43573 | ||
43574 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
43575 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
43576 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
43577 | fi | |
43578 | fi | |
43579 | ||
43580 | if test "$wxUSE_HELP" = "yes"; then | |
43581 | cat >>confdefs.h <<\_ACEOF | |
43582 | #define wxUSE_HELP 1 | |
43583 | _ACEOF | |
43584 | ||
43585 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
43586 | ||
43587 | if test "$wxUSE_MSW" = 1; then | |
43588 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
43589 | cat >>confdefs.h <<\_ACEOF | |
43590 | #define wxUSE_MS_HTML_HELP 1 | |
43591 | _ACEOF | |
43592 | ||
43593 | fi | |
43594 | fi | |
43595 | ||
43596 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
43597 | if test "$wxUSE_HTML" = "yes"; then | |
43598 | cat >>confdefs.h <<\_ACEOF | |
43599 | #define wxUSE_WXHTML_HELP 1 | |
43600 | _ACEOF | |
43601 | ||
43602 | else | |
43603 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 | |
43604 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
43605 | wxUSE_WXHTML_HELP=no | |
43606 | fi | |
43607 | fi | |
43608 | fi | |
43609 | ||
43610 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
43611 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
43612 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 | |
43613 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
43614 | else | |
43615 | cat >>confdefs.h <<\_ACEOF | |
43616 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
43617 | _ACEOF | |
43618 | ||
43619 | fi | |
43620 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
43621 | fi | |
43622 | ||
43623 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then | |
43624 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
43625 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
43626 | { (exit 1); exit 1; }; } | |
43627 | fi | |
43628 | ||
43629 | ||
efdf6afe VZ |
43630 | if test "$wxUSE_METAFILE" = "yes"; then |
43631 | if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then | |
43632 | { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5 | |
43633 | echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;} | |
43634 | wxUSE_METAFILE=no | |
43635 | fi | |
43636 | fi | |
43637 | ||
43638 | ||
a848cd7e SC |
43639 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
43640 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
43641 | -o "$wxUSE_OLE" = "yes" \ | |
43642 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
43643 | ||
43644 | for ac_header in ole2.h | |
43645 | do | |
43646 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
43647 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
43648 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
43649 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
43650 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
43651 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43652 | fi | |
43653 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
43654 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
43655 | else | |
43656 | # Is the header compilable? | |
43657 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
43658 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
43659 | cat >conftest.$ac_ext <<_ACEOF | |
43660 | /* confdefs.h. */ | |
43661 | _ACEOF | |
43662 | cat confdefs.h >>conftest.$ac_ext | |
43663 | cat >>conftest.$ac_ext <<_ACEOF | |
43664 | /* end confdefs.h. */ | |
43665 | $ac_includes_default | |
43666 | #include <$ac_header> | |
43667 | _ACEOF | |
43668 | rm -f conftest.$ac_objext | |
43669 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43670 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43671 | ac_status=$? |
ac1cb8d3 VS |
43672 | grep -v '^ *+' conftest.er1 >conftest.err |
43673 | rm -f conftest.er1 | |
43674 | cat conftest.err >&5 | |
a848cd7e SC |
43675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43676 | (exit $ac_status); } && | |
d25774ab JS |
43677 | { ac_try='test -z "$ac_cxx_werror_flag" |
43678 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
43679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43680 | (eval $ac_try) 2>&5 | |
43681 | ac_status=$? | |
43682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43683 | (exit $ac_status); }; } && | |
43684 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43686 | (eval $ac_try) 2>&5 | |
43687 | ac_status=$? | |
43688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43689 | (exit $ac_status); }; }; then | |
43690 | ac_header_compiler=yes | |
43691 | else | |
43692 | echo "$as_me: failed program was:" >&5 | |
43693 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43694 | ||
43695 | ac_header_compiler=no | |
43696 | fi | |
ac1cb8d3 | 43697 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
43698 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
43699 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
43700 | ||
43701 | # Is the header present? | |
43702 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
43703 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
43704 | cat >conftest.$ac_ext <<_ACEOF | |
43705 | /* confdefs.h. */ | |
43706 | _ACEOF | |
43707 | cat confdefs.h >>conftest.$ac_ext | |
43708 | cat >>conftest.$ac_ext <<_ACEOF | |
43709 | /* end confdefs.h. */ | |
43710 | #include <$ac_header> | |
43711 | _ACEOF | |
43712 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
43713 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
43714 | ac_status=$? | |
43715 | grep -v '^ *+' conftest.er1 >conftest.err | |
43716 | rm -f conftest.er1 | |
43717 | cat conftest.err >&5 | |
43718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43719 | (exit $ac_status); } >/dev/null; then | |
43720 | if test -s conftest.err; then | |
5d7b7554 VZ |
43721 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
43722 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | |
a848cd7e SC |
43723 | else |
43724 | ac_cpp_err= | |
43725 | fi | |
43726 | else | |
43727 | ac_cpp_err=yes | |
43728 | fi | |
43729 | if test -z "$ac_cpp_err"; then | |
43730 | ac_header_preproc=yes | |
43731 | else | |
43732 | echo "$as_me: failed program was:" >&5 | |
43733 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43734 | ||
43735 | ac_header_preproc=no | |
43736 | fi | |
43737 | rm -f conftest.err conftest.$ac_ext | |
43738 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
43739 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
43740 | ||
43741 | # So? What about this header? | |
5d7b7554 | 43742 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
ac1cb8d3 | 43743 | yes:no: ) |
a848cd7e SC |
43744 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
43745 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
43746 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
43747 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
43748 | ac_header_preproc=yes | |
a848cd7e | 43749 | ;; |
ac1cb8d3 | 43750 | no:yes:* ) |
a848cd7e SC |
43751 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
43752 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
43753 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
43754 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
43755 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
43756 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
43757 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
43758 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
43759 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
43760 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
43761 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
43762 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
43763 | ( |
43764 | cat <<\_ASBOX | |
ac1cb8d3 VS |
43765 | ## ----------------------------------------- ## |
43766 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
43767 | ## ----------------------------------------- ## | |
a848cd7e SC |
43768 | _ASBOX |
43769 | ) | | |
43770 | sed "s/^/$as_me: WARNING: /" >&2 | |
43771 | ;; | |
43772 | esac | |
43773 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
43774 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
43775 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
43776 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43777 | else | |
ac1cb8d3 | 43778 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
43779 | fi |
43780 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
43781 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
43782 | ||
43783 | fi | |
43784 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
43785 | cat >>confdefs.h <<_ACEOF | |
43786 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
43787 | _ACEOF | |
43788 | ||
43789 | fi | |
43790 | ||
43791 | done | |
43792 | ||
43793 | ||
43794 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
43795 | if test "$GCC" = yes ; then | |
a848cd7e SC |
43796 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 |
43797 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
43798 | cat >conftest.$ac_ext <<_ACEOF | |
43799 | /* confdefs.h. */ | |
43800 | _ACEOF | |
43801 | cat confdefs.h >>conftest.$ac_ext | |
43802 | cat >>conftest.$ac_ext <<_ACEOF | |
43803 | /* end confdefs.h. */ | |
43804 | #include <windows.h> | |
43805 | #include <ole2.h> | |
43806 | int | |
43807 | main () | |
43808 | { | |
43809 | ||
43810 | ; | |
43811 | return 0; | |
43812 | } | |
43813 | _ACEOF | |
43814 | rm -f conftest.$ac_objext | |
43815 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43816 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43817 | ac_status=$? |
ac1cb8d3 VS |
43818 | grep -v '^ *+' conftest.er1 >conftest.err |
43819 | rm -f conftest.er1 | |
43820 | cat conftest.err >&5 | |
a848cd7e SC |
43821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43822 | (exit $ac_status); } && | |
d25774ab JS |
43823 | { ac_try='test -z "$ac_cxx_werror_flag" |
43824 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
43825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43826 | (eval $ac_try) 2>&5 | |
43827 | ac_status=$? | |
43828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43829 | (exit $ac_status); }; } && | |
43830 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43832 | (eval $ac_try) 2>&5 | |
43833 | ac_status=$? | |
43834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43835 | (exit $ac_status); }; }; then | |
43836 | echo "$as_me:$LINENO: result: no" >&5 | |
43837 | echo "${ECHO_T}no" >&6 | |
43838 | else | |
43839 | echo "$as_me: failed program was:" >&5 | |
43840 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43841 | ||
43842 | echo "$as_me:$LINENO: result: yes" >&5 | |
43843 | echo "${ECHO_T}yes" >&6 | |
5ff751d6 | 43844 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks" |
a848cd7e | 43845 | fi |
ac1cb8d3 | 43846 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
43847 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
43848 | if test "$wxUSE_OLE" = "yes" ; then | |
43849 | cat >>confdefs.h <<\_ACEOF | |
43850 | #define wxUSE_OLE 1 | |
43851 | _ACEOF | |
43852 | ||
0b78747f | 43853 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto" |
a848cd7e SC |
43854 | fi |
43855 | fi | |
43856 | ||
43857 | if test "$wxUSE_DATAOBJ" = "yes" ; then | |
43858 | cat >>confdefs.h <<\_ACEOF | |
43859 | #define wxUSE_DATAOBJ 1 | |
43860 | _ACEOF | |
43861 | ||
43862 | fi | |
43863 | else | |
43864 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 | |
43865 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
43866 | ||
43867 | wxUSE_CLIPBOARD=no | |
43868 | wxUSE_DRAG_AND_DROP=no | |
43869 | wxUSE_DATAOBJ=no | |
43870 | wxUSE_OLE=no | |
43871 | fi | |
43872 | ||
43873 | if test "$wxUSE_METAFILE" = "yes"; then | |
43874 | cat >>confdefs.h <<\_ACEOF | |
43875 | #define wxUSE_METAFILE 1 | |
43876 | _ACEOF | |
43877 | ||
43878 | ||
43879 | cat >>confdefs.h <<\_ACEOF | |
43880 | #define wxUSE_ENH_METAFILE 1 | |
43881 | _ACEOF | |
43882 | ||
43883 | fi | |
43884 | fi | |
43885 | ||
43886 | if test "$wxUSE_IPC" = "yes"; then | |
0b78747f | 43887 | if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then |
77ffb593 JS |
43888 | { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5 |
43889 | echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;} | |
0b78747f | 43890 | wxUSE_IPC=no |
a848cd7e SC |
43891 | fi |
43892 | ||
0b78747f MW |
43893 | if test "$wxUSE_IPC" = "yes"; then |
43894 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
43895 | #define wxUSE_IPC 1 |
43896 | _ACEOF | |
43897 | ||
0b78747f MW |
43898 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc" |
43899 | fi | |
a848cd7e SC |
43900 | fi |
43901 | ||
eb730a0c | 43902 | if test "$wxUSE_DATAOBJ" = "yes"; then |
2113bc77 MW |
43903 | if test "$wxUSE_MGL" = 1; then |
43904 | { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5 | |
43905 | echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;} | |
43906 | wxUSE_DATAOBJ=no | |
43907 | else | |
43908 | cat >>confdefs.h <<\_ACEOF | |
eb730a0c JS |
43909 | #define wxUSE_DATAOBJ 1 |
43910 | _ACEOF | |
43911 | ||
2113bc77 | 43912 | fi |
eb730a0c JS |
43913 | else |
43914 | { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5 | |
43915 | echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;} | |
43916 | wxUSE_CLIPBOARD=no | |
43917 | wxUSE_DRAG_AND_DROP=no | |
43918 | fi | |
43919 | ||
a848cd7e SC |
43920 | if test "$wxUSE_CLIPBOARD" = "yes"; then |
43921 | if test "$wxUSE_MGL" = 1; then | |
43922 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 | |
43923 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
43924 | wxUSE_CLIPBOARD=no | |
43925 | fi | |
43926 | ||
43927 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
43928 | cat >>confdefs.h <<\_ACEOF | |
43929 | #define wxUSE_CLIPBOARD 1 | |
43930 | _ACEOF | |
43931 | ||
a848cd7e SC |
43932 | fi |
43933 | fi | |
43934 | ||
43935 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
43936 | if test "$wxUSE_GTK" = 1; then | |
43937 | if test "$WXGTK12" != 1; then | |
43938 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 | |
43939 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
43940 | wxUSE_DRAG_AND_DROP=no | |
43941 | fi | |
43942 | fi | |
43943 | ||
43944 | if test "$wxUSE_MOTIF" = 1; then | |
43945 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 | |
43946 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
43947 | wxUSE_DRAG_AND_DROP=no | |
43948 | fi | |
43949 | ||
43950 | if test "$wxUSE_X11" = 1; then | |
43951 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 | |
43952 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
43953 | wxUSE_DRAG_AND_DROP=no | |
43954 | fi | |
43955 | ||
43956 | if test "$wxUSE_MGL" = 1; then | |
43957 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 | |
43958 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
43959 | wxUSE_DRAG_AND_DROP=no | |
43960 | fi | |
43961 | ||
43962 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
43963 | cat >>confdefs.h <<\_ACEOF | |
43964 | #define wxUSE_DRAG_AND_DROP 1 | |
43965 | _ACEOF | |
43966 | ||
43967 | fi | |
43968 | ||
43969 | fi | |
43970 | ||
43971 | if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then | |
43972 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
43973 | fi | |
43974 | ||
43975 | if test "$wxUSE_SPLINES" = "yes" ; then | |
43976 | cat >>confdefs.h <<\_ACEOF | |
43977 | #define wxUSE_SPLINES 1 | |
43978 | _ACEOF | |
43979 | ||
43980 | fi | |
43981 | ||
fbe2ca43 SN |
43982 | if test "$wxUSE_MOUSEWHEEL" = "yes" ; then |
43983 | cat >>confdefs.h <<\_ACEOF | |
43984 | #define wxUSE_MOUSEWHEEL 1 | |
43985 | _ACEOF | |
43986 | ||
43987 | fi | |
43988 | ||
a848cd7e SC |
43989 | |
43990 | USES_CONTROLS=0 | |
43991 | if test "$wxUSE_CONTROLS" = "yes"; then | |
43992 | USES_CONTROLS=1 | |
43993 | fi | |
43994 | ||
43995 | if test "$wxUSE_ACCEL" = "yes"; then | |
43996 | cat >>confdefs.h <<\_ACEOF | |
43997 | #define wxUSE_ACCEL 1 | |
43998 | _ACEOF | |
43999 | ||
44000 | USES_CONTROLS=1 | |
44001 | fi | |
44002 | ||
44003 | if test "$wxUSE_BUTTON" = "yes"; then | |
44004 | cat >>confdefs.h <<\_ACEOF | |
44005 | #define wxUSE_BUTTON 1 | |
44006 | _ACEOF | |
44007 | ||
44008 | USES_CONTROLS=1 | |
44009 | fi | |
44010 | ||
44011 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
44012 | cat >>confdefs.h <<\_ACEOF | |
44013 | #define wxUSE_BMPBUTTON 1 | |
44014 | _ACEOF | |
44015 | ||
44016 | USES_CONTROLS=1 | |
44017 | fi | |
44018 | ||
44019 | if test "$wxUSE_CALCTRL" = "yes"; then | |
44020 | cat >>confdefs.h <<\_ACEOF | |
44021 | #define wxUSE_CALENDARCTRL 1 | |
44022 | _ACEOF | |
44023 | ||
44024 | USES_CONTROLS=1 | |
44025 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
44026 | fi | |
44027 | ||
44028 | if test "$wxUSE_CARET" = "yes"; then | |
44029 | cat >>confdefs.h <<\_ACEOF | |
44030 | #define wxUSE_CARET 1 | |
44031 | _ACEOF | |
44032 | ||
44033 | USES_CONTROLS=1 | |
44034 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
44035 | fi | |
44036 | ||
44037 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
44038 | cat >>confdefs.h <<\_ACEOF | |
44039 | #define wxUSE_COMBOBOX 1 | |
44040 | _ACEOF | |
44041 | ||
44042 | USES_CONTROLS=1 | |
44043 | fi | |
44044 | ||
a57d600f | 44045 | if test "$wxUSE_COMBOCTRL" = "yes"; then |
642bcba9 | 44046 | cat >>confdefs.h <<\_ACEOF |
a57d600f | 44047 | #define wxUSE_COMBOCTRL 1 |
642bcba9 VZ |
44048 | _ACEOF |
44049 | ||
44050 | USES_CONTROLS=1 | |
44051 | fi | |
44052 | ||
a848cd7e SC |
44053 | if test "$wxUSE_CHOICE" = "yes"; then |
44054 | cat >>confdefs.h <<\_ACEOF | |
44055 | #define wxUSE_CHOICE 1 | |
44056 | _ACEOF | |
44057 | ||
44058 | USES_CONTROLS=1 | |
44059 | fi | |
44060 | ||
92bbdbcd WS |
44061 | if test "$wxUSE_CHOICEBOOK" = "yes"; then |
44062 | cat >>confdefs.h <<\_ACEOF | |
44063 | #define wxUSE_CHOICEBOOK 1 | |
44064 | _ACEOF | |
44065 | ||
44066 | USES_CONTROLS=1 | |
44067 | fi | |
44068 | ||
a848cd7e SC |
44069 | if test "$wxUSE_CHECKBOX" = "yes"; then |
44070 | cat >>confdefs.h <<\_ACEOF | |
44071 | #define wxUSE_CHECKBOX 1 | |
44072 | _ACEOF | |
44073 | ||
44074 | USES_CONTROLS=1 | |
44075 | fi | |
44076 | ||
44077 | if test "$wxUSE_CHECKLST" = "yes"; then | |
44078 | cat >>confdefs.h <<\_ACEOF | |
44079 | #define wxUSE_CHECKLISTBOX 1 | |
44080 | _ACEOF | |
44081 | ||
44082 | USES_CONTROLS=1 | |
44083 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
44084 | fi | |
44085 | ||
da98e9be VZ |
44086 | if test "$wxUSE_DATEPICKCTRL" = "yes"; then |
44087 | cat >>confdefs.h <<\_ACEOF | |
44088 | #define wxUSE_DATEPICKCTRL 1 | |
44089 | _ACEOF | |
44090 | ||
44091 | USES_CONTROLS=1 | |
44092 | fi | |
44093 | ||
a848cd7e SC |
44094 | if test "$wxUSE_DISPLAY" = "yes"; then |
44095 | cat >>confdefs.h <<\_ACEOF | |
44096 | #define wxUSE_DISPLAY 1 | |
44097 | _ACEOF | |
44098 | ||
0b78747f | 44099 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon" |
a848cd7e SC |
44100 | fi |
44101 | ||
44102 | if test "$wxUSE_GAUGE" = "yes"; then | |
44103 | cat >>confdefs.h <<\_ACEOF | |
44104 | #define wxUSE_GAUGE 1 | |
44105 | _ACEOF | |
44106 | ||
44107 | USES_CONTROLS=1 | |
44108 | fi | |
44109 | ||
44110 | if test "$wxUSE_GRID" = "yes"; then | |
44111 | cat >>confdefs.h <<\_ACEOF | |
44112 | #define wxUSE_GRID 1 | |
44113 | _ACEOF | |
44114 | ||
44115 | USES_CONTROLS=1 | |
44116 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
44117 | fi | |
44118 | ||
20e34ecc RR |
44119 | if test "$wxUSE_DATAVIEWCTRL" = "yes"; then |
44120 | cat >>confdefs.h <<\_ACEOF | |
44121 | #define wxUSE_DATAVIEWCTRL 1 | |
44122 | _ACEOF | |
44123 | ||
44124 | USES_CONTROLS=1 | |
44125 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview" | |
44126 | fi | |
44127 | ||
a848cd7e SC |
44128 | if test "$wxUSE_IMAGLIST" = "yes"; then |
44129 | cat >>confdefs.h <<\_ACEOF | |
44130 | #define wxUSE_IMAGLIST 1 | |
44131 | _ACEOF | |
44132 | ||
44133 | fi | |
44134 | ||
44135 | if test "$wxUSE_LISTBOOK" = "yes"; then | |
44136 | cat >>confdefs.h <<\_ACEOF | |
44137 | #define wxUSE_LISTBOOK 1 | |
44138 | _ACEOF | |
44139 | ||
44140 | USES_CONTROLS=1 | |
44141 | fi | |
44142 | ||
44143 | if test "$wxUSE_LISTBOX" = "yes"; then | |
44144 | cat >>confdefs.h <<\_ACEOF | |
44145 | #define wxUSE_LISTBOX 1 | |
44146 | _ACEOF | |
44147 | ||
44148 | USES_CONTROLS=1 | |
0b78747f | 44149 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox" |
a848cd7e SC |
44150 | fi |
44151 | ||
44152 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
44153 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
44154 | cat >>confdefs.h <<\_ACEOF | |
44155 | #define wxUSE_LISTCTRL 1 | |
44156 | _ACEOF | |
44157 | ||
44158 | USES_CONTROLS=1 | |
44159 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
44160 | else | |
44161 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 | |
44162 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
44163 | fi | |
44164 | fi | |
44165 | ||
44166 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
44167 | cat >>confdefs.h <<\_ACEOF | |
44168 | #define wxUSE_NOTEBOOK 1 | |
44169 | _ACEOF | |
44170 | ||
44171 | USES_CONTROLS=1 | |
44172 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
44173 | fi | |
44174 | ||
a57d600f | 44175 | if test "$wxUSE_ODCOMBOBOX" = "yes"; then |
642bcba9 | 44176 | cat >>confdefs.h <<\_ACEOF |
a57d600f | 44177 | #define wxUSE_ODCOMBOBOX 1 |
642bcba9 VZ |
44178 | _ACEOF |
44179 | ||
44180 | USES_CONTROLS=1 | |
44181 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo" | |
44182 | fi | |
44183 | ||
a848cd7e SC |
44184 | |
44185 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
44186 | cat >>confdefs.h <<\_ACEOF | |
44187 | #define wxUSE_RADIOBOX 1 | |
44188 | _ACEOF | |
44189 | ||
44190 | USES_CONTROLS=1 | |
44191 | fi | |
44192 | ||
44193 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
44194 | cat >>confdefs.h <<\_ACEOF | |
44195 | #define wxUSE_RADIOBTN 1 | |
44196 | _ACEOF | |
44197 | ||
44198 | USES_CONTROLS=1 | |
44199 | fi | |
44200 | ||
44201 | if test "$wxUSE_SASH" = "yes"; then | |
44202 | cat >>confdefs.h <<\_ACEOF | |
44203 | #define wxUSE_SASH 1 | |
44204 | _ACEOF | |
44205 | ||
44206 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
44207 | fi | |
44208 | ||
44209 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
44210 | cat >>confdefs.h <<\_ACEOF | |
44211 | #define wxUSE_SCROLLBAR 1 | |
44212 | _ACEOF | |
44213 | ||
44214 | USES_CONTROLS=1 | |
44215 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
44216 | fi | |
44217 | ||
44218 | if test "$wxUSE_SLIDER" = "yes"; then | |
44219 | cat >>confdefs.h <<\_ACEOF | |
44220 | #define wxUSE_SLIDER 1 | |
44221 | _ACEOF | |
44222 | ||
44223 | USES_CONTROLS=1 | |
44224 | fi | |
44225 | ||
44226 | if test "$wxUSE_SPINBTN" = "yes"; then | |
44227 | cat >>confdefs.h <<\_ACEOF | |
44228 | #define wxUSE_SPINBTN 1 | |
44229 | _ACEOF | |
44230 | ||
44231 | USES_CONTROLS=1 | |
44232 | fi | |
44233 | ||
44234 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
44235 | cat >>confdefs.h <<\_ACEOF | |
44236 | #define wxUSE_SPINCTRL 1 | |
44237 | _ACEOF | |
44238 | ||
44239 | USES_CONTROLS=1 | |
44240 | fi | |
44241 | ||
44242 | if test "$wxUSE_SPLITTER" = "yes"; then | |
44243 | cat >>confdefs.h <<\_ACEOF | |
44244 | #define wxUSE_SPLITTER 1 | |
44245 | _ACEOF | |
44246 | ||
44247 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
44248 | fi | |
44249 | ||
44250 | if test "$wxUSE_STATBMP" = "yes"; then | |
44251 | cat >>confdefs.h <<\_ACEOF | |
44252 | #define wxUSE_STATBMP 1 | |
44253 | _ACEOF | |
44254 | ||
44255 | USES_CONTROLS=1 | |
44256 | fi | |
44257 | ||
44258 | if test "$wxUSE_STATBOX" = "yes"; then | |
44259 | cat >>confdefs.h <<\_ACEOF | |
44260 | #define wxUSE_STATBOX 1 | |
44261 | _ACEOF | |
44262 | ||
44263 | USES_CONTROLS=1 | |
44264 | fi | |
44265 | ||
44266 | if test "$wxUSE_STATTEXT" = "yes"; then | |
44267 | cat >>confdefs.h <<\_ACEOF | |
44268 | #define wxUSE_STATTEXT 1 | |
44269 | _ACEOF | |
44270 | ||
44271 | USES_CONTROLS=1 | |
44272 | fi | |
44273 | ||
44274 | if test "$wxUSE_STATLINE" = "yes"; then | |
44275 | cat >>confdefs.h <<\_ACEOF | |
44276 | #define wxUSE_STATLINE 1 | |
44277 | _ACEOF | |
44278 | ||
44279 | USES_CONTROLS=1 | |
44280 | fi | |
44281 | ||
44282 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
da4486fb VZ |
44283 | cat >>confdefs.h <<\_ACEOF |
44284 | #define wxUSE_NATIVE_STATUSBAR 1 | |
44285 | _ACEOF | |
44286 | ||
a848cd7e SC |
44287 | cat >>confdefs.h <<\_ACEOF |
44288 | #define wxUSE_STATUSBAR 1 | |
44289 | _ACEOF | |
44290 | ||
44291 | USES_CONTROLS=1 | |
44292 | ||
44293 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
44294 | fi | |
44295 | ||
f10e38c4 | 44296 | if test "$wxUSE_TAB_DIALOG" = "yes"; then |
a848cd7e SC |
44297 | cat >>confdefs.h <<\_ACEOF |
44298 | #define wxUSE_TAB_DIALOG 1 | |
44299 | _ACEOF | |
44300 | ||
a848cd7e SC |
44301 | fi |
44302 | ||
44303 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
44304 | cat >>confdefs.h <<\_ACEOF | |
44305 | #define wxUSE_TEXTCTRL 1 | |
44306 | _ACEOF | |
44307 | ||
44308 | USES_CONTROLS=1 | |
44309 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
44310 | fi | |
44311 | ||
44312 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
44313 | if test "$wxUSE_COCOA" = 1 ; then | |
44314 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 | |
44315 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
44316 | wxUSE_TOGGLEBTN=no | |
44317 | fi | |
a848cd7e SC |
44318 | |
44319 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
44320 | cat >>confdefs.h <<\_ACEOF | |
44321 | #define wxUSE_TOGGLEBTN 1 | |
44322 | _ACEOF | |
44323 | ||
44324 | USES_CONTROLS=1 | |
44325 | fi | |
44326 | fi | |
44327 | ||
44328 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
44329 | cat >>confdefs.h <<\_ACEOF | |
44330 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
44331 | _ACEOF | |
44332 | ||
44333 | wxUSE_TOOLBAR="yes" | |
44334 | USES_CONTROLS=1 | |
44335 | fi | |
44336 | ||
44337 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
44338 | cat >>confdefs.h <<\_ACEOF | |
44339 | #define wxUSE_TOOLBAR 1 | |
44340 | _ACEOF | |
44341 | ||
44342 | USES_CONTROLS=1 | |
44343 | ||
44344 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
44345 | wxUSE_TOOLBAR_NATIVE="yes" | |
44346 | fi | |
44347 | ||
44348 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
44349 | cat >>confdefs.h <<\_ACEOF | |
44350 | #define wxUSE_TOOLBAR_NATIVE 1 | |
44351 | _ACEOF | |
44352 | ||
44353 | USES_CONTROLS=1 | |
44354 | fi | |
44355 | ||
44356 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
44357 | fi | |
44358 | ||
44359 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
44360 | if test "$wxUSE_MOTIF" = 1; then | |
44361 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 | |
44362 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
44363 | else | |
44364 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
44365 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 | |
44366 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
44367 | else | |
44368 | cat >>confdefs.h <<\_ACEOF | |
44369 | #define wxUSE_TOOLTIPS 1 | |
44370 | _ACEOF | |
44371 | ||
44372 | fi | |
44373 | fi | |
44374 | fi | |
44375 | ||
0093c2fc VZ |
44376 | if test "$wxUSE_TREEBOOK" = "yes"; then |
44377 | cat >>confdefs.h <<\_ACEOF | |
44378 | #define wxUSE_TREEBOOK 1 | |
44379 | _ACEOF | |
44380 | ||
44381 | USES_CONTROLS=1 | |
44382 | fi | |
44383 | ||
5ec3bc43 JS |
44384 | if test "$wxUSE_TOOLBOOK" = "yes"; then |
44385 | cat >>confdefs.h <<\_ACEOF | |
44386 | #define wxUSE_TOOLBOOK 1 | |
44387 | _ACEOF | |
44388 | ||
44389 | USES_CONTROLS=1 | |
44390 | fi | |
44391 | ||
a848cd7e SC |
44392 | if test "$wxUSE_TREECTRL" = "yes"; then |
44393 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
44394 | cat >>confdefs.h <<\_ACEOF | |
44395 | #define wxUSE_TREECTRL 1 | |
44396 | _ACEOF | |
44397 | ||
44398 | USES_CONTROLS=1 | |
44399 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
44400 | else | |
44401 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 | |
44402 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
44403 | fi | |
44404 | fi | |
44405 | ||
44406 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
44407 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
44408 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 | |
44409 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
44410 | else | |
44411 | if test "$wxUSE_PM" = 1; then | |
44412 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
44413 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
44414 | else | |
44415 | cat >>confdefs.h <<\_ACEOF | |
44416 | #define wxUSE_POPUPWIN 1 | |
44417 | _ACEOF | |
44418 | ||
0b78747f | 44419 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup" |
a848cd7e SC |
44420 | |
44421 | USES_CONTROLS=1 | |
44422 | fi | |
44423 | fi | |
44424 | fi | |
44425 | ||
0dcd06dd | 44426 | if test "$wxUSE_DIALUP_MANAGER" = "yes"; then |
b843b628 MB |
44427 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
44428 | { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5 | |
44429 | echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;} | |
44430 | else | |
44431 | cat >>confdefs.h <<\_ACEOF | |
44432 | #define wxUSE_DIALUP_MANAGER 1 | |
44433 | _ACEOF | |
44434 | ||
44435 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
44436 | fi | |
44437 | fi | |
44438 | ||
a848cd7e SC |
44439 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
44440 | if test "$wxUSE_PM" = 1; then | |
44441 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 | |
44442 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
44443 | else | |
44444 | cat >>confdefs.h <<\_ACEOF | |
44445 | #define wxUSE_TIPWINDOW 1 | |
44446 | _ACEOF | |
44447 | ||
44448 | fi | |
44449 | fi | |
44450 | ||
44451 | if test "$USES_CONTROLS" = 1; then | |
44452 | cat >>confdefs.h <<\_ACEOF | |
44453 | #define wxUSE_CONTROLS 1 | |
44454 | _ACEOF | |
44455 | ||
44456 | fi | |
44457 | ||
44458 | ||
44459 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then | |
44460 | cat >>confdefs.h <<\_ACEOF | |
44461 | #define wxUSE_ACCESSIBILITY 1 | |
44462 | _ACEOF | |
44463 | ||
44464 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
44465 | fi | |
44466 | ||
38b4a946 VZ |
44467 | if test "$wxUSE_DC_CACHEING" = "yes"; then |
44468 | cat >>confdefs.h <<\_ACEOF | |
44469 | #define wxUSE_DC_CACHEING 1 | |
44470 | _ACEOF | |
44471 | ||
44472 | fi | |
44473 | ||
a848cd7e SC |
44474 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
44475 | cat >>confdefs.h <<\_ACEOF | |
44476 | #define wxUSE_DRAGIMAGE 1 | |
44477 | _ACEOF | |
44478 | ||
44479 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
44480 | fi | |
44481 | ||
44482 | if test "$wxUSE_EXCEPTIONS" = "yes"; then | |
07bea8f0 VS |
44483 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
44484 | { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5 | |
44485 | echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;} | |
44486 | else | |
44487 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
44488 | #define wxUSE_EXCEPTIONS 1 |
44489 | _ACEOF | |
44490 | ||
07bea8f0 VS |
44491 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except" |
44492 | fi | |
a848cd7e SC |
44493 | fi |
44494 | ||
44495 | USE_HTML=0 | |
44496 | if test "$wxUSE_HTML" = "yes"; then | |
44497 | cat >>confdefs.h <<\_ACEOF | |
44498 | #define wxUSE_HTML 1 | |
44499 | _ACEOF | |
44500 | ||
44501 | USE_HTML=1 | |
44502 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
de59c161 RD |
44503 | if test "$wxUSE_MAC" = 1; then |
44504 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl" | |
44505 | fi | |
a848cd7e | 44506 | fi |
646b6ec1 | 44507 | if test "$wxUSE_WEBKIT" = "yes"; then |
1e9e8aba | 44508 | if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then |
07bea8f0 | 44509 | old_CPPFLAGS="$CPPFLAGS" |
c92ad099 | 44510 | CPPFLAGS="-x objective-c++ $CPPFLAGS" |
07bea8f0 VS |
44511 | echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5 |
44512 | echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6 | |
44513 | if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then | |
44514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44515 | else | |
44516 | cat >conftest.$ac_ext <<_ACEOF | |
44517 | /* confdefs.h. */ | |
44518 | _ACEOF | |
44519 | cat confdefs.h >>conftest.$ac_ext | |
44520 | cat >>conftest.$ac_ext <<_ACEOF | |
44521 | /* end confdefs.h. */ | |
44522 | #include <Carbon/Carbon.h> | |
44523 | ||
44524 | #include <WebKit/HIWebView.h> | |
44525 | _ACEOF | |
44526 | rm -f conftest.$ac_objext | |
44527 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
44528 | (eval $ac_compile) 2>conftest.er1 | |
44529 | ac_status=$? | |
44530 | grep -v '^ *+' conftest.er1 >conftest.err | |
44531 | rm -f conftest.er1 | |
44532 | cat conftest.err >&5 | |
44533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44534 | (exit $ac_status); } && | |
d25774ab JS |
44535 | { ac_try='test -z "$ac_cxx_werror_flag" |
44536 | || test ! -s conftest.err' | |
07bea8f0 VS |
44537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44538 | (eval $ac_try) 2>&5 | |
44539 | ac_status=$? | |
44540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44541 | (exit $ac_status); }; } && | |
44542 | { ac_try='test -s conftest.$ac_objext' | |
44543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
44544 | (eval $ac_try) 2>&5 | |
44545 | ac_status=$? | |
44546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44547 | (exit $ac_status); }; }; then | |
44548 | ac_cv_header_WebKit_HIWebView_h=yes | |
44549 | else | |
44550 | echo "$as_me: failed program was:" >&5 | |
44551 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44552 | ||
44553 | ac_cv_header_WebKit_HIWebView_h=no | |
44554 | fi | |
44555 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
44556 | fi | |
44557 | echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5 | |
44558 | echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6 | |
44559 | if test $ac_cv_header_WebKit_HIWebView_h = yes; then | |
44560 | ||
44561 | cat >>confdefs.h <<\_ACEOF | |
646b6ec1 VS |
44562 | #define wxUSE_WEBKIT 1 |
44563 | _ACEOF | |
44564 | ||
07bea8f0 VS |
44565 | WEBKIT_LINK="-framework WebKit" |
44566 | ||
44567 | else | |
44568 | ||
44569 | { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5 | |
44570 | echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;} | |
44571 | wxUSE_WEBKIT=no | |
44572 | ||
646b6ec1 VS |
44573 | fi |
44574 | ||
07bea8f0 VS |
44575 | |
44576 | CPPFLAGS="$old_CPPFLAGS" | |
44577 | elif test "$wxUSE_COCOA" = 1; then | |
44578 | cat >>confdefs.h <<\_ACEOF | |
44579 | #define wxUSE_WEBKIT 1 | |
44580 | _ACEOF | |
44581 | ||
44582 | else | |
44583 | wxUSE_WEBKIT=no | |
44584 | fi | |
44585 | fi | |
44586 | ||
9a8f0513 VS |
44587 | USE_XRC=0 |
44588 | if test "$wxUSE_XRC" = "yes"; then | |
d2ebf0b7 VS |
44589 | if test "$wxUSE_XML" != "yes"; then |
44590 | { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5 | |
44591 | echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;} | |
44592 | wxUSE_XRC=no | |
44593 | else | |
44594 | cat >>confdefs.h <<\_ACEOF | |
9a8f0513 VS |
44595 | #define wxUSE_XRC 1 |
44596 | _ACEOF | |
44597 | ||
d2ebf0b7 VS |
44598 | USE_XRC=1 |
44599 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc" | |
44600 | fi | |
9a8f0513 | 44601 | fi |
07bea8f0 | 44602 | |
a848cd7e SC |
44603 | if test "$wxUSE_MENUS" = "yes"; then |
44604 | cat >>confdefs.h <<\_ACEOF | |
44605 | #define wxUSE_MENUS 1 | |
44606 | _ACEOF | |
44607 | ||
44608 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
44609 | fi | |
44610 | ||
44611 | if test "$wxUSE_METAFILE" = "yes"; then | |
44612 | cat >>confdefs.h <<\_ACEOF | |
44613 | #define wxUSE_METAFILE 1 | |
44614 | _ACEOF | |
44615 | ||
44616 | fi | |
44617 | ||
44618 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
44619 | cat >>confdefs.h <<\_ACEOF | |
44620 | #define wxUSE_MIMETYPE 1 | |
44621 | _ACEOF | |
44622 | ||
44623 | fi | |
44624 | ||
44625 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
44626 | cat >>confdefs.h <<\_ACEOF | |
44627 | #define wxUSE_MINIFRAME 1 | |
44628 | _ACEOF | |
44629 | ||
44630 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
44631 | fi | |
44632 | ||
44633 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
44634 | cat >>confdefs.h <<\_ACEOF | |
44635 | #define wxUSE_SYSTEM_OPTIONS 1 | |
44636 | _ACEOF | |
44637 | ||
44638 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ | |
a49baeab | 44639 | "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then |
a848cd7e SC |
44640 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" |
44641 | fi | |
44642 | fi | |
44643 | ||
44644 | ||
44645 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
44646 | cat >>confdefs.h <<\_ACEOF | |
44647 | #define wxUSE_VALIDATORS 1 | |
44648 | _ACEOF | |
44649 | ||
44650 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
44651 | fi | |
44652 | ||
44653 | if test "$wxUSE_PALETTE" = "yes" ; then | |
44654 | cat >>confdefs.h <<\_ACEOF | |
44655 | #define wxUSE_PALETTE 1 | |
44656 | _ACEOF | |
44657 | ||
44658 | fi | |
44659 | ||
44660 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
44661 | LIBS=" -lunicows $LIBS" | |
44662 | fi | |
44663 | ||
91dea314 MW |
44664 | USE_RICHTEXT=0 |
44665 | if test "$wxUSE_RICHTEXT" = "yes"; then | |
44666 | cat >>confdefs.h <<\_ACEOF | |
44667 | #define wxUSE_RICHTEXT 1 | |
44668 | _ACEOF | |
44669 | ||
44670 | USE_RICHTEXT=1 | |
44671 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext" | |
44672 | fi | |
44673 | ||
a848cd7e SC |
44674 | |
44675 | if test "$wxUSE_IMAGE" = "yes" ; then | |
44676 | cat >>confdefs.h <<\_ACEOF | |
44677 | #define wxUSE_IMAGE 1 | |
44678 | _ACEOF | |
44679 | ||
44680 | ||
44681 | if test "$wxUSE_GIF" = "yes" ; then | |
44682 | cat >>confdefs.h <<\_ACEOF | |
44683 | #define wxUSE_GIF 1 | |
44684 | _ACEOF | |
44685 | ||
44686 | fi | |
44687 | ||
44688 | if test "$wxUSE_PCX" = "yes" ; then | |
44689 | cat >>confdefs.h <<\_ACEOF | |
44690 | #define wxUSE_PCX 1 | |
44691 | _ACEOF | |
44692 | ||
44693 | fi | |
44694 | ||
44695 | if test "$wxUSE_IFF" = "yes" ; then | |
44696 | cat >>confdefs.h <<\_ACEOF | |
44697 | #define wxUSE_IFF 1 | |
44698 | _ACEOF | |
44699 | ||
44700 | fi | |
44701 | ||
44702 | if test "$wxUSE_PNM" = "yes" ; then | |
44703 | cat >>confdefs.h <<\_ACEOF | |
44704 | #define wxUSE_PNM 1 | |
44705 | _ACEOF | |
44706 | ||
44707 | fi | |
44708 | ||
44709 | if test "$wxUSE_XPM" = "yes" ; then | |
44710 | cat >>confdefs.h <<\_ACEOF | |
44711 | #define wxUSE_XPM 1 | |
44712 | _ACEOF | |
44713 | ||
44714 | fi | |
44715 | ||
44716 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
44717 | cat >>confdefs.h <<\_ACEOF | |
44718 | #define wxUSE_ICO_CUR 1 | |
44719 | _ACEOF | |
44720 | ||
44721 | fi | |
44722 | fi | |
44723 | ||
44724 | ||
44725 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
44726 | cat >>confdefs.h <<\_ACEOF | |
44727 | #define wxUSE_CHOICEDLG 1 | |
44728 | _ACEOF | |
44729 | ||
44730 | fi | |
44731 | ||
44732 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
44733 | cat >>confdefs.h <<\_ACEOF | |
44734 | #define wxUSE_COLOURDLG 1 | |
44735 | _ACEOF | |
44736 | ||
44737 | fi | |
44738 | ||
44739 | if test "$wxUSE_FILEDLG" = "yes"; then | |
44740 | cat >>confdefs.h <<\_ACEOF | |
44741 | #define wxUSE_FILEDLG 1 | |
44742 | _ACEOF | |
44743 | ||
44744 | fi | |
44745 | ||
44746 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
44747 | cat >>confdefs.h <<\_ACEOF | |
44748 | #define wxUSE_FINDREPLDLG 1 | |
44749 | _ACEOF | |
44750 | ||
44751 | fi | |
44752 | ||
44753 | if test "$wxUSE_FONTDLG" = "yes"; then | |
44754 | cat >>confdefs.h <<\_ACEOF | |
44755 | #define wxUSE_FONTDLG 1 | |
44756 | _ACEOF | |
44757 | ||
44758 | fi | |
44759 | ||
44760 | if test "$wxUSE_DIRDLG" = "yes"; then | |
44761 | if test "$wxUSE_TREECTRL" != "yes"; then | |
44762 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 | |
44763 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
44764 | else | |
44765 | cat >>confdefs.h <<\_ACEOF | |
44766 | #define wxUSE_DIRDLG 1 | |
44767 | _ACEOF | |
44768 | ||
44769 | fi | |
44770 | fi | |
44771 | ||
44772 | if test "$wxUSE_MSGDLG" = "yes"; then | |
44773 | cat >>confdefs.h <<\_ACEOF | |
44774 | #define wxUSE_MSGDLG 1 | |
44775 | _ACEOF | |
44776 | ||
44777 | fi | |
44778 | ||
44779 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
44780 | cat >>confdefs.h <<\_ACEOF | |
44781 | #define wxUSE_NUMBERDLG 1 | |
44782 | _ACEOF | |
44783 | ||
44784 | fi | |
44785 | ||
44786 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
44787 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
44788 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 | |
44789 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
44790 | else | |
44791 | cat >>confdefs.h <<\_ACEOF | |
44792 | #define wxUSE_PROGRESSDLG 1 | |
44793 | _ACEOF | |
44794 | ||
44795 | fi | |
44796 | fi | |
44797 | ||
44798 | if test "$wxUSE_SPLASH" = "yes"; then | |
44799 | cat >>confdefs.h <<\_ACEOF | |
44800 | #define wxUSE_SPLASH 1 | |
44801 | _ACEOF | |
44802 | ||
2057db16 | 44803 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash" |
a848cd7e SC |
44804 | fi |
44805 | ||
44806 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
44807 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
44808 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 | |
44809 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
44810 | else | |
44811 | cat >>confdefs.h <<\_ACEOF | |
44812 | #define wxUSE_STARTUP_TIPS 1 | |
44813 | _ACEOF | |
44814 | ||
44815 | fi | |
44816 | fi | |
44817 | ||
44818 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
44819 | cat >>confdefs.h <<\_ACEOF | |
44820 | #define wxUSE_TEXTDLG 1 | |
44821 | _ACEOF | |
44822 | ||
44823 | fi | |
44824 | ||
44825 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
44826 | cat >>confdefs.h <<\_ACEOF | |
44827 | #define wxUSE_WIZARDDLG 1 | |
44828 | _ACEOF | |
44829 | ||
44830 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
44831 | fi | |
44832 | ||
44833 | ||
f10e38c4 VZ |
44834 | USE_MEDIA=0 |
44835 | ||
ce756cb0 | 44836 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
ce756cb0 RN |
44837 | if test "$wxUSE_GTK" = 1; then |
44838 | wxUSE_GSTREAMER="yes" | |
44839 | ||
f10e38c4 VZ |
44840 | GST_VERSION_MAJOR=0 |
44841 | GST_VERSION_MINOR=10 | |
44842 | GST_VERSION_RELEASE=0 | |
44843 | GSTREAMER_REQ=$GST_VERSION_MAJOR.$GST_VERSION_MINOR.$GST_VERSION_RELEASE | |
44844 | GST_MAJORMINOR=$GST_VERSION_MAJOR.$GST_VERSION_MINOR | |
44845 | ||
44846 | if test "$wxUSE_GSTREAMER8" = "no"; then | |
ce756cb0 | 44847 | |
dae87f93 | 44848 | succeeded=no |
ce756cb0 | 44849 | |
dae87f93 RN |
44850 | if test -z "$PKG_CONFIG"; then |
44851 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
44852 | set dummy pkg-config; ac_word=$2 | |
44853 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
44854 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
44855 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
44856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44857 | else | |
44858 | case $PKG_CONFIG in | |
44859 | [\\/]* | ?:[\\/]*) | |
44860 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
44861 | ;; | |
44862 | *) | |
44863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
44864 | for as_dir in $PATH | |
44865 | do | |
44866 | IFS=$as_save_IFS | |
44867 | test -z "$as_dir" && as_dir=. | |
44868 | for ac_exec_ext in '' $ac_executable_extensions; do | |
44869 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
44870 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
44871 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
44872 | break 2 | |
44873 | fi | |
44874 | done | |
44875 | done | |
44876 | ||
44877 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
44878 | ;; | |
44879 | esac | |
44880 | fi | |
44881 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
44882 | ||
44883 | if test -n "$PKG_CONFIG"; then | |
44884 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
44885 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
44886 | else | |
44887 | echo "$as_me:$LINENO: result: no" >&5 | |
44888 | echo "${ECHO_T}no" >&6 | |
44889 | fi | |
44890 | ||
44891 | fi | |
44892 | ||
44893 | if test "$PKG_CONFIG" = "no" ; then | |
44894 | echo "*** The pkg-config script could not be found. Make sure it is" | |
44895 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
44896 | echo "*** to the full path to pkg-config." | |
44897 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
44898 | else | |
44899 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
44900 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
f10e38c4 VZ |
44901 | echo "$as_me:$LINENO: checking for gstreamer-$GST_MAJORMINOR |
44902 | gstreamer-plugins-base-$GST_MAJORMINOR | |
44903 | gconf-2.0" >&5 | |
44904 | echo $ECHO_N "checking for gstreamer-$GST_MAJORMINOR | |
44905 | gstreamer-plugins-base-$GST_MAJORMINOR | |
44906 | gconf-2.0... $ECHO_C" >&6 | |
44907 | ||
44908 | if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR | |
44909 | gstreamer-plugins-base-$GST_MAJORMINOR | |
44910 | gconf-2.0" ; then | |
dae87f93 | 44911 | echo "$as_me:$LINENO: result: yes" >&5 |
ce756cb0 | 44912 | echo "${ECHO_T}yes" >&6 |
dae87f93 | 44913 | succeeded=yes |
ce756cb0 | 44914 | |
f10e38c4 VZ |
44915 | echo "$as_me:$LINENO: checking GST_CFLAGS" >&5 |
44916 | echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6 | |
44917 | GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR | |
44918 | gstreamer-plugins-base-$GST_MAJORMINOR | |
44919 | gconf-2.0"` | |
44920 | echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5 | |
44921 | echo "${ECHO_T}$GST_CFLAGS" >&6 | |
44922 | ||
44923 | echo "$as_me:$LINENO: checking GST_LIBS" >&5 | |
44924 | echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6 | |
44925 | GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR | |
44926 | gstreamer-plugins-base-$GST_MAJORMINOR | |
44927 | gconf-2.0"` | |
44928 | echo "$as_me:$LINENO: result: $GST_LIBS" >&5 | |
44929 | echo "${ECHO_T}$GST_LIBS" >&6 | |
dae87f93 | 44930 | else |
f10e38c4 VZ |
44931 | GST_CFLAGS="" |
44932 | GST_LIBS="" | |
dae87f93 RN |
44933 | ## If we have a custom action on failure, don't print errors, but |
44934 | ## do set a variable so people can do so. | |
f10e38c4 VZ |
44935 | GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR |
44936 | gstreamer-plugins-base-$GST_MAJORMINOR | |
44937 | gconf-2.0"` | |
ce756cb0 | 44938 | |
dae87f93 RN |
44939 | fi |
44940 | ||
44941 | ||
44942 | ||
44943 | else | |
44944 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
44945 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
44946 | fi | |
44947 | fi | |
44948 | ||
44949 | if test $succeeded = yes; then | |
44950 | ||
f10e38c4 VZ |
44951 | CPPFLAGS="$GST_CFLAGS $CPPFLAGS" |
44952 | LIBS="$LIBS $GST_LIBS -lgstinterfaces-$GST_MAJORMINOR" | |
ce756cb0 | 44953 | |
ce756cb0 | 44954 | else |
dae87f93 | 44955 | |
f10e38c4 | 44956 | GST_VERSION_MINOR=8 |
dae87f93 RN |
44957 | |
44958 | fi | |
44959 | ||
f10e38c4 VZ |
44960 | else |
44961 | GST_VERSION_MINOR=8 | |
44962 | fi | |
dae87f93 | 44963 | |
f10e38c4 VZ |
44964 | GSTREAMER_REQ=$GST_VERSION_MAJOR.$GST_VERSION_MINOR.$GST_VERSION_RELEASE |
44965 | GST_MAJORMINOR=$GST_VERSION_MAJOR.$GST_VERSION_MINOR | |
dae87f93 | 44966 | |
f10e38c4 | 44967 | if test x$GST_VERSION_MINOR = x8; then |
dae87f93 | 44968 | |
f10e38c4 | 44969 | succeeded=no |
dae87f93 | 44970 | |
f10e38c4 VZ |
44971 | if test -z "$PKG_CONFIG"; then |
44972 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
44973 | set dummy pkg-config; ac_word=$2 | |
dae87f93 RN |
44974 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
44975 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
f10e38c4 | 44976 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
dae87f93 RN |
44977 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
44978 | else | |
f10e38c4 VZ |
44979 | case $PKG_CONFIG in |
44980 | [\\/]* | ?:[\\/]*) | |
44981 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
44982 | ;; | |
44983 | *) | |
44984 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
dae87f93 RN |
44985 | for as_dir in $PATH |
44986 | do | |
44987 | IFS=$as_save_IFS | |
44988 | test -z "$as_dir" && as_dir=. | |
44989 | for ac_exec_ext in '' $ac_executable_extensions; do | |
44990 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
f10e38c4 | 44991 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
dae87f93 RN |
44992 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
44993 | break 2 | |
ce756cb0 | 44994 | fi |
dae87f93 RN |
44995 | done |
44996 | done | |
44997 | ||
f10e38c4 VZ |
44998 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
44999 | ;; | |
45000 | esac | |
dae87f93 | 45001 | fi |
f10e38c4 VZ |
45002 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
45003 | ||
45004 | if test -n "$PKG_CONFIG"; then | |
45005 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
45006 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
dae87f93 RN |
45007 | else |
45008 | echo "$as_me:$LINENO: result: no" >&5 | |
45009 | echo "${ECHO_T}no" >&6 | |
45010 | fi | |
45011 | ||
f10e38c4 | 45012 | fi |
ce756cb0 | 45013 | |
f10e38c4 VZ |
45014 | if test "$PKG_CONFIG" = "no" ; then |
45015 | echo "*** The pkg-config script could not be found. Make sure it is" | |
45016 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
45017 | echo "*** to the full path to pkg-config." | |
45018 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
45019 | else | |
45020 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
45021 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
45022 | echo "$as_me:$LINENO: checking for gstreamer-$GST_MAJORMINOR | |
45023 | gstreamer-interfaces-$GST_MAJORMINOR | |
45024 | gstreamer-gconf-$GST_MAJORMINOR" >&5 | |
45025 | echo $ECHO_N "checking for gstreamer-$GST_MAJORMINOR | |
45026 | gstreamer-interfaces-$GST_MAJORMINOR | |
45027 | gstreamer-gconf-$GST_MAJORMINOR... $ECHO_C" >&6 | |
45028 | ||
45029 | if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR | |
45030 | gstreamer-interfaces-$GST_MAJORMINOR | |
45031 | gstreamer-gconf-$GST_MAJORMINOR" ; then | |
45032 | echo "$as_me:$LINENO: result: yes" >&5 | |
45033 | echo "${ECHO_T}yes" >&6 | |
45034 | succeeded=yes | |
dae87f93 | 45035 | |
f10e38c4 VZ |
45036 | echo "$as_me:$LINENO: checking GST_CFLAGS" >&5 |
45037 | echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6 | |
45038 | GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR | |
45039 | gstreamer-interfaces-$GST_MAJORMINOR | |
45040 | gstreamer-gconf-$GST_MAJORMINOR"` | |
45041 | echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5 | |
45042 | echo "${ECHO_T}$GST_CFLAGS" >&6 | |
45043 | ||
45044 | echo "$as_me:$LINENO: checking GST_LIBS" >&5 | |
45045 | echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6 | |
45046 | GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR | |
45047 | gstreamer-interfaces-$GST_MAJORMINOR | |
45048 | gstreamer-gconf-$GST_MAJORMINOR"` | |
45049 | echo "$as_me:$LINENO: result: $GST_LIBS" >&5 | |
45050 | echo "${ECHO_T}$GST_LIBS" >&6 | |
45051 | else | |
45052 | GST_CFLAGS="" | |
45053 | GST_LIBS="" | |
45054 | ## If we have a custom action on failure, don't print errors, but | |
45055 | ## do set a variable so people can do so. | |
45056 | GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR | |
45057 | gstreamer-interfaces-$GST_MAJORMINOR | |
45058 | gstreamer-gconf-$GST_MAJORMINOR"` | |
dae87f93 | 45059 | |
dae87f93 RN |
45060 | fi |
45061 | ||
45062 | ||
ce756cb0 | 45063 | |
f10e38c4 VZ |
45064 | else |
45065 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
45066 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
45067 | fi | |
45068 | fi | |
ce756cb0 | 45069 | |
f10e38c4 | 45070 | if test $succeeded = yes; then |
dae87f93 | 45071 | |
f10e38c4 VZ |
45072 | CPPFLAGS="$GST_CFLAGS $CPPFLAGS" |
45073 | LIBS="$LIBS $GST_LIBS" | |
dae87f93 | 45074 | |
f10e38c4 | 45075 | else |
ce756cb0 | 45076 | |
f10e38c4 VZ |
45077 | { echo "$as_me:$LINENO: WARNING: Proper GStreamer .8/.10 installation not found" >&5 |
45078 | echo "$as_me: WARNING: Proper GStreamer .8/.10 installation not found" >&2;} | |
45079 | wxUSE_GSTREAMER="no" | |
ce756cb0 | 45080 | |
f10e38c4 | 45081 | fi |
ce756cb0 | 45082 | |
dae87f93 | 45083 | fi |
ce756cb0 | 45084 | |
f10e38c4 | 45085 | |
dae87f93 RN |
45086 | if test "$wxUSE_GSTREAMER" = "yes"; then |
45087 | cat >>confdefs.h <<\_ACEOF | |
ce756cb0 RN |
45088 | #define wxUSE_GSTREAMER 1 |
45089 | _ACEOF | |
45090 | ||
dae87f93 RN |
45091 | echo "$as_me:$LINENO: result: GStreamer detection successful" >&5 |
45092 | echo "${ECHO_T}GStreamer detection successful" >&6 | |
ce756cb0 RN |
45093 | fi |
45094 | fi | |
f10e38c4 | 45095 | USE_MEDIA=1 |
ce756cb0 RN |
45096 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer" |
45097 | cat >>confdefs.h <<\_ACEOF | |
45098 | #define wxUSE_MEDIACTRL 1 | |
45099 | _ACEOF | |
45100 | ||
45101 | fi | |
45102 | ||
45103 | ||
a848cd7e SC |
45104 | if test "$cross_compiling" = "yes"; then |
45105 | OSINFO="\"$host\"" | |
45106 | else | |
45107 | OSINFO=`uname -s -r -m` | |
45108 | OSINFO="\"$OSINFO\"" | |
45109 | fi | |
45110 | ||
45111 | cat >>confdefs.h <<_ACEOF | |
45112 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
45113 | _ACEOF | |
45114 | ||
45115 | ||
45116 | ||
45117 | if test "x$prefix" != "xNONE"; then | |
45118 | wxPREFIX=$prefix | |
45119 | else | |
45120 | wxPREFIX=$ac_default_prefix | |
45121 | fi | |
45122 | ||
45123 | cat >>confdefs.h <<_ACEOF | |
45124 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
45125 | _ACEOF | |
45126 | ||
45127 | ||
a848cd7e SC |
45128 | |
45129 | ||
45130 | CORE_BASE_LIBS="net base" | |
45131 | CORE_GUI_LIBS="adv core" | |
45132 | ||
45133 | if test "$wxUSE_XML" = "yes" ; then | |
45134 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
45135 | fi | |
45136 | if test "$wxUSE_ODBC" != "no" ; then | |
45137 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
45138 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
45139 | fi | |
45140 | if test "$wxUSE_HTML" = "yes" ; then | |
45141 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
45142 | fi | |
61639efb VZ |
45143 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
45144 | CORE_GUI_LIBS="qa $CORE_GUI_LIBS" | |
45145 | fi | |
9a8f0513 VS |
45146 | if test "$wxUSE_XRC" = "yes" ; then |
45147 | CORE_GUI_LIBS="xrc $CORE_GUI_LIBS" | |
45148 | fi | |
a848cd7e SC |
45149 | |
45150 | if test "$wxUSE_GUI" != "yes"; then | |
45151 | CORE_GUI_LIBS="" | |
45152 | fi | |
45153 | ||
45154 | ||
45155 | ||
45156 | ||
45157 | ||
5d7b7554 VZ |
45158 | ac_ext=c |
45159 | ac_cpp='$CPP $CPPFLAGS' | |
45160 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
45161 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
45162 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
45163 | ||
a848cd7e SC |
45164 | |
45165 | ||
a848cd7e | 45166 | if test "$wxUSE_MAC" = 1 ; then |
a98bf0c0 | 45167 | if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then |
1e9e8aba DE |
45168 | if test "$USE_DARWIN" = 1; then |
45169 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
45170 | else | |
45171 | LDFLAGS="$LDFLAGS -lQuickTimeLib" | |
45172 | fi | |
07bea8f0 | 45173 | fi |
5dcf30a0 | 45174 | if test "$USE_DARWIN" = 1; then |
1e9e8aba DE |
45175 | LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System" |
45176 | else | |
45177 | LDFLAGS="$LDFLAGS -lCarbonLib" | |
5dcf30a0 | 45178 | fi |
a848cd7e SC |
45179 | fi |
45180 | if test "$wxUSE_COCOA" = 1 ; then | |
4cb1d3da | 45181 | LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa" |
4fc81cbc RN |
45182 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
45183 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
45184 | fi | |
a848cd7e | 45185 | fi |
19b27e78 MW |
45186 | if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then |
45187 | LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices" | |
45188 | fi | |
a848cd7e | 45189 | |
a848cd7e SC |
45190 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" |
45191 | ||
a848cd7e SC |
45192 | if test "$wxUSE_GUI" = "yes"; then |
45193 | ||
45194 | ||
8bce5cda MW |
45195 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \ |
45196 | dynamic erase event exec font image minimal mobile \ | |
45197 | mobile/wxedit mobile/styles propsize render \ | |
9e39d889 | 45198 | rotate shaped vscroll widgets" |
a848cd7e SC |
45199 | |
45200 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
45201 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
45202 | fi | |
0b78747f | 45203 | if test "$TOOLKIT" = "MSW"; then |
8bce5cda MW |
45204 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest" |
45205 | if test "$wxUSE_UNIVERSAL" != "yes"; then | |
45206 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg" | |
45207 | fi | |
45208 | fi | |
45209 | if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then | |
45210 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw" | |
0b78747f | 45211 | fi |
a848cd7e SC |
45212 | else |
45213 | SAMPLES_SUBDIRS="console" | |
45214 | fi | |
45215 | ||
45216 | ||
48f625bc | 45217 | if test "x$INTELCC" = "xyes" ; then |
17a1ebd1 VZ |
45218 | CWARNINGS="-Wall -wd810,869,981,1418,1572,1684" |
45219 | elif test "$GCC" = yes ; then | |
45220 | CWARNINGS="-Wall -Wundef" | |
45221 | fi | |
45222 | ||
48f625bc | 45223 | if test "x$INTELCXX" = "xyes" ; then |
7f47faf4 | 45224 | CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419" |
17a1ebd1 VZ |
45225 | elif test "$GXX" = yes ; then |
45226 | CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy" | |
6ebeb4c7 | 45227 | fi |
a848cd7e | 45228 | |
a848cd7e | 45229 | |
5ff751d6 VZ |
45230 | WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS` |
45231 | WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS` | |
45232 | ||
45233 | ||
c92ad099 | 45234 | CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \ |
bc6ee4ae | 45235 | -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \ |
c92ad099 VZ |
45236 | -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \ |
45237 | $CPPFLAGS ` | |
5ff751d6 | 45238 | |
8aeeb05c | 45239 | C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS" |
c92ad099 | 45240 | CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS ` |
9cbac6d1 | 45241 | CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS ` |
5ff751d6 VZ |
45242 | |
45243 | WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS` | |
45244 | ||
a848cd7e | 45245 | |
95986553 DE |
45246 | if test "x$MWCC" = "xyes"; then |
45247 | ||
45248 | CC="$CC -cwd source -I-" | |
45249 | CXX="$CXX -cwd source -I-" | |
45250 | fi | |
45251 | ||
a848cd7e | 45252 | |
0c3c69fc | 45253 | LIBS=`echo $LIBS` |
a848cd7e SC |
45254 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
45255 | EXTRALIBS_XML="$EXPAT_LINK" | |
45256 | EXTRALIBS_HTML="$MSPACK_LINK" | |
45257 | EXTRALIBS_ODBC="$ODBC_LINK" | |
45258 | if test "$wxUSE_GUI" = "yes"; then | |
2b850ae1 | 45259 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT` |
a848cd7e SC |
45260 | fi |
45261 | if test "$wxUSE_OPENGL" = "yes"; then | |
45262 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
45263 | fi | |
45264 | ||
8aeeb05c | 45265 | LDFLAGS="$LDFLAGS $PROFILE_FLAGS" |
a848cd7e | 45266 | |
5ff751d6 | 45267 | WXCONFIG_LIBS="$LIBS" |
a848cd7e SC |
45268 | |
45269 | if test "$wxUSE_REGEX" = "builtin" ; then | |
74802184 | 45270 | wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty" |
a848cd7e SC |
45271 | fi |
45272 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
74802184 | 45273 | wxconfig_3rdparty="expat $wxconfig_3rdparty" |
a848cd7e SC |
45274 | fi |
45275 | if test "$wxUSE_ODBC" = "builtin" ; then | |
74802184 | 45276 | wxconfig_3rdparty="odbc $wxconfig_3rdparty" |
a848cd7e SC |
45277 | fi |
45278 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
74802184 | 45279 | wxconfig_3rdparty="tiff $wxconfig_3rdparty" |
a848cd7e SC |
45280 | fi |
45281 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
74802184 | 45282 | wxconfig_3rdparty="jpeg $wxconfig_3rdparty" |
a848cd7e SC |
45283 | fi |
45284 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
74802184 | 45285 | wxconfig_3rdparty="png $wxconfig_3rdparty" |
a848cd7e SC |
45286 | fi |
45287 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
74802184 | 45288 | wxconfig_3rdparty="zlib $wxconfig_3rdparty" |
a848cd7e SC |
45289 | fi |
45290 | ||
45291 | for i in $wxconfig_3rdparty ; do | |
5ff751d6 | 45292 | WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS" |
a848cd7e SC |
45293 | done |
45294 | ||
45295 | ||
45296 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then | |
45297 | WXUNIV=1 | |
45298 | else | |
45299 | WXUNIV=0 | |
45300 | fi | |
45301 | ||
45302 | ||
45303 | ||
45304 | ||
45305 | ||
45306 | ||
45307 | ||
45308 | ||
45309 | ||
45310 | if test $wxUSE_MONOLITHIC = "yes" ; then | |
45311 | MONOLITHIC=1 | |
45312 | else | |
45313 | MONOLITHIC=0 | |
45314 | fi | |
45315 | ||
45316 | if test $wxUSE_PLUGINS = "yes" ; then | |
45317 | USE_PLUGINS=1 | |
45318 | else | |
45319 | USE_PLUGINS=0 | |
45320 | fi | |
45321 | ||
45322 | if test $wxUSE_ODBC != "no" ; then | |
45323 | USE_ODBC=1 | |
45324 | else | |
45325 | USE_ODBC=0 | |
45326 | fi | |
45327 | ||
16358932 VZ |
45328 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
45329 | USE_QA=1 | |
45330 | else | |
45331 | USE_QA=0 | |
45332 | fi | |
45333 | ||
a848cd7e SC |
45334 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then |
45335 | OFFICIAL_BUILD=1 | |
45336 | else | |
45337 | OFFICIAL_BUILD=0 | |
45338 | fi | |
45339 | ||
45340 | ||
45341 | ||
45342 | ||
45343 | ||
45344 | ||
45345 | ||
45346 | ||
45347 | ||
45348 | ||
45349 | ||
45350 | ||
45351 | ||
45352 | ||
45353 | ||
45354 | ||
45355 | ||
45356 | ||
45357 | ||
ceec2216 | 45358 | |
d1c38808 | 45359 | |
3565d135 | 45360 | |
2b850ae1 | 45361 | |
a848cd7e SC |
45362 | |
45363 | ||
45364 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` | |
45365 | ||
45366 | ||
45367 | ||
45368 | ||
45369 | ||
45370 | ||
45371 | ||
45372 | ||
4d4ff94c VZ |
45373 | case "$TOOLKIT" in |
45374 | GTK) | |
45375 | TOOLKIT_USER="GTK+" | |
45376 | if test "$WXGTK20" = 1; then | |
45377 | TOOLKIT_USER="$TOOLKIT_USER 2" | |
45378 | fi | |
9a8f0513 | 45379 | ;; |
4d4ff94c VZ |
45380 | |
45381 | *) | |
45382 | TOOLKIT_USER=$TOOLKIT_LOWERCASE | |
9a8f0513 | 45383 | ;; |
4d4ff94c | 45384 | esac |
a848cd7e | 45385 | |
fb00f58d JS |
45386 | if test "$wxUSE_WINE" = "yes"; then |
45387 | BAKEFILE_FORCE_PLATFORM=win32 | |
45388 | fi | |
45389 | ||
7afc46ab KO |
45390 | if test "$wxUSE_MAC" = 1 ; then |
45391 | if test "$wxUSE_UNIVERSAL_BINARY" = "yes" ; then | |
45392 | CXXFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $CXXFLAGS" | |
45393 | CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $CFLAGS" | |
45394 | LDFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $LDFLAGS" | |
45395 | bk_use_pch=no | |
45396 | fi | |
45397 | # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)? | |
45398 | # The makefile currently uses AR and RANLIB, which libtool apparently supercedes. | |
45399 | # TODO: how can we avoid a hardwired reference to the SDK, above? (Someone used -lSystemStubs to avoid it) | |
45400 | fi | |
45401 | ||
9a8f0513 | 45402 | |
1e9e8aba DE |
45403 | |
45404 | ||
a848cd7e | 45405 | if test "x$BAKEFILE_HOST" = "x"; then |
f10e38c4 VZ |
45406 | if test "x${host}" = "x" ; then |
45407 | { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5 | |
45408 | echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;} | |
45409 | { (exit 1); exit 1; }; } | |
45410 | fi | |
45411 | ||
a848cd7e SC |
45412 | BAKEFILE_HOST="${host}" |
45413 | fi | |
45414 | ||
45415 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then | |
45416 | ||
45417 | if test -n "$ac_tool_prefix"; then | |
45418 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
45419 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
45420 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45421 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45422 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
45423 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45424 | else | |
45425 | if test -n "$RANLIB"; then | |
45426 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
45427 | else | |
45428 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45429 | for as_dir in $PATH | |
45430 | do | |
45431 | IFS=$as_save_IFS | |
45432 | test -z "$as_dir" && as_dir=. | |
45433 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45434 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45435 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
45436 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45437 | break 2 | |
45438 | fi | |
45439 | done | |
45440 | done | |
45441 | ||
45442 | fi | |
45443 | fi | |
45444 | RANLIB=$ac_cv_prog_RANLIB | |
45445 | if test -n "$RANLIB"; then | |
45446 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
45447 | echo "${ECHO_T}$RANLIB" >&6 | |
45448 | else | |
45449 | echo "$as_me:$LINENO: result: no" >&5 | |
45450 | echo "${ECHO_T}no" >&6 | |
45451 | fi | |
45452 | ||
45453 | fi | |
45454 | if test -z "$ac_cv_prog_RANLIB"; then | |
45455 | ac_ct_RANLIB=$RANLIB | |
45456 | # Extract the first word of "ranlib", so it can be a program name with args. | |
45457 | set dummy ranlib; ac_word=$2 | |
45458 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45459 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45460 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
45461 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45462 | else | |
45463 | if test -n "$ac_ct_RANLIB"; then | |
45464 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
45465 | else | |
45466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45467 | for as_dir in $PATH | |
45468 | do | |
45469 | IFS=$as_save_IFS | |
45470 | test -z "$as_dir" && as_dir=. | |
45471 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45472 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45473 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
45474 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45475 | break 2 | |
45476 | fi | |
45477 | done | |
45478 | done | |
45479 | ||
45480 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
45481 | fi | |
45482 | fi | |
45483 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
45484 | if test -n "$ac_ct_RANLIB"; then | |
45485 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
45486 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
45487 | else | |
45488 | echo "$as_me:$LINENO: result: no" >&5 | |
45489 | echo "${ECHO_T}no" >&6 | |
45490 | fi | |
45491 | ||
45492 | RANLIB=$ac_ct_RANLIB | |
45493 | else | |
45494 | RANLIB="$ac_cv_prog_RANLIB" | |
45495 | fi | |
45496 | ||
45497 | # Find a good install program. We prefer a C program (faster), | |
45498 | # so one script is as good as another. But avoid the broken or | |
45499 | # incompatible versions: | |
45500 | # SysV /etc/install, /usr/sbin/install | |
45501 | # SunOS /usr/etc/install | |
45502 | # IRIX /sbin/install | |
45503 | # AIX /bin/install | |
45504 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
45505 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
45506 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
45507 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 45508 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
45509 | # ./install, which can be erroneously created by make from ./install.sh. |
45510 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
45511 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
45512 | if test -z "$INSTALL"; then | |
45513 | if test "${ac_cv_path_install+set}" = set; then | |
45514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45515 | else | |
45516 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45517 | for as_dir in $PATH | |
45518 | do | |
45519 | IFS=$as_save_IFS | |
45520 | test -z "$as_dir" && as_dir=. | |
45521 | # Account for people who put trailing slashes in PATH elements. | |
45522 | case $as_dir/ in | |
45523 | ./ | .// | /cC/* | \ | |
45524 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 45525 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
45526 | /usr/ucb/* ) ;; |
45527 | *) | |
45528 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
45529 | # Don't use installbsd from OSF since it installs stuff as root | |
45530 | # by default. | |
45531 | for ac_prog in ginstall scoinst install; do | |
45532 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
45533 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
45534 | if test $ac_prog = install && | |
45535 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
45536 | # AIX install. It has an incompatible calling convention. | |
45537 | : | |
45538 | elif test $ac_prog = install && | |
45539 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
45540 | # program-specific install script used by HP pwplus--don't use. | |
45541 | : | |
45542 | else | |
45543 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
45544 | break 3 | |
45545 | fi | |
45546 | fi | |
a848cd7e SC |
45547 | done |
45548 | done | |
45549 | ;; | |
45550 | esac | |
45551 | done | |
45552 | ||
45553 | ||
45554 | fi | |
45555 | if test "${ac_cv_path_install+set}" = set; then | |
45556 | INSTALL=$ac_cv_path_install | |
45557 | else | |
45558 | # As a last resort, use the slow shell script. We don't cache a | |
45559 | # path for INSTALL within a source directory, because that will | |
45560 | # break other packages using the cache if that directory is | |
45561 | # removed, or if the path is relative. | |
45562 | INSTALL=$ac_install_sh | |
45563 | fi | |
45564 | fi | |
45565 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
45566 | echo "${ECHO_T}$INSTALL" >&6 | |
45567 | ||
45568 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
45569 | # It thinks the first close brace ends the variable substitution. | |
45570 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
45571 | ||
45572 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
45573 | ||
45574 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
45575 | ||
45576 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
45577 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
45578 | LN_S=$as_ln_s | |
45579 | if test "$LN_S" = "ln -s"; then | |
45580 | echo "$as_me:$LINENO: result: yes" >&5 | |
45581 | echo "${ECHO_T}yes" >&6 | |
45582 | else | |
45583 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
45584 | echo "${ECHO_T}no, using $LN_S" >&6 | |
45585 | fi | |
45586 | ||
45587 | ||
45588 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
45589 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 45590 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
45591 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
45592 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45593 | else | |
45594 | cat >conftest.make <<\_ACEOF | |
45595 | all: | |
45596 | @echo 'ac_maketemp="$(MAKE)"' | |
45597 | _ACEOF | |
45598 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
45599 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
45600 | if test -n "$ac_maketemp"; then | |
45601 | eval ac_cv_prog_make_${ac_make}_set=yes | |
45602 | else | |
45603 | eval ac_cv_prog_make_${ac_make}_set=no | |
45604 | fi | |
45605 | rm -f conftest.make | |
45606 | fi | |
45607 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
45608 | echo "$as_me:$LINENO: result: yes" >&5 | |
45609 | echo "${ECHO_T}yes" >&6 | |
45610 | SET_MAKE= | |
45611 | else | |
45612 | echo "$as_me:$LINENO: result: no" >&5 | |
45613 | echo "${ECHO_T}no" >&6 | |
45614 | SET_MAKE="MAKE=${MAKE-make}" | |
45615 | fi | |
45616 | ||
45617 | ||
45618 | ||
45619 | if test -n "$ac_tool_prefix"; then | |
45620 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
45621 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
45622 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45623 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45624 | if test "${ac_cv_prog_AR+set}" = set; then | |
45625 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45626 | else | |
45627 | if test -n "$AR"; then | |
45628 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
45629 | else | |
45630 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45631 | for as_dir in $PATH | |
45632 | do | |
45633 | IFS=$as_save_IFS | |
45634 | test -z "$as_dir" && as_dir=. | |
45635 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45636 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45637 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
45638 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45639 | break 2 | |
45640 | fi | |
45641 | done | |
45642 | done | |
45643 | ||
45644 | fi | |
45645 | fi | |
45646 | AR=$ac_cv_prog_AR | |
45647 | if test -n "$AR"; then | |
45648 | echo "$as_me:$LINENO: result: $AR" >&5 | |
45649 | echo "${ECHO_T}$AR" >&6 | |
45650 | else | |
45651 | echo "$as_me:$LINENO: result: no" >&5 | |
45652 | echo "${ECHO_T}no" >&6 | |
45653 | fi | |
45654 | ||
45655 | fi | |
45656 | if test -z "$ac_cv_prog_AR"; then | |
45657 | ac_ct_AR=$AR | |
45658 | # Extract the first word of "ar", so it can be a program name with args. | |
45659 | set dummy ar; ac_word=$2 | |
45660 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45661 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45662 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
45663 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45664 | else | |
45665 | if test -n "$ac_ct_AR"; then | |
45666 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
45667 | else | |
45668 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45669 | for as_dir in $PATH | |
45670 | do | |
45671 | IFS=$as_save_IFS | |
45672 | test -z "$as_dir" && as_dir=. | |
45673 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45674 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45675 | ac_cv_prog_ac_ct_AR="ar" | |
45676 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45677 | break 2 | |
45678 | fi | |
45679 | done | |
45680 | done | |
45681 | ||
45682 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
45683 | fi | |
45684 | fi | |
45685 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
45686 | if test -n "$ac_ct_AR"; then | |
45687 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
45688 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
45689 | else | |
45690 | echo "$as_me:$LINENO: result: no" >&5 | |
45691 | echo "${ECHO_T}no" >&6 | |
45692 | fi | |
45693 | ||
45694 | AR=$ac_ct_AR | |
45695 | else | |
45696 | AR="$ac_cv_prog_AR" | |
45697 | fi | |
45698 | ||
45699 | if test -n "$ac_tool_prefix"; then | |
45700 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
45701 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
45702 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45703 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45704 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
45705 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45706 | else | |
45707 | if test -n "$STRIP"; then | |
45708 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
45709 | else | |
45710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45711 | for as_dir in $PATH | |
45712 | do | |
45713 | IFS=$as_save_IFS | |
45714 | test -z "$as_dir" && as_dir=. | |
45715 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45716 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45717 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
45718 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45719 | break 2 | |
45720 | fi | |
45721 | done | |
45722 | done | |
45723 | ||
45724 | fi | |
45725 | fi | |
45726 | STRIP=$ac_cv_prog_STRIP | |
45727 | if test -n "$STRIP"; then | |
45728 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
45729 | echo "${ECHO_T}$STRIP" >&6 | |
45730 | else | |
45731 | echo "$as_me:$LINENO: result: no" >&5 | |
45732 | echo "${ECHO_T}no" >&6 | |
45733 | fi | |
45734 | ||
45735 | fi | |
45736 | if test -z "$ac_cv_prog_STRIP"; then | |
45737 | ac_ct_STRIP=$STRIP | |
45738 | # Extract the first word of "strip", so it can be a program name with args. | |
45739 | set dummy strip; ac_word=$2 | |
45740 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45741 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45742 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
45743 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45744 | else | |
45745 | if test -n "$ac_ct_STRIP"; then | |
45746 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
45747 | else | |
45748 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45749 | for as_dir in $PATH | |
45750 | do | |
45751 | IFS=$as_save_IFS | |
45752 | test -z "$as_dir" && as_dir=. | |
45753 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45754 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45755 | ac_cv_prog_ac_ct_STRIP="strip" | |
45756 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45757 | break 2 | |
45758 | fi | |
45759 | done | |
45760 | done | |
45761 | ||
45762 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
45763 | fi | |
45764 | fi | |
45765 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
45766 | if test -n "$ac_ct_STRIP"; then | |
45767 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
45768 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
45769 | else | |
45770 | echo "$as_me:$LINENO: result: no" >&5 | |
45771 | echo "${ECHO_T}no" >&6 | |
45772 | fi | |
45773 | ||
45774 | STRIP=$ac_ct_STRIP | |
45775 | else | |
45776 | STRIP="$ac_cv_prog_STRIP" | |
45777 | fi | |
45778 | ||
45779 | if test -n "$ac_tool_prefix"; then | |
45780 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
45781 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
45782 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45783 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45784 | if test "${ac_cv_prog_NM+set}" = set; then | |
45785 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45786 | else | |
45787 | if test -n "$NM"; then | |
45788 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
45789 | else | |
45790 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45791 | for as_dir in $PATH | |
45792 | do | |
45793 | IFS=$as_save_IFS | |
45794 | test -z "$as_dir" && as_dir=. | |
45795 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45796 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45797 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
45798 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45799 | break 2 | |
45800 | fi | |
45801 | done | |
45802 | done | |
45803 | ||
45804 | fi | |
45805 | fi | |
45806 | NM=$ac_cv_prog_NM | |
45807 | if test -n "$NM"; then | |
45808 | echo "$as_me:$LINENO: result: $NM" >&5 | |
45809 | echo "${ECHO_T}$NM" >&6 | |
45810 | else | |
45811 | echo "$as_me:$LINENO: result: no" >&5 | |
45812 | echo "${ECHO_T}no" >&6 | |
45813 | fi | |
45814 | ||
45815 | fi | |
45816 | if test -z "$ac_cv_prog_NM"; then | |
45817 | ac_ct_NM=$NM | |
45818 | # Extract the first word of "nm", so it can be a program name with args. | |
45819 | set dummy nm; ac_word=$2 | |
45820 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45821 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45822 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
45823 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45824 | else | |
45825 | if test -n "$ac_ct_NM"; then | |
45826 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
45827 | else | |
45828 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45829 | for as_dir in $PATH | |
45830 | do | |
45831 | IFS=$as_save_IFS | |
45832 | test -z "$as_dir" && as_dir=. | |
45833 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45834 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45835 | ac_cv_prog_ac_ct_NM="nm" | |
45836 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45837 | break 2 | |
45838 | fi | |
45839 | done | |
45840 | done | |
45841 | ||
45842 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
45843 | fi | |
45844 | fi | |
45845 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
45846 | if test -n "$ac_ct_NM"; then | |
45847 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
45848 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
45849 | else | |
45850 | echo "$as_me:$LINENO: result: no" >&5 | |
45851 | echo "${ECHO_T}no" >&6 | |
45852 | fi | |
45853 | ||
45854 | NM=$ac_ct_NM | |
45855 | else | |
45856 | NM="$ac_cv_prog_NM" | |
45857 | fi | |
45858 | ||
45859 | ||
45860 | case ${BAKEFILE_HOST} in | |
45861 | *-hp-hpux* ) | |
1e9e8aba | 45862 | INSTALL_DIR="mkdir -p" |
a848cd7e SC |
45863 | ;; |
45864 | *) INSTALL_DIR="$INSTALL -d" | |
45865 | ;; | |
45866 | esac | |
45867 | ||
45868 | ||
45869 | LDFLAGS_GUI= | |
45870 | case ${BAKEFILE_HOST} in | |
45871 | *-*-cygwin* | *-*-mingw32* ) | |
45872 | LDFLAGS_GUI="-mwindows" | |
45873 | esac | |
45874 | ||
45875 | ||
45876 | fi | |
45877 | ||
45878 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
45879 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
45880 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then | |
45881 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45882 | else | |
45883 | ||
45884 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
45885 | egrep -s GNU > /dev/null); then | |
45886 | bakefile_cv_prog_makeisgnu="yes" | |
45887 | else | |
45888 | bakefile_cv_prog_makeisgnu="no" | |
45889 | fi | |
45890 | ||
45891 | fi | |
45892 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 | |
45893 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
45894 | ||
45895 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
45896 | IF_GNU_MAKE="" | |
45897 | else | |
45898 | IF_GNU_MAKE="#" | |
45899 | fi | |
45900 | ||
45901 | ||
45902 | ||
45903 | PLATFORM_UNIX=0 | |
45904 | PLATFORM_WIN32=0 | |
45905 | PLATFORM_MSDOS=0 | |
45906 | PLATFORM_MAC=0 | |
1e9e8aba | 45907 | PLATFORM_MACOS=0 |
a848cd7e SC |
45908 | PLATFORM_MACOSX=0 |
45909 | PLATFORM_OS2=0 | |
1e9e8aba | 45910 | PLATFORM_BEOS=0 |
a848cd7e SC |
45911 | |
45912 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then | |
45913 | case "${BAKEFILE_HOST}" in | |
810b94f0 | 45914 | *-*-mingw32* ) |
a848cd7e SC |
45915 | PLATFORM_WIN32=1 |
45916 | ;; | |
45917 | *-pc-msdosdjgpp ) | |
45918 | PLATFORM_MSDOS=1 | |
45919 | ;; | |
45920 | *-pc-os2_emx | *-pc-os2-emx ) | |
45921 | PLATFORM_OS2=1 | |
45922 | ;; | |
47bd5406 | 45923 | *-*-darwin* ) |
a848cd7e SC |
45924 | PLATFORM_MAC=1 |
45925 | PLATFORM_MACOSX=1 | |
45926 | ;; | |
1e9e8aba DE |
45927 | *-*-beos* ) |
45928 | PLATFORM_BEOS=1 | |
45929 | ;; | |
45930 | powerpc-apple-macos* ) | |
45931 | PLATFORM_MAC=1 | |
45932 | PLATFORM_MACOS=1 | |
45933 | ;; | |
a848cd7e SC |
45934 | * ) |
45935 | PLATFORM_UNIX=1 | |
45936 | ;; | |
45937 | esac | |
45938 | else | |
45939 | case "$BAKEFILE_FORCE_PLATFORM" in | |
45940 | win32 ) | |
45941 | PLATFORM_WIN32=1 | |
45942 | ;; | |
45943 | msdos ) | |
45944 | PLATFORM_MSDOS=1 | |
45945 | ;; | |
45946 | os2 ) | |
45947 | PLATFORM_OS2=1 | |
45948 | ;; | |
45949 | darwin ) | |
45950 | PLATFORM_MAC=1 | |
45951 | PLATFORM_MACOSX=1 | |
45952 | ;; | |
45953 | unix ) | |
45954 | PLATFORM_UNIX=1 | |
45955 | ;; | |
1e9e8aba DE |
45956 | beos ) |
45957 | PLATFORM_BEOS=1 | |
45958 | ;; | |
a848cd7e SC |
45959 | * ) |
45960 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
45961 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
45962 | { (exit 1); exit 1; }; } | |
45963 | ;; | |
45964 | esac | |
45965 | fi | |
45966 | ||
45967 | ||
45968 | ||
45969 | ||
45970 | ||
45971 | ||
45972 | ||
45973 | ||
45974 | ||
1e9e8aba DE |
45975 | |
45976 | ||
a848cd7e SC |
45977 | # Check whether --enable-omf or --disable-omf was given. |
45978 | if test "${enable_omf+set}" = set; then | |
45979 | enableval="$enable_omf" | |
45980 | bk_os2_use_omf="$enableval" | |
45981 | fi; | |
45982 | ||
45983 | case "${BAKEFILE_HOST}" in | |
45984 | *-*-darwin* ) | |
47bd5406 VZ |
45985 | if test "x$GCC" = "xyes"; then |
45986 | CFLAGS="$CFLAGS -fno-common" | |
45987 | CXXFLAGS="$CXXFLAGS -fno-common" | |
45988 | fi | |
45989 | if test "x$XLCC" = "xyes"; then | |
45990 | CFLAGS="$CFLAGS -qnocommon" | |
45991 | CXXFLAGS="$CXXFLAGS -qnocommon" | |
45992 | fi | |
a848cd7e SC |
45993 | ;; |
45994 | ||
45995 | *-pc-os2_emx | *-pc-os2-emx ) | |
45996 | if test "x$bk_os2_use_omf" = "xyes" ; then | |
45997 | AR=emxomfar | |
45998 | RANLIB=: | |
45999 | LDFLAGS="-Zomf $LDFLAGS" | |
46000 | CFLAGS="-Zomf $CFLAGS" | |
46001 | CXXFLAGS="-Zomf $CXXFLAGS" | |
46002 | OS2_LIBEXT="lib" | |
46003 | else | |
46004 | OS2_LIBEXT="a" | |
46005 | fi | |
46006 | ;; | |
1e9e8aba DE |
46007 | |
46008 | i*86-*-beos* ) | |
46009 | LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS" | |
46010 | ;; | |
a848cd7e SC |
46011 | esac |
46012 | ||
46013 | ||
46014 | SO_SUFFIX="so" | |
46015 | SO_SUFFIX_MODULE="so" | |
46016 | EXEEXT="" | |
46017 | LIBPREFIX="lib" | |
46018 | LIBEXT=".a" | |
46019 | DLLPREFIX="lib" | |
46020 | DLLPREFIX_MODULE="" | |
46021 | DLLIMP_SUFFIX="" | |
810b94f0 | 46022 | dlldir="$libdir" |
a848cd7e SC |
46023 | |
46024 | case "${BAKEFILE_HOST}" in | |
46025 | *-hp-hpux* ) | |
46026 | SO_SUFFIX="sl" | |
46027 | SO_SUFFIX_MODULE="sl" | |
46028 | ;; | |
46029 | *-*-aix* ) | |
46030 | SO_SUFFIX="a" | |
46031 | SO_SUFFIX_MODULE="a" | |
46032 | ;; | |
810b94f0 MW |
46033 | *-*-cygwin* ) |
46034 | SO_SUFFIX="dll" | |
46035 | SO_SUFFIX_MODULE="dll" | |
46036 | DLLIMP_SUFFIX="dll.a" | |
46037 | EXEEXT=".exe" | |
46038 | DLLPREFIX="cyg" | |
46039 | dlldir="$bindir" | |
46040 | ;; | |
46041 | *-*-mingw32* ) | |
a848cd7e SC |
46042 | SO_SUFFIX="dll" |
46043 | SO_SUFFIX_MODULE="dll" | |
46044 | DLLIMP_SUFFIX="dll.a" | |
46045 | EXEEXT=".exe" | |
46046 | DLLPREFIX="" | |
810b94f0 | 46047 | dlldir="$bindir" |
a848cd7e SC |
46048 | ;; |
46049 | *-pc-msdosdjgpp ) | |
46050 | EXEEXT=".exe" | |
46051 | DLLPREFIX="" | |
810b94f0 | 46052 | dlldir="$bindir" |
a848cd7e SC |
46053 | ;; |
46054 | *-pc-os2_emx | *-pc-os2-emx ) | |
46055 | SO_SUFFIX="dll" | |
46056 | SO_SUFFIX_MODULE="dll" | |
46057 | DLLIMP_SUFFIX=$OS2_LIBEXT | |
46058 | EXEEXT=".exe" | |
46059 | DLLPREFIX="" | |
46060 | LIBPREFIX="" | |
46061 | LIBEXT=".$OS2_LIBEXT" | |
810b94f0 | 46062 | dlldir="$bindir" |
a848cd7e | 46063 | ;; |
47bd5406 | 46064 | *-*-darwin* ) |
a848cd7e SC |
46065 | SO_SUFFIX="dylib" |
46066 | SO_SUFFIX_MODULE="bundle" | |
46067 | ;; | |
46068 | esac | |
46069 | ||
46070 | if test "x$DLLIMP_SUFFIX" = "x" ; then | |
46071 | DLLIMP_SUFFIX="$SO_SUFFIX" | |
46072 | fi | |
46073 | ||
46074 | ||
46075 | ||
46076 | ||
46077 | ||
46078 | ||
46079 | ||
46080 | ||
46081 | ||
46082 | ||
46083 | ||
810b94f0 | 46084 | |
1e9e8aba DE |
46085 | PIC_FLAG="" |
46086 | if test "x$GCC" = "xyes"; then | |
a848cd7e SC |
46087 | PIC_FLAG="-fPIC" |
46088 | fi | |
46089 | ||
1e9e8aba DE |
46090 | SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o" |
46091 | SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o" | |
810b94f0 | 46092 | WINDOWS_IMPLIB=0 |
1e9e8aba | 46093 | |
a848cd7e SC |
46094 | case "${BAKEFILE_HOST}" in |
46095 | *-hp-hpux* ) | |
1e9e8aba | 46096 | if test "x$GCC" != "xyes"; then |
a848cd7e SC |
46097 | LDFLAGS="$LDFLAGS -L/usr/lib" |
46098 | ||
46099 | SHARED_LD_CC="${CC} -b -o" | |
46100 | SHARED_LD_CXX="${CXX} -b -o" | |
46101 | PIC_FLAG="+Z" | |
46102 | fi | |
46103 | ;; | |
46104 | ||
46105 | *-*-linux* ) | |
46106 | if test "x$GCC" != "xyes"; then | |
46107 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 | |
46108 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
46109 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
46110 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46111 | else | |
46112 | ||
46113 | cat >conftest.$ac_ext <<_ACEOF | |
46114 | /* confdefs.h. */ | |
46115 | _ACEOF | |
46116 | cat confdefs.h >>conftest.$ac_ext | |
46117 | cat >>conftest.$ac_ext <<_ACEOF | |
46118 | /* end confdefs.h. */ | |
46119 | ||
46120 | int | |
46121 | main () | |
46122 | { | |
46123 | ||
46124 | #ifndef __INTEL_COMPILER | |
e5efa97e | 46125 | This is not ICC |
a848cd7e SC |
46126 | #endif |
46127 | ||
46128 | ; | |
46129 | return 0; | |
46130 | } | |
46131 | _ACEOF | |
46132 | rm -f conftest.$ac_objext | |
46133 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 46134 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 46135 | ac_status=$? |
ac1cb8d3 VS |
46136 | grep -v '^ *+' conftest.er1 >conftest.err |
46137 | rm -f conftest.er1 | |
46138 | cat conftest.err >&5 | |
a848cd7e SC |
46139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
46140 | (exit $ac_status); } && | |
d25774ab JS |
46141 | { ac_try='test -z "$ac_c_werror_flag" |
46142 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
46143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
46144 | (eval $ac_try) 2>&5 | |
46145 | ac_status=$? | |
46146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46147 | (exit $ac_status); }; } && | |
46148 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
46149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
46150 | (eval $ac_try) 2>&5 | |
46151 | ac_status=$? | |
46152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46153 | (exit $ac_status); }; }; then | |
46154 | bakefile_cv_prog_icc=yes | |
46155 | else | |
46156 | echo "$as_me: failed program was:" >&5 | |
46157 | sed 's/^/| /' conftest.$ac_ext >&5 | |
46158 | ||
46159 | bakefile_cv_prog_icc=no | |
46160 | ||
46161 | fi | |
ac1cb8d3 | 46162 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
46163 | |
46164 | fi | |
46165 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
46166 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
46167 | if test "$bakefile_cv_prog_icc" = "yes"; then | |
46168 | PIC_FLAG="-KPIC" | |
46169 | fi | |
46170 | fi | |
46171 | ;; | |
46172 | ||
46173 | *-*-solaris2* ) | |
46174 | if test "x$GCC" != xyes ; then | |
46175 | SHARED_LD_CC="${CC} -G -o" | |
46176 | SHARED_LD_CXX="${CXX} -G -o" | |
46177 | PIC_FLAG="-KPIC" | |
46178 | fi | |
46179 | ;; | |
46180 | ||
46181 | *-*-darwin* ) | |
46182 | ||
473276a9 VS |
46183 | D='$' |
46184 | cat <<EOF >shared-ld-sh | |
a848cd7e SC |
46185 | #!/bin/sh |
46186 | #----------------------------------------------------------------------------- | |
46187 | #-- Name: distrib/mac/shared-ld-sh | |
46188 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
46189 | #-- Author: Gilles Depeyrot | |
46190 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
46191 | #-- Licence: any use permitted | |
46192 | #----------------------------------------------------------------------------- | |
46193 | ||
46194 | verbose=0 | |
46195 | args="" | |
46196 | objects="" | |
46197 | linking_flag="-dynamiclib" | |
810b94f0 | 46198 | ldargs="-r -keep_private_externs -nostdlib" |
a848cd7e | 46199 | |
473276a9 VS |
46200 | while test ${D}# -gt 0; do |
46201 | case ${D}1 in | |
a848cd7e SC |
46202 | |
46203 | -v) | |
46204 | verbose=1 | |
46205 | ;; | |
46206 | ||
46207 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
46208 | # collect these options and values | |
473276a9 | 46209 | args="${D}{args} ${D}1 ${D}2" |
a848cd7e SC |
46210 | shift |
46211 | ;; | |
46212 | ||
810b94f0 MW |
46213 | -s|-Wl,*) |
46214 | # collect these load args | |
46215 | ldargs="${D}{ldargs} ${D}1" | |
2113bc77 | 46216 | ;; |
810b94f0 MW |
46217 | |
46218 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) | |
a848cd7e | 46219 | # collect these options |
473276a9 | 46220 | args="${D}{args} ${D}1" |
a848cd7e SC |
46221 | ;; |
46222 | ||
46223 | -dynamiclib|-bundle) | |
473276a9 | 46224 | linking_flag="${D}1" |
a848cd7e SC |
46225 | ;; |
46226 | ||
46227 | -*) | |
473276a9 | 46228 | echo "shared-ld: unhandled option '${D}1'" |
a848cd7e SC |
46229 | exit 1 |
46230 | ;; | |
46231 | ||
46232 | *.o | *.a | *.dylib) | |
46233 | # collect object files | |
473276a9 | 46234 | objects="${D}{objects} ${D}1" |
a848cd7e SC |
46235 | ;; |
46236 | ||
46237 | *) | |
473276a9 | 46238 | echo "shared-ld: unhandled argument '${D}1'" |
a848cd7e SC |
46239 | exit 1 |
46240 | ;; | |
46241 | ||
46242 | esac | |
46243 | shift | |
46244 | done | |
46245 | ||
810b94f0 MW |
46246 | status=0 |
46247 | ||
a848cd7e SC |
46248 | # |
46249 | # Link one module containing all the others | |
46250 | # | |
473276a9 | 46251 | if test ${D}{verbose} = 1; then |
810b94f0 | 46252 | echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o" |
a848cd7e | 46253 | fi |
810b94f0 | 46254 | c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o |
473276a9 | 46255 | status=${D}? |
a848cd7e SC |
46256 | |
46257 | # | |
810b94f0 MW |
46258 | # Link the shared library from the single module created, but only if the |
46259 | # previous command didn't fail: | |
a848cd7e | 46260 | # |
810b94f0 MW |
46261 | if test ${D}{status} = 0; then |
46262 | if test ${D}{verbose} = 1; then | |
46263 | echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}" | |
46264 | fi | |
46265 | c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args} | |
46266 | status=${D}? | |
a848cd7e SC |
46267 | fi |
46268 | ||
46269 | # | |
46270 | # Remove intermediate module | |
46271 | # | |
473276a9 | 46272 | rm -f master.${D}${D}.o |
a848cd7e | 46273 | |
810b94f0 | 46274 | exit ${D}status |
a848cd7e | 46275 | EOF |
473276a9 | 46276 | |
583d6b4b VZ |
46277 | chmod +x shared-ld-sh |
46278 | ||
46279 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
46280 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
46281 | ||
46282 | ||
46283 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 | |
46284 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 | |
46285 | if test "${bakefile_cv_gcc31+set}" = set; then | |
46286 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46287 | else | |
46288 | ||
46289 | cat >conftest.$ac_ext <<_ACEOF | |
46290 | /* confdefs.h. */ | |
46291 | _ACEOF | |
46292 | cat confdefs.h >>conftest.$ac_ext | |
46293 | cat >>conftest.$ac_ext <<_ACEOF | |
46294 | /* end confdefs.h. */ | |
46295 | ||
46296 | int | |
46297 | main () | |
46298 | { | |
46299 | ||
46300 | #if (__GNUC__ < 3) || \ | |
46301 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
e5efa97e | 46302 | This is old gcc |
583d6b4b | 46303 | #endif |
a848cd7e | 46304 | |
583d6b4b VZ |
46305 | ; |
46306 | return 0; | |
46307 | } | |
46308 | _ACEOF | |
46309 | rm -f conftest.$ac_objext | |
46310 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
46311 | (eval $ac_compile) 2>conftest.er1 | |
46312 | ac_status=$? | |
46313 | grep -v '^ *+' conftest.er1 >conftest.err | |
46314 | rm -f conftest.er1 | |
46315 | cat conftest.err >&5 | |
46316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46317 | (exit $ac_status); } && | |
d25774ab JS |
46318 | { ac_try='test -z "$ac_c_werror_flag" |
46319 | || test ! -s conftest.err' | |
583d6b4b VZ |
46320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
46321 | (eval $ac_try) 2>&5 | |
46322 | ac_status=$? | |
46323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46324 | (exit $ac_status); }; } && | |
46325 | { ac_try='test -s conftest.$ac_objext' | |
46326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
46327 | (eval $ac_try) 2>&5 | |
46328 | ac_status=$? | |
46329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46330 | (exit $ac_status); }; }; then | |
46331 | ||
46332 | bakefile_cv_gcc31=yes | |
46333 | ||
46334 | else | |
46335 | echo "$as_me: failed program was:" >&5 | |
46336 | sed 's/^/| /' conftest.$ac_ext >&5 | |
46337 | ||
46338 | ||
46339 | bakefile_cv_gcc31=no | |
46340 | ||
46341 | ||
46342 | fi | |
46343 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
46344 | ||
46345 | fi | |
46346 | echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5 | |
46347 | echo "${ECHO_T}$bakefile_cv_gcc31" >&6 | |
46348 | if test "$bakefile_cv_gcc31" = "no"; then | |
a848cd7e | 46349 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" |
a848cd7e | 46350 | SHARED_LD_CXX="$SHARED_LD_CC" |
a848cd7e SC |
46351 | else |
46352 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" | |
a848cd7e | 46353 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" |
a848cd7e SC |
46354 | fi |
46355 | ||
47bd5406 VZ |
46356 | if test "x$GCC" == "xyes"; then |
46357 | PIC_FLAG="-dynamic -fPIC" | |
46358 | fi | |
46359 | if test "x$XLCC" = "xyes"; then | |
46360 | PIC_FLAG="-dynamic -DPIC" | |
46361 | fi | |
a848cd7e SC |
46362 | ;; |
46363 | ||
46364 | *-*-aix* ) | |
f6b50c59 | 46365 | if test "x$GCC" = "xyes"; then |
583d6b4b | 46366 | PIC_FLAG="" |
f6b50c59 | 46367 | |
583d6b4b VZ |
46368 | case "${BAKEFILE_HOST}" in |
46369 | *-*-aix5* ) | |
46370 | LD_EXPFULL="-Wl,-bexpfull" | |
46371 | ;; | |
46372 | esac | |
f6b50c59 | 46373 | |
583d6b4b VZ |
46374 | SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o" |
46375 | SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o" | |
46376 | else | |
46377 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
a848cd7e SC |
46378 | set dummy makeC++SharedLib; ac_word=$2 |
46379 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46380 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
46381 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
46382 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46383 | else | |
46384 | if test -n "$AIX_CXX_LD"; then | |
46385 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
46386 | else | |
46387 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46388 | for as_dir in $PATH | |
46389 | do | |
46390 | IFS=$as_save_IFS | |
46391 | test -z "$as_dir" && as_dir=. | |
46392 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46393 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
46394 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
46395 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
46396 | break 2 | |
46397 | fi | |
46398 | done | |
46399 | done | |
46400 | ||
46401 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
46402 | fi | |
46403 | fi | |
46404 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD | |
46405 | if test -n "$AIX_CXX_LD"; then | |
46406 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 | |
46407 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
46408 | else | |
46409 | echo "$as_me:$LINENO: result: no" >&5 | |
46410 | echo "${ECHO_T}no" >&6 | |
46411 | fi | |
46412 | ||
f6b50c59 | 46413 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" |
a848cd7e SC |
46414 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" |
46415 | fi | |
46416 | ;; | |
46417 | ||
46418 | *-*-beos* ) | |
1e9e8aba DE |
46419 | SHARED_LD_CC="${LD} -nostart -o" |
46420 | SHARED_LD_CXX="${LD} -nostart -o" | |
a848cd7e SC |
46421 | ;; |
46422 | ||
46423 | *-*-irix* ) | |
46424 | if test "x$GCC" != "xyes"; then | |
46425 | PIC_FLAG="-KPIC" | |
46426 | fi | |
46427 | ;; | |
46428 | ||
46429 | *-*-cygwin* | *-*-mingw32* ) | |
46430 | PIC_FLAG="" | |
1e9e8aba DE |
46431 | SHARED_LD_CC="\$(CC) -shared -o" |
46432 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
810b94f0 | 46433 | WINDOWS_IMPLIB=1 |
a848cd7e SC |
46434 | ;; |
46435 | ||
46436 | *-pc-os2_emx | *-pc-os2-emx ) | |
b1d22ded DE |
46437 | SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" |
46438 | SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
a848cd7e | 46439 | PIC_FLAG="" |
473276a9 VS |
46440 | |
46441 | D='$' | |
46442 | cat <<EOF >dllar.sh | |
46443 | #!/bin/sh | |
46444 | # | |
46445 | # dllar - a tool to build both a .dll and an .a file | |
46446 | # from a set of object (.o) files for EMX/OS2. | |
46447 | # | |
46448 | # Written by Andrew Zabolotny, bit@freya.etu.ru | |
46449 | # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de | |
46450 | # | |
46451 | # This script will accept a set of files on the command line. | |
46452 | # All the public symbols from the .o files will be exported into | |
46453 | # a .DEF file, then linker will be run (through gcc) against them to | |
46454 | # build a shared library consisting of all given .o files. All libraries | |
46455 | # (.a) will be first decompressed into component .o files then act as | |
46456 | # described above. You can optionally give a description (-d "description") | |
46457 | # which will be put into .DLL. To see the list of accepted options (as well | |
46458 | # as command-line format) simply run this program without options. The .DLL | |
46459 | # is built to be imported by name (there is no guarantee that new versions | |
46460 | # of the library you build will have same ordinals for same symbols). | |
46461 | # | |
46462 | # dllar is free software; you can redistribute it and/or modify | |
46463 | # it under the terms of the GNU General Public License as published by | |
46464 | # the Free Software Foundation; either version 2, or (at your option) | |
46465 | # any later version. | |
46466 | # | |
46467 | # dllar is distributed in the hope that it will be useful, | |
46468 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
46469 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
46470 | # GNU General Public License for more details. | |
46471 | # | |
46472 | # You should have received a copy of the GNU General Public License | |
46473 | # along with dllar; see the file COPYING. If not, write to the Free | |
46474 | # Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
46475 | # 02111-1307, USA. | |
46476 | ||
46477 | # To successfuly run this program you will need: | |
46478 | # - Current drive should have LFN support (HPFS, ext2, network, etc) | |
46479 | # (Sometimes dllar generates filenames which won't fit 8.3 scheme) | |
46480 | # - gcc | |
46481 | # (used to build the .dll) | |
46482 | # - emxexp | |
46483 | # (used to create .def file from .o files) | |
46484 | # - emximp | |
46485 | # (used to create .a file from .def file) | |
46486 | # - GNU text utilites (cat, sort, uniq) | |
46487 | # used to process emxexp output | |
46488 | # - GNU file utilities (mv, rm) | |
46489 | # - GNU sed | |
46490 | # - lxlite (optional, see flag below) | |
46491 | # (used for general .dll cleanup) | |
46492 | # | |
46493 | ||
46494 | flag_USE_LXLITE=1; | |
46495 | ||
46496 | # | |
46497 | # helper functions | |
46498 | # basnam, variant of basename, which does _not_ remove the path, _iff_ | |
46499 | # second argument (suffix to remove) is given | |
46500 | basnam(){ | |
46501 | case ${D}# in | |
46502 | 1) | |
1e9e8aba | 46503 | echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//' |
473276a9 VS |
46504 | ;; |
46505 | 2) | |
46506 | echo ${D}1 | sed 's/'${D}2'${D}//' | |
46507 | ;; | |
46508 | *) | |
46509 | echo "error in basnam ${D}*" | |
46510 | exit 8 | |
46511 | ;; | |
46512 | esac | |
46513 | } | |
46514 | ||
46515 | # Cleanup temporary files and output | |
46516 | CleanUp() { | |
46517 | cd ${D}curDir | |
46518 | for i in ${D}inputFiles ; do | |
46519 | case ${D}i in | |
46520 | *!) | |
46521 | rm -rf \`basnam ${D}i !\` | |
46522 | ;; | |
46523 | *) | |
46524 | ;; | |
46525 | esac | |
46526 | done | |
46527 | ||
46528 | # Kill result in case of failure as there is just to many stupid make/nmake | |
46529 | # things out there which doesn't do this. | |
1e9e8aba | 46530 | if [ ${D}# -eq 0 ]; then |
473276a9 VS |
46531 | rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile |
46532 | fi | |
46533 | } | |
46534 | ||
46535 | # Print usage and exit script with rc=1. | |
46536 | PrintHelp() { | |
b1d22ded DE |
46537 | echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]' |
46538 | echo ' [-name-mangler-script script.sh]' | |
46539 | echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]' | |
46540 | echo ' [-ord[inals]] -ex[clude] "symbol(s)"' | |
46541 | echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]' | |
1e9e8aba | 46542 | echo ' [*.o] [*.a]' |
473276a9 VS |
46543 | echo '*> "output_file" should have no extension.' |
46544 | echo ' If it has the .o, .a or .dll extension, it is automatically removed.' | |
46545 | echo ' The import library name is derived from this and is set to "name".a,' | |
46546 | echo ' unless overridden by -import' | |
46547 | echo '*> "importlib_name" should have no extension.' | |
46548 | echo ' If it has the .o, or .a extension, it is automatically removed.' | |
46549 | echo ' This name is used as the import library name and may be longer and' | |
46550 | echo ' more descriptive than the DLL name which has to follow the old ' | |
46551 | echo ' 8.3 convention of FAT.' | |
b1d22ded DE |
46552 | echo '*> "script.sh may be given to override the output_file name by a' |
46553 | echo ' different name. It is mainly useful if the regular make process' | |
46554 | echo ' of some package does not take into account OS/2 restriction of' | |
46555 | echo ' DLL name lengths. It takes the importlib name as input and is' | |
46556 | echo ' supposed to procude a shorter name as output. The script should' | |
46557 | echo ' expect to get importlib_name without extension and should produce' | |
46558 | echo ' a (max.) 8 letter name without extension.' | |
473276a9 VS |
46559 | echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)' |
46560 | echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)' | |
46561 | echo ' These flags will be put at the start of GCC command line.' | |
b1d22ded DE |
46562 | echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.' |
46563 | echo '*> -ex[clude] defines symbols which will not be exported. You can define' | |
473276a9 VS |
46564 | echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".' |
46565 | echo ' If the last character of a symbol is "*", all symbols beginning' | |
46566 | echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).' | |
b1d22ded | 46567 | echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or' |
473276a9 | 46568 | echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.' |
b1d22ded | 46569 | echo '*> -nocrt[dll] switch will disable linking the library against emx''s' |
473276a9 | 46570 | echo ' C runtime DLLs.' |
b1d22ded | 46571 | echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.' |
473276a9 VS |
46572 | echo '*> All other switches (for example -L./ or -lmylib) will be passed' |
46573 | echo ' unchanged to GCC at the end of command line.' | |
46574 | echo '*> If you create a DLL from a library and you do not specify -o,' | |
46575 | echo ' the basename for DLL and import library will be set to library name,' | |
46576 | echo ' the initial library will be renamed to 'name'_s.a (_s for static)' | |
46577 | echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial' | |
46578 | echo ' library will be renamed into gcc_s.a.' | |
46579 | echo '--------' | |
46580 | echo 'Example:' | |
46581 | echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord' | |
46582 | echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"' | |
46583 | CleanUp | |
46584 | exit 1 | |
46585 | } | |
46586 | ||
46587 | # Execute a command. | |
46588 | # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script. | |
46589 | # @Uses Whatever CleanUp() uses. | |
46590 | doCommand() { | |
46591 | echo "${D}*" | |
46592 | eval ${D}* | |
46593 | rcCmd=${D}? | |
46594 | ||
1e9e8aba | 46595 | if [ ${D}rcCmd -ne 0 ]; then |
473276a9 VS |
46596 | echo "command failed, exit code="${D}rcCmd |
46597 | CleanUp | |
46598 | exit ${D}rcCmd | |
46599 | fi | |
46600 | } | |
46601 | ||
46602 | # main routine | |
46603 | # setup globals | |
46604 | cmdLine=${D}* | |
46605 | outFile="" | |
46606 | outimpFile="" | |
46607 | inputFiles="" | |
b1d22ded | 46608 | renameScript="" |
473276a9 VS |
46609 | description="" |
46610 | CC=gcc.exe | |
46611 | CFLAGS="-s -Zcrtdll" | |
46612 | EXTRA_CFLAGS="" | |
46613 | EXPORT_BY_ORDINALS=0 | |
46614 | exclude_symbols="" | |
46615 | library_flags="" | |
46616 | curDir=\`pwd\` | |
46617 | curDirS=curDir | |
46618 | case ${D}curDirS in | |
46619 | */) | |
46620 | ;; | |
46621 | *) | |
46622 | curDirS=${D}{curDirS}"/" | |
46623 | ;; | |
46624 | esac | |
46625 | # Parse commandline | |
46626 | libsToLink=0 | |
b1d22ded | 46627 | omfLinking=0 |
1e9e8aba | 46628 | while [ ${D}1 ]; do |
473276a9 VS |
46629 | case ${D}1 in |
46630 | -ord*) | |
46631 | EXPORT_BY_ORDINALS=1; | |
46632 | ;; | |
46633 | -o*) | |
46634 | shift | |
46635 | outFile=${D}1 | |
46636 | ;; | |
46637 | -i*) | |
46638 | shift | |
46639 | outimpFile=${D}1 | |
46640 | ;; | |
b1d22ded DE |
46641 | -name-mangler-script) |
46642 | shift | |
46643 | renameScript=${D}1 | |
46644 | ;; | |
473276a9 VS |
46645 | -d*) |
46646 | shift | |
46647 | description=${D}1 | |
46648 | ;; | |
46649 | -f*) | |
46650 | shift | |
46651 | CFLAGS=${D}1 | |
46652 | ;; | |
46653 | -c*) | |
46654 | shift | |
46655 | CC=${D}1 | |
46656 | ;; | |
46657 | -h*) | |
46658 | PrintHelp | |
46659 | ;; | |
46660 | -ex*) | |
46661 | shift | |
46662 | exclude_symbols=${D}{exclude_symbols}${D}1" " | |
46663 | ;; | |
46664 | -libf*) | |
46665 | shift | |
46666 | library_flags=${D}{library_flags}${D}1" " | |
46667 | ;; | |
46668 | -nocrt*) | |
46669 | CFLAGS="-s" | |
46670 | ;; | |
46671 | -nolxl*) | |
46672 | flag_USE_LXLITE=0 | |
46673 | ;; | |
46674 | -* | /*) | |
46675 | case ${D}1 in | |
46676 | -L* | -l*) | |
46677 | libsToLink=1 | |
46678 | ;; | |
b1d22ded DE |
46679 | -Zomf) |
46680 | omfLinking=1 | |
46681 | ;; | |
473276a9 VS |
46682 | *) |
46683 | ;; | |
46684 | esac | |
46685 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 | |
46686 | ;; | |
b1d22ded DE |
46687 | *.dll) |
46688 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`" | |
46689 | if [ ${D}omfLinking -eq 1 ]; then | |
46690 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib" | |
46691 | else | |
46692 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a" | |
46693 | fi | |
46694 | ;; | |
473276a9 VS |
46695 | *) |
46696 | found=0; | |
1e9e8aba | 46697 | if [ ${D}libsToLink -ne 0 ]; then |
473276a9 VS |
46698 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 |
46699 | else | |
46700 | for file in ${D}1 ; do | |
1e9e8aba | 46701 | if [ -f ${D}file ]; then |
473276a9 VS |
46702 | inputFiles="${D}{inputFiles} ${D}file" |
46703 | found=1 | |
46704 | fi | |
46705 | done | |
1e9e8aba | 46706 | if [ ${D}found -eq 0 ]; then |
473276a9 VS |
46707 | echo "ERROR: No file(s) found: "${D}1 |
46708 | exit 8 | |
46709 | fi | |
46710 | fi | |
46711 | ;; | |
46712 | esac | |
46713 | shift | |
46714 | done # iterate cmdline words | |
46715 | ||
46716 | # | |
1e9e8aba | 46717 | if [ -z "${D}inputFiles" ]; then |
473276a9 VS |
46718 | echo "dllar: no input files" |
46719 | PrintHelp | |
46720 | fi | |
46721 | ||
46722 | # Now extract all .o files from .a files | |
46723 | newInputFiles="" | |
46724 | for file in ${D}inputFiles ; do | |
46725 | case ${D}file in | |
46726 | *.a | *.lib) | |
46727 | case ${D}file in | |
46728 | *.a) | |
46729 | suffix=".a" | |
46730 | AR="ar" | |
46731 | ;; | |
46732 | *.lib) | |
46733 | suffix=".lib" | |
46734 | AR="emxomfar" | |
46735 | EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf" | |
46736 | ;; | |
46737 | *) | |
46738 | ;; | |
46739 | esac | |
46740 | dirname=\`basnam ${D}file ${D}suffix\`"_%" | |
46741 | mkdir ${D}dirname | |
1e9e8aba | 46742 | if [ ${D}? -ne 0 ]; then |
473276a9 VS |
46743 | echo "Failed to create subdirectory ./${D}dirname" |
46744 | CleanUp | |
46745 | exit 8; | |
46746 | fi | |
46747 | # Append '!' to indicate archive | |
46748 | newInputFiles="${D}newInputFiles ${D}{dirname}!" | |
46749 | doCommand "cd ${D}dirname; ${D}AR x ../${D}file" | |
46750 | cd ${D}curDir | |
46751 | found=0; | |
46752 | for subfile in ${D}dirname/*.o* ; do | |
1e9e8aba | 46753 | if [ -f ${D}subfile ]; then |
473276a9 | 46754 | found=1 |
1e9e8aba | 46755 | if [ -s ${D}subfile ]; then |
473276a9 VS |
46756 | # FIXME: This should be: is file size > 32 byte, _not_ > 0! |
46757 | newInputFiles="${D}newInputFiles ${D}subfile" | |
46758 | fi | |
46759 | fi | |
46760 | done | |
1e9e8aba DE |
46761 | if [ ${D}found -eq 0 ]; then |
46762 | echo "WARNING: there are no files in archive \\'${D}file\\'" | |
473276a9 VS |
46763 | fi |
46764 | ;; | |
46765 | *) | |
46766 | newInputFiles="${D}{newInputFiles} ${D}file" | |
46767 | ;; | |
46768 | esac | |
46769 | done | |
46770 | inputFiles="${D}newInputFiles" | |
46771 | ||
46772 | # Output filename(s). | |
46773 | do_backup=0; | |
1e9e8aba | 46774 | if [ -z ${D}outFile ]; then |
473276a9 VS |
46775 | do_backup=1; |
46776 | set outFile ${D}inputFiles; outFile=${D}2 | |
46777 | fi | |
46778 | ||
46779 | # If it is an archive, remove the '!' and the '_%' suffixes | |
46780 | case ${D}outFile in | |
46781 | *_%!) | |
46782 | outFile=\`basnam ${D}outFile _%!\` | |
46783 | ;; | |
46784 | *) | |
46785 | ;; | |
46786 | esac | |
46787 | case ${D}outFile in | |
46788 | *.dll) | |
46789 | outFile=\`basnam ${D}outFile .dll\` | |
46790 | ;; | |
46791 | *.DLL) | |
46792 | outFile=\`basnam ${D}outFile .DLL\` | |
46793 | ;; | |
46794 | *.o) | |
46795 | outFile=\`basnam ${D}outFile .o\` | |
46796 | ;; | |
46797 | *.obj) | |
46798 | outFile=\`basnam ${D}outFile .obj\` | |
46799 | ;; | |
46800 | *.a) | |
46801 | outFile=\`basnam ${D}outFile .a\` | |
46802 | ;; | |
46803 | *.lib) | |
46804 | outFile=\`basnam ${D}outFile .lib\` | |
46805 | ;; | |
46806 | *) | |
46807 | ;; | |
46808 | esac | |
46809 | case ${D}outimpFile in | |
46810 | *.a) | |
46811 | outimpFile=\`basnam ${D}outimpFile .a\` | |
46812 | ;; | |
46813 | *.lib) | |
46814 | outimpFile=\`basnam ${D}outimpFile .lib\` | |
46815 | ;; | |
46816 | *) | |
46817 | ;; | |
46818 | esac | |
1e9e8aba | 46819 | if [ -z ${D}outimpFile ]; then |
473276a9 VS |
46820 | outimpFile=${D}outFile |
46821 | fi | |
46822 | defFile="${D}{outFile}.def" | |
46823 | arcFile="${D}{outimpFile}.a" | |
46824 | arcFile2="${D}{outimpFile}.lib" | |
b1d22ded DE |
46825 | |
46826 | #create ${D}dllFile as something matching 8.3 restrictions, | |
46827 | if [ -z ${D}renameScript ] ; then | |
46828 | dllFile="${D}outFile" | |
46829 | else | |
46830 | dllFile=\`${D}renameScript ${D}outimpFile\` | |
46831 | fi | |
473276a9 | 46832 | |
1e9e8aba DE |
46833 | if [ ${D}do_backup -ne 0 ] ; then |
46834 | if [ -f ${D}arcFile ] ; then | |
473276a9 VS |
46835 | doCommand "mv ${D}arcFile ${D}{outFile}_s.a" |
46836 | fi | |
1e9e8aba | 46837 | if [ -f ${D}arcFile2 ] ; then |
473276a9 VS |
46838 | doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib" |
46839 | fi | |
46840 | fi | |
46841 | ||
46842 | # Extract public symbols from all the object files. | |
46843 | tmpdefFile=${D}{defFile}_% | |
46844 | rm -f ${D}tmpdefFile | |
46845 | for file in ${D}inputFiles ; do | |
46846 | case ${D}file in | |
46847 | *!) | |
46848 | ;; | |
46849 | *) | |
46850 | doCommand "emxexp -u ${D}file >> ${D}tmpdefFile" | |
46851 | ;; | |
46852 | esac | |
46853 | done | |
46854 | ||
46855 | # Create the def file. | |
46856 | rm -f ${D}defFile | |
46857 | echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile | |
b1d22ded DE |
46858 | dllFile="${D}{dllFile}.dll" |
46859 | if [ ! -z ${D}description ]; then | |
1e9e8aba | 46860 | echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile |
473276a9 VS |
46861 | fi |
46862 | echo "EXPORTS" >> ${D}defFile | |
46863 | ||
46864 | doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%" | |
46865 | grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile | |
46866 | ||
46867 | # Checks if the export is ok or not. | |
46868 | for word in ${D}exclude_symbols; do | |
46869 | grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}% | |
46870 | mv ${D}{tmpdefFile}% ${D}tmpdefFile | |
46871 | done | |
46872 | ||
46873 | ||
1e9e8aba DE |
46874 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
46875 | sed "=" < ${D}tmpdefFile | \\ | |
473276a9 VS |
46876 | sed ' |
46877 | N | |
46878 | : loop | |
1e9e8aba | 46879 | s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/ |
473276a9 VS |
46880 | t loop |
46881 | ' > ${D}{tmpdefFile}% | |
46882 | grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile | |
46883 | else | |
46884 | rm -f ${D}{tmpdefFile}% | |
46885 | fi | |
46886 | cat ${D}tmpdefFile >> ${D}defFile | |
46887 | rm -f ${D}tmpdefFile | |
46888 | ||
46889 | # Do linking, create implib, and apply lxlite. | |
46890 | gccCmdl=""; | |
46891 | for file in ${D}inputFiles ; do | |
46892 | case ${D}file in | |
46893 | *!) | |
46894 | ;; | |
46895 | *) | |
46896 | gccCmdl="${D}gccCmdl ${D}file" | |
46897 | ;; | |
46898 | esac | |
46899 | done | |
46900 | doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS" | |
46901 | touch "${D}{outFile}.dll" | |
46902 | ||
46903 | doCommand "emximp -o ${D}arcFile ${D}defFile" | |
1e9e8aba | 46904 | if [ ${D}flag_USE_LXLITE -ne 0 ]; then |
473276a9 | 46905 | add_flags=""; |
1e9e8aba | 46906 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
473276a9 VS |
46907 | add_flags="-ynd" |
46908 | fi | |
46909 | doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile" | |
46910 | fi | |
46911 | doCommand "emxomf -s -l ${D}arcFile" | |
46912 | ||
46913 | # Successful exit. | |
46914 | CleanUp 1 | |
46915 | exit 0 | |
46916 | EOF | |
46917 | ||
46918 | chmod +x dllar.sh | |
a848cd7e SC |
46919 | ;; |
46920 | ||
1e9e8aba | 46921 | powerpc-apple-macos* | \ |
0ad5d837 | 46922 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \ |
a848cd7e SC |
46923 | *-*-sunos4* | \ |
46924 | *-*-osf* | \ | |
46925 | *-*-dgux5* | \ | |
47a7e797 MW |
46926 | *-*-sysv5* | \ |
46927 | *-pc-msdosdjgpp ) | |
a848cd7e SC |
46928 | ;; |
46929 | ||
46930 | *) | |
46931 | { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5 | |
46932 | echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;} | |
46933 | { (exit 1); exit 1; }; } | |
46934 | esac | |
46935 | ||
2057db16 VS |
46936 | if test "x$PIC_FLAG" != "x" ; then |
46937 | PIC_FLAG="$PIC_FLAG -DPIC" | |
46938 | fi | |
46939 | ||
a848cd7e SC |
46940 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
46941 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
46942 | fi | |
46943 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
46944 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" | |
46945 | fi | |
46946 | ||
46947 | ||
46948 | ||
46949 | ||
46950 | ||
46951 | ||
46952 | ||
46953 | ||
810b94f0 | 46954 | |
a848cd7e SC |
46955 | USE_SOVERSION=0 |
46956 | USE_SOVERLINUX=0 | |
46957 | USE_SOVERSOLARIS=0 | |
810b94f0 | 46958 | USE_SOVERCYGWIN=0 |
a848cd7e SC |
46959 | USE_SOSYMLINKS=0 |
46960 | USE_MACVERSION=0 | |
46961 | SONAME_FLAG= | |
46962 | ||
46963 | case "${BAKEFILE_HOST}" in | |
0ad5d837 | 46964 | *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu ) |
5f652d0d VS |
46965 | SONAME_FLAG="-Wl,-soname," |
46966 | USE_SOVERSION=1 | |
46967 | USE_SOVERLINUX=1 | |
46968 | USE_SOSYMLINKS=1 | |
46969 | ;; | |
46970 | ||
a848cd7e SC |
46971 | *-*-solaris2* ) |
46972 | SONAME_FLAG="-h " | |
46973 | USE_SOVERSION=1 | |
46974 | USE_SOVERSOLARIS=1 | |
46975 | USE_SOSYMLINKS=1 | |
46976 | ;; | |
46977 | ||
46978 | *-*-darwin* ) | |
46979 | USE_MACVERSION=1 | |
46980 | USE_SOVERSION=1 | |
46981 | USE_SOSYMLINKS=1 | |
46982 | ;; | |
810b94f0 MW |
46983 | |
46984 | *-*-cygwin* ) | |
46985 | USE_SOVERSION=1 | |
46986 | USE_SOVERCYGWIN=1 | |
46987 | ;; | |
a848cd7e SC |
46988 | esac |
46989 | ||
46990 | ||
46991 | ||
46992 | ||
46993 | ||
46994 | ||
46995 | ||
46996 | ||
46997 | ||
810b94f0 | 46998 | |
f10e38c4 VZ |
46999 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
47000 | if test "${enable_dependency_tracking+set}" = set; then | |
47001 | enableval="$enable_dependency_tracking" | |
47002 | bk_use_trackdeps="$enableval" | |
47003 | fi; | |
47004 | ||
a848cd7e SC |
47005 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 |
47006 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
a848cd7e | 47007 | |
f10e38c4 VZ |
47008 | if test "x$bk_use_trackdeps" = "xno" ; then |
47009 | DEPS_TRACKING=0 | |
47010 | echo "$as_me:$LINENO: result: disabled" >&5 | |
47011 | echo "${ECHO_T}disabled" >&6 | |
47012 | else | |
47013 | DEPS_TRACKING=1 | |
47014 | ||
47015 | if test "x$GCC" = "xyes"; then | |
47016 | DEPSMODE=gcc | |
47017 | case "${BAKEFILE_HOST}" in | |
47018 | *-*-darwin* ) | |
47019 | DEPSFLAG="-no-cpp-precomp -MMD" | |
47020 | ;; | |
47021 | * ) | |
47022 | DEPSFLAG="-MMD" | |
47023 | ;; | |
47024 | esac | |
47025 | echo "$as_me:$LINENO: result: gcc" >&5 | |
a848cd7e | 47026 | echo "${ECHO_T}gcc" >&6 |
f10e38c4 VZ |
47027 | elif test "x$MWCC" = "xyes"; then |
47028 | DEPSMODE=mwcc | |
47029 | DEPSFLAG="-MM" | |
47030 | echo "$as_me:$LINENO: result: mwcc" >&5 | |
b1d22ded | 47031 | echo "${ECHO_T}mwcc" >&6 |
f10e38c4 VZ |
47032 | elif test "x$SUNCC" = "xyes"; then |
47033 | DEPSMODE=unixcc | |
47034 | DEPSFLAG="-xM1" | |
47035 | echo "$as_me:$LINENO: result: Sun cc" >&5 | |
0ad5d837 | 47036 | echo "${ECHO_T}Sun cc" >&6 |
f10e38c4 VZ |
47037 | elif test "x$SGICC" = "xyes"; then |
47038 | DEPSMODE=unixcc | |
47039 | DEPSFLAG="-M" | |
47040 | echo "$as_me:$LINENO: result: SGI cc" >&5 | |
0ad5d837 | 47041 | echo "${ECHO_T}SGI cc" >&6 |
f10e38c4 VZ |
47042 | elif test "x$HPCC" = "xyes"; then |
47043 | DEPSMODE=unixcc | |
47044 | DEPSFLAG="+make" | |
47045 | echo "$as_me:$LINENO: result: HP cc" >&5 | |
3006edc0 | 47046 | echo "${ECHO_T}HP cc" >&6 |
f10e38c4 VZ |
47047 | elif test "x$COMPAQCC" = "xyes"; then |
47048 | DEPSMODE=gcc | |
47049 | DEPSFLAG="-MD" | |
47050 | echo "$as_me:$LINENO: result: Compaq cc" >&5 | |
a1aa0349 | 47051 | echo "${ECHO_T}Compaq cc" >&6 |
f10e38c4 VZ |
47052 | else |
47053 | DEPS_TRACKING=0 | |
47054 | echo "$as_me:$LINENO: result: none" >&5 | |
a848cd7e | 47055 | echo "${ECHO_T}none" >&6 |
f10e38c4 | 47056 | fi |
a848cd7e | 47057 | |
f10e38c4 | 47058 | if test $DEPS_TRACKING = 1 ; then |
473276a9 VS |
47059 | |
47060 | D='$' | |
47061 | cat <<EOF >bk-deps | |
a848cd7e SC |
47062 | #!/bin/sh |
47063 | ||
47064 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
47065 | # script. It is used to track C/C++ files dependencies in portable way. | |
47066 | # | |
47067 | # Permission is given to use this file in any way. | |
47068 | ||
473276a9 | 47069 | DEPSMODE=${DEPSMODE} |
a848cd7e | 47070 | DEPSDIR=.deps |
0ad5d837 | 47071 | DEPSFLAG="${DEPSFLAG}" |
a848cd7e | 47072 | |
473276a9 | 47073 | mkdir -p ${D}DEPSDIR |
a848cd7e | 47074 | |
473276a9 | 47075 | if test ${D}DEPSMODE = gcc ; then |
0ad5d837 | 47076 | ${D}* ${D}{DEPSFLAG} |
473276a9 VS |
47077 | status=${D}? |
47078 | if test ${D}{status} != 0 ; then | |
47079 | exit ${D}{status} | |
a848cd7e SC |
47080 | fi |
47081 | # move created file to the location we want it in: | |
473276a9 VS |
47082 | while test ${D}# -gt 0; do |
47083 | case "${D}1" in | |
a848cd7e SC |
47084 | -o ) |
47085 | shift | |
473276a9 | 47086 | objfile=${D}1 |
a848cd7e SC |
47087 | ;; |
47088 | -* ) | |
47089 | ;; | |
47090 | * ) | |
473276a9 | 47091 | srcfile=${D}1 |
a848cd7e SC |
47092 | ;; |
47093 | esac | |
47094 | shift | |
47095 | done | |
1e9e8aba DE |
47096 | depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\` |
47097 | depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\` | |
473276a9 VS |
47098 | if test -f ${D}depfile ; then |
47099 | sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
47100 | rm -f ${D}depfile | |
a848cd7e | 47101 | else |
a1aa0349 | 47102 | # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d |
1e9e8aba | 47103 | depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\` |
a1aa0349 VZ |
47104 | if test ! -f ${D}depfile ; then |
47105 | # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++) | |
47106 | depfile="${D}objfile.d" | |
47107 | fi | |
473276a9 VS |
47108 | if test -f ${D}depfile ; then |
47109 | sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
47110 | rm -f ${D}depfile | |
a848cd7e SC |
47111 | fi |
47112 | fi | |
47113 | exit 0 | |
81f90336 | 47114 | elif test ${D}DEPSMODE = mwcc ; then |
f6b50c59 | 47115 | ${D}* || exit ${D}? |
81f90336 MW |
47116 | # Run mwcc again with -MM and redirect into the dep file we want |
47117 | # NOTE: We can't use shift here because we need ${D}* to be valid | |
47118 | prevarg= | |
47119 | for arg in ${D}* ; do | |
47120 | if test "${D}prevarg" = "-o"; then | |
47121 | objfile=${D}arg | |
47122 | else | |
47123 | case "${D}arg" in | |
47124 | -* ) | |
47125 | ;; | |
47126 | * ) | |
47127 | srcfile=${D}arg | |
47128 | ;; | |
47129 | esac | |
47130 | fi | |
47131 | prevarg="${D}arg" | |
47132 | done | |
0ad5d837 | 47133 | ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d |
81f90336 | 47134 | exit 0 |
0ad5d837 | 47135 | elif test ${D}DEPSMODE = unixcc; then |
f6b50c59 | 47136 | ${D}* || exit ${D}? |
a9e5b1f0 MW |
47137 | # Run compiler again with deps flag and redirect into the dep file. |
47138 | # It doesn't work if the '-o FILE' option is used, but without it the | |
47139 | # dependency file will contain the wrong name for the object. So it is | |
47140 | # removed from the command line, and the dep file is fixed with sed. | |
47141 | cmd="" | |
47142 | while test ${D}# -gt 0; do | |
47143 | case "${D}1" in | |
47144 | -o ) | |
47145 | shift | |
47146 | objfile=${D}1 | |
47147 | ;; | |
47148 | * ) | |
47149 | eval arg${D}#=\\${D}1 | |
47150 | cmd="${D}cmd \\${D}arg${D}#" | |
47151 | ;; | |
47152 | esac | |
47153 | shift | |
47154 | done | |
0ad5d837 | 47155 | eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d |
a9e5b1f0 | 47156 | exit 0 |
a848cd7e | 47157 | else |
473276a9 VS |
47158 | ${D}* |
47159 | exit ${D}? | |
a848cd7e SC |
47160 | fi |
47161 | EOF | |
473276a9 | 47162 | |
f10e38c4 VZ |
47163 | chmod +x bk-deps |
47164 | fi | |
a848cd7e SC |
47165 | fi |
47166 | ||
47167 | ||
47168 | ||
47169 | ||
a848cd7e SC |
47170 | case ${BAKEFILE_HOST} in |
47171 | *-*-cygwin* | *-*-mingw32* ) | |
8ced02f6 DE |
47172 | if test -n "$ac_tool_prefix"; then |
47173 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
47174 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
47175 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
47176 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
47177 | if test "${ac_cv_prog_WINDRES+set}" = set; then | |
47178 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
47179 | else | |
47180 | if test -n "$WINDRES"; then | |
47181 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
47182 | else | |
47183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
47184 | for as_dir in $PATH | |
47185 | do | |
47186 | IFS=$as_save_IFS | |
47187 | test -z "$as_dir" && as_dir=. | |
47188 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47189 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
47190 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" | |
47191 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
47192 | break 2 | |
47193 | fi | |
47194 | done | |
47195 | done | |
47196 | ||
47197 | fi | |
47198 | fi | |
47199 | WINDRES=$ac_cv_prog_WINDRES | |
47200 | if test -n "$WINDRES"; then | |
47201 | echo "$as_me:$LINENO: result: $WINDRES" >&5 | |
47202 | echo "${ECHO_T}$WINDRES" >&6 | |
47203 | else | |
47204 | echo "$as_me:$LINENO: result: no" >&5 | |
47205 | echo "${ECHO_T}no" >&6 | |
47206 | fi | |
47207 | ||
47208 | fi | |
47209 | if test -z "$ac_cv_prog_WINDRES"; then | |
47210 | ac_ct_WINDRES=$WINDRES | |
47211 | # Extract the first word of "windres", so it can be a program name with args. | |
a848cd7e SC |
47212 | set dummy windres; ac_word=$2 |
47213 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
47214 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 47215 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
a848cd7e SC |
47216 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
47217 | else | |
8ced02f6 DE |
47218 | if test -n "$ac_ct_WINDRES"; then |
47219 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
a848cd7e SC |
47220 | else |
47221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
47222 | for as_dir in $PATH | |
47223 | do | |
47224 | IFS=$as_save_IFS | |
47225 | test -z "$as_dir" && as_dir=. | |
47226 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47227 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 47228 | ac_cv_prog_ac_ct_WINDRES="windres" |
a848cd7e SC |
47229 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
47230 | break 2 | |
47231 | fi | |
47232 | done | |
47233 | done | |
47234 | ||
a848cd7e SC |
47235 | fi |
47236 | fi | |
8ced02f6 DE |
47237 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
47238 | if test -n "$ac_ct_WINDRES"; then | |
47239 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 | |
47240 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
a848cd7e SC |
47241 | else |
47242 | echo "$as_me:$LINENO: result: no" >&5 | |
47243 | echo "${ECHO_T}no" >&6 | |
47244 | fi | |
47245 | ||
8ced02f6 DE |
47246 | WINDRES=$ac_ct_WINDRES |
47247 | else | |
47248 | WINDRES="$ac_cv_prog_WINDRES" | |
47249 | fi | |
47250 | ||
a848cd7e SC |
47251 | ;; |
47252 | ||
1e9e8aba | 47253 | *-*-darwin* | powerpc-apple-macos* ) |
a848cd7e SC |
47254 | # Extract the first word of "Rez", so it can be a program name with args. |
47255 | set dummy Rez; ac_word=$2 | |
47256 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
47257 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 47258 | if test "${ac_cv_prog_REZ+set}" = set; then |
a848cd7e SC |
47259 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
47260 | else | |
8ced02f6 DE |
47261 | if test -n "$REZ"; then |
47262 | ac_cv_prog_REZ="$REZ" # Let the user override the test. | |
a848cd7e SC |
47263 | else |
47264 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
47265 | for as_dir in $PATH | |
47266 | do | |
47267 | IFS=$as_save_IFS | |
47268 | test -z "$as_dir" && as_dir=. | |
47269 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47270 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 47271 | ac_cv_prog_REZ="Rez" |
a848cd7e SC |
47272 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
47273 | break 2 | |
47274 | fi | |
47275 | done | |
47276 | done | |
47277 | ||
8ced02f6 | 47278 | test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez" |
a848cd7e SC |
47279 | fi |
47280 | fi | |
8ced02f6 DE |
47281 | REZ=$ac_cv_prog_REZ |
47282 | if test -n "$REZ"; then | |
47283 | echo "$as_me:$LINENO: result: $REZ" >&5 | |
47284 | echo "${ECHO_T}$REZ" >&6 | |
a848cd7e SC |
47285 | else |
47286 | echo "$as_me:$LINENO: result: no" >&5 | |
47287 | echo "${ECHO_T}no" >&6 | |
47288 | fi | |
47289 | ||
47290 | # Extract the first word of "SetFile", so it can be a program name with args. | |
47291 | set dummy SetFile; ac_word=$2 | |
47292 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
47293 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
47294 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
47295 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
47296 | else | |
47297 | if test -n "$SETFILE"; then | |
47298 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
47299 | else | |
47300 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
47301 | for as_dir in $PATH | |
47302 | do | |
47303 | IFS=$as_save_IFS | |
47304 | test -z "$as_dir" && as_dir=. | |
47305 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47306 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
47307 | ac_cv_prog_SETFILE="SetFile" | |
47308 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
47309 | break 2 | |
47310 | fi | |
47311 | done | |
47312 | done | |
47313 | ||
47314 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
47315 | fi | |
47316 | fi | |
47317 | SETFILE=$ac_cv_prog_SETFILE | |
47318 | if test -n "$SETFILE"; then | |
47319 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
47320 | echo "${ECHO_T}$SETFILE" >&6 | |
47321 | else | |
47322 | echo "$as_me:$LINENO: result: no" >&5 | |
47323 | echo "${ECHO_T}no" >&6 | |
47324 | fi | |
47325 | ||
47326 | ;; | |
47327 | esac | |
47328 | ||
47329 | ||
47330 | ||
47331 | ||
47332 | ||
8ced02f6 | 47333 | |
f10e38c4 | 47334 | BAKEFILE_BAKEFILE_M4_VERSION="0.2.0" |
a848cd7e | 47335 | |
dcc1b6ad | 47336 | |
f10e38c4 | 47337 | BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0" |
a848cd7e | 47338 | |
646b6ec1 | 47339 | |
74b84332 | 47340 | |
a848cd7e SC |
47341 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
47342 | if test "${enable_precomp_headers+set}" = set; then | |
47343 | enableval="$enable_precomp_headers" | |
47344 | bk_use_pch="$enableval" | |
47345 | fi; | |
47346 | ||
47347 | GCC_PCH=0 | |
f10e38c4 VZ |
47348 | ICC_PCH=0 |
47349 | USE_PCH=0 | |
a848cd7e | 47350 | |
5c60e845 MW |
47351 | case ${BAKEFILE_HOST} in |
47352 | *-*-cygwin* ) | |
47353 | bk_use_pch="no" | |
47354 | ;; | |
47355 | esac | |
47356 | ||
a848cd7e SC |
47357 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then |
47358 | if test "x$GCC" = "xyes"; then | |
47359 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
47360 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
47361 | cat >conftest.$ac_ext <<_ACEOF | |
47362 | /* confdefs.h. */ | |
47363 | _ACEOF | |
47364 | cat confdefs.h >>conftest.$ac_ext | |
47365 | cat >>conftest.$ac_ext <<_ACEOF | |
47366 | /* end confdefs.h. */ | |
47367 | ||
47368 | int | |
47369 | main () | |
47370 | { | |
47371 | ||
47372 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
e5efa97e | 47373 | There is no PCH support |
a848cd7e SC |
47374 | #endif |
47375 | #if (__GNUC__ < 3) | |
e5efa97e | 47376 | There is no PCH support |
a848cd7e SC |
47377 | #endif |
47378 | #if (__GNUC__ == 3) && \ | |
47379 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
f10e38c4 VZ |
47380 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \ |
47381 | ( defined(__INTEL_COMPILER) ) | |
e5efa97e | 47382 | There is no PCH support |
a848cd7e SC |
47383 | #endif |
47384 | ||
47385 | ; | |
47386 | return 0; | |
47387 | } | |
47388 | _ACEOF | |
47389 | rm -f conftest.$ac_objext | |
47390 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 47391 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 47392 | ac_status=$? |
ac1cb8d3 VS |
47393 | grep -v '^ *+' conftest.er1 >conftest.err |
47394 | rm -f conftest.er1 | |
47395 | cat conftest.err >&5 | |
a848cd7e SC |
47396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47397 | (exit $ac_status); } && | |
d25774ab JS |
47398 | { ac_try='test -z "$ac_c_werror_flag" |
47399 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
47400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
47401 | (eval $ac_try) 2>&5 | |
47402 | ac_status=$? | |
47403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47404 | (exit $ac_status); }; } && | |
47405 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
47406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
47407 | (eval $ac_try) 2>&5 | |
47408 | ac_status=$? | |
47409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47410 | (exit $ac_status); }; }; then | |
47411 | ||
47412 | echo "$as_me:$LINENO: result: yes" >&5 | |
47413 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
47414 | GCC_PCH=1 |
47415 | ||
47416 | else | |
47417 | echo "$as_me: failed program was:" >&5 | |
47418 | sed 's/^/| /' conftest.$ac_ext >&5 | |
47419 | ||
47420 | ||
f10e38c4 VZ |
47421 | cat >conftest.$ac_ext <<_ACEOF |
47422 | /* confdefs.h. */ | |
47423 | _ACEOF | |
47424 | cat confdefs.h >>conftest.$ac_ext | |
47425 | cat >>conftest.$ac_ext <<_ACEOF | |
47426 | /* end confdefs.h. */ | |
47427 | ||
47428 | int | |
47429 | main () | |
47430 | { | |
47431 | ||
47432 | #if !defined(__INTEL_COMPILER) || \ | |
47433 | (__INTEL_COMPILER < 800) | |
e5efa97e | 47434 | There is no PCH support |
f10e38c4 VZ |
47435 | #endif |
47436 | ||
47437 | ; | |
47438 | return 0; | |
47439 | } | |
47440 | _ACEOF | |
47441 | rm -f conftest.$ac_objext | |
47442 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
47443 | (eval $ac_compile) 2>conftest.er1 | |
47444 | ac_status=$? | |
47445 | grep -v '^ *+' conftest.er1 >conftest.err | |
47446 | rm -f conftest.er1 | |
47447 | cat conftest.err >&5 | |
47448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47449 | (exit $ac_status); } && | |
d25774ab JS |
47450 | { ac_try='test -z "$ac_c_werror_flag" |
47451 | || test ! -s conftest.err' | |
f10e38c4 VZ |
47452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
47453 | (eval $ac_try) 2>&5 | |
47454 | ac_status=$? | |
47455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47456 | (exit $ac_status); }; } && | |
47457 | { ac_try='test -s conftest.$ac_objext' | |
47458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
47459 | (eval $ac_try) 2>&5 | |
47460 | ac_status=$? | |
47461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47462 | (exit $ac_status); }; }; then | |
47463 | ||
47464 | echo "$as_me:$LINENO: result: yes" >&5 | |
47465 | echo "${ECHO_T}yes" >&6 | |
47466 | ICC_PCH=1 | |
47467 | ||
47468 | else | |
47469 | echo "$as_me: failed program was:" >&5 | |
47470 | sed 's/^/| /' conftest.$ac_ext >&5 | |
47471 | ||
47472 | ||
47473 | echo "$as_me:$LINENO: result: no" >&5 | |
a848cd7e SC |
47474 | echo "${ECHO_T}no" >&6 |
47475 | ||
47476 | fi | |
ac1cb8d3 | 47477 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f10e38c4 VZ |
47478 | |
47479 | fi | |
47480 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
47481 | if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then | |
47482 | USE_PCH=1 | |
1e9e8aba DE |
47483 | |
47484 | D='$' | |
47485 | cat <<EOF >bk-make-pch | |
a848cd7e SC |
47486 | #!/bin/sh |
47487 | ||
47488 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
47489 | # script. It is used to generated precompiled headers. | |
47490 | # | |
47491 | # Permission is given to use this file in any way. | |
47492 | ||
1e9e8aba DE |
47493 | outfile="${D}{1}" |
47494 | header="${D}{2}" | |
a848cd7e SC |
47495 | shift |
47496 | shift | |
47497 | ||
f10e38c4 VZ |
47498 | compiler="" |
47499 | headerfile="" | |
47500 | ||
1e9e8aba | 47501 | while test ${D}{#} -gt 0; do |
f10e38c4 | 47502 | add_to_cmdline=1 |
1e9e8aba | 47503 | case "${D}{1}" in |
a848cd7e | 47504 | -I* ) |
1e9e8aba DE |
47505 | incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\` |
47506 | if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then | |
47507 | headerfile="${D}{incdir}/${D}{header}" | |
a848cd7e SC |
47508 | fi |
47509 | ;; | |
f10e38c4 VZ |
47510 | -use-pch|-use_pch ) |
47511 | shift | |
47512 | add_to_cmdline=0 | |
47513 | ;; | |
a848cd7e | 47514 | esac |
f10e38c4 VZ |
47515 | if test ${D}add_to_cmdline = 1 ; then |
47516 | compiler="${D}{compiler} ${D}{1}" | |
47517 | fi | |
a848cd7e SC |
47518 | shift |
47519 | done | |
47520 | ||
1e9e8aba | 47521 | if test "x${D}{headerfile}" = "x" ; then |
f10e38c4 | 47522 | echo "error: can't find header ${D}{header} in include paths" >&2 |
a848cd7e | 47523 | else |
1e9e8aba DE |
47524 | if test -f ${D}{outfile} ; then |
47525 | rm -f ${D}{outfile} | |
a848cd7e | 47526 | else |
1e9e8aba | 47527 | mkdir -p \`dirname ${D}{outfile}\` |
a848cd7e | 47528 | fi |
1e9e8aba | 47529 | depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d" |
a848cd7e | 47530 | mkdir -p .deps |
f10e38c4 VZ |
47531 | if test "x${GCC_PCH}" = "x1" ; then |
47532 | # can do this because gcc is >= 3.4: | |
47533 | ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}" | |
47534 | elif test "x${ICC_PCH}" = "x1" ; then | |
47535 | filename=pch_gen-${D}${D} | |
47536 | file=${D}{filename}.c | |
47537 | dfile=${D}{filename}.d | |
47538 | cat > ${D}file <<EOT | |
47539 | #include "${D}header" | |
47540 | EOT | |
47541 | # using -MF icc complains about differing command lines in creation/use | |
47542 | ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\ | |
47543 | sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\ | |
47544 | rm -f ${D}file ${D}dfile ${D}{filename}.o | |
47545 | fi | |
1e9e8aba | 47546 | exit ${D}{?} |
a848cd7e SC |
47547 | fi |
47548 | EOF | |
1e9e8aba | 47549 | |
a848cd7e SC |
47550 | chmod +x bk-make-pch |
47551 | fi | |
47552 | fi | |
47553 | fi | |
47554 | ||
47555 | ||
47556 | ||
f10e38c4 | 47557 | |
a848cd7e SC |
47558 | COND_BUILD_DEBUG="#" |
47559 | if test "x$BUILD" = "xdebug" ; then | |
47560 | COND_BUILD_DEBUG="" | |
47561 | fi | |
47562 | ||
47563 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
47564 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
47565 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
47566 | fi | |
47567 | ||
47568 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
47569 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
47570 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
47571 | fi | |
47572 | ||
47573 | COND_BUILD_DEBUG_UNICODE_0="#" | |
47574 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
47575 | COND_BUILD_DEBUG_UNICODE_0="" | |
47576 | fi | |
47577 | ||
47578 | COND_BUILD_DEBUG_UNICODE_1="#" | |
47579 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
47580 | COND_BUILD_DEBUG_UNICODE_1="" | |
47581 | fi | |
47582 | ||
47583 | COND_BUILD_RELEASE="#" | |
47584 | if test "x$BUILD" = "xrelease" ; then | |
47585 | COND_BUILD_RELEASE="" | |
47586 | fi | |
47587 | ||
47588 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
47589 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
47590 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
47591 | fi | |
47592 | ||
47593 | COND_BUILD_RELEASE_UNICODE_0="#" | |
47594 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
47595 | COND_BUILD_RELEASE_UNICODE_0="" | |
47596 | fi | |
47597 | ||
47598 | COND_BUILD_RELEASE_UNICODE_1="#" | |
47599 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
47600 | COND_BUILD_RELEASE_UNICODE_1="" | |
47601 | fi | |
47602 | ||
47603 | COND_DEBUG_FLAG_1="#" | |
47604 | if test "x$DEBUG_FLAG" = "x1" ; then | |
47605 | COND_DEBUG_FLAG_1="" | |
47606 | fi | |
47607 | ||
47608 | COND_DEBUG_INFO_0="#" | |
47609 | if test "x$DEBUG_INFO" = "x0" ; then | |
47610 | COND_DEBUG_INFO_0="" | |
47611 | fi | |
47612 | ||
47613 | COND_DEBUG_INFO_1="#" | |
47614 | if test "x$DEBUG_INFO" = "x1" ; then | |
47615 | COND_DEBUG_INFO_1="" | |
47616 | fi | |
47617 | ||
47618 | COND_DEPS_TRACKING_0="#" | |
47619 | if test "x$DEPS_TRACKING" = "x0" ; then | |
47620 | COND_DEPS_TRACKING_0="" | |
47621 | fi | |
47622 | ||
47623 | COND_DEPS_TRACKING_1="#" | |
47624 | if test "x$DEPS_TRACKING" = "x1" ; then | |
47625 | COND_DEPS_TRACKING_1="" | |
47626 | fi | |
47627 | ||
47628 | COND_GCC_PCH_1="#" | |
47629 | if test "x$GCC_PCH" = "x1" ; then | |
47630 | COND_GCC_PCH_1="" | |
47631 | fi | |
47632 | ||
f10e38c4 VZ |
47633 | COND_ICC_PCH_1="#" |
47634 | if test "x$ICC_PCH" = "x1" ; then | |
47635 | COND_ICC_PCH_1="" | |
47636 | fi | |
47637 | ||
a848cd7e SC |
47638 | COND_MONOLITHIC_0="#" |
47639 | if test "x$MONOLITHIC" = "x0" ; then | |
47640 | COND_MONOLITHIC_0="" | |
47641 | fi | |
47642 | ||
47643 | COND_MONOLITHIC_0_SHARED_0="#" | |
47644 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
47645 | COND_MONOLITHIC_0_SHARED_0="" | |
47646 | fi | |
47647 | ||
47648 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
47649 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
47650 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
47651 | fi | |
47652 | ||
90970d69 DE |
47653 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#" |
47654 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
47655 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="" | |
47656 | fi | |
47657 | ||
f10e38c4 VZ |
47658 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#" |
47659 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then | |
47660 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="" | |
47661 | fi | |
47662 | ||
a848cd7e SC |
47663 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" |
47664 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
47665 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
47666 | fi | |
47667 | ||
6671c68b VZ |
47668 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#" |
47669 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
47670 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="" | |
47671 | fi | |
47672 | ||
a848cd7e SC |
47673 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" |
47674 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
47675 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
47676 | fi | |
47677 | ||
ceec2216 RL |
47678 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#" |
47679 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
47680 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="" | |
47681 | fi | |
47682 | ||
a848cd7e SC |
47683 | COND_MONOLITHIC_0_SHARED_1="#" |
47684 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
47685 | COND_MONOLITHIC_0_SHARED_1="" | |
47686 | fi | |
47687 | ||
47688 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
47689 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
47690 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
47691 | fi | |
47692 | ||
90970d69 DE |
47693 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#" |
47694 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
47695 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="" | |
47696 | fi | |
47697 | ||
f10e38c4 VZ |
47698 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#" |
47699 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then | |
47700 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="" | |
47701 | fi | |
47702 | ||
a848cd7e SC |
47703 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" |
47704 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
47705 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
47706 | fi | |
47707 | ||
6671c68b VZ |
47708 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#" |
47709 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
47710 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="" | |
47711 | fi | |
47712 | ||
a848cd7e SC |
47713 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" |
47714 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
47715 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
47716 | fi | |
47717 | ||
ceec2216 RL |
47718 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#" |
47719 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
47720 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="" | |
47721 | fi | |
47722 | ||
e5efa97e VZ |
47723 | COND_MONOLITHIC_0_USE_MEDIA_1="#" |
47724 | if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then | |
47725 | COND_MONOLITHIC_0_USE_MEDIA_1="" | |
47726 | fi | |
47727 | ||
a848cd7e SC |
47728 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
47729 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
47730 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
47731 | fi | |
47732 | ||
47733 | COND_MONOLITHIC_1="#" | |
47734 | if test "x$MONOLITHIC" = "x1" ; then | |
47735 | COND_MONOLITHIC_1="" | |
47736 | fi | |
47737 | ||
47738 | COND_MONOLITHIC_1_SHARED_0="#" | |
47739 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
47740 | COND_MONOLITHIC_1_SHARED_0="" | |
47741 | fi | |
47742 | ||
47743 | COND_MONOLITHIC_1_SHARED_1="#" | |
47744 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
47745 | COND_MONOLITHIC_1_SHARED_1="" | |
47746 | fi | |
47747 | ||
47748 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
47749 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
47750 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
47751 | fi | |
47752 | ||
47753 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
47754 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
47755 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
47756 | fi | |
47757 | ||
eb730a0c JS |
47758 | COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#" |
47759 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
47760 | COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="" | |
47761 | fi | |
47762 | ||
a848cd7e SC |
47763 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" |
47764 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
47765 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
47766 | fi | |
47767 | ||
47768 | COND_PLATFORM_MACOSX_1="#" | |
47769 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
47770 | COND_PLATFORM_MACOSX_1="" | |
47771 | fi | |
47772 | ||
a30f955f VS |
47773 | COND_PLATFORM_MACOSX_1_TOOLKIT_="#" |
47774 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then | |
47775 | COND_PLATFORM_MACOSX_1_TOOLKIT_="" | |
47776 | fi | |
47777 | ||
a848cd7e SC |
47778 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" |
47779 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
47780 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
47781 | fi | |
47782 | ||
47783 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
47784 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
47785 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
47786 | fi | |
47787 | ||
47788 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
47789 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
47790 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
47791 | fi | |
47792 | ||
fc480dc1 DE |
47793 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#" |
47794 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
47795 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="" | |
47796 | fi | |
47797 | ||
1e9e8aba DE |
47798 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" |
47799 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47800 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
47801 | fi | |
47802 | ||
ebee3cd0 VS |
47803 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#" |
47804 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then | |
47805 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="" | |
47806 | fi | |
47807 | ||
47808 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#" | |
47809 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then | |
47810 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="" | |
47811 | fi | |
47812 | ||
a848cd7e SC |
47813 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
47814 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
47815 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
47816 | fi | |
47817 | ||
47818 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
47819 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
47820 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
47821 | fi | |
47822 | ||
b48a2016 DE |
47823 | COND_PLATFORM_MACOS_1="#" |
47824 | if test "x$PLATFORM_MACOS" = "x1" ; then | |
47825 | COND_PLATFORM_MACOS_1="" | |
47826 | fi | |
47827 | ||
083508af MW |
47828 | COND_PLATFORM_MAC_1="#" |
47829 | if test "x$PLATFORM_MAC" = "x1" ; then | |
47830 | COND_PLATFORM_MAC_1="" | |
47831 | fi | |
47832 | ||
e5efa97e VZ |
47833 | COND_PLATFORM_MSDOS_0="#" |
47834 | if test "x$PLATFORM_MSDOS" = "x0" ; then | |
47835 | COND_PLATFORM_MSDOS_0="" | |
47836 | fi | |
47837 | ||
83d8eb47 MW |
47838 | COND_PLATFORM_MSDOS_1="#" |
47839 | if test "x$PLATFORM_MSDOS" = "x1" ; then | |
47840 | COND_PLATFORM_MSDOS_1="" | |
47841 | fi | |
47842 | ||
a848cd7e SC |
47843 | COND_PLATFORM_OS2_1="#" |
47844 | if test "x$PLATFORM_OS2" = "x1" ; then | |
47845 | COND_PLATFORM_OS2_1="" | |
47846 | fi | |
47847 | ||
47848 | COND_PLATFORM_UNIX_0="#" | |
47849 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
47850 | COND_PLATFORM_UNIX_0="" | |
47851 | fi | |
47852 | ||
47853 | COND_PLATFORM_UNIX_1="#" | |
47854 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
47855 | COND_PLATFORM_UNIX_1="" | |
47856 | fi | |
47857 | ||
47858 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
47859 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
47860 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
47861 | fi | |
47862 | ||
47863 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
47864 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
47865 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
47866 | fi | |
47867 | ||
47868 | COND_PLATFORM_WIN32_0="#" | |
47869 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
47870 | COND_PLATFORM_WIN32_0="" | |
47871 | fi | |
47872 | ||
47873 | COND_PLATFORM_WIN32_1="#" | |
47874 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
47875 | COND_PLATFORM_WIN32_1="" | |
47876 | fi | |
47877 | ||
47878 | COND_SHARED_0="#" | |
47879 | if test "x$SHARED" = "x0" ; then | |
47880 | COND_SHARED_0="" | |
47881 | fi | |
47882 | ||
083508af MW |
47883 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#" |
47884 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
47885 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="" | |
47886 | fi | |
47887 | ||
47888 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#" | |
47889 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
47890 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="" | |
47891 | fi | |
47892 | ||
47893 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#" | |
47894 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
47895 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="" | |
47896 | fi | |
47897 | ||
a848cd7e SC |
47898 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
47899 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
47900 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
47901 | fi | |
47902 | ||
47903 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
47904 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
47905 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
47906 | fi | |
47907 | ||
47908 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
47909 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
47910 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
47911 | fi | |
47912 | ||
47913 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
47914 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
47915 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
47916 | fi | |
47917 | ||
083508af MW |
47918 | COND_SHARED_0_USE_XRC_1="#" |
47919 | if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
47920 | COND_SHARED_0_USE_XRC_1="" | |
47921 | fi | |
47922 | ||
a848cd7e SC |
47923 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" |
47924 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
47925 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
47926 | fi | |
47927 | ||
47928 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
47929 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
47930 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
47931 | fi | |
47932 | ||
47933 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
47934 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
47935 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
47936 | fi | |
47937 | ||
47938 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
47939 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
47940 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
47941 | fi | |
47942 | ||
47943 | COND_SHARED_1="#" | |
47944 | if test "x$SHARED" = "x1" ; then | |
47945 | COND_SHARED_1="" | |
47946 | fi | |
47947 | ||
47948 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
47949 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
47950 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
47951 | fi | |
47952 | ||
083508af MW |
47953 | COND_SHARED_1_USE_XRC_1="#" |
47954 | if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
47955 | COND_SHARED_1_USE_XRC_1="" | |
47956 | fi | |
47957 | ||
a30f955f VS |
47958 | COND_TOOLKIT_="#" |
47959 | if test "x$TOOLKIT" = "x" ; then | |
47960 | COND_TOOLKIT_="" | |
47961 | fi | |
47962 | ||
a848cd7e SC |
47963 | COND_TOOLKIT_COCOA="#" |
47964 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
47965 | COND_TOOLKIT_COCOA="" | |
47966 | fi | |
47967 | ||
a49baeab DE |
47968 | COND_TOOLKIT_COCOA_USE_GUI_1="#" |
47969 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then | |
47970 | COND_TOOLKIT_COCOA_USE_GUI_1="" | |
47971 | fi | |
47972 | ||
a848cd7e SC |
47973 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
47974 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47975 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
47976 | fi | |
47977 | ||
47978 | COND_TOOLKIT_GTK="#" | |
47979 | if test "x$TOOLKIT" = "xGTK" ; then | |
47980 | COND_TOOLKIT_GTK="" | |
47981 | fi | |
47982 | ||
d044deea MW |
47983 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#" |
47984 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then | |
47985 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_="" | |
47986 | fi | |
47987 | ||
47988 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#" | |
47989 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then | |
47990 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="" | |
47991 | fi | |
47992 | ||
47993 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#" | |
47994 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then | |
47995 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="" | |
47996 | fi | |
47997 | ||
47998 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#" | |
47999 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
48000 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="" | |
48001 | fi | |
48002 | ||
48003 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#" | |
48004 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then | |
48005 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="" | |
48006 | fi | |
48007 | ||
48008 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#" | |
48009 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
48010 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="" | |
48011 | fi | |
48012 | ||
a848cd7e SC |
48013 | COND_TOOLKIT_GTK_USE_GUI_1="#" |
48014 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
48015 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
48016 | fi | |
48017 | ||
a848cd7e SC |
48018 | COND_TOOLKIT_MAC="#" |
48019 | if test "x$TOOLKIT" = "xMAC" ; then | |
48020 | COND_TOOLKIT_MAC="" | |
48021 | fi | |
48022 | ||
48023 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
48024 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
48025 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
48026 | fi | |
48027 | ||
48028 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
48029 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
48030 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
48031 | fi | |
48032 | ||
48033 | COND_TOOLKIT_MGL="#" | |
48034 | if test "x$TOOLKIT" = "xMGL" ; then | |
48035 | COND_TOOLKIT_MGL="" | |
48036 | fi | |
48037 | ||
48038 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
48039 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
48040 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
48041 | fi | |
48042 | ||
48043 | COND_TOOLKIT_MOTIF="#" | |
48044 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
48045 | COND_TOOLKIT_MOTIF="" | |
48046 | fi | |
48047 | ||
48048 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
48049 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
48050 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
48051 | fi | |
48052 | ||
48053 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
48054 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
48055 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
48056 | fi | |
48057 | ||
48058 | COND_TOOLKIT_MSW="#" | |
48059 | if test "x$TOOLKIT" = "xMSW" ; then | |
48060 | COND_TOOLKIT_MSW="" | |
48061 | fi | |
48062 | ||
48063 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
48064 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
48065 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
48066 | fi | |
48067 | ||
48068 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
48069 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
48070 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
48071 | fi | |
48072 | ||
0ee4059d DE |
48073 | COND_TOOLKIT_MSW_WXUNIV_0="#" |
48074 | if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
48075 | COND_TOOLKIT_MSW_WXUNIV_0="" | |
48076 | fi | |
48077 | ||
a848cd7e SC |
48078 | COND_TOOLKIT_PM="#" |
48079 | if test "x$TOOLKIT" = "xPM" ; then | |
48080 | COND_TOOLKIT_PM="" | |
48081 | fi | |
48082 | ||
48083 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
48084 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
48085 | COND_TOOLKIT_PM_USE_GUI_1="" | |
48086 | fi | |
48087 | ||
48088 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
48089 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
48090 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
48091 | fi | |
48092 | ||
3fd9c298 DE |
48093 | COND_TOOLKIT_WINCE="#" |
48094 | if test "x$TOOLKIT" = "xWINCE" ; then | |
48095 | COND_TOOLKIT_WINCE="" | |
48096 | fi | |
48097 | ||
48098 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
48099 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
48100 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
48101 | fi | |
48102 | ||
48103 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
48104 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
48105 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
48106 | fi | |
48107 | ||
0ee4059d DE |
48108 | COND_TOOLKIT_WINCE_WXUNIV_0="#" |
48109 | if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then | |
48110 | COND_TOOLKIT_WINCE_WXUNIV_0="" | |
48111 | fi | |
48112 | ||
a848cd7e SC |
48113 | COND_TOOLKIT_X11="#" |
48114 | if test "x$TOOLKIT" = "xX11" ; then | |
48115 | COND_TOOLKIT_X11="" | |
48116 | fi | |
48117 | ||
48118 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
48119 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
48120 | COND_TOOLKIT_X11_USE_GUI_1="" | |
48121 | fi | |
48122 | ||
48123 | COND_UNICODE_1="#" | |
48124 | if test "x$UNICODE" = "x1" ; then | |
48125 | COND_UNICODE_1="" | |
48126 | fi | |
48127 | ||
48128 | COND_USE_EXCEPTIONS_0="#" | |
48129 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
48130 | COND_USE_EXCEPTIONS_0="" | |
48131 | fi | |
48132 | ||
48133 | COND_USE_EXCEPTIONS_1="#" | |
48134 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
48135 | COND_USE_EXCEPTIONS_1="" | |
48136 | fi | |
48137 | ||
48138 | COND_USE_GUI_0="#" | |
48139 | if test "x$USE_GUI" = "x0" ; then | |
48140 | COND_USE_GUI_0="" | |
48141 | fi | |
48142 | ||
48143 | COND_USE_GUI_1="#" | |
48144 | if test "x$USE_GUI" = "x1" ; then | |
48145 | COND_USE_GUI_1="" | |
48146 | fi | |
48147 | ||
48148 | COND_USE_GUI_1_WXUNIV_0="#" | |
48149 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
48150 | COND_USE_GUI_1_WXUNIV_0="" | |
48151 | fi | |
48152 | ||
48153 | COND_USE_GUI_1_WXUNIV_1="#" | |
48154 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
48155 | COND_USE_GUI_1_WXUNIV_1="" | |
48156 | fi | |
48157 | ||
48158 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
48159 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
48160 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
48161 | fi | |
48162 | ||
48163 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
48164 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
48165 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
48166 | fi | |
48167 | ||
48168 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
48169 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
48170 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
48171 | fi | |
48172 | ||
083508af MW |
48173 | COND_USE_ODBC_1="#" |
48174 | if test "x$USE_ODBC" = "x1" ; then | |
48175 | COND_USE_ODBC_1="" | |
48176 | fi | |
48177 | ||
48178 | COND_USE_OPENGL_1="#" | |
48179 | if test "x$USE_OPENGL" = "x1" ; then | |
48180 | COND_USE_OPENGL_1="" | |
48181 | fi | |
48182 | ||
f10e38c4 VZ |
48183 | COND_USE_PCH_1="#" |
48184 | if test "x$USE_PCH" = "x1" ; then | |
48185 | COND_USE_PCH_1="" | |
48186 | fi | |
48187 | ||
a848cd7e SC |
48188 | COND_USE_PLUGINS_0="#" |
48189 | if test "x$USE_PLUGINS" = "x0" ; then | |
48190 | COND_USE_PLUGINS_0="" | |
48191 | fi | |
48192 | ||
0b78747f MW |
48193 | COND_USE_RTTI_0="#" |
48194 | if test "x$USE_RTTI" = "x0" ; then | |
48195 | COND_USE_RTTI_0="" | |
48196 | fi | |
48197 | ||
48198 | COND_USE_RTTI_1="#" | |
48199 | if test "x$USE_RTTI" = "x1" ; then | |
48200 | COND_USE_RTTI_1="" | |
48201 | fi | |
48202 | ||
a848cd7e SC |
48203 | COND_USE_SOSYMLINKS_1="#" |
48204 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
48205 | COND_USE_SOSYMLINKS_1="" | |
48206 | fi | |
48207 | ||
eb730a0c JS |
48208 | COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#" |
48209 | if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
48210 | COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="" | |
48211 | fi | |
48212 | ||
a848cd7e SC |
48213 | COND_USE_SOVERLINUX_1="#" |
48214 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
48215 | COND_USE_SOVERLINUX_1="" | |
48216 | fi | |
48217 | ||
48218 | COND_USE_SOVERSION_0="#" | |
48219 | if test "x$USE_SOVERSION" = "x0" ; then | |
48220 | COND_USE_SOVERSION_0="" | |
48221 | fi | |
48222 | ||
48223 | COND_USE_SOVERSOLARIS_1="#" | |
48224 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
48225 | COND_USE_SOVERSOLARIS_1="" | |
48226 | fi | |
48227 | ||
0b78747f MW |
48228 | COND_USE_THREADS_0="#" |
48229 | if test "x$USE_THREADS" = "x0" ; then | |
48230 | COND_USE_THREADS_0="" | |
48231 | fi | |
48232 | ||
48233 | COND_USE_THREADS_1="#" | |
48234 | if test "x$USE_THREADS" = "x1" ; then | |
48235 | COND_USE_THREADS_1="" | |
48236 | fi | |
48237 | ||
a13a7f89 RL |
48238 | COND_USE_XRC_1="#" |
48239 | if test "x$USE_XRC" = "x1" ; then | |
48240 | COND_USE_XRC_1="" | |
48241 | fi | |
48242 | ||
eb730a0c JS |
48243 | COND_WINDOWS_IMPLIB_1="#" |
48244 | if test "x$WINDOWS_IMPLIB" = "x1" ; then | |
48245 | COND_WINDOWS_IMPLIB_1="" | |
48246 | fi | |
48247 | ||
a848cd7e SC |
48248 | COND_WITH_PLUGIN_SDL_1="#" |
48249 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
48250 | COND_WITH_PLUGIN_SDL_1="" | |
48251 | fi | |
48252 | ||
1e6eb025 VZ |
48253 | COND_WXUNIV_0="#" |
48254 | if test "x$WXUNIV" = "x0" ; then | |
48255 | COND_WXUNIV_0="" | |
48256 | fi | |
48257 | ||
a848cd7e SC |
48258 | COND_WXUNIV_1="#" |
48259 | if test "x$WXUNIV" = "x1" ; then | |
48260 | COND_WXUNIV_1="" | |
48261 | fi | |
48262 | ||
48263 | COND_WXUSE_EXPAT_BUILTIN="#" | |
48264 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
48265 | COND_WXUSE_EXPAT_BUILTIN="" | |
48266 | fi | |
48267 | ||
48268 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
48269 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
48270 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
48271 | fi | |
48272 | ||
48273 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
48274 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
48275 | COND_WXUSE_LIBPNG_BUILTIN="" | |
48276 | fi | |
48277 | ||
48278 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
48279 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
48280 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
48281 | fi | |
48282 | ||
48283 | COND_WXUSE_ODBC_BUILTIN="#" | |
48284 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
48285 | COND_WXUSE_ODBC_BUILTIN="" | |
48286 | fi | |
48287 | ||
48288 | COND_WXUSE_REGEX_BUILTIN="#" | |
48289 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
48290 | COND_WXUSE_REGEX_BUILTIN="" | |
48291 | fi | |
48292 | ||
48293 | COND_WXUSE_ZLIB_BUILTIN="#" | |
48294 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
48295 | COND_WXUSE_ZLIB_BUILTIN="" | |
48296 | fi | |
48297 | ||
48298 | ||
48299 | ||
810b94f0 MW |
48300 | if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then |
48301 | { { 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 | |
48302 | 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;} | |
48303 | { (exit 1); exit 1; }; } | |
48304 | fi | |
48305 | ||
2057db16 VS |
48306 | if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then |
48307 | { { 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 | |
48308 | 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;} | |
48309 | { (exit 1); exit 1; }; } | |
48310 | fi | |
48311 | ||
a848cd7e | 48312 | |
7afc46ab KO |
48313 | |
48314 | if test "$wxUSE_MAC" = 1 ; then | |
48315 | if test "$wxUSE_UNIVERSAL_BINARY" = "yes" ; then | |
48316 | sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp | |
48317 | mv temp bk-deps | |
48318 | chmod +x bk-deps | |
48319 | fi | |
48320 | fi | |
48321 | ||
ceec2216 RL |
48322 | if test "$wxUSE_SHARED" = "yes"; then |
48323 | ||
48324 | sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'` | |
48325 | EXE_LINKER=`eval echo "$sanitised_bakefile_mess"` | |
48326 | ||
5b674b9d DE |
48327 | case "${host}" in |
48328 | *-pc-os2_emx | *-pc-os2-emx ) | |
48329 | SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
48330 | SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
48331 | cp -p ${srcdir}/src/os2/dllnames.sh . | |
48332 | cp -p ${srcdir}/src/os2/dllar.sh . | |
48333 | ;; | |
48334 | esac | |
ceec2216 RL |
48335 | else |
48336 | ||
48337 | EXE_LINKER="$CXX -o" | |
48338 | ||
48339 | fi | |
69120ee4 VZ |
48340 | if test "$wxUSE_OMF" = "yes"; then |
48341 | case "${host}" in | |
48342 | *-pc-os2_emx | *-pc-os2-emx ) | |
48343 | LDFLAGS="$LDFLAGS -Zlinker /EXEPACK" | |
48344 | LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
48345 | WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
48346 | ;; | |
48347 | esac | |
48348 | fi | |
a848cd7e | 48349 | |
c08ebc62 | 48350 | if test $GCC_PCH = 1 ; then |
254e8e29 | 48351 | CPPFLAGS="-DWX_PRECOMP $CPPFLAGS" |
ddd14b14 | 48352 | fi |
a848cd7e | 48353 | |
5ff751d6 | 48354 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS" |
a848cd7e SC |
48355 | |
48356 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
48357 | ||
48358 | ||
48359 | ||
48360 | ||
48361 | ||
48362 | ||
48363 | ||
48364 | ||
48365 | ||
48366 | ||
48367 | ||
48368 | ||
48369 | ||
48370 | ||
48371 | ||
48372 | ||
48373 | ||
48374 | ||
48375 | ||
48376 | ||
48377 | ||
48378 | ||
48379 | ||
48380 | ||
48381 | ||
48382 | ||
48383 | ||
48384 | ||
48385 | ||
48386 | ||
48387 | ||
48388 | ||
48389 | ||
48390 | ||
48391 | ||
48392 | ||
48393 | ||
48394 | ||
48395 | ||
48396 | ||
48397 | ||
48398 | ||
a848cd7e SC |
48399 | |
48400 | ||
48401 | ||
48402 | ||
48403 | ||
48404 | ||
48405 | ||
48406 | ||
48407 | ||
48408 | ||
48409 | ||
48410 | ||
a848cd7e SC |
48411 | |
48412 | ||
ddd14b14 | 48413 | |
370d2fd7 | 48414 | |
8ced02f6 | 48415 | |
a848cd7e SC |
48416 | |
48417 | ||
48418 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
48419 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 48420 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
48421 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
48422 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48423 | else | |
48424 | cat >conftest.make <<\_ACEOF | |
48425 | all: | |
48426 | @echo 'ac_maketemp="$(MAKE)"' | |
48427 | _ACEOF | |
48428 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
48429 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
48430 | if test -n "$ac_maketemp"; then | |
48431 | eval ac_cv_prog_make_${ac_make}_set=yes | |
48432 | else | |
48433 | eval ac_cv_prog_make_${ac_make}_set=no | |
48434 | fi | |
48435 | rm -f conftest.make | |
48436 | fi | |
48437 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
48438 | echo "$as_me:$LINENO: result: yes" >&5 | |
48439 | echo "${ECHO_T}yes" >&6 | |
48440 | SET_MAKE= | |
48441 | else | |
48442 | echo "$as_me:$LINENO: result: no" >&5 | |
48443 | echo "${ECHO_T}no" >&6 | |
48444 | SET_MAKE="MAKE=${MAKE-make}" | |
48445 | fi | |
48446 | ||
48447 | ||
a848cd7e | 48448 | |
ceec2216 RL |
48449 | ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" |
48450 | ||
a848cd7e | 48451 | |
5c60e845 MW |
48452 | if test "$USE_WIN32" = 1; then |
48453 | ac_config_commands="$ac_config_commands | |
48454 | rcdefs.h | |
48455 | " | |
48456 | ||
48457 | fi | |
48458 | ||
ceec2216 | 48459 | ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" |
a848cd7e | 48460 | |
a848cd7e | 48461 | |
ceec2216 | 48462 | ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" |
a848cd7e | 48463 | |
ceec2216 RL |
48464 | |
48465 | ac_config_files="$ac_config_files version-script Makefile" | |
48466 | ||
48467 | ||
5c60e845 | 48468 | ac_config_commands="$ac_config_commands wx-config" |
a848cd7e SC |
48469 | |
48470 | ||
9103d280 | 48471 | |
1c14217d | 48472 | if test "$wxWITH_SUBDIRS" != "no"; then |
a848cd7e SC |
48473 | if test "$wxUSE_GUI" = "yes"; then |
48474 | SUBDIRS="samples demos utils contrib" | |
48475 | else SUBDIRS="samples utils" | |
48476 | fi | |
48477 | ||
48478 | ||
48479 | ||
48480 | # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given. | |
48481 | if test "${with_cppunit_prefix+set}" = set; then | |
48482 | withval="$with_cppunit_prefix" | |
48483 | cppunit_config_prefix="$withval" | |
48484 | else | |
48485 | cppunit_config_prefix="" | |
48486 | fi; | |
48487 | ||
48488 | # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given. | |
48489 | if test "${with_cppunit_exec_prefix+set}" = set; then | |
48490 | withval="$with_cppunit_exec_prefix" | |
48491 | cppunit_config_exec_prefix="$withval" | |
48492 | else | |
48493 | cppunit_config_exec_prefix="" | |
48494 | fi; | |
48495 | ||
48496 | if test x$cppunit_config_exec_prefix != x ; then | |
48497 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" | |
48498 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
48499 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config | |
48500 | fi | |
48501 | fi | |
48502 | if test x$cppunit_config_prefix != x ; then | |
48503 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" | |
48504 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
48505 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config | |
48506 | fi | |
48507 | fi | |
48508 | ||
48509 | # Extract the first word of "cppunit-config", so it can be a program name with args. | |
48510 | set dummy cppunit-config; ac_word=$2 | |
48511 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
48512 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
48513 | if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then | |
48514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48515 | else | |
48516 | case $CPPUNIT_CONFIG in | |
48517 | [\\/]* | ?:[\\/]*) | |
48518 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. | |
48519 | ;; | |
48520 | *) | |
48521 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
48522 | for as_dir in $PATH | |
48523 | do | |
48524 | IFS=$as_save_IFS | |
48525 | test -z "$as_dir" && as_dir=. | |
48526 | for ac_exec_ext in '' $ac_executable_extensions; do | |
48527 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
48528 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
48529 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
48530 | break 2 | |
48531 | fi | |
48532 | done | |
48533 | done | |
48534 | ||
48535 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" | |
48536 | ;; | |
48537 | esac | |
48538 | fi | |
48539 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG | |
48540 | ||
48541 | if test -n "$CPPUNIT_CONFIG"; then | |
48542 | echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 | |
48543 | echo "${ECHO_T}$CPPUNIT_CONFIG" >&6 | |
48544 | else | |
48545 | echo "$as_me:$LINENO: result: no" >&5 | |
48546 | echo "${ECHO_T}no" >&6 | |
48547 | fi | |
48548 | ||
48549 | cppunit_version_min=1.8.0 | |
48550 | ||
48551 | echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 | |
48552 | echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6 | |
48553 | no_cppunit="" | |
48554 | if test "$CPPUNIT_CONFIG" = "no" ; then | |
48555 | no_cppunit=yes | |
48556 | else | |
48557 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` | |
48558 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` | |
48559 | cppunit_version=`$CPPUNIT_CONFIG --version` | |
48560 | ||
48561 | cppunit_major_version=`echo $cppunit_version | \ | |
48562 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
48563 | cppunit_minor_version=`echo $cppunit_version | \ | |
48564 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
48565 | cppunit_micro_version=`echo $cppunit_version | \ | |
48566 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
48567 | ||
48568 | cppunit_major_min=`echo $cppunit_version_min | \ | |
48569 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
48570 | cppunit_minor_min=`echo $cppunit_version_min | \ | |
48571 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
48572 | cppunit_micro_min=`echo $cppunit_version_min | \ | |
48573 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
48574 | ||
48575 | cppunit_version_proper=`expr \ | |
48576 | $cppunit_major_version \> $cppunit_major_min \| \ | |
48577 | $cppunit_major_version \= $cppunit_major_min \& \ | |
48578 | $cppunit_minor_version \> $cppunit_minor_min \| \ | |
48579 | $cppunit_major_version \= $cppunit_major_min \& \ | |
48580 | $cppunit_minor_version \= $cppunit_minor_min \& \ | |
48581 | $cppunit_micro_version \>= $cppunit_micro_min ` | |
48582 | ||
48583 | if test "$cppunit_version_proper" = "1" ; then | |
48584 | echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 | |
48585 | echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6 | |
48586 | else | |
48587 | echo "$as_me:$LINENO: result: no" >&5 | |
48588 | echo "${ECHO_T}no" >&6 | |
48589 | no_cppunit=yes | |
48590 | fi | |
48591 | fi | |
48592 | ||
48593 | if test "x$no_cppunit" = x ; then | |
c2218763 | 48594 | SUBDIRS="$SUBDIRS tests" |
a848cd7e SC |
48595 | else |
48596 | CPPUNIT_CFLAGS="" | |
48597 | CPPUNIT_LIBS="" | |
c2218763 | 48598 | : |
a848cd7e SC |
48599 | fi |
48600 | ||
48601 | ||
48602 | ||
48603 | ||
48604 | ||
48605 | for subdir in `echo $SUBDIRS`; do | |
48606 | if test -d ${srcdir}/${subdir} ; then | |
48607 | if test "$wxUSE_GUI" = "yes"; then | |
48608 | if test ${subdir} = "samples"; then | |
48609 | makefiles="samples/Makefile.in $makefiles" | |
48610 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
48611 | if test -d $srcdir/samples/$sample; then | |
48612 | makefiles="samples/$sample/Makefile.in $makefiles" | |
48613 | fi | |
48614 | done | |
9c112555 MW |
48615 | else |
48616 | disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`; | |
48617 | eval "disabled=\$$disabled_var" | |
48618 | disabled=/`echo X $disabled | sed 's@ @/|/@g'`/ | |
48619 | makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"` | |
a848cd7e SC |
48620 | fi |
48621 | else if test ${subdir} = "samples"; then | |
48622 | makefiles="samples/Makefile.in samples/console/Makefile.in" | |
48623 | elif test ${subdir} = "utils"; then | |
6537ccf8 VS |
48624 | makefiles="" |
48625 | for util in HelpGen tex2rtf ; do | |
48626 | if test -d $srcdir/utils/$util ; then | |
48627 | makefiles="utils/$util/Makefile.in \ | |
48628 | utils/$util/src/Makefile.in \ | |
48629 | $makefiles" | |
48630 | fi | |
48631 | done | |
a848cd7e SC |
48632 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` |
48633 | fi | |
48634 | fi | |
48635 | ||
48636 | for mkin in $makefiles ; do | |
48637 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
48638 | ac_config_files="$ac_config_files $mk" | |
48639 | ||
48640 | done | |
48641 | fi | |
48642 | done | |
1c14217d | 48643 | fi |
a848cd7e SC |
48644 | cat >confcache <<\_ACEOF |
48645 | # This file is a shell script that caches the results of configure | |
48646 | # tests run on this system so they can be shared between configure | |
48647 | # scripts and configure runs, see configure's option --config-cache. | |
48648 | # It is not useful on other systems. If it contains results you don't | |
48649 | # want to keep, you may remove or edit it. | |
48650 | # | |
48651 | # config.status only pays attention to the cache file if you give it | |
48652 | # the --recheck option to rerun configure. | |
48653 | # | |
48654 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
48655 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
48656 | # following values. | |
48657 | ||
48658 | _ACEOF | |
48659 | ||
48660 | # The following way of writing the cache mishandles newlines in values, | |
48661 | # but we know of no workaround that is simple, portable, and efficient. | |
48662 | # So, don't put newlines in cache variables' values. | |
48663 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
48664 | # and sets the high bit in the cache file unless we assign to the vars. | |
48665 | { | |
48666 | (set) 2>&1 | | |
48667 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
48668 | *ac_space=\ *) | |
48669 | # `set' does not quote correctly, so add quotes (double-quote | |
48670 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
48671 | sed -n \ | |
ac1cb8d3 VS |
48672 | "s/'/'\\\\''/g; |
48673 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
48674 | ;; |
48675 | *) | |
48676 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
48677 | sed -n \ | |
ac1cb8d3 | 48678 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
48679 | ;; |
48680 | esac; | |
48681 | } | | |
48682 | sed ' | |
48683 | t clear | |
48684 | : clear | |
48685 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
48686 | t end | |
48687 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
48688 | : end' >>confcache | |
48689 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
48690 | if test -w $cache_file; then | |
48691 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
48692 | cat confcache >$cache_file | |
48693 | else | |
48694 | echo "not updating unwritable cache $cache_file" | |
48695 | fi | |
48696 | fi | |
48697 | rm -f confcache | |
48698 | ||
48699 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
48700 | # Let make expand exec_prefix. | |
48701 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
48702 | ||
48703 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
48704 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
48705 | # trailing colons and then remove the whole line if VPATH becomes empty | |
48706 | # (actually we leave an empty line to preserve line numbers). | |
48707 | if test "x$srcdir" = x.; then | |
ac1cb8d3 | 48708 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
a848cd7e SC |
48709 | s/:*\$(srcdir):*/:/; |
48710 | s/:*\${srcdir}:*/:/; | |
48711 | s/:*@srcdir@:*/:/; | |
ac1cb8d3 | 48712 | s/^\([^=]*=[ ]*\):*/\1/; |
a848cd7e | 48713 | s/:*$//; |
ac1cb8d3 | 48714 | s/^[^=]*=[ ]*$//; |
a848cd7e SC |
48715 | }' |
48716 | fi | |
48717 | ||
48718 | DEFS=-DHAVE_CONFIG_H | |
48719 | ||
48720 | ac_libobjs= | |
48721 | ac_ltlibobjs= | |
48722 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
48723 | # 1. Remove the extension, and $U if already installed. | |
48724 | ac_i=`echo "$ac_i" | | |
ac1cb8d3 | 48725 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
a848cd7e SC |
48726 | # 2. Add them. |
48727 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
48728 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
48729 | done | |
48730 | LIBOBJS=$ac_libobjs | |
48731 | ||
48732 | LTLIBOBJS=$ac_ltlibobjs | |
48733 | ||
48734 | ||
48735 | ||
48736 | : ${CONFIG_STATUS=./config.status} | |
48737 | ac_clean_files_save=$ac_clean_files | |
48738 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
48739 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
48740 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
48741 | cat >$CONFIG_STATUS <<_ACEOF | |
48742 | #! $SHELL | |
48743 | # Generated by $as_me. | |
48744 | # Run this file to recreate the current configuration. | |
48745 | # Compiler output produced by configure, useful for debugging | |
48746 | # configure, is in config.log if it exists. | |
48747 | ||
48748 | debug=false | |
48749 | ac_cs_recheck=false | |
48750 | ac_cs_silent=false | |
48751 | SHELL=\${CONFIG_SHELL-$SHELL} | |
48752 | _ACEOF | |
48753 | ||
48754 | cat >>$CONFIG_STATUS <<\_ACEOF | |
48755 | ## --------------------- ## | |
48756 | ## M4sh Initialization. ## | |
48757 | ## --------------------- ## | |
48758 | ||
48759 | # Be Bourne compatible | |
48760 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
48761 | emulate sh | |
48762 | NULLCMD=: | |
48763 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
48764 | # is contrary to our usage. Disable this feature. | |
48765 | alias -g '${1+"$@"}'='"$@"' | |
48766 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
48767 | set -o posix | |
48768 | fi | |
ac1cb8d3 | 48769 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
48770 | |
48771 | # Support unset when possible. | |
ac1cb8d3 | 48772 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
48773 | as_unset=unset |
48774 | else | |
48775 | as_unset=false | |
48776 | fi | |
48777 | ||
48778 | ||
48779 | # Work around bugs in pre-3.0 UWIN ksh. | |
48780 | $as_unset ENV MAIL MAILPATH | |
48781 | PS1='$ ' | |
48782 | PS2='> ' | |
48783 | PS4='+ ' | |
48784 | ||
48785 | # NLS nuisances. | |
48786 | for as_var in \ | |
48787 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
48788 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
48789 | LC_TELEPHONE LC_TIME | |
48790 | do | |
ac1cb8d3 | 48791 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
48792 | eval $as_var=C; export $as_var |
48793 | else | |
48794 | $as_unset $as_var | |
48795 | fi | |
48796 | done | |
48797 | ||
48798 | # Required to use basename. | |
48799 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
48800 | as_expr=expr | |
48801 | else | |
48802 | as_expr=false | |
48803 | fi | |
48804 | ||
48805 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
48806 | as_basename=basename | |
48807 | else | |
48808 | as_basename=false | |
48809 | fi | |
48810 | ||
48811 | ||
48812 | # Name of the executable. | |
48813 | as_me=`$as_basename "$0" || | |
48814 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
48815 | X"$0" : 'X\(//\)$' \| \ | |
48816 | X"$0" : 'X\(/\)$' \| \ | |
48817 | . : '\(.\)' 2>/dev/null || | |
48818 | echo X/"$0" | | |
48819 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
48820 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
48821 | /^X\/\(\/\).*/{ s//\1/; q; } | |
48822 | s/.*/./; q'` | |
48823 | ||
48824 | ||
48825 | # PATH needs CR, and LINENO needs CR and PATH. | |
48826 | # Avoid depending upon Character Ranges. | |
48827 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
48828 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
48829 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
48830 | as_cr_digits='0123456789' | |
48831 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
48832 | ||
48833 | # The user is always right. | |
48834 | if test "${PATH_SEPARATOR+set}" != set; then | |
48835 | echo "#! /bin/sh" >conf$$.sh | |
48836 | echo "exit 0" >>conf$$.sh | |
48837 | chmod +x conf$$.sh | |
48838 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
48839 | PATH_SEPARATOR=';' | |
48840 | else | |
48841 | PATH_SEPARATOR=: | |
48842 | fi | |
48843 | rm -f conf$$.sh | |
48844 | fi | |
48845 | ||
48846 | ||
48847 | as_lineno_1=$LINENO | |
48848 | as_lineno_2=$LINENO | |
48849 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
48850 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
48851 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
48852 | # Find who we are. Look in the path if we contain no path at all | |
48853 | # relative or not. | |
48854 | case $0 in | |
48855 | *[\\/]* ) as_myself=$0 ;; | |
48856 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
48857 | for as_dir in $PATH | |
48858 | do | |
48859 | IFS=$as_save_IFS | |
48860 | test -z "$as_dir" && as_dir=. | |
48861 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
48862 | done | |
48863 | ||
48864 | ;; | |
48865 | esac | |
48866 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
48867 | # in which case we are not to be found in the path. | |
48868 | if test "x$as_myself" = x; then | |
48869 | as_myself=$0 | |
48870 | fi | |
48871 | if test ! -f "$as_myself"; then | |
48872 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
48873 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
48874 | { (exit 1); exit 1; }; } | |
48875 | fi | |
48876 | case $CONFIG_SHELL in | |
48877 | '') | |
48878 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
48879 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
48880 | do | |
48881 | IFS=$as_save_IFS | |
48882 | test -z "$as_dir" && as_dir=. | |
48883 | for as_base in sh bash ksh sh5; do | |
48884 | case $as_dir in | |
48885 | /*) | |
48886 | if ("$as_dir/$as_base" -c ' | |
48887 | as_lineno_1=$LINENO | |
48888 | as_lineno_2=$LINENO | |
48889 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
48890 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
48891 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
48892 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
48893 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
48894 | CONFIG_SHELL=$as_dir/$as_base | |
48895 | export CONFIG_SHELL | |
48896 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
48897 | fi;; | |
48898 | esac | |
48899 | done | |
48900 | done | |
48901 | ;; | |
48902 | esac | |
48903 | ||
48904 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
48905 | # uniformly replaced by the line number. The first 'sed' inserts a | |
48906 | # line-number line before each line; the second 'sed' does the real | |
48907 | # work. The second script uses 'N' to pair each line-number line | |
48908 | # with the numbered line, and appends trailing '-' during | |
48909 | # substitution so that $LINENO is not a special case at line end. | |
48910 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
48911 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
48912 | sed '=' <$as_myself | | |
48913 | sed ' | |
48914 | N | |
48915 | s,$,-, | |
48916 | : loop | |
48917 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
48918 | t loop | |
48919 | s,-$,, | |
48920 | s,^['$as_cr_digits']*\n,, | |
48921 | ' >$as_me.lineno && | |
48922 | chmod +x $as_me.lineno || | |
48923 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
48924 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
48925 | { (exit 1); exit 1; }; } | |
48926 | ||
48927 | # Don't try to exec as it changes $[0], causing all sort of problems | |
48928 | # (the dirname of $[0] is not the place where we might find the | |
48929 | # original and so on. Autoconf is especially sensible to this). | |
48930 | . ./$as_me.lineno | |
48931 | # Exit status is that of the last command. | |
48932 | exit | |
48933 | } | |
48934 | ||
48935 | ||
48936 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
48937 | *c*,-n*) ECHO_N= ECHO_C=' | |
48938 | ' ECHO_T=' ' ;; | |
48939 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
48940 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
48941 | esac | |
48942 | ||
48943 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
48944 | as_expr=expr | |
48945 | else | |
48946 | as_expr=false | |
48947 | fi | |
48948 | ||
48949 | rm -f conf$$ conf$$.exe conf$$.file | |
48950 | echo >conf$$.file | |
48951 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
48952 | # We could just check for DJGPP; but this test a) works b) is more generic | |
48953 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
48954 | if test -f conf$$.exe; then | |
48955 | # Don't use ln at all; we don't have any links | |
48956 | as_ln_s='cp -p' | |
48957 | else | |
48958 | as_ln_s='ln -s' | |
48959 | fi | |
48960 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
48961 | as_ln_s=ln | |
48962 | else | |
48963 | as_ln_s='cp -p' | |
48964 | fi | |
48965 | rm -f conf$$ conf$$.exe conf$$.file | |
48966 | ||
48967 | if mkdir -p . 2>/dev/null; then | |
48968 | as_mkdir_p=: | |
48969 | else | |
ac1cb8d3 | 48970 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
48971 | as_mkdir_p=false |
48972 | fi | |
48973 | ||
48974 | as_executable_p="test -f" | |
48975 | ||
48976 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 48977 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
48978 | |
48979 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 48980 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
48981 | |
48982 | ||
48983 | # IFS | |
48984 | # We need space, tab and new line, in precisely that order. | |
48985 | as_nl=' | |
48986 | ' | |
48987 | IFS=" $as_nl" | |
48988 | ||
48989 | # CDPATH. | |
48990 | $as_unset CDPATH | |
48991 | ||
48992 | exec 6>&1 | |
48993 | ||
48994 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
48995 | # report actual input values of CONFIG_FILES etc. instead of their | |
48996 | # values after options handling. Logging --version etc. is OK. | |
48997 | exec 5>>config.log | |
48998 | { | |
48999 | echo | |
49000 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
49001 | ## Running $as_me. ## | |
49002 | _ASBOX | |
49003 | } >&5 | |
49004 | cat >&5 <<_CSEOF | |
49005 | ||
dd8df4fc | 49006 | This file was extended by wxWidgets $as_me 2.7.0, which was |
ac1cb8d3 | 49007 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
49008 | |
49009 | CONFIG_FILES = $CONFIG_FILES | |
49010 | CONFIG_HEADERS = $CONFIG_HEADERS | |
49011 | CONFIG_LINKS = $CONFIG_LINKS | |
49012 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
49013 | $ $0 $@ | |
49014 | ||
49015 | _CSEOF | |
49016 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
49017 | echo >&5 | |
49018 | _ACEOF | |
49019 | ||
49020 | # Files that config.status was made for. | |
49021 | if test -n "$ac_config_files"; then | |
49022 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
49023 | fi | |
49024 | ||
49025 | if test -n "$ac_config_headers"; then | |
49026 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
49027 | fi | |
49028 | ||
49029 | if test -n "$ac_config_links"; then | |
49030 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
49031 | fi | |
49032 | ||
49033 | if test -n "$ac_config_commands"; then | |
49034 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
49035 | fi | |
49036 | ||
49037 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49038 | ||
49039 | ac_cs_usage="\ | |
49040 | \`$as_me' instantiates files from templates according to the | |
49041 | current configuration. | |
49042 | ||
49043 | Usage: $0 [OPTIONS] [FILE]... | |
49044 | ||
49045 | -h, --help print this help, then exit | |
49046 | -V, --version print version number, then exit | |
49047 | -q, --quiet do not print progress messages | |
49048 | -d, --debug don't remove temporary files | |
49049 | --recheck update $as_me by reconfiguring in the same conditions | |
49050 | --file=FILE[:TEMPLATE] | |
ac1cb8d3 | 49051 | instantiate the configuration file FILE |
a848cd7e | 49052 | --header=FILE[:TEMPLATE] |
ac1cb8d3 | 49053 | instantiate the configuration header FILE |
a848cd7e SC |
49054 | |
49055 | Configuration files: | |
49056 | $config_files | |
49057 | ||
49058 | Configuration headers: | |
49059 | $config_headers | |
49060 | ||
49061 | Configuration commands: | |
49062 | $config_commands | |
49063 | ||
49064 | Report bugs to <bug-autoconf@gnu.org>." | |
49065 | _ACEOF | |
49066 | ||
49067 | cat >>$CONFIG_STATUS <<_ACEOF | |
49068 | ac_cs_version="\\ | |
dd8df4fc | 49069 | wxWidgets config.status 2.7.0 |
ac1cb8d3 | 49070 | configured by $0, generated by GNU Autoconf 2.59, |
a848cd7e SC |
49071 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
49072 | ||
ac1cb8d3 | 49073 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
49074 | This config.status script is free software; the Free Software Foundation |
49075 | gives unlimited permission to copy, distribute and modify it." | |
49076 | srcdir=$srcdir | |
49077 | INSTALL="$INSTALL" | |
49078 | _ACEOF | |
49079 | ||
49080 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49081 | # If no file are specified by the user, then we need to provide default | |
49082 | # value. By we need to know if files were specified by the user. | |
49083 | ac_need_defaults=: | |
49084 | while test $# != 0 | |
49085 | do | |
49086 | case $1 in | |
49087 | --*=*) | |
49088 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
49089 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
49090 | ac_shift=: | |
49091 | ;; | |
49092 | -*) | |
49093 | ac_option=$1 | |
49094 | ac_optarg=$2 | |
49095 | ac_shift=shift | |
49096 | ;; | |
49097 | *) # This is not an option, so the user has probably given explicit | |
49098 | # arguments. | |
49099 | ac_option=$1 | |
49100 | ac_need_defaults=false;; | |
49101 | esac | |
49102 | ||
49103 | case $ac_option in | |
49104 | # Handling of the options. | |
49105 | _ACEOF | |
49106 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49107 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
49108 | ac_cs_recheck=: ;; | |
49109 | --version | --vers* | -V ) | |
49110 | echo "$ac_cs_version"; exit 0 ;; | |
49111 | --he | --h) | |
49112 | # Conflict between --help and --header | |
49113 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
49114 | Try \`$0 --help' for more information." >&5 | |
49115 | echo "$as_me: error: ambiguous option: $1 | |
49116 | Try \`$0 --help' for more information." >&2;} | |
49117 | { (exit 1); exit 1; }; };; | |
49118 | --help | --hel | -h ) | |
49119 | echo "$ac_cs_usage"; exit 0 ;; | |
49120 | --debug | --d* | -d ) | |
49121 | debug=: ;; | |
49122 | --file | --fil | --fi | --f ) | |
49123 | $ac_shift | |
49124 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
49125 | ac_need_defaults=false;; | |
49126 | --header | --heade | --head | --hea ) | |
49127 | $ac_shift | |
49128 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
49129 | ac_need_defaults=false;; | |
49130 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
49131 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
49132 | ac_cs_silent=: ;; | |
49133 | ||
49134 | # This is an error. | |
49135 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
49136 | Try \`$0 --help' for more information." >&5 | |
49137 | echo "$as_me: error: unrecognized option: $1 | |
49138 | Try \`$0 --help' for more information." >&2;} | |
49139 | { (exit 1); exit 1; }; } ;; | |
49140 | ||
49141 | *) ac_config_targets="$ac_config_targets $1" ;; | |
49142 | ||
49143 | esac | |
49144 | shift | |
49145 | done | |
49146 | ||
49147 | ac_configure_extra_args= | |
49148 | ||
49149 | if $ac_cs_silent; then | |
49150 | exec 6>/dev/null | |
49151 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
49152 | fi | |
49153 | ||
49154 | _ACEOF | |
49155 | cat >>$CONFIG_STATUS <<_ACEOF | |
49156 | if \$ac_cs_recheck; then | |
49157 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
49158 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
49159 | fi | |
49160 | ||
49161 | _ACEOF | |
49162 | ||
49163 | cat >>$CONFIG_STATUS <<_ACEOF | |
49164 | # | |
49165 | # INIT-COMMANDS section. | |
49166 | # | |
49167 | ||
5c60e845 MW |
49168 | |
49169 | CPP="$CPP" | |
49170 | infile="$srcdir/include/wx/msw/genrcdefs.h" | |
49171 | outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw" | |
49172 | ||
49173 | ||
ceec2216 RL |
49174 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" |
49175 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
49176 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
49177 | LN_S="${LN_S}" | |
a848cd7e SC |
49178 | |
49179 | ||
49180 | _ACEOF | |
49181 | ||
49182 | ||
49183 | ||
49184 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49185 | for ac_config_target in $ac_config_targets | |
49186 | do | |
49187 | case "$ac_config_target" in | |
49188 | # Handling of arguments. | |
ceec2216 RL |
49189 | "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;; |
49190 | "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;; | |
a848cd7e SC |
49191 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; |
49192 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
49193 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; | |
5c60e845 | 49194 | "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;; |
ceec2216 RL |
49195 | "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;; |
49196 | "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 |
49197 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
49198 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
49199 | { (exit 1); exit 1; }; };; | |
49200 | esac | |
49201 | done | |
49202 | ||
49203 | # If the user did not use the arguments to specify the items to instantiate, | |
49204 | # then the envvar interface is used. Set only those that are not. | |
49205 | # We use the long form for the default assignment because of an extremely | |
49206 | # bizarre bug on SunOS 4.1.3. | |
49207 | if $ac_need_defaults; then | |
49208 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
49209 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
49210 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
49211 | fi | |
49212 | ||
49213 | # Have a temporary directory for convenience. Make it in the build tree | |
49214 | # simply because there is no reason to put it here, and in addition, | |
49215 | # creating and moving files from /tmp can sometimes cause problems. | |
49216 | # Create a temporary directory, and hook for its removal unless debugging. | |
49217 | $debug || | |
49218 | { | |
49219 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
49220 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
49221 | } | |
49222 | ||
49223 | # Create a (secure) tmp directory for tmp files. | |
49224 | ||
49225 | { | |
49226 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
49227 | test -n "$tmp" && test -d "$tmp" | |
49228 | } || | |
49229 | { | |
49230 | tmp=./confstat$$-$RANDOM | |
49231 | (umask 077 && mkdir $tmp) | |
49232 | } || | |
49233 | { | |
49234 | echo "$me: cannot create a temporary directory in ." >&2 | |
49235 | { (exit 1); exit 1; } | |
49236 | } | |
49237 | ||
49238 | _ACEOF | |
49239 | ||
49240 | cat >>$CONFIG_STATUS <<_ACEOF | |
49241 | ||
49242 | # | |
49243 | # CONFIG_FILES section. | |
49244 | # | |
49245 | ||
49246 | # No need to generate the scripts if there are no CONFIG_FILES. | |
49247 | # This happens for instance when ./config.status config.h | |
49248 | if test -n "\$CONFIG_FILES"; then | |
49249 | # Protect against being on the right side of a sed subst in config.status. | |
49250 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
49251 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
49252 | s,@SHELL@,$SHELL,;t t | |
49253 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
49254 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
49255 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
49256 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
49257 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
49258 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
49259 | s,@exec_prefix@,$exec_prefix,;t t | |
49260 | s,@prefix@,$prefix,;t t | |
49261 | s,@program_transform_name@,$program_transform_name,;t t | |
49262 | s,@bindir@,$bindir,;t t | |
49263 | s,@sbindir@,$sbindir,;t t | |
49264 | s,@libexecdir@,$libexecdir,;t t | |
49265 | s,@datadir@,$datadir,;t t | |
49266 | s,@sysconfdir@,$sysconfdir,;t t | |
49267 | s,@sharedstatedir@,$sharedstatedir,;t t | |
49268 | s,@localstatedir@,$localstatedir,;t t | |
49269 | s,@libdir@,$libdir,;t t | |
49270 | s,@includedir@,$includedir,;t t | |
49271 | s,@oldincludedir@,$oldincludedir,;t t | |
49272 | s,@infodir@,$infodir,;t t | |
49273 | s,@mandir@,$mandir,;t t | |
49274 | s,@build_alias@,$build_alias,;t t | |
49275 | s,@host_alias@,$host_alias,;t t | |
49276 | s,@target_alias@,$target_alias,;t t | |
49277 | s,@DEFS@,$DEFS,;t t | |
49278 | s,@ECHO_C@,$ECHO_C,;t t | |
49279 | s,@ECHO_N@,$ECHO_N,;t t | |
49280 | s,@ECHO_T@,$ECHO_T,;t t | |
49281 | s,@LIBS@,$LIBS,;t t | |
49282 | s,@build@,$build,;t t | |
49283 | s,@build_cpu@,$build_cpu,;t t | |
49284 | s,@build_vendor@,$build_vendor,;t t | |
49285 | s,@build_os@,$build_os,;t t | |
49286 | s,@host@,$host,;t t | |
49287 | s,@host_cpu@,$host_cpu,;t t | |
49288 | s,@host_vendor@,$host_vendor,;t t | |
49289 | s,@host_os@,$host_os,;t t | |
49290 | s,@target@,$target,;t t | |
49291 | s,@target_cpu@,$target_cpu,;t t | |
49292 | s,@target_vendor@,$target_vendor,;t t | |
49293 | s,@target_os@,$target_os,;t t | |
49294 | s,@CC@,$CC,;t t | |
49295 | s,@CFLAGS@,$CFLAGS,;t t | |
49296 | s,@LDFLAGS@,$LDFLAGS,;t t | |
49297 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
49298 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
49299 | s,@EXEEXT@,$EXEEXT,;t t | |
49300 | s,@OBJEXT@,$OBJEXT,;t t | |
49301 | s,@CPP@,$CPP,;t t | |
49302 | s,@EGREP@,$EGREP,;t t | |
49303 | s,@CXX@,$CXX,;t t | |
49304 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
49305 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
49306 | s,@RANLIB@,$RANLIB,;t t | |
49307 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
49308 | s,@AR@,$AR,;t t | |
8c80d384 | 49309 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
a848cd7e SC |
49310 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
49311 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
49312 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
49313 | s,@STRIP@,$STRIP,;t t | |
8c80d384 | 49314 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
8ced02f6 DE |
49315 | s,@WINDRES@,$WINDRES,;t t |
49316 | s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t | |
8c80d384 DE |
49317 | s,@DLLTOOL@,$DLLTOOL,;t t |
49318 | s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t | |
a848cd7e SC |
49319 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t |
49320 | s,@LN_S@,$LN_S,;t t | |
49321 | s,@CXXCPP@,$CXXCPP,;t t | |
49322 | s,@subdirs@,$subdirs,;t t | |
49323 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
49324 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
49325 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
49326 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
a848cd7e SC |
49327 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
49328 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
49329 | s,@X_LIBS@,$X_LIBS,;t t | |
49330 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
49331 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
49332 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
d1c38808 VZ |
49333 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t |
49334 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
a848cd7e SC |
49335 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t |
49336 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
8ced02f6 | 49337 | s,@REZ@,$REZ,;t t |
a848cd7e SC |
49338 | s,@DEREZ@,$DEREZ,;t t |
49339 | s,@SETFILE@,$SETFILE,;t t | |
49340 | s,@LIBICONV@,$LIBICONV,;t t | |
49341 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t | |
49342 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t | |
49343 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t | |
49344 | s,@SDL_LIBS@,$SDL_LIBS,;t t | |
d1c38808 VZ |
49345 | s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t |
49346 | s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t | |
2b850ae1 RR |
49347 | s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t |
49348 | s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t | |
3565d135 RR |
49349 | s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t |
49350 | s,@HILDON_LIBS@,$HILDON_LIBS,;t t | |
f10e38c4 VZ |
49351 | s,@GST_CFLAGS@,$GST_CFLAGS,;t t |
49352 | s,@GST_LIBS@,$GST_LIBS,;t t | |
a848cd7e SC |
49353 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t |
49354 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
49355 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t | |
49356 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
49357 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t | |
49358 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t | |
49359 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
49360 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
49361 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
49362 | s,@VENDOR@,$VENDOR,;t t | |
49363 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
ceec2216 RL |
49364 | s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t |
49365 | s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t | |
a848cd7e SC |
49366 | s,@WXUNIV@,$WXUNIV,;t t |
49367 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
49368 | s,@USE_PLUGINS@,$USE_PLUGINS,;t t | |
49369 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
49370 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t | |
49371 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t | |
49372 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t | |
49373 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t | |
49374 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t | |
49375 | s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t | |
49376 | s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t | |
d1c38808 | 49377 | s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t |
2b850ae1 | 49378 | s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t |
3565d135 | 49379 | s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t |
a848cd7e SC |
49380 | s,@UNICODE@,$UNICODE,;t t |
49381 | s,@BUILD@,$BUILD,;t t | |
49382 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t | |
49383 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
a848cd7e SC |
49384 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t |
49385 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
49386 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
49387 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t | |
49388 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t | |
49389 | s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t | |
49390 | s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t | |
49391 | s,@SET_MAKE@,$SET_MAKE,;t t | |
49392 | s,@MAKE_SET@,$MAKE_SET,;t t | |
a848cd7e SC |
49393 | s,@NM@,$NM,;t t |
49394 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
49395 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
49396 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t | |
49397 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t | |
49398 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
49399 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
49400 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
1e9e8aba | 49401 | s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t |
a848cd7e SC |
49402 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t |
49403 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t | |
1e9e8aba | 49404 | s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t |
a848cd7e SC |
49405 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t |
49406 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t | |
49407 | s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t | |
49408 | s,@LIBPREFIX@,$LIBPREFIX,;t t | |
49409 | s,@LIBEXT@,$LIBEXT,;t t | |
49410 | s,@DLLPREFIX@,$DLLPREFIX,;t t | |
49411 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t | |
810b94f0 | 49412 | s,@dlldir@,$dlldir,;t t |
a848cd7e SC |
49413 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t |
49414 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t | |
49415 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
49416 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t | |
49417 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
49418 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
810b94f0 | 49419 | s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t |
a848cd7e SC |
49420 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t |
49421 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
49422 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
810b94f0 | 49423 | s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t |
a848cd7e SC |
49424 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t |
49425 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
49426 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
49427 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t | |
49428 | s,@GCC_PCH@,$GCC_PCH,;t t | |
f10e38c4 | 49429 | s,@ICC_PCH@,$ICC_PCH,;t t |
a848cd7e SC |
49430 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t |
49431 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t | |
49432 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
49433 | s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t | |
49434 | s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t | |
49435 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t | |
49436 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t | |
49437 | s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t | |
49438 | s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t | |
49439 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
49440 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
49441 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
49442 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t | |
49443 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t | |
49444 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t | |
f10e38c4 | 49445 | s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t |
a848cd7e SC |
49446 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t |
49447 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t | |
49448 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
90970d69 | 49449 | 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 | 49450 | 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 | 49451 | 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 | 49452 | 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 | 49453 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t |
ceec2216 | 49454 | s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
49455 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
49456 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t | |
90970d69 | 49457 | 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 | 49458 | 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 | 49459 | 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 | 49460 | 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 | 49461 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t |
ceec2216 | 49462 | s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t |
e5efa97e | 49463 | s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t |
a848cd7e SC |
49464 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t |
49465 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t | |
49466 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t | |
49467 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
49468 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t | |
49469 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
eb730a0c | 49470 | 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 |
49471 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t |
49472 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t | |
a30f955f | 49473 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t |
a848cd7e SC |
49474 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t |
49475 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
49476 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
fc480dc1 | 49477 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t |
1e9e8aba | 49478 | 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 |
49479 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t |
49480 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t | |
a848cd7e SC |
49481 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t |
49482 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t | |
b48a2016 | 49483 | s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t |
083508af | 49484 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
e5efa97e | 49485 | s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t |
83d8eb47 | 49486 | s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t |
a848cd7e SC |
49487 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t |
49488 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t | |
49489 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t | |
49490 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t | |
49491 | s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t | |
49492 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
49493 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
49494 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t | |
083508af MW |
49495 | s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t |
49496 | s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t | |
49497 | s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t | |
a848cd7e SC |
49498 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
49499 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
49500 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
49501 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
083508af | 49502 | s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
49503 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t |
49504 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
49505 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
49506 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
49507 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
49508 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t | |
083508af | 49509 | s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t |
a30f955f | 49510 | s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t |
a848cd7e | 49511 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
a49baeab | 49512 | s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t |
a848cd7e SC |
49513 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t |
49514 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
d044deea MW |
49515 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t |
49516 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t | |
49517 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t | |
49518 | 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 | |
49519 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t | |
49520 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t | |
a848cd7e | 49521 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t |
a848cd7e SC |
49522 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t |
49523 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t | |
49524 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t | |
49525 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
49526 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
49527 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t | |
49528 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
49529 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
49530 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t | |
49531 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t | |
49532 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
0ee4059d | 49533 | s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t |
a848cd7e SC |
49534 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t |
49535 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
49536 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
3fd9c298 DE |
49537 | s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t |
49538 | s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t | |
49539 | s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t | |
0ee4059d | 49540 | s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t |
a848cd7e SC |
49541 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
49542 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
49543 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t | |
49544 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t | |
49545 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
49546 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
49547 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
49548 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t | |
49549 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
49550 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
49551 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
49552 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
083508af MW |
49553 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t |
49554 | s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t | |
f10e38c4 | 49555 | s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t |
a848cd7e | 49556 | s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t |
0b78747f MW |
49557 | s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t |
49558 | s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t | |
a848cd7e | 49559 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t |
eb730a0c | 49560 | s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t |
a848cd7e SC |
49561 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t |
49562 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
49563 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
0b78747f MW |
49564 | s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t |
49565 | s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t | |
a13a7f89 | 49566 | s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t |
eb730a0c | 49567 | s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t |
a848cd7e | 49568 | s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t |
1e6eb025 | 49569 | s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t |
a848cd7e SC |
49570 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
49571 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t | |
49572 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t | |
49573 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
49574 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
49575 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
49576 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
49577 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
ceec2216 | 49578 | s,@SHARED@,$SHARED,;t t |
a848cd7e SC |
49579 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
49580 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
a848cd7e SC |
49581 | s,@USE_GUI@,$USE_GUI,;t t |
49582 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
49583 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
49584 | s,@TOOLKIT@,$TOOLKIT,;t t | |
49585 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
a848cd7e | 49586 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t |
ceec2216 | 49587 | s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t |
a848cd7e | 49588 | s,@cross_compiling@,$cross_compiling,;t t |
ceec2216 RL |
49589 | s,@WIDGET_SET@,$WIDGET_SET,;t t |
49590 | s,@WX_RELEASE@,$WX_RELEASE,;t t | |
49591 | s,@WX_VERSION@,$WX_VERSION,;t t | |
49592 | s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t | |
49593 | s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t | |
49594 | s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t | |
5ff751d6 VZ |
49595 | s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t |
49596 | s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t | |
49597 | s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t | |
49598 | s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t | |
a848cd7e SC |
49599 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t |
49600 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t | |
004ee6da | 49601 | s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t |
ceec2216 | 49602 | s,@EXE_LINKER@,$EXE_LINKER,;t t |
a848cd7e | 49603 | s,@GUIDIST@,$GUIDIST,;t t |
a848cd7e SC |
49604 | s,@DISTDIR@,$DISTDIR,;t t |
49605 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
49606 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
a848cd7e SC |
49607 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t |
49608 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
49609 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
004ee6da | 49610 | s,@RESCOMP@,$RESCOMP,;t t |
a848cd7e SC |
49611 | s,@RESFLAGS@,$RESFLAGS,;t t |
49612 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
49613 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
49614 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
49615 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
8ced02f6 | 49616 | s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t |
a848cd7e | 49617 | s,@MACSETFILE@,$MACSETFILE,;t t |
a848cd7e | 49618 | s,@GCC@,$GCC,;t t |
a848cd7e SC |
49619 | s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t |
49620 | s,@LIBOBJS@,$LIBOBJS,;t t | |
49621 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
49622 | CEOF | |
49623 | ||
49624 | _ACEOF | |
49625 | ||
49626 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49627 | # Split the substitutions into bite-sized pieces for seds with | |
49628 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
49629 | ac_max_sed_lines=48 | |
49630 | ac_sed_frag=1 # Number of current file. | |
49631 | ac_beg=1 # First line for current file. | |
49632 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
49633 | ac_more_lines=: | |
49634 | ac_sed_cmds= | |
49635 | while $ac_more_lines; do | |
49636 | if test $ac_beg -gt 1; then | |
49637 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
49638 | else | |
49639 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
49640 | fi | |
49641 | if test ! -s $tmp/subs.frag; then | |
49642 | ac_more_lines=false | |
49643 | else | |
49644 | # The purpose of the label and of the branching condition is to | |
49645 | # speed up the sed processing (if there are no `@' at all, there | |
49646 | # is no need to browse any of the substitutions). | |
49647 | # These are the two extra sed commands mentioned above. | |
49648 | (echo ':t | |
49649 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
49650 | if test -z "$ac_sed_cmds"; then | |
ac1cb8d3 | 49651 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e | 49652 | else |
ac1cb8d3 | 49653 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e SC |
49654 | fi |
49655 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
49656 | ac_beg=$ac_end | |
49657 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
49658 | fi | |
49659 | done | |
49660 | if test -z "$ac_sed_cmds"; then | |
49661 | ac_sed_cmds=cat | |
49662 | fi | |
49663 | fi # test -n "$CONFIG_FILES" | |
49664 | ||
49665 | _ACEOF | |
49666 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49667 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
49668 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
49669 | case $ac_file in | |
49670 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
49671 | cat >$tmp/stdin |
49672 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
49673 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 49674 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 49675 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
49676 | * ) ac_file_in=$ac_file.in ;; |
49677 | esac | |
49678 | ||
49679 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
49680 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
49681 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
49682 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
49683 | X"$ac_file" : 'X\(//\)$' \| \ | |
49684 | X"$ac_file" : 'X\(/\)' \| \ | |
49685 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
49686 | echo X"$ac_file" | |
49687 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
49688 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
49689 | /^X\(\/\/\)$/{ s//\1/; q; } | |
49690 | /^X\(\/\).*/{ s//\1/; q; } | |
49691 | s/.*/./; q'` | |
49692 | { if $as_mkdir_p; then | |
49693 | mkdir -p "$ac_dir" | |
49694 | else | |
49695 | as_dir="$ac_dir" | |
49696 | as_dirs= | |
49697 | while test ! -d "$as_dir"; do | |
49698 | as_dirs="$as_dir $as_dirs" | |
49699 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
49700 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
49701 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
49702 | X"$as_dir" : 'X\(//\)$' \| \ | |
49703 | X"$as_dir" : 'X\(/\)' \| \ | |
49704 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
49705 | echo X"$as_dir" | |
49706 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
49707 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
49708 | /^X\(\/\/\)$/{ s//\1/; q; } | |
49709 | /^X\(\/\).*/{ s//\1/; q; } | |
49710 | s/.*/./; q'` | |
49711 | done | |
49712 | test ! -n "$as_dirs" || mkdir $as_dirs | |
49713 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
49714 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
49715 | { (exit 1); exit 1; }; }; } | |
49716 | ||
49717 | ac_builddir=. | |
49718 | ||
49719 | if test "$ac_dir" != .; then | |
49720 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
49721 | # A "../" for each directory in $ac_dir_suffix. | |
49722 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
49723 | else | |
49724 | ac_dir_suffix= ac_top_builddir= | |
49725 | fi | |
49726 | ||
49727 | case $srcdir in | |
49728 | .) # No --srcdir option. We are building in place. | |
49729 | ac_srcdir=. | |
49730 | if test -z "$ac_top_builddir"; then | |
49731 | ac_top_srcdir=. | |
49732 | else | |
49733 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
49734 | fi ;; | |
49735 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
49736 | ac_srcdir=$srcdir$ac_dir_suffix; | |
49737 | ac_top_srcdir=$srcdir ;; | |
49738 | *) # Relative path. | |
49739 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
49740 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
49741 | esac | |
ac1cb8d3 VS |
49742 | |
49743 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
49744 | # the directories may not exist. | |
49745 | case `pwd` in | |
49746 | .) ac_abs_builddir="$ac_dir";; | |
49747 | *) | |
49748 | case "$ac_dir" in | |
49749 | .) ac_abs_builddir=`pwd`;; | |
49750 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
49751 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
49752 | esac;; | |
49753 | esac | |
49754 | case $ac_abs_builddir in | |
49755 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
49756 | *) | |
49757 | case ${ac_top_builddir}. in | |
49758 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
49759 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
49760 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
49761 | esac;; | |
49762 | esac | |
49763 | case $ac_abs_builddir in | |
49764 | .) ac_abs_srcdir=$ac_srcdir;; | |
49765 | *) | |
49766 | case $ac_srcdir in | |
49767 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
49768 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
49769 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
49770 | esac;; | |
49771 | esac | |
49772 | case $ac_abs_builddir in | |
49773 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
49774 | *) | |
49775 | case $ac_top_srcdir in | |
49776 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
49777 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
49778 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
49779 | esac;; | |
49780 | esac | |
a848cd7e SC |
49781 | |
49782 | ||
49783 | case $INSTALL in | |
49784 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
49785 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
49786 | esac | |
49787 | ||
d25774ab JS |
49788 | if test x"$ac_file" != x-; then |
49789 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
49790 | echo "$as_me: creating $ac_file" >&6;} | |
49791 | rm -f "$ac_file" | |
49792 | fi | |
a848cd7e SC |
49793 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
49794 | # use $as_me), people would be surprised to read: | |
49795 | # /* config.h. Generated by config.status. */ | |
49796 | if test x"$ac_file" = x-; then | |
49797 | configure_input= | |
49798 | else | |
49799 | configure_input="$ac_file. " | |
49800 | fi | |
49801 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
ac1cb8d3 | 49802 | sed 's,.*/,,'` by configure." |
a848cd7e SC |
49803 | |
49804 | # First look for the input files in the build tree, otherwise in the | |
49805 | # src tree. | |
49806 | ac_file_inputs=`IFS=: | |
49807 | for f in $ac_file_in; do | |
49808 | case $f in | |
49809 | -) echo $tmp/stdin ;; | |
49810 | [\\/$]*) | |
ac1cb8d3 VS |
49811 | # Absolute (can't be DOS-style, as IFS=:) |
49812 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
49813 | echo "$as_me: error: cannot find input file: $f" >&2;} |
49814 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 49815 | echo "$f";; |
a848cd7e | 49816 | *) # Relative |
ac1cb8d3 VS |
49817 | if test -f "$f"; then |
49818 | # Build tree | |
49819 | echo "$f" | |
49820 | elif test -f "$srcdir/$f"; then | |
49821 | # Source tree | |
49822 | echo "$srcdir/$f" | |
49823 | else | |
49824 | # /dev/null tree | |
49825 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
49826 | echo "$as_me: error: cannot find input file: $f" >&2;} |
49827 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 49828 | fi;; |
a848cd7e SC |
49829 | esac |
49830 | done` || { (exit 1); exit 1; } | |
49831 | _ACEOF | |
49832 | cat >>$CONFIG_STATUS <<_ACEOF | |
49833 | sed "$ac_vpsub | |
49834 | $extrasub | |
49835 | _ACEOF | |
49836 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49837 | :t | |
49838 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
49839 | s,@configure_input@,$configure_input,;t t | |
49840 | s,@srcdir@,$ac_srcdir,;t t | |
49841 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
49842 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
49843 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
49844 | s,@builddir@,$ac_builddir,;t t | |
49845 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
49846 | s,@top_builddir@,$ac_top_builddir,;t t | |
49847 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
49848 | s,@INSTALL@,$ac_INSTALL,;t t | |
49849 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
49850 | rm -f $tmp/stdin | |
49851 | if test x"$ac_file" != x-; then | |
49852 | mv $tmp/out $ac_file | |
49853 | else | |
49854 | cat $tmp/out | |
49855 | rm -f $tmp/out | |
49856 | fi | |
49857 | ||
ceec2216 RL |
49858 | # Run the commands associated with the file. |
49859 | case $ac_file in | |
49860 | lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;; | |
49861 | lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;; | |
49862 | esac | |
a848cd7e SC |
49863 | done |
49864 | _ACEOF | |
49865 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49866 | ||
49867 | # | |
49868 | # CONFIG_HEADER section. | |
49869 | # | |
49870 | ||
49871 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
49872 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
49873 | # | |
49874 | # ac_d sets the value in "#define NAME VALUE" lines. | |
ac1cb8d3 VS |
49875 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
49876 | ac_dB='[ ].*$,\1#\2' | |
a848cd7e SC |
49877 | ac_dC=' ' |
49878 | ac_dD=',;t' | |
49879 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
ac1cb8d3 | 49880 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
a848cd7e SC |
49881 | ac_uB='$,\1#\2define\3' |
49882 | ac_uC=' ' | |
49883 | ac_uD=',;t' | |
49884 | ||
49885 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
49886 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
49887 | case $ac_file in | |
49888 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
49889 | cat >$tmp/stdin |
49890 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
49891 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 49892 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 49893 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
49894 | * ) ac_file_in=$ac_file.in ;; |
49895 | esac | |
49896 | ||
49897 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
49898 | echo "$as_me: creating $ac_file" >&6;} | |
49899 | ||
49900 | # First look for the input files in the build tree, otherwise in the | |
49901 | # src tree. | |
49902 | ac_file_inputs=`IFS=: | |
49903 | for f in $ac_file_in; do | |
49904 | case $f in | |
49905 | -) echo $tmp/stdin ;; | |
49906 | [\\/$]*) | |
ac1cb8d3 VS |
49907 | # Absolute (can't be DOS-style, as IFS=:) |
49908 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
49909 | echo "$as_me: error: cannot find input file: $f" >&2;} |
49910 | { (exit 1); exit 1; }; } | |
ac1cb8d3 VS |
49911 | # Do quote $f, to prevent DOS paths from being IFS'd. |
49912 | echo "$f";; | |
a848cd7e | 49913 | *) # Relative |
ac1cb8d3 VS |
49914 | if test -f "$f"; then |
49915 | # Build tree | |
49916 | echo "$f" | |
49917 | elif test -f "$srcdir/$f"; then | |
49918 | # Source tree | |
49919 | echo "$srcdir/$f" | |
49920 | else | |
49921 | # /dev/null tree | |
49922 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
49923 | echo "$as_me: error: cannot find input file: $f" >&2;} |
49924 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 49925 | fi;; |
a848cd7e SC |
49926 | esac |
49927 | done` || { (exit 1); exit 1; } | |
49928 | # Remove the trailing spaces. | |
ac1cb8d3 | 49929 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
a848cd7e SC |
49930 | |
49931 | _ACEOF | |
49932 | ||
49933 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
49934 | # `conftest.undefs', that substitutes the proper values into | |
49935 | # config.h.in to produce config.h. The first handles `#define' | |
49936 | # templates, and the second `#undef' templates. | |
49937 | # And first: Protect against being on the right side of a sed subst in | |
49938 | # config.status. Protect against being in an unquoted here document | |
49939 | # in config.status. | |
49940 | rm -f conftest.defines conftest.undefs | |
49941 | # Using a here document instead of a string reduces the quoting nightmare. | |
49942 | # Putting comments in sed scripts is not portable. | |
49943 | # | |
49944 | # `end' is used to avoid that the second main sed command (meant for | |
49945 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
49946 | # See the Autoconf documentation for `clear'. | |
49947 | cat >confdef2sed.sed <<\_ACEOF | |
49948 | s/[\\&,]/\\&/g | |
49949 | s,[\\$`],\\&,g | |
49950 | t clear | |
49951 | : clear | |
ac1cb8d3 | 49952 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
a848cd7e | 49953 | t end |
ac1cb8d3 | 49954 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
a848cd7e SC |
49955 | : end |
49956 | _ACEOF | |
49957 | # If some macros were called several times there might be several times | |
49958 | # the same #defines, which is useless. Nevertheless, we may not want to | |
49959 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
49960 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
49961 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
49962 | rm -f confdef2sed.sed | |
49963 | ||
49964 | # This sed command replaces #undef with comments. This is necessary, for | |
49965 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
49966 | # on some systems where configure will not decide to define it. | |
49967 | cat >>conftest.undefs <<\_ACEOF | |
ac1cb8d3 | 49968 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
a848cd7e SC |
49969 | _ACEOF |
49970 | ||
49971 | # Break up conftest.defines because some shells have a limit on the size | |
49972 | # of here documents, and old seds have small limits too (100 cmds). | |
49973 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
ac1cb8d3 | 49974 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
a848cd7e SC |
49975 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
49976 | echo ' :' >>$CONFIG_STATUS | |
49977 | rm -f conftest.tail | |
49978 | while grep . conftest.defines >/dev/null | |
49979 | do | |
49980 | # Write a limited-size here document to $tmp/defines.sed. | |
49981 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
49982 | # Speed up: don't consider the non `#define' lines. | |
ac1cb8d3 | 49983 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
a848cd7e SC |
49984 | # Work around the forget-to-reset-the-flag bug. |
49985 | echo 't clr' >>$CONFIG_STATUS | |
49986 | echo ': clr' >>$CONFIG_STATUS | |
49987 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
49988 | echo 'CEOF | |
49989 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
49990 | rm -f $tmp/in | |
49991 | mv $tmp/out $tmp/in | |
49992 | ' >>$CONFIG_STATUS | |
49993 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
49994 | rm -f conftest.defines | |
49995 | mv conftest.tail conftest.defines | |
49996 | done | |
49997 | rm -f conftest.defines | |
49998 | echo ' fi # grep' >>$CONFIG_STATUS | |
49999 | echo >>$CONFIG_STATUS | |
50000 | ||
50001 | # Break up conftest.undefs because some shells have a limit on the size | |
50002 | # of here documents, and old seds have small limits too (100 cmds). | |
50003 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
50004 | rm -f conftest.tail | |
50005 | while grep . conftest.undefs >/dev/null | |
50006 | do | |
50007 | # Write a limited-size here document to $tmp/undefs.sed. | |
50008 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
50009 | # Speed up: don't consider the non `#undef' | |
ac1cb8d3 | 50010 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
a848cd7e SC |
50011 | # Work around the forget-to-reset-the-flag bug. |
50012 | echo 't clr' >>$CONFIG_STATUS | |
50013 | echo ': clr' >>$CONFIG_STATUS | |
50014 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
50015 | echo 'CEOF | |
50016 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
50017 | rm -f $tmp/in | |
50018 | mv $tmp/out $tmp/in | |
50019 | ' >>$CONFIG_STATUS | |
50020 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
50021 | rm -f conftest.undefs | |
50022 | mv conftest.tail conftest.undefs | |
50023 | done | |
50024 | rm -f conftest.undefs | |
50025 | ||
50026 | cat >>$CONFIG_STATUS <<\_ACEOF | |
50027 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
50028 | # use $as_me), people would be surprised to read: | |
50029 | # /* config.h. Generated by config.status. */ | |
50030 | if test x"$ac_file" = x-; then | |
50031 | echo "/* Generated by configure. */" >$tmp/config.h | |
50032 | else | |
50033 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
50034 | fi | |
50035 | cat $tmp/in >>$tmp/config.h | |
50036 | rm -f $tmp/in | |
50037 | if test x"$ac_file" != x-; then | |
50038 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
50039 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
50040 | echo "$as_me: $ac_file is unchanged" >&6;} | |
50041 | else | |
50042 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
50043 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
50044 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
50045 | X"$ac_file" : 'X\(//\)$' \| \ | |
50046 | X"$ac_file" : 'X\(/\)' \| \ | |
50047 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
50048 | echo X"$ac_file" | |
50049 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
50050 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
50051 | /^X\(\/\/\)$/{ s//\1/; q; } | |
50052 | /^X\(\/\).*/{ s//\1/; q; } | |
50053 | s/.*/./; q'` | |
50054 | { if $as_mkdir_p; then | |
50055 | mkdir -p "$ac_dir" | |
50056 | else | |
50057 | as_dir="$ac_dir" | |
50058 | as_dirs= | |
50059 | while test ! -d "$as_dir"; do | |
50060 | as_dirs="$as_dir $as_dirs" | |
50061 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
50062 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
50063 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
50064 | X"$as_dir" : 'X\(//\)$' \| \ | |
50065 | X"$as_dir" : 'X\(/\)' \| \ | |
50066 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
50067 | echo X"$as_dir" | |
50068 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
50069 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
50070 | /^X\(\/\/\)$/{ s//\1/; q; } | |
50071 | /^X\(\/\).*/{ s//\1/; q; } | |
50072 | s/.*/./; q'` | |
50073 | done | |
50074 | test ! -n "$as_dirs" || mkdir $as_dirs | |
50075 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
50076 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
50077 | { (exit 1); exit 1; }; }; } | |
50078 | ||
50079 | rm -f $ac_file | |
50080 | mv $tmp/config.h $ac_file | |
50081 | fi | |
50082 | else | |
50083 | cat $tmp/config.h | |
50084 | rm -f $tmp/config.h | |
50085 | fi | |
50086 | done | |
50087 | _ACEOF | |
50088 | cat >>$CONFIG_STATUS <<\_ACEOF | |
50089 | ||
50090 | # | |
50091 | # CONFIG_COMMANDS section. | |
50092 | # | |
50093 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
50094 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
50095 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
50096 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
50097 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
50098 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
50099 | X"$ac_dest" : 'X\(//\)$' \| \ | |
50100 | X"$ac_dest" : 'X\(/\)' \| \ | |
50101 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
50102 | echo X"$ac_dest" | |
50103 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
50104 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
50105 | /^X\(\/\/\)$/{ s//\1/; q; } | |
50106 | /^X\(\/\).*/{ s//\1/; q; } | |
50107 | s/.*/./; q'` | |
ac1cb8d3 VS |
50108 | { if $as_mkdir_p; then |
50109 | mkdir -p "$ac_dir" | |
50110 | else | |
50111 | as_dir="$ac_dir" | |
50112 | as_dirs= | |
50113 | while test ! -d "$as_dir"; do | |
50114 | as_dirs="$as_dir $as_dirs" | |
50115 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
50116 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
50117 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
50118 | X"$as_dir" : 'X\(//\)$' \| \ | |
50119 | X"$as_dir" : 'X\(/\)' \| \ | |
50120 | . : '\(.\)' 2>/dev/null || | |
50121 | echo X"$as_dir" | | |
50122 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
50123 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
50124 | /^X\(\/\/\)$/{ s//\1/; q; } | |
50125 | /^X\(\/\).*/{ s//\1/; q; } | |
50126 | s/.*/./; q'` | |
50127 | done | |
50128 | test ! -n "$as_dirs" || mkdir $as_dirs | |
50129 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
50130 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
50131 | { (exit 1); exit 1; }; }; } | |
50132 | ||
a848cd7e SC |
50133 | ac_builddir=. |
50134 | ||
50135 | if test "$ac_dir" != .; then | |
50136 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
50137 | # A "../" for each directory in $ac_dir_suffix. | |
50138 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
50139 | else | |
50140 | ac_dir_suffix= ac_top_builddir= | |
50141 | fi | |
50142 | ||
50143 | case $srcdir in | |
50144 | .) # No --srcdir option. We are building in place. | |
50145 | ac_srcdir=. | |
50146 | if test -z "$ac_top_builddir"; then | |
50147 | ac_top_srcdir=. | |
50148 | else | |
50149 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
50150 | fi ;; | |
50151 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
50152 | ac_srcdir=$srcdir$ac_dir_suffix; | |
50153 | ac_top_srcdir=$srcdir ;; | |
50154 | *) # Relative path. | |
50155 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
50156 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
50157 | esac | |
ac1cb8d3 VS |
50158 | |
50159 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
50160 | # the directories may not exist. | |
50161 | case `pwd` in | |
50162 | .) ac_abs_builddir="$ac_dir";; | |
50163 | *) | |
50164 | case "$ac_dir" in | |
50165 | .) ac_abs_builddir=`pwd`;; | |
50166 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
50167 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
50168 | esac;; | |
50169 | esac | |
50170 | case $ac_abs_builddir in | |
50171 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
50172 | *) | |
50173 | case ${ac_top_builddir}. in | |
50174 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
50175 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
50176 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
50177 | esac;; | |
50178 | esac | |
50179 | case $ac_abs_builddir in | |
50180 | .) ac_abs_srcdir=$ac_srcdir;; | |
50181 | *) | |
50182 | case $ac_srcdir in | |
50183 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
50184 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
50185 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
50186 | esac;; | |
50187 | esac | |
50188 | case $ac_abs_builddir in | |
50189 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
50190 | *) | |
50191 | case $ac_top_srcdir in | |
50192 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
50193 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
50194 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
50195 | esac;; | |
50196 | esac | |
a848cd7e SC |
50197 | |
50198 | ||
50199 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
50200 | echo "$as_me: executing $ac_dest commands" >&6;} | |
50201 | case $ac_dest in | |
5c60e845 MW |
50202 | rcdefs.h ) |
50203 | mkdir -p $outdir && | |
50204 | $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h | |
50205 | ;; | |
ceec2216 RL |
50206 | wx-config ) rm -f wx-config |
50207 | ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config | |
50208 | ;; | |
a848cd7e SC |
50209 | esac |
50210 | done | |
50211 | _ACEOF | |
50212 | ||
50213 | cat >>$CONFIG_STATUS <<\_ACEOF | |
50214 | ||
50215 | { (exit 0); exit 0; } | |
50216 | _ACEOF | |
50217 | chmod +x $CONFIG_STATUS | |
50218 | ac_clean_files=$ac_clean_files_save | |
50219 | ||
50220 | ||
50221 | # configure is writing to config.log, and then calls config.status. | |
50222 | # config.status does its own redirection, appending to config.log. | |
50223 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
50224 | # by configure, so config.status won't be able to write to it; its | |
50225 | # output is simply discarded. So we exec the FD to /dev/null, | |
50226 | # effectively closing config.log, so it can be properly (re)opened and | |
50227 | # appended to by config.status. When coming back to configure, we | |
50228 | # need to make the FD available again. | |
50229 | if test "$no_create" != yes; then | |
50230 | ac_cs_success=: | |
50231 | ac_config_status_args= | |
50232 | test "$silent" = yes && | |
50233 | ac_config_status_args="$ac_config_status_args --quiet" | |
50234 | exec 5>/dev/null | |
50235 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
50236 | exec 5>>config.log | |
50237 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
50238 | # would make configure fail if this is the last instruction. | |
50239 | $ac_cs_success || { (exit 1); exit 1; } | |
50240 | fi | |
50241 | ||
50242 | # | |
50243 | # CONFIG_SUBDIRS section. | |
50244 | # | |
50245 | if test "$no_recursion" != yes; then | |
50246 | ||
50247 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
50248 | ac_sub_configure_args= | |
50249 | ac_prev= | |
50250 | for ac_arg in $ac_configure_args; do | |
50251 | if test -n "$ac_prev"; then | |
50252 | ac_prev= | |
50253 | continue | |
50254 | fi | |
50255 | case $ac_arg in | |
50256 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
50257 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
50258 | ac_prev=cache_file ;; | |
50259 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
50260 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
50261 | | --c=*) | |
50262 | ;; | |
50263 | --config-cache | -C) | |
50264 | ;; | |
50265 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
50266 | ac_prev=srcdir ;; | |
50267 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
50268 | ;; | |
50269 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
50270 | ac_prev=prefix ;; | |
50271 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
50272 | ;; | |
50273 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
50274 | esac | |
50275 | done | |
50276 | ||
50277 | # Always prepend --prefix to ensure using the same prefix | |
50278 | # in subdir configurations. | |
50279 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
50280 | ||
50281 | ac_popdir=`pwd` | |
50282 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
50283 | ||
50284 | # Do not complain, so a configure script can configure whichever | |
50285 | # parts of a large source tree are present. | |
50286 | test -d $srcdir/$ac_dir || continue | |
50287 | ||
50288 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
50289 | echo "$as_me: configuring in $ac_dir" >&6;} | |
50290 | { if $as_mkdir_p; then | |
50291 | mkdir -p "$ac_dir" | |
50292 | else | |
50293 | as_dir="$ac_dir" | |
50294 | as_dirs= | |
50295 | while test ! -d "$as_dir"; do | |
50296 | as_dirs="$as_dir $as_dirs" | |
50297 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
50298 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
50299 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
50300 | X"$as_dir" : 'X\(//\)$' \| \ | |
50301 | X"$as_dir" : 'X\(/\)' \| \ | |
50302 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
50303 | echo X"$as_dir" | |
50304 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
50305 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
50306 | /^X\(\/\/\)$/{ s//\1/; q; } | |
50307 | /^X\(\/\).*/{ s//\1/; q; } | |
50308 | s/.*/./; q'` | |
50309 | done | |
50310 | test ! -n "$as_dirs" || mkdir $as_dirs | |
50311 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
50312 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
50313 | { (exit 1); exit 1; }; }; } | |
50314 | ||
50315 | ac_builddir=. | |
50316 | ||
50317 | if test "$ac_dir" != .; then | |
50318 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
50319 | # A "../" for each directory in $ac_dir_suffix. | |
50320 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
50321 | else | |
50322 | ac_dir_suffix= ac_top_builddir= | |
50323 | fi | |
50324 | ||
50325 | case $srcdir in | |
50326 | .) # No --srcdir option. We are building in place. | |
50327 | ac_srcdir=. | |
50328 | if test -z "$ac_top_builddir"; then | |
50329 | ac_top_srcdir=. | |
50330 | else | |
50331 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
50332 | fi ;; | |
50333 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
50334 | ac_srcdir=$srcdir$ac_dir_suffix; | |
50335 | ac_top_srcdir=$srcdir ;; | |
50336 | *) # Relative path. | |
50337 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
50338 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
50339 | esac | |
ac1cb8d3 VS |
50340 | |
50341 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
50342 | # the directories may not exist. | |
50343 | case `pwd` in | |
50344 | .) ac_abs_builddir="$ac_dir";; | |
50345 | *) | |
50346 | case "$ac_dir" in | |
50347 | .) ac_abs_builddir=`pwd`;; | |
50348 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
50349 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
50350 | esac;; | |
50351 | esac | |
50352 | case $ac_abs_builddir in | |
50353 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
50354 | *) | |
50355 | case ${ac_top_builddir}. in | |
50356 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
50357 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
50358 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
50359 | esac;; | |
50360 | esac | |
50361 | case $ac_abs_builddir in | |
50362 | .) ac_abs_srcdir=$ac_srcdir;; | |
50363 | *) | |
50364 | case $ac_srcdir in | |
50365 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
50366 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
50367 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
50368 | esac;; | |
50369 | esac | |
50370 | case $ac_abs_builddir in | |
50371 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
50372 | *) | |
50373 | case $ac_top_srcdir in | |
50374 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
50375 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
50376 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
50377 | esac;; | |
50378 | esac | |
a848cd7e SC |
50379 | |
50380 | ||
50381 | cd $ac_dir | |
50382 | ||
50383 | # Check for guested configure; otherwise get Cygnus style configure. | |
50384 | if test -f $ac_srcdir/configure.gnu; then | |
50385 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
50386 | elif test -f $ac_srcdir/configure; then | |
50387 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
50388 | elif test -f $ac_srcdir/configure.in; then | |
50389 | ac_sub_configure=$ac_configure | |
50390 | else | |
50391 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
50392 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
50393 | ac_sub_configure= | |
50394 | fi | |
50395 | ||
50396 | # The recursion is here. | |
50397 | if test -n "$ac_sub_configure"; then | |
50398 | # Make the cache file name correct relative to the subdirectory. | |
50399 | case $cache_file in | |
50400 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
50401 | *) # Relative path. | |
ac1cb8d3 | 50402 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
a848cd7e SC |
50403 | esac |
50404 | ||
50405 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
50406 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
50407 | # The eval makes quoting arguments work. | |
50408 | eval $ac_sub_configure $ac_sub_configure_args \ | |
ac1cb8d3 VS |
50409 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
50410 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
a848cd7e SC |
50411 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
50412 | { (exit 1); exit 1; }; } | |
50413 | fi | |
50414 | ||
d25774ab | 50415 | cd $ac_popdir |
a848cd7e SC |
50416 | done |
50417 | fi | |
50418 | ||
50419 | ||
50420 | echo | |
77ffb593 | 50421 | echo "Configured wxWidgets ${WX_VERSION} for \`${host}'" |
a848cd7e | 50422 | echo "" |
4d4ff94c | 50423 | echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}" |
77ffb593 | 50424 | echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
a848cd7e | 50425 | |
77ffb593 JS |
50426 | echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}" |
50427 | echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}" | |
50428 | echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
a848cd7e | 50429 | |
77ffb593 | 50430 | echo " What level of wxWidgets compatibility should be enabled?" |
dee1a63f MB |
50431 | echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}" |
50432 | echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}" | |
a848cd7e | 50433 | |
77ffb593 | 50434 | echo " Which libraries should wxWidgets use?" |
a848cd7e SC |
50435 | echo " jpeg ${wxUSE_LIBJPEG-none}" |
50436 | echo " png ${wxUSE_LIBPNG-none}" | |
50437 | echo " regex ${wxUSE_REGEX}" | |
50438 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
50439 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then | |
50440 | echo " xpm ${wxUSE_LIBXPM-none}" | |
50441 | fi | |
50442 | echo " zlib ${wxUSE_ZLIB}" | |
50443 | echo " odbc ${wxUSE_ODBC}" | |
50444 | echo " expat ${wxUSE_EXPAT}" | |
50445 | echo " libmspack ${wxUSE_LIBMSPACK}" | |
50446 | echo " sdl ${wxUSE_LIBSDL}" | |
6d1ce868 | 50447 | echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}" |
2b850ae1 | 50448 | echo " gnomevfs ${wxUSE_LIBGNOMEVFS-none}" |
3565d135 | 50449 | echo " hildon ${wxUSE_LIBHILDON-none}" |
a848cd7e SC |
50450 | |
50451 | echo "" | |
50452 |