]>
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" | |
d044deea | 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 LNDIR 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 HILDON_CFLAGS HILDON_LIBS GSTREAMER_CFLAGS GSTREAMER_LIBS GST_INSPECT CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT 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 COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_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_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 | |
dee1a63f MB |
892 | --enable-compat24 enable wxWidgets 2.4 compatibility |
893 | --disable-compat26 disable wxWidgets 2.6 compatibility | |
ffa0583f | 894 | --disable-rpath disable use of rpath for uninstalled builds |
a848cd7e SC |
895 | --enable-intl use internationalization system |
896 | --enable-config use wxConfig (and derived) classes | |
897 | --enable-protocols use wxProtocol and derived classes | |
898 | --enable-ftp use wxFTP (requires wxProtocol | |
899 | --enable-http use wxHTTP (requires wxProtocol | |
900 | --enable-fileproto use wxFileProto class (requires wxProtocol | |
901 | --enable-sockets use socket/network classes | |
902 | --enable-ole use OLE classes (Win32 only) | |
903 | --enable-dataobj use data object classes | |
904 | --enable-ipc use interprocess communication (wxSocket etc.) | |
905 | --enable-apple_ieee use the Apple IEEE codec | |
81f90336 | 906 | --enable-arcstream use wxArchive streams |
eaff0f0d | 907 | --enable-backtrace use wxStackWalker class for getting backtraces |
36b6448c | 908 | --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only) |
a848cd7e SC |
909 | --enable-cmdline use wxCmdLineParser class |
910 | --enable-datetime use wxDateTime class | |
36b6448c | 911 | --enable-debugreport use wxDebugReport class |
a848cd7e SC |
912 | --enable-dialupman use dialup network classes |
913 | --enable-dynlib use wxLibrary class for DLL loading | |
914 | --enable-dynamicloader use (new) wxDynamicLibrary class | |
915 | --enable-exceptions build exception-safe library | |
916 | --enable-ffile use wxFFile class | |
917 | --enable-file use wxFile class | |
918 | --enable-filesystem use virtual file systems classes | |
919 | --enable-fontmap use font encodings conversion classes | |
920 | --enable-fs_inet use virtual HTTP/FTP filesystems | |
921 | --enable-fs_zip use virtual ZIP filesystems | |
922 | --enable-geometry use geometry class | |
923 | --enable-log use logging system | |
924 | --enable-longlong use wxLongLong class | |
925 | --enable-mimetype use wxMimeTypesManager | |
926 | --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only) | |
927 | --enable-snglinst use wxSingleInstanceChecker class | |
a848cd7e | 928 | --enable-std_iostreams use standard C++ stream classes |
59746b65 | 929 | --enable-std_string use standard C++ string classes |
07158944 | 930 | --enable-stdpaths use wxStandardPaths class |
a848cd7e | 931 | --enable-stopwatch use wxStopWatch class |
07158944 | 932 | --enable-streams use wxStream etc classes |
a848cd7e SC |
933 | --enable-sysoptions use wxSystemOptions |
934 | --enable-textbuf use wxTextBuffer class | |
935 | --enable-textfile use wxTextFile class | |
936 | --enable-timer use wxTimer class | |
937 | --enable-unicode compile wxString with Unicode support | |
938 | --enable-sound use wxSound class | |
3b57de8b | 939 | --enable-mediactrl use wxMediaCtrl class |
77ffb593 | 940 | --enable-wxprintfv use wxWidgets implementation of vprintf() |
81f90336 | 941 | --enable-zipstream use wxZip streams |
a848cd7e SC |
942 | --enable-url use wxURL class |
943 | --enable-protocol use wxProtocol class | |
944 | --enable-protocol-http HTTP support in wxProtocol | |
945 | --enable-protocol-ftp FTP support in wxProtocol | |
946 | --enable-protocol-file FILE support in wxProtocol | |
947 | --enable-threads use threads | |
948 | --enable-docview use document view architecture | |
949 | --enable-help use help subsystem | |
950 | --enable-mshtmlhelp use MS HTML Help (win32) | |
951 | --enable-html use wxHTML sub-library | |
952 | --enable-htmlhelp use wxHTML-based help | |
9a8f0513 | 953 | --enable-xrc use XRC resources sub-library |
a848cd7e SC |
954 | --enable-constraints use layout-constraints system |
955 | --enable-printarch use printing architecture | |
956 | --enable-mdi use multiple document interface architecture | |
8a7b1113 | 957 | --enable-mdidoc use docview architecture with MDI |
a848cd7e SC |
958 | --enable-loggui use standard GUI logger |
959 | --enable-logwin use wxLogWindow | |
960 | --enable-logdialog use wxLogDialog | |
646b6ec1 | 961 | --enable-webkit use wxWebKitCtrl (Mac) |
91dea314 | 962 | --enable-richtext use wxRichTextCtrl |
a848cd7e SC |
963 | --enable-postscript use wxPostscriptDC device context (default for gtk+) |
964 | --enable-prologio not available; see contrib | |
965 | --enable-resources not available; see contrib | |
966 | --enable-clipboard use wxClipboard class | |
967 | --enable-dnd use Drag'n'Drop classes | |
968 | --enable-metafile use win32 metafiles | |
969 | --enable-controls use all usual controls | |
970 | --enable-accel use accelerators | |
971 | --enable-button use wxButton class | |
972 | --enable-bmpbutton use wxBitmapButton class | |
973 | --enable-calendar use wxCalendarCtrl class | |
974 | --enable-caret use wxCaret class | |
975 | --enable-checkbox use wxCheckBox class | |
976 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
977 | --enable-choice use wxChoice class | |
92bbdbcd | 978 | --enable-choicebook use wxChoicebook class |
a848cd7e | 979 | --enable-combobox use wxComboBox class |
da98e9be | 980 | --enable-datepick use wxDatePickerCtrl class |
a848cd7e SC |
981 | --enable-display use wxDisplay class |
982 | --enable-gauge use wxGauge class | |
983 | --enable-grid use wxGrid class | |
20e34ecc | 984 | --enable-dataviewctrl, use wxDataViewCtrl class |
a848cd7e SC |
985 | --enable-imaglist use wxImageList class |
986 | --enable-listbook use wxListbook class | |
987 | --enable-listbox use wxListBox class | |
988 | --enable-listctrl use wxListCtrl class | |
989 | --enable-notebook use wxNotebook class | |
990 | --enable-radiobox use wxRadioBox class | |
991 | --enable-radiobtn use wxRadioButton class | |
992 | --enable-sash use wxSashWindow class | |
993 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
994 | --enable-slider use wxSlider class | |
995 | --enable-spinbtn use wxSpinButton class | |
996 | --enable-spinctrl use wxSpinCtrl class | |
997 | --enable-splitter use wxSplitterWindow class | |
998 | --enable-statbmp use wxStaticBitmap class | |
999 | --enable-statbox use wxStaticBox class | |
1000 | --enable-statline use wxStaticLine class | |
1001 | --enable-stattext use wxStaticText class | |
1002 | --enable-statusbar use wxStatusBar class | |
1003 | --enable-tabdialog use wxTabControl class | |
1004 | --enable-textctrl use wxTextCtrl class | |
1005 | --enable-togglebtn use wxToggleButton class | |
1006 | --enable-toolbar use wxToolBar class | |
1007 | --enable-tbarnative use native wxToolBar class | |
1008 | --enable-tbarsmpl use wxToolBarSimple class | |
0093c2fc | 1009 | --enable-treebook use wxTreebook class |
a848cd7e SC |
1010 | --enable-treectrl use wxTreeCtrl class |
1011 | --enable-tipwindow use wxTipWindow class | |
1012 | --enable-popupwin use wxPopUpWindow class | |
1013 | --enable-commondlg use all common dialogs | |
1014 | --enable-choicedlg use wxChoiceDialog | |
1015 | --enable-coldlg use wxColourDialog | |
1016 | --enable-filedlg use wxFileDialog | |
1017 | --enable-finddlg use wxFindReplaceDialog | |
1018 | --enable-fontdlg use wxFontDialog | |
1019 | --enable-dirdlg use wxDirDialog | |
1020 | --enable-msgdlg use wxMessageDialog | |
1021 | --enable-numberdlg use wxNumberEntryDialog | |
1022 | --enable-splash use wxSplashScreen | |
1023 | --enable-textdlg use wxTextDialog | |
1024 | --enable-tipdlg use startup tips | |
1025 | --enable-progressdlg use wxProgressDialog | |
1026 | --enable-wizarddlg use wxWizard | |
1027 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1028 | --enable-miniframe use wxMiniFrame class | |
1029 | --enable-tooltips use wxToolTip class | |
1030 | --enable-splines use spline drawing code | |
fbe2ca43 | 1031 | --enable-mousewheel use mousewheel |
a848cd7e SC |
1032 | --enable-validators use wxValidator and derived classes |
1033 | --enable-busyinfo use wxBusyInfo | |
4cb1d3da | 1034 | --enable-joystick use wxJoystick |
38b4a946 | 1035 | --enable-metafiles use wxMetaFile (Win32 only) |
a848cd7e SC |
1036 | --enable-dragimage use wxDragImage |
1037 | --enable-accessibility enable accessibility support | |
38b4a946 | 1038 | --enable-dccache cache temporary wxDC objects (Win32 only) |
a848cd7e SC |
1039 | --enable-palette use wxPalette class |
1040 | --enable-image use wxImage class | |
1041 | --enable-gif use gif images (GIF file format) | |
1042 | --enable-pcx use pcx images (PCX file format) | |
1043 | --enable-iff use iff images (IFF file format) | |
1044 | --enable-pnm use pnm images (PNM file format) | |
1045 | --enable-xpm use xpm images (XPM file format) | |
1046 | --enable-icocur use Windows ICO and CUR formats | |
77ffb593 | 1047 | --enable-official_build official build of wxWidgets (win32 DLL only) |
a848cd7e SC |
1048 | --enable-vendor=VENDOR vendor name (win32 DLL only) |
1049 | --disable-largefile omit support for large files | |
1050 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1051 | --disable-gtktest Do not try to compile and run a test GTK program | |
1052 | --disable-sdltest Do not try to compile and run a test SDL program | |
1053 | --enable-omf use OMF object format (OS/2) | |
ebee3cd0 VS |
1054 | --disable-precomp-headers |
1055 | don't use precompiled headers even if compiler can | |
a848cd7e SC |
1056 | |
1057 | Optional Packages: | |
1058 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1059 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1c14217d | 1060 | --without-subdirs don't generate makefiles for samples/demos/... |
f34ca037 | 1061 | --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any" |
a848cd7e SC |
1062 | --with-motif use Motif/Lesstif |
1063 | --with-mac use Mac OS X | |
1064 | --with-cocoa use Cocoa | |
1065 | --with-wine use Wine | |
1066 | --with-msw use MS-Windows | |
1067 | --with-pm use OS/2 Presentation Manager | |
1068 | --with-mgl use SciTech MGL | |
1069 | --with-microwin use MicroWindows | |
1070 | --with-x11 use X11 | |
1071 | --with-libpng use libpng (PNG image format) | |
1072 | --with-libjpeg use libjpeg (JPEG file format) | |
1073 | --with-libtiff use libtiff (TIFF file format) | |
1074 | --with-libxpm use libxpm (XPM file format) | |
1075 | --with-libmspack use libmspack (CHM help files loading) | |
1076 | --with-sdl use SDL for audio on Unix | |
d51253e8 | 1077 | --with-gnomeprint use GNOME print for printing under Unix |
3565d135 | 1078 | --with-hildon use Hildon framework for Nokia 770 |
a848cd7e SC |
1079 | --with-opengl use OpenGL (or Mesa) |
1080 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1081 | --with-regex enable support for wxRegEx class | |
1082 | --with-zlib use zlib for LZW compression | |
1083 | --with-odbc use the IODBC and wxODBC classes | |
1084 | --with-expat enable XML support using expat parser | |
ceec2216 | 1085 | --with-flavour=NAME specify a name to identify this build |
a848cd7e SC |
1086 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
1087 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1088 | --with-x use the X Window System | |
1089 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1090 | --with-sdl-prefix=PFX Prefix where SDL is installed (optional) | |
1091 | --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) | |
1092 | --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional) | |
1093 | --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional) | |
1094 | ||
1095 | Some influential environment variables: | |
dcc1b6ad VS |
1096 | CC C compiler command |
1097 | CFLAGS C compiler flags | |
1098 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1099 | nonstandard directory <lib dir> | |
1100 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1101 | headers in a nonstandard directory <include dir> | |
1102 | CPP C preprocessor | |
1103 | CXX C++ compiler command | |
1104 | CXXFLAGS C++ compiler flags | |
1105 | CXXCPP C++ preprocessor | |
a848cd7e SC |
1106 | |
1107 | Use these variables to override the choices made by `configure' or to help | |
1108 | it to find libraries and programs with nonstandard names/locations. | |
1109 | ||
77ffb593 | 1110 | Report bugs to <wx-dev@lists.wxwidgets.org>. |
a848cd7e SC |
1111 | _ACEOF |
1112 | fi | |
1113 | ||
1114 | if test "$ac_init_help" = "recursive"; then | |
1115 | # If there are subdirs, report their specific --help. | |
1116 | ac_popdir=`pwd` | |
1117 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1118 | test -d $ac_dir || continue | |
1119 | ac_builddir=. | |
1120 | ||
1121 | if test "$ac_dir" != .; then | |
1122 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1123 | # A "../" for each directory in $ac_dir_suffix. | |
1124 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1125 | else | |
1126 | ac_dir_suffix= ac_top_builddir= | |
1127 | fi | |
1128 | ||
1129 | case $srcdir in | |
1130 | .) # No --srcdir option. We are building in place. | |
1131 | ac_srcdir=. | |
1132 | if test -z "$ac_top_builddir"; then | |
1133 | ac_top_srcdir=. | |
1134 | else | |
1135 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1136 | fi ;; | |
1137 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1138 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1139 | ac_top_srcdir=$srcdir ;; | |
1140 | *) # Relative path. | |
1141 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1142 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1143 | esac | |
ac1cb8d3 VS |
1144 | |
1145 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1146 | # the directories may not exist. | |
1147 | case `pwd` in | |
1148 | .) ac_abs_builddir="$ac_dir";; | |
1149 | *) | |
1150 | case "$ac_dir" in | |
1151 | .) ac_abs_builddir=`pwd`;; | |
1152 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1153 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1154 | esac;; | |
1155 | esac | |
1156 | case $ac_abs_builddir in | |
1157 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1158 | *) | |
1159 | case ${ac_top_builddir}. in | |
1160 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1161 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1162 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1163 | esac;; | |
1164 | esac | |
1165 | case $ac_abs_builddir in | |
1166 | .) ac_abs_srcdir=$ac_srcdir;; | |
1167 | *) | |
1168 | case $ac_srcdir in | |
1169 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1170 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1171 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1172 | esac;; | |
1173 | esac | |
1174 | case $ac_abs_builddir in | |
1175 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1176 | *) | |
1177 | case $ac_top_srcdir in | |
1178 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1179 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1180 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1181 | esac;; | |
1182 | esac | |
a848cd7e SC |
1183 | |
1184 | cd $ac_dir | |
1185 | # Check for guested configure; otherwise get Cygnus style configure. | |
1186 | if test -f $ac_srcdir/configure.gnu; then | |
1187 | echo | |
1188 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1189 | elif test -f $ac_srcdir/configure; then | |
1190 | echo | |
1191 | $SHELL $ac_srcdir/configure --help=recursive | |
1192 | elif test -f $ac_srcdir/configure.ac || | |
ac1cb8d3 | 1193 | test -f $ac_srcdir/configure.in; then |
a848cd7e SC |
1194 | echo |
1195 | $ac_configure --help | |
1196 | else | |
1197 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1198 | fi | |
3565d135 | 1199 | cd $ac_popdir |
a848cd7e SC |
1200 | done |
1201 | fi | |
1202 | ||
1203 | test -n "$ac_init_help" && exit 0 | |
1204 | if $ac_init_version; then | |
1205 | cat <<\_ACEOF | |
dd8df4fc | 1206 | wxWidgets configure 2.7.0 |
ac1cb8d3 | 1207 | generated by GNU Autoconf 2.59 |
a848cd7e | 1208 | |
ac1cb8d3 | 1209 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
1210 | This configure script is free software; the Free Software Foundation |
1211 | gives unlimited permission to copy, distribute and modify it. | |
1212 | _ACEOF | |
1213 | exit 0 | |
1214 | fi | |
1215 | exec 5>config.log | |
1216 | cat >&5 <<_ACEOF | |
1217 | This file contains any messages produced by compilers while | |
1218 | running configure, to aid debugging if configure makes a mistake. | |
1219 | ||
dd8df4fc | 1220 | It was created by wxWidgets $as_me 2.7.0, which was |
ac1cb8d3 | 1221 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
1222 | |
1223 | $ $0 $@ | |
1224 | ||
1225 | _ACEOF | |
1226 | { | |
1227 | cat <<_ASUNAME | |
1228 | ## --------- ## | |
1229 | ## Platform. ## | |
1230 | ## --------- ## | |
1231 | ||
1232 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1233 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1234 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1235 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1236 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1237 | ||
1238 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1239 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1240 | ||
1241 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1242 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1243 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1244 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1245 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1246 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1247 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1248 | ||
1249 | _ASUNAME | |
1250 | ||
1251 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1252 | for as_dir in $PATH | |
1253 | do | |
1254 | IFS=$as_save_IFS | |
1255 | test -z "$as_dir" && as_dir=. | |
1256 | echo "PATH: $as_dir" | |
1257 | done | |
1258 | ||
1259 | } >&5 | |
1260 | ||
1261 | cat >&5 <<_ACEOF | |
1262 | ||
1263 | ||
1264 | ## ----------- ## | |
1265 | ## Core tests. ## | |
1266 | ## ----------- ## | |
1267 | ||
1268 | _ACEOF | |
1269 | ||
1270 | ||
1271 | # Keep a trace of the command line. | |
1272 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1273 | # Strip out --silent because we don't want to record it for future runs. | |
1274 | # Also quote any args containing shell meta-characters. | |
1275 | # Make two passes to allow for proper duplicate-argument suppression. | |
1276 | ac_configure_args= | |
1277 | ac_configure_args0= | |
1278 | ac_configure_args1= | |
1279 | ac_sep= | |
1280 | ac_must_keep_next=false | |
1281 | for ac_pass in 1 2 | |
1282 | do | |
1283 | for ac_arg | |
1284 | do | |
1285 | case $ac_arg in | |
1286 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1287 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1288 | | -silent | --silent | --silen | --sile | --sil) | |
1289 | continue ;; | |
1290 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1291 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1292 | esac | |
1293 | case $ac_pass in | |
1294 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1295 | 2) | |
1296 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1297 | if test $ac_must_keep_next = true; then | |
ac1cb8d3 | 1298 | ac_must_keep_next=false # Got value, back to normal. |
a848cd7e | 1299 | else |
ac1cb8d3 VS |
1300 | case $ac_arg in |
1301 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1302 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1303 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1304 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1305 | case "$ac_configure_args0 " in | |
1306 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1307 | esac | |
1308 | ;; | |
1309 | -* ) ac_must_keep_next=true ;; | |
1310 | esac | |
a848cd7e SC |
1311 | fi |
1312 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1313 | # Get rid of the leading space. | |
1314 | ac_sep=" " | |
1315 | ;; | |
1316 | esac | |
1317 | done | |
1318 | done | |
1319 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1320 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1321 | ||
1322 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1323 | # config.log. We remove comments because anyway the quotes in there | |
1324 | # would cause problems or look ugly. | |
1325 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1326 | # such as our DU 5.0 friend, will then `close' the trap. | |
1327 | trap 'exit_status=$? | |
1328 | # Save into config.log some information that might help in debugging. | |
1329 | { | |
1330 | echo | |
1331 | ||
1332 | cat <<\_ASBOX | |
1333 | ## ---------------- ## | |
1334 | ## Cache variables. ## | |
1335 | ## ---------------- ## | |
1336 | _ASBOX | |
1337 | echo | |
1338 | # The following way of writing the cache mishandles newlines in values, | |
1339 | { | |
1340 | (set) 2>&1 | | |
1341 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1342 | *ac_space=\ *) | |
1343 | sed -n \ | |
ac1cb8d3 VS |
1344 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1345 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
a848cd7e SC |
1346 | ;; |
1347 | *) | |
1348 | sed -n \ | |
ac1cb8d3 | 1349 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
1350 | ;; |
1351 | esac; | |
1352 | } | |
1353 | echo | |
1354 | ||
1355 | cat <<\_ASBOX | |
1356 | ## ----------------- ## | |
1357 | ## Output variables. ## | |
1358 | ## ----------------- ## | |
1359 | _ASBOX | |
1360 | echo | |
1361 | for ac_var in $ac_subst_vars | |
1362 | do | |
1363 | eval ac_val=$`echo $ac_var` | |
1364 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1365 | done | sort | |
1366 | echo | |
1367 | ||
1368 | if test -n "$ac_subst_files"; then | |
1369 | cat <<\_ASBOX | |
1370 | ## ------------- ## | |
1371 | ## Output files. ## | |
1372 | ## ------------- ## | |
1373 | _ASBOX | |
1374 | echo | |
1375 | for ac_var in $ac_subst_files | |
1376 | do | |
1377 | eval ac_val=$`echo $ac_var` | |
ac1cb8d3 | 1378 | echo "$ac_var='"'"'$ac_val'"'"'" |
a848cd7e SC |
1379 | done | sort |
1380 | echo | |
1381 | fi | |
1382 | ||
1383 | if test -s confdefs.h; then | |
1384 | cat <<\_ASBOX | |
1385 | ## ----------- ## | |
1386 | ## confdefs.h. ## | |
1387 | ## ----------- ## | |
1388 | _ASBOX | |
1389 | echo | |
1390 | sed "/^$/d" confdefs.h | sort | |
1391 | echo | |
1392 | fi | |
1393 | test "$ac_signal" != 0 && | |
1394 | echo "$as_me: caught signal $ac_signal" | |
1395 | echo "$as_me: exit $exit_status" | |
1396 | } >&5 | |
ac1cb8d3 | 1397 | rm -f core *.core && |
a848cd7e SC |
1398 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1399 | exit $exit_status | |
1400 | ' 0 | |
1401 | for ac_signal in 1 2 13 15; do | |
1402 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1403 | done | |
1404 | ac_signal=0 | |
1405 | ||
1406 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1407 | rm -rf conftest* confdefs.h | |
1408 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1409 | echo >confdefs.h | |
1410 | ||
1411 | # Predefined preprocessor variables. | |
1412 | ||
1413 | cat >>confdefs.h <<_ACEOF | |
1414 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1415 | _ACEOF | |
1416 | ||
1417 | ||
1418 | cat >>confdefs.h <<_ACEOF | |
1419 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1420 | _ACEOF | |
1421 | ||
1422 | ||
1423 | cat >>confdefs.h <<_ACEOF | |
1424 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1425 | _ACEOF | |
1426 | ||
1427 | ||
1428 | cat >>confdefs.h <<_ACEOF | |
1429 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1430 | _ACEOF | |
1431 | ||
1432 | ||
1433 | cat >>confdefs.h <<_ACEOF | |
1434 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1435 | _ACEOF | |
1436 | ||
1437 | ||
1438 | # Let the site file select an alternate cache file if it wants to. | |
1439 | # Prefer explicitly selected file to automatically selected ones. | |
1440 | if test -z "$CONFIG_SITE"; then | |
1441 | if test "x$prefix" != xNONE; then | |
1442 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1443 | else | |
1444 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1445 | fi | |
1446 | fi | |
1447 | for ac_site_file in $CONFIG_SITE; do | |
1448 | if test -r "$ac_site_file"; then | |
1449 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1450 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1451 | sed 's/^/| /' "$ac_site_file" >&5 | |
1452 | . "$ac_site_file" | |
1453 | fi | |
1454 | done | |
1455 | ||
1456 | if test -r "$cache_file"; then | |
1457 | # Some versions of bash will fail to source /dev/null (special | |
1458 | # files actually), so we avoid doing that. | |
1459 | if test -f "$cache_file"; then | |
1460 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1461 | echo "$as_me: loading cache $cache_file" >&6;} | |
1462 | case $cache_file in | |
1463 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1464 | *) . ./$cache_file;; | |
1465 | esac | |
1466 | fi | |
1467 | else | |
1468 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1469 | echo "$as_me: creating cache $cache_file" >&6;} | |
1470 | >$cache_file | |
1471 | fi | |
1472 | ||
1473 | # Check that the precious variables saved in the cache have kept the same | |
1474 | # value. | |
1475 | ac_cache_corrupted=false | |
1476 | for ac_var in `(set) 2>&1 | | |
ac1cb8d3 | 1477 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
a848cd7e SC |
1478 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1479 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1480 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1481 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1482 | case $ac_old_set,$ac_new_set in | |
1483 | set,) | |
1484 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1485 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1486 | ac_cache_corrupted=: ;; | |
1487 | ,set) | |
1488 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1489 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1490 | ac_cache_corrupted=: ;; | |
1491 | ,);; | |
1492 | *) | |
1493 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ac1cb8d3 | 1494 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
a848cd7e | 1495 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
ac1cb8d3 | 1496 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
a848cd7e | 1497 | echo "$as_me: former value: $ac_old_val" >&2;} |
ac1cb8d3 | 1498 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
a848cd7e | 1499 | echo "$as_me: current value: $ac_new_val" >&2;} |
ac1cb8d3 | 1500 | ac_cache_corrupted=: |
a848cd7e SC |
1501 | fi;; |
1502 | esac | |
1503 | # Pass precious variables to config.status. | |
1504 | if test "$ac_new_set" = set; then | |
1505 | case $ac_new_val in | |
1506 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1507 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1508 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1509 | esac | |
1510 | case " $ac_configure_args " in | |
1511 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1512 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1513 | esac | |
1514 | fi | |
1515 | done | |
1516 | if $ac_cache_corrupted; then | |
1517 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1518 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1519 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1520 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1521 | { (exit 1); exit 1; }; } | |
1522 | fi | |
1523 | ||
1524 | ac_ext=c | |
1525 | ac_cpp='$CPP $CPPFLAGS' | |
1526 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1527 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1528 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1529 | ||
1530 | ||
1531 | ||
1532 | ||
1533 | ||
1534 | ||
1535 | ||
1536 | ||
1537 | ||
1538 | ||
1539 | ||
1540 | ||
1541 | ||
1542 | ||
1543 | ||
1544 | ||
1545 | ||
1546 | ||
1547 | ||
1548 | ||
1549 | ||
1550 | ||
1551 | ||
1552 | ||
1553 | ||
1554 | ||
1555 | ||
1556 | ||
1557 | ||
1558 | ||
1559 | ac_aux_dir= | |
1560 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1561 | if test -f $ac_dir/install-sh; then | |
1562 | ac_aux_dir=$ac_dir | |
1563 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1564 | break | |
1565 | elif test -f $ac_dir/install.sh; then | |
1566 | ac_aux_dir=$ac_dir | |
1567 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1568 | break | |
1569 | elif test -f $ac_dir/shtool; then | |
1570 | ac_aux_dir=$ac_dir | |
1571 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1572 | break | |
1573 | fi | |
1574 | done | |
1575 | if test -z "$ac_aux_dir"; then | |
1576 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1577 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1578 | { (exit 1); exit 1; }; } | |
1579 | fi | |
1580 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1581 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1582 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1583 | ||
1584 | # Make sure we can run config.sub. | |
1585 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1586 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1587 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1588 | { (exit 1); exit 1; }; } | |
1589 | ||
1590 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1591 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1592 | if test "${ac_cv_build+set}" = set; then | |
1593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1594 | else | |
1595 | ac_cv_build_alias=$build_alias | |
1596 | test -z "$ac_cv_build_alias" && | |
1597 | ac_cv_build_alias=`$ac_config_guess` | |
1598 | test -z "$ac_cv_build_alias" && | |
1599 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1600 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1601 | { (exit 1); exit 1; }; } | |
1602 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1603 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1604 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1605 | { (exit 1); exit 1; }; } | |
1606 | ||
1607 | fi | |
1608 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1609 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1610 | build=$ac_cv_build | |
1611 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1612 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1613 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1614 | ||
1615 | ||
1616 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1617 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1618 | if test "${ac_cv_host+set}" = set; then | |
1619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1620 | else | |
1621 | ac_cv_host_alias=$host_alias | |
1622 | test -z "$ac_cv_host_alias" && | |
1623 | ac_cv_host_alias=$ac_cv_build_alias | |
1624 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1625 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1626 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1627 | { (exit 1); exit 1; }; } | |
1628 | ||
1629 | fi | |
1630 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1631 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1632 | host=$ac_cv_host | |
1633 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1634 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1635 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1636 | ||
1637 | ||
1638 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1639 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1640 | if test "${ac_cv_target+set}" = set; then | |
1641 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1642 | else | |
1643 | ac_cv_target_alias=$target_alias | |
1644 | test "x$ac_cv_target_alias" = "x" && | |
1645 | ac_cv_target_alias=$ac_cv_host_alias | |
1646 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1647 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1648 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1649 | { (exit 1); exit 1; }; } | |
1650 | ||
1651 | fi | |
1652 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1653 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1654 | target=$ac_cv_target | |
1655 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1656 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1657 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1658 | ||
1659 | ||
1660 | # The aliases save the names the user supplied, while $host etc. | |
1661 | # will get canonicalized. | |
1662 | test -n "$target_alias" && | |
1663 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1664 | NONENONEs,x,x, && | |
1665 | program_prefix=${target_alias}- | |
1666 | ||
1667 | ||
1668 | ||
ceec2216 | 1669 | wx_major_version_number=2 |
dd8df4fc VZ |
1670 | wx_minor_version_number=7 |
1671 | wx_release_number=0 | |
1672 | wx_subrelease_number=0 | |
a848cd7e | 1673 | |
ceec2216 RL |
1674 | WX_RELEASE=$wx_major_version_number.$wx_minor_version_number |
1675 | WX_VERSION=$WX_RELEASE.$wx_release_number | |
1676 | WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number | |
a848cd7e | 1677 | |
ceec2216 | 1678 | WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number |
a848cd7e | 1679 | |
a848cd7e SC |
1680 | |
1681 | ||
1682 | ||
1683 | USE_UNIX=1 | |
1684 | USE_OS2=0 | |
1685 | USE_WIN32=0 | |
1686 | USE_DOS=0 | |
1687 | USE_BEOS=0 | |
1688 | USE_MAC=0 | |
1689 | ||
1690 | USE_AIX= | |
1691 | USE_BSD= USE_DARWIN= USE_FREEBSD= | |
1692 | USE_GNU= USE_HPUX= | |
1693 | USE_LINUX= | |
1694 | USE_NETBSD= | |
1695 | USE_OPENBSD= | |
1696 | USE_OSF= USE_SGI= | |
1697 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
1698 | USE_ULTRIX= | |
1699 | USE_UNIXWARE= | |
1700 | ||
1701 | USE_ALPHA= | |
1702 | ||
1703 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
1704 | ||
1705 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" | |
1706 | ||
1707 | DEFAULT_wxUSE_COCOA=0 | |
1708 | DEFAULT_wxUSE_GTK=0 | |
1709 | DEFAULT_wxUSE_MAC=0 | |
1710 | DEFAULT_wxUSE_MGL=0 | |
1711 | DEFAULT_wxUSE_MICROWIN=0 | |
1712 | DEFAULT_wxUSE_MOTIF=0 | |
1713 | DEFAULT_wxUSE_MSW=0 | |
1714 | DEFAULT_wxUSE_PM=0 | |
1715 | DEFAULT_wxUSE_X11=0 | |
1716 | ||
1717 | DEFAULT_DEFAULT_wxUSE_COCOA=0 | |
1718 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1719 | DEFAULT_DEFAULT_wxUSE_MAC=0 | |
1720 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1721 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 | |
1722 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
1723 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
1724 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
1725 | DEFAULT_DEFAULT_wxUSE_X11=0 | |
1726 | ||
1727 | PROGRAM_EXT= | |
1728 | SO_SUFFIX=so | |
1729 | SAMPLES_RPATH_FLAG= | |
1730 | SAMPLES_RPATH_POSTLINK= | |
1731 | ||
a03b8b04 RD |
1732 | DEFAULT_STD_FLAG=yes |
1733 | ||
a848cd7e SC |
1734 | case "${host}" in |
1735 | *-hp-hpux* ) | |
1736 | USE_HPUX=1 | |
1737 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1738 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1739 | SO_SUFFIX=sl | |
1740 | cat >>confdefs.h <<\_ACEOF | |
1741 | #define __HPUX__ 1 | |
1742 | _ACEOF | |
1743 | ||
2eef8513 | 1744 | |
c92ad099 | 1745 | CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS" |
a848cd7e SC |
1746 | ;; |
1747 | *-*-linux* ) | |
1748 | USE_LINUX=1 | |
1749 | cat >>confdefs.h <<\_ACEOF | |
1750 | #define __LINUX__ 1 | |
1751 | _ACEOF | |
1752 | ||
1753 | TMP=`uname -m` | |
1754 | if test "x$TMP" = "xalpha"; then | |
1755 | USE_ALPHA=1 | |
1756 | cat >>confdefs.h <<\_ACEOF | |
1757 | #define __ALPHA__ 1 | |
1758 | _ACEOF | |
1759 | ||
1760 | fi | |
1761 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1762 | ;; | |
1763 | *-*-gnu* | *-*-k*bsd*-gnu ) | |
1764 | USE_GNU=1 | |
1765 | TMP=`uname -m` | |
1766 | if test "x$TMP" = "xalpha"; then | |
1767 | USE_ALPHA=1 | |
1768 | cat >>confdefs.h <<\_ACEOF | |
1769 | #define __ALPHA__ 1 | |
1770 | _ACEOF | |
1771 | ||
1772 | fi | |
1773 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1774 | ;; | |
1775 | *-*-irix5* | *-*-irix6* ) | |
1776 | USE_SGI=1 | |
1777 | USE_SVR4=1 | |
1778 | cat >>confdefs.h <<\_ACEOF | |
1779 | #define __SGI__ 1 | |
1780 | _ACEOF | |
1781 | ||
1782 | cat >>confdefs.h <<\_ACEOF | |
1783 | #define __SVR4__ 1 | |
1784 | _ACEOF | |
1785 | ||
1786 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1787 | ;; | |
1788 | *-*-solaris2* ) | |
1789 | USE_SUN=1 | |
1790 | USE_SOLARIS=1 | |
1791 | USE_SVR4=1 | |
1792 | cat >>confdefs.h <<\_ACEOF | |
1793 | #define __SUN__ 1 | |
1794 | _ACEOF | |
1795 | ||
1796 | cat >>confdefs.h <<\_ACEOF | |
1797 | #define __SOLARIS__ 1 | |
1798 | _ACEOF | |
1799 | ||
1800 | cat >>confdefs.h <<\_ACEOF | |
1801 | #define __SVR4__ 1 | |
1802 | _ACEOF | |
1803 | ||
1804 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1805 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1806 | ;; | |
1807 | *-*-sunos4* ) | |
1808 | USE_SUN=1 | |
1809 | USE_SUNOS=1 | |
1810 | USE_BSD=1 | |
1811 | cat >>confdefs.h <<\_ACEOF | |
1812 | #define __SUN__ 1 | |
1813 | _ACEOF | |
1814 | ||
1815 | cat >>confdefs.h <<\_ACEOF | |
1816 | #define __SUNOS__ 1 | |
1817 | _ACEOF | |
1818 | ||
1819 | cat >>confdefs.h <<\_ACEOF | |
1820 | #define __BSD__ 1 | |
1821 | _ACEOF | |
1822 | ||
1823 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1824 | ;; | |
1825 | *-*-freebsd*) | |
1826 | USE_BSD=1 | |
1827 | USE_FREEBSD=1 | |
1828 | cat >>confdefs.h <<\_ACEOF | |
1829 | #define __FREEBSD__ 1 | |
1830 | _ACEOF | |
1831 | ||
1832 | cat >>confdefs.h <<\_ACEOF | |
1833 | #define __BSD__ 1 | |
1834 | _ACEOF | |
1835 | ||
1836 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1837 | ;; | |
1838 | *-*-openbsd*) | |
1839 | USE_BSD=1 | |
1840 | USE_OPENBSD=1 | |
1841 | cat >>confdefs.h <<\_ACEOF | |
1842 | #define __OPENBSD__ 1 | |
1843 | _ACEOF | |
1844 | ||
1845 | cat >>confdefs.h <<\_ACEOF | |
1846 | #define __BSD__ 1 | |
1847 | _ACEOF | |
1848 | ||
1849 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1850 | ;; | |
1851 | *-*-netbsd*) | |
1852 | USE_BSD=1 | |
1853 | USE_NETBSD=1 | |
1854 | cat >>confdefs.h <<\_ACEOF | |
1855 | #define __NETBSD__ 1 | |
1856 | _ACEOF | |
1857 | ||
1858 | cat >>confdefs.h <<\_ACEOF | |
1859 | #define __BSD__ 1 | |
1860 | _ACEOF | |
1861 | ||
1862 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
728258f4 | 1863 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
def7c04a SN |
1864 | |
1865 | ||
1866 | CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS" | |
a848cd7e SC |
1867 | ;; |
1868 | *-*-osf* ) | |
1869 | USE_ALPHA=1 | |
1870 | USE_OSF=1 | |
1871 | cat >>confdefs.h <<\_ACEOF | |
1872 | #define __ALPHA__ 1 | |
1873 | _ACEOF | |
1874 | ||
1875 | cat >>confdefs.h <<\_ACEOF | |
1876 | #define __OSF__ 1 | |
1877 | _ACEOF | |
1878 | ||
1879 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1880 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1881 | ;; | |
1882 | *-*-dgux5* ) | |
1883 | USE_ALPHA=1 | |
1884 | USE_SVR4=1 | |
1885 | cat >>confdefs.h <<\_ACEOF | |
1886 | #define __ALPHA__ 1 | |
1887 | _ACEOF | |
1888 | ||
1889 | cat >>confdefs.h <<\_ACEOF | |
1890 | #define __SVR4__ 1 | |
1891 | _ACEOF | |
1892 | ||
1893 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1894 | ;; | |
1895 | *-*-sysv5* ) | |
1896 | USE_SYSV=1 | |
1897 | USE_SVR4=1 | |
1898 | cat >>confdefs.h <<\_ACEOF | |
1899 | #define __SYSV__ 1 | |
1900 | _ACEOF | |
1901 | ||
1902 | cat >>confdefs.h <<\_ACEOF | |
1903 | #define __SVR4__ 1 | |
1904 | _ACEOF | |
1905 | ||
1906 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1907 | ;; | |
1908 | *-*-aix* ) | |
1909 | USE_AIX=1 | |
1910 | USE_SYSV=1 | |
1911 | USE_SVR4=1 | |
1912 | SO_SUFFIX=a | |
1913 | cat >>confdefs.h <<\_ACEOF | |
1914 | #define __AIX__ 1 | |
1915 | _ACEOF | |
1916 | ||
1917 | cat >>confdefs.h <<\_ACEOF | |
1918 | #define __SYSV__ 1 | |
1919 | _ACEOF | |
1920 | ||
1921 | cat >>confdefs.h <<\_ACEOF | |
1922 | #define __SVR4__ 1 | |
1923 | _ACEOF | |
1924 | ||
1925 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1926 | ;; | |
1927 | ||
1928 | *-*-*UnixWare*) | |
1929 | USE_SYSV=1 | |
1930 | USE_SVR4=1 | |
1931 | USE_UNIXWARE=1 | |
1932 | cat >>confdefs.h <<\_ACEOF | |
1933 | #define __UNIXWARE__ 1 | |
1934 | _ACEOF | |
1935 | ||
1936 | ;; | |
1937 | ||
1938 | *-*-cygwin* | *-*-mingw32* ) | |
1939 | SO_SUFFIX=dll | |
1940 | PROGRAM_EXT=".exe" | |
a848cd7e | 1941 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
a03b8b04 | 1942 | DEFAULT_STD_FLAG=no |
a848cd7e SC |
1943 | ;; |
1944 | ||
1945 | *-pc-msdosdjgpp ) | |
1946 | USE_UNIX=0 | |
1947 | USE_DOS=1 | |
1948 | cat >>confdefs.h <<\_ACEOF | |
1949 | #define __DOS__ 1 | |
1950 | _ACEOF | |
1951 | ||
1952 | PROGRAM_EXT=".exe" | |
1953 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
a848cd7e SC |
1954 | ;; |
1955 | ||
1956 | *-pc-os2_emx | *-pc-os2-emx ) | |
1957 | cat >>confdefs.h <<\_ACEOF | |
1958 | #define __EMX__ 1 | |
1959 | _ACEOF | |
1960 | ||
1961 | USE_OS2=1 | |
1962 | cat >>confdefs.h <<\_ACEOF | |
1963 | #define __OS2__ 1 | |
1964 | _ACEOF | |
1965 | ||
1966 | PROGRAM_EXT=".exe" | |
1967 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
1968 | CXX=gcc | |
1969 | LDFLAGS="$LDFLAGS -Zcrtdll" | |
1970 | ac_executable_extensions=".exe" | |
1971 | export ac_executable_extensions | |
1972 | ac_save_IFS="$IFS" | |
1973 | IFS='\\' | |
1974 | ac_TEMP_PATH= | |
1975 | for ac_dir in $PATH; do | |
1976 | IFS=$ac_save_IFS | |
1977 | if test -z "$ac_TEMP_PATH"; then | |
1978 | ac_TEMP_PATH="$ac_dir" | |
1979 | else | |
1980 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
1981 | fi | |
1982 | done | |
1983 | export PATH="$ac_TEMP_PATH" | |
1984 | unset ac_TEMP_PATH | |
a03b8b04 | 1985 | DEFAULT_STD_FLAG=no |
a848cd7e SC |
1986 | ;; |
1987 | ||
cfda0ea8 | 1988 | *-*-darwin* ) |
a848cd7e SC |
1989 | USE_BSD=1 |
1990 | USE_DARWIN=1 | |
1991 | SO_SUFFIX=dylib | |
1992 | cat >>confdefs.h <<\_ACEOF | |
1993 | #define __BSD__ 1 | |
1994 | _ACEOF | |
1995 | ||
1996 | cat >>confdefs.h <<\_ACEOF | |
1997 | #define __DARWIN__ 1 | |
a848cd7e SC |
1998 | _ACEOF |
1999 | ||
2000 | cat >>confdefs.h <<\_ACEOF | |
2001 | #define TARGET_CARBON 1 | |
2002 | _ACEOF | |
2003 | ||
2004 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
a03b8b04 | 2005 | DEFAULT_STD_FLAG=no |
a848cd7e | 2006 | ;; |
1e9e8aba DE |
2007 | powerpc-apple-macos* ) |
2008 | USE_UNIX=0 | |
2009 | ac_cv_c_bigendian=yes | |
2010 | SO_SUFFIX=shlib | |
2011 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
a03b8b04 | 2012 | DEFAULT_STD_FLAG=no |
1e9e8aba | 2013 | ;; |
a848cd7e SC |
2014 | |
2015 | *-*-beos* ) | |
2016 | USE_BEOS=1 | |
2017 | cat >>confdefs.h <<\_ACEOF | |
2018 | #define __BEOS__ 1 | |
2019 | _ACEOF | |
2020 | ||
2021 | ;; | |
2022 | ||
2023 | *) | |
2024 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 | |
2025 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
2026 | { (exit 1); exit 1; }; } | |
2027 | esac | |
2028 | ||
2029 | ||
2030 | ||
2031 | ||
2032 | wx_arg_cache_file="configarg.cache" | |
2033 | echo "loading argument cache $wx_arg_cache_file" | |
2034 | rm -f ${wx_arg_cache_file}.tmp | |
2035 | touch ${wx_arg_cache_file}.tmp | |
2036 | touch ${wx_arg_cache_file} | |
2037 | ||
2038 | ||
2039 | DEBUG_CONFIGURE=0 | |
2040 | if test $DEBUG_CONFIGURE = 1; then | |
2041 | DEFAULT_wxUSE_UNIVERSAL=no | |
2042 | DEFAULT_wxUSE_STL=no | |
2043 | ||
2044 | DEFAULT_wxUSE_NANOX=no | |
2045 | ||
2046 | DEFAULT_wxUSE_THREADS=yes | |
2047 | ||
2048 | DEFAULT_wxUSE_SHARED=yes | |
2049 | DEFAULT_wxUSE_OPTIMISE=no | |
2050 | DEFAULT_wxUSE_PROFILE=no | |
2051 | DEFAULT_wxUSE_NO_DEPS=no | |
2052 | DEFAULT_wxUSE_NO_RTTI=no | |
2053 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
ffa0583f | 2054 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2055 | DEFAULT_wxUSE_PERMISSIVE=no |
2056 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
2057 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
2058 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
2059 | DEFAULT_wxUSE_MEM_TRACING=no | |
2060 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2061 | DEFAULT_wxUSE_DMALLOC=no | |
2062 | DEFAULT_wxUSE_APPLE_IEEE=no | |
2063 | ||
2064 | DEFAULT_wxUSE_EXCEPTIONS=no | |
2065 | DEFAULT_wxUSE_LOG=yes | |
2066 | DEFAULT_wxUSE_LOGWINDOW=no | |
2067 | DEFAULT_wxUSE_LOGGUI=no | |
2068 | DEFAULT_wxUSE_LOGDIALOG=no | |
2069 | ||
2070 | DEFAULT_wxUSE_GUI=yes | |
2071 | DEFAULT_wxUSE_CONTROLS=no | |
2072 | ||
2073 | DEFAULT_wxUSE_REGEX=no | |
2074 | DEFAULT_wxUSE_XML=no | |
2075 | DEFAULT_wxUSE_EXPAT=no | |
2076 | DEFAULT_wxUSE_ZLIB=no | |
2077 | DEFAULT_wxUSE_LIBPNG=no | |
2078 | DEFAULT_wxUSE_LIBJPEG=no | |
2079 | DEFAULT_wxUSE_LIBTIFF=no | |
2080 | DEFAULT_wxUSE_LIBXPM=no | |
2081 | DEFAULT_wxUSE_LIBMSPACK=no | |
2082 | DEFAULT_wxUSE_LIBSDL=no | |
d1c38808 | 2083 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
3565d135 | 2084 | DEFAULT_wxUSE_LIBHILDON=no |
a848cd7e SC |
2085 | DEFAULT_wxUSE_ODBC=no |
2086 | DEFAULT_wxUSE_OPENGL=no | |
2087 | ||
2088 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no | |
eaff0f0d | 2089 | DEFAULT_wxUSE_STACKWALKER=no |
36b6448c | 2090 | DEFAULT_wxUSE_DEBUGREPORT=no |
a848cd7e SC |
2091 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
2092 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
59746b65 | 2093 | DEFAULT_wxUSE_STD_STRING=no |
a848cd7e SC |
2094 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
2095 | DEFAULT_wxUSE_DATETIME=no | |
2096 | DEFAULT_wxUSE_TIMER=no | |
2097 | DEFAULT_wxUSE_STOPWATCH=no | |
2098 | DEFAULT_wxUSE_FILE=no | |
2099 | DEFAULT_wxUSE_FFILE=no | |
07158944 | 2100 | DEFAULT_wxUSE_STDPATHS=no |
a848cd7e SC |
2101 | DEFAULT_wxUSE_TEXTBUFFER=no |
2102 | DEFAULT_wxUSE_TEXTFILE=no | |
2103 | DEFAULT_wxUSE_SOUND=no | |
3b57de8b | 2104 | DEFAULT_wxUSE_MEDIACTRL=no |
a848cd7e SC |
2105 | DEFAULT_wxUSE_INTL=no |
2106 | DEFAULT_wxUSE_CONFIG=no | |
2107 | DEFAULT_wxUSE_FONTMAP=no | |
2108 | DEFAULT_wxUSE_STREAMS=no | |
2109 | DEFAULT_wxUSE_SOCKETS=no | |
2110 | DEFAULT_wxUSE_OLE=no | |
2111 | DEFAULT_wxUSE_DATAOBJ=no | |
2112 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
2113 | DEFAULT_wxUSE_JOYSTICK=no | |
2114 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
2115 | DEFAULT_wxUSE_DYNAMIC_LOADER=no | |
2116 | DEFAULT_wxUSE_LONGLONG=no | |
2117 | DEFAULT_wxUSE_GEOMETRY=no | |
2118 | ||
2119 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2120 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2121 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2122 | ||
2123 | DEFAULT_wxUSE_CLIPBOARD=no | |
2124 | DEFAULT_wxUSE_TOOLTIPS=no | |
2125 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
2126 | DEFAULT_wxUSE_DRAGIMAGE=no | |
2127 | DEFAULT_wxUSE_SPLINES=no | |
fbe2ca43 | 2128 | DEFAULT_wxUSE_MOUSEWHEEL=no |
a848cd7e | 2129 | |
8a7b1113 | 2130 | DEFAULT_wxUSE_MDI=no |
a848cd7e SC |
2131 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no |
2132 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2133 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2134 | ||
2135 | DEFAULT_wxUSE_RESOURCES=no | |
2136 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2137 | DEFAULT_wxUSE_IPC=no | |
2138 | DEFAULT_wxUSE_HELP=no | |
2139 | DEFAULT_wxUSE_MS_HTML_HELP=no | |
2140 | DEFAULT_wxUSE_WXHTML_HELP=no | |
2141 | DEFAULT_wxUSE_TREELAYOUT=no | |
2142 | DEFAULT_wxUSE_METAFILE=no | |
2143 | DEFAULT_wxUSE_MIMETYPE=no | |
2144 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no | |
2145 | DEFAULT_wxUSE_PROTOCOL=no | |
2146 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2147 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2148 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2149 | DEFAULT_wxUSE_URL=no | |
2150 | ||
2151 | DEFAULT_wxUSE_COMMONDLGS=no | |
2152 | DEFAULT_wxUSE_CHOICEDLG=no | |
2153 | DEFAULT_wxUSE_COLOURDLG=no | |
2154 | DEFAULT_wxUSE_DIRDLG=no | |
2155 | DEFAULT_wxUSE_FILEDLG=no | |
2156 | DEFAULT_wxUSE_FINDREPLDLG=no | |
2157 | DEFAULT_wxUSE_FONTDLG=no | |
2158 | DEFAULT_wxUSE_MSGDLG=no | |
2159 | DEFAULT_wxUSE_NUMBERDLG=no | |
2160 | DEFAULT_wxUSE_TEXTDLG=no | |
2161 | DEFAULT_wxUSE_SPLASH=no | |
2162 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
2163 | DEFAULT_wxUSE_PROGRESSDLG=no | |
2164 | DEFAULT_wxUSE_WIZARDDLG=no | |
2165 | ||
2166 | DEFAULT_wxUSE_MENUS=no | |
2167 | DEFAULT_wxUSE_MINIFRAME=no | |
2168 | DEFAULT_wxUSE_HTML=no | |
91dea314 | 2169 | DEFAULT_wxUSE_RICHTEXT=no |
9a8f0513 | 2170 | DEFAULT_wxUSE_XRC=no |
646b6ec1 | 2171 | DEFAULT_wxUSE_WEBKIT=no |
a848cd7e SC |
2172 | DEFAULT_wxUSE_FILESYSTEM=no |
2173 | DEFAULT_wxUSE_FS_INET=no | |
2174 | DEFAULT_wxUSE_FS_ZIP=no | |
2175 | DEFAULT_wxUSE_BUSYINFO=no | |
9e8e867f | 2176 | DEFAULT_wxUSE_ARCHIVE_STREAMS=no |
a848cd7e | 2177 | DEFAULT_wxUSE_ZIPSTREAM=no |
a848cd7e SC |
2178 | DEFAULT_wxUSE_VALIDATORS=no |
2179 | ||
2180 | DEFAULT_wxUSE_ACCEL=no | |
2181 | DEFAULT_wxUSE_BUTTON=no | |
2182 | DEFAULT_wxUSE_BMPBUTTON=no | |
2183 | DEFAULT_wxUSE_CALCTRL=no | |
2184 | DEFAULT_wxUSE_CARET=no | |
2185 | DEFAULT_wxUSE_CHECKBOX=no | |
2186 | DEFAULT_wxUSE_CHECKLST=no | |
2187 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 2188 | DEFAULT_wxUSE_CHOICEBOOK=no |
a848cd7e | 2189 | DEFAULT_wxUSE_COMBOBOX=no |
da98e9be | 2190 | DEFAULT_wxUSE_DATEPICKCTRL=no |
a848cd7e SC |
2191 | DEFAULT_wxUSE_DISPLAY=no |
2192 | DEFAULT_wxUSE_GAUGE=no | |
2193 | DEFAULT_wxUSE_GRID=no | |
20e34ecc | 2194 | DEFAULT_wxUSE_DATAVIEWCTRL=no |
a848cd7e SC |
2195 | DEFAULT_wxUSE_IMAGLIST=no |
2196 | DEFAULT_wxUSE_LISTBOOK=no | |
2197 | DEFAULT_wxUSE_LISTBOX=no | |
2198 | DEFAULT_wxUSE_LISTCTRL=no | |
2199 | DEFAULT_wxUSE_NOTEBOOK=no | |
2200 | DEFAULT_wxUSE_RADIOBOX=no | |
2201 | DEFAULT_wxUSE_RADIOBTN=no | |
2202 | DEFAULT_wxUSE_SASH=no | |
2203 | DEFAULT_wxUSE_SCROLLBAR=no | |
2204 | DEFAULT_wxUSE_SLIDER=no | |
2205 | DEFAULT_wxUSE_SPINBTN=no | |
2206 | DEFAULT_wxUSE_SPINCTRL=no | |
2207 | DEFAULT_wxUSE_SPLITTER=no | |
2208 | DEFAULT_wxUSE_STATBMP=no | |
2209 | DEFAULT_wxUSE_STATBOX=no | |
2210 | DEFAULT_wxUSE_STATLINE=no | |
2211 | DEFAULT_wxUSE_STATTEXT=no | |
2212 | DEFAULT_wxUSE_STATUSBAR=yes | |
2213 | DEFAULT_wxUSE_TABDIALOG=no | |
2214 | DEFAULT_wxUSE_TEXTCTRL=no | |
2215 | DEFAULT_wxUSE_TOGGLEBTN=no | |
2216 | DEFAULT_wxUSE_TOOLBAR=no | |
2217 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
2218 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
0093c2fc | 2219 | DEFAULT_wxUSE_TREEBOOK=no |
a848cd7e SC |
2220 | DEFAULT_wxUSE_TREECTRL=no |
2221 | DEFAULT_wxUSE_POPUPWIN=no | |
2222 | DEFAULT_wxUSE_TIPWINDOW=no | |
2223 | ||
2224 | DEFAULT_wxUSE_UNICODE=no | |
2225 | DEFAULT_wxUSE_UNICODE_MSLU=no | |
2226 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2227 | ||
2228 | DEFAULT_wxUSE_PALETTE=no | |
2229 | DEFAULT_wxUSE_IMAGE=no | |
2230 | DEFAULT_wxUSE_GIF=no | |
2231 | DEFAULT_wxUSE_PCX=no | |
2232 | DEFAULT_wxUSE_PNM=no | |
2233 | DEFAULT_wxUSE_IFF=no | |
2234 | DEFAULT_wxUSE_XPM=no | |
2235 | DEFAULT_wxUSE_ICO_CUR=no | |
2236 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2237 | ||
2238 | DEFAULT_wxUSE_MONOLITHIC=no | |
2239 | DEFAULT_wxUSE_PLUGINS=no | |
2240 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
2241 | else | |
2242 | DEFAULT_wxUSE_UNIVERSAL=no | |
2243 | DEFAULT_wxUSE_STL=no | |
2244 | ||
2245 | DEFAULT_wxUSE_NANOX=no | |
2246 | ||
2247 | DEFAULT_wxUSE_THREADS=yes | |
2248 | ||
2249 | DEFAULT_wxUSE_SHARED=yes | |
2250 | DEFAULT_wxUSE_OPTIMISE=yes | |
2251 | DEFAULT_wxUSE_PROFILE=no | |
2252 | DEFAULT_wxUSE_NO_DEPS=no | |
2253 | DEFAULT_wxUSE_NO_RTTI=no | |
2254 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
ffa0583f | 2255 | DEFAULT_wxUSE_RPATH=yes |
a848cd7e SC |
2256 | DEFAULT_wxUSE_PERMISSIVE=no |
2257 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2258 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2259 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2260 | DEFAULT_wxUSE_MEM_TRACING=no | |
2261 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2262 | DEFAULT_wxUSE_DMALLOC=no | |
2263 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2264 | ||
2265 | DEFAULT_wxUSE_EXCEPTIONS=yes | |
2266 | DEFAULT_wxUSE_LOG=yes | |
2267 | DEFAULT_wxUSE_LOGWINDOW=yes | |
2268 | DEFAULT_wxUSE_LOGGUI=yes | |
2269 | DEFAULT_wxUSE_LOGDIALOG=yes | |
2270 | ||
2271 | DEFAULT_wxUSE_GUI=yes | |
2272 | ||
2273 | DEFAULT_wxUSE_REGEX=yes | |
2274 | DEFAULT_wxUSE_XML=yes | |
2275 | DEFAULT_wxUSE_EXPAT=yes | |
2276 | DEFAULT_wxUSE_ZLIB=yes | |
2277 | DEFAULT_wxUSE_LIBPNG=yes | |
2278 | DEFAULT_wxUSE_LIBJPEG=yes | |
2279 | DEFAULT_wxUSE_LIBTIFF=yes | |
2280 | DEFAULT_wxUSE_LIBXPM=yes | |
2281 | DEFAULT_wxUSE_LIBMSPACK=yes | |
2282 | DEFAULT_wxUSE_LIBSDL=no | |
a03b8b04 | 2283 | DEFAULT_wxUSE_LIBGNOMEPRINT=no |
3565d135 | 2284 | DEFAULT_wxUSE_LIBHILDON=no |
a848cd7e | 2285 | DEFAULT_wxUSE_ODBC=no |
52cb607e | 2286 | DEFAULT_wxUSE_OPENGL=no |
a848cd7e SC |
2287 | |
2288 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes | |
eaff0f0d | 2289 | DEFAULT_wxUSE_STACKWALKER=yes |
6671c68b | 2290 | DEFAULT_wxUSE_DEBUGREPORT=yes |
a848cd7e | 2291 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
a03b8b04 RD |
2292 | DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG |
2293 | DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG | |
a848cd7e SC |
2294 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
2295 | DEFAULT_wxUSE_DATETIME=yes | |
2296 | DEFAULT_wxUSE_TIMER=yes | |
2297 | DEFAULT_wxUSE_STOPWATCH=yes | |
2298 | DEFAULT_wxUSE_FILE=yes | |
2299 | DEFAULT_wxUSE_FFILE=yes | |
07158944 | 2300 | DEFAULT_wxUSE_STDPATHS=yes |
a848cd7e SC |
2301 | DEFAULT_wxUSE_TEXTBUFFER=yes |
2302 | DEFAULT_wxUSE_TEXTFILE=yes | |
2303 | DEFAULT_wxUSE_SOUND=yes | |
3b57de8b | 2304 | DEFAULT_wxUSE_MEDIACTRL=no |
a848cd7e SC |
2305 | DEFAULT_wxUSE_INTL=yes |
2306 | DEFAULT_wxUSE_CONFIG=yes | |
2307 | DEFAULT_wxUSE_FONTMAP=yes | |
2308 | DEFAULT_wxUSE_STREAMS=yes | |
2309 | DEFAULT_wxUSE_SOCKETS=yes | |
2310 | DEFAULT_wxUSE_OLE=yes | |
2311 | DEFAULT_wxUSE_DATAOBJ=yes | |
2312 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
2313 | DEFAULT_wxUSE_JOYSTICK=yes | |
2314 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
2315 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes | |
2316 | DEFAULT_wxUSE_LONGLONG=yes | |
2317 | DEFAULT_wxUSE_GEOMETRY=yes | |
2318 | ||
2319 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2320 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2321 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2322 | ||
2323 | DEFAULT_wxUSE_CLIPBOARD=yes | |
2324 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2325 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
2326 | DEFAULT_wxUSE_DRAGIMAGE=yes | |
2327 | DEFAULT_wxUSE_SPLINES=yes | |
fbe2ca43 | 2328 | DEFAULT_wxUSE_MOUSEWHEEL=yes |
a848cd7e | 2329 | |
8a7b1113 | 2330 | DEFAULT_wxUSE_MDI=yes |
a848cd7e SC |
2331 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes |
2332 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2333 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2334 | ||
2335 | DEFAULT_wxUSE_RESOURCES=no | |
2336 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
2337 | DEFAULT_wxUSE_IPC=yes | |
2338 | DEFAULT_wxUSE_HELP=yes | |
2339 | DEFAULT_wxUSE_MS_HTML_HELP=yes | |
2340 | DEFAULT_wxUSE_WXHTML_HELP=yes | |
2341 | DEFAULT_wxUSE_TREELAYOUT=yes | |
2342 | DEFAULT_wxUSE_METAFILE=yes | |
2343 | DEFAULT_wxUSE_MIMETYPE=yes | |
2344 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes | |
2345 | DEFAULT_wxUSE_PROTOCOL=yes | |
2346 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2347 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2348 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2349 | DEFAULT_wxUSE_URL=yes | |
2350 | ||
2351 | DEFAULT_wxUSE_COMMONDLGS=yes | |
2352 | DEFAULT_wxUSE_CHOICEDLG=yes | |
2353 | DEFAULT_wxUSE_COLOURDLG=yes | |
2354 | DEFAULT_wxUSE_DIRDLG=yes | |
2355 | DEFAULT_wxUSE_FILEDLG=yes | |
2356 | DEFAULT_wxUSE_FINDREPLDLG=yes | |
2357 | DEFAULT_wxUSE_FONTDLG=yes | |
2358 | DEFAULT_wxUSE_MSGDLG=yes | |
2359 | DEFAULT_wxUSE_NUMBERDLG=yes | |
2360 | DEFAULT_wxUSE_TEXTDLG=yes | |
2361 | DEFAULT_wxUSE_SPLASH=yes | |
2362 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
2363 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
2364 | DEFAULT_wxUSE_WIZARDDLG=yes | |
2365 | ||
2366 | DEFAULT_wxUSE_MENUS=yes | |
2367 | DEFAULT_wxUSE_MINIFRAME=yes | |
2368 | DEFAULT_wxUSE_HTML=yes | |
91dea314 | 2369 | DEFAULT_wxUSE_RICHTEXT=yes |
9a8f0513 | 2370 | DEFAULT_wxUSE_XRC=yes |
646b6ec1 | 2371 | DEFAULT_wxUSE_WEBKIT=yes |
a848cd7e SC |
2372 | DEFAULT_wxUSE_FILESYSTEM=yes |
2373 | DEFAULT_wxUSE_FS_INET=yes | |
2374 | DEFAULT_wxUSE_FS_ZIP=yes | |
2375 | DEFAULT_wxUSE_BUSYINFO=yes | |
9e8e867f | 2376 | DEFAULT_wxUSE_ARCHIVE_STREAMS=yes |
a848cd7e | 2377 | DEFAULT_wxUSE_ZIPSTREAM=yes |
a848cd7e SC |
2378 | DEFAULT_wxUSE_VALIDATORS=yes |
2379 | ||
2380 | DEFAULT_wxUSE_ACCEL=yes | |
2381 | DEFAULT_wxUSE_BUTTON=yes | |
2382 | DEFAULT_wxUSE_BMPBUTTON=yes | |
2383 | DEFAULT_wxUSE_CALCTRL=yes | |
2384 | DEFAULT_wxUSE_CARET=yes | |
2385 | DEFAULT_wxUSE_CHECKBOX=yes | |
2386 | DEFAULT_wxUSE_CHECKLST=yes | |
2387 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 2388 | DEFAULT_wxUSE_CHOICEBOOK=yes |
a848cd7e | 2389 | DEFAULT_wxUSE_COMBOBOX=yes |
da98e9be | 2390 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
a848cd7e SC |
2391 | DEFAULT_wxUSE_DISPLAY=yes |
2392 | DEFAULT_wxUSE_GAUGE=yes | |
2393 | DEFAULT_wxUSE_GRID=yes | |
20e34ecc | 2394 | DEFAULT_wxUSE_DATAVIEWCTRL=no |
a848cd7e SC |
2395 | DEFAULT_wxUSE_IMAGLIST=yes |
2396 | DEFAULT_wxUSE_LISTBOOK=yes | |
2397 | DEFAULT_wxUSE_LISTBOX=yes | |
2398 | DEFAULT_wxUSE_LISTCTRL=yes | |
2399 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2400 | DEFAULT_wxUSE_RADIOBOX=yes | |
2401 | DEFAULT_wxUSE_RADIOBTN=yes | |
2402 | DEFAULT_wxUSE_SASH=yes | |
2403 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2404 | DEFAULT_wxUSE_SLIDER=yes | |
2405 | DEFAULT_wxUSE_SPINBTN=yes | |
2406 | DEFAULT_wxUSE_SPINCTRL=yes | |
2407 | DEFAULT_wxUSE_SPLITTER=yes | |
2408 | DEFAULT_wxUSE_STATBMP=yes | |
2409 | DEFAULT_wxUSE_STATBOX=yes | |
2410 | DEFAULT_wxUSE_STATLINE=yes | |
2411 | DEFAULT_wxUSE_STATTEXT=yes | |
2412 | DEFAULT_wxUSE_STATUSBAR=yes | |
2413 | DEFAULT_wxUSE_TABDIALOG=no | |
2414 | DEFAULT_wxUSE_TEXTCTRL=yes | |
2415 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
2416 | DEFAULT_wxUSE_TOOLBAR=yes | |
2417 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
2418 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
0093c2fc | 2419 | DEFAULT_wxUSE_TREEBOOK=yes |
a848cd7e SC |
2420 | DEFAULT_wxUSE_TREECTRL=yes |
2421 | DEFAULT_wxUSE_POPUPWIN=yes | |
2422 | DEFAULT_wxUSE_TIPWINDOW=yes | |
2423 | ||
78de529b | 2424 | DEFAULT_wxUSE_UNICODE=no |
a848cd7e SC |
2425 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
2426 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2427 | ||
2428 | DEFAULT_wxUSE_PALETTE=yes | |
2429 | DEFAULT_wxUSE_IMAGE=yes | |
2430 | DEFAULT_wxUSE_GIF=yes | |
2431 | DEFAULT_wxUSE_PCX=yes | |
2432 | DEFAULT_wxUSE_IFF=no | |
2433 | DEFAULT_wxUSE_PNM=yes | |
2434 | DEFAULT_wxUSE_XPM=yes | |
2435 | DEFAULT_wxUSE_ICO_CUR=yes | |
2436 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2437 | ||
2438 | DEFAULT_wxUSE_MONOLITHIC=no | |
2439 | DEFAULT_wxUSE_PLUGINS=no | |
2440 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
9f45f08e | 2441 | |
f34ca037 | 2442 | DEFAULT_wxUSE_GTK2=yes |
a848cd7e SC |
2443 | fi |
2444 | ||
2445 | ||
2446 | ||
f34ca037 | 2447 | |
a848cd7e SC |
2448 | for toolkit in `echo $ALL_TOOLKITS`; do |
2449 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` | |
2450 | if test "x$LINE" != "x" ; then | |
2451 | has_toolkit_in_cache=1 | |
2452 | eval "DEFAULT_$LINE" | |
2453 | eval "CACHE_$toolkit=1" | |
f34ca037 MW |
2454 | |
2455 | LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}` | |
2456 | if test "x$LINE" != "x" ; then | |
2457 | eval "DEFAULT_$LINE" | |
2458 | fi | |
a848cd7e SC |
2459 | fi |
2460 | done | |
2461 | ||
2462 | ||
2463 | ||
2464 | enablestring= | |
2465 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 | |
2466 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
2467 | no_cache=0 | |
2468 | # Check whether --enable-gui or --disable-gui was given. | |
2469 | if test "${enable_gui+set}" = set; then | |
2470 | enableval="$enable_gui" | |
2471 | ||
2472 | if test "$enableval" = yes; then | |
2473 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2474 | else | |
2475 | ac_cv_use_gui='wxUSE_GUI=no' | |
2476 | fi | |
2477 | ||
2478 | else | |
2479 | ||
2480 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
2481 | if test "x$LINE" != x ; then | |
2482 | eval "DEFAULT_$LINE" | |
2483 | else | |
2484 | no_cache=1 | |
2485 | fi | |
2486 | ||
2487 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
2488 | ||
2489 | fi; | |
2490 | ||
2491 | eval "$ac_cv_use_gui" | |
2492 | if test "$no_cache" != 1; then | |
2493 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2494 | fi | |
2495 | ||
2496 | if test "$wxUSE_GUI" = yes; then | |
2497 | echo "$as_me:$LINENO: result: yes" >&5 | |
2498 | echo "${ECHO_T}yes" >&6 | |
2499 | else | |
2500 | echo "$as_me:$LINENO: result: no" >&5 | |
2501 | echo "${ECHO_T}no" >&6 | |
2502 | fi | |
2503 | ||
2504 | ||
2505 | enablestring= | |
2506 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2507 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2508 | no_cache=0 | |
2509 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2510 | if test "${enable_monolithic+set}" = set; then | |
2511 | enableval="$enable_monolithic" | |
2512 | ||
2513 | if test "$enableval" = yes; then | |
2514 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2515 | else | |
2516 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2517 | fi | |
2518 | ||
2519 | else | |
2520 | ||
2521 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2522 | if test "x$LINE" != x ; then | |
2523 | eval "DEFAULT_$LINE" | |
2524 | else | |
2525 | no_cache=1 | |
2526 | fi | |
2527 | ||
2528 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2529 | ||
2530 | fi; | |
2531 | ||
2532 | eval "$ac_cv_use_monolithic" | |
2533 | if test "$no_cache" != 1; then | |
2534 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2535 | fi | |
2536 | ||
2537 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2538 | echo "$as_me:$LINENO: result: yes" >&5 | |
2539 | echo "${ECHO_T}yes" >&6 | |
2540 | else | |
2541 | echo "$as_me:$LINENO: result: no" >&5 | |
2542 | echo "${ECHO_T}no" >&6 | |
2543 | fi | |
2544 | ||
2545 | ||
2546 | enablestring= | |
2547 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5 | |
2548 | echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6 | |
2549 | no_cache=0 | |
2550 | # Check whether --enable-plugins or --disable-plugins was given. | |
2551 | if test "${enable_plugins+set}" = set; then | |
2552 | enableval="$enable_plugins" | |
2553 | ||
2554 | if test "$enableval" = yes; then | |
2555 | ac_cv_use_plugins='wxUSE_PLUGINS=yes' | |
2556 | else | |
2557 | ac_cv_use_plugins='wxUSE_PLUGINS=no' | |
2558 | fi | |
2559 | ||
2560 | else | |
2561 | ||
2562 | LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}` | |
2563 | if test "x$LINE" != x ; then | |
2564 | eval "DEFAULT_$LINE" | |
2565 | else | |
2566 | no_cache=1 | |
2567 | fi | |
2568 | ||
2569 | ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS | |
2570 | ||
2571 | fi; | |
2572 | ||
2573 | eval "$ac_cv_use_plugins" | |
2574 | if test "$no_cache" != 1; then | |
2575 | echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp | |
2576 | fi | |
2577 | ||
2578 | if test "$wxUSE_PLUGINS" = yes; then | |
2579 | echo "$as_me:$LINENO: result: yes" >&5 | |
2580 | echo "${ECHO_T}yes" >&6 | |
2581 | else | |
2582 | echo "$as_me:$LINENO: result: no" >&5 | |
2583 | echo "${ECHO_T}no" >&6 | |
2584 | fi | |
2585 | ||
2586 | ||
1c14217d VZ |
2587 | withstring=without |
2588 | echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5 | |
2589 | echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6 | |
2590 | no_cache=0 | |
2591 | ||
2592 | # Check whether --with-subdirs or --without-subdirs was given. | |
2593 | if test "${with_subdirs+set}" = set; then | |
2594 | withval="$with_subdirs" | |
2595 | ||
2596 | if test "$withval" = yes; then | |
2597 | ac_cv_use_subdirs='wxWITH_SUBDIRS=yes' | |
2598 | else | |
2599 | ac_cv_use_subdirs='wxWITH_SUBDIRS=no' | |
2600 | fi | |
2601 | ||
2602 | else | |
2603 | ||
2604 | LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}` | |
2605 | if test "x$LINE" != x ; then | |
2606 | eval "DEFAULT_$LINE" | |
2607 | else | |
2608 | no_cache=1 | |
2609 | fi | |
2610 | ||
2611 | ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS | |
2612 | ||
2613 | fi; | |
2614 | ||
2615 | eval "$ac_cv_use_subdirs" | |
2616 | if test "$no_cache" != 1; then | |
2617 | echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp | |
2618 | fi | |
2619 | ||
2620 | if test "$wxWITH_SUBDIRS" = yes; then | |
2621 | echo "$as_me:$LINENO: result: yes" >&5 | |
2622 | echo "${ECHO_T}yes" >&6 | |
2623 | else | |
2624 | echo "$as_me:$LINENO: result: no" >&5 | |
2625 | echo "${ECHO_T}no" >&6 | |
2626 | fi | |
2627 | ||
2628 | ||
a848cd7e SC |
2629 | if test "$wxUSE_GUI" = "yes"; then |
2630 | ||
2631 | ||
2632 | enablestring= | |
2633 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 | |
2634 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
2635 | no_cache=0 | |
2636 | # Check whether --enable-universal or --disable-universal was given. | |
2637 | if test "${enable_universal+set}" = set; then | |
2638 | enableval="$enable_universal" | |
2639 | ||
2640 | if test "$enableval" = yes; then | |
2641 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2642 | else | |
2643 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2644 | fi | |
2645 | ||
2646 | else | |
2647 | ||
2648 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
2649 | if test "x$LINE" != x ; then | |
2650 | eval "DEFAULT_$LINE" | |
2651 | else | |
2652 | no_cache=1 | |
2653 | fi | |
2654 | ||
2655 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
2656 | ||
2657 | fi; | |
2658 | ||
2659 | eval "$ac_cv_use_universal" | |
2660 | if test "$no_cache" != 1; then | |
2661 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2662 | fi | |
2663 | ||
2664 | if test "$wxUSE_UNIVERSAL" = yes; then | |
2665 | echo "$as_me:$LINENO: result: yes" >&5 | |
2666 | echo "${ECHO_T}yes" >&6 | |
2667 | else | |
2668 | echo "$as_me:$LINENO: result: no" >&5 | |
2669 | echo "${ECHO_T}no" >&6 | |
2670 | fi | |
2671 | ||
2672 | ||
2673 | # Check whether --with-gtk or --without-gtk was given. | |
2674 | if test "${with_gtk+set}" = set; then | |
2675 | withval="$with_gtk" | |
2676 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
2677 | fi; | |
2678 | ||
2679 | # Check whether --with-motif or --without-motif was given. | |
2680 | if test "${with_motif+set}" = set; then | |
2681 | withval="$with_motif" | |
2682 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
2683 | fi; | |
2684 | ||
2685 | # Check whether --with-mac or --without-mac was given. | |
2686 | if test "${with_mac+set}" = set; then | |
2687 | withval="$with_mac" | |
c228d3a4 | 2688 | wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2689 | fi; |
2690 | ||
2691 | # Check whether --with-cocoa or --without-cocoa was given. | |
2692 | if test "${with_cocoa+set}" = set; then | |
2693 | withval="$with_cocoa" | |
c228d3a4 | 2694 | wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1 |
a848cd7e SC |
2695 | fi; |
2696 | ||
2697 | # Check whether --with-wine or --without-wine was given. | |
2698 | if test "${with_wine+set}" = set; then | |
2699 | withval="$with_wine" | |
2700 | wxUSE_WINE="$withval" CACHE_WINE=1 | |
2701 | fi; | |
2702 | ||
2703 | # Check whether --with-msw or --without-msw was given. | |
2704 | if test "${with_msw+set}" = set; then | |
2705 | withval="$with_msw" | |
2706 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 | |
2707 | fi; | |
2708 | ||
2709 | # Check whether --with-pm or --without-pm was given. | |
2710 | if test "${with_pm+set}" = set; then | |
2711 | withval="$with_pm" | |
2712 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
2713 | fi; | |
2714 | ||
2715 | # Check whether --with-mgl or --without-mgl was given. | |
2716 | if test "${with_mgl+set}" = set; then | |
2717 | withval="$with_mgl" | |
2718 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
2719 | fi; | |
2720 | ||
2721 | # Check whether --with-microwin or --without-microwin was given. | |
2722 | if test "${with_microwin+set}" = set; then | |
2723 | withval="$with_microwin" | |
2724 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
2725 | fi; | |
2726 | ||
2727 | # Check whether --with-x11 or --without-x11 was given. | |
2728 | if test "${with_x11+set}" = set; then | |
2729 | withval="$with_x11" | |
2730 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
2731 | fi; | |
2732 | ||
2733 | enablestring= | |
2734 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 | |
2735 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
2736 | no_cache=0 | |
2737 | # Check whether --enable-nanox or --disable-nanox was given. | |
2738 | if test "${enable_nanox+set}" = set; then | |
2739 | enableval="$enable_nanox" | |
2740 | ||
2741 | if test "$enableval" = yes; then | |
2742 | ac_cv_use_nanox='wxUSE_NANOX=yes' | |
2743 | else | |
2744 | ac_cv_use_nanox='wxUSE_NANOX=no' | |
2745 | fi | |
2746 | ||
2747 | else | |
2748 | ||
2749 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
2750 | if test "x$LINE" != x ; then | |
2751 | eval "DEFAULT_$LINE" | |
2752 | else | |
2753 | no_cache=1 | |
2754 | fi | |
2755 | ||
2756 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX | |
2757 | ||
2758 | fi; | |
2759 | ||
2760 | eval "$ac_cv_use_nanox" | |
2761 | if test "$no_cache" != 1; then | |
2762 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp | |
2763 | fi | |
2764 | ||
2765 | if test "$wxUSE_NANOX" = yes; then | |
2766 | echo "$as_me:$LINENO: result: yes" >&5 | |
2767 | echo "${ECHO_T}yes" >&6 | |
2768 | else | |
2769 | echo "$as_me:$LINENO: result: no" >&5 | |
2770 | echo "${ECHO_T}no" >&6 | |
2771 | fi | |
2772 | ||
2773 | ||
f34ca037 MW |
2774 | # Check whether --enable-gtk2 or --disable-gtk2 was given. |
2775 | if test "${enable_gtk2+set}" = set; then | |
2776 | enableval="$enable_gtk2" | |
2777 | wxUSE_GTK2="$enableval" | |
2778 | fi; | |
a848cd7e | 2779 | |
a848cd7e SC |
2780 | enablestring= |
2781 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5 | |
2782 | echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6 | |
2783 | no_cache=0 | |
2784 | # Check whether --enable-gpe or --disable-gpe was given. | |
2785 | if test "${enable_gpe+set}" = set; then | |
2786 | enableval="$enable_gpe" | |
2787 | ||
2788 | if test "$enableval" = yes; then | |
2789 | ac_cv_use_gpe='wxUSE_GPE=yes' | |
2790 | else | |
2791 | ac_cv_use_gpe='wxUSE_GPE=no' | |
2792 | fi | |
2793 | ||
2794 | else | |
2795 | ||
2796 | LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}` | |
2797 | if test "x$LINE" != x ; then | |
2798 | eval "DEFAULT_$LINE" | |
2799 | else | |
2800 | no_cache=1 | |
2801 | fi | |
2802 | ||
2803 | ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE | |
2804 | ||
2805 | fi; | |
2806 | ||
2807 | eval "$ac_cv_use_gpe" | |
2808 | if test "$no_cache" != 1; then | |
2809 | echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp | |
2810 | fi | |
2811 | ||
2812 | if test "$wxUSE_GPE" = yes; then | |
2813 | echo "$as_me:$LINENO: result: yes" >&5 | |
2814 | echo "${ECHO_T}yes" >&6 | |
2815 | else | |
2816 | echo "$as_me:$LINENO: result: no" >&5 | |
2817 | echo "${ECHO_T}no" >&6 | |
2818 | fi | |
2819 | ||
2820 | ||
2821 | ||
2822 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2823 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
2824 | no_cache=0 | |
2825 | ||
2826 | # Check whether --with-libpng or --without-libpng was given. | |
2827 | if test "${with_libpng+set}" = set; then | |
2828 | withval="$with_libpng" | |
2829 | ||
2830 | if test "$withval" = yes; then | |
2831 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
2832 | elif test "$withval" = no; then | |
2833 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
2834 | elif test "$withval" = sys; then | |
2835 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
2836 | elif test "$withval" = builtin; then | |
2837 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
2838 | else | |
2839 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2840 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2841 | { (exit 1); exit 1; }; } | |
2842 | fi | |
2843 | ||
2844 | else | |
2845 | ||
2846 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
2847 | if test "x$LINE" != x ; then | |
2848 | eval "DEFAULT_$LINE" | |
2849 | else | |
2850 | no_cache=1 | |
2851 | fi | |
2852 | ||
2853 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
2854 | ||
2855 | fi; | |
2856 | ||
2857 | eval "$ac_cv_use_libpng" | |
2858 | if test "$no_cache" != 1; then | |
2859 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
2860 | fi | |
2861 | ||
2862 | if test "$wxUSE_LIBPNG" = yes; then | |
2863 | echo "$as_me:$LINENO: result: yes" >&5 | |
2864 | echo "${ECHO_T}yes" >&6 | |
2865 | elif test "$wxUSE_LIBPNG" = no; then | |
2866 | echo "$as_me:$LINENO: result: no" >&5 | |
2867 | echo "${ECHO_T}no" >&6 | |
2868 | elif test "$wxUSE_LIBPNG" = sys; then | |
2869 | echo "$as_me:$LINENO: result: system version" >&5 | |
2870 | echo "${ECHO_T}system version" >&6 | |
2871 | elif test "$wxUSE_LIBPNG" = builtin; then | |
2872 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2873 | echo "${ECHO_T}builtin version" >&6 | |
2874 | else | |
2875 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2876 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2877 | { (exit 1); exit 1; }; } | |
2878 | fi | |
2879 | ||
2880 | ||
2881 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2882 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
2883 | no_cache=0 | |
2884 | ||
2885 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
2886 | if test "${with_libjpeg+set}" = set; then | |
2887 | withval="$with_libjpeg" | |
2888 | ||
2889 | if test "$withval" = yes; then | |
2890 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
2891 | elif test "$withval" = no; then | |
2892 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
2893 | elif test "$withval" = sys; then | |
2894 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
2895 | elif test "$withval" = builtin; then | |
2896 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
2897 | else | |
2898 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2899 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2900 | { (exit 1); exit 1; }; } | |
2901 | fi | |
2902 | ||
2903 | else | |
2904 | ||
2905 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
2906 | if test "x$LINE" != x ; then | |
2907 | eval "DEFAULT_$LINE" | |
2908 | else | |
2909 | no_cache=1 | |
2910 | fi | |
2911 | ||
2912 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
2913 | ||
2914 | fi; | |
2915 | ||
2916 | eval "$ac_cv_use_libjpeg" | |
2917 | if test "$no_cache" != 1; then | |
2918 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
2919 | fi | |
2920 | ||
2921 | if test "$wxUSE_LIBJPEG" = yes; then | |
2922 | echo "$as_me:$LINENO: result: yes" >&5 | |
2923 | echo "${ECHO_T}yes" >&6 | |
2924 | elif test "$wxUSE_LIBJPEG" = no; then | |
2925 | echo "$as_me:$LINENO: result: no" >&5 | |
2926 | echo "${ECHO_T}no" >&6 | |
2927 | elif test "$wxUSE_LIBJPEG" = sys; then | |
2928 | echo "$as_me:$LINENO: result: system version" >&5 | |
2929 | echo "${ECHO_T}system version" >&6 | |
2930 | elif test "$wxUSE_LIBJPEG" = builtin; then | |
2931 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2932 | echo "${ECHO_T}builtin version" >&6 | |
2933 | else | |
2934 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2935 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2936 | { (exit 1); exit 1; }; } | |
2937 | fi | |
2938 | ||
2939 | ||
2940 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2941 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
2942 | no_cache=0 | |
2943 | ||
2944 | # Check whether --with-libtiff or --without-libtiff was given. | |
2945 | if test "${with_libtiff+set}" = set; then | |
2946 | withval="$with_libtiff" | |
2947 | ||
2948 | if test "$withval" = yes; then | |
2949 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
2950 | elif test "$withval" = no; then | |
2951 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
2952 | elif test "$withval" = sys; then | |
2953 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
2954 | elif test "$withval" = builtin; then | |
2955 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
2956 | else | |
2957 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2958 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2959 | { (exit 1); exit 1; }; } | |
2960 | fi | |
2961 | ||
2962 | else | |
2963 | ||
2964 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
2965 | if test "x$LINE" != x ; then | |
2966 | eval "DEFAULT_$LINE" | |
2967 | else | |
2968 | no_cache=1 | |
2969 | fi | |
2970 | ||
2971 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
2972 | ||
2973 | fi; | |
2974 | ||
2975 | eval "$ac_cv_use_libtiff" | |
2976 | if test "$no_cache" != 1; then | |
2977 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
2978 | fi | |
2979 | ||
2980 | if test "$wxUSE_LIBTIFF" = yes; then | |
2981 | echo "$as_me:$LINENO: result: yes" >&5 | |
2982 | echo "${ECHO_T}yes" >&6 | |
2983 | elif test "$wxUSE_LIBTIFF" = no; then | |
2984 | echo "$as_me:$LINENO: result: no" >&5 | |
2985 | echo "${ECHO_T}no" >&6 | |
2986 | elif test "$wxUSE_LIBTIFF" = sys; then | |
2987 | echo "$as_me:$LINENO: result: system version" >&5 | |
2988 | echo "${ECHO_T}system version" >&6 | |
2989 | elif test "$wxUSE_LIBTIFF" = builtin; then | |
2990 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2991 | echo "${ECHO_T}builtin version" >&6 | |
2992 | else | |
2993 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2994 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2995 | { (exit 1); exit 1; }; } | |
2996 | fi | |
2997 | ||
2998 | ||
2999 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 | |
3000 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
3001 | no_cache=0 | |
3002 | ||
3003 | # Check whether --with-libxpm or --without-libxpm was given. | |
3004 | if test "${with_libxpm+set}" = set; then | |
3005 | withval="$with_libxpm" | |
3006 | ||
3007 | if test "$withval" = yes; then | |
3008 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
3009 | elif test "$withval" = no; then | |
3010 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
3011 | elif test "$withval" = sys; then | |
3012 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
3013 | elif test "$withval" = builtin; then | |
3014 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
3015 | else | |
3016 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
3017 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
3018 | { (exit 1); exit 1; }; } | |
3019 | fi | |
3020 | ||
3021 | else | |
3022 | ||
3023 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
3024 | if test "x$LINE" != x ; then | |
3025 | eval "DEFAULT_$LINE" | |
3026 | else | |
3027 | no_cache=1 | |
3028 | fi | |
3029 | ||
3030 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
3031 | ||
3032 | fi; | |
3033 | ||
3034 | eval "$ac_cv_use_libxpm" | |
3035 | if test "$no_cache" != 1; then | |
3036 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
3037 | fi | |
3038 | ||
3039 | if test "$wxUSE_LIBXPM" = yes; then | |
3040 | echo "$as_me:$LINENO: result: yes" >&5 | |
3041 | echo "${ECHO_T}yes" >&6 | |
3042 | elif test "$wxUSE_LIBXPM" = no; then | |
3043 | echo "$as_me:$LINENO: result: no" >&5 | |
3044 | echo "${ECHO_T}no" >&6 | |
3045 | elif test "$wxUSE_LIBXPM" = sys; then | |
3046 | echo "$as_me:$LINENO: result: system version" >&5 | |
3047 | echo "${ECHO_T}system version" >&6 | |
3048 | elif test "$wxUSE_LIBXPM" = builtin; then | |
3049 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3050 | echo "${ECHO_T}builtin version" >&6 | |
3051 | else | |
3052 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
3053 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
3054 | { (exit 1); exit 1; }; } | |
3055 | fi | |
3056 | ||
3057 | ||
1c14217d VZ |
3058 | withstring= |
3059 | echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5 | |
3060 | echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6 | |
a848cd7e SC |
3061 | no_cache=0 |
3062 | ||
3063 | # Check whether --with-libmspack or --without-libmspack was given. | |
3064 | if test "${with_libmspack+set}" = set; then | |
3065 | withval="$with_libmspack" | |
3066 | ||
3067 | if test "$withval" = yes; then | |
3068 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
3069 | else | |
3070 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
3071 | fi | |
3072 | ||
3073 | else | |
3074 | ||
3075 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
3076 | if test "x$LINE" != x ; then | |
3077 | eval "DEFAULT_$LINE" | |
3078 | else | |
3079 | no_cache=1 | |
3080 | fi | |
3081 | ||
3082 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
3083 | ||
3084 | fi; | |
3085 | ||
3086 | eval "$ac_cv_use_libmspack" | |
3087 | if test "$no_cache" != 1; then | |
3088 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
3089 | fi | |
3090 | ||
3091 | if test "$wxUSE_LIBMSPACK" = yes; then | |
3092 | echo "$as_me:$LINENO: result: yes" >&5 | |
3093 | echo "${ECHO_T}yes" >&6 | |
3094 | else | |
3095 | echo "$as_me:$LINENO: result: no" >&5 | |
3096 | echo "${ECHO_T}no" >&6 | |
3097 | fi | |
3098 | ||
3099 | ||
1c14217d VZ |
3100 | withstring= |
3101 | echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5 | |
3102 | echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6 | |
a848cd7e SC |
3103 | no_cache=0 |
3104 | ||
3105 | # Check whether --with-sdl or --without-sdl was given. | |
3106 | if test "${with_sdl+set}" = set; then | |
3107 | withval="$with_sdl" | |
3108 | ||
3109 | if test "$withval" = yes; then | |
3110 | ac_cv_use_sdl='wxUSE_LIBSDL=yes' | |
3111 | else | |
3112 | ac_cv_use_sdl='wxUSE_LIBSDL=no' | |
3113 | fi | |
3114 | ||
3115 | else | |
3116 | ||
3117 | LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}` | |
3118 | if test "x$LINE" != x ; then | |
3119 | eval "DEFAULT_$LINE" | |
3120 | else | |
3121 | no_cache=1 | |
3122 | fi | |
3123 | ||
3124 | ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL | |
3125 | ||
3126 | fi; | |
3127 | ||
3128 | eval "$ac_cv_use_sdl" | |
3129 | if test "$no_cache" != 1; then | |
3130 | echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp | |
3131 | fi | |
3132 | ||
3133 | if test "$wxUSE_LIBSDL" = yes; then | |
3134 | echo "$as_me:$LINENO: result: yes" >&5 | |
3135 | echo "${ECHO_T}yes" >&6 | |
3136 | else | |
3137 | echo "$as_me:$LINENO: result: no" >&5 | |
3138 | echo "${ECHO_T}no" >&6 | |
3139 | fi | |
3140 | ||
3141 | ||
1c14217d VZ |
3142 | withstring= |
3143 | echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5 | |
3144 | echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6 | |
d1c38808 VZ |
3145 | no_cache=0 |
3146 | ||
3147 | # Check whether --with-gnomeprint or --without-gnomeprint was given. | |
3148 | if test "${with_gnomeprint+set}" = set; then | |
3149 | withval="$with_gnomeprint" | |
3150 | ||
3151 | if test "$withval" = yes; then | |
3152 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes' | |
3153 | else | |
3154 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no' | |
3155 | fi | |
3156 | ||
3157 | else | |
3158 | ||
3159 | LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}` | |
3160 | if test "x$LINE" != x ; then | |
3161 | eval "DEFAULT_$LINE" | |
3162 | else | |
3163 | no_cache=1 | |
3164 | fi | |
3165 | ||
3166 | ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT | |
3167 | ||
3168 | fi; | |
3169 | ||
3170 | eval "$ac_cv_use_gnomeprint" | |
3171 | if test "$no_cache" != 1; then | |
3172 | echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp | |
3173 | fi | |
3174 | ||
3175 | if test "$wxUSE_LIBGNOMEPRINT" = yes; then | |
3176 | echo "$as_me:$LINENO: result: yes" >&5 | |
3177 | echo "${ECHO_T}yes" >&6 | |
3178 | else | |
3179 | echo "$as_me:$LINENO: result: no" >&5 | |
3180 | echo "${ECHO_T}no" >&6 | |
3181 | fi | |
3182 | ||
3183 | ||
3565d135 RR |
3184 | withstring= |
3185 | echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5 | |
3186 | echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6 | |
3187 | no_cache=0 | |
3188 | ||
3189 | # Check whether --with-hildon or --without-hildon was given. | |
3190 | if test "${with_hildon+set}" = set; then | |
3191 | withval="$with_hildon" | |
3192 | ||
3193 | if test "$withval" = yes; then | |
3194 | ac_cv_use_hildon='wxUSE_LIBHILDON=yes' | |
3195 | else | |
3196 | ac_cv_use_hildon='wxUSE_LIBHILDON=no' | |
3197 | fi | |
3198 | ||
3199 | else | |
3200 | ||
3201 | LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}` | |
3202 | if test "x$LINE" != x ; then | |
3203 | eval "DEFAULT_$LINE" | |
3204 | else | |
3205 | no_cache=1 | |
3206 | fi | |
3207 | ||
3208 | ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON | |
3209 | ||
3210 | fi; | |
3211 | ||
3212 | eval "$ac_cv_use_hildon" | |
3213 | if test "$no_cache" != 1; then | |
3214 | echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp | |
3215 | fi | |
3216 | ||
3217 | if test "$wxUSE_LIBHILDON" = yes; then | |
3218 | echo "$as_me:$LINENO: result: yes" >&5 | |
3219 | echo "${ECHO_T}yes" >&6 | |
3220 | else | |
3221 | echo "$as_me:$LINENO: result: no" >&5 | |
3222 | echo "${ECHO_T}no" >&6 | |
3223 | fi | |
3224 | ||
3225 | ||
1c14217d VZ |
3226 | withstring= |
3227 | echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5 | |
3228 | echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6 | |
a848cd7e SC |
3229 | no_cache=0 |
3230 | ||
3231 | # Check whether --with-opengl or --without-opengl was given. | |
3232 | if test "${with_opengl+set}" = set; then | |
3233 | withval="$with_opengl" | |
3234 | ||
3235 | if test "$withval" = yes; then | |
3236 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
3237 | else | |
3238 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
3239 | fi | |
3240 | ||
3241 | else | |
3242 | ||
3243 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
3244 | if test "x$LINE" != x ; then | |
3245 | eval "DEFAULT_$LINE" | |
3246 | else | |
3247 | no_cache=1 | |
3248 | fi | |
3249 | ||
3250 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
3251 | ||
3252 | fi; | |
3253 | ||
3254 | eval "$ac_cv_use_opengl" | |
3255 | if test "$no_cache" != 1; then | |
3256 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
3257 | fi | |
3258 | ||
3259 | if test "$wxUSE_OPENGL" = yes; then | |
3260 | echo "$as_me:$LINENO: result: yes" >&5 | |
3261 | echo "${ECHO_T}yes" >&6 | |
3262 | else | |
3263 | echo "$as_me:$LINENO: result: no" >&5 | |
3264 | echo "${ECHO_T}no" >&6 | |
3265 | fi | |
3266 | ||
3267 | ||
3268 | fi | |
3269 | ||
3270 | ||
1c14217d VZ |
3271 | withstring= |
3272 | echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5 | |
3273 | echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6 | |
a848cd7e SC |
3274 | no_cache=0 |
3275 | ||
3276 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
3277 | if test "${with_dmalloc+set}" = set; then | |
3278 | withval="$with_dmalloc" | |
3279 | ||
3280 | if test "$withval" = yes; then | |
3281 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
3282 | else | |
3283 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
3284 | fi | |
3285 | ||
3286 | else | |
3287 | ||
3288 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
3289 | if test "x$LINE" != x ; then | |
3290 | eval "DEFAULT_$LINE" | |
3291 | else | |
3292 | no_cache=1 | |
3293 | fi | |
3294 | ||
3295 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
3296 | ||
3297 | fi; | |
3298 | ||
3299 | eval "$ac_cv_use_dmalloc" | |
3300 | if test "$no_cache" != 1; then | |
3301 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
3302 | fi | |
3303 | ||
3304 | if test "$wxUSE_DMALLOC" = yes; then | |
3305 | echo "$as_me:$LINENO: result: yes" >&5 | |
3306 | echo "${ECHO_T}yes" >&6 | |
3307 | else | |
3308 | echo "$as_me:$LINENO: result: no" >&5 | |
3309 | echo "${ECHO_T}no" >&6 | |
3310 | fi | |
3311 | ||
3312 | ||
3313 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
3314 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3315 | no_cache=0 | |
3316 | ||
3317 | # Check whether --with-regex or --without-regex was given. | |
3318 | if test "${with_regex+set}" = set; then | |
3319 | withval="$with_regex" | |
3320 | ||
3321 | if test "$withval" = yes; then | |
3322 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
3323 | elif test "$withval" = no; then | |
3324 | ac_cv_use_regex='wxUSE_REGEX=no' | |
3325 | elif test "$withval" = sys; then | |
3326 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
3327 | elif test "$withval" = builtin; then | |
3328 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3329 | else | |
3330 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3331 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3332 | { (exit 1); exit 1; }; } | |
3333 | fi | |
3334 | ||
3335 | else | |
3336 | ||
3337 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
3338 | if test "x$LINE" != x ; then | |
3339 | eval "DEFAULT_$LINE" | |
3340 | else | |
3341 | no_cache=1 | |
3342 | fi | |
3343 | ||
3344 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3345 | ||
3346 | fi; | |
3347 | ||
3348 | eval "$ac_cv_use_regex" | |
3349 | if test "$no_cache" != 1; then | |
3350 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3351 | fi | |
3352 | ||
3353 | if test "$wxUSE_REGEX" = yes; then | |
3354 | echo "$as_me:$LINENO: result: yes" >&5 | |
3355 | echo "${ECHO_T}yes" >&6 | |
3356 | elif test "$wxUSE_REGEX" = no; then | |
3357 | echo "$as_me:$LINENO: result: no" >&5 | |
3358 | echo "${ECHO_T}no" >&6 | |
3359 | elif test "$wxUSE_REGEX" = sys; then | |
3360 | echo "$as_me:$LINENO: result: system version" >&5 | |
3361 | echo "${ECHO_T}system version" >&6 | |
3362 | elif test "$wxUSE_REGEX" = builtin; then | |
3363 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3364 | echo "${ECHO_T}builtin version" >&6 | |
3365 | else | |
3366 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3367 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3368 | { (exit 1); exit 1; }; } | |
3369 | fi | |
3370 | ||
3371 | ||
3372 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3373 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
3374 | no_cache=0 | |
3375 | ||
3376 | # Check whether --with-zlib or --without-zlib was given. | |
3377 | if test "${with_zlib+set}" = set; then | |
3378 | withval="$with_zlib" | |
3379 | ||
3380 | if test "$withval" = yes; then | |
3381 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
3382 | elif test "$withval" = no; then | |
3383 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
3384 | elif test "$withval" = sys; then | |
3385 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
3386 | elif test "$withval" = builtin; then | |
3387 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
3388 | else | |
3389 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3390 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3391 | { (exit 1); exit 1; }; } | |
3392 | fi | |
3393 | ||
3394 | else | |
3395 | ||
3396 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
3397 | if test "x$LINE" != x ; then | |
3398 | eval "DEFAULT_$LINE" | |
3399 | else | |
3400 | no_cache=1 | |
3401 | fi | |
3402 | ||
3403 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
3404 | ||
3405 | fi; | |
3406 | ||
3407 | eval "$ac_cv_use_zlib" | |
3408 | if test "$no_cache" != 1; then | |
3409 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
3410 | fi | |
3411 | ||
3412 | if test "$wxUSE_ZLIB" = yes; then | |
3413 | echo "$as_me:$LINENO: result: yes" >&5 | |
3414 | echo "${ECHO_T}yes" >&6 | |
3415 | elif test "$wxUSE_ZLIB" = no; then | |
3416 | echo "$as_me:$LINENO: result: no" >&5 | |
3417 | echo "${ECHO_T}no" >&6 | |
3418 | elif test "$wxUSE_ZLIB" = sys; then | |
3419 | echo "$as_me:$LINENO: result: system version" >&5 | |
3420 | echo "${ECHO_T}system version" >&6 | |
3421 | elif test "$wxUSE_ZLIB" = builtin; then | |
3422 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3423 | echo "${ECHO_T}builtin version" >&6 | |
3424 | else | |
3425 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3426 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3427 | { (exit 1); exit 1; }; } | |
3428 | fi | |
3429 | ||
3430 | ||
3431 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3432 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
3433 | no_cache=0 | |
3434 | ||
3435 | # Check whether --with-odbc or --without-odbc was given. | |
3436 | if test "${with_odbc+set}" = set; then | |
3437 | withval="$with_odbc" | |
3438 | ||
3439 | if test "$withval" = yes; then | |
3440 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
3441 | elif test "$withval" = no; then | |
3442 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
3443 | elif test "$withval" = sys; then | |
3444 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3445 | elif test "$withval" = builtin; then | |
3446 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3447 | else | |
3448 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3449 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3450 | { (exit 1); exit 1; }; } | |
3451 | fi | |
3452 | ||
3453 | else | |
3454 | ||
3455 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
3456 | if test "x$LINE" != x ; then | |
3457 | eval "DEFAULT_$LINE" | |
3458 | else | |
3459 | no_cache=1 | |
3460 | fi | |
3461 | ||
3462 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
3463 | ||
3464 | fi; | |
3465 | ||
3466 | eval "$ac_cv_use_odbc" | |
3467 | if test "$no_cache" != 1; then | |
3468 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3469 | fi | |
3470 | ||
3471 | if test "$wxUSE_ODBC" = yes; then | |
3472 | echo "$as_me:$LINENO: result: yes" >&5 | |
3473 | echo "${ECHO_T}yes" >&6 | |
3474 | elif test "$wxUSE_ODBC" = no; then | |
3475 | echo "$as_me:$LINENO: result: no" >&5 | |
3476 | echo "${ECHO_T}no" >&6 | |
3477 | elif test "$wxUSE_ODBC" = sys; then | |
3478 | echo "$as_me:$LINENO: result: system version" >&5 | |
3479 | echo "${ECHO_T}system version" >&6 | |
3480 | elif test "$wxUSE_ODBC" = builtin; then | |
3481 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3482 | echo "${ECHO_T}builtin version" >&6 | |
3483 | else | |
3484 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3485 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3486 | { (exit 1); exit 1; }; } | |
3487 | fi | |
3488 | ||
3489 | ||
3490 | echo "$as_me:$LINENO: checking for --with-expat" >&5 | |
3491 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3492 | no_cache=0 | |
3493 | ||
3494 | # Check whether --with-expat or --without-expat was given. | |
3495 | if test "${with_expat+set}" = set; then | |
3496 | withval="$with_expat" | |
3497 | ||
3498 | if test "$withval" = yes; then | |
3499 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3500 | elif test "$withval" = no; then | |
3501 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3502 | elif test "$withval" = sys; then | |
3503 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3504 | elif test "$withval" = builtin; then | |
3505 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3506 | else | |
3507 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3508 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3509 | { (exit 1); exit 1; }; } | |
3510 | fi | |
3511 | ||
3512 | else | |
3513 | ||
3514 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3515 | if test "x$LINE" != x ; then | |
3516 | eval "DEFAULT_$LINE" | |
3517 | else | |
3518 | no_cache=1 | |
3519 | fi | |
3520 | ||
3521 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3522 | ||
3523 | fi; | |
3524 | ||
3525 | eval "$ac_cv_use_expat" | |
3526 | if test "$no_cache" != 1; then | |
3527 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3528 | fi | |
3529 | ||
3530 | if test "$wxUSE_EXPAT" = yes; then | |
3531 | echo "$as_me:$LINENO: result: yes" >&5 | |
3532 | echo "${ECHO_T}yes" >&6 | |
3533 | elif test "$wxUSE_EXPAT" = no; then | |
3534 | echo "$as_me:$LINENO: result: no" >&5 | |
3535 | echo "${ECHO_T}no" >&6 | |
3536 | elif test "$wxUSE_EXPAT" = sys; then | |
3537 | echo "$as_me:$LINENO: result: system version" >&5 | |
3538 | echo "${ECHO_T}system version" >&6 | |
3539 | elif test "$wxUSE_EXPAT" = builtin; then | |
3540 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3541 | echo "${ECHO_T}builtin version" >&6 | |
3542 | else | |
3543 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3544 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3545 | { (exit 1); exit 1; }; } | |
3546 | fi | |
3547 | ||
3548 | ||
3549 | ||
3550 | ||
3551 | enablestring= | |
3552 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 | |
3553 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
3554 | no_cache=0 | |
3555 | # Check whether --enable-shared or --disable-shared was given. | |
3556 | if test "${enable_shared+set}" = set; then | |
3557 | enableval="$enable_shared" | |
3558 | ||
3559 | if test "$enableval" = yes; then | |
3560 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3561 | else | |
3562 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3563 | fi | |
3564 | ||
3565 | else | |
3566 | ||
3567 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
3568 | if test "x$LINE" != x ; then | |
3569 | eval "DEFAULT_$LINE" | |
3570 | else | |
3571 | no_cache=1 | |
3572 | fi | |
3573 | ||
3574 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
3575 | ||
3576 | fi; | |
3577 | ||
3578 | eval "$ac_cv_use_shared" | |
3579 | if test "$no_cache" != 1; then | |
3580 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3581 | fi | |
3582 | ||
3583 | if test "$wxUSE_SHARED" = yes; then | |
3584 | echo "$as_me:$LINENO: result: yes" >&5 | |
3585 | echo "${ECHO_T}yes" >&6 | |
3586 | else | |
3587 | echo "$as_me:$LINENO: result: no" >&5 | |
3588 | echo "${ECHO_T}no" >&6 | |
3589 | fi | |
3590 | ||
3591 | ||
3592 | enablestring= | |
3593 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 | |
3594 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
3595 | no_cache=0 | |
3596 | # Check whether --enable-optimise or --disable-optimise was given. | |
3597 | if test "${enable_optimise+set}" = set; then | |
3598 | enableval="$enable_optimise" | |
3599 | ||
3600 | if test "$enableval" = yes; then | |
3601 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3602 | else | |
3603 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3604 | fi | |
3605 | ||
3606 | else | |
3607 | ||
3608 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` | |
3609 | if test "x$LINE" != x ; then | |
3610 | eval "DEFAULT_$LINE" | |
3611 | else | |
3612 | no_cache=1 | |
3613 | fi | |
3614 | ||
3615 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
3616 | ||
3617 | fi; | |
3618 | ||
3619 | eval "$ac_cv_use_optimise" | |
3620 | if test "$no_cache" != 1; then | |
3621 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3622 | fi | |
3623 | ||
3624 | if test "$wxUSE_OPTIMISE" = yes; then | |
3625 | echo "$as_me:$LINENO: result: yes" >&5 | |
3626 | echo "${ECHO_T}yes" >&6 | |
3627 | else | |
3628 | echo "$as_me:$LINENO: result: no" >&5 | |
3629 | echo "${ECHO_T}no" >&6 | |
3630 | fi | |
3631 | ||
3632 | ||
3633 | enablestring= | |
3634 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 | |
3635 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
3636 | no_cache=0 | |
3637 | # Check whether --enable-debug or --disable-debug was given. | |
3638 | if test "${enable_debug+set}" = set; then | |
3639 | enableval="$enable_debug" | |
3640 | ||
3641 | if test "$enableval" = yes; then | |
3642 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3643 | else | |
3644 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3645 | fi | |
3646 | ||
3647 | else | |
3648 | ||
3649 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` | |
3650 | if test "x$LINE" != x ; then | |
3651 | eval "DEFAULT_$LINE" | |
3652 | else | |
3653 | no_cache=1 | |
3654 | fi | |
3655 | ||
3656 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
3657 | ||
3658 | fi; | |
3659 | ||
3660 | eval "$ac_cv_use_debug" | |
3661 | if test "$no_cache" != 1; then | |
3662 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3663 | fi | |
3664 | ||
3665 | if test "$wxUSE_DEBUG" = yes; then | |
3666 | echo "$as_me:$LINENO: result: yes" >&5 | |
3667 | echo "${ECHO_T}yes" >&6 | |
3668 | else | |
3669 | echo "$as_me:$LINENO: result: no" >&5 | |
3670 | echo "${ECHO_T}no" >&6 | |
3671 | fi | |
3672 | ||
3673 | ||
3674 | enablestring= | |
3675 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3676 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3677 | no_cache=0 | |
3678 | # Check whether --enable-stl or --disable-stl was given. | |
3679 | if test "${enable_stl+set}" = set; then | |
3680 | enableval="$enable_stl" | |
3681 | ||
3682 | if test "$enableval" = yes; then | |
3683 | ac_cv_use_stl='wxUSE_STL=yes' | |
3684 | else | |
3685 | ac_cv_use_stl='wxUSE_STL=no' | |
3686 | fi | |
3687 | ||
3688 | else | |
3689 | ||
3690 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3691 | if test "x$LINE" != x ; then | |
3692 | eval "DEFAULT_$LINE" | |
3693 | else | |
3694 | no_cache=1 | |
3695 | fi | |
3696 | ||
3697 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3698 | ||
3699 | fi; | |
3700 | ||
3701 | eval "$ac_cv_use_stl" | |
3702 | if test "$no_cache" != 1; then | |
3703 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3704 | fi | |
3705 | ||
3706 | if test "$wxUSE_STL" = yes; then | |
3707 | echo "$as_me:$LINENO: result: yes" >&5 | |
3708 | echo "${ECHO_T}yes" >&6 | |
3709 | else | |
3710 | echo "$as_me:$LINENO: result: no" >&5 | |
3711 | echo "${ECHO_T}no" >&6 | |
3712 | fi | |
3713 | ||
3714 | if test "$USE_OS2" = "1"; then | |
69120ee4 | 3715 | DEFAULT_wxUSE_OMF=no |
a848cd7e SC |
3716 | |
3717 | enablestring= | |
3718 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5 | |
3719 | echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6 | |
3720 | no_cache=0 | |
3721 | # Check whether --enable-omf or --disable-omf was given. | |
3722 | if test "${enable_omf+set}" = set; then | |
3723 | enableval="$enable_omf" | |
3724 | ||
3725 | if test "$enableval" = yes; then | |
3726 | ac_cv_use_omf='wxUSE_OMF=yes' | |
3727 | else | |
3728 | ac_cv_use_omf='wxUSE_OMF=no' | |
3729 | fi | |
3730 | ||
3731 | else | |
3732 | ||
3733 | LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}` | |
3734 | if test "x$LINE" != x ; then | |
3735 | eval "DEFAULT_$LINE" | |
3736 | else | |
3737 | no_cache=1 | |
3738 | fi | |
3739 | ||
3740 | ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF | |
3741 | ||
3742 | fi; | |
3743 | ||
3744 | eval "$ac_cv_use_omf" | |
3745 | if test "$no_cache" != 1; then | |
3746 | echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp | |
3747 | fi | |
3748 | ||
3749 | if test "$wxUSE_OMF" = yes; then | |
3750 | echo "$as_me:$LINENO: result: yes" >&5 | |
3751 | echo "${ECHO_T}yes" >&6 | |
3752 | else | |
3753 | echo "$as_me:$LINENO: result: no" >&5 | |
3754 | echo "${ECHO_T}no" >&6 | |
3755 | fi | |
3756 | ||
3757 | fi | |
3758 | ||
3759 | if test "$wxUSE_DEBUG" = "yes"; then | |
3760 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3761 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
3762 | BUILD=debug | |
3763 | elif test "$wxUSE_DEBUG" = "no"; then | |
3764 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3765 | DEFAULT_wxUSE_DEBUG_INFO=no | |
3766 | BUILD=release | |
3767 | fi | |
3768 | ||
3769 | ||
3770 | enablestring= | |
3771 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 | |
3772 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
3773 | no_cache=0 | |
3774 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3775 | if test "${enable_debug_flag+set}" = set; then | |
3776 | enableval="$enable_debug_flag" | |
3777 | ||
3778 | if test "$enableval" = yes; then | |
3779 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3780 | else | |
3781 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3782 | fi | |
3783 | ||
3784 | else | |
3785 | ||
3786 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
3787 | if test "x$LINE" != x ; then | |
3788 | eval "DEFAULT_$LINE" | |
3789 | else | |
3790 | no_cache=1 | |
3791 | fi | |
3792 | ||
3793 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
3794 | ||
3795 | fi; | |
3796 | ||
3797 | eval "$ac_cv_use_debug_flag" | |
3798 | if test "$no_cache" != 1; then | |
3799 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3800 | fi | |
3801 | ||
3802 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
3803 | echo "$as_me:$LINENO: result: yes" >&5 | |
3804 | echo "${ECHO_T}yes" >&6 | |
3805 | else | |
3806 | echo "$as_me:$LINENO: result: no" >&5 | |
3807 | echo "${ECHO_T}no" >&6 | |
3808 | fi | |
3809 | ||
3810 | ||
3811 | enablestring= | |
3812 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 | |
3813 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
3814 | no_cache=0 | |
3815 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3816 | if test "${enable_debug_info+set}" = set; then | |
3817 | enableval="$enable_debug_info" | |
3818 | ||
3819 | if test "$enableval" = yes; then | |
3820 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3821 | else | |
3822 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3823 | fi | |
3824 | ||
3825 | else | |
3826 | ||
3827 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
3828 | if test "x$LINE" != x ; then | |
3829 | eval "DEFAULT_$LINE" | |
3830 | else | |
3831 | no_cache=1 | |
3832 | fi | |
3833 | ||
3834 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
3835 | ||
3836 | fi; | |
3837 | ||
3838 | eval "$ac_cv_use_debug_info" | |
3839 | if test "$no_cache" != 1; then | |
3840 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3841 | fi | |
3842 | ||
3843 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
3844 | echo "$as_me:$LINENO: result: yes" >&5 | |
3845 | echo "${ECHO_T}yes" >&6 | |
3846 | else | |
3847 | echo "$as_me:$LINENO: result: no" >&5 | |
3848 | echo "${ECHO_T}no" >&6 | |
3849 | fi | |
3850 | ||
3851 | ||
3852 | enablestring= | |
3853 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 | |
3854 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
3855 | no_cache=0 | |
3856 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3857 | if test "${enable_debug_gdb+set}" = set; then | |
3858 | enableval="$enable_debug_gdb" | |
3859 | ||
3860 | if test "$enableval" = yes; then | |
3861 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3862 | else | |
3863 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3864 | fi | |
3865 | ||
3866 | else | |
3867 | ||
3868 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
3869 | if test "x$LINE" != x ; then | |
3870 | eval "DEFAULT_$LINE" | |
3871 | else | |
3872 | no_cache=1 | |
3873 | fi | |
3874 | ||
3875 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
3876 | ||
3877 | fi; | |
3878 | ||
3879 | eval "$ac_cv_use_debug_gdb" | |
3880 | if test "$no_cache" != 1; then | |
3881 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3882 | fi | |
3883 | ||
3884 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
3885 | echo "$as_me:$LINENO: result: yes" >&5 | |
3886 | echo "${ECHO_T}yes" >&6 | |
3887 | else | |
3888 | echo "$as_me:$LINENO: result: no" >&5 | |
3889 | echo "${ECHO_T}no" >&6 | |
3890 | fi | |
3891 | ||
3892 | ||
3893 | enablestring= | |
3894 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 | |
3895 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
3896 | no_cache=0 | |
3897 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3898 | if test "${enable_debug_cntxt+set}" = set; then | |
3899 | enableval="$enable_debug_cntxt" | |
3900 | ||
3901 | if test "$enableval" = yes; then | |
3902 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3903 | else | |
3904 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3905 | fi | |
3906 | ||
3907 | else | |
3908 | ||
3909 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
3910 | if test "x$LINE" != x ; then | |
3911 | eval "DEFAULT_$LINE" | |
3912 | else | |
3913 | no_cache=1 | |
3914 | fi | |
3915 | ||
3916 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
3917 | ||
3918 | fi; | |
3919 | ||
3920 | eval "$ac_cv_use_debug_cntxt" | |
3921 | if test "$no_cache" != 1; then | |
3922 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3923 | fi | |
3924 | ||
3925 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
3926 | echo "$as_me:$LINENO: result: yes" >&5 | |
3927 | echo "${ECHO_T}yes" >&6 | |
3928 | else | |
3929 | echo "$as_me:$LINENO: result: no" >&5 | |
3930 | echo "${ECHO_T}no" >&6 | |
3931 | fi | |
3932 | ||
3933 | ||
3934 | enablestring= | |
3935 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 | |
3936 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
3937 | no_cache=0 | |
3938 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3939 | if test "${enable_mem_tracing+set}" = set; then | |
3940 | enableval="$enable_mem_tracing" | |
3941 | ||
3942 | if test "$enableval" = yes; then | |
3943 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3944 | else | |
3945 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3946 | fi | |
3947 | ||
3948 | else | |
3949 | ||
3950 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
3951 | if test "x$LINE" != x ; then | |
3952 | eval "DEFAULT_$LINE" | |
3953 | else | |
3954 | no_cache=1 | |
3955 | fi | |
3956 | ||
3957 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
3958 | ||
3959 | fi; | |
3960 | ||
3961 | eval "$ac_cv_use_mem_tracing" | |
3962 | if test "$no_cache" != 1; then | |
3963 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3964 | fi | |
3965 | ||
3966 | if test "$wxUSE_MEM_TRACING" = yes; then | |
3967 | echo "$as_me:$LINENO: result: yes" >&5 | |
3968 | echo "${ECHO_T}yes" >&6 | |
3969 | else | |
3970 | echo "$as_me:$LINENO: result: no" >&5 | |
3971 | echo "${ECHO_T}no" >&6 | |
3972 | fi | |
3973 | ||
3974 | ||
3975 | enablestring= | |
3976 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 | |
3977 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
3978 | no_cache=0 | |
3979 | # Check whether --enable-profile or --disable-profile was given. | |
3980 | if test "${enable_profile+set}" = set; then | |
3981 | enableval="$enable_profile" | |
3982 | ||
3983 | if test "$enableval" = yes; then | |
3984 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3985 | else | |
3986 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3987 | fi | |
3988 | ||
3989 | else | |
3990 | ||
3991 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
3992 | if test "x$LINE" != x ; then | |
3993 | eval "DEFAULT_$LINE" | |
3994 | else | |
3995 | no_cache=1 | |
3996 | fi | |
3997 | ||
3998 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
3999 | ||
4000 | fi; | |
4001 | ||
4002 | eval "$ac_cv_use_profile" | |
4003 | if test "$no_cache" != 1; then | |
4004 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
4005 | fi | |
4006 | ||
4007 | if test "$wxUSE_PROFILE" = yes; then | |
4008 | echo "$as_me:$LINENO: result: yes" >&5 | |
4009 | echo "${ECHO_T}yes" >&6 | |
4010 | else | |
4011 | echo "$as_me:$LINENO: result: no" >&5 | |
4012 | echo "${ECHO_T}no" >&6 | |
4013 | fi | |
4014 | ||
4015 | ||
4016 | enablestring= | |
4017 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 | |
4018 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
4019 | no_cache=0 | |
4020 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
4021 | if test "${enable_no_rtti+set}" = set; then | |
4022 | enableval="$enable_no_rtti" | |
4023 | ||
4024 | if test "$enableval" = yes; then | |
4025 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
4026 | else | |
4027 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
4028 | fi | |
4029 | ||
4030 | else | |
4031 | ||
4032 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
4033 | if test "x$LINE" != x ; then | |
4034 | eval "DEFAULT_$LINE" | |
4035 | else | |
4036 | no_cache=1 | |
4037 | fi | |
4038 | ||
4039 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
4040 | ||
4041 | fi; | |
4042 | ||
4043 | eval "$ac_cv_use_no_rtti" | |
4044 | if test "$no_cache" != 1; then | |
4045 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
4046 | fi | |
4047 | ||
4048 | if test "$wxUSE_NO_RTTI" = yes; then | |
4049 | echo "$as_me:$LINENO: result: yes" >&5 | |
4050 | echo "${ECHO_T}yes" >&6 | |
4051 | else | |
4052 | echo "$as_me:$LINENO: result: no" >&5 | |
4053 | echo "${ECHO_T}no" >&6 | |
4054 | fi | |
4055 | ||
4056 | ||
4057 | enablestring= | |
4058 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 | |
4059 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
4060 | no_cache=0 | |
4061 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
4062 | if test "${enable_no_exceptions+set}" = set; then | |
4063 | enableval="$enable_no_exceptions" | |
4064 | ||
4065 | if test "$enableval" = yes; then | |
4066 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
4067 | else | |
4068 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
4069 | fi | |
4070 | ||
4071 | else | |
4072 | ||
4073 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
4074 | if test "x$LINE" != x ; then | |
4075 | eval "DEFAULT_$LINE" | |
4076 | else | |
4077 | no_cache=1 | |
4078 | fi | |
4079 | ||
4080 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
4081 | ||
4082 | fi; | |
4083 | ||
4084 | eval "$ac_cv_use_no_exceptions" | |
4085 | if test "$no_cache" != 1; then | |
4086 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
4087 | fi | |
4088 | ||
4089 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
4090 | echo "$as_me:$LINENO: result: yes" >&5 | |
4091 | echo "${ECHO_T}yes" >&6 | |
4092 | else | |
4093 | echo "$as_me:$LINENO: result: no" >&5 | |
4094 | echo "${ECHO_T}no" >&6 | |
4095 | fi | |
4096 | ||
4097 | ||
4098 | enablestring= | |
4099 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 | |
4100 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
4101 | no_cache=0 | |
4102 | # Check whether --enable-permissive or --disable-permissive was given. | |
4103 | if test "${enable_permissive+set}" = set; then | |
4104 | enableval="$enable_permissive" | |
4105 | ||
4106 | if test "$enableval" = yes; then | |
4107 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
4108 | else | |
4109 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
4110 | fi | |
4111 | ||
4112 | else | |
4113 | ||
4114 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
4115 | if test "x$LINE" != x ; then | |
4116 | eval "DEFAULT_$LINE" | |
4117 | else | |
4118 | no_cache=1 | |
4119 | fi | |
4120 | ||
4121 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
4122 | ||
4123 | fi; | |
4124 | ||
4125 | eval "$ac_cv_use_permissive" | |
4126 | if test "$no_cache" != 1; then | |
4127 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
4128 | fi | |
4129 | ||
4130 | if test "$wxUSE_PERMISSIVE" = yes; then | |
4131 | echo "$as_me:$LINENO: result: yes" >&5 | |
4132 | echo "${ECHO_T}yes" >&6 | |
4133 | else | |
4134 | echo "$as_me:$LINENO: result: no" >&5 | |
4135 | echo "${ECHO_T}no" >&6 | |
4136 | fi | |
4137 | ||
4138 | ||
4139 | enablestring= | |
4140 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 | |
4141 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
4142 | no_cache=0 | |
4143 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
4144 | if test "${enable_no_deps+set}" = set; then | |
4145 | enableval="$enable_no_deps" | |
4146 | ||
4147 | if test "$enableval" = yes; then | |
4148 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
4149 | else | |
4150 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
4151 | fi | |
4152 | ||
4153 | else | |
4154 | ||
4155 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
4156 | if test "x$LINE" != x ; then | |
4157 | eval "DEFAULT_$LINE" | |
4158 | else | |
4159 | no_cache=1 | |
4160 | fi | |
4161 | ||
4162 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
4163 | ||
4164 | fi; | |
4165 | ||
4166 | eval "$ac_cv_use_no_deps" | |
4167 | if test "$no_cache" != 1; then | |
4168 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
4169 | fi | |
4170 | ||
4171 | if test "$wxUSE_NO_DEPS" = yes; then | |
4172 | echo "$as_me:$LINENO: result: yes" >&5 | |
4173 | echo "${ECHO_T}yes" >&6 | |
4174 | else | |
4175 | echo "$as_me:$LINENO: result: no" >&5 | |
4176 | echo "${ECHO_T}no" >&6 | |
4177 | fi | |
4178 | ||
4179 | ||
4180 | ||
dee1a63f MB |
4181 | enablestring=enable |
4182 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 | |
4183 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
a848cd7e | 4184 | no_cache=0 |
dee1a63f MB |
4185 | # Check whether --enable-compat24 or --disable-compat24 was given. |
4186 | if test "${enable_compat24+set}" = set; then | |
4187 | enableval="$enable_compat24" | |
a848cd7e SC |
4188 | |
4189 | if test "$enableval" = yes; then | |
dee1a63f | 4190 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' |
a848cd7e | 4191 | else |
dee1a63f | 4192 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' |
a848cd7e SC |
4193 | fi |
4194 | ||
4195 | else | |
4196 | ||
dee1a63f | 4197 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` |
a848cd7e SC |
4198 | if test "x$LINE" != x ; then |
4199 | eval "DEFAULT_$LINE" | |
4200 | else | |
4201 | no_cache=1 | |
4202 | fi | |
4203 | ||
dee1a63f | 4204 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 |
a848cd7e SC |
4205 | |
4206 | fi; | |
4207 | ||
dee1a63f | 4208 | eval "$ac_cv_use_compat24" |
a848cd7e | 4209 | if test "$no_cache" != 1; then |
dee1a63f | 4210 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
4211 | fi |
4212 | ||
dee1a63f | 4213 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then |
a848cd7e SC |
4214 | echo "$as_me:$LINENO: result: yes" >&5 |
4215 | echo "${ECHO_T}yes" >&6 | |
4216 | else | |
4217 | echo "$as_me:$LINENO: result: no" >&5 | |
4218 | echo "${ECHO_T}no" >&6 | |
4219 | fi | |
4220 | ||
4221 | ||
4222 | enablestring=disable | |
dee1a63f MB |
4223 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5 |
4224 | echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6 | |
a848cd7e | 4225 | no_cache=0 |
dee1a63f MB |
4226 | # Check whether --enable-compat26 or --disable-compat26 was given. |
4227 | if test "${enable_compat26+set}" = set; then | |
4228 | enableval="$enable_compat26" | |
a848cd7e SC |
4229 | |
4230 | if test "$enableval" = yes; then | |
dee1a63f | 4231 | ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes' |
a848cd7e | 4232 | else |
dee1a63f | 4233 | ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no' |
a848cd7e SC |
4234 | fi |
4235 | ||
4236 | else | |
4237 | ||
dee1a63f | 4238 | LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}` |
a848cd7e SC |
4239 | if test "x$LINE" != x ; then |
4240 | eval "DEFAULT_$LINE" | |
4241 | else | |
4242 | no_cache=1 | |
4243 | fi | |
4244 | ||
dee1a63f | 4245 | ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6 |
a848cd7e SC |
4246 | |
4247 | fi; | |
4248 | ||
dee1a63f | 4249 | eval "$ac_cv_use_compat26" |
a848cd7e | 4250 | if test "$no_cache" != 1; then |
dee1a63f | 4251 | echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
4252 | fi |
4253 | ||
dee1a63f | 4254 | if test "$WXWIN_COMPATIBILITY_2_6" = yes; then |
a848cd7e SC |
4255 | echo "$as_me:$LINENO: result: yes" >&5 |
4256 | echo "${ECHO_T}yes" >&6 | |
4257 | else | |
4258 | echo "$as_me:$LINENO: result: no" >&5 | |
4259 | echo "${ECHO_T}no" >&6 | |
4260 | fi | |
4261 | ||
4262 | ||
ffa0583f RL |
4263 | |
4264 | enablestring= | |
4265 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5 | |
4266 | echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6 | |
4267 | no_cache=0 | |
4268 | # Check whether --enable-rpath or --disable-rpath was given. | |
a848cd7e SC |
4269 | if test "${enable_rpath+set}" = set; then |
4270 | enableval="$enable_rpath" | |
ffa0583f RL |
4271 | |
4272 | if test "$enableval" = yes; then | |
4273 | ac_cv_use_rpath='wxUSE_RPATH=yes' | |
4274 | else | |
4275 | ac_cv_use_rpath='wxUSE_RPATH=no' | |
4276 | fi | |
4277 | ||
4278 | else | |
4279 | ||
4280 | LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}` | |
4281 | if test "x$LINE" != x ; then | |
4282 | eval "DEFAULT_$LINE" | |
4283 | else | |
4284 | no_cache=1 | |
4285 | fi | |
4286 | ||
4287 | ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH | |
4288 | ||
a848cd7e SC |
4289 | fi; |
4290 | ||
ffa0583f RL |
4291 | eval "$ac_cv_use_rpath" |
4292 | if test "$no_cache" != 1; then | |
4293 | echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp | |
4294 | fi | |
4295 | ||
4296 | if test "$wxUSE_RPATH" = yes; then | |
4297 | echo "$as_me:$LINENO: result: yes" >&5 | |
4298 | echo "${ECHO_T}yes" >&6 | |
4299 | else | |
4300 | echo "$as_me:$LINENO: result: no" >&5 | |
4301 | echo "${ECHO_T}no" >&6 | |
4302 | fi | |
4303 | ||
a848cd7e SC |
4304 | |
4305 | ||
4306 | ||
4307 | ||
4308 | enablestring= | |
4309 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 | |
4310 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
4311 | no_cache=0 | |
4312 | # Check whether --enable-intl or --disable-intl was given. | |
4313 | if test "${enable_intl+set}" = set; then | |
4314 | enableval="$enable_intl" | |
4315 | ||
4316 | if test "$enableval" = yes; then | |
4317 | ac_cv_use_intl='wxUSE_INTL=yes' | |
4318 | else | |
4319 | ac_cv_use_intl='wxUSE_INTL=no' | |
4320 | fi | |
4321 | ||
4322 | else | |
4323 | ||
4324 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
4325 | if test "x$LINE" != x ; then | |
4326 | eval "DEFAULT_$LINE" | |
4327 | else | |
4328 | no_cache=1 | |
4329 | fi | |
4330 | ||
4331 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
4332 | ||
4333 | fi; | |
4334 | ||
4335 | eval "$ac_cv_use_intl" | |
4336 | if test "$no_cache" != 1; then | |
4337 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
4338 | fi | |
4339 | ||
4340 | if test "$wxUSE_INTL" = yes; then | |
4341 | echo "$as_me:$LINENO: result: yes" >&5 | |
4342 | echo "${ECHO_T}yes" >&6 | |
4343 | else | |
4344 | echo "$as_me:$LINENO: result: no" >&5 | |
4345 | echo "${ECHO_T}no" >&6 | |
4346 | fi | |
4347 | ||
4348 | ||
4349 | enablestring= | |
4350 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 | |
4351 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
4352 | no_cache=0 | |
4353 | # Check whether --enable-config or --disable-config was given. | |
4354 | if test "${enable_config+set}" = set; then | |
4355 | enableval="$enable_config" | |
4356 | ||
4357 | if test "$enableval" = yes; then | |
4358 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
4359 | else | |
4360 | ac_cv_use_config='wxUSE_CONFIG=no' | |
4361 | fi | |
4362 | ||
4363 | else | |
4364 | ||
4365 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
4366 | if test "x$LINE" != x ; then | |
4367 | eval "DEFAULT_$LINE" | |
4368 | else | |
4369 | no_cache=1 | |
4370 | fi | |
4371 | ||
4372 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
4373 | ||
4374 | fi; | |
4375 | ||
4376 | eval "$ac_cv_use_config" | |
4377 | if test "$no_cache" != 1; then | |
4378 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
4379 | fi | |
4380 | ||
4381 | if test "$wxUSE_CONFIG" = yes; then | |
4382 | echo "$as_me:$LINENO: result: yes" >&5 | |
4383 | echo "${ECHO_T}yes" >&6 | |
4384 | else | |
4385 | echo "$as_me:$LINENO: result: no" >&5 | |
4386 | echo "${ECHO_T}no" >&6 | |
4387 | fi | |
4388 | ||
4389 | ||
4390 | ||
4391 | enablestring= | |
4392 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 | |
4393 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
4394 | no_cache=0 | |
4395 | # Check whether --enable-protocols or --disable-protocols was given. | |
4396 | if test "${enable_protocols+set}" = set; then | |
4397 | enableval="$enable_protocols" | |
4398 | ||
4399 | if test "$enableval" = yes; then | |
4400 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
4401 | else | |
4402 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
4403 | fi | |
4404 | ||
4405 | else | |
4406 | ||
4407 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4408 | if test "x$LINE" != x ; then | |
4409 | eval "DEFAULT_$LINE" | |
4410 | else | |
4411 | no_cache=1 | |
4412 | fi | |
4413 | ||
4414 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4415 | ||
4416 | fi; | |
4417 | ||
4418 | eval "$ac_cv_use_protocols" | |
4419 | if test "$no_cache" != 1; then | |
4420 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4421 | fi | |
4422 | ||
4423 | if test "$wxUSE_PROTOCOL" = yes; then | |
4424 | echo "$as_me:$LINENO: result: yes" >&5 | |
4425 | echo "${ECHO_T}yes" >&6 | |
4426 | else | |
4427 | echo "$as_me:$LINENO: result: no" >&5 | |
4428 | echo "${ECHO_T}no" >&6 | |
4429 | fi | |
4430 | ||
4431 | ||
4432 | enablestring= | |
4433 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 | |
4434 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
4435 | no_cache=0 | |
4436 | # Check whether --enable-ftp or --disable-ftp was given. | |
4437 | if test "${enable_ftp+set}" = set; then | |
4438 | enableval="$enable_ftp" | |
4439 | ||
4440 | if test "$enableval" = yes; then | |
4441 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4442 | else | |
4443 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4444 | fi | |
4445 | ||
4446 | else | |
4447 | ||
4448 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4449 | if test "x$LINE" != x ; then | |
4450 | eval "DEFAULT_$LINE" | |
4451 | else | |
4452 | no_cache=1 | |
4453 | fi | |
4454 | ||
4455 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4456 | ||
4457 | fi; | |
4458 | ||
4459 | eval "$ac_cv_use_ftp" | |
4460 | if test "$no_cache" != 1; then | |
4461 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4462 | fi | |
4463 | ||
4464 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4465 | echo "$as_me:$LINENO: result: yes" >&5 | |
4466 | echo "${ECHO_T}yes" >&6 | |
4467 | else | |
4468 | echo "$as_me:$LINENO: result: no" >&5 | |
4469 | echo "${ECHO_T}no" >&6 | |
4470 | fi | |
4471 | ||
4472 | ||
4473 | enablestring= | |
4474 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 | |
4475 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
4476 | no_cache=0 | |
4477 | # Check whether --enable-http or --disable-http was given. | |
4478 | if test "${enable_http+set}" = set; then | |
4479 | enableval="$enable_http" | |
4480 | ||
4481 | if test "$enableval" = yes; then | |
4482 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4483 | else | |
4484 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4485 | fi | |
4486 | ||
4487 | else | |
4488 | ||
4489 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4490 | if test "x$LINE" != x ; then | |
4491 | eval "DEFAULT_$LINE" | |
4492 | else | |
4493 | no_cache=1 | |
4494 | fi | |
4495 | ||
4496 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4497 | ||
4498 | fi; | |
4499 | ||
4500 | eval "$ac_cv_use_http" | |
4501 | if test "$no_cache" != 1; then | |
4502 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4503 | fi | |
4504 | ||
4505 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4506 | echo "$as_me:$LINENO: result: yes" >&5 | |
4507 | echo "${ECHO_T}yes" >&6 | |
4508 | else | |
4509 | echo "$as_me:$LINENO: result: no" >&5 | |
4510 | echo "${ECHO_T}no" >&6 | |
4511 | fi | |
4512 | ||
4513 | ||
4514 | enablestring= | |
4515 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 | |
4516 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
4517 | no_cache=0 | |
4518 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4519 | if test "${enable_fileproto+set}" = set; then | |
4520 | enableval="$enable_fileproto" | |
4521 | ||
4522 | if test "$enableval" = yes; then | |
4523 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4524 | else | |
4525 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4526 | fi | |
4527 | ||
4528 | else | |
4529 | ||
4530 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4531 | if test "x$LINE" != x ; then | |
4532 | eval "DEFAULT_$LINE" | |
4533 | else | |
4534 | no_cache=1 | |
4535 | fi | |
4536 | ||
4537 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4538 | ||
4539 | fi; | |
4540 | ||
4541 | eval "$ac_cv_use_fileproto" | |
4542 | if test "$no_cache" != 1; then | |
4543 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4544 | fi | |
4545 | ||
4546 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4547 | echo "$as_me:$LINENO: result: yes" >&5 | |
4548 | echo "${ECHO_T}yes" >&6 | |
4549 | else | |
4550 | echo "$as_me:$LINENO: result: no" >&5 | |
4551 | echo "${ECHO_T}no" >&6 | |
4552 | fi | |
4553 | ||
4554 | ||
4555 | enablestring= | |
4556 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 | |
4557 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
4558 | no_cache=0 | |
4559 | # Check whether --enable-sockets or --disable-sockets was given. | |
4560 | if test "${enable_sockets+set}" = set; then | |
4561 | enableval="$enable_sockets" | |
4562 | ||
4563 | if test "$enableval" = yes; then | |
4564 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4565 | else | |
4566 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4567 | fi | |
4568 | ||
4569 | else | |
4570 | ||
4571 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
4572 | if test "x$LINE" != x ; then | |
4573 | eval "DEFAULT_$LINE" | |
4574 | else | |
4575 | no_cache=1 | |
4576 | fi | |
4577 | ||
4578 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
4579 | ||
4580 | fi; | |
4581 | ||
4582 | eval "$ac_cv_use_sockets" | |
4583 | if test "$no_cache" != 1; then | |
4584 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4585 | fi | |
4586 | ||
4587 | if test "$wxUSE_SOCKETS" = yes; then | |
4588 | echo "$as_me:$LINENO: result: yes" >&5 | |
4589 | echo "${ECHO_T}yes" >&6 | |
4590 | else | |
4591 | echo "$as_me:$LINENO: result: no" >&5 | |
4592 | echo "${ECHO_T}no" >&6 | |
4593 | fi | |
4594 | ||
4595 | ||
4596 | enablestring= | |
4597 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 | |
4598 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
4599 | no_cache=0 | |
4600 | # Check whether --enable-ole or --disable-ole was given. | |
4601 | if test "${enable_ole+set}" = set; then | |
4602 | enableval="$enable_ole" | |
4603 | ||
4604 | if test "$enableval" = yes; then | |
4605 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4606 | else | |
4607 | ac_cv_use_ole='wxUSE_OLE=no' | |
4608 | fi | |
4609 | ||
4610 | else | |
4611 | ||
4612 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
4613 | if test "x$LINE" != x ; then | |
4614 | eval "DEFAULT_$LINE" | |
4615 | else | |
4616 | no_cache=1 | |
4617 | fi | |
4618 | ||
4619 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
4620 | ||
4621 | fi; | |
4622 | ||
4623 | eval "$ac_cv_use_ole" | |
4624 | if test "$no_cache" != 1; then | |
4625 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4626 | fi | |
4627 | ||
4628 | if test "$wxUSE_OLE" = yes; then | |
4629 | echo "$as_me:$LINENO: result: yes" >&5 | |
4630 | echo "${ECHO_T}yes" >&6 | |
4631 | else | |
4632 | echo "$as_me:$LINENO: result: no" >&5 | |
4633 | echo "${ECHO_T}no" >&6 | |
4634 | fi | |
4635 | ||
4636 | ||
4637 | enablestring= | |
4638 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 | |
4639 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
4640 | no_cache=0 | |
4641 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4642 | if test "${enable_dataobj+set}" = set; then | |
4643 | enableval="$enable_dataobj" | |
4644 | ||
4645 | if test "$enableval" = yes; then | |
4646 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4647 | else | |
4648 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4649 | fi | |
4650 | ||
4651 | else | |
4652 | ||
4653 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
4654 | if test "x$LINE" != x ; then | |
4655 | eval "DEFAULT_$LINE" | |
4656 | else | |
4657 | no_cache=1 | |
4658 | fi | |
4659 | ||
4660 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
4661 | ||
4662 | fi; | |
4663 | ||
4664 | eval "$ac_cv_use_dataobj" | |
4665 | if test "$no_cache" != 1; then | |
4666 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4667 | fi | |
4668 | ||
4669 | if test "$wxUSE_DATAOBJ" = yes; then | |
4670 | echo "$as_me:$LINENO: result: yes" >&5 | |
4671 | echo "${ECHO_T}yes" >&6 | |
4672 | else | |
4673 | echo "$as_me:$LINENO: result: no" >&5 | |
4674 | echo "${ECHO_T}no" >&6 | |
4675 | fi | |
4676 | ||
4677 | ||
4678 | ||
4679 | enablestring= | |
4680 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 | |
4681 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
4682 | no_cache=0 | |
4683 | # Check whether --enable-ipc or --disable-ipc was given. | |
4684 | if test "${enable_ipc+set}" = set; then | |
4685 | enableval="$enable_ipc" | |
4686 | ||
4687 | if test "$enableval" = yes; then | |
4688 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
4689 | else | |
4690 | ac_cv_use_ipc='wxUSE_IPC=no' | |
4691 | fi | |
4692 | ||
4693 | else | |
4694 | ||
4695 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
4696 | if test "x$LINE" != x ; then | |
4697 | eval "DEFAULT_$LINE" | |
4698 | else | |
4699 | no_cache=1 | |
4700 | fi | |
4701 | ||
4702 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
4703 | ||
4704 | fi; | |
4705 | ||
4706 | eval "$ac_cv_use_ipc" | |
4707 | if test "$no_cache" != 1; then | |
4708 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
4709 | fi | |
4710 | ||
4711 | if test "$wxUSE_IPC" = yes; then | |
4712 | echo "$as_me:$LINENO: result: yes" >&5 | |
4713 | echo "${ECHO_T}yes" >&6 | |
4714 | else | |
4715 | echo "$as_me:$LINENO: result: no" >&5 | |
4716 | echo "${ECHO_T}no" >&6 | |
4717 | fi | |
4718 | ||
4719 | ||
4720 | ||
4721 | enablestring= | |
4722 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 | |
4723 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
4724 | no_cache=0 | |
4725 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4726 | if test "${enable_apple_ieee+set}" = set; then | |
4727 | enableval="$enable_apple_ieee" | |
4728 | ||
4729 | if test "$enableval" = yes; then | |
4730 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4731 | else | |
4732 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4733 | fi | |
4734 | ||
4735 | else | |
4736 | ||
4737 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
4738 | if test "x$LINE" != x ; then | |
4739 | eval "DEFAULT_$LINE" | |
4740 | else | |
4741 | no_cache=1 | |
4742 | fi | |
4743 | ||
4744 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
4745 | ||
4746 | fi; | |
4747 | ||
4748 | eval "$ac_cv_use_apple_ieee" | |
4749 | if test "$no_cache" != 1; then | |
4750 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4751 | fi | |
4752 | ||
4753 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
4754 | echo "$as_me:$LINENO: result: yes" >&5 | |
4755 | echo "${ECHO_T}yes" >&6 | |
4756 | else | |
4757 | echo "$as_me:$LINENO: result: no" >&5 | |
4758 | echo "${ECHO_T}no" >&6 | |
4759 | fi | |
4760 | ||
4761 | ||
81f90336 MW |
4762 | enablestring= |
4763 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5 | |
4764 | echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6 | |
4765 | no_cache=0 | |
4766 | # Check whether --enable-arcstream or --disable-arcstream was given. | |
4767 | if test "${enable_arcstream+set}" = set; then | |
4768 | enableval="$enable_arcstream" | |
4769 | ||
4770 | if test "$enableval" = yes; then | |
9e8e867f | 4771 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes' |
81f90336 | 4772 | else |
9e8e867f | 4773 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no' |
81f90336 MW |
4774 | fi |
4775 | ||
4776 | else | |
4777 | ||
9e8e867f | 4778 | LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}` |
81f90336 MW |
4779 | if test "x$LINE" != x ; then |
4780 | eval "DEFAULT_$LINE" | |
4781 | else | |
4782 | no_cache=1 | |
4783 | fi | |
4784 | ||
9e8e867f | 4785 | ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS |
81f90336 MW |
4786 | |
4787 | fi; | |
4788 | ||
4789 | eval "$ac_cv_use_arcstream" | |
4790 | if test "$no_cache" != 1; then | |
4791 | echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp | |
4792 | fi | |
4793 | ||
9e8e867f | 4794 | if test "$wxUSE_ARCHIVE_STREAMS" = yes; then |
81f90336 MW |
4795 | echo "$as_me:$LINENO: result: yes" >&5 |
4796 | echo "${ECHO_T}yes" >&6 | |
4797 | else | |
4798 | echo "$as_me:$LINENO: result: no" >&5 | |
4799 | echo "${ECHO_T}no" >&6 | |
4800 | fi | |
4801 | ||
4802 | ||
a848cd7e | 4803 | enablestring= |
36b6448c VZ |
4804 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5 |
4805 | echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6 | |
a848cd7e | 4806 | no_cache=0 |
36b6448c VZ |
4807 | # Check whether --enable-backtrace or --disable-backtrace was given. |
4808 | if test "${enable_backtrace+set}" = set; then | |
4809 | enableval="$enable_backtrace" | |
a848cd7e SC |
4810 | |
4811 | if test "$enableval" = yes; then | |
36b6448c | 4812 | ac_cv_use_backtrace='wxUSE_STACKWALKER=yes' |
a848cd7e | 4813 | else |
36b6448c | 4814 | ac_cv_use_backtrace='wxUSE_STACKWALKER=no' |
a848cd7e SC |
4815 | fi |
4816 | ||
4817 | else | |
4818 | ||
36b6448c | 4819 | LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}` |
a848cd7e SC |
4820 | if test "x$LINE" != x ; then |
4821 | eval "DEFAULT_$LINE" | |
4822 | else | |
4823 | no_cache=1 | |
4824 | fi | |
4825 | ||
36b6448c | 4826 | ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER |
a848cd7e SC |
4827 | |
4828 | fi; | |
4829 | ||
36b6448c | 4830 | eval "$ac_cv_use_backtrace" |
a848cd7e | 4831 | if test "$no_cache" != 1; then |
36b6448c | 4832 | echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
4833 | fi |
4834 | ||
36b6448c | 4835 | if test "$wxUSE_STACKWALKER" = yes; then |
a848cd7e SC |
4836 | echo "$as_me:$LINENO: result: yes" >&5 |
4837 | echo "${ECHO_T}yes" >&6 | |
4838 | else | |
4839 | echo "$as_me:$LINENO: result: no" >&5 | |
4840 | echo "${ECHO_T}no" >&6 | |
4841 | fi | |
4842 | ||
4843 | ||
eaff0f0d | 4844 | enablestring= |
36b6448c VZ |
4845 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 |
4846 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
eaff0f0d | 4847 | no_cache=0 |
36b6448c VZ |
4848 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. |
4849 | if test "${enable_catch_segvs+set}" = set; then | |
4850 | enableval="$enable_catch_segvs" | |
eaff0f0d VZ |
4851 | |
4852 | if test "$enableval" = yes; then | |
36b6448c | 4853 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' |
eaff0f0d | 4854 | else |
36b6448c | 4855 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' |
eaff0f0d VZ |
4856 | fi |
4857 | ||
4858 | else | |
4859 | ||
36b6448c | 4860 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
eaff0f0d VZ |
4861 | if test "x$LINE" != x ; then |
4862 | eval "DEFAULT_$LINE" | |
4863 | else | |
4864 | no_cache=1 | |
4865 | fi | |
4866 | ||
36b6448c | 4867 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION |
eaff0f0d VZ |
4868 | |
4869 | fi; | |
4870 | ||
36b6448c | 4871 | eval "$ac_cv_use_catch_segvs" |
eaff0f0d | 4872 | if test "$no_cache" != 1; then |
36b6448c | 4873 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp |
eaff0f0d VZ |
4874 | fi |
4875 | ||
36b6448c | 4876 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then |
eaff0f0d VZ |
4877 | echo "$as_me:$LINENO: result: yes" >&5 |
4878 | echo "${ECHO_T}yes" >&6 | |
4879 | else | |
4880 | echo "$as_me:$LINENO: result: no" >&5 | |
4881 | echo "${ECHO_T}no" >&6 | |
4882 | fi | |
4883 | ||
4884 | ||
a848cd7e SC |
4885 | enablestring= |
4886 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 | |
4887 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
4888 | no_cache=0 | |
4889 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
4890 | if test "${enable_cmdline+set}" = set; then | |
4891 | enableval="$enable_cmdline" | |
4892 | ||
4893 | if test "$enableval" = yes; then | |
4894 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
4895 | else | |
4896 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
4897 | fi | |
4898 | ||
4899 | else | |
4900 | ||
4901 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
4902 | if test "x$LINE" != x ; then | |
4903 | eval "DEFAULT_$LINE" | |
4904 | else | |
4905 | no_cache=1 | |
4906 | fi | |
4907 | ||
4908 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
4909 | ||
4910 | fi; | |
4911 | ||
4912 | eval "$ac_cv_use_cmdline" | |
4913 | if test "$no_cache" != 1; then | |
4914 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
4915 | fi | |
4916 | ||
4917 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
4918 | echo "$as_me:$LINENO: result: yes" >&5 | |
4919 | echo "${ECHO_T}yes" >&6 | |
4920 | else | |
4921 | echo "$as_me:$LINENO: result: no" >&5 | |
4922 | echo "${ECHO_T}no" >&6 | |
4923 | fi | |
4924 | ||
4925 | ||
4926 | enablestring= | |
4927 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 | |
4928 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
4929 | no_cache=0 | |
4930 | # Check whether --enable-datetime or --disable-datetime was given. | |
4931 | if test "${enable_datetime+set}" = set; then | |
4932 | enableval="$enable_datetime" | |
4933 | ||
4934 | if test "$enableval" = yes; then | |
4935 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
4936 | else | |
4937 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
4938 | fi | |
4939 | ||
4940 | else | |
4941 | ||
4942 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
4943 | if test "x$LINE" != x ; then | |
4944 | eval "DEFAULT_$LINE" | |
4945 | else | |
4946 | no_cache=1 | |
4947 | fi | |
4948 | ||
4949 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
4950 | ||
4951 | fi; | |
4952 | ||
4953 | eval "$ac_cv_use_datetime" | |
4954 | if test "$no_cache" != 1; then | |
4955 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
4956 | fi | |
4957 | ||
4958 | if test "$wxUSE_DATETIME" = yes; then | |
4959 | echo "$as_me:$LINENO: result: yes" >&5 | |
4960 | echo "${ECHO_T}yes" >&6 | |
4961 | else | |
4962 | echo "$as_me:$LINENO: result: no" >&5 | |
4963 | echo "${ECHO_T}no" >&6 | |
4964 | fi | |
4965 | ||
4966 | ||
36b6448c VZ |
4967 | enablestring= |
4968 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5 | |
4969 | echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6 | |
4970 | no_cache=0 | |
4971 | # Check whether --enable-debugreport or --disable-debugreport was given. | |
4972 | if test "${enable_debugreport+set}" = set; then | |
4973 | enableval="$enable_debugreport" | |
4974 | ||
4975 | if test "$enableval" = yes; then | |
4976 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes' | |
4977 | else | |
4978 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no' | |
4979 | fi | |
4980 | ||
4981 | else | |
4982 | ||
4983 | LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}` | |
4984 | if test "x$LINE" != x ; then | |
4985 | eval "DEFAULT_$LINE" | |
4986 | else | |
4987 | no_cache=1 | |
4988 | fi | |
4989 | ||
4990 | ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT | |
4991 | ||
4992 | fi; | |
4993 | ||
4994 | eval "$ac_cv_use_debugreport" | |
4995 | if test "$no_cache" != 1; then | |
4996 | echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp | |
4997 | fi | |
4998 | ||
4999 | if test "$wxUSE_DEBUGREPORT" = yes; then | |
5000 | echo "$as_me:$LINENO: result: yes" >&5 | |
5001 | echo "${ECHO_T}yes" >&6 | |
5002 | else | |
5003 | echo "$as_me:$LINENO: result: no" >&5 | |
5004 | echo "${ECHO_T}no" >&6 | |
5005 | fi | |
5006 | ||
5007 | ||
a848cd7e SC |
5008 | enablestring= |
5009 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 | |
5010 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
5011 | no_cache=0 | |
5012 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
5013 | if test "${enable_dialupman+set}" = set; then | |
5014 | enableval="$enable_dialupman" | |
5015 | ||
5016 | if test "$enableval" = yes; then | |
5017 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
5018 | else | |
5019 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
5020 | fi | |
5021 | ||
5022 | else | |
5023 | ||
5024 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
5025 | if test "x$LINE" != x ; then | |
5026 | eval "DEFAULT_$LINE" | |
5027 | else | |
5028 | no_cache=1 | |
5029 | fi | |
5030 | ||
5031 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
5032 | ||
5033 | fi; | |
5034 | ||
5035 | eval "$ac_cv_use_dialupman" | |
5036 | if test "$no_cache" != 1; then | |
5037 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
5038 | fi | |
5039 | ||
5040 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
5041 | echo "$as_me:$LINENO: result: yes" >&5 | |
5042 | echo "${ECHO_T}yes" >&6 | |
5043 | else | |
5044 | echo "$as_me:$LINENO: result: no" >&5 | |
5045 | echo "${ECHO_T}no" >&6 | |
5046 | fi | |
5047 | ||
5048 | ||
5049 | enablestring= | |
5050 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 | |
5051 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
5052 | no_cache=0 | |
5053 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
5054 | if test "${enable_dynlib+set}" = set; then | |
5055 | enableval="$enable_dynlib" | |
5056 | ||
5057 | if test "$enableval" = yes; then | |
5058 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
5059 | else | |
5060 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
5061 | fi | |
5062 | ||
5063 | else | |
5064 | ||
5065 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
5066 | if test "x$LINE" != x ; then | |
5067 | eval "DEFAULT_$LINE" | |
5068 | else | |
5069 | no_cache=1 | |
5070 | fi | |
5071 | ||
5072 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
5073 | ||
5074 | fi; | |
5075 | ||
5076 | eval "$ac_cv_use_dynlib" | |
5077 | if test "$no_cache" != 1; then | |
5078 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
5079 | fi | |
5080 | ||
5081 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
5082 | echo "$as_me:$LINENO: result: yes" >&5 | |
5083 | echo "${ECHO_T}yes" >&6 | |
5084 | else | |
5085 | echo "$as_me:$LINENO: result: no" >&5 | |
5086 | echo "${ECHO_T}no" >&6 | |
5087 | fi | |
5088 | ||
5089 | ||
5090 | enablestring= | |
5091 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 | |
5092 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
5093 | no_cache=0 | |
5094 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
5095 | if test "${enable_dynamicloader+set}" = set; then | |
5096 | enableval="$enable_dynamicloader" | |
5097 | ||
5098 | if test "$enableval" = yes; then | |
5099 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
5100 | else | |
5101 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
5102 | fi | |
5103 | ||
5104 | else | |
5105 | ||
5106 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
5107 | if test "x$LINE" != x ; then | |
5108 | eval "DEFAULT_$LINE" | |
5109 | else | |
5110 | no_cache=1 | |
5111 | fi | |
5112 | ||
5113 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
5114 | ||
5115 | fi; | |
5116 | ||
5117 | eval "$ac_cv_use_dynamicloader" | |
5118 | if test "$no_cache" != 1; then | |
5119 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
5120 | fi | |
5121 | ||
5122 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
5123 | echo "$as_me:$LINENO: result: yes" >&5 | |
5124 | echo "${ECHO_T}yes" >&6 | |
5125 | else | |
5126 | echo "$as_me:$LINENO: result: no" >&5 | |
5127 | echo "${ECHO_T}no" >&6 | |
5128 | fi | |
5129 | ||
5130 | ||
5131 | enablestring= | |
5132 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 | |
5133 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
5134 | no_cache=0 | |
5135 | # Check whether --enable-exceptions or --disable-exceptions was given. | |
5136 | if test "${enable_exceptions+set}" = set; then | |
5137 | enableval="$enable_exceptions" | |
5138 | ||
5139 | if test "$enableval" = yes; then | |
5140 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' | |
5141 | else | |
5142 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' | |
5143 | fi | |
5144 | ||
5145 | else | |
5146 | ||
5147 | LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}` | |
5148 | if test "x$LINE" != x ; then | |
5149 | eval "DEFAULT_$LINE" | |
5150 | else | |
5151 | no_cache=1 | |
5152 | fi | |
5153 | ||
5154 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS | |
5155 | ||
5156 | fi; | |
5157 | ||
5158 | eval "$ac_cv_use_exceptions" | |
5159 | if test "$no_cache" != 1; then | |
5160 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp | |
5161 | fi | |
5162 | ||
5163 | if test "$wxUSE_EXCEPTIONS" = yes; then | |
5164 | echo "$as_me:$LINENO: result: yes" >&5 | |
5165 | echo "${ECHO_T}yes" >&6 | |
5166 | else | |
5167 | echo "$as_me:$LINENO: result: no" >&5 | |
5168 | echo "${ECHO_T}no" >&6 | |
5169 | fi | |
5170 | ||
5171 | ||
5172 | enablestring= | |
5173 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 | |
5174 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
5175 | no_cache=0 | |
5176 | # Check whether --enable-ffile or --disable-ffile was given. | |
5177 | if test "${enable_ffile+set}" = set; then | |
5178 | enableval="$enable_ffile" | |
5179 | ||
5180 | if test "$enableval" = yes; then | |
5181 | ac_cv_use_ffile='wxUSE_FFILE=yes' | |
5182 | else | |
5183 | ac_cv_use_ffile='wxUSE_FFILE=no' | |
5184 | fi | |
5185 | ||
5186 | else | |
5187 | ||
5188 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` | |
5189 | if test "x$LINE" != x ; then | |
5190 | eval "DEFAULT_$LINE" | |
5191 | else | |
5192 | no_cache=1 | |
5193 | fi | |
5194 | ||
5195 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE | |
5196 | ||
5197 | fi; | |
5198 | ||
5199 | eval "$ac_cv_use_ffile" | |
5200 | if test "$no_cache" != 1; then | |
5201 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp | |
5202 | fi | |
5203 | ||
5204 | if test "$wxUSE_FFILE" = yes; then | |
5205 | echo "$as_me:$LINENO: result: yes" >&5 | |
5206 | echo "${ECHO_T}yes" >&6 | |
5207 | else | |
5208 | echo "$as_me:$LINENO: result: no" >&5 | |
5209 | echo "${ECHO_T}no" >&6 | |
5210 | fi | |
5211 | ||
5212 | ||
5213 | enablestring= | |
5214 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 | |
5215 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
5216 | no_cache=0 | |
5217 | # Check whether --enable-file or --disable-file was given. | |
5218 | if test "${enable_file+set}" = set; then | |
5219 | enableval="$enable_file" | |
5220 | ||
5221 | if test "$enableval" = yes; then | |
5222 | ac_cv_use_file='wxUSE_FILE=yes' | |
5223 | else | |
5224 | ac_cv_use_file='wxUSE_FILE=no' | |
5225 | fi | |
5226 | ||
5227 | else | |
5228 | ||
5229 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
5230 | if test "x$LINE" != x ; then | |
5231 | eval "DEFAULT_$LINE" | |
5232 | else | |
5233 | no_cache=1 | |
5234 | fi | |
5235 | ||
5236 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
5237 | ||
5238 | fi; | |
5239 | ||
5240 | eval "$ac_cv_use_file" | |
5241 | if test "$no_cache" != 1; then | |
5242 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
5243 | fi | |
5244 | ||
5245 | if test "$wxUSE_FILE" = yes; then | |
5246 | echo "$as_me:$LINENO: result: yes" >&5 | |
5247 | echo "${ECHO_T}yes" >&6 | |
5248 | else | |
5249 | echo "$as_me:$LINENO: result: no" >&5 | |
5250 | echo "${ECHO_T}no" >&6 | |
5251 | fi | |
5252 | ||
5253 | ||
5254 | enablestring= | |
5255 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 | |
5256 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
5257 | no_cache=0 | |
5258 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
5259 | if test "${enable_filesystem+set}" = set; then | |
5260 | enableval="$enable_filesystem" | |
5261 | ||
5262 | if test "$enableval" = yes; then | |
5263 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
5264 | else | |
5265 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
5266 | fi | |
5267 | ||
5268 | else | |
5269 | ||
5270 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
5271 | if test "x$LINE" != x ; then | |
5272 | eval "DEFAULT_$LINE" | |
5273 | else | |
5274 | no_cache=1 | |
5275 | fi | |
5276 | ||
5277 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
5278 | ||
5279 | fi; | |
5280 | ||
5281 | eval "$ac_cv_use_filesystem" | |
5282 | if test "$no_cache" != 1; then | |
5283 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
5284 | fi | |
5285 | ||
5286 | if test "$wxUSE_FILESYSTEM" = yes; then | |
5287 | echo "$as_me:$LINENO: result: yes" >&5 | |
5288 | echo "${ECHO_T}yes" >&6 | |
5289 | else | |
5290 | echo "$as_me:$LINENO: result: no" >&5 | |
5291 | echo "${ECHO_T}no" >&6 | |
5292 | fi | |
5293 | ||
5294 | ||
5295 | enablestring= | |
5296 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 | |
5297 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
5298 | no_cache=0 | |
5299 | # Check whether --enable-fontmap or --disable-fontmap was given. | |
5300 | if test "${enable_fontmap+set}" = set; then | |
5301 | enableval="$enable_fontmap" | |
5302 | ||
5303 | if test "$enableval" = yes; then | |
5304 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' | |
5305 | else | |
5306 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' | |
5307 | fi | |
5308 | ||
5309 | else | |
5310 | ||
5311 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` | |
5312 | if test "x$LINE" != x ; then | |
5313 | eval "DEFAULT_$LINE" | |
5314 | else | |
5315 | no_cache=1 | |
5316 | fi | |
5317 | ||
5318 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP | |
5319 | ||
5320 | fi; | |
5321 | ||
5322 | eval "$ac_cv_use_fontmap" | |
5323 | if test "$no_cache" != 1; then | |
5324 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp | |
5325 | fi | |
5326 | ||
5327 | if test "$wxUSE_FONTMAP" = yes; then | |
5328 | echo "$as_me:$LINENO: result: yes" >&5 | |
5329 | echo "${ECHO_T}yes" >&6 | |
5330 | else | |
5331 | echo "$as_me:$LINENO: result: no" >&5 | |
5332 | echo "${ECHO_T}no" >&6 | |
5333 | fi | |
5334 | ||
5335 | ||
5336 | enablestring= | |
5337 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 | |
5338 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
5339 | no_cache=0 | |
5340 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5341 | if test "${enable_fs_inet+set}" = set; then | |
5342 | enableval="$enable_fs_inet" | |
5343 | ||
5344 | if test "$enableval" = yes; then | |
5345 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5346 | else | |
5347 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5348 | fi | |
5349 | ||
5350 | else | |
5351 | ||
5352 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
5353 | if test "x$LINE" != x ; then | |
5354 | eval "DEFAULT_$LINE" | |
5355 | else | |
5356 | no_cache=1 | |
5357 | fi | |
5358 | ||
5359 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
5360 | ||
5361 | fi; | |
5362 | ||
5363 | eval "$ac_cv_use_fs_inet" | |
5364 | if test "$no_cache" != 1; then | |
5365 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5366 | fi | |
5367 | ||
5368 | if test "$wxUSE_FS_INET" = yes; then | |
5369 | echo "$as_me:$LINENO: result: yes" >&5 | |
5370 | echo "${ECHO_T}yes" >&6 | |
5371 | else | |
5372 | echo "$as_me:$LINENO: result: no" >&5 | |
5373 | echo "${ECHO_T}no" >&6 | |
5374 | fi | |
5375 | ||
5376 | ||
5377 | enablestring= | |
5378 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 | |
5379 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
5380 | no_cache=0 | |
5381 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5382 | if test "${enable_fs_zip+set}" = set; then | |
5383 | enableval="$enable_fs_zip" | |
5384 | ||
5385 | if test "$enableval" = yes; then | |
5386 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5387 | else | |
5388 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5389 | fi | |
5390 | ||
5391 | else | |
5392 | ||
5393 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
5394 | if test "x$LINE" != x ; then | |
5395 | eval "DEFAULT_$LINE" | |
5396 | else | |
5397 | no_cache=1 | |
5398 | fi | |
5399 | ||
5400 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
5401 | ||
5402 | fi; | |
5403 | ||
5404 | eval "$ac_cv_use_fs_zip" | |
5405 | if test "$no_cache" != 1; then | |
5406 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5407 | fi | |
5408 | ||
5409 | if test "$wxUSE_FS_ZIP" = yes; then | |
5410 | echo "$as_me:$LINENO: result: yes" >&5 | |
5411 | echo "${ECHO_T}yes" >&6 | |
5412 | else | |
5413 | echo "$as_me:$LINENO: result: no" >&5 | |
5414 | echo "${ECHO_T}no" >&6 | |
5415 | fi | |
5416 | ||
5417 | ||
5418 | enablestring= | |
5419 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 | |
5420 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
5421 | no_cache=0 | |
5422 | # Check whether --enable-geometry or --disable-geometry was given. | |
5423 | if test "${enable_geometry+set}" = set; then | |
5424 | enableval="$enable_geometry" | |
5425 | ||
5426 | if test "$enableval" = yes; then | |
5427 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
5428 | else | |
5429 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
5430 | fi | |
5431 | ||
5432 | else | |
5433 | ||
5434 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
5435 | if test "x$LINE" != x ; then | |
5436 | eval "DEFAULT_$LINE" | |
5437 | else | |
5438 | no_cache=1 | |
5439 | fi | |
5440 | ||
5441 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
5442 | ||
5443 | fi; | |
5444 | ||
5445 | eval "$ac_cv_use_geometry" | |
5446 | if test "$no_cache" != 1; then | |
5447 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
5448 | fi | |
5449 | ||
5450 | if test "$wxUSE_GEOMETRY" = yes; then | |
5451 | echo "$as_me:$LINENO: result: yes" >&5 | |
5452 | echo "${ECHO_T}yes" >&6 | |
5453 | else | |
5454 | echo "$as_me:$LINENO: result: no" >&5 | |
5455 | echo "${ECHO_T}no" >&6 | |
5456 | fi | |
5457 | ||
5458 | ||
5459 | enablestring= | |
5460 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 | |
5461 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
5462 | no_cache=0 | |
5463 | # Check whether --enable-log or --disable-log was given. | |
5464 | if test "${enable_log+set}" = set; then | |
5465 | enableval="$enable_log" | |
5466 | ||
5467 | if test "$enableval" = yes; then | |
5468 | ac_cv_use_log='wxUSE_LOG=yes' | |
5469 | else | |
5470 | ac_cv_use_log='wxUSE_LOG=no' | |
5471 | fi | |
5472 | ||
5473 | else | |
5474 | ||
5475 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
5476 | if test "x$LINE" != x ; then | |
5477 | eval "DEFAULT_$LINE" | |
5478 | else | |
5479 | no_cache=1 | |
5480 | fi | |
5481 | ||
5482 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
5483 | ||
5484 | fi; | |
5485 | ||
5486 | eval "$ac_cv_use_log" | |
5487 | if test "$no_cache" != 1; then | |
5488 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
5489 | fi | |
5490 | ||
5491 | if test "$wxUSE_LOG" = yes; then | |
5492 | echo "$as_me:$LINENO: result: yes" >&5 | |
5493 | echo "${ECHO_T}yes" >&6 | |
5494 | else | |
5495 | echo "$as_me:$LINENO: result: no" >&5 | |
5496 | echo "${ECHO_T}no" >&6 | |
5497 | fi | |
5498 | ||
5499 | ||
5500 | enablestring= | |
5501 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 | |
5502 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
5503 | no_cache=0 | |
5504 | # Check whether --enable-longlong or --disable-longlong was given. | |
5505 | if test "${enable_longlong+set}" = set; then | |
5506 | enableval="$enable_longlong" | |
5507 | ||
5508 | if test "$enableval" = yes; then | |
5509 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
5510 | else | |
5511 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
5512 | fi | |
5513 | ||
5514 | else | |
5515 | ||
5516 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
5517 | if test "x$LINE" != x ; then | |
5518 | eval "DEFAULT_$LINE" | |
5519 | else | |
5520 | no_cache=1 | |
5521 | fi | |
5522 | ||
5523 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
5524 | ||
5525 | fi; | |
5526 | ||
5527 | eval "$ac_cv_use_longlong" | |
5528 | if test "$no_cache" != 1; then | |
5529 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
5530 | fi | |
5531 | ||
5532 | if test "$wxUSE_LONGLONG" = yes; then | |
5533 | echo "$as_me:$LINENO: result: yes" >&5 | |
5534 | echo "${ECHO_T}yes" >&6 | |
5535 | else | |
5536 | echo "$as_me:$LINENO: result: no" >&5 | |
5537 | echo "${ECHO_T}no" >&6 | |
5538 | fi | |
5539 | ||
5540 | ||
5541 | enablestring= | |
5542 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5543 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5544 | no_cache=0 | |
5545 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5546 | if test "${enable_mimetype+set}" = set; then | |
5547 | enableval="$enable_mimetype" | |
5548 | ||
5549 | if test "$enableval" = yes; then | |
5550 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5551 | else | |
5552 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5553 | fi | |
5554 | ||
5555 | else | |
5556 | ||
5557 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5558 | if test "x$LINE" != x ; then | |
5559 | eval "DEFAULT_$LINE" | |
5560 | else | |
5561 | no_cache=1 | |
5562 | fi | |
5563 | ||
5564 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5565 | ||
5566 | fi; | |
5567 | ||
5568 | eval "$ac_cv_use_mimetype" | |
5569 | if test "$no_cache" != 1; then | |
5570 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5571 | fi | |
5572 | ||
5573 | if test "$wxUSE_MIMETYPE" = yes; then | |
5574 | echo "$as_me:$LINENO: result: yes" >&5 | |
5575 | echo "${ECHO_T}yes" >&6 | |
5576 | else | |
5577 | echo "$as_me:$LINENO: result: no" >&5 | |
5578 | echo "${ECHO_T}no" >&6 | |
5579 | fi | |
5580 | ||
5581 | ||
5582 | enablestring= | |
5583 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 | |
5584 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
5585 | no_cache=0 | |
5586 | # Check whether --enable-mslu or --disable-mslu was given. | |
5587 | if test "${enable_mslu+set}" = set; then | |
5588 | enableval="$enable_mslu" | |
5589 | ||
5590 | if test "$enableval" = yes; then | |
5591 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5592 | else | |
5593 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5594 | fi | |
5595 | ||
5596 | else | |
5597 | ||
5598 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
5599 | if test "x$LINE" != x ; then | |
5600 | eval "DEFAULT_$LINE" | |
5601 | else | |
5602 | no_cache=1 | |
5603 | fi | |
5604 | ||
5605 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
5606 | ||
5607 | fi; | |
5608 | ||
5609 | eval "$ac_cv_use_mslu" | |
5610 | if test "$no_cache" != 1; then | |
5611 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5612 | fi | |
5613 | ||
5614 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
5615 | echo "$as_me:$LINENO: result: yes" >&5 | |
5616 | echo "${ECHO_T}yes" >&6 | |
5617 | else | |
5618 | echo "$as_me:$LINENO: result: no" >&5 | |
5619 | echo "${ECHO_T}no" >&6 | |
5620 | fi | |
5621 | ||
5622 | ||
5623 | enablestring= | |
5624 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 | |
5625 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
5626 | no_cache=0 | |
5627 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5628 | if test "${enable_snglinst+set}" = set; then | |
5629 | enableval="$enable_snglinst" | |
5630 | ||
5631 | if test "$enableval" = yes; then | |
5632 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5633 | else | |
5634 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5635 | fi | |
5636 | ||
5637 | else | |
5638 | ||
5639 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` | |
5640 | if test "x$LINE" != x ; then | |
5641 | eval "DEFAULT_$LINE" | |
5642 | else | |
5643 | no_cache=1 | |
5644 | fi | |
5645 | ||
5646 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
5647 | ||
5648 | fi; | |
5649 | ||
5650 | eval "$ac_cv_use_snglinst" | |
5651 | if test "$no_cache" != 1; then | |
5652 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5653 | fi | |
5654 | ||
5655 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
5656 | echo "$as_me:$LINENO: result: yes" >&5 | |
5657 | echo "${ECHO_T}yes" >&6 | |
5658 | else | |
5659 | echo "$as_me:$LINENO: result: no" >&5 | |
5660 | echo "${ECHO_T}no" >&6 | |
5661 | fi | |
5662 | ||
5663 | ||
5664 | enablestring= | |
07158944 VZ |
5665 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 |
5666 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
a848cd7e | 5667 | no_cache=0 |
07158944 VZ |
5668 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. |
5669 | if test "${enable_std_iostreams+set}" = set; then | |
5670 | enableval="$enable_std_iostreams" | |
a848cd7e SC |
5671 | |
5672 | if test "$enableval" = yes; then | |
07158944 | 5673 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' |
a848cd7e | 5674 | else |
07158944 | 5675 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' |
a848cd7e SC |
5676 | fi |
5677 | ||
5678 | else | |
5679 | ||
07158944 | 5680 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
a848cd7e SC |
5681 | if test "x$LINE" != x ; then |
5682 | eval "DEFAULT_$LINE" | |
5683 | else | |
5684 | no_cache=1 | |
5685 | fi | |
5686 | ||
07158944 | 5687 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM |
a848cd7e SC |
5688 | |
5689 | fi; | |
5690 | ||
07158944 | 5691 | eval "$ac_cv_use_std_iostreams" |
a848cd7e | 5692 | if test "$no_cache" != 1; then |
07158944 | 5693 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
5694 | fi |
5695 | ||
07158944 | 5696 | if test "$wxUSE_STD_IOSTREAM" = yes; then |
a848cd7e SC |
5697 | echo "$as_me:$LINENO: result: yes" >&5 |
5698 | echo "${ECHO_T}yes" >&6 | |
5699 | else | |
5700 | echo "$as_me:$LINENO: result: no" >&5 | |
5701 | echo "${ECHO_T}no" >&6 | |
5702 | fi | |
5703 | ||
5704 | ||
59746b65 MW |
5705 | enablestring= |
5706 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5 | |
5707 | echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6 | |
5708 | no_cache=0 | |
5709 | # Check whether --enable-std_string or --disable-std_string was given. | |
5710 | if test "${enable_std_string+set}" = set; then | |
5711 | enableval="$enable_std_string" | |
5712 | ||
5713 | if test "$enableval" = yes; then | |
5714 | ac_cv_use_std_string='wxUSE_STD_STRING=yes' | |
5715 | else | |
5716 | ac_cv_use_std_string='wxUSE_STD_STRING=no' | |
5717 | fi | |
5718 | ||
5719 | else | |
5720 | ||
5721 | LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}` | |
5722 | if test "x$LINE" != x ; then | |
5723 | eval "DEFAULT_$LINE" | |
5724 | else | |
5725 | no_cache=1 | |
5726 | fi | |
5727 | ||
5728 | ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING | |
5729 | ||
5730 | fi; | |
5731 | ||
5732 | eval "$ac_cv_use_std_string" | |
5733 | if test "$no_cache" != 1; then | |
5734 | echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp | |
5735 | fi | |
5736 | ||
5737 | if test "$wxUSE_STD_STRING" = yes; then | |
5738 | echo "$as_me:$LINENO: result: yes" >&5 | |
5739 | echo "${ECHO_T}yes" >&6 | |
5740 | else | |
5741 | echo "$as_me:$LINENO: result: no" >&5 | |
5742 | echo "${ECHO_T}no" >&6 | |
5743 | fi | |
5744 | ||
5745 | ||
a848cd7e | 5746 | enablestring= |
07158944 VZ |
5747 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5 |
5748 | echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6 | |
a848cd7e | 5749 | no_cache=0 |
07158944 VZ |
5750 | # Check whether --enable-stdpaths or --disable-stdpaths was given. |
5751 | if test "${enable_stdpaths+set}" = set; then | |
5752 | enableval="$enable_stdpaths" | |
a848cd7e SC |
5753 | |
5754 | if test "$enableval" = yes; then | |
07158944 | 5755 | ac_cv_use_stdpaths='wxUSE_STDPATHS=yes' |
a848cd7e | 5756 | else |
07158944 | 5757 | ac_cv_use_stdpaths='wxUSE_STDPATHS=no' |
a848cd7e SC |
5758 | fi |
5759 | ||
5760 | else | |
5761 | ||
07158944 | 5762 | LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}` |
a848cd7e SC |
5763 | if test "x$LINE" != x ; then |
5764 | eval "DEFAULT_$LINE" | |
5765 | else | |
5766 | no_cache=1 | |
5767 | fi | |
5768 | ||
07158944 | 5769 | ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS |
a848cd7e SC |
5770 | |
5771 | fi; | |
5772 | ||
07158944 | 5773 | eval "$ac_cv_use_stdpaths" |
a848cd7e | 5774 | if test "$no_cache" != 1; then |
07158944 | 5775 | echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp |
a848cd7e SC |
5776 | fi |
5777 | ||
07158944 | 5778 | if test "$wxUSE_STDPATHS" = yes; then |
a848cd7e SC |
5779 | echo "$as_me:$LINENO: result: yes" >&5 |
5780 | echo "${ECHO_T}yes" >&6 | |
5781 | else | |
5782 | echo "$as_me:$LINENO: result: no" >&5 | |
5783 | echo "${ECHO_T}no" >&6 | |
5784 | fi | |
5785 | ||
5786 | ||
5787 | enablestring= | |
5788 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 | |
5789 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
5790 | no_cache=0 | |
5791 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
5792 | if test "${enable_stopwatch+set}" = set; then | |
5793 | enableval="$enable_stopwatch" | |
5794 | ||
5795 | if test "$enableval" = yes; then | |
5796 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
5797 | else | |
5798 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
5799 | fi | |
5800 | ||
5801 | else | |
5802 | ||
5803 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
5804 | if test "x$LINE" != x ; then | |
5805 | eval "DEFAULT_$LINE" | |
5806 | else | |
5807 | no_cache=1 | |
5808 | fi | |
5809 | ||
5810 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
5811 | ||
5812 | fi; | |
5813 | ||
5814 | eval "$ac_cv_use_stopwatch" | |
5815 | if test "$no_cache" != 1; then | |
5816 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
5817 | fi | |
5818 | ||
5819 | if test "$wxUSE_STOPWATCH" = yes; then | |
5820 | echo "$as_me:$LINENO: result: yes" >&5 | |
5821 | echo "${ECHO_T}yes" >&6 | |
5822 | else | |
5823 | echo "$as_me:$LINENO: result: no" >&5 | |
5824 | echo "${ECHO_T}no" >&6 | |
5825 | fi | |
5826 | ||
5827 | ||
07158944 VZ |
5828 | enablestring= |
5829 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
5830 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
5831 | no_cache=0 | |
5832 | # Check whether --enable-streams or --disable-streams was given. | |
5833 | if test "${enable_streams+set}" = set; then | |
5834 | enableval="$enable_streams" | |
5835 | ||
5836 | if test "$enableval" = yes; then | |
5837 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
5838 | else | |
5839 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
5840 | fi | |
5841 | ||
5842 | else | |
5843 | ||
5844 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
5845 | if test "x$LINE" != x ; then | |
5846 | eval "DEFAULT_$LINE" | |
5847 | else | |
5848 | no_cache=1 | |
5849 | fi | |
5850 | ||
5851 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
5852 | ||
5853 | fi; | |
5854 | ||
5855 | eval "$ac_cv_use_streams" | |
5856 | if test "$no_cache" != 1; then | |
5857 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
5858 | fi | |
5859 | ||
5860 | if test "$wxUSE_STREAMS" = yes; then | |
5861 | echo "$as_me:$LINENO: result: yes" >&5 | |
5862 | echo "${ECHO_T}yes" >&6 | |
5863 | else | |
5864 | echo "$as_me:$LINENO: result: no" >&5 | |
5865 | echo "${ECHO_T}no" >&6 | |
5866 | fi | |
5867 | ||
5868 | ||
a848cd7e SC |
5869 | enablestring= |
5870 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 | |
5871 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
5872 | no_cache=0 | |
5873 | # Check whether --enable-system_options or --disable-system_options was given. | |
5874 | if test "${enable_system_options+set}" = set; then | |
5875 | enableval="$enable_system_options" | |
5876 | ||
5877 | if test "$enableval" = yes; then | |
5878 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
5879 | else | |
5880 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
5881 | fi | |
5882 | ||
5883 | else | |
5884 | ||
5885 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
5886 | if test "x$LINE" != x ; then | |
5887 | eval "DEFAULT_$LINE" | |
5888 | else | |
5889 | no_cache=1 | |
5890 | fi | |
5891 | ||
5892 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
5893 | ||
5894 | fi; | |
5895 | ||
5896 | eval "$ac_cv_use_system_options" | |
5897 | if test "$no_cache" != 1; then | |
5898 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
5899 | fi | |
5900 | ||
5901 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
5902 | echo "$as_me:$LINENO: result: yes" >&5 | |
5903 | echo "${ECHO_T}yes" >&6 | |
5904 | else | |
5905 | echo "$as_me:$LINENO: result: no" >&5 | |
5906 | echo "${ECHO_T}no" >&6 | |
5907 | fi | |
5908 | ||
5909 | ||
5910 | enablestring= | |
5911 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 | |
5912 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
5913 | no_cache=0 | |
5914 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
5915 | if test "${enable_textbuf+set}" = set; then | |
5916 | enableval="$enable_textbuf" | |
5917 | ||
5918 | if test "$enableval" = yes; then | |
5919 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
5920 | else | |
5921 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
5922 | fi | |
5923 | ||
5924 | else | |
5925 | ||
5926 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
5927 | if test "x$LINE" != x ; then | |
5928 | eval "DEFAULT_$LINE" | |
5929 | else | |
5930 | no_cache=1 | |
5931 | fi | |
5932 | ||
5933 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
5934 | ||
5935 | fi; | |
5936 | ||
5937 | eval "$ac_cv_use_textbuf" | |
5938 | if test "$no_cache" != 1; then | |
5939 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
5940 | fi | |
5941 | ||
5942 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
5943 | echo "$as_me:$LINENO: result: yes" >&5 | |
5944 | echo "${ECHO_T}yes" >&6 | |
5945 | else | |
5946 | echo "$as_me:$LINENO: result: no" >&5 | |
5947 | echo "${ECHO_T}no" >&6 | |
5948 | fi | |
5949 | ||
5950 | ||
5951 | enablestring= | |
5952 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 | |
5953 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
5954 | no_cache=0 | |
5955 | # Check whether --enable-textfile or --disable-textfile was given. | |
5956 | if test "${enable_textfile+set}" = set; then | |
5957 | enableval="$enable_textfile" | |
5958 | ||
5959 | if test "$enableval" = yes; then | |
5960 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
5961 | else | |
5962 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
5963 | fi | |
5964 | ||
5965 | else | |
5966 | ||
5967 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
5968 | if test "x$LINE" != x ; then | |
5969 | eval "DEFAULT_$LINE" | |
5970 | else | |
5971 | no_cache=1 | |
5972 | fi | |
5973 | ||
5974 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
5975 | ||
5976 | fi; | |
5977 | ||
5978 | eval "$ac_cv_use_textfile" | |
5979 | if test "$no_cache" != 1; then | |
5980 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
5981 | fi | |
5982 | ||
5983 | if test "$wxUSE_TEXTFILE" = yes; then | |
5984 | echo "$as_me:$LINENO: result: yes" >&5 | |
5985 | echo "${ECHO_T}yes" >&6 | |
5986 | else | |
5987 | echo "$as_me:$LINENO: result: no" >&5 | |
5988 | echo "${ECHO_T}no" >&6 | |
5989 | fi | |
5990 | ||
5991 | ||
5992 | enablestring= | |
5993 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 | |
5994 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
5995 | no_cache=0 | |
5996 | # Check whether --enable-timer or --disable-timer was given. | |
5997 | if test "${enable_timer+set}" = set; then | |
5998 | enableval="$enable_timer" | |
5999 | ||
6000 | if test "$enableval" = yes; then | |
6001 | ac_cv_use_timer='wxUSE_TIMER=yes' | |
6002 | else | |
6003 | ac_cv_use_timer='wxUSE_TIMER=no' | |
6004 | fi | |
6005 | ||
6006 | else | |
6007 | ||
6008 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` | |
6009 | if test "x$LINE" != x ; then | |
6010 | eval "DEFAULT_$LINE" | |
6011 | else | |
6012 | no_cache=1 | |
6013 | fi | |
6014 | ||
6015 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER | |
6016 | ||
6017 | fi; | |
6018 | ||
6019 | eval "$ac_cv_use_timer" | |
6020 | if test "$no_cache" != 1; then | |
6021 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp | |
6022 | fi | |
6023 | ||
6024 | if test "$wxUSE_TIMER" = yes; then | |
6025 | echo "$as_me:$LINENO: result: yes" >&5 | |
6026 | echo "${ECHO_T}yes" >&6 | |
6027 | else | |
6028 | echo "$as_me:$LINENO: result: no" >&5 | |
6029 | echo "${ECHO_T}no" >&6 | |
6030 | fi | |
6031 | ||
6032 | ||
6033 | enablestring= | |
6034 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 | |
6035 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
6036 | no_cache=0 | |
6037 | # Check whether --enable-unicode or --disable-unicode was given. | |
6038 | if test "${enable_unicode+set}" = set; then | |
6039 | enableval="$enable_unicode" | |
6040 | ||
6041 | if test "$enableval" = yes; then | |
6042 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
6043 | else | |
6044 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
6045 | fi | |
6046 | ||
6047 | else | |
6048 | ||
6049 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
6050 | if test "x$LINE" != x ; then | |
6051 | eval "DEFAULT_$LINE" | |
6052 | else | |
6053 | no_cache=1 | |
6054 | fi | |
6055 | ||
6056 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
6057 | ||
6058 | fi; | |
6059 | ||
6060 | eval "$ac_cv_use_unicode" | |
6061 | if test "$no_cache" != 1; then | |
6062 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
6063 | fi | |
6064 | ||
6065 | if test "$wxUSE_UNICODE" = yes; then | |
6066 | echo "$as_me:$LINENO: result: yes" >&5 | |
6067 | echo "${ECHO_T}yes" >&6 | |
6068 | else | |
6069 | echo "$as_me:$LINENO: result: no" >&5 | |
6070 | echo "${ECHO_T}no" >&6 | |
6071 | fi | |
6072 | ||
6073 | ||
6074 | enablestring= | |
6075 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5 | |
6076 | echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6 | |
6077 | no_cache=0 | |
6078 | # Check whether --enable-sound or --disable-sound was given. | |
6079 | if test "${enable_sound+set}" = set; then | |
6080 | enableval="$enable_sound" | |
6081 | ||
6082 | if test "$enableval" = yes; then | |
6083 | ac_cv_use_sound='wxUSE_SOUND=yes' | |
6084 | else | |
6085 | ac_cv_use_sound='wxUSE_SOUND=no' | |
6086 | fi | |
6087 | ||
6088 | else | |
6089 | ||
6090 | LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}` | |
6091 | if test "x$LINE" != x ; then | |
6092 | eval "DEFAULT_$LINE" | |
6093 | else | |
6094 | no_cache=1 | |
6095 | fi | |
6096 | ||
6097 | ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND | |
6098 | ||
6099 | fi; | |
6100 | ||
6101 | eval "$ac_cv_use_sound" | |
6102 | if test "$no_cache" != 1; then | |
6103 | echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp | |
6104 | fi | |
6105 | ||
6106 | if test "$wxUSE_SOUND" = yes; then | |
6107 | echo "$as_me:$LINENO: result: yes" >&5 | |
6108 | echo "${ECHO_T}yes" >&6 | |
6109 | else | |
6110 | echo "$as_me:$LINENO: result: no" >&5 | |
6111 | echo "${ECHO_T}no" >&6 | |
6112 | fi | |
6113 | ||
6114 | ||
3b57de8b RL |
6115 | enablestring= |
6116 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5 | |
6117 | echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6 | |
6118 | no_cache=0 | |
6119 | # Check whether --enable-mediactrl or --disable-mediactrl was given. | |
6120 | if test "${enable_mediactrl+set}" = set; then | |
6121 | enableval="$enable_mediactrl" | |
6122 | ||
6123 | if test "$enableval" = yes; then | |
6124 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes' | |
6125 | else | |
6126 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no' | |
6127 | fi | |
6128 | ||
6129 | else | |
6130 | ||
6131 | LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}` | |
6132 | if test "x$LINE" != x ; then | |
6133 | eval "DEFAULT_$LINE" | |
6134 | else | |
6135 | no_cache=1 | |
6136 | fi | |
6137 | ||
6138 | ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL | |
6139 | ||
6140 | fi; | |
6141 | ||
6142 | eval "$ac_cv_use_mediactrl" | |
6143 | if test "$no_cache" != 1; then | |
6144 | echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp | |
6145 | fi | |
6146 | ||
6147 | if test "$wxUSE_MEDIACTRL" = yes; then | |
6148 | echo "$as_me:$LINENO: result: yes" >&5 | |
6149 | echo "${ECHO_T}yes" >&6 | |
6150 | else | |
6151 | echo "$as_me:$LINENO: result: no" >&5 | |
6152 | echo "${ECHO_T}no" >&6 | |
6153 | fi | |
6154 | ||
6155 | ||
a848cd7e SC |
6156 | enablestring= |
6157 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 | |
6158 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
6159 | no_cache=0 | |
6160 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
6161 | if test "${enable_wxprintfv+set}" = set; then | |
6162 | enableval="$enable_wxprintfv" | |
6163 | ||
6164 | if test "$enableval" = yes; then | |
6165 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
6166 | else | |
6167 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
6168 | fi | |
6169 | ||
6170 | else | |
6171 | ||
6172 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
6173 | if test "x$LINE" != x ; then | |
6174 | eval "DEFAULT_$LINE" | |
6175 | else | |
6176 | no_cache=1 | |
6177 | fi | |
6178 | ||
6179 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
6180 | ||
6181 | fi; | |
6182 | ||
6183 | eval "$ac_cv_use_wxprintfv" | |
6184 | if test "$no_cache" != 1; then | |
6185 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
6186 | fi | |
6187 | ||
6188 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
6189 | echo "$as_me:$LINENO: result: yes" >&5 | |
6190 | echo "${ECHO_T}yes" >&6 | |
6191 | else | |
6192 | echo "$as_me:$LINENO: result: no" >&5 | |
6193 | echo "${ECHO_T}no" >&6 | |
6194 | fi | |
6195 | ||
6196 | ||
6197 | enablestring= | |
6198 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 | |
6199 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
6200 | no_cache=0 | |
6201 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
6202 | if test "${enable_zipstream+set}" = set; then | |
6203 | enableval="$enable_zipstream" | |
6204 | ||
6205 | if test "$enableval" = yes; then | |
6206 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
6207 | else | |
6208 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
6209 | fi | |
6210 | ||
6211 | else | |
6212 | ||
6213 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
6214 | if test "x$LINE" != x ; then | |
6215 | eval "DEFAULT_$LINE" | |
6216 | else | |
6217 | no_cache=1 | |
6218 | fi | |
6219 | ||
6220 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
6221 | ||
6222 | fi; | |
6223 | ||
6224 | eval "$ac_cv_use_zipstream" | |
6225 | if test "$no_cache" != 1; then | |
6226 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
6227 | fi | |
6228 | ||
6229 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
6230 | echo "$as_me:$LINENO: result: yes" >&5 | |
6231 | echo "${ECHO_T}yes" >&6 | |
6232 | else | |
6233 | echo "$as_me:$LINENO: result: no" >&5 | |
6234 | echo "${ECHO_T}no" >&6 | |
6235 | fi | |
6236 | ||
6237 | ||
a848cd7e SC |
6238 | |
6239 | enablestring= | |
6240 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 | |
6241 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
6242 | no_cache=0 | |
6243 | # Check whether --enable-url or --disable-url was given. | |
6244 | if test "${enable_url+set}" = set; then | |
6245 | enableval="$enable_url" | |
6246 | ||
6247 | if test "$enableval" = yes; then | |
6248 | ac_cv_use_url='wxUSE_URL=yes' | |
6249 | else | |
6250 | ac_cv_use_url='wxUSE_URL=no' | |
6251 | fi | |
6252 | ||
6253 | else | |
6254 | ||
6255 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
6256 | if test "x$LINE" != x ; then | |
6257 | eval "DEFAULT_$LINE" | |
6258 | else | |
6259 | no_cache=1 | |
6260 | fi | |
6261 | ||
6262 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
6263 | ||
6264 | fi; | |
6265 | ||
6266 | eval "$ac_cv_use_url" | |
6267 | if test "$no_cache" != 1; then | |
6268 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
6269 | fi | |
6270 | ||
6271 | if test "$wxUSE_URL" = yes; then | |
6272 | echo "$as_me:$LINENO: result: yes" >&5 | |
6273 | echo "${ECHO_T}yes" >&6 | |
6274 | else | |
6275 | echo "$as_me:$LINENO: result: no" >&5 | |
6276 | echo "${ECHO_T}no" >&6 | |
6277 | fi | |
6278 | ||
6279 | ||
6280 | enablestring= | |
6281 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 | |
6282 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
6283 | no_cache=0 | |
6284 | # Check whether --enable-protocol or --disable-protocol was given. | |
6285 | if test "${enable_protocol+set}" = set; then | |
6286 | enableval="$enable_protocol" | |
6287 | ||
6288 | if test "$enableval" = yes; then | |
6289 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
6290 | else | |
6291 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
6292 | fi | |
6293 | ||
6294 | else | |
6295 | ||
6296 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
6297 | if test "x$LINE" != x ; then | |
6298 | eval "DEFAULT_$LINE" | |
6299 | else | |
6300 | no_cache=1 | |
6301 | fi | |
6302 | ||
6303 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
6304 | ||
6305 | fi; | |
6306 | ||
6307 | eval "$ac_cv_use_protocol" | |
6308 | if test "$no_cache" != 1; then | |
6309 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
6310 | fi | |
6311 | ||
6312 | if test "$wxUSE_PROTOCOL" = yes; then | |
6313 | echo "$as_me:$LINENO: result: yes" >&5 | |
6314 | echo "${ECHO_T}yes" >&6 | |
6315 | else | |
6316 | echo "$as_me:$LINENO: result: no" >&5 | |
6317 | echo "${ECHO_T}no" >&6 | |
6318 | fi | |
6319 | ||
6320 | ||
6321 | enablestring= | |
6322 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 | |
6323 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
6324 | no_cache=0 | |
6325 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
6326 | if test "${enable_protocol_http+set}" = set; then | |
6327 | enableval="$enable_protocol_http" | |
6328 | ||
6329 | if test "$enableval" = yes; then | |
6330 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
6331 | else | |
6332 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
6333 | fi | |
6334 | ||
6335 | else | |
6336 | ||
6337 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
6338 | if test "x$LINE" != x ; then | |
6339 | eval "DEFAULT_$LINE" | |
6340 | else | |
6341 | no_cache=1 | |
6342 | fi | |
6343 | ||
6344 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
6345 | ||
6346 | fi; | |
6347 | ||
6348 | eval "$ac_cv_use_protocol_http" | |
6349 | if test "$no_cache" != 1; then | |
6350 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
6351 | fi | |
6352 | ||
6353 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
6354 | echo "$as_me:$LINENO: result: yes" >&5 | |
6355 | echo "${ECHO_T}yes" >&6 | |
6356 | else | |
6357 | echo "$as_me:$LINENO: result: no" >&5 | |
6358 | echo "${ECHO_T}no" >&6 | |
6359 | fi | |
6360 | ||
6361 | ||
6362 | enablestring= | |
6363 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 | |
6364 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
6365 | no_cache=0 | |
6366 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
6367 | if test "${enable_protocol_ftp+set}" = set; then | |
6368 | enableval="$enable_protocol_ftp" | |
6369 | ||
6370 | if test "$enableval" = yes; then | |
6371 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
6372 | else | |
6373 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
6374 | fi | |
6375 | ||
6376 | else | |
6377 | ||
6378 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
6379 | if test "x$LINE" != x ; then | |
6380 | eval "DEFAULT_$LINE" | |
6381 | else | |
6382 | no_cache=1 | |
6383 | fi | |
6384 | ||
6385 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
6386 | ||
6387 | fi; | |
6388 | ||
6389 | eval "$ac_cv_use_protocol_ftp" | |
6390 | if test "$no_cache" != 1; then | |
6391 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
6392 | fi | |
6393 | ||
6394 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
6395 | echo "$as_me:$LINENO: result: yes" >&5 | |
6396 | echo "${ECHO_T}yes" >&6 | |
6397 | else | |
6398 | echo "$as_me:$LINENO: result: no" >&5 | |
6399 | echo "${ECHO_T}no" >&6 | |
6400 | fi | |
6401 | ||
6402 | ||
6403 | enablestring= | |
6404 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 | |
6405 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
6406 | no_cache=0 | |
6407 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
6408 | if test "${enable_protocol_file+set}" = set; then | |
6409 | enableval="$enable_protocol_file" | |
6410 | ||
6411 | if test "$enableval" = yes; then | |
6412 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
6413 | else | |
6414 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
6415 | fi | |
6416 | ||
6417 | else | |
6418 | ||
6419 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
6420 | if test "x$LINE" != x ; then | |
6421 | eval "DEFAULT_$LINE" | |
6422 | else | |
6423 | no_cache=1 | |
6424 | fi | |
6425 | ||
6426 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
6427 | ||
6428 | fi; | |
6429 | ||
6430 | eval "$ac_cv_use_protocol_file" | |
6431 | if test "$no_cache" != 1; then | |
6432 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
6433 | fi | |
6434 | ||
6435 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
6436 | echo "$as_me:$LINENO: result: yes" >&5 | |
6437 | echo "${ECHO_T}yes" >&6 | |
6438 | else | |
6439 | echo "$as_me:$LINENO: result: no" >&5 | |
6440 | echo "${ECHO_T}no" >&6 | |
6441 | fi | |
6442 | ||
6443 | ||
6444 | ||
6445 | ||
6446 | ||
6447 | enablestring= | |
6448 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 | |
6449 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
6450 | no_cache=0 | |
6451 | # Check whether --enable-threads or --disable-threads was given. | |
6452 | if test "${enable_threads+set}" = set; then | |
6453 | enableval="$enable_threads" | |
6454 | ||
6455 | if test "$enableval" = yes; then | |
6456 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
6457 | else | |
6458 | ac_cv_use_threads='wxUSE_THREADS=no' | |
6459 | fi | |
6460 | ||
6461 | else | |
6462 | ||
6463 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
6464 | if test "x$LINE" != x ; then | |
6465 | eval "DEFAULT_$LINE" | |
6466 | else | |
6467 | no_cache=1 | |
6468 | fi | |
6469 | ||
6470 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
6471 | ||
6472 | fi; | |
6473 | ||
6474 | eval "$ac_cv_use_threads" | |
6475 | if test "$no_cache" != 1; then | |
6476 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
6477 | fi | |
6478 | ||
6479 | if test "$wxUSE_THREADS" = yes; then | |
6480 | echo "$as_me:$LINENO: result: yes" >&5 | |
6481 | echo "${ECHO_T}yes" >&6 | |
6482 | else | |
6483 | echo "$as_me:$LINENO: result: no" >&5 | |
6484 | echo "${ECHO_T}no" >&6 | |
6485 | fi | |
6486 | ||
6487 | ||
6488 | if test "$wxUSE_GUI" = "yes"; then | |
6489 | ||
6490 | ||
6491 | ||
6492 | enablestring= | |
6493 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 | |
6494 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
6495 | no_cache=0 | |
6496 | # Check whether --enable-docview or --disable-docview was given. | |
6497 | if test "${enable_docview+set}" = set; then | |
6498 | enableval="$enable_docview" | |
6499 | ||
6500 | if test "$enableval" = yes; then | |
6501 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
6502 | else | |
6503 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
6504 | fi | |
6505 | ||
6506 | else | |
6507 | ||
6508 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
6509 | if test "x$LINE" != x ; then | |
6510 | eval "DEFAULT_$LINE" | |
6511 | else | |
6512 | no_cache=1 | |
6513 | fi | |
6514 | ||
6515 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
6516 | ||
6517 | fi; | |
6518 | ||
6519 | eval "$ac_cv_use_docview" | |
6520 | if test "$no_cache" != 1; then | |
6521 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
6522 | fi | |
6523 | ||
6524 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
6525 | echo "$as_me:$LINENO: result: yes" >&5 | |
6526 | echo "${ECHO_T}yes" >&6 | |
6527 | else | |
6528 | echo "$as_me:$LINENO: result: no" >&5 | |
6529 | echo "${ECHO_T}no" >&6 | |
6530 | fi | |
6531 | ||
6532 | ||
6533 | enablestring= | |
6534 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 | |
6535 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
6536 | no_cache=0 | |
6537 | # Check whether --enable-help or --disable-help was given. | |
6538 | if test "${enable_help+set}" = set; then | |
6539 | enableval="$enable_help" | |
6540 | ||
6541 | if test "$enableval" = yes; then | |
6542 | ac_cv_use_help='wxUSE_HELP=yes' | |
6543 | else | |
6544 | ac_cv_use_help='wxUSE_HELP=no' | |
6545 | fi | |
6546 | ||
6547 | else | |
6548 | ||
6549 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
6550 | if test "x$LINE" != x ; then | |
6551 | eval "DEFAULT_$LINE" | |
6552 | else | |
6553 | no_cache=1 | |
6554 | fi | |
6555 | ||
6556 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
6557 | ||
6558 | fi; | |
6559 | ||
6560 | eval "$ac_cv_use_help" | |
6561 | if test "$no_cache" != 1; then | |
6562 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
6563 | fi | |
6564 | ||
6565 | if test "$wxUSE_HELP" = yes; then | |
6566 | echo "$as_me:$LINENO: result: yes" >&5 | |
6567 | echo "${ECHO_T}yes" >&6 | |
6568 | else | |
6569 | echo "$as_me:$LINENO: result: no" >&5 | |
6570 | echo "${ECHO_T}no" >&6 | |
6571 | fi | |
6572 | ||
6573 | ||
6574 | enablestring= | |
6575 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 | |
6576 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
6577 | no_cache=0 | |
6578 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
6579 | if test "${enable_mshtmlhelp+set}" = set; then | |
6580 | enableval="$enable_mshtmlhelp" | |
6581 | ||
6582 | if test "$enableval" = yes; then | |
6583 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
6584 | else | |
6585 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
6586 | fi | |
6587 | ||
6588 | else | |
6589 | ||
6590 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
6591 | if test "x$LINE" != x ; then | |
6592 | eval "DEFAULT_$LINE" | |
6593 | else | |
6594 | no_cache=1 | |
6595 | fi | |
6596 | ||
6597 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
6598 | ||
6599 | fi; | |
6600 | ||
6601 | eval "$ac_cv_use_mshtmlhelp" | |
6602 | if test "$no_cache" != 1; then | |
6603 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
6604 | fi | |
6605 | ||
6606 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
6607 | echo "$as_me:$LINENO: result: yes" >&5 | |
6608 | echo "${ECHO_T}yes" >&6 | |
6609 | else | |
6610 | echo "$as_me:$LINENO: result: no" >&5 | |
6611 | echo "${ECHO_T}no" >&6 | |
6612 | fi | |
6613 | ||
6614 | ||
6615 | enablestring= | |
6616 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
6617 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
6618 | no_cache=0 | |
6619 | # Check whether --enable-html or --disable-html was given. | |
6620 | if test "${enable_html+set}" = set; then | |
6621 | enableval="$enable_html" | |
6622 | ||
6623 | if test "$enableval" = yes; then | |
6624 | ac_cv_use_html='wxUSE_HTML=yes' | |
6625 | else | |
6626 | ac_cv_use_html='wxUSE_HTML=no' | |
6627 | fi | |
6628 | ||
6629 | else | |
6630 | ||
6631 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
6632 | if test "x$LINE" != x ; then | |
6633 | eval "DEFAULT_$LINE" | |
6634 | else | |
6635 | no_cache=1 | |
6636 | fi | |
6637 | ||
6638 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
6639 | ||
6640 | fi; | |
6641 | ||
6642 | eval "$ac_cv_use_html" | |
6643 | if test "$no_cache" != 1; then | |
6644 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6645 | fi | |
6646 | ||
6647 | if test "$wxUSE_HTML" = yes; then | |
6648 | echo "$as_me:$LINENO: result: yes" >&5 | |
6649 | echo "${ECHO_T}yes" >&6 | |
6650 | else | |
6651 | echo "$as_me:$LINENO: result: no" >&5 | |
6652 | echo "${ECHO_T}no" >&6 | |
6653 | fi | |
6654 | ||
6655 | ||
6656 | enablestring= | |
6657 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 | |
6658 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
6659 | no_cache=0 | |
6660 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
6661 | if test "${enable_htmlhelp+set}" = set; then | |
6662 | enableval="$enable_htmlhelp" | |
6663 | ||
6664 | if test "$enableval" = yes; then | |
6665 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
6666 | else | |
6667 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
6668 | fi | |
6669 | ||
6670 | else | |
6671 | ||
6672 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
6673 | if test "x$LINE" != x ; then | |
6674 | eval "DEFAULT_$LINE" | |
6675 | else | |
6676 | no_cache=1 | |
6677 | fi | |
6678 | ||
6679 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
6680 | ||
6681 | fi; | |
6682 | ||
6683 | eval "$ac_cv_use_htmlhelp" | |
6684 | if test "$no_cache" != 1; then | |
6685 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
6686 | fi | |
6687 | ||
6688 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
6689 | echo "$as_me:$LINENO: result: yes" >&5 | |
6690 | echo "${ECHO_T}yes" >&6 | |
6691 | else | |
6692 | echo "$as_me:$LINENO: result: no" >&5 | |
6693 | echo "${ECHO_T}no" >&6 | |
6694 | fi | |
6695 | ||
6696 | ||
9a8f0513 VS |
6697 | enablestring= |
6698 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5 | |
6699 | echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6 | |
6700 | no_cache=0 | |
6701 | # Check whether --enable-xrc or --disable-xrc was given. | |
6702 | if test "${enable_xrc+set}" = set; then | |
6703 | enableval="$enable_xrc" | |
6704 | ||
6705 | if test "$enableval" = yes; then | |
6706 | ac_cv_use_xrc='wxUSE_XRC=yes' | |
6707 | else | |
6708 | ac_cv_use_xrc='wxUSE_XRC=no' | |
6709 | fi | |
6710 | ||
6711 | else | |
6712 | ||
6713 | LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}` | |
6714 | if test "x$LINE" != x ; then | |
6715 | eval "DEFAULT_$LINE" | |
6716 | else | |
6717 | no_cache=1 | |
6718 | fi | |
6719 | ||
6720 | ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC | |
6721 | ||
6722 | fi; | |
6723 | ||
6724 | eval "$ac_cv_use_xrc" | |
6725 | if test "$no_cache" != 1; then | |
6726 | echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp | |
6727 | fi | |
6728 | ||
6729 | if test "$wxUSE_XRC" = yes; then | |
6730 | echo "$as_me:$LINENO: result: yes" >&5 | |
6731 | echo "${ECHO_T}yes" >&6 | |
6732 | else | |
6733 | echo "$as_me:$LINENO: result: no" >&5 | |
6734 | echo "${ECHO_T}no" >&6 | |
6735 | fi | |
6736 | ||
6737 | ||
a848cd7e SC |
6738 | enablestring= |
6739 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 | |
6740 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
6741 | no_cache=0 | |
6742 | # Check whether --enable-constraints or --disable-constraints was given. | |
6743 | if test "${enable_constraints+set}" = set; then | |
6744 | enableval="$enable_constraints" | |
6745 | ||
6746 | if test "$enableval" = yes; then | |
6747 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
6748 | else | |
6749 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
6750 | fi | |
6751 | ||
6752 | else | |
6753 | ||
6754 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
6755 | if test "x$LINE" != x ; then | |
6756 | eval "DEFAULT_$LINE" | |
6757 | else | |
6758 | no_cache=1 | |
6759 | fi | |
6760 | ||
6761 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
6762 | ||
6763 | fi; | |
6764 | ||
6765 | eval "$ac_cv_use_constraints" | |
6766 | if test "$no_cache" != 1; then | |
6767 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
6768 | fi | |
6769 | ||
6770 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
6771 | echo "$as_me:$LINENO: result: yes" >&5 | |
6772 | echo "${ECHO_T}yes" >&6 | |
6773 | else | |
6774 | echo "$as_me:$LINENO: result: no" >&5 | |
6775 | echo "${ECHO_T}no" >&6 | |
6776 | fi | |
6777 | ||
6778 | ||
6779 | enablestring= | |
6780 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 | |
6781 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
6782 | no_cache=0 | |
6783 | # Check whether --enable-printarch or --disable-printarch was given. | |
6784 | if test "${enable_printarch+set}" = set; then | |
6785 | enableval="$enable_printarch" | |
6786 | ||
6787 | if test "$enableval" = yes; then | |
6788 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
6789 | else | |
6790 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
6791 | fi | |
6792 | ||
6793 | else | |
6794 | ||
6795 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
6796 | if test "x$LINE" != x ; then | |
6797 | eval "DEFAULT_$LINE" | |
6798 | else | |
6799 | no_cache=1 | |
6800 | fi | |
6801 | ||
6802 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
6803 | ||
6804 | fi; | |
6805 | ||
6806 | eval "$ac_cv_use_printarch" | |
6807 | if test "$no_cache" != 1; then | |
6808 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
6809 | fi | |
6810 | ||
6811 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
6812 | echo "$as_me:$LINENO: result: yes" >&5 | |
6813 | echo "${ECHO_T}yes" >&6 | |
6814 | else | |
6815 | echo "$as_me:$LINENO: result: no" >&5 | |
6816 | echo "${ECHO_T}no" >&6 | |
6817 | fi | |
6818 | ||
6819 | ||
6820 | enablestring= | |
6821 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 | |
6822 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
6823 | no_cache=0 | |
6824 | # Check whether --enable-mdi or --disable-mdi was given. | |
6825 | if test "${enable_mdi+set}" = set; then | |
6826 | enableval="$enable_mdi" | |
6827 | ||
6828 | if test "$enableval" = yes; then | |
8a7b1113 | 6829 | ac_cv_use_mdi='wxUSE_MDI=yes' |
a848cd7e | 6830 | else |
8a7b1113 | 6831 | ac_cv_use_mdi='wxUSE_MDI=no' |
a848cd7e SC |
6832 | fi |
6833 | ||
6834 | else | |
6835 | ||
8a7b1113 | 6836 | LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}` |
a848cd7e SC |
6837 | if test "x$LINE" != x ; then |
6838 | eval "DEFAULT_$LINE" | |
6839 | else | |
6840 | no_cache=1 | |
6841 | fi | |
6842 | ||
8a7b1113 | 6843 | ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI |
a848cd7e SC |
6844 | |
6845 | fi; | |
6846 | ||
6847 | eval "$ac_cv_use_mdi" | |
6848 | if test "$no_cache" != 1; then | |
6849 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6850 | fi | |
6851 | ||
8a7b1113 VZ |
6852 | if test "$wxUSE_MDI" = yes; then |
6853 | echo "$as_me:$LINENO: result: yes" >&5 | |
6854 | echo "${ECHO_T}yes" >&6 | |
6855 | else | |
6856 | echo "$as_me:$LINENO: result: no" >&5 | |
6857 | echo "${ECHO_T}no" >&6 | |
6858 | fi | |
6859 | ||
6860 | ||
6861 | enablestring= | |
6862 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5 | |
6863 | echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6 | |
6864 | no_cache=0 | |
6865 | # Check whether --enable-mdidoc or --disable-mdidoc was given. | |
6866 | if test "${enable_mdidoc+set}" = set; then | |
6867 | enableval="$enable_mdidoc" | |
6868 | ||
6869 | if test "$enableval" = yes; then | |
6870 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes' | |
6871 | else | |
6872 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no' | |
6873 | fi | |
6874 | ||
6875 | else | |
6876 | ||
6877 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
6878 | if test "x$LINE" != x ; then | |
6879 | eval "DEFAULT_$LINE" | |
6880 | else | |
6881 | no_cache=1 | |
6882 | fi | |
6883 | ||
6884 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
6885 | ||
6886 | fi; | |
6887 | ||
6888 | eval "$ac_cv_use_mdidoc" | |
6889 | if test "$no_cache" != 1; then | |
6890 | echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp | |
6891 | fi | |
6892 | ||
a848cd7e SC |
6893 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then |
6894 | echo "$as_me:$LINENO: result: yes" >&5 | |
6895 | echo "${ECHO_T}yes" >&6 | |
6896 | else | |
6897 | echo "$as_me:$LINENO: result: no" >&5 | |
6898 | echo "${ECHO_T}no" >&6 | |
6899 | fi | |
6900 | ||
6901 | ||
6902 | enablestring= | |
6903 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 | |
6904 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
6905 | no_cache=0 | |
6906 | # Check whether --enable-loggui or --disable-loggui was given. | |
6907 | if test "${enable_loggui+set}" = set; then | |
6908 | enableval="$enable_loggui" | |
6909 | ||
6910 | if test "$enableval" = yes; then | |
6911 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6912 | else | |
6913 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6914 | fi | |
6915 | ||
6916 | else | |
6917 | ||
6918 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
6919 | if test "x$LINE" != x ; then | |
6920 | eval "DEFAULT_$LINE" | |
6921 | else | |
6922 | no_cache=1 | |
6923 | fi | |
6924 | ||
6925 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
6926 | ||
6927 | fi; | |
6928 | ||
6929 | eval "$ac_cv_use_loggui" | |
6930 | if test "$no_cache" != 1; then | |
6931 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6932 | fi | |
6933 | ||
6934 | if test "$wxUSE_LOGGUI" = yes; then | |
6935 | echo "$as_me:$LINENO: result: yes" >&5 | |
6936 | echo "${ECHO_T}yes" >&6 | |
6937 | else | |
6938 | echo "$as_me:$LINENO: result: no" >&5 | |
6939 | echo "${ECHO_T}no" >&6 | |
6940 | fi | |
6941 | ||
6942 | ||
6943 | enablestring= | |
6944 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 | |
6945 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
6946 | no_cache=0 | |
6947 | # Check whether --enable-logwin or --disable-logwin was given. | |
6948 | if test "${enable_logwin+set}" = set; then | |
6949 | enableval="$enable_logwin" | |
6950 | ||
6951 | if test "$enableval" = yes; then | |
6952 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6953 | else | |
6954 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6955 | fi | |
6956 | ||
6957 | else | |
6958 | ||
6959 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
6960 | if test "x$LINE" != x ; then | |
6961 | eval "DEFAULT_$LINE" | |
6962 | else | |
6963 | no_cache=1 | |
6964 | fi | |
6965 | ||
6966 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
6967 | ||
6968 | fi; | |
6969 | ||
6970 | eval "$ac_cv_use_logwin" | |
6971 | if test "$no_cache" != 1; then | |
6972 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6973 | fi | |
6974 | ||
6975 | if test "$wxUSE_LOGWINDOW" = yes; then | |
6976 | echo "$as_me:$LINENO: result: yes" >&5 | |
6977 | echo "${ECHO_T}yes" >&6 | |
6978 | else | |
6979 | echo "$as_me:$LINENO: result: no" >&5 | |
6980 | echo "${ECHO_T}no" >&6 | |
6981 | fi | |
6982 | ||
6983 | ||
6984 | enablestring= | |
6985 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 | |
6986 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
6987 | no_cache=0 | |
6988 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6989 | if test "${enable_logdialog+set}" = set; then | |
6990 | enableval="$enable_logdialog" | |
6991 | ||
6992 | if test "$enableval" = yes; then | |
6993 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6994 | else | |
6995 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6996 | fi | |
6997 | ||
6998 | else | |
6999 | ||
7000 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
7001 | if test "x$LINE" != x ; then | |
7002 | eval "DEFAULT_$LINE" | |
7003 | else | |
7004 | no_cache=1 | |
7005 | fi | |
7006 | ||
7007 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
7008 | ||
7009 | fi; | |
7010 | ||
7011 | eval "$ac_cv_use_logdialog" | |
7012 | if test "$no_cache" != 1; then | |
7013 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
7014 | fi | |
7015 | ||
7016 | if test "$wxUSE_LOGDIALOG" = yes; then | |
7017 | echo "$as_me:$LINENO: result: yes" >&5 | |
7018 | echo "${ECHO_T}yes" >&6 | |
7019 | else | |
7020 | echo "$as_me:$LINENO: result: no" >&5 | |
7021 | echo "${ECHO_T}no" >&6 | |
7022 | fi | |
7023 | ||
7024 | ||
646b6ec1 VS |
7025 | enablestring= |
7026 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5 | |
7027 | echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6 | |
7028 | no_cache=0 | |
7029 | # Check whether --enable-webkit or --disable-webkit was given. | |
7030 | if test "${enable_webkit+set}" = set; then | |
7031 | enableval="$enable_webkit" | |
7032 | ||
7033 | if test "$enableval" = yes; then | |
7034 | ac_cv_use_webkit='wxUSE_WEBKIT=yes' | |
7035 | else | |
7036 | ac_cv_use_webkit='wxUSE_WEBKIT=no' | |
7037 | fi | |
7038 | ||
7039 | else | |
7040 | ||
7041 | LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}` | |
7042 | if test "x$LINE" != x ; then | |
7043 | eval "DEFAULT_$LINE" | |
7044 | else | |
7045 | no_cache=1 | |
7046 | fi | |
7047 | ||
7048 | ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT | |
7049 | ||
7050 | fi; | |
7051 | ||
7052 | eval "$ac_cv_use_webkit" | |
7053 | if test "$no_cache" != 1; then | |
7054 | echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp | |
7055 | fi | |
7056 | ||
7057 | if test "$wxUSE_WEBKIT" = yes; then | |
7058 | echo "$as_me:$LINENO: result: yes" >&5 | |
7059 | echo "${ECHO_T}yes" >&6 | |
7060 | else | |
7061 | echo "$as_me:$LINENO: result: no" >&5 | |
7062 | echo "${ECHO_T}no" >&6 | |
7063 | fi | |
7064 | ||
7065 | ||
91dea314 MW |
7066 | enablestring= |
7067 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
7068 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
7069 | no_cache=0 | |
7070 | # Check whether --enable-html or --disable-html was given. | |
7071 | if test "${enable_html+set}" = set; then | |
7072 | enableval="$enable_html" | |
7073 | ||
7074 | if test "$enableval" = yes; then | |
7075 | ac_cv_use_html='wxUSE_RICHTEXT=yes' | |
7076 | else | |
7077 | ac_cv_use_html='wxUSE_RICHTEXT=no' | |
7078 | fi | |
7079 | ||
7080 | else | |
7081 | ||
7082 | LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}` | |
7083 | if test "x$LINE" != x ; then | |
7084 | eval "DEFAULT_$LINE" | |
7085 | else | |
7086 | no_cache=1 | |
7087 | fi | |
7088 | ||
7089 | ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT | |
7090 | ||
7091 | fi; | |
7092 | ||
7093 | eval "$ac_cv_use_html" | |
7094 | if test "$no_cache" != 1; then | |
7095 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
7096 | fi | |
7097 | ||
7098 | if test "$wxUSE_RICHTEXT" = yes; then | |
7099 | echo "$as_me:$LINENO: result: yes" >&5 | |
7100 | echo "${ECHO_T}yes" >&6 | |
7101 | else | |
7102 | echo "$as_me:$LINENO: result: no" >&5 | |
7103 | echo "${ECHO_T}no" >&6 | |
7104 | fi | |
7105 | ||
7106 | ||
a848cd7e SC |
7107 | |
7108 | enablestring= | |
7109 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 | |
7110 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
7111 | no_cache=0 | |
7112 | # Check whether --enable-postscript or --disable-postscript was given. | |
7113 | if test "${enable_postscript+set}" = set; then | |
7114 | enableval="$enable_postscript" | |
7115 | ||
7116 | if test "$enableval" = yes; then | |
7117 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
7118 | else | |
7119 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
7120 | fi | |
7121 | ||
7122 | else | |
7123 | ||
7124 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
7125 | if test "x$LINE" != x ; then | |
7126 | eval "DEFAULT_$LINE" | |
7127 | else | |
7128 | no_cache=1 | |
7129 | fi | |
7130 | ||
7131 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
7132 | ||
7133 | fi; | |
7134 | ||
7135 | eval "$ac_cv_use_postscript" | |
7136 | if test "$no_cache" != 1; then | |
7137 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
7138 | fi | |
7139 | ||
7140 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
7141 | echo "$as_me:$LINENO: result: yes" >&5 | |
7142 | echo "${ECHO_T}yes" >&6 | |
7143 | else | |
7144 | echo "$as_me:$LINENO: result: no" >&5 | |
7145 | echo "${ECHO_T}no" >&6 | |
7146 | fi | |
7147 | ||
7148 | ||
7149 | ||
7150 | ||
7151 | ||
7152 | enablestring= | |
7153 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 | |
7154 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
7155 | no_cache=0 | |
7156 | # Check whether --enable-prologio or --disable-prologio was given. | |
7157 | if test "${enable_prologio+set}" = set; then | |
7158 | enableval="$enable_prologio" | |
7159 | ||
7160 | if test "$enableval" = yes; then | |
7161 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
7162 | else | |
7163 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
7164 | fi | |
7165 | ||
7166 | else | |
7167 | ||
7168 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
7169 | if test "x$LINE" != x ; then | |
7170 | eval "DEFAULT_$LINE" | |
7171 | else | |
7172 | no_cache=1 | |
7173 | fi | |
7174 | ||
7175 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
7176 | ||
7177 | fi; | |
7178 | ||
7179 | eval "$ac_cv_use_prologio" | |
7180 | if test "$no_cache" != 1; then | |
7181 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
7182 | fi | |
7183 | ||
7184 | if test "$wxUSE_PROLOGIO" = yes; then | |
7185 | echo "$as_me:$LINENO: result: yes" >&5 | |
7186 | echo "${ECHO_T}yes" >&6 | |
7187 | else | |
7188 | echo "$as_me:$LINENO: result: no" >&5 | |
7189 | echo "${ECHO_T}no" >&6 | |
7190 | fi | |
7191 | ||
7192 | ||
7193 | enablestring= | |
7194 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 | |
7195 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
7196 | no_cache=0 | |
7197 | # Check whether --enable-resources or --disable-resources was given. | |
7198 | if test "${enable_resources+set}" = set; then | |
7199 | enableval="$enable_resources" | |
7200 | ||
7201 | if test "$enableval" = yes; then | |
7202 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
7203 | else | |
7204 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
7205 | fi | |
7206 | ||
7207 | else | |
7208 | ||
7209 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
7210 | if test "x$LINE" != x ; then | |
7211 | eval "DEFAULT_$LINE" | |
7212 | else | |
7213 | no_cache=1 | |
7214 | fi | |
7215 | ||
7216 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
7217 | ||
7218 | fi; | |
7219 | ||
7220 | eval "$ac_cv_use_resources" | |
7221 | if test "$no_cache" != 1; then | |
7222 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
7223 | fi | |
7224 | ||
7225 | if test "$wxUSE_RESOURCES" = yes; then | |
7226 | echo "$as_me:$LINENO: result: yes" >&5 | |
7227 | echo "${ECHO_T}yes" >&6 | |
7228 | else | |
7229 | echo "$as_me:$LINENO: result: no" >&5 | |
7230 | echo "${ECHO_T}no" >&6 | |
7231 | fi | |
7232 | ||
7233 | ||
7234 | ||
7235 | ||
7236 | enablestring= | |
7237 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 | |
7238 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
7239 | no_cache=0 | |
7240 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
7241 | if test "${enable_clipboard+set}" = set; then | |
7242 | enableval="$enable_clipboard" | |
7243 | ||
7244 | if test "$enableval" = yes; then | |
7245 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
7246 | else | |
7247 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
7248 | fi | |
7249 | ||
7250 | else | |
7251 | ||
7252 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
7253 | if test "x$LINE" != x ; then | |
7254 | eval "DEFAULT_$LINE" | |
7255 | else | |
7256 | no_cache=1 | |
7257 | fi | |
7258 | ||
7259 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
7260 | ||
7261 | fi; | |
7262 | ||
7263 | eval "$ac_cv_use_clipboard" | |
7264 | if test "$no_cache" != 1; then | |
7265 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
7266 | fi | |
7267 | ||
7268 | if test "$wxUSE_CLIPBOARD" = yes; then | |
7269 | echo "$as_me:$LINENO: result: yes" >&5 | |
7270 | echo "${ECHO_T}yes" >&6 | |
7271 | else | |
7272 | echo "$as_me:$LINENO: result: no" >&5 | |
7273 | echo "${ECHO_T}no" >&6 | |
7274 | fi | |
7275 | ||
7276 | ||
7277 | enablestring= | |
7278 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 | |
7279 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
7280 | no_cache=0 | |
7281 | # Check whether --enable-dnd or --disable-dnd was given. | |
7282 | if test "${enable_dnd+set}" = set; then | |
7283 | enableval="$enable_dnd" | |
7284 | ||
7285 | if test "$enableval" = yes; then | |
7286 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
7287 | else | |
7288 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
7289 | fi | |
7290 | ||
7291 | else | |
7292 | ||
7293 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
7294 | if test "x$LINE" != x ; then | |
7295 | eval "DEFAULT_$LINE" | |
7296 | else | |
7297 | no_cache=1 | |
7298 | fi | |
7299 | ||
7300 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
7301 | ||
7302 | fi; | |
7303 | ||
7304 | eval "$ac_cv_use_dnd" | |
7305 | if test "$no_cache" != 1; then | |
7306 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
7307 | fi | |
7308 | ||
7309 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
7310 | echo "$as_me:$LINENO: result: yes" >&5 | |
7311 | echo "${ECHO_T}yes" >&6 | |
7312 | else | |
7313 | echo "$as_me:$LINENO: result: no" >&5 | |
7314 | echo "${ECHO_T}no" >&6 | |
7315 | fi | |
7316 | ||
7317 | ||
7318 | enablestring= | |
7319 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
7320 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
7321 | no_cache=0 | |
7322 | # Check whether --enable-metafile or --disable-metafile was given. | |
7323 | if test "${enable_metafile+set}" = set; then | |
7324 | enableval="$enable_metafile" | |
7325 | ||
7326 | if test "$enableval" = yes; then | |
7327 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
7328 | else | |
7329 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
7330 | fi | |
7331 | ||
7332 | else | |
7333 | ||
7334 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
7335 | if test "x$LINE" != x ; then | |
7336 | eval "DEFAULT_$LINE" | |
7337 | else | |
7338 | no_cache=1 | |
7339 | fi | |
7340 | ||
7341 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
7342 | ||
7343 | fi; | |
7344 | ||
7345 | eval "$ac_cv_use_metafile" | |
7346 | if test "$no_cache" != 1; then | |
7347 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
7348 | fi | |
7349 | ||
7350 | if test "$wxUSE_METAFILE" = yes; then | |
7351 | echo "$as_me:$LINENO: result: yes" >&5 | |
7352 | echo "${ECHO_T}yes" >&6 | |
7353 | else | |
7354 | echo "$as_me:$LINENO: result: no" >&5 | |
7355 | echo "${ECHO_T}no" >&6 | |
7356 | fi | |
7357 | ||
7358 | ||
7359 | ||
7360 | ||
7361 | ||
7362 | enablestring= | |
7363 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 | |
7364 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
7365 | no_cache=0 | |
7366 | # Check whether --enable-controls or --disable-controls was given. | |
7367 | if test "${enable_controls+set}" = set; then | |
7368 | enableval="$enable_controls" | |
7369 | ||
7370 | if test "$enableval" = yes; then | |
7371 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
7372 | else | |
7373 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
7374 | fi | |
7375 | ||
7376 | else | |
7377 | ||
7378 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
7379 | if test "x$LINE" != x ; then | |
7380 | eval "DEFAULT_$LINE" | |
7381 | else | |
7382 | no_cache=1 | |
7383 | fi | |
7384 | ||
7385 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
7386 | ||
7387 | fi; | |
7388 | ||
7389 | eval "$ac_cv_use_controls" | |
7390 | if test "$no_cache" != 1; then | |
7391 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
7392 | fi | |
7393 | ||
7394 | if test "$wxUSE_CONTROLS" = yes; then | |
7395 | echo "$as_me:$LINENO: result: yes" >&5 | |
7396 | echo "${ECHO_T}yes" >&6 | |
7397 | else | |
7398 | echo "$as_me:$LINENO: result: no" >&5 | |
7399 | echo "${ECHO_T}no" >&6 | |
7400 | fi | |
7401 | ||
7402 | ||
7403 | if test "$wxUSE_CONTROLS" = "yes"; then | |
7404 | DEFAULT_wxUSE_ACCEL=yes | |
7405 | DEFAULT_wxUSE_BMPBUTTON=yes | |
7406 | DEFAULT_wxUSE_BUTTON=yes | |
da98e9be | 7407 | DEFAULT_wxUSE_CALCTRL=yes |
a848cd7e SC |
7408 | DEFAULT_wxUSE_CARET=yes |
7409 | DEFAULT_wxUSE_COMBOBOX=yes | |
7410 | DEFAULT_wxUSE_CHECKBOX=yes | |
7411 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
7412 | DEFAULT_wxUSE_CHOICE=yes | |
92bbdbcd | 7413 | DEFAULT_wxUSE_CHOICEBOOK=yes |
da98e9be | 7414 | DEFAULT_wxUSE_DATEPICKCTRL=yes |
a848cd7e SC |
7415 | DEFAULT_wxUSE_GAUGE=yes |
7416 | DEFAULT_wxUSE_GRID=yes | |
20e34ecc | 7417 | DEFAULT_wxUSE_DATAVIEWCTRL=no |
a848cd7e SC |
7418 | DEFAULT_wxUSE_IMAGLIST=yes |
7419 | DEFAULT_wxUSE_LISTBOOK=yes | |
7420 | DEFAULT_wxUSE_LISTBOX=yes | |
7421 | DEFAULT_wxUSE_LISTCTRL=yes | |
7422 | DEFAULT_wxUSE_NOTEBOOK=yes | |
7423 | DEFAULT_wxUSE_RADIOBOX=yes | |
7424 | DEFAULT_wxUSE_RADIOBTN=yes | |
7425 | DEFAULT_wxUSE_SASH=yes | |
7426 | DEFAULT_wxUSE_SCROLLBAR=yes | |
7427 | DEFAULT_wxUSE_SLIDER=yes | |
7428 | DEFAULT_wxUSE_SPINBTN=yes | |
7429 | DEFAULT_wxUSE_SPINCTRL=yes | |
7430 | DEFAULT_wxUSE_SPLITTER=yes | |
7431 | DEFAULT_wxUSE_STATBMP=yes | |
7432 | DEFAULT_wxUSE_STATBOX=yes | |
7433 | DEFAULT_wxUSE_STATLINE=yes | |
7434 | DEFAULT_wxUSE_STATUSBAR=yes | |
7435 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
7436 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
7437 | DEFAULT_wxUSE_TOOLBAR=yes | |
7438 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
7439 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
7440 | DEFAULT_wxUSE_TOOLTIPS=yes | |
0093c2fc | 7441 | DEFAULT_wxUSE_TREEBOOK=yes |
a848cd7e SC |
7442 | DEFAULT_wxUSE_TREECTRL=yes |
7443 | DEFAULT_wxUSE_POPUPWIN=yes | |
7444 | DEFAULT_wxUSE_TIPWINDOW=yes | |
7445 | elif test "$wxUSE_CONTROLS" = "no"; then | |
7446 | DEFAULT_wxUSE_ACCEL=no | |
7447 | DEFAULT_wxUSE_BMPBUTTON=no | |
7448 | DEFAULT_wxUSE_BUTTON=no | |
7449 | DEFAULT_wxUSE_CALCTRL=no | |
7450 | DEFAULT_wxUSE_CARET=no | |
7451 | DEFAULT_wxUSE_COMBOBOX=no | |
7452 | DEFAULT_wxUSE_CHECKBOX=no | |
7453 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
7454 | DEFAULT_wxUSE_CHOICE=no | |
92bbdbcd | 7455 | DEFAULT_wxUSE_CHOICEBOOK=no |
da98e9be | 7456 | DEFAULT_wxUSE_DATEPICKCTRL=no |
a848cd7e SC |
7457 | DEFAULT_wxUSE_GAUGE=no |
7458 | DEFAULT_wxUSE_GRID=no | |
20e34ecc | 7459 | DEFAULT_wxUSE_DATAVIEWCTRL=no |
a848cd7e SC |
7460 | DEFAULT_wxUSE_IMAGLIST=no |
7461 | DEFAULT_wxUSE_LISTBOOK=no | |
7462 | DEFAULT_wxUSE_LISTBOX=no | |
7463 | DEFAULT_wxUSE_LISTCTRL=no | |
7464 | DEFAULT_wxUSE_NOTEBOOK=no | |
7465 | DEFAULT_wxUSE_RADIOBOX=no | |
7466 | DEFAULT_wxUSE_RADIOBTN=no | |
7467 | DEFAULT_wxUSE_SASH=no | |
7468 | DEFAULT_wxUSE_SCROLLBAR=no | |
7469 | DEFAULT_wxUSE_SLIDER=no | |
7470 | DEFAULT_wxUSE_SPINBTN=no | |
7471 | DEFAULT_wxUSE_SPINCTRL=no | |
7472 | DEFAULT_wxUSE_SPLITTER=no | |
7473 | DEFAULT_wxUSE_STATBMP=no | |
7474 | DEFAULT_wxUSE_STATBOX=no | |
7475 | DEFAULT_wxUSE_STATLINE=no | |
7476 | DEFAULT_wxUSE_STATUSBAR=no | |
7477 | DEFAULT_wxUSE_TAB_DIALOG=no | |
7478 | DEFAULT_wxUSE_TOGGLEBTN=no | |
7479 | DEFAULT_wxUSE_TOOLBAR=no | |
7480 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
7481 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
7482 | DEFAULT_wxUSE_TOOLTIPS=no | |
0093c2fc | 7483 | DEFAULT_wxUSE_TREEBOOK=no |
a848cd7e SC |
7484 | DEFAULT_wxUSE_TREECTRL=no |
7485 | DEFAULT_wxUSE_POPUPWIN=no | |
7486 | DEFAULT_wxUSE_TIPWINDOW=no | |
7487 | fi | |
7488 | ||
a848cd7e SC |
7489 | |
7490 | enablestring= | |
7491 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 | |
7492 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
7493 | no_cache=0 | |
7494 | # Check whether --enable-accel or --disable-accel was given. | |
7495 | if test "${enable_accel+set}" = set; then | |
7496 | enableval="$enable_accel" | |
7497 | ||
7498 | if test "$enableval" = yes; then | |
7499 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
7500 | else | |
7501 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
7502 | fi | |
7503 | ||
7504 | else | |
7505 | ||
7506 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
7507 | if test "x$LINE" != x ; then | |
7508 | eval "DEFAULT_$LINE" | |
7509 | else | |
7510 | no_cache=1 | |
7511 | fi | |
7512 | ||
7513 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
7514 | ||
7515 | fi; | |
7516 | ||
7517 | eval "$ac_cv_use_accel" | |
7518 | if test "$no_cache" != 1; then | |
7519 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
7520 | fi | |
7521 | ||
7522 | if test "$wxUSE_ACCEL" = yes; then | |
7523 | echo "$as_me:$LINENO: result: yes" >&5 | |
7524 | echo "${ECHO_T}yes" >&6 | |
7525 | else | |
7526 | echo "$as_me:$LINENO: result: no" >&5 | |
7527 | echo "${ECHO_T}no" >&6 | |
7528 | fi | |
7529 | ||
7530 | ||
7531 | enablestring= | |
7532 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 | |
7533 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
7534 | no_cache=0 | |
7535 | # Check whether --enable-button or --disable-button was given. | |
7536 | if test "${enable_button+set}" = set; then | |
7537 | enableval="$enable_button" | |
7538 | ||
7539 | if test "$enableval" = yes; then | |
7540 | ac_cv_use_button='wxUSE_BUTTON=yes' | |
7541 | else | |
7542 | ac_cv_use_button='wxUSE_BUTTON=no' | |
7543 | fi | |
7544 | ||
7545 | else | |
7546 | ||
7547 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` | |
7548 | if test "x$LINE" != x ; then | |
7549 | eval "DEFAULT_$LINE" | |
7550 | else | |
7551 | no_cache=1 | |
7552 | fi | |
7553 | ||
7554 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON | |
7555 | ||
7556 | fi; | |
7557 | ||
7558 | eval "$ac_cv_use_button" | |
7559 | if test "$no_cache" != 1; then | |
7560 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp | |
7561 | fi | |
7562 | ||
7563 | if test "$wxUSE_BUTTON" = yes; then | |
7564 | echo "$as_me:$LINENO: result: yes" >&5 | |
7565 | echo "${ECHO_T}yes" >&6 | |
7566 | else | |
7567 | echo "$as_me:$LINENO: result: no" >&5 | |
7568 | echo "${ECHO_T}no" >&6 | |
7569 | fi | |
7570 | ||
7571 | ||
7572 | enablestring= | |
7573 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 | |
7574 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
7575 | no_cache=0 | |
7576 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
7577 | if test "${enable_bmpbutton+set}" = set; then | |
7578 | enableval="$enable_bmpbutton" | |
7579 | ||
7580 | if test "$enableval" = yes; then | |
7581 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
7582 | else | |
7583 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
7584 | fi | |
7585 | ||
7586 | else | |
7587 | ||
7588 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
7589 | if test "x$LINE" != x ; then | |
7590 | eval "DEFAULT_$LINE" | |
7591 | else | |
7592 | no_cache=1 | |
7593 | fi | |
7594 | ||
7595 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
7596 | ||
7597 | fi; | |
7598 | ||
7599 | eval "$ac_cv_use_bmpbutton" | |
7600 | if test "$no_cache" != 1; then | |
7601 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
7602 | fi | |
7603 | ||
7604 | if test "$wxUSE_BMPBUTTON" = yes; then | |
7605 | echo "$as_me:$LINENO: result: yes" >&5 | |
7606 | echo "${ECHO_T}yes" >&6 | |
7607 | else | |
7608 | echo "$as_me:$LINENO: result: no" >&5 | |
7609 | echo "${ECHO_T}no" >&6 | |
7610 | fi | |
7611 | ||
7612 | ||
7613 | enablestring= | |
7614 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 | |
7615 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
7616 | no_cache=0 | |
7617 | # Check whether --enable-calendar or --disable-calendar was given. | |
7618 | if test "${enable_calendar+set}" = set; then | |
7619 | enableval="$enable_calendar" | |
7620 | ||
7621 | if test "$enableval" = yes; then | |
7622 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
7623 | else | |
7624 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
7625 | fi | |
7626 | ||
7627 | else | |
7628 | ||
7629 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
7630 | if test "x$LINE" != x ; then | |
7631 | eval "DEFAULT_$LINE" | |
7632 | else | |
7633 | no_cache=1 | |
7634 | fi | |
7635 | ||
7636 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
7637 | ||
7638 | fi; | |
7639 | ||
7640 | eval "$ac_cv_use_calendar" | |
7641 | if test "$no_cache" != 1; then | |
7642 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
7643 | fi | |
7644 | ||
7645 | if test "$wxUSE_CALCTRL" = yes; then | |
7646 | echo "$as_me:$LINENO: result: yes" >&5 | |
7647 | echo "${ECHO_T}yes" >&6 | |
7648 | else | |
7649 | echo "$as_me:$LINENO: result: no" >&5 | |
7650 | echo "${ECHO_T}no" >&6 | |
7651 | fi | |
7652 | ||
7653 | ||
7654 | enablestring= | |
7655 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 | |
7656 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
7657 | no_cache=0 | |
7658 | # Check whether --enable-caret or --disable-caret was given. | |
7659 | if test "${enable_caret+set}" = set; then | |
7660 | enableval="$enable_caret" | |
7661 | ||
7662 | if test "$enableval" = yes; then | |
7663 | ac_cv_use_caret='wxUSE_CARET=yes' | |
7664 | else | |
7665 | ac_cv_use_caret='wxUSE_CARET=no' | |
7666 | fi | |
7667 | ||
7668 | else | |
7669 | ||
7670 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
7671 | if test "x$LINE" != x ; then | |
7672 | eval "DEFAULT_$LINE" | |
7673 | else | |
7674 | no_cache=1 | |
7675 | fi | |
7676 | ||
7677 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
7678 | ||
7679 | fi; | |
7680 | ||
7681 | eval "$ac_cv_use_caret" | |
7682 | if test "$no_cache" != 1; then | |
7683 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
7684 | fi | |
7685 | ||
7686 | if test "$wxUSE_CARET" = yes; then | |
7687 | echo "$as_me:$LINENO: result: yes" >&5 | |
7688 | echo "${ECHO_T}yes" >&6 | |
7689 | else | |
7690 | echo "$as_me:$LINENO: result: no" >&5 | |
7691 | echo "${ECHO_T}no" >&6 | |
7692 | fi | |
7693 | ||
7694 | ||
7695 | enablestring= | |
7696 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 | |
7697 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
7698 | no_cache=0 | |
7699 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
7700 | if test "${enable_checkbox+set}" = set; then | |
7701 | enableval="$enable_checkbox" | |
7702 | ||
7703 | if test "$enableval" = yes; then | |
7704 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
7705 | else | |
7706 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
7707 | fi | |
7708 | ||
7709 | else | |
7710 | ||
7711 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
7712 | if test "x$LINE" != x ; then | |
7713 | eval "DEFAULT_$LINE" | |
7714 | else | |
7715 | no_cache=1 | |
7716 | fi | |
7717 | ||
7718 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
7719 | ||
7720 | fi; | |
7721 | ||
7722 | eval "$ac_cv_use_checkbox" | |
7723 | if test "$no_cache" != 1; then | |
7724 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
7725 | fi | |
7726 | ||
7727 | if test "$wxUSE_CHECKBOX" = yes; then | |
7728 | echo "$as_me:$LINENO: result: yes" >&5 | |
7729 | echo "${ECHO_T}yes" >&6 | |
7730 | else | |
7731 | echo "$as_me:$LINENO: result: no" >&5 | |
7732 | echo "${ECHO_T}no" >&6 | |
7733 | fi | |
7734 | ||
7735 | ||
7736 | enablestring= | |
7737 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 | |
7738 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
7739 | no_cache=0 | |
7740 | # Check whether --enable-checklst or --disable-checklst was given. | |
7741 | if test "${enable_checklst+set}" = set; then | |
7742 | enableval="$enable_checklst" | |
7743 | ||
7744 | if test "$enableval" = yes; then | |
7745 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
7746 | else | |
7747 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
7748 | fi | |
7749 | ||
7750 | else | |
7751 | ||
7752 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
7753 | if test "x$LINE" != x ; then | |
7754 | eval "DEFAULT_$LINE" | |
7755 | else | |
7756 | no_cache=1 | |
7757 | fi | |
7758 | ||
7759 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
7760 | ||
7761 | fi; | |
7762 | ||
7763 | eval "$ac_cv_use_checklst" | |
7764 | if test "$no_cache" != 1; then | |
7765 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
7766 | fi | |
7767 | ||
7768 | if test "$wxUSE_CHECKLST" = yes; then | |
7769 | echo "$as_me:$LINENO: result: yes" >&5 | |
7770 | echo "${ECHO_T}yes" >&6 | |
7771 | else | |
7772 | echo "$as_me:$LINENO: result: no" >&5 | |
7773 | echo "${ECHO_T}no" >&6 | |
7774 | fi | |
7775 | ||
7776 | ||
7777 | enablestring= | |
7778 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 | |
7779 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
7780 | no_cache=0 | |
7781 | # Check whether --enable-choice or --disable-choice was given. | |
7782 | if test "${enable_choice+set}" = set; then | |
7783 | enableval="$enable_choice" | |
7784 | ||
7785 | if test "$enableval" = yes; then | |
7786 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
7787 | else | |
7788 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
7789 | fi | |
7790 | ||
7791 | else | |
7792 | ||
7793 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
7794 | if test "x$LINE" != x ; then | |
7795 | eval "DEFAULT_$LINE" | |
7796 | else | |
7797 | no_cache=1 | |
7798 | fi | |
7799 | ||
7800 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
7801 | ||
7802 | fi; | |
7803 | ||
7804 | eval "$ac_cv_use_choice" | |
7805 | if test "$no_cache" != 1; then | |
7806 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
7807 | fi | |
7808 | ||
7809 | if test "$wxUSE_CHOICE" = yes; then | |
7810 | echo "$as_me:$LINENO: result: yes" >&5 | |
7811 | echo "${ECHO_T}yes" >&6 | |
7812 | else | |
7813 | echo "$as_me:$LINENO: result: no" >&5 | |
7814 | echo "${ECHO_T}no" >&6 | |
7815 | fi | |
7816 | ||
7817 | ||
92bbdbcd WS |
7818 | enablestring= |
7819 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5 | |
7820 | echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6 | |
7821 | no_cache=0 | |
7822 | # Check whether --enable-choicebook or --disable-choicebook was given. | |
7823 | if test "${enable_choicebook+set}" = set; then | |
7824 | enableval="$enable_choicebook" | |
7825 | ||
7826 | if test "$enableval" = yes; then | |
7827 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes' | |
7828 | else | |
7829 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no' | |
7830 | fi | |
7831 | ||
7832 | else | |
7833 | ||
7834 | LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}` | |
7835 | if test "x$LINE" != x ; then | |
7836 | eval "DEFAULT_$LINE" | |
7837 | else | |
7838 | no_cache=1 | |
7839 | fi | |
7840 | ||
7841 | ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK | |
7842 | ||
7843 | fi; | |
7844 | ||
7845 | eval "$ac_cv_use_choicebook" | |
7846 | if test "$no_cache" != 1; then | |
7847 | echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp | |
7848 | fi | |
7849 | ||
7850 | if test "$wxUSE_CHOICEBOOK" = yes; then | |
7851 | echo "$as_me:$LINENO: result: yes" >&5 | |
7852 | echo "${ECHO_T}yes" >&6 | |
7853 | else | |
7854 | echo "$as_me:$LINENO: result: no" >&5 | |
7855 | echo "${ECHO_T}no" >&6 | |
7856 | fi | |
7857 | ||
7858 | ||
a848cd7e SC |
7859 | enablestring= |
7860 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 | |
7861 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
7862 | no_cache=0 | |
7863 | # Check whether --enable-combobox or --disable-combobox was given. | |
7864 | if test "${enable_combobox+set}" = set; then | |
7865 | enableval="$enable_combobox" | |
7866 | ||
7867 | if test "$enableval" = yes; then | |
7868 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
7869 | else | |
7870 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
7871 | fi | |
7872 | ||
7873 | else | |
7874 | ||
7875 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
7876 | if test "x$LINE" != x ; then | |
7877 | eval "DEFAULT_$LINE" | |
7878 | else | |
7879 | no_cache=1 | |
7880 | fi | |
7881 | ||
7882 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
7883 | ||
7884 | fi; | |
7885 | ||
7886 | eval "$ac_cv_use_combobox" | |
7887 | if test "$no_cache" != 1; then | |
7888 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
7889 | fi | |
7890 | ||
7891 | if test "$wxUSE_COMBOBOX" = yes; then | |
7892 | echo "$as_me:$LINENO: result: yes" >&5 | |
7893 | echo "${ECHO_T}yes" >&6 | |
7894 | else | |
7895 | echo "$as_me:$LINENO: result: no" >&5 | |
7896 | echo "${ECHO_T}no" >&6 | |
7897 | fi | |
7898 | ||
7899 | ||
da98e9be VZ |
7900 | enablestring= |
7901 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5 | |
7902 | echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6 | |
7903 | no_cache=0 | |
7904 | # Check whether --enable-datepick or --disable-datepick was given. | |
7905 | if test "${enable_datepick+set}" = set; then | |
7906 | enableval="$enable_datepick" | |
7907 | ||
7908 | if test "$enableval" = yes; then | |
7909 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes' | |
7910 | else | |
7911 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no' | |
7912 | fi | |
7913 | ||
7914 | else | |
7915 | ||
7916 | LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}` | |
7917 | if test "x$LINE" != x ; then | |
7918 | eval "DEFAULT_$LINE" | |
7919 | else | |
7920 | no_cache=1 | |
7921 | fi | |
7922 | ||
7923 | ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL | |
7924 | ||
7925 | fi; | |
7926 | ||
7927 | eval "$ac_cv_use_datepick" | |
7928 | if test "$no_cache" != 1; then | |
7929 | echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp | |
7930 | fi | |
7931 | ||
7932 | if test "$wxUSE_DATEPICKCTRL" = yes; then | |
7933 | echo "$as_me:$LINENO: result: yes" >&5 | |
7934 | echo "${ECHO_T}yes" >&6 | |
7935 | else | |
7936 | echo "$as_me:$LINENO: result: no" >&5 | |
7937 | echo "${ECHO_T}no" >&6 | |
7938 | fi | |
7939 | ||
7940 | ||
a848cd7e SC |
7941 | enablestring= |
7942 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 | |
7943 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
7944 | no_cache=0 | |
7945 | # Check whether --enable-display or --disable-display was given. | |
7946 | if test "${enable_display+set}" = set; then | |
7947 | enableval="$enable_display" | |
7948 | ||
7949 | if test "$enableval" = yes; then | |
7950 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
7951 | else | |
7952 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
7953 | fi | |
7954 | ||
7955 | else | |
7956 | ||
7957 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
7958 | if test "x$LINE" != x ; then | |
7959 | eval "DEFAULT_$LINE" | |
7960 | else | |
7961 | no_cache=1 | |
7962 | fi | |
7963 | ||
7964 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
7965 | ||
7966 | fi; | |
7967 | ||
7968 | eval "$ac_cv_use_display" | |
7969 | if test "$no_cache" != 1; then | |
7970 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
7971 | fi | |
7972 | ||
7973 | if test "$wxUSE_DISPLAY" = yes; then | |
7974 | echo "$as_me:$LINENO: result: yes" >&5 | |
7975 | echo "${ECHO_T}yes" >&6 | |
7976 | else | |
7977 | echo "$as_me:$LINENO: result: no" >&5 | |
7978 | echo "${ECHO_T}no" >&6 | |
7979 | fi | |
7980 | ||
7981 | ||
7982 | enablestring= | |
7983 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 | |
7984 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
7985 | no_cache=0 | |
7986 | # Check whether --enable-gauge or --disable-gauge was given. | |
7987 | if test "${enable_gauge+set}" = set; then | |
7988 | enableval="$enable_gauge" | |
7989 | ||
7990 | if test "$enableval" = yes; then | |
7991 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
7992 | else | |
7993 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
7994 | fi | |
7995 | ||
7996 | else | |
7997 | ||
7998 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
7999 | if test "x$LINE" != x ; then | |
8000 | eval "DEFAULT_$LINE" | |
8001 | else | |
8002 | no_cache=1 | |
8003 | fi | |
8004 | ||
8005 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
8006 | ||
8007 | fi; | |
8008 | ||
8009 | eval "$ac_cv_use_gauge" | |
8010 | if test "$no_cache" != 1; then | |
8011 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
8012 | fi | |
8013 | ||
8014 | if test "$wxUSE_GAUGE" = yes; then | |
8015 | echo "$as_me:$LINENO: result: yes" >&5 | |
8016 | echo "${ECHO_T}yes" >&6 | |
8017 | else | |
8018 | echo "$as_me:$LINENO: result: no" >&5 | |
8019 | echo "${ECHO_T}no" >&6 | |
8020 | fi | |
8021 | ||
8022 | ||
8023 | enablestring= | |
8024 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 | |
8025 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
8026 | no_cache=0 | |
8027 | # Check whether --enable-grid or --disable-grid was given. | |
8028 | if test "${enable_grid+set}" = set; then | |
8029 | enableval="$enable_grid" | |
8030 | ||
8031 | if test "$enableval" = yes; then | |
8032 | ac_cv_use_grid='wxUSE_GRID=yes' | |
8033 | else | |
8034 | ac_cv_use_grid='wxUSE_GRID=no' | |
8035 | fi | |
8036 | ||
8037 | else | |
8038 | ||
8039 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
8040 | if test "x$LINE" != x ; then | |
8041 | eval "DEFAULT_$LINE" | |
8042 | else | |
8043 | no_cache=1 | |
8044 | fi | |
8045 | ||
8046 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
8047 | ||
8048 | fi; | |
8049 | ||
8050 | eval "$ac_cv_use_grid" | |
8051 | if test "$no_cache" != 1; then | |
8052 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
8053 | fi | |
8054 | ||
8055 | if test "$wxUSE_GRID" = yes; then | |
8056 | echo "$as_me:$LINENO: result: yes" >&5 | |
8057 | echo "${ECHO_T}yes" >&6 | |
8058 | else | |
8059 | echo "$as_me:$LINENO: result: no" >&5 | |
8060 | echo "${ECHO_T}no" >&6 | |
8061 | fi | |
8062 | ||
8063 | ||
20e34ecc RR |
8064 | enablestring= |
8065 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5 | |
8066 | echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6 | |
8067 | no_cache=0 | |
8068 | # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given. | |
8069 | if test "${enable_dataviewctrl+set}" = set; then | |
8070 | enableval="$enable_dataviewctrl" | |
8071 | ||
8072 | if test "$enableval" = yes; then | |
8073 | ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes' | |
8074 | else | |
8075 | ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no' | |
8076 | fi | |
8077 | ||
8078 | else | |
8079 | ||
8080 | LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}` | |
8081 | if test "x$LINE" != x ; then | |
8082 | eval "DEFAULT_$LINE" | |
8083 | else | |
8084 | no_cache=1 | |
8085 | fi | |
8086 | ||
8087 | ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL | |
8088 | ||
8089 | fi; | |
8090 | ||
8091 | eval "$ac_cv_use_dataviewctrl" | |
8092 | if test "$no_cache" != 1; then | |
8093 | echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp | |
8094 | fi | |
8095 | ||
8096 | if test "$wxUSE_DATAVIEWCTRL" = yes; then | |
8097 | echo "$as_me:$LINENO: result: yes" >&5 | |
8098 | echo "${ECHO_T}yes" >&6 | |
8099 | else | |
8100 | echo "$as_me:$LINENO: result: no" >&5 | |
8101 | echo "${ECHO_T}no" >&6 | |
8102 | fi | |
8103 | ||
8104 | ||
a848cd7e SC |
8105 | enablestring= |
8106 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 | |
8107 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
8108 | no_cache=0 | |
8109 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
8110 | if test "${enable_imaglist+set}" = set; then | |
8111 | enableval="$enable_imaglist" | |
8112 | ||
8113 | if test "$enableval" = yes; then | |
8114 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
8115 | else | |
8116 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
8117 | fi | |
8118 | ||
8119 | else | |
8120 | ||
8121 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
8122 | if test "x$LINE" != x ; then | |
8123 | eval "DEFAULT_$LINE" | |
8124 | else | |
8125 | no_cache=1 | |
8126 | fi | |
8127 | ||
8128 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
8129 | ||
8130 | fi; | |
8131 | ||
8132 | eval "$ac_cv_use_imaglist" | |
8133 | if test "$no_cache" != 1; then | |
8134 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
8135 | fi | |
8136 | ||
8137 | if test "$wxUSE_IMAGLIST" = yes; then | |
8138 | echo "$as_me:$LINENO: result: yes" >&5 | |
8139 | echo "${ECHO_T}yes" >&6 | |
8140 | else | |
8141 | echo "$as_me:$LINENO: result: no" >&5 | |
8142 | echo "${ECHO_T}no" >&6 | |
8143 | fi | |
8144 | ||
8145 | ||
8146 | enablestring= | |
8147 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
8148 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
8149 | no_cache=0 | |
8150 | # Check whether --enable-listbook or --disable-listbook was given. | |
8151 | if test "${enable_listbook+set}" = set; then | |
8152 | enableval="$enable_listbook" | |
8153 | ||
8154 | if test "$enableval" = yes; then | |
8155 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
8156 | else | |
8157 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
8158 | fi | |
8159 | ||
8160 | else | |
8161 | ||
8162 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
8163 | if test "x$LINE" != x ; then | |
8164 | eval "DEFAULT_$LINE" | |
8165 | else | |
8166 | no_cache=1 | |
8167 | fi | |
8168 | ||
8169 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
8170 | ||
8171 | fi; | |
8172 | ||
8173 | eval "$ac_cv_use_listbook" | |
8174 | if test "$no_cache" != 1; then | |
8175 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
8176 | fi | |
8177 | ||
8178 | if test "$wxUSE_LISTBOOK" = yes; then | |
8179 | echo "$as_me:$LINENO: result: yes" >&5 | |
8180 | echo "${ECHO_T}yes" >&6 | |
8181 | else | |
8182 | echo "$as_me:$LINENO: result: no" >&5 | |
8183 | echo "${ECHO_T}no" >&6 | |
8184 | fi | |
8185 | ||
8186 | ||
8187 | enablestring= | |
8188 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 | |
8189 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
8190 | no_cache=0 | |
8191 | # Check whether --enable-listbox or --disable-listbox was given. | |
8192 | if test "${enable_listbox+set}" = set; then | |
8193 | enableval="$enable_listbox" | |
8194 | ||
8195 | if test "$enableval" = yes; then | |
8196 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
8197 | else | |
8198 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
8199 | fi | |
8200 | ||
8201 | else | |
8202 | ||
8203 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
8204 | if test "x$LINE" != x ; then | |
8205 | eval "DEFAULT_$LINE" | |
8206 | else | |
8207 | no_cache=1 | |
8208 | fi | |
8209 | ||
8210 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
8211 | ||
8212 | fi; | |
8213 | ||
8214 | eval "$ac_cv_use_listbox" | |
8215 | if test "$no_cache" != 1; then | |
8216 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
8217 | fi | |
8218 | ||
8219 | if test "$wxUSE_LISTBOX" = yes; then | |
8220 | echo "$as_me:$LINENO: result: yes" >&5 | |
8221 | echo "${ECHO_T}yes" >&6 | |
8222 | else | |
8223 | echo "$as_me:$LINENO: result: no" >&5 | |
8224 | echo "${ECHO_T}no" >&6 | |
8225 | fi | |
8226 | ||
8227 | ||
8228 | enablestring= | |
8229 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 | |
8230 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
8231 | no_cache=0 | |
8232 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
8233 | if test "${enable_listctrl+set}" = set; then | |
8234 | enableval="$enable_listctrl" | |
8235 | ||
8236 | if test "$enableval" = yes; then | |
8237 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
8238 | else | |
8239 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
8240 | fi | |
8241 | ||
8242 | else | |
8243 | ||
8244 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
8245 | if test "x$LINE" != x ; then | |
8246 | eval "DEFAULT_$LINE" | |
8247 | else | |
8248 | no_cache=1 | |
8249 | fi | |
8250 | ||
8251 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
8252 | ||
8253 | fi; | |
8254 | ||
8255 | eval "$ac_cv_use_listctrl" | |
8256 | if test "$no_cache" != 1; then | |
8257 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
8258 | fi | |
8259 | ||
8260 | if test "$wxUSE_LISTCTRL" = yes; then | |
8261 | echo "$as_me:$LINENO: result: yes" >&5 | |
8262 | echo "${ECHO_T}yes" >&6 | |
8263 | else | |
8264 | echo "$as_me:$LINENO: result: no" >&5 | |
8265 | echo "${ECHO_T}no" >&6 | |
8266 | fi | |
8267 | ||
8268 | ||
8269 | enablestring= | |
8270 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 | |
8271 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
8272 | no_cache=0 | |
8273 | # Check whether --enable-notebook or --disable-notebook was given. | |
8274 | if test "${enable_notebook+set}" = set; then | |
8275 | enableval="$enable_notebook" | |
8276 | ||
8277 | if test "$enableval" = yes; then | |
8278 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
8279 | else | |
8280 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
8281 | fi | |
8282 | ||
8283 | else | |
8284 | ||
8285 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
8286 | if test "x$LINE" != x ; then | |
8287 | eval "DEFAULT_$LINE" | |
8288 | else | |
8289 | no_cache=1 | |
8290 | fi | |
8291 | ||
8292 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
8293 | ||
8294 | fi; | |
8295 | ||
8296 | eval "$ac_cv_use_notebook" | |
8297 | if test "$no_cache" != 1; then | |
8298 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
8299 | fi | |
8300 | ||
8301 | if test "$wxUSE_NOTEBOOK" = yes; then | |
8302 | echo "$as_me:$LINENO: result: yes" >&5 | |
8303 | echo "${ECHO_T}yes" >&6 | |
8304 | else | |
8305 | echo "$as_me:$LINENO: result: no" >&5 | |
8306 | echo "${ECHO_T}no" >&6 | |
8307 | fi | |
8308 | ||
8309 | ||
8310 | enablestring= | |
8311 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 | |
8312 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
8313 | no_cache=0 | |
8314 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
8315 | if test "${enable_radiobox+set}" = set; then | |
8316 | enableval="$enable_radiobox" | |
8317 | ||
8318 | if test "$enableval" = yes; then | |
8319 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
8320 | else | |
8321 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
8322 | fi | |
8323 | ||
8324 | else | |
8325 | ||
8326 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
8327 | if test "x$LINE" != x ; then | |
8328 | eval "DEFAULT_$LINE" | |
8329 | else | |
8330 | no_cache=1 | |
8331 | fi | |
8332 | ||
8333 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
8334 | ||
8335 | fi; | |
8336 | ||
8337 | eval "$ac_cv_use_radiobox" | |
8338 | if test "$no_cache" != 1; then | |
8339 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
8340 | fi | |
8341 | ||
8342 | if test "$wxUSE_RADIOBOX" = yes; then | |
8343 | echo "$as_me:$LINENO: result: yes" >&5 | |
8344 | echo "${ECHO_T}yes" >&6 | |
8345 | else | |
8346 | echo "$as_me:$LINENO: result: no" >&5 | |
8347 | echo "${ECHO_T}no" >&6 | |
8348 | fi | |
8349 | ||
8350 | ||
8351 | enablestring= | |
8352 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 | |
8353 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
8354 | no_cache=0 | |
8355 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
8356 | if test "${enable_radiobtn+set}" = set; then | |
8357 | enableval="$enable_radiobtn" | |
8358 | ||
8359 | if test "$enableval" = yes; then | |
8360 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
8361 | else | |
8362 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
8363 | fi | |
8364 | ||
8365 | else | |
8366 | ||
8367 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
8368 | if test "x$LINE" != x ; then | |
8369 | eval "DEFAULT_$LINE" | |
8370 | else | |
8371 | no_cache=1 | |
8372 | fi | |
8373 | ||
8374 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
8375 | ||
8376 | fi; | |
8377 | ||
8378 | eval "$ac_cv_use_radiobtn" | |
8379 | if test "$no_cache" != 1; then | |
8380 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
8381 | fi | |
8382 | ||
8383 | if test "$wxUSE_RADIOBTN" = yes; then | |
8384 | echo "$as_me:$LINENO: result: yes" >&5 | |
8385 | echo "${ECHO_T}yes" >&6 | |
8386 | else | |
8387 | echo "$as_me:$LINENO: result: no" >&5 | |
8388 | echo "${ECHO_T}no" >&6 | |
8389 | fi | |
8390 | ||
8391 | ||
8392 | enablestring= | |
8393 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 | |
8394 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
8395 | no_cache=0 | |
8396 | # Check whether --enable-sash or --disable-sash was given. | |
8397 | if test "${enable_sash+set}" = set; then | |
8398 | enableval="$enable_sash" | |
8399 | ||
8400 | if test "$enableval" = yes; then | |
8401 | ac_cv_use_sash='wxUSE_SASH=yes' | |
8402 | else | |
8403 | ac_cv_use_sash='wxUSE_SASH=no' | |
8404 | fi | |
8405 | ||
8406 | else | |
8407 | ||
8408 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
8409 | if test "x$LINE" != x ; then | |
8410 | eval "DEFAULT_$LINE" | |
8411 | else | |
8412 | no_cache=1 | |
8413 | fi | |
8414 | ||
8415 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
8416 | ||
8417 | fi; | |
8418 | ||
8419 | eval "$ac_cv_use_sash" | |
8420 | if test "$no_cache" != 1; then | |
8421 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
8422 | fi | |
8423 | ||
8424 | if test "$wxUSE_SASH" = yes; then | |
8425 | echo "$as_me:$LINENO: result: yes" >&5 | |
8426 | echo "${ECHO_T}yes" >&6 | |
8427 | else | |
8428 | echo "$as_me:$LINENO: result: no" >&5 | |
8429 | echo "${ECHO_T}no" >&6 | |
8430 | fi | |
8431 | ||
8432 | ||
8433 | enablestring= | |
8434 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 | |
8435 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
8436 | no_cache=0 | |
8437 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
8438 | if test "${enable_scrollbar+set}" = set; then | |
8439 | enableval="$enable_scrollbar" | |
8440 | ||
8441 | if test "$enableval" = yes; then | |
8442 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
8443 | else | |
8444 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
8445 | fi | |
8446 | ||
8447 | else | |
8448 | ||
8449 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
8450 | if test "x$LINE" != x ; then | |
8451 | eval "DEFAULT_$LINE" | |
8452 | else | |
8453 | no_cache=1 | |
8454 | fi | |
8455 | ||
8456 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
8457 | ||
8458 | fi; | |
8459 | ||
8460 | eval "$ac_cv_use_scrollbar" | |
8461 | if test "$no_cache" != 1; then | |
8462 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
8463 | fi | |
8464 | ||
8465 | if test "$wxUSE_SCROLLBAR" = yes; then | |
8466 | echo "$as_me:$LINENO: result: yes" >&5 | |
8467 | echo "${ECHO_T}yes" >&6 | |
8468 | else | |
8469 | echo "$as_me:$LINENO: result: no" >&5 | |
8470 | echo "${ECHO_T}no" >&6 | |
8471 | fi | |
8472 | ||
8473 | ||
8474 | enablestring= | |
8475 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 | |
8476 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
8477 | no_cache=0 | |
8478 | # Check whether --enable-slider or --disable-slider was given. | |
8479 | if test "${enable_slider+set}" = set; then | |
8480 | enableval="$enable_slider" | |
8481 | ||
8482 | if test "$enableval" = yes; then | |
8483 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
8484 | else | |
8485 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
8486 | fi | |
8487 | ||
8488 | else | |
8489 | ||
8490 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
8491 | if test "x$LINE" != x ; then | |
8492 | eval "DEFAULT_$LINE" | |
8493 | else | |
8494 | no_cache=1 | |
8495 | fi | |
8496 | ||
8497 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
8498 | ||
8499 | fi; | |
8500 | ||
8501 | eval "$ac_cv_use_slider" | |
8502 | if test "$no_cache" != 1; then | |
8503 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
8504 | fi | |
8505 | ||
8506 | if test "$wxUSE_SLIDER" = yes; then | |
8507 | echo "$as_me:$LINENO: result: yes" >&5 | |
8508 | echo "${ECHO_T}yes" >&6 | |
8509 | else | |
8510 | echo "$as_me:$LINENO: result: no" >&5 | |
8511 | echo "${ECHO_T}no" >&6 | |
8512 | fi | |
8513 | ||
8514 | ||
8515 | enablestring= | |
8516 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 | |
8517 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
8518 | no_cache=0 | |
8519 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
8520 | if test "${enable_spinbtn+set}" = set; then | |
8521 | enableval="$enable_spinbtn" | |
8522 | ||
8523 | if test "$enableval" = yes; then | |
8524 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
8525 | else | |
8526 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
8527 | fi | |
8528 | ||
8529 | else | |
8530 | ||
8531 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
8532 | if test "x$LINE" != x ; then | |
8533 | eval "DEFAULT_$LINE" | |
8534 | else | |
8535 | no_cache=1 | |
8536 | fi | |
8537 | ||
8538 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
8539 | ||
8540 | fi; | |
8541 | ||
8542 | eval "$ac_cv_use_spinbtn" | |
8543 | if test "$no_cache" != 1; then | |
8544 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
8545 | fi | |
8546 | ||
8547 | if test "$wxUSE_SPINBTN" = yes; then | |
8548 | echo "$as_me:$LINENO: result: yes" >&5 | |
8549 | echo "${ECHO_T}yes" >&6 | |
8550 | else | |
8551 | echo "$as_me:$LINENO: result: no" >&5 | |
8552 | echo "${ECHO_T}no" >&6 | |
8553 | fi | |
8554 | ||
8555 | ||
8556 | enablestring= | |
8557 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 | |
8558 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
8559 | no_cache=0 | |
8560 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
8561 | if test "${enable_spinctrl+set}" = set; then | |
8562 | enableval="$enable_spinctrl" | |
8563 | ||
8564 | if test "$enableval" = yes; then | |
8565 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
8566 | else | |
8567 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
8568 | fi | |
8569 | ||
8570 | else | |
8571 | ||
8572 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
8573 | if test "x$LINE" != x ; then | |
8574 | eval "DEFAULT_$LINE" | |
8575 | else | |
8576 | no_cache=1 | |
8577 | fi | |
8578 | ||
8579 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
8580 | ||
8581 | fi; | |
8582 | ||
8583 | eval "$ac_cv_use_spinctrl" | |
8584 | if test "$no_cache" != 1; then | |
8585 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
8586 | fi | |
8587 | ||
8588 | if test "$wxUSE_SPINCTRL" = yes; then | |
8589 | echo "$as_me:$LINENO: result: yes" >&5 | |
8590 | echo "${ECHO_T}yes" >&6 | |
8591 | else | |
8592 | echo "$as_me:$LINENO: result: no" >&5 | |
8593 | echo "${ECHO_T}no" >&6 | |
8594 | fi | |
8595 | ||
8596 | ||
8597 | enablestring= | |
8598 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 | |
8599 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
8600 | no_cache=0 | |
8601 | # Check whether --enable-splitter or --disable-splitter was given. | |
8602 | if test "${enable_splitter+set}" = set; then | |
8603 | enableval="$enable_splitter" | |
8604 | ||
8605 | if test "$enableval" = yes; then | |
8606 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
8607 | else | |
8608 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
8609 | fi | |
8610 | ||
8611 | else | |
8612 | ||
8613 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
8614 | if test "x$LINE" != x ; then | |
8615 | eval "DEFAULT_$LINE" | |
8616 | else | |
8617 | no_cache=1 | |
8618 | fi | |
8619 | ||
8620 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
8621 | ||
8622 | fi; | |
8623 | ||
8624 | eval "$ac_cv_use_splitter" | |
8625 | if test "$no_cache" != 1; then | |
8626 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
8627 | fi | |
8628 | ||
8629 | if test "$wxUSE_SPLITTER" = yes; then | |
8630 | echo "$as_me:$LINENO: result: yes" >&5 | |
8631 | echo "${ECHO_T}yes" >&6 | |
8632 | else | |
8633 | echo "$as_me:$LINENO: result: no" >&5 | |
8634 | echo "${ECHO_T}no" >&6 | |
8635 | fi | |
8636 | ||
8637 | ||
8638 | enablestring= | |
8639 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 | |
8640 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
8641 | no_cache=0 | |
8642 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
8643 | if test "${enable_statbmp+set}" = set; then | |
8644 | enableval="$enable_statbmp" | |
8645 | ||
8646 | if test "$enableval" = yes; then | |
8647 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
8648 | else | |
8649 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
8650 | fi | |
8651 | ||
8652 | else | |
8653 | ||
8654 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
8655 | if test "x$LINE" != x ; then | |
8656 | eval "DEFAULT_$LINE" | |
8657 | else | |
8658 | no_cache=1 | |
8659 | fi | |
8660 | ||
8661 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
8662 | ||
8663 | fi; | |
8664 | ||
8665 | eval "$ac_cv_use_statbmp" | |
8666 | if test "$no_cache" != 1; then | |
8667 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
8668 | fi | |
8669 | ||
8670 | if test "$wxUSE_STATBMP" = yes; then | |
8671 | echo "$as_me:$LINENO: result: yes" >&5 | |
8672 | echo "${ECHO_T}yes" >&6 | |
8673 | else | |
8674 | echo "$as_me:$LINENO: result: no" >&5 | |
8675 | echo "${ECHO_T}no" >&6 | |
8676 | fi | |
8677 | ||
8678 | ||
8679 | enablestring= | |
8680 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 | |
8681 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
8682 | no_cache=0 | |
8683 | # Check whether --enable-statbox or --disable-statbox was given. | |
8684 | if test "${enable_statbox+set}" = set; then | |
8685 | enableval="$enable_statbox" | |
8686 | ||
8687 | if test "$enableval" = yes; then | |
8688 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
8689 | else | |
8690 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
8691 | fi | |
8692 | ||
8693 | else | |
8694 | ||
8695 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
8696 | if test "x$LINE" != x ; then | |
8697 | eval "DEFAULT_$LINE" | |
8698 | else | |
8699 | no_cache=1 | |
8700 | fi | |
8701 | ||
8702 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
8703 | ||
8704 | fi; | |
8705 | ||
8706 | eval "$ac_cv_use_statbox" | |
8707 | if test "$no_cache" != 1; then | |
8708 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
8709 | fi | |
8710 | ||
8711 | if test "$wxUSE_STATBOX" = yes; then | |
8712 | echo "$as_me:$LINENO: result: yes" >&5 | |
8713 | echo "${ECHO_T}yes" >&6 | |
8714 | else | |
8715 | echo "$as_me:$LINENO: result: no" >&5 | |
8716 | echo "${ECHO_T}no" >&6 | |
8717 | fi | |
8718 | ||
8719 | ||
8720 | enablestring= | |
8721 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 | |
8722 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
8723 | no_cache=0 | |
8724 | # Check whether --enable-statline or --disable-statline was given. | |
8725 | if test "${enable_statline+set}" = set; then | |
8726 | enableval="$enable_statline" | |
8727 | ||
8728 | if test "$enableval" = yes; then | |
8729 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
8730 | else | |
8731 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
8732 | fi | |
8733 | ||
8734 | else | |
8735 | ||
8736 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
8737 | if test "x$LINE" != x ; then | |
8738 | eval "DEFAULT_$LINE" | |
8739 | else | |
8740 | no_cache=1 | |
8741 | fi | |
8742 | ||
8743 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
8744 | ||
8745 | fi; | |
8746 | ||
8747 | eval "$ac_cv_use_statline" | |
8748 | if test "$no_cache" != 1; then | |
8749 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
8750 | fi | |
8751 | ||
8752 | if test "$wxUSE_STATLINE" = yes; then | |
8753 | echo "$as_me:$LINENO: result: yes" >&5 | |
8754 | echo "${ECHO_T}yes" >&6 | |
8755 | else | |
8756 | echo "$as_me:$LINENO: result: no" >&5 | |
8757 | echo "${ECHO_T}no" >&6 | |
8758 | fi | |
8759 | ||
8760 | ||
8761 | enablestring= | |
8762 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 | |
8763 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
8764 | no_cache=0 | |
8765 | # Check whether --enable-stattext or --disable-stattext was given. | |
8766 | if test "${enable_stattext+set}" = set; then | |
8767 | enableval="$enable_stattext" | |
8768 | ||
8769 | if test "$enableval" = yes; then | |
8770 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
8771 | else | |
8772 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
8773 | fi | |
8774 | ||
8775 | else | |
8776 | ||
8777 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
8778 | if test "x$LINE" != x ; then | |
8779 | eval "DEFAULT_$LINE" | |
8780 | else | |
8781 | no_cache=1 | |
8782 | fi | |
8783 | ||
8784 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
8785 | ||
8786 | fi; | |
8787 | ||
8788 | eval "$ac_cv_use_stattext" | |
8789 | if test "$no_cache" != 1; then | |
8790 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
8791 | fi | |
8792 | ||
8793 | if test "$wxUSE_STATTEXT" = yes; then | |
8794 | echo "$as_me:$LINENO: result: yes" >&5 | |
8795 | echo "${ECHO_T}yes" >&6 | |
8796 | else | |
8797 | echo "$as_me:$LINENO: result: no" >&5 | |
8798 | echo "${ECHO_T}no" >&6 | |
8799 | fi | |
8800 | ||
8801 | ||
8802 | enablestring= | |
8803 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 | |
8804 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
8805 | no_cache=0 | |
8806 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
8807 | if test "${enable_statusbar+set}" = set; then | |
8808 | enableval="$enable_statusbar" | |
8809 | ||
8810 | if test "$enableval" = yes; then | |
8811 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
8812 | else | |
8813 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
8814 | fi | |
8815 | ||
8816 | else | |
8817 | ||
8818 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
8819 | if test "x$LINE" != x ; then | |
8820 | eval "DEFAULT_$LINE" | |
8821 | else | |
8822 | no_cache=1 | |
8823 | fi | |
8824 | ||
8825 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
8826 | ||
8827 | fi; | |
8828 | ||
8829 | eval "$ac_cv_use_statusbar" | |
8830 | if test "$no_cache" != 1; then | |
8831 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
8832 | fi | |
8833 | ||
8834 | if test "$wxUSE_STATUSBAR" = yes; then | |
8835 | echo "$as_me:$LINENO: result: yes" >&5 | |
8836 | echo "${ECHO_T}yes" >&6 | |
8837 | else | |
8838 | echo "$as_me:$LINENO: result: no" >&5 | |
8839 | echo "${ECHO_T}no" >&6 | |
8840 | fi | |
8841 | ||
8842 | ||
8843 | enablestring= | |
8844 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 | |
8845 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
8846 | no_cache=0 | |
8847 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
8848 | if test "${enable_tabdialog+set}" = set; then | |
8849 | enableval="$enable_tabdialog" | |
8850 | ||
8851 | if test "$enableval" = yes; then | |
8852 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
8853 | else | |
8854 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
8855 | fi | |
8856 | ||
8857 | else | |
8858 | ||
8859 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
8860 | if test "x$LINE" != x ; then | |
8861 | eval "DEFAULT_$LINE" | |
8862 | else | |
8863 | no_cache=1 | |
8864 | fi | |
8865 | ||
8866 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
8867 | ||
8868 | fi; | |
8869 | ||
8870 | eval "$ac_cv_use_tabdialog" | |
8871 | if test "$no_cache" != 1; then | |
8872 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
8873 | fi | |
8874 | ||
8875 | if test "$wxUSE_TABDIALOG" = yes; then | |
8876 | echo "$as_me:$LINENO: result: yes" >&5 | |
8877 | echo "${ECHO_T}yes" >&6 | |
8878 | else | |
8879 | echo "$as_me:$LINENO: result: no" >&5 | |
8880 | echo "${ECHO_T}no" >&6 | |
8881 | fi | |
8882 | ||
8883 | ||
8884 | enablestring= | |
8885 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 | |
8886 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
8887 | no_cache=0 | |
8888 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
8889 | if test "${enable_textctrl+set}" = set; then | |
8890 | enableval="$enable_textctrl" | |
8891 | ||
8892 | if test "$enableval" = yes; then | |
8893 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
8894 | else | |
8895 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
8896 | fi | |
8897 | ||
8898 | else | |
8899 | ||
8900 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
8901 | if test "x$LINE" != x ; then | |
8902 | eval "DEFAULT_$LINE" | |
8903 | else | |
8904 | no_cache=1 | |
8905 | fi | |
8906 | ||
8907 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
8908 | ||
8909 | fi; | |
8910 | ||
8911 | eval "$ac_cv_use_textctrl" | |
8912 | if test "$no_cache" != 1; then | |
8913 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
8914 | fi | |
8915 | ||
8916 | if test "$wxUSE_TEXTCTRL" = yes; then | |
8917 | echo "$as_me:$LINENO: result: yes" >&5 | |
8918 | echo "${ECHO_T}yes" >&6 | |
8919 | else | |
8920 | echo "$as_me:$LINENO: result: no" >&5 | |
8921 | echo "${ECHO_T}no" >&6 | |
8922 | fi | |
8923 | ||
8924 | ||
8925 | enablestring= | |
8926 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 | |
8927 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
8928 | no_cache=0 | |
8929 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
8930 | if test "${enable_togglebtn+set}" = set; then | |
8931 | enableval="$enable_togglebtn" | |
8932 | ||
8933 | if test "$enableval" = yes; then | |
8934 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
8935 | else | |
8936 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
8937 | fi | |
8938 | ||
8939 | else | |
8940 | ||
8941 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
8942 | if test "x$LINE" != x ; then | |
8943 | eval "DEFAULT_$LINE" | |
8944 | else | |
8945 | no_cache=1 | |
8946 | fi | |
8947 | ||
8948 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
8949 | ||
8950 | fi; | |
8951 | ||
8952 | eval "$ac_cv_use_togglebtn" | |
8953 | if test "$no_cache" != 1; then | |
8954 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
8955 | fi | |
8956 | ||
8957 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
8958 | echo "$as_me:$LINENO: result: yes" >&5 | |
8959 | echo "${ECHO_T}yes" >&6 | |
8960 | else | |
8961 | echo "$as_me:$LINENO: result: no" >&5 | |
8962 | echo "${ECHO_T}no" >&6 | |
8963 | fi | |
8964 | ||
8965 | ||
8966 | enablestring= | |
8967 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 | |
8968 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
8969 | no_cache=0 | |
8970 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
8971 | if test "${enable_toolbar+set}" = set; then | |
8972 | enableval="$enable_toolbar" | |
8973 | ||
8974 | if test "$enableval" = yes; then | |
8975 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
8976 | else | |
8977 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
8978 | fi | |
8979 | ||
8980 | else | |
8981 | ||
8982 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
8983 | if test "x$LINE" != x ; then | |
8984 | eval "DEFAULT_$LINE" | |
8985 | else | |
8986 | no_cache=1 | |
8987 | fi | |
8988 | ||
8989 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
8990 | ||
8991 | fi; | |
8992 | ||
8993 | eval "$ac_cv_use_toolbar" | |
8994 | if test "$no_cache" != 1; then | |
8995 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
8996 | fi | |
8997 | ||
8998 | if test "$wxUSE_TOOLBAR" = yes; then | |
8999 | echo "$as_me:$LINENO: result: yes" >&5 | |
9000 | echo "${ECHO_T}yes" >&6 | |
9001 | else | |
9002 | echo "$as_me:$LINENO: result: no" >&5 | |
9003 | echo "${ECHO_T}no" >&6 | |
9004 | fi | |
9005 | ||
9006 | ||
9007 | enablestring= | |
9008 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 | |
9009 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
9010 | no_cache=0 | |
9011 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
9012 | if test "${enable_tbarnative+set}" = set; then | |
9013 | enableval="$enable_tbarnative" | |
9014 | ||
9015 | if test "$enableval" = yes; then | |
9016 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
9017 | else | |
9018 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
9019 | fi | |
9020 | ||
9021 | else | |
9022 | ||
9023 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
9024 | if test "x$LINE" != x ; then | |
9025 | eval "DEFAULT_$LINE" | |
9026 | else | |
9027 | no_cache=1 | |
9028 | fi | |
9029 | ||
9030 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
9031 | ||
9032 | fi; | |
9033 | ||
9034 | eval "$ac_cv_use_tbarnative" | |
9035 | if test "$no_cache" != 1; then | |
9036 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
9037 | fi | |
9038 | ||
9039 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
9040 | echo "$as_me:$LINENO: result: yes" >&5 | |
9041 | echo "${ECHO_T}yes" >&6 | |
9042 | else | |
9043 | echo "$as_me:$LINENO: result: no" >&5 | |
9044 | echo "${ECHO_T}no" >&6 | |
9045 | fi | |
9046 | ||
9047 | ||
9048 | enablestring= | |
9049 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 | |
9050 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
9051 | no_cache=0 | |
9052 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
9053 | if test "${enable_tbarsmpl+set}" = set; then | |
9054 | enableval="$enable_tbarsmpl" | |
9055 | ||
9056 | if test "$enableval" = yes; then | |
9057 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
9058 | else | |
9059 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
9060 | fi | |
9061 | ||
9062 | else | |
9063 | ||
9064 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
9065 | if test "x$LINE" != x ; then | |
9066 | eval "DEFAULT_$LINE" | |
9067 | else | |
9068 | no_cache=1 | |
9069 | fi | |
9070 | ||
9071 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
9072 | ||
9073 | fi; | |
9074 | ||
9075 | eval "$ac_cv_use_tbarsmpl" | |
9076 | if test "$no_cache" != 1; then | |
9077 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
9078 | fi | |
9079 | ||
9080 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
9081 | echo "$as_me:$LINENO: result: yes" >&5 | |
9082 | echo "${ECHO_T}yes" >&6 | |
9083 | else | |
9084 | echo "$as_me:$LINENO: result: no" >&5 | |
9085 | echo "${ECHO_T}no" >&6 | |
9086 | fi | |
9087 | ||
9088 | ||
0093c2fc VZ |
9089 | enablestring= |
9090 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5 | |
9091 | echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6 | |
9092 | no_cache=0 | |
9093 | # Check whether --enable-treebook or --disable-treebook was given. | |
9094 | if test "${enable_treebook+set}" = set; then | |
9095 | enableval="$enable_treebook" | |
9096 | ||
9097 | if test "$enableval" = yes; then | |
9098 | ac_cv_use_treebook='wxUSE_TREEBOOK=yes' | |
9099 | else | |
9100 | ac_cv_use_treebook='wxUSE_TREEBOOK=no' | |
9101 | fi | |
9102 | ||
9103 | else | |
9104 | ||
9105 | LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}` | |
9106 | if test "x$LINE" != x ; then | |
9107 | eval "DEFAULT_$LINE" | |
9108 | else | |
9109 | no_cache=1 | |
9110 | fi | |
9111 | ||
9112 | ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK | |
9113 | ||
9114 | fi; | |
9115 | ||
9116 | eval "$ac_cv_use_treebook" | |
9117 | if test "$no_cache" != 1; then | |
9118 | echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp | |
9119 | fi | |
9120 | ||
9121 | if test "$wxUSE_TREEBOOK" = yes; then | |
9122 | echo "$as_me:$LINENO: result: yes" >&5 | |
9123 | echo "${ECHO_T}yes" >&6 | |
9124 | else | |
9125 | echo "$as_me:$LINENO: result: no" >&5 | |
9126 | echo "${ECHO_T}no" >&6 | |
9127 | fi | |
9128 | ||
9129 | ||
a848cd7e SC |
9130 | enablestring= |
9131 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 | |
9132 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
9133 | no_cache=0 | |
9134 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
9135 | if test "${enable_treectrl+set}" = set; then | |
9136 | enableval="$enable_treectrl" | |
9137 | ||
9138 | if test "$enableval" = yes; then | |
9139 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
9140 | else | |
9141 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
9142 | fi | |
9143 | ||
9144 | else | |
9145 | ||
9146 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
9147 | if test "x$LINE" != x ; then | |
9148 | eval "DEFAULT_$LINE" | |
9149 | else | |
9150 | no_cache=1 | |
9151 | fi | |
9152 | ||
9153 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
9154 | ||
9155 | fi; | |
9156 | ||
9157 | eval "$ac_cv_use_treectrl" | |
9158 | if test "$no_cache" != 1; then | |
9159 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
9160 | fi | |
9161 | ||
9162 | if test "$wxUSE_TREECTRL" = yes; then | |
9163 | echo "$as_me:$LINENO: result: yes" >&5 | |
9164 | echo "${ECHO_T}yes" >&6 | |
9165 | else | |
9166 | echo "$as_me:$LINENO: result: no" >&5 | |
9167 | echo "${ECHO_T}no" >&6 | |
9168 | fi | |
9169 | ||
9170 | ||
9171 | enablestring= | |
9172 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 | |
9173 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
9174 | no_cache=0 | |
9175 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
9176 | if test "${enable_tipwindow+set}" = set; then | |
9177 | enableval="$enable_tipwindow" | |
9178 | ||
9179 | if test "$enableval" = yes; then | |
9180 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
9181 | else | |
9182 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
9183 | fi | |
9184 | ||
9185 | else | |
9186 | ||
9187 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
9188 | if test "x$LINE" != x ; then | |
9189 | eval "DEFAULT_$LINE" | |
9190 | else | |
9191 | no_cache=1 | |
9192 | fi | |
9193 | ||
9194 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
9195 | ||
9196 | fi; | |
9197 | ||
9198 | eval "$ac_cv_use_tipwindow" | |
9199 | if test "$no_cache" != 1; then | |
9200 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
9201 | fi | |
9202 | ||
9203 | if test "$wxUSE_TIPWINDOW" = yes; then | |
9204 | echo "$as_me:$LINENO: result: yes" >&5 | |
9205 | echo "${ECHO_T}yes" >&6 | |
9206 | else | |
9207 | echo "$as_me:$LINENO: result: no" >&5 | |
9208 | echo "${ECHO_T}no" >&6 | |
9209 | fi | |
9210 | ||
9211 | ||
9212 | enablestring= | |
9213 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 | |
9214 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
9215 | no_cache=0 | |
9216 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
9217 | if test "${enable_popupwin+set}" = set; then | |
9218 | enableval="$enable_popupwin" | |
9219 | ||
9220 | if test "$enableval" = yes; then | |
9221 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
9222 | else | |
9223 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
9224 | fi | |
9225 | ||
9226 | else | |
9227 | ||
9228 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
9229 | if test "x$LINE" != x ; then | |
9230 | eval "DEFAULT_$LINE" | |
9231 | else | |
9232 | no_cache=1 | |
9233 | fi | |
9234 | ||
9235 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
9236 | ||
9237 | fi; | |
9238 | ||
9239 | eval "$ac_cv_use_popupwin" | |
9240 | if test "$no_cache" != 1; then | |
9241 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
9242 | fi | |
9243 | ||
9244 | if test "$wxUSE_POPUPWIN" = yes; then | |
9245 | echo "$as_me:$LINENO: result: yes" >&5 | |
9246 | echo "${ECHO_T}yes" >&6 | |
9247 | else | |
9248 | echo "$as_me:$LINENO: result: no" >&5 | |
9249 | echo "${ECHO_T}no" >&6 | |
9250 | fi | |
9251 | ||
9252 | ||
9253 | ||
9254 | ||
9255 | enablestring= | |
9256 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 | |
9257 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
9258 | no_cache=0 | |
9259 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
9260 | if test "${enable_commondlg+set}" = set; then | |
9261 | enableval="$enable_commondlg" | |
9262 | ||
9263 | if test "$enableval" = yes; then | |
9264 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
9265 | else | |
9266 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
9267 | fi | |
9268 | ||
9269 | else | |
9270 | ||
9271 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
9272 | if test "x$LINE" != x ; then | |
9273 | eval "DEFAULT_$LINE" | |
9274 | else | |
9275 | no_cache=1 | |
9276 | fi | |
9277 | ||
9278 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
9279 | ||
9280 | fi; | |
9281 | ||
9282 | eval "$ac_cv_use_commondlg" | |
9283 | if test "$no_cache" != 1; then | |
9284 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
9285 | fi | |
9286 | ||
9287 | if test "$wxUSE_COMMONDLGS" = yes; then | |
9288 | echo "$as_me:$LINENO: result: yes" >&5 | |
9289 | echo "${ECHO_T}yes" >&6 | |
9290 | else | |
9291 | echo "$as_me:$LINENO: result: no" >&5 | |
9292 | echo "${ECHO_T}no" >&6 | |
9293 | fi | |
9294 | ||
9295 | ||
9296 | enablestring= | |
9297 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 | |
9298 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
9299 | no_cache=0 | |
9300 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
9301 | if test "${enable_choicedlg+set}" = set; then | |
9302 | enableval="$enable_choicedlg" | |
9303 | ||
9304 | if test "$enableval" = yes; then | |
9305 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
9306 | else | |
9307 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
9308 | fi | |
9309 | ||
9310 | else | |
9311 | ||
9312 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
9313 | if test "x$LINE" != x ; then | |
9314 | eval "DEFAULT_$LINE" | |
9315 | else | |
9316 | no_cache=1 | |
9317 | fi | |
9318 | ||
9319 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
9320 | ||
9321 | fi; | |
9322 | ||
9323 | eval "$ac_cv_use_choicedlg" | |
9324 | if test "$no_cache" != 1; then | |
9325 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
9326 | fi | |
9327 | ||
9328 | if test "$wxUSE_CHOICEDLG" = yes; then | |
9329 | echo "$as_me:$LINENO: result: yes" >&5 | |
9330 | echo "${ECHO_T}yes" >&6 | |
9331 | else | |
9332 | echo "$as_me:$LINENO: result: no" >&5 | |
9333 | echo "${ECHO_T}no" >&6 | |
9334 | fi | |
9335 | ||
9336 | ||
9337 | enablestring= | |
9338 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 | |
9339 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
9340 | no_cache=0 | |
9341 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
9342 | if test "${enable_coldlg+set}" = set; then | |
9343 | enableval="$enable_coldlg" | |
9344 | ||
9345 | if test "$enableval" = yes; then | |
9346 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
9347 | else | |
9348 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
9349 | fi | |
9350 | ||
9351 | else | |
9352 | ||
9353 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
9354 | if test "x$LINE" != x ; then | |
9355 | eval "DEFAULT_$LINE" | |
9356 | else | |
9357 | no_cache=1 | |
9358 | fi | |
9359 | ||
9360 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
9361 | ||
9362 | fi; | |
9363 | ||
9364 | eval "$ac_cv_use_coldlg" | |
9365 | if test "$no_cache" != 1; then | |
9366 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
9367 | fi | |
9368 | ||
9369 | if test "$wxUSE_COLOURDLG" = yes; then | |
9370 | echo "$as_me:$LINENO: result: yes" >&5 | |
9371 | echo "${ECHO_T}yes" >&6 | |
9372 | else | |
9373 | echo "$as_me:$LINENO: result: no" >&5 | |
9374 | echo "${ECHO_T}no" >&6 | |
9375 | fi | |
9376 | ||
9377 | ||
9378 | enablestring= | |
9379 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 | |
9380 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
9381 | no_cache=0 | |
9382 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
9383 | if test "${enable_filedlg+set}" = set; then | |
9384 | enableval="$enable_filedlg" | |
9385 | ||
9386 | if test "$enableval" = yes; then | |
9387 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
9388 | else | |
9389 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
9390 | fi | |
9391 | ||
9392 | else | |
9393 | ||
9394 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
9395 | if test "x$LINE" != x ; then | |
9396 | eval "DEFAULT_$LINE" | |
9397 | else | |
9398 | no_cache=1 | |
9399 | fi | |
9400 | ||
9401 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
9402 | ||
9403 | fi; | |
9404 | ||
9405 | eval "$ac_cv_use_filedlg" | |
9406 | if test "$no_cache" != 1; then | |
9407 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
9408 | fi | |
9409 | ||
9410 | if test "$wxUSE_FILEDLG" = yes; then | |
9411 | echo "$as_me:$LINENO: result: yes" >&5 | |
9412 | echo "${ECHO_T}yes" >&6 | |
9413 | else | |
9414 | echo "$as_me:$LINENO: result: no" >&5 | |
9415 | echo "${ECHO_T}no" >&6 | |
9416 | fi | |
9417 | ||
9418 | ||
9419 | enablestring= | |
9420 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 | |
9421 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
9422 | no_cache=0 | |
9423 | # Check whether --enable-finddlg or --disable-finddlg was given. | |
9424 | if test "${enable_finddlg+set}" = set; then | |
9425 | enableval="$enable_finddlg" | |
9426 | ||
9427 | if test "$enableval" = yes; then | |
9428 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' | |
9429 | else | |
9430 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' | |
9431 | fi | |
9432 | ||
9433 | else | |
9434 | ||
9435 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
9436 | if test "x$LINE" != x ; then | |
9437 | eval "DEFAULT_$LINE" | |
9438 | else | |
9439 | no_cache=1 | |
9440 | fi | |
9441 | ||
9442 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
9443 | ||
9444 | fi; | |
9445 | ||
9446 | eval "$ac_cv_use_finddlg" | |
9447 | if test "$no_cache" != 1; then | |
9448 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp | |
9449 | fi | |
9450 | ||
9451 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
9452 | echo "$as_me:$LINENO: result: yes" >&5 | |
9453 | echo "${ECHO_T}yes" >&6 | |
9454 | else | |
9455 | echo "$as_me:$LINENO: result: no" >&5 | |
9456 | echo "${ECHO_T}no" >&6 | |
9457 | fi | |
9458 | ||
9459 | ||
9460 | enablestring= | |
9461 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 | |
9462 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
9463 | no_cache=0 | |
9464 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
9465 | if test "${enable_fontdlg+set}" = set; then | |
9466 | enableval="$enable_fontdlg" | |
9467 | ||
9468 | if test "$enableval" = yes; then | |
9469 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
9470 | else | |
9471 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
9472 | fi | |
9473 | ||
9474 | else | |
9475 | ||
9476 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
9477 | if test "x$LINE" != x ; then | |
9478 | eval "DEFAULT_$LINE" | |
9479 | else | |
9480 | no_cache=1 | |
9481 | fi | |
9482 | ||
9483 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
9484 | ||
9485 | fi; | |
9486 | ||
9487 | eval "$ac_cv_use_fontdlg" | |
9488 | if test "$no_cache" != 1; then | |
9489 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
9490 | fi | |
9491 | ||
9492 | if test "$wxUSE_FONTDLG" = yes; then | |
9493 | echo "$as_me:$LINENO: result: yes" >&5 | |
9494 | echo "${ECHO_T}yes" >&6 | |
9495 | else | |
9496 | echo "$as_me:$LINENO: result: no" >&5 | |
9497 | echo "${ECHO_T}no" >&6 | |
9498 | fi | |
9499 | ||
9500 | ||
9501 | enablestring= | |
9502 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 | |
9503 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
9504 | no_cache=0 | |
9505 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
9506 | if test "${enable_dirdlg+set}" = set; then | |
9507 | enableval="$enable_dirdlg" | |
9508 | ||
9509 | if test "$enableval" = yes; then | |
9510 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
9511 | else | |
9512 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
9513 | fi | |
9514 | ||
9515 | else | |
9516 | ||
9517 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
9518 | if test "x$LINE" != x ; then | |
9519 | eval "DEFAULT_$LINE" | |
9520 | else | |
9521 | no_cache=1 | |
9522 | fi | |
9523 | ||
9524 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
9525 | ||
9526 | fi; | |
9527 | ||
9528 | eval "$ac_cv_use_dirdlg" | |
9529 | if test "$no_cache" != 1; then | |
9530 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
9531 | fi | |
9532 | ||
9533 | if test "$wxUSE_DIRDLG" = yes; then | |
9534 | echo "$as_me:$LINENO: result: yes" >&5 | |
9535 | echo "${ECHO_T}yes" >&6 | |
9536 | else | |
9537 | echo "$as_me:$LINENO: result: no" >&5 | |
9538 | echo "${ECHO_T}no" >&6 | |
9539 | fi | |
9540 | ||
9541 | ||
9542 | enablestring= | |
9543 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 | |
9544 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
9545 | no_cache=0 | |
9546 | # Check whether --enable-msgdlg or --disable-msgdlg was given. | |
9547 | if test "${enable_msgdlg+set}" = set; then | |
9548 | enableval="$enable_msgdlg" | |
9549 | ||
9550 | if test "$enableval" = yes; then | |
9551 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
9552 | else | |
9553 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
9554 | fi | |
9555 | ||
9556 | else | |
9557 | ||
9558 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` | |
9559 | if test "x$LINE" != x ; then | |
9560 | eval "DEFAULT_$LINE" | |
9561 | else | |
9562 | no_cache=1 | |
9563 | fi | |
9564 | ||
9565 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG | |
9566 | ||
9567 | fi; | |
9568 | ||
9569 | eval "$ac_cv_use_msgdlg" | |
9570 | if test "$no_cache" != 1; then | |
9571 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp | |
9572 | fi | |
9573 | ||
9574 | if test "$wxUSE_MSGDLG" = yes; then | |
9575 | echo "$as_me:$LINENO: result: yes" >&5 | |
9576 | echo "${ECHO_T}yes" >&6 | |
9577 | else | |
9578 | echo "$as_me:$LINENO: result: no" >&5 | |
9579 | echo "${ECHO_T}no" >&6 | |
9580 | fi | |
9581 | ||
9582 | ||
9583 | enablestring= | |
9584 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 | |
9585 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
9586 | no_cache=0 | |
9587 | # Check whether --enable-numberdlg or --disable-numberdlg was given. | |
9588 | if test "${enable_numberdlg+set}" = set; then | |
9589 | enableval="$enable_numberdlg" | |
9590 | ||
9591 | if test "$enableval" = yes; then | |
9592 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
9593 | else | |
9594 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
9595 | fi | |
9596 | ||
9597 | else | |
9598 | ||
9599 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` | |
9600 | if test "x$LINE" != x ; then | |
9601 | eval "DEFAULT_$LINE" | |
9602 | else | |
9603 | no_cache=1 | |
9604 | fi | |
9605 | ||
9606 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG | |
9607 | ||
9608 | fi; | |
9609 | ||
9610 | eval "$ac_cv_use_numberdlg" | |
9611 | if test "$no_cache" != 1; then | |
9612 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp | |
9613 | fi | |
9614 | ||
9615 | if test "$wxUSE_NUMBERDLG" = yes; then | |
9616 | echo "$as_me:$LINENO: result: yes" >&5 | |
9617 | echo "${ECHO_T}yes" >&6 | |
9618 | else | |
9619 | echo "$as_me:$LINENO: result: no" >&5 | |
9620 | echo "${ECHO_T}no" >&6 | |
9621 | fi | |
9622 | ||
9623 | ||
9624 | enablestring= | |
9625 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 | |
9626 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
9627 | no_cache=0 | |
9628 | # Check whether --enable-splash or --disable-splash was given. | |
9629 | if test "${enable_splash+set}" = set; then | |
9630 | enableval="$enable_splash" | |
9631 | ||
9632 | if test "$enableval" = yes; then | |
9633 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
9634 | else | |
9635 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
9636 | fi | |
9637 | ||
9638 | else | |
9639 | ||
9640 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
9641 | if test "x$LINE" != x ; then | |
9642 | eval "DEFAULT_$LINE" | |
9643 | else | |
9644 | no_cache=1 | |
9645 | fi | |
9646 | ||
9647 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
9648 | ||
9649 | fi; | |
9650 | ||
9651 | eval "$ac_cv_use_splash" | |
9652 | if test "$no_cache" != 1; then | |
9653 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
9654 | fi | |
9655 | ||
9656 | if test "$wxUSE_SPLASH" = yes; then | |
9657 | echo "$as_me:$LINENO: result: yes" >&5 | |
9658 | echo "${ECHO_T}yes" >&6 | |
9659 | else | |
9660 | echo "$as_me:$LINENO: result: no" >&5 | |
9661 | echo "${ECHO_T}no" >&6 | |
9662 | fi | |
9663 | ||
9664 | ||
9665 | enablestring= | |
9666 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 | |
9667 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
9668 | no_cache=0 | |
9669 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
9670 | if test "${enable_textdlg+set}" = set; then | |
9671 | enableval="$enable_textdlg" | |
9672 | ||
9673 | if test "$enableval" = yes; then | |
9674 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
9675 | else | |
9676 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
9677 | fi | |
9678 | ||
9679 | else | |
9680 | ||
9681 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
9682 | if test "x$LINE" != x ; then | |
9683 | eval "DEFAULT_$LINE" | |
9684 | else | |
9685 | no_cache=1 | |
9686 | fi | |
9687 | ||
9688 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
9689 | ||
9690 | fi; | |
9691 | ||
9692 | eval "$ac_cv_use_textdlg" | |
9693 | if test "$no_cache" != 1; then | |
9694 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
9695 | fi | |
9696 | ||
9697 | if test "$wxUSE_TEXTDLG" = yes; then | |
9698 | echo "$as_me:$LINENO: result: yes" >&5 | |
9699 | echo "${ECHO_T}yes" >&6 | |
9700 | else | |
9701 | echo "$as_me:$LINENO: result: no" >&5 | |
9702 | echo "${ECHO_T}no" >&6 | |
9703 | fi | |
9704 | ||
9705 | ||
9706 | enablestring= | |
9707 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 | |
9708 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
9709 | no_cache=0 | |
9710 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
9711 | if test "${enable_tipdlg+set}" = set; then | |
9712 | enableval="$enable_tipdlg" | |
9713 | ||
9714 | if test "$enableval" = yes; then | |
9715 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
9716 | else | |
9717 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
9718 | fi | |
9719 | ||
9720 | else | |
9721 | ||
9722 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
9723 | if test "x$LINE" != x ; then | |
9724 | eval "DEFAULT_$LINE" | |
9725 | else | |
9726 | no_cache=1 | |
9727 | fi | |
9728 | ||
9729 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
9730 | ||
9731 | fi; | |
9732 | ||
9733 | eval "$ac_cv_use_tipdlg" | |
9734 | if test "$no_cache" != 1; then | |
9735 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
9736 | fi | |
9737 | ||
9738 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
9739 | echo "$as_me:$LINENO: result: yes" >&5 | |
9740 | echo "${ECHO_T}yes" >&6 | |
9741 | else | |
9742 | echo "$as_me:$LINENO: result: no" >&5 | |
9743 | echo "${ECHO_T}no" >&6 | |
9744 | fi | |
9745 | ||
9746 | ||
9747 | enablestring= | |
9748 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 | |
9749 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
9750 | no_cache=0 | |
9751 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
9752 | if test "${enable_progressdlg+set}" = set; then | |
9753 | enableval="$enable_progressdlg" | |
9754 | ||
9755 | if test "$enableval" = yes; then | |
9756 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
9757 | else | |
9758 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
9759 | fi | |
9760 | ||
9761 | else | |
9762 | ||
9763 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
9764 | if test "x$LINE" != x ; then | |
9765 | eval "DEFAULT_$LINE" | |
9766 | else | |
9767 | no_cache=1 | |
9768 | fi | |
9769 | ||
9770 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
9771 | ||
9772 | fi; | |
9773 | ||
9774 | eval "$ac_cv_use_progressdlg" | |
9775 | if test "$no_cache" != 1; then | |
9776 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
9777 | fi | |
9778 | ||
9779 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
9780 | echo "$as_me:$LINENO: result: yes" >&5 | |
9781 | echo "${ECHO_T}yes" >&6 | |
9782 | else | |
9783 | echo "$as_me:$LINENO: result: no" >&5 | |
9784 | echo "${ECHO_T}no" >&6 | |
9785 | fi | |
9786 | ||
9787 | ||
9788 | enablestring= | |
9789 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 | |
9790 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
9791 | no_cache=0 | |
9792 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
9793 | if test "${enable_wizarddlg+set}" = set; then | |
9794 | enableval="$enable_wizarddlg" | |
9795 | ||
9796 | if test "$enableval" = yes; then | |
9797 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
9798 | else | |
9799 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
9800 | fi | |
9801 | ||
9802 | else | |
9803 | ||
9804 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
9805 | if test "x$LINE" != x ; then | |
9806 | eval "DEFAULT_$LINE" | |
9807 | else | |
9808 | no_cache=1 | |
9809 | fi | |
9810 | ||
9811 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
9812 | ||
9813 | fi; | |
9814 | ||
9815 | eval "$ac_cv_use_wizarddlg" | |
9816 | if test "$no_cache" != 1; then | |
9817 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
9818 | fi | |
9819 | ||
9820 | if test "$wxUSE_WIZARDDLG" = yes; then | |
9821 | echo "$as_me:$LINENO: result: yes" >&5 | |
9822 | echo "${ECHO_T}yes" >&6 | |
9823 | else | |
9824 | echo "$as_me:$LINENO: result: no" >&5 | |
9825 | echo "${ECHO_T}no" >&6 | |
9826 | fi | |
9827 | ||
9828 | ||
9829 | ||
9830 | ||
9831 | enablestring= | |
9832 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 | |
9833 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
9834 | no_cache=0 | |
9835 | # Check whether --enable-menus or --disable-menus was given. | |
9836 | if test "${enable_menus+set}" = set; then | |
9837 | enableval="$enable_menus" | |
9838 | ||
9839 | if test "$enableval" = yes; then | |
9840 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
9841 | else | |
9842 | ac_cv_use_menus='wxUSE_MENUS=no' | |
9843 | fi | |
9844 | ||
9845 | else | |
9846 | ||
9847 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
9848 | if test "x$LINE" != x ; then | |
9849 | eval "DEFAULT_$LINE" | |
9850 | else | |
9851 | no_cache=1 | |
9852 | fi | |
9853 | ||
9854 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
9855 | ||
9856 | fi; | |
9857 | ||
9858 | eval "$ac_cv_use_menus" | |
9859 | if test "$no_cache" != 1; then | |
9860 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
9861 | fi | |
9862 | ||
9863 | if test "$wxUSE_MENUS" = yes; then | |
9864 | echo "$as_me:$LINENO: result: yes" >&5 | |
9865 | echo "${ECHO_T}yes" >&6 | |
9866 | else | |
9867 | echo "$as_me:$LINENO: result: no" >&5 | |
9868 | echo "${ECHO_T}no" >&6 | |
9869 | fi | |
9870 | ||
9871 | ||
9872 | enablestring= | |
9873 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 | |
9874 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
9875 | no_cache=0 | |
9876 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
9877 | if test "${enable_miniframe+set}" = set; then | |
9878 | enableval="$enable_miniframe" | |
9879 | ||
9880 | if test "$enableval" = yes; then | |
9881 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
9882 | else | |
9883 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
9884 | fi | |
9885 | ||
9886 | else | |
9887 | ||
9888 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
9889 | if test "x$LINE" != x ; then | |
9890 | eval "DEFAULT_$LINE" | |
9891 | else | |
9892 | no_cache=1 | |
9893 | fi | |
9894 | ||
9895 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
9896 | ||
9897 | fi; | |
9898 | ||
9899 | eval "$ac_cv_use_miniframe" | |
9900 | if test "$no_cache" != 1; then | |
9901 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
9902 | fi | |
9903 | ||
9904 | if test "$wxUSE_MINIFRAME" = yes; then | |
9905 | echo "$as_me:$LINENO: result: yes" >&5 | |
9906 | echo "${ECHO_T}yes" >&6 | |
9907 | else | |
9908 | echo "$as_me:$LINENO: result: no" >&5 | |
9909 | echo "${ECHO_T}no" >&6 | |
9910 | fi | |
9911 | ||
9912 | ||
9913 | enablestring= | |
9914 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 | |
9915 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
9916 | no_cache=0 | |
9917 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
9918 | if test "${enable_tooltips+set}" = set; then | |
9919 | enableval="$enable_tooltips" | |
9920 | ||
9921 | if test "$enableval" = yes; then | |
9922 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
9923 | else | |
9924 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
9925 | fi | |
9926 | ||
9927 | else | |
9928 | ||
9929 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
9930 | if test "x$LINE" != x ; then | |
9931 | eval "DEFAULT_$LINE" | |
9932 | else | |
9933 | no_cache=1 | |
9934 | fi | |
9935 | ||
9936 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
9937 | ||
9938 | fi; | |
9939 | ||
9940 | eval "$ac_cv_use_tooltips" | |
9941 | if test "$no_cache" != 1; then | |
9942 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
9943 | fi | |
9944 | ||
9945 | if test "$wxUSE_TOOLTIPS" = yes; then | |
9946 | echo "$as_me:$LINENO: result: yes" >&5 | |
9947 | echo "${ECHO_T}yes" >&6 | |
9948 | else | |
9949 | echo "$as_me:$LINENO: result: no" >&5 | |
9950 | echo "${ECHO_T}no" >&6 | |
9951 | fi | |
9952 | ||
9953 | ||
9954 | enablestring= | |
9955 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 | |
9956 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
9957 | no_cache=0 | |
9958 | # Check whether --enable-splines or --disable-splines was given. | |
9959 | if test "${enable_splines+set}" = set; then | |
9960 | enableval="$enable_splines" | |
9961 | ||
9962 | if test "$enableval" = yes; then | |
9963 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
9964 | else | |
9965 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
9966 | fi | |
9967 | ||
9968 | else | |
9969 | ||
9970 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
9971 | if test "x$LINE" != x ; then | |
9972 | eval "DEFAULT_$LINE" | |
9973 | else | |
9974 | no_cache=1 | |
9975 | fi | |
9976 | ||
9977 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
9978 | ||
9979 | fi; | |
9980 | ||
9981 | eval "$ac_cv_use_splines" | |
9982 | if test "$no_cache" != 1; then | |
9983 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
9984 | fi | |
9985 | ||
9986 | if test "$wxUSE_SPLINES" = yes; then | |
9987 | echo "$as_me:$LINENO: result: yes" >&5 | |
9988 | echo "${ECHO_T}yes" >&6 | |
9989 | else | |
9990 | echo "$as_me:$LINENO: result: no" >&5 | |
9991 | echo "${ECHO_T}no" >&6 | |
9992 | fi | |
9993 | ||
9994 | ||
fbe2ca43 SN |
9995 | enablestring= |
9996 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5 | |
9997 | echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6 | |
9998 | no_cache=0 | |
9999 | # Check whether --enable-mousewheel or --disable-mousewheel was given. | |
10000 | if test "${enable_mousewheel+set}" = set; then | |
10001 | enableval="$enable_mousewheel" | |
10002 | ||
10003 | if test "$enableval" = yes; then | |
10004 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes' | |
10005 | else | |
10006 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no' | |
10007 | fi | |
10008 | ||
10009 | else | |
10010 | ||
10011 | LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}` | |
10012 | if test "x$LINE" != x ; then | |
10013 | eval "DEFAULT_$LINE" | |
10014 | else | |
10015 | no_cache=1 | |
10016 | fi | |
10017 | ||
10018 | ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL | |
10019 | ||
10020 | fi; | |
10021 | ||
10022 | eval "$ac_cv_use_mousewheel" | |
10023 | if test "$no_cache" != 1; then | |
10024 | echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp | |
10025 | fi | |
10026 | ||
10027 | if test "$wxUSE_MOUSEWHEEL" = yes; then | |
10028 | echo "$as_me:$LINENO: result: yes" >&5 | |
10029 | echo "${ECHO_T}yes" >&6 | |
10030 | else | |
10031 | echo "$as_me:$LINENO: result: no" >&5 | |
10032 | echo "${ECHO_T}no" >&6 | |
10033 | fi | |
10034 | ||
10035 | ||
a848cd7e SC |
10036 | enablestring= |
10037 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 | |
10038 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
10039 | no_cache=0 | |
10040 | # Check whether --enable-validators or --disable-validators was given. | |
10041 | if test "${enable_validators+set}" = set; then | |
10042 | enableval="$enable_validators" | |
10043 | ||
10044 | if test "$enableval" = yes; then | |
10045 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
10046 | else | |
10047 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
10048 | fi | |
10049 | ||
10050 | else | |
10051 | ||
10052 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
10053 | if test "x$LINE" != x ; then | |
10054 | eval "DEFAULT_$LINE" | |
10055 | else | |
10056 | no_cache=1 | |
10057 | fi | |
10058 | ||
10059 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
10060 | ||
10061 | fi; | |
10062 | ||
10063 | eval "$ac_cv_use_validators" | |
10064 | if test "$no_cache" != 1; then | |
10065 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
10066 | fi | |
10067 | ||
10068 | if test "$wxUSE_VALIDATORS" = yes; then | |
10069 | echo "$as_me:$LINENO: result: yes" >&5 | |
10070 | echo "${ECHO_T}yes" >&6 | |
10071 | else | |
10072 | echo "$as_me:$LINENO: result: no" >&5 | |
10073 | echo "${ECHO_T}no" >&6 | |
10074 | fi | |
10075 | ||
10076 | ||
10077 | enablestring= | |
10078 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 | |
10079 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
10080 | no_cache=0 | |
10081 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
10082 | if test "${enable_busyinfo+set}" = set; then | |
10083 | enableval="$enable_busyinfo" | |
10084 | ||
10085 | if test "$enableval" = yes; then | |
10086 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
10087 | else | |
10088 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
10089 | fi | |
10090 | ||
10091 | else | |
10092 | ||
10093 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
10094 | if test "x$LINE" != x ; then | |
10095 | eval "DEFAULT_$LINE" | |
10096 | else | |
10097 | no_cache=1 | |
10098 | fi | |
10099 | ||
10100 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
10101 | ||
10102 | fi; | |
10103 | ||
10104 | eval "$ac_cv_use_busyinfo" | |
10105 | if test "$no_cache" != 1; then | |
10106 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
10107 | fi | |
10108 | ||
10109 | if test "$wxUSE_BUSYINFO" = yes; then | |
10110 | echo "$as_me:$LINENO: result: yes" >&5 | |
10111 | echo "${ECHO_T}yes" >&6 | |
10112 | else | |
10113 | echo "$as_me:$LINENO: result: no" >&5 | |
10114 | echo "${ECHO_T}no" >&6 | |
10115 | fi | |
10116 | ||
10117 | ||
10118 | enablestring= | |
10119 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 | |
10120 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
10121 | no_cache=0 | |
10122 | # Check whether --enable-joystick or --disable-joystick was given. | |
10123 | if test "${enable_joystick+set}" = set; then | |
10124 | enableval="$enable_joystick" | |
10125 | ||
10126 | if test "$enableval" = yes; then | |
10127 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
10128 | else | |
10129 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
10130 | fi | |
10131 | ||
10132 | else | |
10133 | ||
10134 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
10135 | if test "x$LINE" != x ; then | |
10136 | eval "DEFAULT_$LINE" | |
10137 | else | |
10138 | no_cache=1 | |
10139 | fi | |
10140 | ||
10141 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
10142 | ||
10143 | fi; | |
10144 | ||
10145 | eval "$ac_cv_use_joystick" | |
10146 | if test "$no_cache" != 1; then | |
10147 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
10148 | fi | |
10149 | ||
10150 | if test "$wxUSE_JOYSTICK" = yes; then | |
10151 | echo "$as_me:$LINENO: result: yes" >&5 | |
10152 | echo "${ECHO_T}yes" >&6 | |
10153 | else | |
10154 | echo "$as_me:$LINENO: result: no" >&5 | |
10155 | echo "${ECHO_T}no" >&6 | |
10156 | fi | |
10157 | ||
10158 | ||
10159 | enablestring= | |
10160 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
10161 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
10162 | no_cache=0 | |
10163 | # Check whether --enable-metafile or --disable-metafile was given. | |
10164 | if test "${enable_metafile+set}" = set; then | |
10165 | enableval="$enable_metafile" | |
10166 | ||
10167 | if test "$enableval" = yes; then | |
10168 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
10169 | else | |
10170 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
10171 | fi | |
10172 | ||
10173 | else | |
10174 | ||
10175 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
10176 | if test "x$LINE" != x ; then | |
10177 | eval "DEFAULT_$LINE" | |
10178 | else | |
10179 | no_cache=1 | |
10180 | fi | |
10181 | ||
10182 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
10183 | ||
10184 | fi; | |
10185 | ||
10186 | eval "$ac_cv_use_metafile" | |
10187 | if test "$no_cache" != 1; then | |
10188 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
10189 | fi | |
10190 | ||
10191 | if test "$wxUSE_METAFILE" = yes; then | |
10192 | echo "$as_me:$LINENO: result: yes" >&5 | |
10193 | echo "${ECHO_T}yes" >&6 | |
10194 | else | |
10195 | echo "$as_me:$LINENO: result: no" >&5 | |
10196 | echo "${ECHO_T}no" >&6 | |
10197 | fi | |
10198 | ||
10199 | ||
10200 | enablestring= | |
10201 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 | |
10202 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
10203 | no_cache=0 | |
10204 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
10205 | if test "${enable_dragimage+set}" = set; then | |
10206 | enableval="$enable_dragimage" | |
10207 | ||
10208 | if test "$enableval" = yes; then | |
10209 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
10210 | else | |
10211 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
10212 | fi | |
10213 | ||
10214 | else | |
10215 | ||
10216 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
10217 | if test "x$LINE" != x ; then | |
10218 | eval "DEFAULT_$LINE" | |
10219 | else | |
10220 | no_cache=1 | |
10221 | fi | |
10222 | ||
10223 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
10224 | ||
10225 | fi; | |
10226 | ||
10227 | eval "$ac_cv_use_dragimage" | |
10228 | if test "$no_cache" != 1; then | |
10229 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
10230 | fi | |
10231 | ||
10232 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
10233 | echo "$as_me:$LINENO: result: yes" >&5 | |
10234 | echo "${ECHO_T}yes" >&6 | |
10235 | else | |
10236 | echo "$as_me:$LINENO: result: no" >&5 | |
10237 | echo "${ECHO_T}no" >&6 | |
10238 | fi | |
10239 | ||
10240 | ||
10241 | enablestring= | |
10242 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 | |
10243 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
10244 | no_cache=0 | |
10245 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
10246 | if test "${enable_accessibility+set}" = set; then | |
10247 | enableval="$enable_accessibility" | |
10248 | ||
10249 | if test "$enableval" = yes; then | |
10250 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
10251 | else | |
10252 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
10253 | fi | |
10254 | ||
10255 | else | |
10256 | ||
10257 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` | |
10258 | if test "x$LINE" != x ; then | |
10259 | eval "DEFAULT_$LINE" | |
10260 | else | |
10261 | no_cache=1 | |
10262 | fi | |
10263 | ||
10264 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
10265 | ||
10266 | fi; | |
10267 | ||
10268 | eval "$ac_cv_use_accessibility" | |
10269 | if test "$no_cache" != 1; then | |
10270 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
10271 | fi | |
10272 | ||
10273 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
10274 | echo "$as_me:$LINENO: result: yes" >&5 | |
10275 | echo "${ECHO_T}yes" >&6 | |
10276 | else | |
10277 | echo "$as_me:$LINENO: result: no" >&5 | |
10278 | echo "${ECHO_T}no" >&6 | |
10279 | fi | |
10280 | ||
10281 | ||
38b4a946 VZ |
10282 | if test "$wxUSE_MSW" = "1"; then |
10283 | ||
10284 | enablestring= | |
10285 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5 | |
10286 | echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6 | |
10287 | no_cache=0 | |
10288 | # Check whether --enable-dccache or --disable-dccache was given. | |
10289 | if test "${enable_dccache+set}" = set; then | |
10290 | enableval="$enable_dccache" | |
10291 | ||
10292 | if test "$enableval" = yes; then | |
10293 | ac_cv_use_dccache='wxUSE_DC_CACHEING=yes' | |
10294 | else | |
10295 | ac_cv_use_dccache='wxUSE_DC_CACHEING=no' | |
10296 | fi | |
10297 | ||
10298 | else | |
10299 | ||
10300 | LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}` | |
10301 | if test "x$LINE" != x ; then | |
10302 | eval "DEFAULT_$LINE" | |
10303 | else | |
10304 | no_cache=1 | |
10305 | fi | |
10306 | ||
10307 | ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING | |
10308 | ||
10309 | fi; | |
10310 | ||
10311 | eval "$ac_cv_use_dccache" | |
10312 | if test "$no_cache" != 1; then | |
10313 | echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp | |
10314 | fi | |
10315 | ||
10316 | if test "$wxUSE_DC_CACHEING" = yes; then | |
10317 | echo "$as_me:$LINENO: result: yes" >&5 | |
10318 | echo "${ECHO_T}yes" >&6 | |
10319 | else | |
10320 | echo "$as_me:$LINENO: result: no" >&5 | |
10321 | echo "${ECHO_T}no" >&6 | |
10322 | fi | |
10323 | ||
10324 | fi | |
10325 | ||
a848cd7e SC |
10326 | |
10327 | ||
10328 | enablestring= | |
10329 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 | |
10330 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
10331 | no_cache=0 | |
10332 | # Check whether --enable-palette or --disable-palette was given. | |
10333 | if test "${enable_palette+set}" = set; then | |
10334 | enableval="$enable_palette" | |
10335 | ||
10336 | if test "$enableval" = yes; then | |
10337 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
10338 | else | |
10339 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
10340 | fi | |
10341 | ||
10342 | else | |
10343 | ||
10344 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
10345 | if test "x$LINE" != x ; then | |
10346 | eval "DEFAULT_$LINE" | |
10347 | else | |
10348 | no_cache=1 | |
10349 | fi | |
10350 | ||
10351 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
10352 | ||
10353 | fi; | |
10354 | ||
10355 | eval "$ac_cv_use_palette" | |
10356 | if test "$no_cache" != 1; then | |
10357 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
10358 | fi | |
10359 | ||
10360 | if test "$wxUSE_PALETTE" = yes; then | |
10361 | echo "$as_me:$LINENO: result: yes" >&5 | |
10362 | echo "${ECHO_T}yes" >&6 | |
10363 | else | |
10364 | echo "$as_me:$LINENO: result: no" >&5 | |
10365 | echo "${ECHO_T}no" >&6 | |
10366 | fi | |
10367 | ||
10368 | ||
10369 | enablestring= | |
10370 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 | |
10371 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
10372 | no_cache=0 | |
10373 | # Check whether --enable-image or --disable-image was given. | |
10374 | if test "${enable_image+set}" = set; then | |
10375 | enableval="$enable_image" | |
10376 | ||
10377 | if test "$enableval" = yes; then | |
10378 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
10379 | else | |
10380 | ac_cv_use_image='wxUSE_IMAGE=no' | |
10381 | fi | |
10382 | ||
10383 | else | |
10384 | ||
10385 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
10386 | if test "x$LINE" != x ; then | |
10387 | eval "DEFAULT_$LINE" | |
10388 | else | |
10389 | no_cache=1 | |
10390 | fi | |
10391 | ||
10392 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
10393 | ||
10394 | fi; | |
10395 | ||
10396 | eval "$ac_cv_use_image" | |
10397 | if test "$no_cache" != 1; then | |
10398 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
10399 | fi | |
10400 | ||
10401 | if test "$wxUSE_IMAGE" = yes; then | |
10402 | echo "$as_me:$LINENO: result: yes" >&5 | |
10403 | echo "${ECHO_T}yes" >&6 | |
10404 | else | |
10405 | echo "$as_me:$LINENO: result: no" >&5 | |
10406 | echo "${ECHO_T}no" >&6 | |
10407 | fi | |
10408 | ||
10409 | ||
10410 | enablestring= | |
10411 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 | |
10412 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
10413 | no_cache=0 | |
10414 | # Check whether --enable-gif or --disable-gif was given. | |
10415 | if test "${enable_gif+set}" = set; then | |
10416 | enableval="$enable_gif" | |
10417 | ||
10418 | if test "$enableval" = yes; then | |
10419 | ac_cv_use_gif='wxUSE_GIF=yes' | |
10420 | else | |
10421 | ac_cv_use_gif='wxUSE_GIF=no' | |
10422 | fi | |
10423 | ||
10424 | else | |
10425 | ||
10426 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
10427 | if test "x$LINE" != x ; then | |
10428 | eval "DEFAULT_$LINE" | |
10429 | else | |
10430 | no_cache=1 | |
10431 | fi | |
10432 | ||
10433 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
10434 | ||
10435 | fi; | |
10436 | ||
10437 | eval "$ac_cv_use_gif" | |
10438 | if test "$no_cache" != 1; then | |
10439 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
10440 | fi | |
10441 | ||
10442 | if test "$wxUSE_GIF" = yes; then | |
10443 | echo "$as_me:$LINENO: result: yes" >&5 | |
10444 | echo "${ECHO_T}yes" >&6 | |
10445 | else | |
10446 | echo "$as_me:$LINENO: result: no" >&5 | |
10447 | echo "${ECHO_T}no" >&6 | |
10448 | fi | |
10449 | ||
10450 | ||
10451 | enablestring= | |
10452 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 | |
10453 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
10454 | no_cache=0 | |
10455 | # Check whether --enable-pcx or --disable-pcx was given. | |
10456 | if test "${enable_pcx+set}" = set; then | |
10457 | enableval="$enable_pcx" | |
10458 | ||
10459 | if test "$enableval" = yes; then | |
10460 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
10461 | else | |
10462 | ac_cv_use_pcx='wxUSE_PCX=no' | |
10463 | fi | |
10464 | ||
10465 | else | |
10466 | ||
10467 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
10468 | if test "x$LINE" != x ; then | |
10469 | eval "DEFAULT_$LINE" | |
10470 | else | |
10471 | no_cache=1 | |
10472 | fi | |
10473 | ||
10474 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
10475 | ||
10476 | fi; | |
10477 | ||
10478 | eval "$ac_cv_use_pcx" | |
10479 | if test "$no_cache" != 1; then | |
10480 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
10481 | fi | |
10482 | ||
10483 | if test "$wxUSE_PCX" = yes; then | |
10484 | echo "$as_me:$LINENO: result: yes" >&5 | |
10485 | echo "${ECHO_T}yes" >&6 | |
10486 | else | |
10487 | echo "$as_me:$LINENO: result: no" >&5 | |
10488 | echo "${ECHO_T}no" >&6 | |
10489 | fi | |
10490 | ||
10491 | ||
10492 | enablestring= | |
10493 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 | |
10494 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
10495 | no_cache=0 | |
10496 | # Check whether --enable-iff or --disable-iff was given. | |
10497 | if test "${enable_iff+set}" = set; then | |
10498 | enableval="$enable_iff" | |
10499 | ||
10500 | if test "$enableval" = yes; then | |
10501 | ac_cv_use_iff='wxUSE_IFF=yes' | |
10502 | else | |
10503 | ac_cv_use_iff='wxUSE_IFF=no' | |
10504 | fi | |
10505 | ||
10506 | else | |
10507 | ||
10508 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
10509 | if test "x$LINE" != x ; then | |
10510 | eval "DEFAULT_$LINE" | |
10511 | else | |
10512 | no_cache=1 | |
10513 | fi | |
10514 | ||
10515 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
10516 | ||
10517 | fi; | |
10518 | ||
10519 | eval "$ac_cv_use_iff" | |
10520 | if test "$no_cache" != 1; then | |
10521 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
10522 | fi | |
10523 | ||
10524 | if test "$wxUSE_IFF" = yes; then | |
10525 | echo "$as_me:$LINENO: result: yes" >&5 | |
10526 | echo "${ECHO_T}yes" >&6 | |
10527 | else | |
10528 | echo "$as_me:$LINENO: result: no" >&5 | |
10529 | echo "${ECHO_T}no" >&6 | |
10530 | fi | |
10531 | ||
10532 | ||
10533 | enablestring= | |
10534 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 | |
10535 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
10536 | no_cache=0 | |
10537 | # Check whether --enable-pnm or --disable-pnm was given. | |
10538 | if test "${enable_pnm+set}" = set; then | |
10539 | enableval="$enable_pnm" | |
10540 | ||
10541 | if test "$enableval" = yes; then | |
10542 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
10543 | else | |
10544 | ac_cv_use_pnm='wxUSE_PNM=no' | |
10545 | fi | |
10546 | ||
10547 | else | |
10548 | ||
10549 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
10550 | if test "x$LINE" != x ; then | |
10551 | eval "DEFAULT_$LINE" | |
10552 | else | |
10553 | no_cache=1 | |
10554 | fi | |
10555 | ||
10556 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
10557 | ||
10558 | fi; | |
10559 | ||
10560 | eval "$ac_cv_use_pnm" | |
10561 | if test "$no_cache" != 1; then | |
10562 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
10563 | fi | |
10564 | ||
10565 | if test "$wxUSE_PNM" = yes; then | |
10566 | echo "$as_me:$LINENO: result: yes" >&5 | |
10567 | echo "${ECHO_T}yes" >&6 | |
10568 | else | |
10569 | echo "$as_me:$LINENO: result: no" >&5 | |
10570 | echo "${ECHO_T}no" >&6 | |
10571 | fi | |
10572 | ||
10573 | ||
10574 | enablestring= | |
10575 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 | |
10576 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
10577 | no_cache=0 | |
10578 | # Check whether --enable-xpm or --disable-xpm was given. | |
10579 | if test "${enable_xpm+set}" = set; then | |
10580 | enableval="$enable_xpm" | |
10581 | ||
10582 | if test "$enableval" = yes; then | |
10583 | ac_cv_use_xpm='wxUSE_XPM=yes' | |
10584 | else | |
10585 | ac_cv_use_xpm='wxUSE_XPM=no' | |
10586 | fi | |
10587 | ||
10588 | else | |
10589 | ||
10590 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` | |
10591 | if test "x$LINE" != x ; then | |
10592 | eval "DEFAULT_$LINE" | |
10593 | else | |
10594 | no_cache=1 | |
10595 | fi | |
10596 | ||
10597 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
10598 | ||
10599 | fi; | |
10600 | ||
10601 | eval "$ac_cv_use_xpm" | |
10602 | if test "$no_cache" != 1; then | |
10603 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp | |
10604 | fi | |
10605 | ||
10606 | if test "$wxUSE_XPM" = yes; then | |
10607 | echo "$as_me:$LINENO: result: yes" >&5 | |
10608 | echo "${ECHO_T}yes" >&6 | |
10609 | else | |
10610 | echo "$as_me:$LINENO: result: no" >&5 | |
10611 | echo "${ECHO_T}no" >&6 | |
10612 | fi | |
10613 | ||
10614 | ||
10615 | enablestring= | |
10616 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 | |
10617 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
10618 | no_cache=0 | |
10619 | # Check whether --enable-ico_cur or --disable-ico_cur was given. | |
10620 | if test "${enable_ico_cur+set}" = set; then | |
10621 | enableval="$enable_ico_cur" | |
10622 | ||
10623 | if test "$enableval" = yes; then | |
10624 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' | |
10625 | else | |
10626 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' | |
10627 | fi | |
10628 | ||
10629 | else | |
10630 | ||
10631 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
10632 | if test "x$LINE" != x ; then | |
10633 | eval "DEFAULT_$LINE" | |
10634 | else | |
10635 | no_cache=1 | |
10636 | fi | |
10637 | ||
10638 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR | |
10639 | ||
10640 | fi; | |
10641 | ||
10642 | eval "$ac_cv_use_ico_cur" | |
10643 | if test "$no_cache" != 1; then | |
10644 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp | |
10645 | fi | |
10646 | ||
10647 | if test "$wxUSE_ICO_CUR" = yes; then | |
10648 | echo "$as_me:$LINENO: result: yes" >&5 | |
10649 | echo "${ECHO_T}yes" >&6 | |
10650 | else | |
10651 | echo "$as_me:$LINENO: result: no" >&5 | |
10652 | echo "${ECHO_T}no" >&6 | |
10653 | fi | |
10654 | ||
10655 | ||
10656 | fi | |
10657 | ||
10658 | ||
10659 | ||
ceec2216 RL |
10660 | # Check whether --with-flavour or --without-flavour was given. |
10661 | if test "${with_flavour+set}" = set; then | |
10662 | withval="$with_flavour" | |
10663 | WX_FLAVOUR="$withval" | |
10664 | fi; | |
10665 | ||
10666 | ||
10667 | ||
a848cd7e SC |
10668 | enablestring= |
10669 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
10670 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
10671 | no_cache=0 | |
10672 | # Check whether --enable-official_build or --disable-official_build was given. | |
10673 | if test "${enable_official_build+set}" = set; then | |
10674 | enableval="$enable_official_build" | |
10675 | ||
10676 | if test "$enableval" = yes; then | |
10677 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
10678 | else | |
10679 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
10680 | fi | |
10681 | ||
10682 | else | |
10683 | ||
10684 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
10685 | if test "x$LINE" != x ; then | |
10686 | eval "DEFAULT_$LINE" | |
10687 | else | |
10688 | no_cache=1 | |
10689 | fi | |
10690 | ||
10691 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
10692 | ||
10693 | fi; | |
10694 | ||
10695 | eval "$ac_cv_use_official_build" | |
10696 | if test "$no_cache" != 1; then | |
10697 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
10698 | fi | |
10699 | ||
10700 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
10701 | echo "$as_me:$LINENO: result: yes" >&5 | |
10702 | echo "${ECHO_T}yes" >&6 | |
10703 | else | |
10704 | echo "$as_me:$LINENO: result: no" >&5 | |
10705 | echo "${ECHO_T}no" >&6 | |
10706 | fi | |
10707 | ||
10708 | # Check whether --enable-vendor or --disable-vendor was given. | |
10709 | if test "${enable_vendor+set}" = set; then | |
10710 | enableval="$enable_vendor" | |
10711 | VENDOR="$enableval" | |
10712 | fi; | |
10713 | if test "x$VENDOR" = "x"; then | |
10714 | VENDOR="custom" | |
10715 | fi | |
10716 | ||
a848cd7e SC |
10717 | |
10718 | ||
10719 | ||
10720 | echo "saving argument cache $wx_arg_cache_file" | |
10721 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
10722 | ||
10723 | ||
10724 | ||
10725 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
10726 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
10727 | ||
10728 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
10729 | if test "$wxUSE_WINE" = "yes"; then | |
10730 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
10731 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
10732 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
10733 | wxUSE_SHARED=no | |
10734 | fi | |
10735 | ||
f597b41c | 10736 | |
a848cd7e SC |
10737 | if test "$wxUSE_GUI" = "yes"; then |
10738 | ||
10739 | if test "$USE_BEOS" = 1; then | |
10740 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 | |
10741 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
10742 | { (exit 1); exit 1; }; } | |
10743 | fi | |
10744 | ||
10745 | if test "$TOOLKIT_GIVEN" = 1; then | |
10746 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10747 | var=wxUSE_$toolkit | |
10748 | eval "value=\$${var}" | |
f34ca037 MW |
10749 | if test "x$value" = "xno"; then |
10750 | eval "$var=0" | |
10751 | elif test "x$value" != "x"; then | |
10752 | eval "$var=1" | |
10753 | fi | |
10754 | ||
10755 | if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then | |
10756 | eval "wx${toolkit}_VERSION=$value" | |
10757 | fi | |
a848cd7e SC |
10758 | done |
10759 | else | |
10760 | for toolkit in `echo $ALL_TOOLKITS`; do | |
10761 | if test "$has_toolkit_in_cache" != 1; then | |
10762 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
10763 | else | |
10764 | var=DEFAULT_wxUSE_$toolkit | |
f34ca037 MW |
10765 | |
10766 | eval "version=\$DEFAULT_wx${toolkit}_VERSION" | |
10767 | if test "x$version" != "x"; then | |
10768 | eval "wx${toolkit}_VERSION=$version" | |
10769 | fi | |
a848cd7e SC |
10770 | fi |
10771 | eval "wxUSE_$toolkit=\$${var}" | |
10772 | done | |
10773 | fi | |
10774 | ||
10775 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ | |
10776 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
10777 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10778 | ||
10779 | case "${host}" in | |
10780 | *-pc-os2_emx | *-pc-os2-emx ) | |
10781 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
10782 | esac | |
10783 | ||
10784 | case "$NUM_TOOLKITS" in | |
10785 | 1) | |
10786 | ;; | |
10787 | 0) | |
10788 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 | |
10789 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
10790 | { (exit 1); exit 1; }; } | |
10791 | ;; | |
10792 | *) | |
10793 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 | |
10794 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
10795 | { (exit 1); exit 1; }; } | |
10796 | esac | |
10797 | ||
f34ca037 MW |
10798 | # to be removed when --disable-gtk2 isn't needed |
10799 | if test "x$wxUSE_GTK2" = "xyes"; then | |
10800 | wxGTK_VERSION=2 | |
10801 | elif test "x$wxUSE_GTK2" = "xno"; then | |
10802 | wxGTK_VERSION=1 | |
10803 | fi | |
10804 | ||
a848cd7e SC |
10805 | for toolkit in `echo $ALL_TOOLKITS`; do |
10806 | var=wxUSE_$toolkit | |
10807 | eval "value=\$${var}" | |
10808 | if test "x$value" != x; then | |
10809 | cache_var=CACHE_$toolkit | |
10810 | eval "cache=\$${cache_var}" | |
10811 | if test "$cache" = 1; then | |
10812 | echo "$var=$value" >> ${wx_arg_cache_file} | |
f34ca037 MW |
10813 | eval "version=\$wx${toolkit}_VERSION" |
10814 | if test "x$version" != "x"; then | |
10815 | echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file} | |
10816 | fi | |
a848cd7e SC |
10817 | fi |
10818 | if test "$value" = 1; then | |
10819 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` | |
10820 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 | |
10821 | echo "${ECHO_T}$toolkit_echo" >&6 | |
10822 | fi | |
10823 | fi | |
10824 | done | |
10825 | else | |
10826 | if test "x$host_alias" != "x"; then | |
10827 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
10828 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 | |
10829 | else | |
10830 | echo "$as_me:$LINENO: result: base only" >&5 | |
10831 | echo "${ECHO_T}base only" >&6 | |
10832 | fi | |
10833 | fi | |
10834 | ||
10835 | wants_win32=0 | |
10836 | doesnt_want_win32=0 | |
10837 | case "${host}" in | |
10838 | *-*-cygwin*) | |
10839 | if test "$wxUSE_MSW" = 1 ; then | |
10840 | wants_win32=1 | |
7275146d | 10841 | BAKEFILE_FORCE_PLATFORM=win32 |
a848cd7e SC |
10842 | else |
10843 | doesnt_want_win32=1 | |
10844 | fi | |
10845 | ;; | |
10846 | *-*-mingw*) | |
10847 | wants_win32=1 | |
10848 | ;; | |
10849 | esac | |
10850 | ||
10851 | if test "$wxUSE_WINE" = "yes"; then | |
10852 | wants_win32=1 | |
10853 | CC=winegcc | |
10854 | CXX=wineg++ | |
a848cd7e SC |
10855 | LDFLAGS_GUI="-mwindows" |
10856 | fi | |
10857 | ||
10858 | if test "$wants_win32" = 1 ; then | |
10859 | USE_UNIX=0 | |
10860 | USE_WIN32=1 | |
10861 | cat >>confdefs.h <<\_ACEOF | |
10862 | #define __WIN32__ 1 | |
10863 | _ACEOF | |
10864 | ||
10865 | cat >>confdefs.h <<\_ACEOF | |
10866 | #define __WIN95__ 1 | |
10867 | _ACEOF | |
10868 | ||
10869 | cat >>confdefs.h <<\_ACEOF | |
10870 | #define __WINDOWS__ 1 | |
10871 | _ACEOF | |
10872 | ||
10873 | cat >>confdefs.h <<\_ACEOF | |
10874 | #define __GNUWIN32__ 1 | |
10875 | _ACEOF | |
10876 | ||
10877 | cat >>confdefs.h <<\_ACEOF | |
10878 | #define STRICT 1 | |
10879 | _ACEOF | |
10880 | ||
10881 | cat >>confdefs.h <<\_ACEOF | |
10882 | #define WINVER 0x0400 | |
10883 | _ACEOF | |
10884 | ||
10885 | fi | |
10886 | if test "$doesnt_want_win32" = 1 ; then | |
10887 | USE_UNIX=1 | |
10888 | USE_WIN32=0 | |
10889 | fi | |
10890 | ||
10891 | if test "$USE_UNIX" = 1 ; then | |
10892 | wxUSE_UNIX=yes | |
10893 | cat >>confdefs.h <<\_ACEOF | |
10894 | #define __UNIX__ 1 | |
10895 | _ACEOF | |
10896 | ||
10897 | fi | |
10898 | ||
10899 | ||
10900 | cat >confcache <<\_ACEOF | |
10901 | # This file is a shell script that caches the results of configure | |
10902 | # tests run on this system so they can be shared between configure | |
10903 | # scripts and configure runs, see configure's option --config-cache. | |
10904 | # It is not useful on other systems. If it contains results you don't | |
10905 | # want to keep, you may remove or edit it. | |
10906 | # | |
10907 | # config.status only pays attention to the cache file if you give it | |
10908 | # the --recheck option to rerun configure. | |
10909 | # | |
10910 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
10911 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10912 | # following values. | |
10913 | ||
10914 | _ACEOF | |
10915 | ||
10916 | # The following way of writing the cache mishandles newlines in values, | |
10917 | # but we know of no workaround that is simple, portable, and efficient. | |
10918 | # So, don't put newlines in cache variables' values. | |
10919 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10920 | # and sets the high bit in the cache file unless we assign to the vars. | |
10921 | { | |
10922 | (set) 2>&1 | | |
10923 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10924 | *ac_space=\ *) | |
10925 | # `set' does not quote correctly, so add quotes (double-quote | |
10926 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
10927 | sed -n \ | |
ac1cb8d3 VS |
10928 | "s/'/'\\\\''/g; |
10929 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
10930 | ;; |
10931 | *) | |
10932 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10933 | sed -n \ | |
ac1cb8d3 | 10934 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
10935 | ;; |
10936 | esac; | |
10937 | } | | |
10938 | sed ' | |
10939 | t clear | |
10940 | : clear | |
10941 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
10942 | t end | |
10943 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
10944 | : end' >>confcache | |
10945 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10946 | if test -w $cache_file; then | |
10947 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
10948 | cat confcache >$cache_file | |
10949 | else | |
10950 | echo "not updating unwritable cache $cache_file" | |
10951 | fi | |
10952 | fi | |
10953 | rm -f confcache | |
10954 | ||
a848cd7e | 10955 | CFLAGS=${CFLAGS:=} |
6dcfc289 DE |
10956 | |
10957 | ||
3006edc0 | 10958 | |
6dcfc289 | 10959 | ac_ext=c |
a848cd7e SC |
10960 | ac_cpp='$CPP $CPPFLAGS' |
10961 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10962 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10963 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10964 | if test -n "$ac_tool_prefix"; then | |
10965 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
10966 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
10967 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10968 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10969 | if test "${ac_cv_prog_CC+set}" = set; then | |
10970 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10971 | else | |
10972 | if test -n "$CC"; then | |
10973 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10974 | else | |
10975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10976 | for as_dir in $PATH | |
10977 | do | |
10978 | IFS=$as_save_IFS | |
10979 | test -z "$as_dir" && as_dir=. | |
10980 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10981 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10982 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
10983 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10984 | break 2 | |
10985 | fi | |
10986 | done | |
10987 | done | |
10988 | ||
10989 | fi | |
10990 | fi | |
10991 | CC=$ac_cv_prog_CC | |
10992 | if test -n "$CC"; then | |
10993 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10994 | echo "${ECHO_T}$CC" >&6 | |
10995 | else | |
10996 | echo "$as_me:$LINENO: result: no" >&5 | |
10997 | echo "${ECHO_T}no" >&6 | |
10998 | fi | |
10999 | ||
11000 | fi | |
11001 | if test -z "$ac_cv_prog_CC"; then | |
11002 | ac_ct_CC=$CC | |
11003 | # Extract the first word of "gcc", so it can be a program name with args. | |
11004 | set dummy gcc; ac_word=$2 | |
11005 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11006 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11007 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
11008 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11009 | else | |
11010 | if test -n "$ac_ct_CC"; then | |
11011 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
11012 | else | |
11013 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11014 | for as_dir in $PATH | |
11015 | do | |
11016 | IFS=$as_save_IFS | |
11017 | test -z "$as_dir" && as_dir=. | |
11018 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11019 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11020 | ac_cv_prog_ac_ct_CC="gcc" | |
11021 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11022 | break 2 | |
11023 | fi | |
11024 | done | |
11025 | done | |
11026 | ||
11027 | fi | |
11028 | fi | |
11029 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
11030 | if test -n "$ac_ct_CC"; then | |
11031 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
11032 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
11033 | else | |
11034 | echo "$as_me:$LINENO: result: no" >&5 | |
11035 | echo "${ECHO_T}no" >&6 | |
11036 | fi | |
11037 | ||
11038 | CC=$ac_ct_CC | |
11039 | else | |
11040 | CC="$ac_cv_prog_CC" | |
11041 | fi | |
11042 | ||
11043 | if test -z "$CC"; then | |
11044 | if test -n "$ac_tool_prefix"; then | |
11045 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
11046 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
11047 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11048 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11049 | if test "${ac_cv_prog_CC+set}" = set; then | |
11050 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11051 | else | |
11052 | if test -n "$CC"; then | |
11053 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
11054 | else | |
11055 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11056 | for as_dir in $PATH | |
11057 | do | |
11058 | IFS=$as_save_IFS | |
11059 | test -z "$as_dir" && as_dir=. | |
11060 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11061 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11062 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
11063 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11064 | break 2 | |
11065 | fi | |
11066 | done | |
11067 | done | |
11068 | ||
11069 | fi | |
11070 | fi | |
11071 | CC=$ac_cv_prog_CC | |
11072 | if test -n "$CC"; then | |
11073 | echo "$as_me:$LINENO: result: $CC" >&5 | |
11074 | echo "${ECHO_T}$CC" >&6 | |
11075 | else | |
11076 | echo "$as_me:$LINENO: result: no" >&5 | |
11077 | echo "${ECHO_T}no" >&6 | |
11078 | fi | |
11079 | ||
11080 | fi | |
11081 | if test -z "$ac_cv_prog_CC"; then | |
11082 | ac_ct_CC=$CC | |
11083 | # Extract the first word of "cc", so it can be a program name with args. | |
11084 | set dummy cc; ac_word=$2 | |
11085 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11086 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11087 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
11088 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11089 | else | |
11090 | if test -n "$ac_ct_CC"; then | |
11091 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
11092 | else | |
11093 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11094 | for as_dir in $PATH | |
11095 | do | |
11096 | IFS=$as_save_IFS | |
11097 | test -z "$as_dir" && as_dir=. | |
11098 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11099 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11100 | ac_cv_prog_ac_ct_CC="cc" | |
11101 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11102 | break 2 | |
11103 | fi | |
11104 | done | |
11105 | done | |
11106 | ||
11107 | fi | |
11108 | fi | |
11109 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
11110 | if test -n "$ac_ct_CC"; then | |
11111 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
11112 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
11113 | else | |
11114 | echo "$as_me:$LINENO: result: no" >&5 | |
11115 | echo "${ECHO_T}no" >&6 | |
11116 | fi | |
11117 | ||
11118 | CC=$ac_ct_CC | |
11119 | else | |
11120 | CC="$ac_cv_prog_CC" | |
11121 | fi | |
11122 | ||
11123 | fi | |
11124 | if test -z "$CC"; then | |
11125 | # Extract the first word of "cc", so it can be a program name with args. | |
11126 | set dummy cc; ac_word=$2 | |
11127 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11128 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11129 | if test "${ac_cv_prog_CC+set}" = set; then | |
11130 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11131 | else | |
11132 | if test -n "$CC"; then | |
11133 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
11134 | else | |
11135 | ac_prog_rejected=no | |
11136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11137 | for as_dir in $PATH | |
11138 | do | |
11139 | IFS=$as_save_IFS | |
11140 | test -z "$as_dir" && as_dir=. | |
11141 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11142 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11143 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
11144 | ac_prog_rejected=yes | |
11145 | continue | |
11146 | fi | |
11147 | ac_cv_prog_CC="cc" | |
11148 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11149 | break 2 | |
11150 | fi | |
11151 | done | |
11152 | done | |
11153 | ||
11154 | if test $ac_prog_rejected = yes; then | |
11155 | # We found a bogon in the path, so make sure we never use it. | |
11156 | set dummy $ac_cv_prog_CC | |
11157 | shift | |
11158 | if test $# != 0; then | |
11159 | # We chose a different compiler from the bogus one. | |
11160 | # However, it has the same basename, so the bogon will be chosen | |
11161 | # first if we set CC to just the basename; use the full file name. | |
11162 | shift | |
11163 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
11164 | fi | |
11165 | fi | |
11166 | fi | |
11167 | fi | |
11168 | CC=$ac_cv_prog_CC | |
11169 | if test -n "$CC"; then | |
11170 | echo "$as_me:$LINENO: result: $CC" >&5 | |
11171 | echo "${ECHO_T}$CC" >&6 | |
11172 | else | |
11173 | echo "$as_me:$LINENO: result: no" >&5 | |
11174 | echo "${ECHO_T}no" >&6 | |
11175 | fi | |
11176 | ||
11177 | fi | |
11178 | if test -z "$CC"; then | |
11179 | if test -n "$ac_tool_prefix"; then | |
11180 | for ac_prog in cl | |
11181 | do | |
11182 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
11183 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
11184 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11185 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11186 | if test "${ac_cv_prog_CC+set}" = set; then | |
11187 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11188 | else | |
11189 | if test -n "$CC"; then | |
11190 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
11191 | else | |
11192 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11193 | for as_dir in $PATH | |
11194 | do | |
11195 | IFS=$as_save_IFS | |
11196 | test -z "$as_dir" && as_dir=. | |
11197 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11198 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11199 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
11200 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11201 | break 2 | |
11202 | fi | |
11203 | done | |
11204 | done | |
11205 | ||
11206 | fi | |
11207 | fi | |
11208 | CC=$ac_cv_prog_CC | |
11209 | if test -n "$CC"; then | |
11210 | echo "$as_me:$LINENO: result: $CC" >&5 | |
11211 | echo "${ECHO_T}$CC" >&6 | |
11212 | else | |
11213 | echo "$as_me:$LINENO: result: no" >&5 | |
11214 | echo "${ECHO_T}no" >&6 | |
11215 | fi | |
11216 | ||
11217 | test -n "$CC" && break | |
11218 | done | |
11219 | fi | |
11220 | if test -z "$CC"; then | |
11221 | ac_ct_CC=$CC | |
11222 | for ac_prog in cl | |
11223 | do | |
11224 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11225 | set dummy $ac_prog; ac_word=$2 | |
11226 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11227 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11228 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
11229 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11230 | else | |
11231 | if test -n "$ac_ct_CC"; then | |
11232 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
11233 | else | |
11234 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11235 | for as_dir in $PATH | |
11236 | do | |
11237 | IFS=$as_save_IFS | |
11238 | test -z "$as_dir" && as_dir=. | |
11239 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11240 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11241 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
11242 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11243 | break 2 | |
11244 | fi | |
11245 | done | |
11246 | done | |
11247 | ||
11248 | fi | |
11249 | fi | |
11250 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
11251 | if test -n "$ac_ct_CC"; then | |
11252 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
11253 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
11254 | else | |
11255 | echo "$as_me:$LINENO: result: no" >&5 | |
11256 | echo "${ECHO_T}no" >&6 | |
11257 | fi | |
11258 | ||
11259 | test -n "$ac_ct_CC" && break | |
11260 | done | |
11261 | ||
11262 | CC=$ac_ct_CC | |
11263 | fi | |
11264 | ||
11265 | fi | |
11266 | ||
11267 | ||
11268 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
11269 | See \`config.log' for more details." >&5 | |
11270 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
11271 | See \`config.log' for more details." >&2;} | |
11272 | { (exit 1); exit 1; }; } | |
11273 | ||
11274 | # Provide some information about the compiler. | |
11275 | echo "$as_me:$LINENO:" \ | |
11276 | "checking for C compiler version" >&5 | |
11277 | ac_compiler=`set X $ac_compile; echo $2` | |
11278 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11279 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11280 | ac_status=$? | |
11281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11282 | (exit $ac_status); } | |
11283 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11284 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11285 | ac_status=$? | |
11286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11287 | (exit $ac_status); } | |
11288 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11289 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11290 | ac_status=$? | |
11291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11292 | (exit $ac_status); } | |
11293 | ||
11294 | cat >conftest.$ac_ext <<_ACEOF | |
11295 | /* confdefs.h. */ | |
11296 | _ACEOF | |
11297 | cat confdefs.h >>conftest.$ac_ext | |
11298 | cat >>conftest.$ac_ext <<_ACEOF | |
11299 | /* end confdefs.h. */ | |
11300 | ||
11301 | int | |
11302 | main () | |
11303 | { | |
11304 | ||
11305 | ; | |
11306 | return 0; | |
11307 | } | |
11308 | _ACEOF | |
11309 | ac_clean_files_save=$ac_clean_files | |
11310 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
11311 | # Try to create an executable without -o first, disregard a.out. | |
11312 | # It will help us diagnose broken compilers, and finding out an intuition | |
11313 | # of exeext. | |
ac1cb8d3 VS |
11314 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
11315 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
a848cd7e SC |
11316 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
11317 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
11318 | (eval $ac_link_default) 2>&5 | |
11319 | ac_status=$? | |
11320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11321 | (exit $ac_status); }; then | |
11322 | # Find the output, starting from the most likely. This scheme is | |
11323 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
11324 | # resort. | |
11325 | ||
11326 | # Be careful to initialize this variable, since it used to be cached. | |
11327 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
11328 | ac_cv_exeext= | |
11329 | # b.out is created by i960 compilers. | |
11330 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
11331 | do | |
11332 | test -f "$ac_file" || continue | |
11333 | case $ac_file in | |
11334 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
ac1cb8d3 | 11335 | ;; |
a848cd7e | 11336 | conftest.$ac_ext ) |
ac1cb8d3 VS |
11337 | # This is the source file. |
11338 | ;; | |
a848cd7e | 11339 | [ab].out ) |
ac1cb8d3 VS |
11340 | # We found the default executable, but exeext='' is most |
11341 | # certainly right. | |
11342 | break;; | |
a848cd7e | 11343 | *.* ) |
ac1cb8d3 VS |
11344 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
11345 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
11346 | # but it would be cool to find out if it's true. Does anybody | |
11347 | # maintain Libtool? --akim. | |
11348 | export ac_cv_exeext | |
11349 | break;; | |
a848cd7e | 11350 | * ) |
ac1cb8d3 | 11351 | break;; |
a848cd7e SC |
11352 | esac |
11353 | done | |
11354 | else | |
11355 | echo "$as_me: failed program was:" >&5 | |
11356 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11357 | ||
11358 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
11359 | See \`config.log' for more details." >&5 | |
11360 | echo "$as_me: error: C compiler cannot create executables | |
11361 | See \`config.log' for more details." >&2;} | |
11362 | { (exit 77); exit 77; }; } | |
11363 | fi | |
11364 | ||
11365 | ac_exeext=$ac_cv_exeext | |
11366 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
11367 | echo "${ECHO_T}$ac_file" >&6 | |
11368 | ||
11369 | # Check the compiler produces executables we can run. If not, either | |
11370 | # the compiler is broken, or we cross compile. | |
11371 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
11372 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
11373 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
11374 | # If not cross compiling, check that we can run a simple program. | |
11375 | if test "$cross_compiling" != yes; then | |
11376 | if { ac_try='./$ac_file' | |
11377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11378 | (eval $ac_try) 2>&5 | |
11379 | ac_status=$? | |
11380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11381 | (exit $ac_status); }; }; then | |
11382 | cross_compiling=no | |
11383 | else | |
11384 | if test "$cross_compiling" = maybe; then | |
11385 | cross_compiling=yes | |
11386 | else | |
11387 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
11388 | If you meant to cross compile, use \`--host'. | |
11389 | See \`config.log' for more details." >&5 | |
11390 | echo "$as_me: error: cannot run C compiled programs. | |
11391 | If you meant to cross compile, use \`--host'. | |
11392 | See \`config.log' for more details." >&2;} | |
11393 | { (exit 1); exit 1; }; } | |
11394 | fi | |
11395 | fi | |
11396 | fi | |
11397 | echo "$as_me:$LINENO: result: yes" >&5 | |
11398 | echo "${ECHO_T}yes" >&6 | |
11399 | ||
11400 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
11401 | ac_clean_files=$ac_clean_files_save | |
11402 | # Check the compiler produces executables we can run. If not, either | |
11403 | # the compiler is broken, or we cross compile. | |
11404 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
11405 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
11406 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
11407 | echo "${ECHO_T}$cross_compiling" >&6 | |
11408 | ||
11409 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
11410 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
11411 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11412 | (eval $ac_link) 2>&5 | |
11413 | ac_status=$? | |
11414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11415 | (exit $ac_status); }; then | |
11416 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
11417 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
11418 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
11419 | # `rm'. | |
11420 | for ac_file in conftest.exe conftest conftest.*; do | |
11421 | test -f "$ac_file" || continue | |
11422 | case $ac_file in | |
11423 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
11424 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
ac1cb8d3 VS |
11425 | export ac_cv_exeext |
11426 | break;; | |
a848cd7e SC |
11427 | * ) break;; |
11428 | esac | |
11429 | done | |
11430 | else | |
11431 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
11432 | See \`config.log' for more details." >&5 | |
11433 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
11434 | See \`config.log' for more details." >&2;} | |
11435 | { (exit 1); exit 1; }; } | |
11436 | fi | |
11437 | ||
11438 | rm -f conftest$ac_cv_exeext | |
11439 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
11440 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
11441 | ||
11442 | rm -f conftest.$ac_ext | |
11443 | EXEEXT=$ac_cv_exeext | |
11444 | ac_exeext=$EXEEXT | |
11445 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
11446 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
11447 | if test "${ac_cv_objext+set}" = set; then | |
11448 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11449 | else | |
11450 | cat >conftest.$ac_ext <<_ACEOF | |
11451 | /* confdefs.h. */ | |
11452 | _ACEOF | |
11453 | cat confdefs.h >>conftest.$ac_ext | |
11454 | cat >>conftest.$ac_ext <<_ACEOF | |
11455 | /* end confdefs.h. */ | |
11456 | ||
11457 | int | |
11458 | main () | |
11459 | { | |
11460 | ||
11461 | ; | |
11462 | return 0; | |
11463 | } | |
11464 | _ACEOF | |
11465 | rm -f conftest.o conftest.obj | |
11466 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11467 | (eval $ac_compile) 2>&5 | |
11468 | ac_status=$? | |
11469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11470 | (exit $ac_status); }; then | |
11471 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
11472 | case $ac_file in | |
11473 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
11474 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
11475 | break;; | |
11476 | esac | |
11477 | done | |
11478 | else | |
11479 | echo "$as_me: failed program was:" >&5 | |
11480 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11481 | ||
11482 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
11483 | See \`config.log' for more details." >&5 | |
11484 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
11485 | See \`config.log' for more details." >&2;} | |
11486 | { (exit 1); exit 1; }; } | |
11487 | fi | |
11488 | ||
11489 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
11490 | fi | |
11491 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
11492 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
11493 | OBJEXT=$ac_cv_objext | |
11494 | ac_objext=$OBJEXT | |
11495 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
11496 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
11497 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
11498 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11499 | else | |
11500 | cat >conftest.$ac_ext <<_ACEOF | |
11501 | /* confdefs.h. */ | |
11502 | _ACEOF | |
11503 | cat confdefs.h >>conftest.$ac_ext | |
11504 | cat >>conftest.$ac_ext <<_ACEOF | |
11505 | /* end confdefs.h. */ | |
11506 | ||
11507 | int | |
11508 | main () | |
11509 | { | |
11510 | #ifndef __GNUC__ | |
11511 | choke me | |
11512 | #endif | |
11513 | ||
11514 | ; | |
11515 | return 0; | |
11516 | } | |
11517 | _ACEOF | |
11518 | rm -f conftest.$ac_objext | |
11519 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11520 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11521 | ac_status=$? |
ac1cb8d3 VS |
11522 | grep -v '^ *+' conftest.er1 >conftest.err |
11523 | rm -f conftest.er1 | |
11524 | cat conftest.err >&5 | |
a848cd7e SC |
11525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11526 | (exit $ac_status); } && | |
3565d135 RR |
11527 | { ac_try='test -z "$ac_c_werror_flag" |
11528 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11530 | (eval $ac_try) 2>&5 | |
11531 | ac_status=$? | |
11532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11533 | (exit $ac_status); }; } && | |
11534 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11536 | (eval $ac_try) 2>&5 | |
11537 | ac_status=$? | |
11538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11539 | (exit $ac_status); }; }; then | |
11540 | ac_compiler_gnu=yes | |
11541 | else | |
11542 | echo "$as_me: failed program was:" >&5 | |
11543 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11544 | ||
11545 | ac_compiler_gnu=no | |
11546 | fi | |
ac1cb8d3 | 11547 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11548 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
11549 | ||
11550 | fi | |
11551 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
11552 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
11553 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
11554 | ac_test_CFLAGS=${CFLAGS+set} | |
11555 | ac_save_CFLAGS=$CFLAGS | |
8aeeb05c | 11556 | CFLAGS="-g" |
a848cd7e SC |
11557 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
11558 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
11559 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
11560 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11561 | else | |
11562 | cat >conftest.$ac_ext <<_ACEOF | |
11563 | /* confdefs.h. */ | |
11564 | _ACEOF | |
11565 | cat confdefs.h >>conftest.$ac_ext | |
11566 | cat >>conftest.$ac_ext <<_ACEOF | |
11567 | /* end confdefs.h. */ | |
11568 | ||
11569 | int | |
11570 | main () | |
11571 | { | |
11572 | ||
11573 | ; | |
11574 | return 0; | |
11575 | } | |
11576 | _ACEOF | |
11577 | rm -f conftest.$ac_objext | |
11578 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11579 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11580 | ac_status=$? |
ac1cb8d3 VS |
11581 | grep -v '^ *+' conftest.er1 >conftest.err |
11582 | rm -f conftest.er1 | |
11583 | cat conftest.err >&5 | |
a848cd7e SC |
11584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11585 | (exit $ac_status); } && | |
3565d135 RR |
11586 | { ac_try='test -z "$ac_c_werror_flag" |
11587 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11589 | (eval $ac_try) 2>&5 | |
11590 | ac_status=$? | |
11591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11592 | (exit $ac_status); }; } && | |
11593 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11595 | (eval $ac_try) 2>&5 | |
11596 | ac_status=$? | |
11597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11598 | (exit $ac_status); }; }; then | |
11599 | ac_cv_prog_cc_g=yes | |
11600 | else | |
11601 | echo "$as_me: failed program was:" >&5 | |
11602 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11603 | ||
11604 | ac_cv_prog_cc_g=no | |
11605 | fi | |
ac1cb8d3 | 11606 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11607 | fi |
11608 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
11609 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
11610 | if test "$ac_test_CFLAGS" = set; then | |
11611 | CFLAGS=$ac_save_CFLAGS | |
11612 | elif test $ac_cv_prog_cc_g = yes; then | |
11613 | if test "$GCC" = yes; then | |
11614 | CFLAGS="-g -O2" | |
11615 | else | |
11616 | CFLAGS="-g" | |
11617 | fi | |
11618 | else | |
11619 | if test "$GCC" = yes; then | |
11620 | CFLAGS="-O2" | |
11621 | else | |
11622 | CFLAGS= | |
11623 | fi | |
11624 | fi | |
11625 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
11626 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
11627 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
11628 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11629 | else | |
11630 | ac_cv_prog_cc_stdc=no | |
11631 | ac_save_CC=$CC | |
11632 | cat >conftest.$ac_ext <<_ACEOF | |
11633 | /* confdefs.h. */ | |
11634 | _ACEOF | |
11635 | cat confdefs.h >>conftest.$ac_ext | |
11636 | cat >>conftest.$ac_ext <<_ACEOF | |
11637 | /* end confdefs.h. */ | |
11638 | #include <stdarg.h> | |
11639 | #include <stdio.h> | |
11640 | #include <sys/types.h> | |
11641 | #include <sys/stat.h> | |
11642 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
11643 | struct buf { int x; }; | |
11644 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
11645 | static char *e (p, i) | |
11646 | char **p; | |
11647 | int i; | |
11648 | { | |
11649 | return p[i]; | |
11650 | } | |
11651 | static char *f (char * (*g) (char **, int), char **p, ...) | |
11652 | { | |
11653 | char *s; | |
11654 | va_list v; | |
11655 | va_start (v,p); | |
11656 | s = g (p, va_arg (v,int)); | |
11657 | va_end (v); | |
11658 | return s; | |
11659 | } | |
ac1cb8d3 VS |
11660 | |
11661 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
11662 | function prototypes and stuff, but not '\xHH' hex character constants. | |
11663 | These don't provoke an error unfortunately, instead are silently treated | |
11664 | as 'x'. The following induces an error, until -std1 is added to get | |
11665 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
11666 | array size at least. It's necessary to write '\x00'==0 to get something | |
11667 | that's true only with -std1. */ | |
11668 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
11669 | ||
a848cd7e SC |
11670 | int test (int i, double x); |
11671 | struct s1 {int (*f) (int a);}; | |
11672 | struct s2 {int (*f) (double a);}; | |
11673 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
11674 | int argc; | |
11675 | char **argv; | |
11676 | int | |
11677 | main () | |
11678 | { | |
11679 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
11680 | ; | |
11681 | return 0; | |
11682 | } | |
11683 | _ACEOF | |
11684 | # Don't try gcc -ansi; that turns off useful extensions and | |
11685 | # breaks some systems' header files. | |
11686 | # AIX -qlanglvl=ansi | |
11687 | # Ultrix and OSF/1 -std1 | |
11688 | # HP-UX 10.20 and later -Ae | |
11689 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
11690 | # SVR4 -Xc -D__EXTENSIONS__ | |
11691 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
11692 | do | |
11693 | CC="$ac_save_CC $ac_arg" | |
11694 | rm -f conftest.$ac_objext | |
11695 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11696 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11697 | ac_status=$? |
ac1cb8d3 VS |
11698 | grep -v '^ *+' conftest.er1 >conftest.err |
11699 | rm -f conftest.er1 | |
11700 | cat conftest.err >&5 | |
a848cd7e SC |
11701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11702 | (exit $ac_status); } && | |
3565d135 RR |
11703 | { ac_try='test -z "$ac_c_werror_flag" |
11704 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11706 | (eval $ac_try) 2>&5 | |
11707 | ac_status=$? | |
11708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11709 | (exit $ac_status); }; } && | |
11710 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11712 | (eval $ac_try) 2>&5 | |
11713 | ac_status=$? | |
11714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11715 | (exit $ac_status); }; }; then | |
11716 | ac_cv_prog_cc_stdc=$ac_arg | |
11717 | break | |
11718 | else | |
11719 | echo "$as_me: failed program was:" >&5 | |
11720 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11721 | ||
11722 | fi | |
ac1cb8d3 | 11723 | rm -f conftest.err conftest.$ac_objext |
a848cd7e SC |
11724 | done |
11725 | rm -f conftest.$ac_ext conftest.$ac_objext | |
11726 | CC=$ac_save_CC | |
11727 | ||
11728 | fi | |
11729 | ||
11730 | case "x$ac_cv_prog_cc_stdc" in | |
11731 | x|xno) | |
11732 | echo "$as_me:$LINENO: result: none needed" >&5 | |
11733 | echo "${ECHO_T}none needed" >&6 ;; | |
11734 | *) | |
11735 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
11736 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
11737 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
11738 | esac | |
11739 | ||
11740 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
11741 | # in C++ we need to declare it. In case someone uses the same compiler | |
11742 | # for both compiling C and C++ we need to have the C++ compiler decide | |
11743 | # the declaration of exit, since it's the most demanding environment. | |
11744 | cat >conftest.$ac_ext <<_ACEOF | |
11745 | #ifndef __cplusplus | |
11746 | choke me | |
11747 | #endif | |
11748 | _ACEOF | |
11749 | rm -f conftest.$ac_objext | |
11750 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11751 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11752 | ac_status=$? |
ac1cb8d3 VS |
11753 | grep -v '^ *+' conftest.er1 >conftest.err |
11754 | rm -f conftest.er1 | |
11755 | cat conftest.err >&5 | |
a848cd7e SC |
11756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11757 | (exit $ac_status); } && | |
3565d135 RR |
11758 | { ac_try='test -z "$ac_c_werror_flag" |
11759 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11761 | (eval $ac_try) 2>&5 | |
11762 | ac_status=$? | |
11763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11764 | (exit $ac_status); }; } && | |
11765 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11767 | (eval $ac_try) 2>&5 | |
11768 | ac_status=$? | |
11769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11770 | (exit $ac_status); }; }; then | |
11771 | for ac_declaration in \ | |
ac1cb8d3 | 11772 | '' \ |
a848cd7e SC |
11773 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11774 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11775 | 'extern "C" void exit (int) throw ();' \ | |
11776 | 'extern "C" void exit (int);' \ | |
11777 | 'void exit (int);' | |
11778 | do | |
11779 | cat >conftest.$ac_ext <<_ACEOF | |
11780 | /* confdefs.h. */ | |
11781 | _ACEOF | |
11782 | cat confdefs.h >>conftest.$ac_ext | |
11783 | cat >>conftest.$ac_ext <<_ACEOF | |
11784 | /* end confdefs.h. */ | |
de59c161 | 11785 | $ac_declaration |
ac1cb8d3 | 11786 | #include <stdlib.h> |
a848cd7e SC |
11787 | int |
11788 | main () | |
11789 | { | |
11790 | exit (42); | |
11791 | ; | |
11792 | return 0; | |
11793 | } | |
11794 | _ACEOF | |
11795 | rm -f conftest.$ac_objext | |
11796 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11797 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11798 | ac_status=$? |
ac1cb8d3 VS |
11799 | grep -v '^ *+' conftest.er1 >conftest.err |
11800 | rm -f conftest.er1 | |
11801 | cat conftest.err >&5 | |
a848cd7e SC |
11802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11803 | (exit $ac_status); } && | |
3565d135 RR |
11804 | { ac_try='test -z "$ac_c_werror_flag" |
11805 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11807 | (eval $ac_try) 2>&5 | |
11808 | ac_status=$? | |
11809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11810 | (exit $ac_status); }; } && | |
11811 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
11812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11813 | (eval $ac_try) 2>&5 | |
11814 | ac_status=$? | |
11815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11816 | (exit $ac_status); }; }; then | |
11817 | : | |
11818 | else | |
11819 | echo "$as_me: failed program was:" >&5 | |
11820 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11821 | ||
11822 | continue | |
11823 | fi | |
ac1cb8d3 | 11824 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11825 | cat >conftest.$ac_ext <<_ACEOF |
11826 | /* confdefs.h. */ | |
11827 | _ACEOF | |
11828 | cat confdefs.h >>conftest.$ac_ext | |
11829 | cat >>conftest.$ac_ext <<_ACEOF | |
11830 | /* end confdefs.h. */ | |
11831 | $ac_declaration | |
11832 | int | |
11833 | main () | |
11834 | { | |
11835 | exit (42); | |
11836 | ; | |
11837 | return 0; | |
11838 | } | |
11839 | _ACEOF | |
11840 | rm -f conftest.$ac_objext | |
11841 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 11842 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 11843 | ac_status=$? |
ac1cb8d3 VS |
11844 | grep -v '^ *+' conftest.er1 >conftest.err |
11845 | rm -f conftest.er1 | |
11846 | cat conftest.err >&5 | |
a848cd7e SC |
11847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11848 | (exit $ac_status); } && | |
3565d135 RR |
11849 | { ac_try='test -z "$ac_c_werror_flag" |
11850 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
11851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11852 | (eval $ac_try) 2>&5 | |
11853 | ac_status=$? | |
11854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11855 | (exit $ac_status); }; } && | |
11856 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
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); }; }; then | |
11862 | break | |
11863 | else | |
11864 | echo "$as_me: failed program was:" >&5 | |
11865 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11866 | ||
11867 | fi | |
ac1cb8d3 | 11868 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11869 | done |
11870 | rm -f conftest* | |
11871 | if test -n "$ac_declaration"; then | |
11872 | echo '#ifdef __cplusplus' >>confdefs.h | |
11873 | echo $ac_declaration >>confdefs.h | |
11874 | echo '#endif' >>confdefs.h | |
11875 | fi | |
11876 | ||
11877 | else | |
11878 | echo "$as_me: failed program was:" >&5 | |
11879 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11880 | ||
11881 | fi | |
ac1cb8d3 | 11882 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11883 | ac_ext=c |
11884 | ac_cpp='$CPP $CPPFLAGS' | |
11885 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11886 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11887 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11888 | ||
ab0ad5f1 VZ |
11889 | |
11890 | ||
11891 | ac_ext=c | |
11892 | ac_cpp='$CPP $CPPFLAGS' | |
11893 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11894 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11895 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11896 | ||
11897 | echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5 | |
11898 | echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6 | |
11899 | if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then | |
11900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11901 | else | |
11902 | cat >conftest.$ac_ext <<_ACEOF | |
11903 | /* confdefs.h. */ | |
11904 | _ACEOF | |
11905 | cat confdefs.h >>conftest.$ac_ext | |
11906 | cat >>conftest.$ac_ext <<_ACEOF | |
11907 | /* end confdefs.h. */ | |
11908 | ||
11909 | int | |
11910 | main () | |
11911 | { | |
11912 | ||
11913 | #ifndef __INTEL_COMPILER | |
11914 | choke me | |
11915 | #endif | |
11916 | ||
11917 | ; | |
11918 | return 0; | |
11919 | } | |
11920 | _ACEOF | |
11921 | rm -f conftest.$ac_objext | |
11922 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11923 | (eval $ac_compile) 2>conftest.er1 | |
11924 | ac_status=$? | |
11925 | grep -v '^ *+' conftest.er1 >conftest.err | |
11926 | rm -f conftest.er1 | |
11927 | cat conftest.err >&5 | |
11928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11929 | (exit $ac_status); } && | |
3565d135 RR |
11930 | { ac_try='test -z "$ac_c_werror_flag" |
11931 | || test ! -s conftest.err' | |
ab0ad5f1 VZ |
11932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11933 | (eval $ac_try) 2>&5 | |
11934 | ac_status=$? | |
11935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11936 | (exit $ac_status); }; } && | |
11937 | { ac_try='test -s conftest.$ac_objext' | |
11938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11939 | (eval $ac_try) 2>&5 | |
11940 | ac_status=$? | |
11941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11942 | (exit $ac_status); }; }; then | |
11943 | bakefile_cv_c_compiler___INTEL_COMPILER=yes | |
11944 | else | |
11945 | echo "$as_me: failed program was:" >&5 | |
11946 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11947 | ||
11948 | bakefile_cv_c_compiler___INTEL_COMPILER=no | |
11949 | ||
11950 | fi | |
11951 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11952 | ||
11953 | ||
11954 | fi | |
11955 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5 | |
11956 | echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6 | |
11957 | ac_ext=c | |
11958 | ac_cpp='$CPP $CPPFLAGS' | |
11959 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11960 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11961 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11962 | ||
11963 | if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then | |
11964 | :; INTELCC=yes | |
11965 | else | |
11966 | :; | |
11967 | fi | |
11968 | ||
11969 | ||
11970 | if test "x$GCC" != "xyes"; then | |
3006edc0 VZ |
11971 | if test "xCC" = "xC"; then |
11972 | echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5 | |
480ccd21 | 11973 | echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6 |
0093c2fc | 11974 | if test "${bakefile_cv_c_exto+set}" = set; then |
480ccd21 DE |
11975 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11976 | else | |
11977 | cat >conftest.$ac_ext <<_ACEOF | |
11978 | /* confdefs.h. */ | |
11979 | _ACEOF | |
11980 | cat confdefs.h >>conftest.$ac_ext | |
11981 | cat >>conftest.$ac_ext <<_ACEOF | |
11982 | /* end confdefs.h. */ | |
11983 | ||
11984 | int | |
11985 | main () | |
11986 | { | |
11987 | ||
11988 | ; | |
11989 | return 0; | |
11990 | } | |
11991 | _ACEOF | |
11992 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
11993 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11994 | (eval $ac_compile) 2>&5 | |
11995 | ac_status=$? | |
11996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11997 | (exit $ac_status); }; then | |
11998 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
11999 | case $ac_file in | |
12000 | conftest.$ac_ext.o) | |
0093c2fc | 12001 | bakefile_cv_c_exto="-ext o" |
480ccd21 DE |
12002 | ;; |
12003 | *) | |
12004 | ;; | |
12005 | esac | |
12006 | done | |
12007 | else | |
12008 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
12009 | See \`config.log' for more details." >&5 | |
12010 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
12011 | See \`config.log' for more details." >&2;} | |
12012 | { (exit 1); exit 1; }; } | |
12013 | ||
12014 | fi | |
12015 | ||
12016 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
12017 | ||
12018 | fi | |
0093c2fc VZ |
12019 | echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5 |
12020 | echo "${ECHO_T}$bakefile_cv_c_exto" >&6 | |
12021 | if test "x$bakefile_cv_c_exto" '!=' "x"; then | |
480ccd21 | 12022 | if test "c" = "c"; then |
0093c2fc | 12023 | CFLAGS="$bakefile_cv_c_exto $CFLAGS" |
480ccd21 DE |
12024 | fi |
12025 | if test "c" = "cxx"; then | |
0093c2fc | 12026 | CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS" |
480ccd21 DE |
12027 | fi |
12028 | fi | |
12029 | ||
0093c2fc | 12030 | if test "x$bakefile_cv_c_exto" '!=' "x"; then |
3006edc0 VZ |
12031 | unset ac_cv_prog_cc_g |
12032 | ac_test_CFLAGS=${CFLAGS+set} | |
480ccd21 | 12033 | ac_save_CFLAGS=$CFLAGS |
8aeeb05c | 12034 | CFLAGS="-g" |
480ccd21 DE |
12035 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
12036 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
12037 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
12038 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12039 | else | |
12040 | cat >conftest.$ac_ext <<_ACEOF | |
12041 | /* confdefs.h. */ | |
12042 | _ACEOF | |
12043 | cat confdefs.h >>conftest.$ac_ext | |
12044 | cat >>conftest.$ac_ext <<_ACEOF | |
12045 | /* end confdefs.h. */ | |
12046 | ||
12047 | int | |
12048 | main () | |
12049 | { | |
12050 | ||
12051 | ; | |
12052 | return 0; | |
12053 | } | |
12054 | _ACEOF | |
12055 | rm -f conftest.$ac_objext | |
12056 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12057 | (eval $ac_compile) 2>conftest.er1 | |
12058 | ac_status=$? | |
12059 | grep -v '^ *+' conftest.er1 >conftest.err | |
12060 | rm -f conftest.er1 | |
12061 | cat conftest.err >&5 | |
12062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12063 | (exit $ac_status); } && | |
3565d135 RR |
12064 | { ac_try='test -z "$ac_c_werror_flag" |
12065 | || test ! -s conftest.err' | |
480ccd21 DE |
12066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12067 | (eval $ac_try) 2>&5 | |
12068 | ac_status=$? | |
12069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12070 | (exit $ac_status); }; } && | |
12071 | { ac_try='test -s conftest.$ac_objext' | |
12072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12073 | (eval $ac_try) 2>&5 | |
12074 | ac_status=$? | |
12075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12076 | (exit $ac_status); }; }; then | |
12077 | ac_cv_prog_cc_g=yes | |
12078 | else | |
12079 | echo "$as_me: failed program was:" >&5 | |
12080 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12081 | ||
12082 | ac_cv_prog_cc_g=no | |
12083 | fi | |
12084 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12085 | fi | |
12086 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
12087 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
12088 | if test "$ac_test_CFLAGS" = set; then | |
12089 | CFLAGS=$ac_save_CFLAGS | |
12090 | elif test $ac_cv_prog_cc_g = yes; then | |
12091 | if test "$GCC" = yes; then | |
12092 | CFLAGS="-g -O2" | |
12093 | else | |
12094 | CFLAGS="-g" | |
12095 | fi | |
12096 | else | |
12097 | if test "$GCC" = yes; then | |
12098 | CFLAGS="-O2" | |
12099 | else | |
12100 | CFLAGS= | |
12101 | fi | |
12102 | fi | |
3006edc0 | 12103 | fi |
ab0ad5f1 | 12104 | fi |
3006edc0 VZ |
12105 | |
12106 | case `uname -s` in | |
12107 | AIX*) | |
12108 | ac_ext=c | |
12109 | ac_cpp='$CPP $CPPFLAGS' | |
12110 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12111 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12112 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12113 | ||
12114 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5 | |
12115 | echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6 | |
0093c2fc | 12116 | if test "${bakefile_cv_c_compiler_xlc+set}" = set; then |
3006edc0 VZ |
12117 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12118 | else | |
12119 | cat >conftest.$ac_ext <<_ACEOF | |
12120 | /* confdefs.h. */ | |
12121 | _ACEOF | |
12122 | cat confdefs.h >>conftest.$ac_ext | |
12123 | cat >>conftest.$ac_ext <<_ACEOF | |
12124 | /* end confdefs.h. */ | |
12125 | ||
12126 | int | |
12127 | main () | |
12128 | { | |
12129 | #ifndef __xlC__ | |
12130 | choke me | |
12131 | #endif | |
12132 | ||
12133 | ; | |
12134 | return 0; | |
12135 | } | |
12136 | _ACEOF | |
12137 | rm -f conftest.$ac_objext | |
12138 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12139 | (eval $ac_compile) 2>conftest.er1 | |
12140 | ac_status=$? | |
12141 | grep -v '^ *+' conftest.er1 >conftest.err | |
12142 | rm -f conftest.er1 | |
12143 | cat conftest.err >&5 | |
12144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12145 | (exit $ac_status); } && | |
3565d135 RR |
12146 | { ac_try='test -z "$ac_c_werror_flag" |
12147 | || test ! -s conftest.err' | |
3006edc0 VZ |
12148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12149 | (eval $ac_try) 2>&5 | |
12150 | ac_status=$? | |
12151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12152 | (exit $ac_status); }; } && | |
12153 | { ac_try='test -s conftest.$ac_objext' | |
12154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12155 | (eval $ac_try) 2>&5 | |
12156 | ac_status=$? | |
12157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12158 | (exit $ac_status); }; }; then | |
0093c2fc | 12159 | bakefile_compiler_xlc=yes |
3006edc0 VZ |
12160 | else |
12161 | echo "$as_me: failed program was:" >&5 | |
12162 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12163 | ||
0093c2fc | 12164 | bakefile_compiler_xlc=no |
3006edc0 VZ |
12165 | fi |
12166 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 12167 | bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc |
3006edc0 VZ |
12168 | |
12169 | fi | |
0093c2fc VZ |
12170 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5 |
12171 | echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6 | |
3006edc0 | 12172 | |
0093c2fc | 12173 | XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes` |
3006edc0 VZ |
12174 | ac_ext=c |
12175 | ac_cpp='$CPP $CPPFLAGS' | |
12176 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12177 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12178 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12179 | ||
12180 | ||
12181 | ;; | |
12182 | ||
12183 | Darwin) | |
12184 | ac_ext=c | |
95986553 DE |
12185 | ac_cpp='$CPP $CPPFLAGS' |
12186 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12187 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12188 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12189 | ||
12190 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5 | |
12191 | echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6 | |
12192 | if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then | |
12193 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12194 | else | |
12195 | cat >conftest.$ac_ext <<_ACEOF | |
12196 | /* confdefs.h. */ | |
12197 | _ACEOF | |
12198 | cat confdefs.h >>conftest.$ac_ext | |
12199 | cat >>conftest.$ac_ext <<_ACEOF | |
12200 | /* end confdefs.h. */ | |
12201 | ||
12202 | int | |
12203 | main () | |
12204 | { | |
12205 | #ifndef __MWERKS__ | |
12206 | choke me | |
12207 | #endif | |
12208 | ||
12209 | ; | |
12210 | return 0; | |
12211 | } | |
12212 | _ACEOF | |
12213 | rm -f conftest.$ac_objext | |
12214 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12215 | (eval $ac_compile) 2>conftest.er1 | |
12216 | ac_status=$? | |
12217 | grep -v '^ *+' conftest.er1 >conftest.err | |
12218 | rm -f conftest.er1 | |
12219 | cat conftest.err >&5 | |
12220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12221 | (exit $ac_status); } && | |
3565d135 RR |
12222 | { ac_try='test -z "$ac_c_werror_flag" |
12223 | || test ! -s conftest.err' | |
95986553 DE |
12224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12225 | (eval $ac_try) 2>&5 | |
12226 | ac_status=$? | |
12227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12228 | (exit $ac_status); }; } && | |
12229 | { ac_try='test -s conftest.$ac_objext' | |
12230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12231 | (eval $ac_try) 2>&5 | |
12232 | ac_status=$? | |
12233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12234 | (exit $ac_status); }; }; then | |
12235 | bakefile_compiler_mwerks=yes | |
12236 | else | |
12237 | echo "$as_me: failed program was:" >&5 | |
12238 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12239 | ||
12240 | bakefile_compiler_mwerks=no | |
12241 | fi | |
12242 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12243 | bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks | |
12244 | ||
12245 | fi | |
12246 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5 | |
12247 | echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6 | |
12248 | ||
0e6fa1d9 | 12249 | MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes` |
95986553 DE |
12250 | ac_ext=c |
12251 | ac_cpp='$CPP $CPPFLAGS' | |
12252 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12253 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12254 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12255 | ||
12256 | ||
3006edc0 | 12257 | ac_ext=c |
9273ffba DE |
12258 | ac_cpp='$CPP $CPPFLAGS' |
12259 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12260 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12261 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12262 | ||
12263 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5 | |
12264 | echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6 | |
0093c2fc | 12265 | if test "${bakefile_cv_c_compiler_xlc+set}" = set; then |
9273ffba DE |
12266 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12267 | else | |
12268 | cat >conftest.$ac_ext <<_ACEOF | |
12269 | /* confdefs.h. */ | |
12270 | _ACEOF | |
12271 | cat confdefs.h >>conftest.$ac_ext | |
12272 | cat >>conftest.$ac_ext <<_ACEOF | |
12273 | /* end confdefs.h. */ | |
12274 | ||
12275 | int | |
12276 | main () | |
12277 | { | |
12278 | #ifndef __xlC__ | |
12279 | choke me | |
12280 | #endif | |
12281 | ||
12282 | ; | |
12283 | return 0; | |
12284 | } | |
12285 | _ACEOF | |
12286 | rm -f conftest.$ac_objext | |
12287 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12288 | (eval $ac_compile) 2>conftest.er1 | |
12289 | ac_status=$? | |
12290 | grep -v '^ *+' conftest.er1 >conftest.err | |
12291 | rm -f conftest.er1 | |
12292 | cat conftest.err >&5 | |
12293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12294 | (exit $ac_status); } && | |
3565d135 RR |
12295 | { ac_try='test -z "$ac_c_werror_flag" |
12296 | || test ! -s conftest.err' | |
9273ffba DE |
12297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12298 | (eval $ac_try) 2>&5 | |
12299 | ac_status=$? | |
12300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12301 | (exit $ac_status); }; } && | |
12302 | { ac_try='test -s conftest.$ac_objext' | |
12303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12304 | (eval $ac_try) 2>&5 | |
12305 | ac_status=$? | |
12306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12307 | (exit $ac_status); }; }; then | |
0093c2fc | 12308 | bakefile_compiler_xlc=yes |
9273ffba DE |
12309 | else |
12310 | echo "$as_me: failed program was:" >&5 | |
12311 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12312 | ||
0093c2fc | 12313 | bakefile_compiler_xlc=no |
9273ffba DE |
12314 | fi |
12315 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 12316 | bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc |
9273ffba DE |
12317 | |
12318 | fi | |
0093c2fc VZ |
12319 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5 |
12320 | echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6 | |
9273ffba | 12321 | |
0093c2fc | 12322 | XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes` |
9273ffba DE |
12323 | ac_ext=c |
12324 | ac_cpp='$CPP $CPPFLAGS' | |
12325 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12326 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12327 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12328 | ||
12329 | ||
3006edc0 VZ |
12330 | ;; |
12331 | ||
12332 | IRIX*) | |
a848cd7e | 12333 | |
6dcfc289 | 12334 | |
0ad5d837 VZ |
12335 | ac_ext=c |
12336 | ac_cpp='$CPP $CPPFLAGS' | |
12337 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12338 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12339 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12340 | ||
12341 | echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5 | |
12342 | echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6 | |
12343 | if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then | |
12344 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12345 | else | |
12346 | cat >conftest.$ac_ext <<_ACEOF | |
12347 | /* confdefs.h. */ | |
12348 | _ACEOF | |
12349 | cat confdefs.h >>conftest.$ac_ext | |
12350 | cat >>conftest.$ac_ext <<_ACEOF | |
12351 | /* end confdefs.h. */ | |
12352 | ||
12353 | int | |
12354 | main () | |
12355 | { | |
12356 | ||
12357 | #ifndef _SGI_COMPILER_VERSION | |
12358 | choke me | |
12359 | #endif | |
12360 | ||
12361 | ; | |
12362 | return 0; | |
12363 | } | |
12364 | _ACEOF | |
12365 | rm -f conftest.$ac_objext | |
12366 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12367 | (eval $ac_compile) 2>conftest.er1 | |
12368 | ac_status=$? | |
12369 | grep -v '^ *+' conftest.er1 >conftest.err | |
12370 | rm -f conftest.er1 | |
12371 | cat conftest.err >&5 | |
12372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12373 | (exit $ac_status); } && | |
3565d135 RR |
12374 | { ac_try='test -z "$ac_c_werror_flag" |
12375 | || test ! -s conftest.err' | |
0ad5d837 VZ |
12376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12377 | (eval $ac_try) 2>&5 | |
12378 | ac_status=$? | |
12379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12380 | (exit $ac_status); }; } && | |
12381 | { ac_try='test -s conftest.$ac_objext' | |
12382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12383 | (eval $ac_try) 2>&5 | |
12384 | ac_status=$? | |
12385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12386 | (exit $ac_status); }; }; then | |
12387 | bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes | |
12388 | else | |
12389 | echo "$as_me: failed program was:" >&5 | |
12390 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12391 | ||
12392 | bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no | |
12393 | ||
12394 | fi | |
12395 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12396 | ||
12397 | ||
12398 | fi | |
12399 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5 | |
12400 | echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6 | |
12401 | ac_ext=c | |
12402 | ac_cpp='$CPP $CPPFLAGS' | |
12403 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12404 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12405 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12406 | ||
12407 | if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then | |
12408 | :; SGICC=yes | |
12409 | else | |
12410 | :; | |
12411 | fi | |
12412 | ||
12413 | ||
3006edc0 VZ |
12414 | ;; |
12415 | ||
0093c2fc | 12416 | HP-UX*) |
3006edc0 VZ |
12417 | |
12418 | ||
12419 | ac_ext=c | |
12420 | ac_cpp='$CPP $CPPFLAGS' | |
12421 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12422 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12423 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12424 | ||
0093c2fc VZ |
12425 | echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5 |
12426 | echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6 | |
12427 | if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then | |
3006edc0 VZ |
12428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12429 | else | |
12430 | cat >conftest.$ac_ext <<_ACEOF | |
12431 | /* confdefs.h. */ | |
12432 | _ACEOF | |
12433 | cat confdefs.h >>conftest.$ac_ext | |
12434 | cat >>conftest.$ac_ext <<_ACEOF | |
12435 | /* end confdefs.h. */ | |
12436 | ||
12437 | int | |
12438 | main () | |
12439 | { | |
12440 | ||
0093c2fc | 12441 | #ifndef __HP_cc |
3006edc0 VZ |
12442 | choke me |
12443 | #endif | |
12444 | ||
12445 | ; | |
12446 | return 0; | |
12447 | } | |
12448 | _ACEOF | |
12449 | rm -f conftest.$ac_objext | |
12450 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12451 | (eval $ac_compile) 2>conftest.er1 | |
12452 | ac_status=$? | |
12453 | grep -v '^ *+' conftest.er1 >conftest.err | |
12454 | rm -f conftest.er1 | |
12455 | cat conftest.err >&5 | |
12456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12457 | (exit $ac_status); } && | |
3565d135 RR |
12458 | { ac_try='test -z "$ac_c_werror_flag" |
12459 | || test ! -s conftest.err' | |
3006edc0 VZ |
12460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12461 | (eval $ac_try) 2>&5 | |
12462 | ac_status=$? | |
12463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12464 | (exit $ac_status); }; } && | |
12465 | { ac_try='test -s conftest.$ac_objext' | |
12466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12467 | (eval $ac_try) 2>&5 | |
12468 | ac_status=$? | |
12469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12470 | (exit $ac_status); }; }; then | |
0093c2fc | 12471 | bakefile_cv_c_compiler___HP_cc=yes |
3006edc0 VZ |
12472 | else |
12473 | echo "$as_me: failed program was:" >&5 | |
12474 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12475 | ||
0093c2fc | 12476 | bakefile_cv_c_compiler___HP_cc=no |
3006edc0 VZ |
12477 | |
12478 | fi | |
12479 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12480 | ||
12481 | ||
12482 | fi | |
0093c2fc VZ |
12483 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5 |
12484 | echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6 | |
3006edc0 VZ |
12485 | ac_ext=c |
12486 | ac_cpp='$CPP $CPPFLAGS' | |
12487 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12488 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12489 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12490 | ||
0093c2fc VZ |
12491 | if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then |
12492 | :; HPCC=yes | |
a1aa0349 VZ |
12493 | else |
12494 | :; | |
12495 | fi | |
12496 | ||
12497 | ||
12498 | ;; | |
12499 | ||
0093c2fc | 12500 | OSF1) |
a1aa0349 VZ |
12501 | |
12502 | ||
12503 | ac_ext=c | |
12504 | ac_cpp='$CPP $CPPFLAGS' | |
12505 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12506 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12507 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12508 | ||
0093c2fc VZ |
12509 | echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5 |
12510 | echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6 | |
12511 | if test "${bakefile_cv_c_compiler___DECC+set}" = set; then | |
a1aa0349 VZ |
12512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12513 | else | |
12514 | cat >conftest.$ac_ext <<_ACEOF | |
12515 | /* confdefs.h. */ | |
12516 | _ACEOF | |
12517 | cat confdefs.h >>conftest.$ac_ext | |
12518 | cat >>conftest.$ac_ext <<_ACEOF | |
12519 | /* end confdefs.h. */ | |
12520 | ||
12521 | int | |
12522 | main () | |
12523 | { | |
12524 | ||
0093c2fc | 12525 | #ifndef __DECC |
a1aa0349 VZ |
12526 | choke me |
12527 | #endif | |
12528 | ||
12529 | ; | |
12530 | return 0; | |
12531 | } | |
12532 | _ACEOF | |
12533 | rm -f conftest.$ac_objext | |
12534 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12535 | (eval $ac_compile) 2>conftest.er1 | |
12536 | ac_status=$? | |
12537 | grep -v '^ *+' conftest.er1 >conftest.err | |
12538 | rm -f conftest.er1 | |
12539 | cat conftest.err >&5 | |
12540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12541 | (exit $ac_status); } && | |
3565d135 RR |
12542 | { ac_try='test -z "$ac_c_werror_flag" |
12543 | || test ! -s conftest.err' | |
a1aa0349 VZ |
12544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12545 | (eval $ac_try) 2>&5 | |
12546 | ac_status=$? | |
12547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12548 | (exit $ac_status); }; } && | |
12549 | { ac_try='test -s conftest.$ac_objext' | |
12550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12551 | (eval $ac_try) 2>&5 | |
12552 | ac_status=$? | |
12553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12554 | (exit $ac_status); }; }; then | |
0093c2fc | 12555 | bakefile_cv_c_compiler___DECC=yes |
a1aa0349 VZ |
12556 | else |
12557 | echo "$as_me: failed program was:" >&5 | |
12558 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12559 | ||
0093c2fc | 12560 | bakefile_cv_c_compiler___DECC=no |
a1aa0349 VZ |
12561 | |
12562 | fi | |
12563 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12564 | ||
12565 | ||
12566 | fi | |
0093c2fc VZ |
12567 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5 |
12568 | echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6 | |
a1aa0349 VZ |
12569 | ac_ext=c |
12570 | ac_cpp='$CPP $CPPFLAGS' | |
12571 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12572 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12573 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12574 | ||
0093c2fc VZ |
12575 | if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then |
12576 | :; COMPAQCC=yes | |
12577 | else | |
12578 | :; | |
12579 | fi | |
12580 | ||
12581 | ||
12582 | ;; | |
12583 | ||
12584 | SunOS) | |
12585 | ||
12586 | ||
12587 | ac_ext=c | |
12588 | ac_cpp='$CPP $CPPFLAGS' | |
12589 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12590 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12591 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12592 | ||
12593 | echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5 | |
12594 | echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6 | |
12595 | if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then | |
12596 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12597 | else | |
12598 | cat >conftest.$ac_ext <<_ACEOF | |
12599 | /* confdefs.h. */ | |
12600 | _ACEOF | |
12601 | cat confdefs.h >>conftest.$ac_ext | |
12602 | cat >>conftest.$ac_ext <<_ACEOF | |
12603 | /* end confdefs.h. */ | |
12604 | ||
12605 | int | |
12606 | main () | |
12607 | { | |
12608 | ||
12609 | #ifndef __SUNPRO_C | |
12610 | choke me | |
12611 | #endif | |
12612 | ||
12613 | ; | |
12614 | return 0; | |
12615 | } | |
12616 | _ACEOF | |
12617 | rm -f conftest.$ac_objext | |
12618 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12619 | (eval $ac_compile) 2>conftest.er1 | |
12620 | ac_status=$? | |
12621 | grep -v '^ *+' conftest.er1 >conftest.err | |
12622 | rm -f conftest.er1 | |
12623 | cat conftest.err >&5 | |
12624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12625 | (exit $ac_status); } && | |
3565d135 RR |
12626 | { ac_try='test -z "$ac_c_werror_flag" |
12627 | || test ! -s conftest.err' | |
0093c2fc VZ |
12628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12629 | (eval $ac_try) 2>&5 | |
12630 | ac_status=$? | |
12631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12632 | (exit $ac_status); }; } && | |
12633 | { ac_try='test -s conftest.$ac_objext' | |
12634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12635 | (eval $ac_try) 2>&5 | |
12636 | ac_status=$? | |
12637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12638 | (exit $ac_status); }; }; then | |
12639 | bakefile_cv_c_compiler___SUNPRO_C=yes | |
12640 | else | |
12641 | echo "$as_me: failed program was:" >&5 | |
12642 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12643 | ||
12644 | bakefile_cv_c_compiler___SUNPRO_C=no | |
12645 | ||
12646 | fi | |
12647 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12648 | ||
12649 | ||
12650 | fi | |
12651 | echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5 | |
12652 | echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6 | |
12653 | ac_ext=c | |
12654 | ac_cpp='$CPP $CPPFLAGS' | |
12655 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12656 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12657 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12658 | ||
12659 | if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then | |
12660 | :; SUNCC=yes | |
3006edc0 VZ |
12661 | else |
12662 | :; | |
12663 | fi | |
12664 | ||
12665 | ||
12666 | ;; | |
12667 | esac | |
ab0ad5f1 | 12668 | fi |
a9e5b1f0 MW |
12669 | |
12670 | ||
3006edc0 | 12671 | |
a848cd7e SC |
12672 | ac_ext=c |
12673 | ac_cpp='$CPP $CPPFLAGS' | |
12674 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12675 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12676 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12677 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
12678 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
12679 | # On Suns, sometimes $CPP names a directory. | |
12680 | if test -n "$CPP" && test -d "$CPP"; then | |
12681 | CPP= | |
12682 | fi | |
12683 | if test -z "$CPP"; then | |
12684 | if test "${ac_cv_prog_CPP+set}" = set; then | |
12685 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12686 | else | |
12687 | # Double quotes because CPP needs to be expanded | |
12688 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
12689 | do | |
12690 | ac_preproc_ok=false | |
12691 | for ac_c_preproc_warn_flag in '' yes | |
12692 | do | |
12693 | # Use a header file that comes with gcc, so configuring glibc | |
12694 | # with a fresh cross-compiler works. | |
12695 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12696 | # <limits.h> exists even on freestanding compilers. | |
12697 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12698 | # not just through cpp. "Syntax error" is here to catch this case. | |
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 | #ifdef __STDC__ | |
12706 | # include <limits.h> | |
12707 | #else | |
12708 | # include <assert.h> | |
12709 | #endif | |
ac1cb8d3 | 12710 | Syntax error |
a848cd7e SC |
12711 | _ACEOF |
12712 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12713 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12714 | ac_status=$? | |
12715 | grep -v '^ *+' conftest.er1 >conftest.err | |
12716 | rm -f conftest.er1 | |
12717 | cat conftest.err >&5 | |
12718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12719 | (exit $ac_status); } >/dev/null; then | |
12720 | if test -s conftest.err; then | |
12721 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12722 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12723 | else |
12724 | ac_cpp_err= | |
12725 | fi | |
12726 | else | |
12727 | ac_cpp_err=yes | |
12728 | fi | |
12729 | if test -z "$ac_cpp_err"; then | |
12730 | : | |
12731 | else | |
12732 | echo "$as_me: failed program was:" >&5 | |
12733 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12734 | ||
12735 | # Broken: fails on valid input. | |
12736 | continue | |
12737 | fi | |
12738 | rm -f conftest.err conftest.$ac_ext | |
12739 | ||
12740 | # OK, works on sane cases. Now check whether non-existent headers | |
12741 | # can be detected and how. | |
12742 | cat >conftest.$ac_ext <<_ACEOF | |
12743 | /* confdefs.h. */ | |
12744 | _ACEOF | |
12745 | cat confdefs.h >>conftest.$ac_ext | |
12746 | cat >>conftest.$ac_ext <<_ACEOF | |
12747 | /* end confdefs.h. */ | |
12748 | #include <ac_nonexistent.h> | |
12749 | _ACEOF | |
12750 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12751 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12752 | ac_status=$? | |
12753 | grep -v '^ *+' conftest.er1 >conftest.err | |
12754 | rm -f conftest.er1 | |
12755 | cat conftest.err >&5 | |
12756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12757 | (exit $ac_status); } >/dev/null; then | |
12758 | if test -s conftest.err; then | |
12759 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12760 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12761 | else |
12762 | ac_cpp_err= | |
12763 | fi | |
12764 | else | |
12765 | ac_cpp_err=yes | |
12766 | fi | |
12767 | if test -z "$ac_cpp_err"; then | |
12768 | # Broken: success on invalid input. | |
12769 | continue | |
12770 | else | |
12771 | echo "$as_me: failed program was:" >&5 | |
12772 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12773 | ||
12774 | # Passes both tests. | |
12775 | ac_preproc_ok=: | |
12776 | break | |
12777 | fi | |
12778 | rm -f conftest.err conftest.$ac_ext | |
12779 | ||
12780 | done | |
12781 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12782 | rm -f conftest.err conftest.$ac_ext | |
12783 | if $ac_preproc_ok; then | |
12784 | break | |
12785 | fi | |
12786 | ||
12787 | done | |
12788 | ac_cv_prog_CPP=$CPP | |
12789 | ||
12790 | fi | |
12791 | CPP=$ac_cv_prog_CPP | |
12792 | else | |
12793 | ac_cv_prog_CPP=$CPP | |
12794 | fi | |
12795 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
12796 | echo "${ECHO_T}$CPP" >&6 | |
12797 | ac_preproc_ok=false | |
12798 | for ac_c_preproc_warn_flag in '' yes | |
12799 | do | |
12800 | # Use a header file that comes with gcc, so configuring glibc | |
12801 | # with a fresh cross-compiler works. | |
12802 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12803 | # <limits.h> exists even on freestanding compilers. | |
12804 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
12805 | # not just through cpp. "Syntax error" is here to catch this case. | |
12806 | cat >conftest.$ac_ext <<_ACEOF | |
12807 | /* confdefs.h. */ | |
12808 | _ACEOF | |
12809 | cat confdefs.h >>conftest.$ac_ext | |
12810 | cat >>conftest.$ac_ext <<_ACEOF | |
12811 | /* end confdefs.h. */ | |
12812 | #ifdef __STDC__ | |
12813 | # include <limits.h> | |
12814 | #else | |
12815 | # include <assert.h> | |
12816 | #endif | |
ac1cb8d3 | 12817 | Syntax error |
a848cd7e SC |
12818 | _ACEOF |
12819 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12820 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12821 | ac_status=$? | |
12822 | grep -v '^ *+' conftest.er1 >conftest.err | |
12823 | rm -f conftest.er1 | |
12824 | cat conftest.err >&5 | |
12825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12826 | (exit $ac_status); } >/dev/null; then | |
12827 | if test -s conftest.err; then | |
12828 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12829 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12830 | else |
12831 | ac_cpp_err= | |
12832 | fi | |
12833 | else | |
12834 | ac_cpp_err=yes | |
12835 | fi | |
12836 | if test -z "$ac_cpp_err"; then | |
12837 | : | |
12838 | else | |
12839 | echo "$as_me: failed program was:" >&5 | |
12840 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12841 | ||
12842 | # Broken: fails on valid input. | |
12843 | continue | |
12844 | fi | |
12845 | rm -f conftest.err conftest.$ac_ext | |
12846 | ||
12847 | # OK, works on sane cases. Now check whether non-existent headers | |
12848 | # can be detected and how. | |
12849 | cat >conftest.$ac_ext <<_ACEOF | |
12850 | /* confdefs.h. */ | |
12851 | _ACEOF | |
12852 | cat confdefs.h >>conftest.$ac_ext | |
12853 | cat >>conftest.$ac_ext <<_ACEOF | |
12854 | /* end confdefs.h. */ | |
12855 | #include <ac_nonexistent.h> | |
12856 | _ACEOF | |
12857 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12858 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12859 | ac_status=$? | |
12860 | grep -v '^ *+' conftest.er1 >conftest.err | |
12861 | rm -f conftest.er1 | |
12862 | cat conftest.err >&5 | |
12863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12864 | (exit $ac_status); } >/dev/null; then | |
12865 | if test -s conftest.err; then | |
12866 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 12867 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
12868 | else |
12869 | ac_cpp_err= | |
12870 | fi | |
12871 | else | |
12872 | ac_cpp_err=yes | |
12873 | fi | |
12874 | if test -z "$ac_cpp_err"; then | |
12875 | # Broken: success on invalid input. | |
12876 | continue | |
12877 | else | |
12878 | echo "$as_me: failed program was:" >&5 | |
12879 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12880 | ||
12881 | # Passes both tests. | |
12882 | ac_preproc_ok=: | |
12883 | break | |
12884 | fi | |
12885 | rm -f conftest.err conftest.$ac_ext | |
12886 | ||
12887 | done | |
12888 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12889 | rm -f conftest.err conftest.$ac_ext | |
12890 | if $ac_preproc_ok; then | |
12891 | : | |
12892 | else | |
12893 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
12894 | See \`config.log' for more details." >&5 | |
12895 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
12896 | See \`config.log' for more details." >&2;} | |
12897 | { (exit 1); exit 1; }; } | |
12898 | fi | |
12899 | ||
12900 | ac_ext=c | |
12901 | ac_cpp='$CPP $CPPFLAGS' | |
12902 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12903 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12904 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12905 | ||
12906 | ||
12907 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
12908 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
12909 | if test "${ac_cv_prog_egrep+set}" = set; then | |
12910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12911 | else | |
12912 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
12913 | then ac_cv_prog_egrep='grep -E' | |
12914 | else ac_cv_prog_egrep='egrep' | |
12915 | fi | |
12916 | fi | |
12917 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
12918 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
12919 | EGREP=$ac_cv_prog_egrep | |
12920 | ||
12921 | ||
12922 | if test $ac_cv_c_compiler_gnu = yes; then | |
12923 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
12924 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
12925 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
12926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12927 | else | |
12928 | ac_pattern="Autoconf.*'x'" | |
12929 | cat >conftest.$ac_ext <<_ACEOF | |
12930 | /* confdefs.h. */ | |
12931 | _ACEOF | |
12932 | cat confdefs.h >>conftest.$ac_ext | |
12933 | cat >>conftest.$ac_ext <<_ACEOF | |
12934 | /* end confdefs.h. */ | |
12935 | #include <sgtty.h> | |
12936 | Autoconf TIOCGETP | |
12937 | _ACEOF | |
12938 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12939 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
12940 | ac_cv_prog_gcc_traditional=yes | |
12941 | else | |
12942 | ac_cv_prog_gcc_traditional=no | |
12943 | fi | |
12944 | rm -f conftest* | |
12945 | ||
12946 | ||
12947 | if test $ac_cv_prog_gcc_traditional = no; then | |
12948 | cat >conftest.$ac_ext <<_ACEOF | |
12949 | /* confdefs.h. */ | |
12950 | _ACEOF | |
12951 | cat confdefs.h >>conftest.$ac_ext | |
12952 | cat >>conftest.$ac_ext <<_ACEOF | |
12953 | /* end confdefs.h. */ | |
12954 | #include <termio.h> | |
12955 | Autoconf TCGETA | |
12956 | _ACEOF | |
12957 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12958 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
12959 | ac_cv_prog_gcc_traditional=yes | |
12960 | fi | |
12961 | rm -f conftest* | |
12962 | ||
12963 | fi | |
12964 | fi | |
12965 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
12966 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
12967 | if test $ac_cv_prog_gcc_traditional = yes; then | |
12968 | CC="$CC -traditional" | |
12969 | fi | |
12970 | fi | |
12971 | ||
12972 | ||
12973 | ||
12974 | ||
12975 | ac_ext=cc | |
12976 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12977 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12978 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12979 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12980 | ||
12981 | ||
12982 | CXXFLAGS=${CXXFLAGS:=} | |
6dcfc289 DE |
12983 | |
12984 | ||
3006edc0 | 12985 | |
6dcfc289 | 12986 | ac_ext=cc |
a848cd7e SC |
12987 | ac_cpp='$CXXCPP $CPPFLAGS' |
12988 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12989 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12990 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12991 | if test -n "$ac_tool_prefix"; then | |
12992 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
12993 | do | |
12994 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
12995 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
12996 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12997 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12998 | if test "${ac_cv_prog_CXX+set}" = set; then | |
12999 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13000 | else | |
13001 | if test -n "$CXX"; then | |
13002 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
13003 | else | |
13004 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13005 | for as_dir in $PATH | |
13006 | do | |
13007 | IFS=$as_save_IFS | |
13008 | test -z "$as_dir" && as_dir=. | |
13009 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13010 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13011 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
13012 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13013 | break 2 | |
13014 | fi | |
13015 | done | |
13016 | done | |
13017 | ||
13018 | fi | |
13019 | fi | |
13020 | CXX=$ac_cv_prog_CXX | |
13021 | if test -n "$CXX"; then | |
13022 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
13023 | echo "${ECHO_T}$CXX" >&6 | |
13024 | else | |
13025 | echo "$as_me:$LINENO: result: no" >&5 | |
13026 | echo "${ECHO_T}no" >&6 | |
13027 | fi | |
13028 | ||
13029 | test -n "$CXX" && break | |
13030 | done | |
13031 | fi | |
13032 | if test -z "$CXX"; then | |
13033 | ac_ct_CXX=$CXX | |
13034 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
13035 | do | |
13036 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13037 | set dummy $ac_prog; ac_word=$2 | |
13038 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
13039 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
13040 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
13041 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13042 | else | |
13043 | if test -n "$ac_ct_CXX"; then | |
13044 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
13045 | else | |
13046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13047 | for as_dir in $PATH | |
13048 | do | |
13049 | IFS=$as_save_IFS | |
13050 | test -z "$as_dir" && as_dir=. | |
13051 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13052 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13053 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
13054 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13055 | break 2 | |
13056 | fi | |
13057 | done | |
13058 | done | |
13059 | ||
13060 | fi | |
13061 | fi | |
13062 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
13063 | if test -n "$ac_ct_CXX"; then | |
13064 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
13065 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
13066 | else | |
13067 | echo "$as_me:$LINENO: result: no" >&5 | |
13068 | echo "${ECHO_T}no" >&6 | |
13069 | fi | |
13070 | ||
13071 | test -n "$ac_ct_CXX" && break | |
13072 | done | |
13073 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
13074 | ||
13075 | CXX=$ac_ct_CXX | |
13076 | fi | |
13077 | ||
13078 | ||
13079 | # Provide some information about the compiler. | |
13080 | echo "$as_me:$LINENO:" \ | |
13081 | "checking for C++ compiler version" >&5 | |
13082 | ac_compiler=`set X $ac_compile; echo $2` | |
13083 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
13084 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
13085 | ac_status=$? | |
13086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13087 | (exit $ac_status); } | |
13088 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
13089 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
13090 | ac_status=$? | |
13091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13092 | (exit $ac_status); } | |
13093 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
13094 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
13095 | ac_status=$? | |
13096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13097 | (exit $ac_status); } | |
13098 | ||
13099 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
13100 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
13101 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
13102 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13103 | else | |
13104 | cat >conftest.$ac_ext <<_ACEOF | |
13105 | /* confdefs.h. */ | |
13106 | _ACEOF | |
13107 | cat confdefs.h >>conftest.$ac_ext | |
13108 | cat >>conftest.$ac_ext <<_ACEOF | |
13109 | /* end confdefs.h. */ | |
13110 | ||
13111 | int | |
13112 | main () | |
13113 | { | |
13114 | #ifndef __GNUC__ | |
13115 | choke me | |
13116 | #endif | |
13117 | ||
13118 | ; | |
13119 | return 0; | |
13120 | } | |
13121 | _ACEOF | |
13122 | rm -f conftest.$ac_objext | |
13123 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13124 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13125 | ac_status=$? |
ac1cb8d3 VS |
13126 | grep -v '^ *+' conftest.er1 >conftest.err |
13127 | rm -f conftest.er1 | |
13128 | cat conftest.err >&5 | |
a848cd7e SC |
13129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13130 | (exit $ac_status); } && | |
3565d135 RR |
13131 | { ac_try='test -z "$ac_cxx_werror_flag" |
13132 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13134 | (eval $ac_try) 2>&5 | |
13135 | ac_status=$? | |
13136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13137 | (exit $ac_status); }; } && | |
13138 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13140 | (eval $ac_try) 2>&5 | |
13141 | ac_status=$? | |
13142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13143 | (exit $ac_status); }; }; then | |
13144 | ac_compiler_gnu=yes | |
13145 | else | |
13146 | echo "$as_me: failed program was:" >&5 | |
13147 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13148 | ||
13149 | ac_compiler_gnu=no | |
13150 | fi | |
ac1cb8d3 | 13151 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13152 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
13153 | ||
13154 | fi | |
13155 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
13156 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
13157 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
13158 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
13159 | ac_save_CXXFLAGS=$CXXFLAGS | |
13160 | CXXFLAGS="-g" | |
13161 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
13162 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
13163 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
13164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13165 | else | |
13166 | cat >conftest.$ac_ext <<_ACEOF | |
13167 | /* confdefs.h. */ | |
13168 | _ACEOF | |
13169 | cat confdefs.h >>conftest.$ac_ext | |
13170 | cat >>conftest.$ac_ext <<_ACEOF | |
13171 | /* end confdefs.h. */ | |
13172 | ||
13173 | int | |
13174 | main () | |
13175 | { | |
13176 | ||
13177 | ; | |
13178 | return 0; | |
13179 | } | |
13180 | _ACEOF | |
13181 | rm -f conftest.$ac_objext | |
13182 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13183 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13184 | ac_status=$? |
ac1cb8d3 VS |
13185 | grep -v '^ *+' conftest.er1 >conftest.err |
13186 | rm -f conftest.er1 | |
13187 | cat conftest.err >&5 | |
a848cd7e SC |
13188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13189 | (exit $ac_status); } && | |
3565d135 RR |
13190 | { ac_try='test -z "$ac_cxx_werror_flag" |
13191 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13193 | (eval $ac_try) 2>&5 | |
13194 | ac_status=$? | |
13195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13196 | (exit $ac_status); }; } && | |
13197 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13199 | (eval $ac_try) 2>&5 | |
13200 | ac_status=$? | |
13201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13202 | (exit $ac_status); }; }; then | |
13203 | ac_cv_prog_cxx_g=yes | |
13204 | else | |
13205 | echo "$as_me: failed program was:" >&5 | |
13206 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13207 | ||
13208 | ac_cv_prog_cxx_g=no | |
13209 | fi | |
ac1cb8d3 | 13210 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13211 | fi |
13212 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
13213 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
13214 | if test "$ac_test_CXXFLAGS" = set; then | |
13215 | CXXFLAGS=$ac_save_CXXFLAGS | |
13216 | elif test $ac_cv_prog_cxx_g = yes; then | |
13217 | if test "$GXX" = yes; then | |
8aeeb05c | 13218 | CXXFLAGS="-g -O2" |
a848cd7e | 13219 | else |
8aeeb05c | 13220 | CXXFLAGS="-g" |
a848cd7e SC |
13221 | fi |
13222 | else | |
13223 | if test "$GXX" = yes; then | |
13224 | CXXFLAGS="-O2" | |
13225 | else | |
13226 | CXXFLAGS= | |
13227 | fi | |
13228 | fi | |
13229 | for ac_declaration in \ | |
ac1cb8d3 | 13230 | '' \ |
a848cd7e SC |
13231 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
13232 | 'extern "C" void std::exit (int); using std::exit;' \ | |
13233 | 'extern "C" void exit (int) throw ();' \ | |
13234 | 'extern "C" void exit (int);' \ | |
13235 | 'void exit (int);' | |
13236 | do | |
13237 | cat >conftest.$ac_ext <<_ACEOF | |
13238 | /* confdefs.h. */ | |
13239 | _ACEOF | |
13240 | cat confdefs.h >>conftest.$ac_ext | |
13241 | cat >>conftest.$ac_ext <<_ACEOF | |
13242 | /* end confdefs.h. */ | |
de59c161 | 13243 | $ac_declaration |
ac1cb8d3 | 13244 | #include <stdlib.h> |
a848cd7e SC |
13245 | int |
13246 | main () | |
13247 | { | |
13248 | exit (42); | |
13249 | ; | |
13250 | return 0; | |
13251 | } | |
13252 | _ACEOF | |
13253 | rm -f conftest.$ac_objext | |
13254 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13255 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13256 | ac_status=$? |
ac1cb8d3 VS |
13257 | grep -v '^ *+' conftest.er1 >conftest.err |
13258 | rm -f conftest.er1 | |
13259 | cat conftest.err >&5 | |
a848cd7e SC |
13260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13261 | (exit $ac_status); } && | |
3565d135 RR |
13262 | { ac_try='test -z "$ac_cxx_werror_flag" |
13263 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13265 | (eval $ac_try) 2>&5 | |
13266 | ac_status=$? | |
13267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13268 | (exit $ac_status); }; } && | |
13269 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13271 | (eval $ac_try) 2>&5 | |
13272 | ac_status=$? | |
13273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13274 | (exit $ac_status); }; }; then | |
13275 | : | |
13276 | else | |
13277 | echo "$as_me: failed program was:" >&5 | |
13278 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13279 | ||
13280 | continue | |
13281 | fi | |
ac1cb8d3 | 13282 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13283 | cat >conftest.$ac_ext <<_ACEOF |
13284 | /* confdefs.h. */ | |
13285 | _ACEOF | |
13286 | cat confdefs.h >>conftest.$ac_ext | |
13287 | cat >>conftest.$ac_ext <<_ACEOF | |
13288 | /* end confdefs.h. */ | |
13289 | $ac_declaration | |
13290 | int | |
13291 | main () | |
13292 | { | |
13293 | exit (42); | |
13294 | ; | |
13295 | return 0; | |
13296 | } | |
13297 | _ACEOF | |
13298 | rm -f conftest.$ac_objext | |
13299 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 13300 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 13301 | ac_status=$? |
ac1cb8d3 VS |
13302 | grep -v '^ *+' conftest.er1 >conftest.err |
13303 | rm -f conftest.er1 | |
13304 | cat conftest.err >&5 | |
a848cd7e SC |
13305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13306 | (exit $ac_status); } && | |
3565d135 RR |
13307 | { ac_try='test -z "$ac_cxx_werror_flag" |
13308 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
13309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13310 | (eval $ac_try) 2>&5 | |
13311 | ac_status=$? | |
13312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13313 | (exit $ac_status); }; } && | |
13314 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
13315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13316 | (eval $ac_try) 2>&5 | |
13317 | ac_status=$? | |
13318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13319 | (exit $ac_status); }; }; then | |
13320 | break | |
13321 | else | |
13322 | echo "$as_me: failed program was:" >&5 | |
13323 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13324 | ||
13325 | fi | |
ac1cb8d3 | 13326 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13327 | done |
13328 | rm -f conftest* | |
13329 | if test -n "$ac_declaration"; then | |
13330 | echo '#ifdef __cplusplus' >>confdefs.h | |
13331 | echo $ac_declaration >>confdefs.h | |
13332 | echo '#endif' >>confdefs.h | |
13333 | fi | |
13334 | ||
13335 | ac_ext=cc | |
13336 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13337 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13338 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13339 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13340 | ||
ab0ad5f1 VZ |
13341 | |
13342 | ||
13343 | ac_ext=cc | |
13344 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13345 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13346 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13347 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13348 | ||
13349 | echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5 | |
13350 | echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6 | |
13351 | if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then | |
13352 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13353 | else | |
13354 | cat >conftest.$ac_ext <<_ACEOF | |
13355 | /* confdefs.h. */ | |
13356 | _ACEOF | |
13357 | cat confdefs.h >>conftest.$ac_ext | |
13358 | cat >>conftest.$ac_ext <<_ACEOF | |
13359 | /* end confdefs.h. */ | |
13360 | ||
13361 | int | |
13362 | main () | |
13363 | { | |
13364 | ||
13365 | #ifndef __INTEL_COMPILER | |
13366 | choke me | |
13367 | #endif | |
13368 | ||
13369 | ; | |
13370 | return 0; | |
13371 | } | |
13372 | _ACEOF | |
13373 | rm -f conftest.$ac_objext | |
13374 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13375 | (eval $ac_compile) 2>conftest.er1 | |
13376 | ac_status=$? | |
13377 | grep -v '^ *+' conftest.er1 >conftest.err | |
13378 | rm -f conftest.er1 | |
13379 | cat conftest.err >&5 | |
13380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13381 | (exit $ac_status); } && | |
3565d135 RR |
13382 | { ac_try='test -z "$ac_cxx_werror_flag" |
13383 | || test ! -s conftest.err' | |
ab0ad5f1 VZ |
13384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13385 | (eval $ac_try) 2>&5 | |
13386 | ac_status=$? | |
13387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13388 | (exit $ac_status); }; } && | |
13389 | { ac_try='test -s conftest.$ac_objext' | |
13390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13391 | (eval $ac_try) 2>&5 | |
13392 | ac_status=$? | |
13393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13394 | (exit $ac_status); }; }; then | |
13395 | bakefile_cv_cxx_compiler___INTEL_COMPILER=yes | |
13396 | else | |
13397 | echo "$as_me: failed program was:" >&5 | |
13398 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13399 | ||
13400 | bakefile_cv_cxx_compiler___INTEL_COMPILER=no | |
13401 | ||
13402 | fi | |
13403 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13404 | ||
13405 | ||
13406 | fi | |
13407 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5 | |
13408 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6 | |
13409 | ac_ext=cc | |
13410 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13411 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13412 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13413 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13414 | ||
13415 | if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then | |
13416 | :; INTELCXX=yes | |
13417 | else | |
13418 | :; | |
13419 | fi | |
13420 | ||
13421 | ||
3006edc0 VZ |
13422 | if test "x$GCXX" != "xyes"; then |
13423 | if test "xCXX" = "xC"; then | |
13424 | echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5 | |
480ccd21 | 13425 | echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6 |
0093c2fc | 13426 | if test "${bakefile_cv_cxx_exto+set}" = set; then |
480ccd21 DE |
13427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13428 | else | |
13429 | cat >conftest.$ac_ext <<_ACEOF | |
13430 | /* confdefs.h. */ | |
13431 | _ACEOF | |
13432 | cat confdefs.h >>conftest.$ac_ext | |
13433 | cat >>conftest.$ac_ext <<_ACEOF | |
13434 | /* end confdefs.h. */ | |
13435 | ||
13436 | int | |
13437 | main () | |
13438 | { | |
13439 | ||
13440 | ; | |
13441 | return 0; | |
13442 | } | |
13443 | _ACEOF | |
13444 | rm -f conftest.$ac_objext conftest.$ac_ext.o | |
13445 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13446 | (eval $ac_compile) 2>&5 | |
13447 | ac_status=$? | |
13448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13449 | (exit $ac_status); }; then | |
13450 | for ac_file in `(ls conftest.* 2>/dev/null)`; do | |
13451 | case $ac_file in | |
13452 | conftest.$ac_ext.o) | |
0093c2fc | 13453 | bakefile_cv_cxx_exto="-ext o" |
480ccd21 DE |
13454 | ;; |
13455 | *) | |
13456 | ;; | |
13457 | esac | |
13458 | done | |
13459 | else | |
13460 | { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile | |
13461 | See \`config.log' for more details." >&5 | |
13462 | echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile | |
13463 | See \`config.log' for more details." >&2;} | |
13464 | { (exit 1); exit 1; }; } | |
13465 | ||
13466 | fi | |
13467 | ||
13468 | rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext | |
13469 | ||
13470 | fi | |
0093c2fc VZ |
13471 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5 |
13472 | echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6 | |
13473 | if test "x$bakefile_cv_cxx_exto" '!=' "x"; then | |
480ccd21 | 13474 | if test "cxx" = "c"; then |
0093c2fc | 13475 | CFLAGS="$bakefile_cv_cxx_exto $CFLAGS" |
480ccd21 DE |
13476 | fi |
13477 | if test "cxx" = "cxx"; then | |
0093c2fc | 13478 | CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS" |
480ccd21 DE |
13479 | fi |
13480 | fi | |
13481 | ||
0093c2fc | 13482 | if test "x$bakefile_cv_c_exto" '!=' "x"; then |
3006edc0 VZ |
13483 | unset ac_cv_prog_cc_g |
13484 | ac_test_CFLAGS=${CFLAGS+set} | |
13485 | ac_save_CFLAGS=$CFLAGS | |
8aeeb05c | 13486 | CFLAGS="-g" |
3006edc0 VZ |
13487 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
13488 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
13489 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
480ccd21 DE |
13490 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13491 | else | |
13492 | cat >conftest.$ac_ext <<_ACEOF | |
13493 | /* confdefs.h. */ | |
13494 | _ACEOF | |
13495 | cat confdefs.h >>conftest.$ac_ext | |
13496 | cat >>conftest.$ac_ext <<_ACEOF | |
13497 | /* end confdefs.h. */ | |
13498 | ||
13499 | int | |
13500 | main () | |
13501 | { | |
13502 | ||
13503 | ; | |
13504 | return 0; | |
13505 | } | |
13506 | _ACEOF | |
13507 | rm -f conftest.$ac_objext | |
13508 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13509 | (eval $ac_compile) 2>conftest.er1 | |
13510 | ac_status=$? | |
13511 | grep -v '^ *+' conftest.er1 >conftest.err | |
13512 | rm -f conftest.er1 | |
13513 | cat conftest.err >&5 | |
13514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13515 | (exit $ac_status); } && | |
3565d135 RR |
13516 | { ac_try='test -z "$ac_cxx_werror_flag" |
13517 | || test ! -s conftest.err' | |
480ccd21 DE |
13518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13519 | (eval $ac_try) 2>&5 | |
13520 | ac_status=$? | |
13521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13522 | (exit $ac_status); }; } && | |
13523 | { ac_try='test -s conftest.$ac_objext' | |
13524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13525 | (eval $ac_try) 2>&5 | |
13526 | ac_status=$? | |
13527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13528 | (exit $ac_status); }; }; then | |
3006edc0 | 13529 | ac_cv_prog_cc_g=yes |
480ccd21 DE |
13530 | else |
13531 | echo "$as_me: failed program was:" >&5 | |
13532 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13533 | ||
3006edc0 | 13534 | ac_cv_prog_cc_g=no |
480ccd21 DE |
13535 | fi |
13536 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13537 | fi | |
3006edc0 VZ |
13538 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
13539 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
13540 | if test "$ac_test_CFLAGS" = set; then | |
13541 | CFLAGS=$ac_save_CFLAGS | |
13542 | elif test $ac_cv_prog_cc_g = yes; then | |
13543 | if test "$GCC" = yes; then | |
13544 | CFLAGS="-g -O2" | |
480ccd21 | 13545 | else |
3006edc0 | 13546 | CFLAGS="-g" |
480ccd21 DE |
13547 | fi |
13548 | else | |
3006edc0 VZ |
13549 | if test "$GCC" = yes; then |
13550 | CFLAGS="-O2" | |
480ccd21 | 13551 | else |
3006edc0 | 13552 | CFLAGS= |
480ccd21 DE |
13553 | fi |
13554 | fi | |
3006edc0 | 13555 | fi |
ab0ad5f1 | 13556 | fi |
3006edc0 VZ |
13557 | |
13558 | case `uname -s` in | |
13559 | AIX*) | |
13560 | ac_ext=cc | |
13561 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13562 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13563 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13564 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13565 | ||
13566 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5 | |
13567 | echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6 | |
0093c2fc | 13568 | if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then |
3006edc0 VZ |
13569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13570 | else | |
13571 | cat >conftest.$ac_ext <<_ACEOF | |
13572 | /* confdefs.h. */ | |
13573 | _ACEOF | |
13574 | cat confdefs.h >>conftest.$ac_ext | |
13575 | cat >>conftest.$ac_ext <<_ACEOF | |
13576 | /* end confdefs.h. */ | |
13577 | ||
13578 | int | |
13579 | main () | |
13580 | { | |
13581 | #ifndef __xlC__ | |
13582 | choke me | |
13583 | #endif | |
13584 | ||
13585 | ; | |
13586 | return 0; | |
13587 | } | |
13588 | _ACEOF | |
13589 | rm -f conftest.$ac_objext | |
13590 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13591 | (eval $ac_compile) 2>conftest.er1 | |
13592 | ac_status=$? | |
13593 | grep -v '^ *+' conftest.er1 >conftest.err | |
13594 | rm -f conftest.er1 | |
13595 | cat conftest.err >&5 | |
13596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13597 | (exit $ac_status); } && | |
3565d135 RR |
13598 | { ac_try='test -z "$ac_cxx_werror_flag" |
13599 | || test ! -s conftest.err' | |
3006edc0 VZ |
13600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13601 | (eval $ac_try) 2>&5 | |
13602 | ac_status=$? | |
13603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13604 | (exit $ac_status); }; } && | |
13605 | { ac_try='test -s conftest.$ac_objext' | |
13606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13607 | (eval $ac_try) 2>&5 | |
13608 | ac_status=$? | |
13609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13610 | (exit $ac_status); }; }; then | |
0093c2fc | 13611 | bakefile_compiler_xlc=yes |
3006edc0 VZ |
13612 | else |
13613 | echo "$as_me: failed program was:" >&5 | |
13614 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13615 | ||
0093c2fc | 13616 | bakefile_compiler_xlc=no |
3006edc0 VZ |
13617 | fi |
13618 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 13619 | bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc |
3006edc0 VZ |
13620 | |
13621 | fi | |
0093c2fc VZ |
13622 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5 |
13623 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6 | |
3006edc0 | 13624 | |
0093c2fc | 13625 | XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes` |
3006edc0 VZ |
13626 | ac_ext=cc |
13627 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13628 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13629 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13630 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13631 | ||
13632 | ||
13633 | ;; | |
13634 | ||
13635 | Darwin) | |
13636 | ac_ext=cc | |
95986553 DE |
13637 | ac_cpp='$CXXCPP $CPPFLAGS' |
13638 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13639 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13640 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13641 | ||
13642 | echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5 | |
13643 | echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6 | |
13644 | if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then | |
13645 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13646 | else | |
13647 | cat >conftest.$ac_ext <<_ACEOF | |
13648 | /* confdefs.h. */ | |
13649 | _ACEOF | |
13650 | cat confdefs.h >>conftest.$ac_ext | |
13651 | cat >>conftest.$ac_ext <<_ACEOF | |
13652 | /* end confdefs.h. */ | |
13653 | ||
13654 | int | |
13655 | main () | |
13656 | { | |
13657 | #ifndef __MWERKS__ | |
13658 | choke me | |
13659 | #endif | |
13660 | ||
13661 | ; | |
13662 | return 0; | |
13663 | } | |
13664 | _ACEOF | |
13665 | rm -f conftest.$ac_objext | |
13666 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13667 | (eval $ac_compile) 2>conftest.er1 | |
13668 | ac_status=$? | |
13669 | grep -v '^ *+' conftest.er1 >conftest.err | |
13670 | rm -f conftest.er1 | |
13671 | cat conftest.err >&5 | |
13672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13673 | (exit $ac_status); } && | |
3565d135 RR |
13674 | { ac_try='test -z "$ac_cxx_werror_flag" |
13675 | || test ! -s conftest.err' | |
95986553 DE |
13676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13677 | (eval $ac_try) 2>&5 | |
13678 | ac_status=$? | |
13679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13680 | (exit $ac_status); }; } && | |
13681 | { ac_try='test -s conftest.$ac_objext' | |
13682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13683 | (eval $ac_try) 2>&5 | |
13684 | ac_status=$? | |
13685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13686 | (exit $ac_status); }; }; then | |
13687 | bakefile_compiler_mwerks=yes | |
13688 | else | |
13689 | echo "$as_me: failed program was:" >&5 | |
13690 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13691 | ||
13692 | bakefile_compiler_mwerks=no | |
13693 | fi | |
13694 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13695 | bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks | |
13696 | ||
13697 | fi | |
13698 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5 | |
13699 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6 | |
13700 | ||
0e6fa1d9 | 13701 | MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes` |
95986553 DE |
13702 | ac_ext=cc |
13703 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13704 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13705 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13706 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13707 | ||
13708 | ||
3006edc0 | 13709 | ac_ext=cc |
9273ffba DE |
13710 | ac_cpp='$CXXCPP $CPPFLAGS' |
13711 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13712 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13713 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13714 | ||
13715 | echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5 | |
13716 | echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6 | |
0093c2fc | 13717 | if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then |
9273ffba DE |
13718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13719 | else | |
13720 | cat >conftest.$ac_ext <<_ACEOF | |
13721 | /* confdefs.h. */ | |
13722 | _ACEOF | |
13723 | cat confdefs.h >>conftest.$ac_ext | |
13724 | cat >>conftest.$ac_ext <<_ACEOF | |
13725 | /* end confdefs.h. */ | |
13726 | ||
13727 | int | |
13728 | main () | |
13729 | { | |
13730 | #ifndef __xlC__ | |
13731 | choke me | |
13732 | #endif | |
13733 | ||
13734 | ; | |
13735 | return 0; | |
13736 | } | |
13737 | _ACEOF | |
13738 | rm -f conftest.$ac_objext | |
13739 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13740 | (eval $ac_compile) 2>conftest.er1 | |
13741 | ac_status=$? | |
13742 | grep -v '^ *+' conftest.er1 >conftest.err | |
13743 | rm -f conftest.er1 | |
13744 | cat conftest.err >&5 | |
13745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13746 | (exit $ac_status); } && | |
3565d135 RR |
13747 | { ac_try='test -z "$ac_cxx_werror_flag" |
13748 | || test ! -s conftest.err' | |
9273ffba DE |
13749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13750 | (eval $ac_try) 2>&5 | |
13751 | ac_status=$? | |
13752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13753 | (exit $ac_status); }; } && | |
13754 | { ac_try='test -s conftest.$ac_objext' | |
13755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13756 | (eval $ac_try) 2>&5 | |
13757 | ac_status=$? | |
13758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13759 | (exit $ac_status); }; }; then | |
0093c2fc | 13760 | bakefile_compiler_xlc=yes |
9273ffba DE |
13761 | else |
13762 | echo "$as_me: failed program was:" >&5 | |
13763 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13764 | ||
0093c2fc | 13765 | bakefile_compiler_xlc=no |
9273ffba DE |
13766 | fi |
13767 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
0093c2fc | 13768 | bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc |
9273ffba DE |
13769 | |
13770 | fi | |
0093c2fc VZ |
13771 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5 |
13772 | echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6 | |
9273ffba | 13773 | |
0093c2fc | 13774 | XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes` |
9273ffba DE |
13775 | ac_ext=cc |
13776 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13777 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13778 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13779 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13780 | ||
13781 | ||
3006edc0 VZ |
13782 | ;; |
13783 | ||
13784 | IRIX*) | |
95986553 | 13785 | |
6dcfc289 | 13786 | |
0ad5d837 VZ |
13787 | ac_ext=cc |
13788 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13789 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13790 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13791 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13792 | ||
13793 | echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5 | |
13794 | echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6 | |
13795 | if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then | |
13796 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13797 | else | |
13798 | cat >conftest.$ac_ext <<_ACEOF | |
13799 | /* confdefs.h. */ | |
13800 | _ACEOF | |
13801 | cat confdefs.h >>conftest.$ac_ext | |
13802 | cat >>conftest.$ac_ext <<_ACEOF | |
13803 | /* end confdefs.h. */ | |
13804 | ||
13805 | int | |
13806 | main () | |
13807 | { | |
13808 | ||
13809 | #ifndef _SGI_COMPILER_VERSION | |
13810 | choke me | |
13811 | #endif | |
13812 | ||
13813 | ; | |
13814 | return 0; | |
13815 | } | |
13816 | _ACEOF | |
13817 | rm -f conftest.$ac_objext | |
13818 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13819 | (eval $ac_compile) 2>conftest.er1 | |
13820 | ac_status=$? | |
13821 | grep -v '^ *+' conftest.er1 >conftest.err | |
13822 | rm -f conftest.er1 | |
13823 | cat conftest.err >&5 | |
13824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13825 | (exit $ac_status); } && | |
3565d135 RR |
13826 | { ac_try='test -z "$ac_cxx_werror_flag" |
13827 | || test ! -s conftest.err' | |
0ad5d837 VZ |
13828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13829 | (eval $ac_try) 2>&5 | |
13830 | ac_status=$? | |
13831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13832 | (exit $ac_status); }; } && | |
13833 | { ac_try='test -s conftest.$ac_objext' | |
13834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13835 | (eval $ac_try) 2>&5 | |
13836 | ac_status=$? | |
13837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13838 | (exit $ac_status); }; }; then | |
13839 | bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes | |
13840 | else | |
13841 | echo "$as_me: failed program was:" >&5 | |
13842 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13843 | ||
13844 | bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no | |
13845 | ||
13846 | fi | |
13847 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13848 | ||
13849 | ||
13850 | fi | |
13851 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5 | |
13852 | echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6 | |
13853 | ac_ext=cc | |
13854 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13855 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13856 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13857 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13858 | ||
13859 | if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then | |
13860 | :; SGICXX=yes | |
13861 | else | |
13862 | :; | |
13863 | fi | |
13864 | ||
13865 | ||
3006edc0 VZ |
13866 | ;; |
13867 | ||
0093c2fc | 13868 | HP-UX*) |
3006edc0 VZ |
13869 | |
13870 | ||
13871 | ac_ext=cc | |
13872 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13873 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13874 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13875 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13876 | ||
0093c2fc VZ |
13877 | echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5 |
13878 | echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6 | |
13879 | if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then | |
3006edc0 VZ |
13880 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13881 | else | |
13882 | cat >conftest.$ac_ext <<_ACEOF | |
13883 | /* confdefs.h. */ | |
13884 | _ACEOF | |
13885 | cat confdefs.h >>conftest.$ac_ext | |
13886 | cat >>conftest.$ac_ext <<_ACEOF | |
13887 | /* end confdefs.h. */ | |
13888 | ||
13889 | int | |
13890 | main () | |
13891 | { | |
13892 | ||
0093c2fc | 13893 | #ifndef __HP_aCC |
3006edc0 VZ |
13894 | choke me |
13895 | #endif | |
13896 | ||
13897 | ; | |
13898 | return 0; | |
13899 | } | |
13900 | _ACEOF | |
13901 | rm -f conftest.$ac_objext | |
13902 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13903 | (eval $ac_compile) 2>conftest.er1 | |
13904 | ac_status=$? | |
13905 | grep -v '^ *+' conftest.er1 >conftest.err | |
13906 | rm -f conftest.er1 | |
13907 | cat conftest.err >&5 | |
13908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13909 | (exit $ac_status); } && | |
3565d135 RR |
13910 | { ac_try='test -z "$ac_cxx_werror_flag" |
13911 | || test ! -s conftest.err' | |
3006edc0 VZ |
13912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13913 | (eval $ac_try) 2>&5 | |
13914 | ac_status=$? | |
13915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13916 | (exit $ac_status); }; } && | |
13917 | { ac_try='test -s conftest.$ac_objext' | |
13918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13919 | (eval $ac_try) 2>&5 | |
13920 | ac_status=$? | |
13921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13922 | (exit $ac_status); }; }; then | |
0093c2fc | 13923 | bakefile_cv_cxx_compiler___HP_aCC=yes |
3006edc0 VZ |
13924 | else |
13925 | echo "$as_me: failed program was:" >&5 | |
13926 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13927 | ||
0093c2fc | 13928 | bakefile_cv_cxx_compiler___HP_aCC=no |
3006edc0 VZ |
13929 | |
13930 | fi | |
13931 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13932 | ||
13933 | ||
13934 | fi | |
0093c2fc VZ |
13935 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5 |
13936 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6 | |
3006edc0 VZ |
13937 | ac_ext=cc |
13938 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13939 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13940 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13941 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13942 | ||
0093c2fc VZ |
13943 | if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then |
13944 | :; HPCXX=yes | |
a1aa0349 VZ |
13945 | else |
13946 | :; | |
13947 | fi | |
13948 | ||
13949 | ||
13950 | ;; | |
13951 | ||
0093c2fc | 13952 | OSF1) |
a1aa0349 VZ |
13953 | |
13954 | ||
13955 | ac_ext=cc | |
13956 | ac_cpp='$CXXCPP $CPPFLAGS' | |
13957 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13958 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13959 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
13960 | ||
0093c2fc VZ |
13961 | echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5 |
13962 | echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6 | |
13963 | if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then | |
a1aa0349 VZ |
13964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13965 | else | |
13966 | cat >conftest.$ac_ext <<_ACEOF | |
13967 | /* confdefs.h. */ | |
13968 | _ACEOF | |
13969 | cat confdefs.h >>conftest.$ac_ext | |
13970 | cat >>conftest.$ac_ext <<_ACEOF | |
13971 | /* end confdefs.h. */ | |
13972 | ||
13973 | int | |
13974 | main () | |
13975 | { | |
13976 | ||
0093c2fc | 13977 | #ifndef __DECCXX |
a1aa0349 VZ |
13978 | choke me |
13979 | #endif | |
13980 | ||
13981 | ; | |
13982 | return 0; | |
13983 | } | |
13984 | _ACEOF | |
13985 | rm -f conftest.$ac_objext | |
13986 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13987 | (eval $ac_compile) 2>conftest.er1 | |
13988 | ac_status=$? | |
13989 | grep -v '^ *+' conftest.er1 >conftest.err | |
13990 | rm -f conftest.er1 | |
13991 | cat conftest.err >&5 | |
13992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13993 | (exit $ac_status); } && | |
3565d135 RR |
13994 | { ac_try='test -z "$ac_cxx_werror_flag" |
13995 | || test ! -s conftest.err' | |
a1aa0349 VZ |
13996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13997 | (eval $ac_try) 2>&5 | |
13998 | ac_status=$? | |
13999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14000 | (exit $ac_status); }; } && | |
14001 | { ac_try='test -s conftest.$ac_objext' | |
14002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14003 | (eval $ac_try) 2>&5 | |
14004 | ac_status=$? | |
14005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14006 | (exit $ac_status); }; }; then | |
0093c2fc | 14007 | bakefile_cv_cxx_compiler___DECCXX=yes |
a1aa0349 VZ |
14008 | else |
14009 | echo "$as_me: failed program was:" >&5 | |
14010 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14011 | ||
0093c2fc | 14012 | bakefile_cv_cxx_compiler___DECCXX=no |
a1aa0349 VZ |
14013 | |
14014 | fi | |
14015 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14016 | ||
14017 | ||
14018 | fi | |
0093c2fc VZ |
14019 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5 |
14020 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6 | |
a1aa0349 VZ |
14021 | ac_ext=cc |
14022 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14023 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14024 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14025 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14026 | ||
0093c2fc VZ |
14027 | if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then |
14028 | :; COMPAQCXX=yes | |
14029 | else | |
14030 | :; | |
14031 | fi | |
14032 | ||
14033 | ||
14034 | ;; | |
14035 | ||
14036 | SunOS) | |
14037 | ||
14038 | ||
14039 | ac_ext=cc | |
14040 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14041 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14042 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14043 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14044 | ||
14045 | echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5 | |
14046 | echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6 | |
14047 | if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then | |
14048 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14049 | else | |
14050 | cat >conftest.$ac_ext <<_ACEOF | |
14051 | /* confdefs.h. */ | |
14052 | _ACEOF | |
14053 | cat confdefs.h >>conftest.$ac_ext | |
14054 | cat >>conftest.$ac_ext <<_ACEOF | |
14055 | /* end confdefs.h. */ | |
14056 | ||
14057 | int | |
14058 | main () | |
14059 | { | |
14060 | ||
14061 | #ifndef __SUNPRO_CC | |
14062 | choke me | |
14063 | #endif | |
14064 | ||
14065 | ; | |
14066 | return 0; | |
14067 | } | |
14068 | _ACEOF | |
14069 | rm -f conftest.$ac_objext | |
14070 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14071 | (eval $ac_compile) 2>conftest.er1 | |
14072 | ac_status=$? | |
14073 | grep -v '^ *+' conftest.er1 >conftest.err | |
14074 | rm -f conftest.er1 | |
14075 | cat conftest.err >&5 | |
14076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14077 | (exit $ac_status); } && | |
3565d135 RR |
14078 | { ac_try='test -z "$ac_cxx_werror_flag" |
14079 | || test ! -s conftest.err' | |
0093c2fc VZ |
14080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14081 | (eval $ac_try) 2>&5 | |
14082 | ac_status=$? | |
14083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14084 | (exit $ac_status); }; } && | |
14085 | { ac_try='test -s conftest.$ac_objext' | |
14086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14087 | (eval $ac_try) 2>&5 | |
14088 | ac_status=$? | |
14089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14090 | (exit $ac_status); }; }; then | |
14091 | bakefile_cv_cxx_compiler___SUNPRO_CC=yes | |
14092 | else | |
14093 | echo "$as_me: failed program was:" >&5 | |
14094 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14095 | ||
14096 | bakefile_cv_cxx_compiler___SUNPRO_CC=no | |
14097 | ||
14098 | fi | |
14099 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14100 | ||
14101 | ||
14102 | fi | |
14103 | echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5 | |
14104 | echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6 | |
14105 | ac_ext=cc | |
14106 | ac_cpp='$CXXCPP $CPPFLAGS' | |
14107 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14108 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14109 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
14110 | ||
14111 | if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then | |
14112 | :; SUNCXX=yes | |
3006edc0 VZ |
14113 | else |
14114 | :; | |
ab0ad5f1 | 14115 | fi |
a9e5b1f0 MW |
14116 | |
14117 | ||
3006edc0 VZ |
14118 | ;; |
14119 | esac | |
14120 | fi | |
14121 | ||
14122 | ||
14123 | ||
a848cd7e SC |
14124 | ac_ext=c |
14125 | ac_cpp='$CPP $CPPFLAGS' | |
14126 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14127 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14128 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14129 | ||
14130 | ||
a848cd7e SC |
14131 | if test -n "$ac_tool_prefix"; then |
14132 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
14133 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
14134 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14135 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14136 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
14137 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14138 | else | |
14139 | if test -n "$RANLIB"; then | |
14140 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
14141 | else | |
14142 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14143 | for as_dir in $PATH | |
14144 | do | |
14145 | IFS=$as_save_IFS | |
14146 | test -z "$as_dir" && as_dir=. | |
14147 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14148 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14149 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
14150 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14151 | break 2 | |
14152 | fi | |
14153 | done | |
14154 | done | |
14155 | ||
14156 | fi | |
14157 | fi | |
14158 | RANLIB=$ac_cv_prog_RANLIB | |
14159 | if test -n "$RANLIB"; then | |
14160 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
14161 | echo "${ECHO_T}$RANLIB" >&6 | |
14162 | else | |
14163 | echo "$as_me:$LINENO: result: no" >&5 | |
14164 | echo "${ECHO_T}no" >&6 | |
14165 | fi | |
14166 | ||
14167 | fi | |
14168 | if test -z "$ac_cv_prog_RANLIB"; then | |
14169 | ac_ct_RANLIB=$RANLIB | |
14170 | # Extract the first word of "ranlib", so it can be a program name with args. | |
14171 | set dummy ranlib; ac_word=$2 | |
14172 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14173 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14174 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
14175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14176 | else | |
14177 | if test -n "$ac_ct_RANLIB"; then | |
14178 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
14179 | else | |
14180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14181 | for as_dir in $PATH | |
14182 | do | |
14183 | IFS=$as_save_IFS | |
14184 | test -z "$as_dir" && as_dir=. | |
14185 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14186 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14187 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
14188 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14189 | break 2 | |
14190 | fi | |
14191 | done | |
14192 | done | |
14193 | ||
14194 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
14195 | fi | |
14196 | fi | |
14197 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
14198 | if test -n "$ac_ct_RANLIB"; then | |
14199 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
14200 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
14201 | else | |
14202 | echo "$as_me:$LINENO: result: no" >&5 | |
14203 | echo "${ECHO_T}no" >&6 | |
14204 | fi | |
14205 | ||
14206 | RANLIB=$ac_ct_RANLIB | |
14207 | else | |
14208 | RANLIB="$ac_cv_prog_RANLIB" | |
14209 | fi | |
14210 | ||
14211 | ||
8c80d384 DE |
14212 | if test -n "$ac_tool_prefix"; then |
14213 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
14214 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
a848cd7e SC |
14215 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14216 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14217 | if test "${ac_cv_prog_AR+set}" = set; then | |
14218 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14219 | else | |
14220 | if test -n "$AR"; then | |
14221 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
14222 | else | |
14223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14224 | for as_dir in $PATH | |
14225 | do | |
14226 | IFS=$as_save_IFS | |
14227 | test -z "$as_dir" && as_dir=. | |
14228 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14229 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8c80d384 | 14230 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
a848cd7e SC |
14231 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14232 | break 2 | |
14233 | fi | |
14234 | done | |
14235 | done | |
14236 | ||
14237 | fi | |
14238 | fi | |
14239 | AR=$ac_cv_prog_AR | |
14240 | if test -n "$AR"; then | |
14241 | echo "$as_me:$LINENO: result: $AR" >&5 | |
14242 | echo "${ECHO_T}$AR" >&6 | |
14243 | else | |
14244 | echo "$as_me:$LINENO: result: no" >&5 | |
14245 | echo "${ECHO_T}no" >&6 | |
14246 | fi | |
14247 | ||
8c80d384 DE |
14248 | fi |
14249 | if test -z "$ac_cv_prog_AR"; then | |
14250 | ac_ct_AR=$AR | |
14251 | # Extract the first word of "ar", so it can be a program name with args. | |
14252 | set dummy ar; ac_word=$2 | |
14253 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14254 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14255 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
14256 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14257 | else | |
14258 | if test -n "$ac_ct_AR"; then | |
14259 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
14260 | else | |
14261 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14262 | for as_dir in $PATH | |
14263 | do | |
14264 | IFS=$as_save_IFS | |
14265 | test -z "$as_dir" && as_dir=. | |
14266 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14267 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14268 | ac_cv_prog_ac_ct_AR="ar" | |
14269 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14270 | break 2 | |
14271 | fi | |
14272 | done | |
14273 | done | |
14274 | ||
14275 | fi | |
14276 | fi | |
14277 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
14278 | if test -n "$ac_ct_AR"; then | |
14279 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
14280 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
14281 | else | |
14282 | echo "$as_me:$LINENO: result: no" >&5 | |
14283 | echo "${ECHO_T}no" >&6 | |
14284 | fi | |
14285 | ||
14286 | AR=$ac_ct_AR | |
14287 | else | |
14288 | AR="$ac_cv_prog_AR" | |
14289 | fi | |
14290 | ||
a848cd7e | 14291 | if test "x$AR" = "x" ; then |
77ffb593 JS |
14292 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5 |
14293 | echo "$as_me: error: ar is needed to build wxWidgets" >&2;} | |
a848cd7e SC |
14294 | { (exit 1); exit 1; }; } |
14295 | fi | |
14296 | ||
14297 | # Find a good install program. We prefer a C program (faster), | |
14298 | # so one script is as good as another. But avoid the broken or | |
14299 | # incompatible versions: | |
14300 | # SysV /etc/install, /usr/sbin/install | |
14301 | # SunOS /usr/etc/install | |
14302 | # IRIX /sbin/install | |
14303 | # AIX /bin/install | |
14304 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
14305 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
14306 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
14307 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 14308 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
14309 | # ./install, which can be erroneously created by make from ./install.sh. |
14310 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
14311 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
14312 | if test -z "$INSTALL"; then | |
14313 | if test "${ac_cv_path_install+set}" = set; then | |
14314 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14315 | else | |
14316 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14317 | for as_dir in $PATH | |
14318 | do | |
14319 | IFS=$as_save_IFS | |
14320 | test -z "$as_dir" && as_dir=. | |
14321 | # Account for people who put trailing slashes in PATH elements. | |
14322 | case $as_dir/ in | |
14323 | ./ | .// | /cC/* | \ | |
14324 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 14325 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
14326 | /usr/ucb/* ) ;; |
14327 | *) | |
14328 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
14329 | # Don't use installbsd from OSF since it installs stuff as root | |
14330 | # by default. | |
14331 | for ac_prog in ginstall scoinst install; do | |
14332 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
14333 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
14334 | if test $ac_prog = install && | |
14335 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
14336 | # AIX install. It has an incompatible calling convention. | |
14337 | : | |
14338 | elif test $ac_prog = install && | |
14339 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
14340 | # program-specific install script used by HP pwplus--don't use. | |
14341 | : | |
14342 | else | |
14343 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
14344 | break 3 | |
14345 | fi | |
14346 | fi | |
a848cd7e SC |
14347 | done |
14348 | done | |
14349 | ;; | |
14350 | esac | |
14351 | done | |
14352 | ||
14353 | ||
14354 | fi | |
14355 | if test "${ac_cv_path_install+set}" = set; then | |
14356 | INSTALL=$ac_cv_path_install | |
14357 | else | |
14358 | # As a last resort, use the slow shell script. We don't cache a | |
14359 | # path for INSTALL within a source directory, because that will | |
14360 | # break other packages using the cache if that directory is | |
14361 | # removed, or if the path is relative. | |
14362 | INSTALL=$ac_install_sh | |
14363 | fi | |
14364 | fi | |
14365 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
14366 | echo "${ECHO_T}$INSTALL" >&6 | |
14367 | ||
14368 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
14369 | # It thinks the first close brace ends the variable substitution. | |
14370 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
14371 | ||
14372 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
14373 | ||
14374 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
14375 | ||
14376 | ||
14377 | case ${INSTALL} in | |
14378 | /* ) # Absolute | |
14379 | ;; | |
14380 | ?:* ) # Drive letter, considered as absolute. | |
14381 | ;; | |
14382 | *) | |
14383 | INSTALL=`pwd`/${INSTALL} ;; | |
14384 | esac | |
14385 | ||
a848cd7e SC |
14386 | |
14387 | case "${host}" in | |
14388 | ||
cfda0ea8 | 14389 | *-*-darwin* ) |
a848cd7e SC |
14390 | INSTALL_PROGRAM="cp -fp" |
14391 | INSTALL_DATA="cp -fp" | |
14392 | ;; | |
14393 | *) | |
14394 | ;; | |
14395 | esac | |
14396 | ||
8c80d384 DE |
14397 | if test -n "$ac_tool_prefix"; then |
14398 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
14399 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
a848cd7e SC |
14400 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
14401 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14402 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
14403 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14404 | else | |
14405 | if test -n "$STRIP"; then | |
14406 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
14407 | else | |
14408 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14409 | for as_dir in $PATH | |
14410 | do | |
14411 | IFS=$as_save_IFS | |
14412 | test -z "$as_dir" && as_dir=. | |
14413 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14414 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8c80d384 | 14415 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
a848cd7e SC |
14416 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14417 | break 2 | |
14418 | fi | |
14419 | done | |
14420 | done | |
14421 | ||
a848cd7e SC |
14422 | fi |
14423 | fi | |
14424 | STRIP=$ac_cv_prog_STRIP | |
14425 | if test -n "$STRIP"; then | |
14426 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
14427 | echo "${ECHO_T}$STRIP" >&6 | |
14428 | else | |
14429 | echo "$as_me:$LINENO: result: no" >&5 | |
14430 | echo "${ECHO_T}no" >&6 | |
14431 | fi | |
14432 | ||
8c80d384 DE |
14433 | fi |
14434 | if test -z "$ac_cv_prog_STRIP"; then | |
14435 | ac_ct_STRIP=$STRIP | |
14436 | # Extract the first word of "strip", so it can be a program name with args. | |
14437 | set dummy strip; ac_word=$2 | |
14438 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14439 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14440 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
14441 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14442 | else | |
14443 | if test -n "$ac_ct_STRIP"; then | |
14444 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
14445 | else | |
14446 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14447 | for as_dir in $PATH | |
14448 | do | |
14449 | IFS=$as_save_IFS | |
14450 | test -z "$as_dir" && as_dir=. | |
14451 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14452 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14453 | ac_cv_prog_ac_ct_STRIP="strip" | |
14454 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14455 | break 2 | |
14456 | fi | |
14457 | done | |
14458 | done | |
14459 | ||
14460 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true" | |
14461 | fi | |
14462 | fi | |
14463 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
14464 | if test -n "$ac_ct_STRIP"; then | |
14465 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
14466 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
14467 | else | |
14468 | echo "$as_me:$LINENO: result: no" >&5 | |
14469 | echo "${ECHO_T}no" >&6 | |
14470 | fi | |
14471 | ||
14472 | STRIP=$ac_ct_STRIP | |
14473 | else | |
14474 | STRIP="$ac_cv_prog_STRIP" | |
14475 | fi | |
14476 | ||
14477 | ||
14478 | if test "$wxUSE_WINE" = "yes"; then | |
14479 | if test -n "$ac_tool_prefix"; then | |
14480 | # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args. | |
14481 | set dummy ${ac_tool_prefix}wrc; ac_word=$2 | |
14482 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14483 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 14484 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
8c80d384 DE |
14485 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14486 | else | |
8ced02f6 DE |
14487 | if test -n "$WINDRES"; then |
14488 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
8c80d384 DE |
14489 | else |
14490 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14491 | for as_dir in $PATH | |
14492 | do | |
14493 | IFS=$as_save_IFS | |
14494 | test -z "$as_dir" && as_dir=. | |
14495 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14496 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 14497 | ac_cv_prog_WINDRES="${ac_tool_prefix}wrc" |
8c80d384 DE |
14498 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14499 | break 2 | |
14500 | fi | |
14501 | done | |
14502 | done | |
14503 | ||
14504 | fi | |
14505 | fi | |
8ced02f6 DE |
14506 | WINDRES=$ac_cv_prog_WINDRES |
14507 | if test -n "$WINDRES"; then | |
14508 | echo "$as_me:$LINENO: result: $WINDRES" >&5 | |
14509 | echo "${ECHO_T}$WINDRES" >&6 | |
8c80d384 DE |
14510 | else |
14511 | echo "$as_me:$LINENO: result: no" >&5 | |
14512 | echo "${ECHO_T}no" >&6 | |
14513 | fi | |
14514 | ||
14515 | fi | |
8ced02f6 DE |
14516 | if test -z "$ac_cv_prog_WINDRES"; then |
14517 | ac_ct_WINDRES=$WINDRES | |
8c80d384 DE |
14518 | # Extract the first word of "wrc", so it can be a program name with args. |
14519 | set dummy wrc; ac_word=$2 | |
14520 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14521 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 14522 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
8c80d384 DE |
14523 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14524 | else | |
8ced02f6 DE |
14525 | if test -n "$ac_ct_WINDRES"; then |
14526 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
8c80d384 DE |
14527 | else |
14528 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14529 | for as_dir in $PATH | |
14530 | do | |
14531 | IFS=$as_save_IFS | |
14532 | test -z "$as_dir" && as_dir=. | |
14533 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14534 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 14535 | ac_cv_prog_ac_ct_WINDRES="wrc" |
8c80d384 DE |
14536 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
14537 | break 2 | |
14538 | fi | |
14539 | done | |
14540 | done | |
14541 | ||
14542 | fi | |
14543 | fi | |
8ced02f6 DE |
14544 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
14545 | if test -n "$ac_ct_WINDRES"; then | |
14546 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 | |
14547 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
8c80d384 DE |
14548 | else |
14549 | echo "$as_me:$LINENO: result: no" >&5 | |
14550 | echo "${ECHO_T}no" >&6 | |
14551 | fi | |
14552 | ||
8ced02f6 | 14553 | WINDRES=$ac_ct_WINDRES |
8c80d384 | 14554 | else |
8ced02f6 | 14555 | WINDRES="$ac_cv_prog_WINDRES" |
8c80d384 DE |
14556 | fi |
14557 | ||
004ee6da | 14558 | RESCOMP="$WINDRES" |
8c80d384 DE |
14559 | else |
14560 | case "${host}" in | |
14561 | *-*-cygwin* | *-*-mingw32* ) | |
004ee6da RL |
14562 | if test -n "$ac_tool_prefix"; then |
14563 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
14564 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
14565 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14566 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14567 | if test "${ac_cv_prog_WINDRES+set}" = set; then | |
14568 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14569 | else | |
14570 | if test -n "$WINDRES"; then | |
14571 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
14572 | else | |
14573 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14574 | for as_dir in $PATH | |
14575 | do | |
14576 | IFS=$as_save_IFS | |
14577 | test -z "$as_dir" && as_dir=. | |
14578 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14579 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14580 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" | |
14581 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14582 | break 2 | |
14583 | fi | |
14584 | done | |
14585 | done | |
14586 | ||
14587 | fi | |
14588 | fi | |
14589 | WINDRES=$ac_cv_prog_WINDRES | |
14590 | if test -n "$WINDRES"; then | |
14591 | echo "$as_me:$LINENO: result: $WINDRES" >&5 | |
14592 | echo "${ECHO_T}$WINDRES" >&6 | |
14593 | else | |
14594 | echo "$as_me:$LINENO: result: no" >&5 | |
14595 | echo "${ECHO_T}no" >&6 | |
14596 | fi | |
14597 | ||
14598 | fi | |
14599 | if test -z "$ac_cv_prog_WINDRES"; then | |
14600 | ac_ct_WINDRES=$WINDRES | |
14601 | # Extract the first word of "windres", so it can be a program name with args. | |
14602 | set dummy windres; ac_word=$2 | |
14603 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14604 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14605 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then | |
14606 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14607 | else | |
14608 | if test -n "$ac_ct_WINDRES"; then | |
14609 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
14610 | else | |
14611 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14612 | for as_dir in $PATH | |
14613 | do | |
14614 | IFS=$as_save_IFS | |
14615 | test -z "$as_dir" && as_dir=. | |
14616 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14617 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14618 | ac_cv_prog_ac_ct_WINDRES="windres" | |
14619 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14620 | break 2 | |
14621 | fi | |
14622 | done | |
14623 | done | |
14624 | ||
14625 | fi | |
14626 | fi | |
14627 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES | |
14628 | if test -n "$ac_ct_WINDRES"; then | |
14629 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 | |
14630 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
14631 | else | |
14632 | echo "$as_me:$LINENO: result: no" >&5 | |
14633 | echo "${ECHO_T}no" >&6 | |
14634 | fi | |
14635 | ||
14636 | WINDRES=$ac_ct_WINDRES | |
14637 | else | |
14638 | WINDRES="$ac_cv_prog_WINDRES" | |
14639 | fi | |
14640 | ||
14641 | RESCOMP="$WINDRES" | |
14642 | if test -n "$ac_tool_prefix"; then | |
8c80d384 DE |
14643 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
14644 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
14645 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14646 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14647 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then | |
14648 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14649 | else | |
14650 | if test -n "$DLLTOOL"; then | |
14651 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
14652 | else | |
14653 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14654 | for as_dir in $PATH | |
14655 | do | |
14656 | IFS=$as_save_IFS | |
14657 | test -z "$as_dir" && as_dir=. | |
14658 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14659 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14660 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
14661 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14662 | break 2 | |
14663 | fi | |
14664 | done | |
14665 | done | |
14666 | ||
14667 | fi | |
14668 | fi | |
14669 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
14670 | if test -n "$DLLTOOL"; then | |
14671 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 | |
14672 | echo "${ECHO_T}$DLLTOOL" >&6 | |
14673 | else | |
14674 | echo "$as_me:$LINENO: result: no" >&5 | |
14675 | echo "${ECHO_T}no" >&6 | |
14676 | fi | |
14677 | ||
14678 | fi | |
14679 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
14680 | ac_ct_DLLTOOL=$DLLTOOL | |
14681 | # Extract the first word of "dlltool", so it can be a program name with args. | |
14682 | set dummy dlltool; ac_word=$2 | |
14683 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14684 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14685 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then | |
14686 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14687 | else | |
14688 | if test -n "$ac_ct_DLLTOOL"; then | |
14689 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
14690 | else | |
14691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14692 | for as_dir in $PATH | |
14693 | do | |
14694 | IFS=$as_save_IFS | |
14695 | test -z "$as_dir" && as_dir=. | |
14696 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14697 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14698 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
14699 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14700 | break 2 | |
14701 | fi | |
14702 | done | |
14703 | done | |
14704 | ||
14705 | fi | |
14706 | fi | |
14707 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
14708 | if test -n "$ac_ct_DLLTOOL"; then | |
14709 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 | |
14710 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 | |
14711 | else | |
14712 | echo "$as_me:$LINENO: result: no" >&5 | |
14713 | echo "${ECHO_T}no" >&6 | |
14714 | fi | |
14715 | ||
14716 | DLLTOOL=$ac_ct_DLLTOOL | |
14717 | else | |
14718 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
14719 | fi | |
14720 | ||
14721 | ;; | |
14722 | esac | |
14723 | fi | |
a848cd7e SC |
14724 | |
14725 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
14726 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
14727 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
14728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14729 | else | |
14730 | ||
14731 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
14732 | egrep -s GNU > /dev/null); then | |
14733 | wx_cv_prog_makeisgnu="yes" | |
14734 | else | |
14735 | wx_cv_prog_makeisgnu="no" | |
14736 | fi | |
14737 | ||
14738 | fi | |
14739 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 | |
14740 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
14741 | ||
14742 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
14743 | IF_GNU_MAKE="" | |
14744 | else | |
14745 | IF_GNU_MAKE="#" | |
14746 | fi | |
14747 | ||
14748 | ||
14749 | ||
14750 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
14751 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 | |
14752 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
14753 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
14754 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14755 | else | |
14756 | ||
14757 | cat - << EOF > confMake | |
14758 | check : file | |
14759 | cp \$? \$@ | |
14760 | cp \$? final_file | |
14761 | EOF | |
14762 | ||
14763 | if test ! -d sub ; then | |
14764 | mkdir sub | |
14765 | fi | |
14766 | echo dummy > sub/file | |
14767 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
14768 | RESULT=$? | |
14769 | rm -f sub/file check final_file confMake | |
14770 | rmdir sub | |
14771 | if test "$RESULT" = 0; then | |
14772 | wx_cv_prog_makevpath="yes" | |
14773 | else | |
14774 | wx_cv_prog_makevpath="no" | |
14775 | fi | |
14776 | ||
14777 | fi | |
14778 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 | |
14779 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
14780 | ||
14781 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
14782 | { { echo "$as_me:$LINENO: error: | |
14783 | You need a make-utility that is able to use the variable | |
14784 | VPATH correctly. | |
14785 | If your version of make does not support VPATH correctly, | |
14786 | please install GNU-make (possibly as gmake), and start | |
14787 | configure with the following command: | |
14788 | export MAKE=gmake; ./configure for sh-type shells | |
14789 | setenv MAKE gmake; ./configure for csh-type shells | |
14790 | Also please do remember to use gmake in this case every time | |
14791 | you are trying to compile. | |
14792 | " >&5 | |
14793 | echo "$as_me: error: | |
14794 | You need a make-utility that is able to use the variable | |
14795 | VPATH correctly. | |
14796 | If your version of make does not support VPATH correctly, | |
14797 | please install GNU-make (possibly as gmake), and start | |
14798 | configure with the following command: | |
14799 | export MAKE=gmake; ./configure for sh-type shells | |
14800 | setenv MAKE gmake; ./configure for csh-type shells | |
14801 | Also please do remember to use gmake in this case every time | |
14802 | you are trying to compile. | |
14803 | " >&2;} | |
14804 | { (exit 1); exit 1; }; } | |
14805 | fi fi | |
14806 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
14807 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
14808 | LN_S=$as_ln_s | |
14809 | if test "$LN_S" = "ln -s"; then | |
14810 | echo "$as_me:$LINENO: result: yes" >&5 | |
14811 | echo "${ECHO_T}yes" >&6 | |
14812 | else | |
14813 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
14814 | echo "${ECHO_T}no, using $LN_S" >&6 | |
14815 | fi | |
14816 | ||
14817 | ||
bcaab0f9 MW |
14818 | for ac_prog in lndir |
14819 | do | |
14820 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
14821 | set dummy $ac_prog; ac_word=$2 | |
14822 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
14823 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
14824 | if test "${ac_cv_prog_LNDIR+set}" = set; then | |
14825 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14826 | else | |
14827 | if test -n "$LNDIR"; then | |
14828 | ac_cv_prog_LNDIR="$LNDIR" # Let the user override the test. | |
14829 | else | |
14830 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14831 | for as_dir in $PATH | |
14832 | do | |
14833 | IFS=$as_save_IFS | |
14834 | test -z "$as_dir" && as_dir=. | |
14835 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14836 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14837 | ac_cv_prog_LNDIR="$ac_prog" | |
14838 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14839 | break 2 | |
14840 | fi | |
14841 | done | |
14842 | done | |
14843 | ||
14844 | fi | |
14845 | fi | |
14846 | LNDIR=$ac_cv_prog_LNDIR | |
14847 | if test -n "$LNDIR"; then | |
14848 | echo "$as_me:$LINENO: result: $LNDIR" >&5 | |
14849 | echo "${ECHO_T}$LNDIR" >&6 | |
14850 | else | |
14851 | echo "$as_me:$LINENO: result: no" >&5 | |
14852 | echo "${ECHO_T}no" >&6 | |
14853 | fi | |
14854 | ||
14855 | test -n "$LNDIR" && break | |
14856 | done | |
91dea314 | 14857 | test -n "$LNDIR" || LNDIR="cp -pR" |
bcaab0f9 MW |
14858 | |
14859 | ||
14860 | ||
a848cd7e | 14861 | |
2113bc77 | 14862 | if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then |
c92ad099 | 14863 | CXXFLAGS="-qunique $CXXFLAGS" |
9273ffba DE |
14864 | fi |
14865 | ||
4d7ec9f1 DE |
14866 | case "${host}" in |
14867 | powerpc-*-darwin* ) | |
14868 | echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5 | |
14869 | echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6 | |
14870 | cat >conftest.$ac_ext <<_ACEOF | |
14871 | /* confdefs.h. */ | |
14872 | _ACEOF | |
14873 | cat confdefs.h >>conftest.$ac_ext | |
14874 | cat >>conftest.$ac_ext <<_ACEOF | |
14875 | /* end confdefs.h. */ | |
14876 | ||
14877 | int | |
14878 | main () | |
14879 | { | |
14880 | #ifndef __POWERPC__ | |
14881 | choke me for lack of PowerPC | |
14882 | #endif | |
14883 | ||
14884 | ; | |
14885 | return 0; | |
14886 | } | |
14887 | _ACEOF | |
14888 | rm -f conftest.$ac_objext | |
14889 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14890 | (eval $ac_compile) 2>conftest.er1 | |
14891 | ac_status=$? | |
14892 | grep -v '^ *+' conftest.er1 >conftest.err | |
14893 | rm -f conftest.er1 | |
14894 | cat conftest.err >&5 | |
14895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14896 | (exit $ac_status); } && | |
3565d135 RR |
14897 | { ac_try='test -z "$ac_c_werror_flag" |
14898 | || test ! -s conftest.err' | |
4d7ec9f1 DE |
14899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14900 | (eval $ac_try) 2>&5 | |
14901 | ac_status=$? | |
14902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14903 | (exit $ac_status); }; } && | |
14904 | { ac_try='test -s conftest.$ac_objext' | |
14905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14906 | (eval $ac_try) 2>&5 | |
14907 | ac_status=$? | |
14908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14909 | (exit $ac_status); }; }; then | |
14910 | echo "$as_me:$LINENO: result: yes" >&5 | |
14911 | echo "${ECHO_T}yes" >&6 | |
14912 | else | |
14913 | echo "$as_me: failed program was:" >&5 | |
14914 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14915 | ||
14916 | echo "$as_me:$LINENO: result: no" >&5 | |
14917 | echo "${ECHO_T}no" >&6 | |
14918 | cat >>confdefs.h <<\_ACEOF | |
14919 | #define __POWERPC__ 1 | |
14920 | _ACEOF | |
14921 | ||
14922 | ||
14923 | fi | |
14924 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
cfda0ea8 DE |
14925 | ;; |
14926 | esac | |
14927 | ||
14928 | case "${host}" in | |
14929 | *-*-darwin* ) | |
4d7ec9f1 DE |
14930 | echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5 |
14931 | echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6 | |
14932 | cat >conftest.$ac_ext <<_ACEOF | |
14933 | /* confdefs.h. */ | |
14934 | _ACEOF | |
14935 | cat confdefs.h >>conftest.$ac_ext | |
14936 | cat >>conftest.$ac_ext <<_ACEOF | |
14937 | /* end confdefs.h. */ | |
14938 | #include <CoreFoundation/CFBase.h> | |
14939 | ||
14940 | int | |
14941 | main () | |
14942 | { | |
14943 | ||
14944 | ; | |
14945 | return 0; | |
14946 | } | |
14947 | _ACEOF | |
14948 | rm -f conftest.$ac_objext | |
14949 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14950 | (eval $ac_compile) 2>conftest.er1 | |
14951 | ac_status=$? | |
14952 | grep -v '^ *+' conftest.er1 >conftest.err | |
14953 | rm -f conftest.er1 | |
14954 | cat conftest.err >&5 | |
14955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14956 | (exit $ac_status); } && | |
3565d135 RR |
14957 | { ac_try='test -z "$ac_c_werror_flag" |
14958 | || test ! -s conftest.err' | |
4d7ec9f1 DE |
14959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14960 | (eval $ac_try) 2>&5 | |
14961 | ac_status=$? | |
14962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14963 | (exit $ac_status); }; } && | |
14964 | { ac_try='test -s conftest.$ac_objext' | |
14965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14966 | (eval $ac_try) 2>&5 | |
14967 | ac_status=$? | |
14968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14969 | (exit $ac_status); }; }; then | |
14970 | echo "$as_me:$LINENO: result: yes" >&5 | |
14971 | echo "${ECHO_T}yes" >&6 | |
14972 | else | |
14973 | echo "$as_me: failed program was:" >&5 | |
14974 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14975 | ||
14976 | echo "$as_me:$LINENO: result: no" >&5 | |
14977 | echo "${ECHO_T}no" >&6 | |
14978 | echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5 | |
14979 | echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6 | |
14980 | cat >conftest.$ac_ext <<_ACEOF | |
14981 | /* confdefs.h. */ | |
14982 | _ACEOF | |
14983 | cat confdefs.h >>conftest.$ac_ext | |
14984 | cat >>conftest.$ac_ext <<_ACEOF | |
14985 | /* end confdefs.h. */ | |
14986 | #define __CF_USE_FRAMEWORK_INCLUDES__ | |
14987 | #include <CoreFoundation/CFBase.h> | |
14988 | ||
14989 | int | |
14990 | main () | |
14991 | { | |
14992 | ||
14993 | ; | |
14994 | return 0; | |
14995 | } | |
14996 | _ACEOF | |
14997 | rm -f conftest.$ac_objext | |
14998 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14999 | (eval $ac_compile) 2>conftest.er1 | |
15000 | ac_status=$? | |
15001 | grep -v '^ *+' conftest.er1 >conftest.err | |
15002 | rm -f conftest.er1 | |
15003 | cat conftest.err >&5 | |
15004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15005 | (exit $ac_status); } && | |
3565d135 RR |
15006 | { ac_try='test -z "$ac_c_werror_flag" |
15007 | || test ! -s conftest.err' | |
4d7ec9f1 DE |
15008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15009 | (eval $ac_try) 2>&5 | |
15010 | ac_status=$? | |
15011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15012 | (exit $ac_status); }; } && | |
15013 | { ac_try='test -s conftest.$ac_objext' | |
15014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15015 | (eval $ac_try) 2>&5 | |
15016 | ac_status=$? | |
15017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15018 | (exit $ac_status); }; }; then | |
15019 | echo "$as_me:$LINENO: result: yes" >&5 | |
15020 | echo "${ECHO_T}yes" >&6 | |
c92ad099 | 15021 | CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS" |
4d7ec9f1 DE |
15022 | else |
15023 | echo "$as_me: failed program was:" >&5 | |
15024 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15025 | ||
15026 | { { echo "$as_me:$LINENO: error: no. CoreFoundation not available. | |
15027 | See \`config.log' for more details." >&5 | |
15028 | echo "$as_me: error: no. CoreFoundation not available. | |
15029 | See \`config.log' for more details." >&2;} | |
15030 | { (exit 1); exit 1; }; } | |
15031 | ||
15032 | fi | |
15033 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15034 | ||
15035 | ||
15036 | fi | |
15037 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15038 | ;; | |
15039 | esac | |
15040 | ||
a848cd7e SC |
15041 | case "${host}" in |
15042 | *-pc-os2_emx | *-pc-os2-emx ) | |
15043 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
15044 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 | |
15045 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
15046 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
15047 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15048 | else | |
15049 | ac_check_lib_save_LIBS=$LIBS | |
15050 | LIBS="-lcExt $LIBS" | |
15051 | cat >conftest.$ac_ext <<_ACEOF | |
15052 | /* confdefs.h. */ | |
15053 | _ACEOF | |
15054 | cat confdefs.h >>conftest.$ac_ext | |
15055 | cat >>conftest.$ac_ext <<_ACEOF | |
15056 | /* end confdefs.h. */ | |
15057 | ||
15058 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15059 | #ifdef __cplusplus | |
15060 | extern "C" | |
15061 | #endif | |
15062 | /* We use char because int might match the return type of a gcc2 | |
15063 | builtin and then its argument prototype would still apply. */ | |
15064 | char drand48 (); | |
15065 | int | |
15066 | main () | |
15067 | { | |
15068 | drand48 (); | |
15069 | ; | |
15070 | return 0; | |
15071 | } | |
15072 | _ACEOF | |
15073 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15074 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 15075 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 15076 | ac_status=$? |
ac1cb8d3 VS |
15077 | grep -v '^ *+' conftest.er1 >conftest.err |
15078 | rm -f conftest.er1 | |
15079 | cat conftest.err >&5 | |
a848cd7e SC |
15080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15081 | (exit $ac_status); } && | |
3565d135 RR |
15082 | { ac_try='test -z "$ac_c_werror_flag" |
15083 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15085 | (eval $ac_try) 2>&5 | |
15086 | ac_status=$? | |
15087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15088 | (exit $ac_status); }; } && | |
15089 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
15090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15091 | (eval $ac_try) 2>&5 | |
15092 | ac_status=$? | |
15093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15094 | (exit $ac_status); }; }; then | |
15095 | ac_cv_lib_cExt_drand48=yes | |
15096 | else | |
15097 | echo "$as_me: failed program was:" >&5 | |
15098 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15099 | ||
15100 | ac_cv_lib_cExt_drand48=no | |
15101 | fi | |
ac1cb8d3 VS |
15102 | rm -f conftest.err conftest.$ac_objext \ |
15103 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
15104 | LIBS=$ac_check_lib_save_LIBS |
15105 | fi | |
15106 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
15107 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
15108 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
15109 | LIBS="$LIBS -lcExt" | |
15110 | fi | |
15111 | ||
15112 | else | |
15113 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
15114 | fi | |
69120ee4 VZ |
15115 | echo "$as_me:$LINENO: checking for gcc/libc version" >&5 |
15116 | echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6 | |
a848cd7e SC |
15117 | if test "${wx_cv_gccversion+set}" = set; then |
15118 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15119 | else | |
15120 | ||
391a765e VS |
15121 | if test "$cross_compiling" = yes; then |
15122 | wx_cv_gccversion="EMX2" | |
15123 | ||
15124 | else | |
15125 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
15126 | /* confdefs.h. */ |
15127 | _ACEOF | |
15128 | cat confdefs.h >>conftest.$ac_ext | |
15129 | cat >>conftest.$ac_ext <<_ACEOF | |
15130 | /* end confdefs.h. */ | |
15131 | ||
391a765e | 15132 | #include <stdio.h> |
a848cd7e | 15133 | |
391a765e VS |
15134 | int main() |
15135 | { | |
15136 | FILE *f=fopen("conftestval", "w"); | |
15137 | if (!f) exit(1); | |
15138 | fprintf(f, | |
a848cd7e | 15139 | #if (__GNUC__ < 3) |
391a765e VS |
15140 | "EMX2" |
15141 | #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
15142 | "EMX3" | |
15143 | #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2) | |
15144 | "Innotek5" | |
15145 | #else | |
15146 | "Innotek6" | |
a848cd7e | 15147 | #endif |
391a765e VS |
15148 | ); |
15149 | exit(0); | |
15150 | } | |
a848cd7e | 15151 | |
a848cd7e | 15152 | _ACEOF |
391a765e VS |
15153 | rm -f conftest$ac_exeext |
15154 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15155 | (eval $ac_link) 2>&5 | |
ac1cb8d3 VS |
15156 | ac_status=$? |
15157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
391a765e | 15158 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
a848cd7e SC |
15159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15160 | (eval $ac_try) 2>&5 | |
15161 | ac_status=$? | |
15162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15163 | (exit $ac_status); }; }; then | |
391a765e | 15164 | wx_cv_gccversion=`cat conftestval` |
a848cd7e | 15165 | else |
391a765e VS |
15166 | echo "$as_me: program exited with status $ac_status" >&5 |
15167 | echo "$as_me: failed program was:" >&5 | |
a848cd7e SC |
15168 | sed 's/^/| /' conftest.$ac_ext >&5 |
15169 | ||
391a765e VS |
15170 | ( exit $ac_status ) |
15171 | wx_cv_gccversion="EMX2" | |
a848cd7e | 15172 | fi |
391a765e | 15173 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15174 | fi |
a848cd7e SC |
15175 | |
15176 | fi | |
15177 | echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5 | |
15178 | echo "${ECHO_T}$wx_cv_gccversion" >&6 | |
391a765e | 15179 | if test "$wx_cv_gccversion" = "EMX2"; then |
a848cd7e SC |
15180 | LIBS="$LIBS -lstdcpp" |
15181 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
15182 | else | |
391a765e | 15183 | if test "$wx_cv_gccversion" = "EMX3"; then |
ddd14b14 | 15184 | LIBS="$LIBS -lstdcxx -lgcc" |
a848cd7e SC |
15185 | LDFLAGS="$LDFLAGS -Zsysv-signals" |
15186 | else | |
15187 | LIBS="$LIBS -lstdc++" | |
15188 | fi | |
15189 | fi | |
94acd38e DE |
15190 | if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then |
15191 | { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5 | |
15192 | echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;} | |
15193 | wxUSE_OMF=yes | |
2da0c077 | 15194 | enable_omf=yes |
a848cd7e SC |
15195 | fi |
15196 | ;; | |
15197 | *) | |
15198 | ||
15199 | ||
15200 | ||
15201 | ac_ext=cc | |
15202 | ac_cpp='$CXXCPP $CPPFLAGS' | |
15203 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15204 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15205 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
15206 | ||
15207 | ||
95986553 | 15208 | echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 |
a848cd7e SC |
15209 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6 |
15210 | if test "${ac_cv_string_strcasecmp+set}" = set; then | |
15211 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15212 | else | |
15213 | ||
15214 | cat >conftest.$ac_ext <<_ACEOF | |
15215 | /* confdefs.h. */ | |
15216 | _ACEOF | |
15217 | cat confdefs.h >>conftest.$ac_ext | |
15218 | cat >>conftest.$ac_ext <<_ACEOF | |
15219 | /* end confdefs.h. */ | |
15220 | ||
15221 | #include <string.h> | |
15222 | ||
15223 | int | |
15224 | main () | |
15225 | { | |
15226 | ||
15227 | strcasecmp("foo", "bar"); | |
15228 | ||
15229 | ; | |
15230 | return 0; | |
15231 | } | |
15232 | _ACEOF | |
15233 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15234 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 15235 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 15236 | ac_status=$? |
ac1cb8d3 VS |
15237 | grep -v '^ *+' conftest.er1 >conftest.err |
15238 | rm -f conftest.er1 | |
15239 | cat conftest.err >&5 | |
a848cd7e SC |
15240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15241 | (exit $ac_status); } && | |
3565d135 RR |
15242 | { ac_try='test -z "$ac_cxx_werror_flag" |
15243 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15245 | (eval $ac_try) 2>&5 | |
15246 | ac_status=$? | |
15247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15248 | (exit $ac_status); }; } && | |
15249 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
15250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15251 | (eval $ac_try) 2>&5 | |
15252 | ac_status=$? | |
15253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15254 | (exit $ac_status); }; }; then | |
15255 | ac_cv_string_strcasecmp=yes | |
15256 | else | |
15257 | echo "$as_me: failed program was:" >&5 | |
15258 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15259 | ||
15260 | ac_cv_string_strcasecmp=no | |
15261 | ||
15262 | fi | |
ac1cb8d3 VS |
15263 | rm -f conftest.err conftest.$ac_objext \ |
15264 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
15265 | |
15266 | fi | |
15267 | echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 | |
15268 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6 | |
15269 | ||
15270 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
15271 | cat >>confdefs.h <<\_ACEOF | |
15272 | #define HAVE_STRCASECMP_IN_STRING_H 1 | |
15273 | _ACEOF | |
15274 | ||
15275 | else | |
15276 | echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 | |
15277 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6 | |
15278 | if test "${ac_cv_strings_strcasecmp+set}" = set; then | |
15279 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15280 | else | |
15281 | ||
15282 | cat >conftest.$ac_ext <<_ACEOF | |
15283 | /* confdefs.h. */ | |
15284 | _ACEOF | |
15285 | cat confdefs.h >>conftest.$ac_ext | |
15286 | cat >>conftest.$ac_ext <<_ACEOF | |
15287 | /* end confdefs.h. */ | |
15288 | ||
15289 | #include <strings.h> | |
15290 | ||
15291 | int | |
15292 | main () | |
15293 | { | |
15294 | ||
15295 | strcasecmp("foo", "bar"); | |
15296 | ||
15297 | ; | |
15298 | return 0; | |
15299 | } | |
15300 | _ACEOF | |
15301 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15302 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 15303 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 15304 | ac_status=$? |
ac1cb8d3 VS |
15305 | grep -v '^ *+' conftest.er1 >conftest.err |
15306 | rm -f conftest.er1 | |
15307 | cat conftest.err >&5 | |
a848cd7e SC |
15308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15309 | (exit $ac_status); } && | |
3565d135 RR |
15310 | { ac_try='test -z "$ac_cxx_werror_flag" |
15311 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15313 | (eval $ac_try) 2>&5 | |
15314 | ac_status=$? | |
15315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15316 | (exit $ac_status); }; } && | |
15317 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
15318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15319 | (eval $ac_try) 2>&5 | |
15320 | ac_status=$? | |
15321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15322 | (exit $ac_status); }; }; then | |
15323 | ac_cv_strings_strcasecmp=yes | |
15324 | else | |
15325 | echo "$as_me: failed program was:" >&5 | |
15326 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15327 | ||
15328 | ac_cv_strings_strcasecmp=no | |
15329 | ||
15330 | fi | |
ac1cb8d3 VS |
15331 | rm -f conftest.err conftest.$ac_objext \ |
15332 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
15333 | |
15334 | fi | |
15335 | echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 | |
15336 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6 | |
15337 | ||
0c3c69fc | 15338 | if test x"$ac_cv_strings_strcasecmp" = "xyes"; then |
a848cd7e SC |
15339 | cat >>confdefs.h <<\_ACEOF |
15340 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 | |
15341 | _ACEOF | |
15342 | ||
15343 | else | |
15344 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 | |
15345 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} | |
15346 | { (exit 1); exit 1; }; } | |
15347 | fi | |
15348 | fi | |
15349 | ||
15350 | ac_ext=c | |
15351 | ac_cpp='$CPP $CPPFLAGS' | |
15352 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15353 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15354 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15355 | ||
15356 | ;; | |
15357 | esac | |
15358 | ||
15359 | ||
15360 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
15361 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
15362 | if test "${ac_cv_header_stdc+set}" = set; then | |
15363 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15364 | else | |
15365 | cat >conftest.$ac_ext <<_ACEOF | |
15366 | /* confdefs.h. */ | |
15367 | _ACEOF | |
15368 | cat confdefs.h >>conftest.$ac_ext | |
15369 | cat >>conftest.$ac_ext <<_ACEOF | |
15370 | /* end confdefs.h. */ | |
15371 | #include <stdlib.h> | |
15372 | #include <stdarg.h> | |
15373 | #include <string.h> | |
15374 | #include <float.h> | |
15375 | ||
15376 | int | |
15377 | main () | |
15378 | { | |
15379 | ||
15380 | ; | |
15381 | return 0; | |
15382 | } | |
15383 | _ACEOF | |
15384 | rm -f conftest.$ac_objext | |
15385 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15386 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15387 | ac_status=$? |
ac1cb8d3 VS |
15388 | grep -v '^ *+' conftest.er1 >conftest.err |
15389 | rm -f conftest.er1 | |
15390 | cat conftest.err >&5 | |
a848cd7e SC |
15391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15392 | (exit $ac_status); } && | |
3565d135 RR |
15393 | { ac_try='test -z "$ac_c_werror_flag" |
15394 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15396 | (eval $ac_try) 2>&5 | |
15397 | ac_status=$? | |
15398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15399 | (exit $ac_status); }; } && | |
15400 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15402 | (eval $ac_try) 2>&5 | |
15403 | ac_status=$? | |
15404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15405 | (exit $ac_status); }; }; then | |
15406 | ac_cv_header_stdc=yes | |
15407 | else | |
15408 | echo "$as_me: failed program was:" >&5 | |
15409 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15410 | ||
15411 | ac_cv_header_stdc=no | |
15412 | fi | |
ac1cb8d3 | 15413 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15414 | |
15415 | if test $ac_cv_header_stdc = yes; then | |
15416 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
15417 | cat >conftest.$ac_ext <<_ACEOF | |
15418 | /* confdefs.h. */ | |
15419 | _ACEOF | |
15420 | cat confdefs.h >>conftest.$ac_ext | |
15421 | cat >>conftest.$ac_ext <<_ACEOF | |
15422 | /* end confdefs.h. */ | |
15423 | #include <string.h> | |
15424 | ||
15425 | _ACEOF | |
15426 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15427 | $EGREP "memchr" >/dev/null 2>&1; then | |
15428 | : | |
15429 | else | |
15430 | ac_cv_header_stdc=no | |
15431 | fi | |
15432 | rm -f conftest* | |
15433 | ||
15434 | fi | |
15435 | ||
15436 | if test $ac_cv_header_stdc = yes; then | |
15437 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
15438 | cat >conftest.$ac_ext <<_ACEOF | |
15439 | /* confdefs.h. */ | |
15440 | _ACEOF | |
15441 | cat confdefs.h >>conftest.$ac_ext | |
15442 | cat >>conftest.$ac_ext <<_ACEOF | |
15443 | /* end confdefs.h. */ | |
15444 | #include <stdlib.h> | |
15445 | ||
15446 | _ACEOF | |
15447 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15448 | $EGREP "free" >/dev/null 2>&1; then | |
15449 | : | |
15450 | else | |
15451 | ac_cv_header_stdc=no | |
15452 | fi | |
15453 | rm -f conftest* | |
15454 | ||
15455 | fi | |
15456 | ||
15457 | if test $ac_cv_header_stdc = yes; then | |
15458 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
15459 | if test "$cross_compiling" = yes; then | |
15460 | : | |
15461 | else | |
15462 | cat >conftest.$ac_ext <<_ACEOF | |
15463 | /* confdefs.h. */ | |
15464 | _ACEOF | |
15465 | cat confdefs.h >>conftest.$ac_ext | |
15466 | cat >>conftest.$ac_ext <<_ACEOF | |
15467 | /* end confdefs.h. */ | |
15468 | #include <ctype.h> | |
15469 | #if ((' ' & 0x0FF) == 0x020) | |
15470 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
15471 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
15472 | #else | |
15473 | # define ISLOWER(c) \ | |
ac1cb8d3 VS |
15474 | (('a' <= (c) && (c) <= 'i') \ |
15475 | || ('j' <= (c) && (c) <= 'r') \ | |
15476 | || ('s' <= (c) && (c) <= 'z')) | |
a848cd7e SC |
15477 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
15478 | #endif | |
15479 | ||
15480 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
15481 | int | |
15482 | main () | |
15483 | { | |
15484 | int i; | |
15485 | for (i = 0; i < 256; i++) | |
15486 | if (XOR (islower (i), ISLOWER (i)) | |
ac1cb8d3 | 15487 | || toupper (i) != TOUPPER (i)) |
a848cd7e SC |
15488 | exit(2); |
15489 | exit (0); | |
15490 | } | |
15491 | _ACEOF | |
15492 | rm -f conftest$ac_exeext | |
15493 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15494 | (eval $ac_link) 2>&5 | |
15495 | ac_status=$? | |
15496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15497 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15499 | (eval $ac_try) 2>&5 | |
15500 | ac_status=$? | |
15501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15502 | (exit $ac_status); }; }; then | |
15503 | : | |
15504 | else | |
15505 | echo "$as_me: program exited with status $ac_status" >&5 | |
15506 | echo "$as_me: failed program was:" >&5 | |
15507 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15508 | ||
15509 | ( exit $ac_status ) | |
15510 | ac_cv_header_stdc=no | |
15511 | fi | |
ac1cb8d3 | 15512 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15513 | fi |
15514 | fi | |
15515 | fi | |
15516 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
15517 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
15518 | if test $ac_cv_header_stdc = yes; then | |
15519 | ||
15520 | cat >>confdefs.h <<\_ACEOF | |
15521 | #define STDC_HEADERS 1 | |
15522 | _ACEOF | |
15523 | ||
15524 | fi | |
15525 | ||
15526 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
15527 | ||
15528 | ||
15529 | ||
15530 | ||
15531 | ||
15532 | ||
15533 | ||
15534 | ||
15535 | ||
15536 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
ac1cb8d3 | 15537 | inttypes.h stdint.h unistd.h |
a848cd7e SC |
15538 | do |
15539 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15540 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15541 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15542 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15543 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15544 | else | |
15545 | cat >conftest.$ac_ext <<_ACEOF | |
15546 | /* confdefs.h. */ | |
15547 | _ACEOF | |
15548 | cat confdefs.h >>conftest.$ac_ext | |
15549 | cat >>conftest.$ac_ext <<_ACEOF | |
15550 | /* end confdefs.h. */ | |
15551 | $ac_includes_default | |
15552 | ||
15553 | #include <$ac_header> | |
15554 | _ACEOF | |
15555 | rm -f conftest.$ac_objext | |
15556 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15557 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15558 | ac_status=$? |
ac1cb8d3 VS |
15559 | grep -v '^ *+' conftest.er1 >conftest.err |
15560 | rm -f conftest.er1 | |
15561 | cat conftest.err >&5 | |
a848cd7e SC |
15562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15563 | (exit $ac_status); } && | |
3565d135 RR |
15564 | { ac_try='test -z "$ac_c_werror_flag" |
15565 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15567 | (eval $ac_try) 2>&5 | |
15568 | ac_status=$? | |
15569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15570 | (exit $ac_status); }; } && | |
15571 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15573 | (eval $ac_try) 2>&5 | |
15574 | ac_status=$? | |
15575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15576 | (exit $ac_status); }; }; then | |
15577 | eval "$as_ac_Header=yes" | |
15578 | else | |
15579 | echo "$as_me: failed program was:" >&5 | |
15580 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15581 | ||
15582 | eval "$as_ac_Header=no" | |
15583 | fi | |
ac1cb8d3 | 15584 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15585 | fi |
15586 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15587 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15588 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15589 | cat >>confdefs.h <<_ACEOF | |
15590 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15591 | _ACEOF | |
15592 | ||
15593 | fi | |
15594 | ||
15595 | done | |
15596 | ||
15597 | ||
15598 | ||
15599 | for ac_header in stdlib.h | |
15600 | do | |
15601 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15602 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15603 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15604 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15605 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15606 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15607 | fi | |
15608 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15609 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15610 | else | |
15611 | # Is the header compilable? | |
15612 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15613 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15614 | cat >conftest.$ac_ext <<_ACEOF | |
15615 | /* confdefs.h. */ | |
15616 | _ACEOF | |
15617 | cat confdefs.h >>conftest.$ac_ext | |
15618 | cat >>conftest.$ac_ext <<_ACEOF | |
15619 | /* end confdefs.h. */ | |
15620 | $ac_includes_default | |
15621 | #include <$ac_header> | |
15622 | _ACEOF | |
15623 | rm -f conftest.$ac_objext | |
15624 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15625 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15626 | ac_status=$? |
ac1cb8d3 VS |
15627 | grep -v '^ *+' conftest.er1 >conftest.err |
15628 | rm -f conftest.er1 | |
15629 | cat conftest.err >&5 | |
a848cd7e SC |
15630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15631 | (exit $ac_status); } && | |
3565d135 RR |
15632 | { ac_try='test -z "$ac_c_werror_flag" |
15633 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15635 | (eval $ac_try) 2>&5 | |
15636 | ac_status=$? | |
15637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15638 | (exit $ac_status); }; } && | |
15639 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15641 | (eval $ac_try) 2>&5 | |
15642 | ac_status=$? | |
15643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15644 | (exit $ac_status); }; }; then | |
15645 | ac_header_compiler=yes | |
15646 | else | |
15647 | echo "$as_me: failed program was:" >&5 | |
15648 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15649 | ||
15650 | ac_header_compiler=no | |
15651 | fi | |
ac1cb8d3 | 15652 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15653 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15654 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15655 | ||
15656 | # Is the header present? | |
15657 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15658 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15659 | cat >conftest.$ac_ext <<_ACEOF | |
15660 | /* confdefs.h. */ | |
15661 | _ACEOF | |
15662 | cat confdefs.h >>conftest.$ac_ext | |
15663 | cat >>conftest.$ac_ext <<_ACEOF | |
15664 | /* end confdefs.h. */ | |
15665 | #include <$ac_header> | |
15666 | _ACEOF | |
15667 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15668 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15669 | ac_status=$? | |
15670 | grep -v '^ *+' conftest.er1 >conftest.err | |
15671 | rm -f conftest.er1 | |
15672 | cat conftest.err >&5 | |
15673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15674 | (exit $ac_status); } >/dev/null; then | |
15675 | if test -s conftest.err; then | |
15676 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15677 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15678 | else |
15679 | ac_cpp_err= | |
15680 | fi | |
15681 | else | |
15682 | ac_cpp_err=yes | |
15683 | fi | |
15684 | if test -z "$ac_cpp_err"; then | |
15685 | ac_header_preproc=yes | |
15686 | else | |
15687 | echo "$as_me: failed program was:" >&5 | |
15688 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15689 | ||
15690 | ac_header_preproc=no | |
15691 | fi | |
15692 | rm -f conftest.err conftest.$ac_ext | |
15693 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15694 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15695 | ||
15696 | # So? What about this header? | |
ac1cb8d3 VS |
15697 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15698 | yes:no: ) | |
a848cd7e SC |
15699 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15700 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15701 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15702 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15703 | ac_header_preproc=yes | |
a848cd7e | 15704 | ;; |
ac1cb8d3 | 15705 | no:yes:* ) |
a848cd7e SC |
15706 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15707 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15708 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15709 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15710 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15711 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15712 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15713 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15714 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15715 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15716 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15717 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15718 | ( |
15719 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15720 | ## ----------------------------------------- ## |
15721 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15722 | ## ----------------------------------------- ## | |
a848cd7e SC |
15723 | _ASBOX |
15724 | ) | | |
15725 | sed "s/^/$as_me: WARNING: /" >&2 | |
15726 | ;; | |
15727 | esac | |
15728 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15729 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15730 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15731 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15732 | else | |
ac1cb8d3 | 15733 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15734 | fi |
15735 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15736 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15737 | ||
15738 | fi | |
15739 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15740 | cat >>confdefs.h <<_ACEOF | |
15741 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15742 | _ACEOF | |
15743 | ||
15744 | fi | |
15745 | ||
15746 | done | |
15747 | ||
15748 | ||
15749 | for ac_header in malloc.h | |
15750 | do | |
15751 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15752 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15753 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15754 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15755 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15756 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15757 | fi | |
15758 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15759 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15760 | else | |
15761 | # Is the header compilable? | |
15762 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15763 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15764 | cat >conftest.$ac_ext <<_ACEOF | |
15765 | /* confdefs.h. */ | |
15766 | _ACEOF | |
15767 | cat confdefs.h >>conftest.$ac_ext | |
15768 | cat >>conftest.$ac_ext <<_ACEOF | |
15769 | /* end confdefs.h. */ | |
15770 | $ac_includes_default | |
15771 | #include <$ac_header> | |
15772 | _ACEOF | |
15773 | rm -f conftest.$ac_objext | |
15774 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15775 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15776 | ac_status=$? |
ac1cb8d3 VS |
15777 | grep -v '^ *+' conftest.er1 >conftest.err |
15778 | rm -f conftest.er1 | |
15779 | cat conftest.err >&5 | |
a848cd7e SC |
15780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15781 | (exit $ac_status); } && | |
3565d135 RR |
15782 | { ac_try='test -z "$ac_c_werror_flag" |
15783 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15785 | (eval $ac_try) 2>&5 | |
15786 | ac_status=$? | |
15787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15788 | (exit $ac_status); }; } && | |
15789 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15791 | (eval $ac_try) 2>&5 | |
15792 | ac_status=$? | |
15793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15794 | (exit $ac_status); }; }; then | |
15795 | ac_header_compiler=yes | |
15796 | else | |
15797 | echo "$as_me: failed program was:" >&5 | |
15798 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15799 | ||
15800 | ac_header_compiler=no | |
15801 | fi | |
ac1cb8d3 | 15802 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15803 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15804 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15805 | ||
15806 | # Is the header present? | |
15807 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15808 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15809 | cat >conftest.$ac_ext <<_ACEOF | |
15810 | /* confdefs.h. */ | |
15811 | _ACEOF | |
15812 | cat confdefs.h >>conftest.$ac_ext | |
15813 | cat >>conftest.$ac_ext <<_ACEOF | |
15814 | /* end confdefs.h. */ | |
15815 | #include <$ac_header> | |
15816 | _ACEOF | |
15817 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15818 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15819 | ac_status=$? | |
15820 | grep -v '^ *+' conftest.er1 >conftest.err | |
15821 | rm -f conftest.er1 | |
15822 | cat conftest.err >&5 | |
15823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15824 | (exit $ac_status); } >/dev/null; then | |
15825 | if test -s conftest.err; then | |
15826 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15827 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15828 | else |
15829 | ac_cpp_err= | |
15830 | fi | |
15831 | else | |
15832 | ac_cpp_err=yes | |
15833 | fi | |
15834 | if test -z "$ac_cpp_err"; then | |
15835 | ac_header_preproc=yes | |
15836 | else | |
15837 | echo "$as_me: failed program was:" >&5 | |
15838 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15839 | ||
15840 | ac_header_preproc=no | |
15841 | fi | |
15842 | rm -f conftest.err conftest.$ac_ext | |
15843 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15844 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15845 | ||
15846 | # So? What about this header? | |
ac1cb8d3 VS |
15847 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15848 | yes:no: ) | |
a848cd7e SC |
15849 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
15850 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
15851 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
15852 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15853 | ac_header_preproc=yes | |
a848cd7e | 15854 | ;; |
ac1cb8d3 | 15855 | no:yes:* ) |
a848cd7e SC |
15856 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
15857 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
15858 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
15859 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15860 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15861 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15862 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15863 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
15864 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
15865 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
15866 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
15867 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
15868 | ( |
15869 | cat <<\_ASBOX | |
ac1cb8d3 VS |
15870 | ## ----------------------------------------- ## |
15871 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
15872 | ## ----------------------------------------- ## | |
a848cd7e SC |
15873 | _ASBOX |
15874 | ) | | |
15875 | sed "s/^/$as_me: WARNING: /" >&2 | |
15876 | ;; | |
15877 | esac | |
15878 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15879 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15880 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15881 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15882 | else | |
ac1cb8d3 | 15883 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
15884 | fi |
15885 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15886 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15887 | ||
15888 | fi | |
15889 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15890 | cat >>confdefs.h <<_ACEOF | |
15891 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15892 | _ACEOF | |
15893 | ||
15894 | fi | |
15895 | ||
15896 | done | |
15897 | ||
15898 | ||
15899 | for ac_header in unistd.h | |
15900 | do | |
15901 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15902 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15903 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15904 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15905 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15906 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15907 | fi | |
15908 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15909 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15910 | else | |
15911 | # Is the header compilable? | |
15912 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
15913 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
15914 | cat >conftest.$ac_ext <<_ACEOF | |
15915 | /* confdefs.h. */ | |
15916 | _ACEOF | |
15917 | cat confdefs.h >>conftest.$ac_ext | |
15918 | cat >>conftest.$ac_ext <<_ACEOF | |
15919 | /* end confdefs.h. */ | |
15920 | $ac_includes_default | |
15921 | #include <$ac_header> | |
15922 | _ACEOF | |
15923 | rm -f conftest.$ac_objext | |
15924 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 15925 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 15926 | ac_status=$? |
ac1cb8d3 VS |
15927 | grep -v '^ *+' conftest.er1 >conftest.err |
15928 | rm -f conftest.er1 | |
15929 | cat conftest.err >&5 | |
a848cd7e SC |
15930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15931 | (exit $ac_status); } && | |
3565d135 RR |
15932 | { ac_try='test -z "$ac_c_werror_flag" |
15933 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
15934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15935 | (eval $ac_try) 2>&5 | |
15936 | ac_status=$? | |
15937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15938 | (exit $ac_status); }; } && | |
15939 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
15940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15941 | (eval $ac_try) 2>&5 | |
15942 | ac_status=$? | |
15943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15944 | (exit $ac_status); }; }; then | |
15945 | ac_header_compiler=yes | |
15946 | else | |
15947 | echo "$as_me: failed program was:" >&5 | |
15948 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15949 | ||
15950 | ac_header_compiler=no | |
15951 | fi | |
ac1cb8d3 | 15952 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15953 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15954 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
15955 | ||
15956 | # Is the header present? | |
15957 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
15958 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
15959 | cat >conftest.$ac_ext <<_ACEOF | |
15960 | /* confdefs.h. */ | |
15961 | _ACEOF | |
15962 | cat confdefs.h >>conftest.$ac_ext | |
15963 | cat >>conftest.$ac_ext <<_ACEOF | |
15964 | /* end confdefs.h. */ | |
15965 | #include <$ac_header> | |
15966 | _ACEOF | |
15967 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15968 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15969 | ac_status=$? | |
15970 | grep -v '^ *+' conftest.er1 >conftest.err | |
15971 | rm -f conftest.er1 | |
15972 | cat conftest.err >&5 | |
15973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15974 | (exit $ac_status); } >/dev/null; then | |
15975 | if test -s conftest.err; then | |
15976 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 15977 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
15978 | else |
15979 | ac_cpp_err= | |
15980 | fi | |
15981 | else | |
15982 | ac_cpp_err=yes | |
15983 | fi | |
15984 | if test -z "$ac_cpp_err"; then | |
15985 | ac_header_preproc=yes | |
15986 | else | |
15987 | echo "$as_me: failed program was:" >&5 | |
15988 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15989 | ||
15990 | ac_header_preproc=no | |
15991 | fi | |
15992 | rm -f conftest.err conftest.$ac_ext | |
15993 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
15994 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
15995 | ||
15996 | # So? What about this header? | |
ac1cb8d3 VS |
15997 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
15998 | yes:no: ) | |
a848cd7e SC |
15999 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16000 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16001 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16002 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16003 | ac_header_preproc=yes | |
a848cd7e | 16004 | ;; |
ac1cb8d3 | 16005 | no:yes:* ) |
a848cd7e SC |
16006 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16007 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16008 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16009 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16010 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16011 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16012 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16013 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16014 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16015 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16016 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16017 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16018 | ( |
16019 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16020 | ## ----------------------------------------- ## |
16021 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16022 | ## ----------------------------------------- ## | |
a848cd7e SC |
16023 | _ASBOX |
16024 | ) | | |
16025 | sed "s/^/$as_me: WARNING: /" >&2 | |
16026 | ;; | |
16027 | esac | |
16028 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16029 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16030 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16031 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16032 | else | |
ac1cb8d3 | 16033 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16034 | fi |
16035 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16036 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16037 | ||
16038 | fi | |
16039 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16040 | cat >>confdefs.h <<_ACEOF | |
16041 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16042 | _ACEOF | |
16043 | ||
16044 | fi | |
16045 | ||
16046 | done | |
16047 | ||
16048 | ||
16049 | for ac_header in wchar.h | |
16050 | do | |
16051 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16052 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16053 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16054 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16055 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16056 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16057 | fi | |
16058 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16059 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16060 | else | |
16061 | # Is the header compilable? | |
16062 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16063 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16064 | cat >conftest.$ac_ext <<_ACEOF | |
16065 | /* confdefs.h. */ | |
16066 | _ACEOF | |
16067 | cat confdefs.h >>conftest.$ac_ext | |
16068 | cat >>conftest.$ac_ext <<_ACEOF | |
16069 | /* end confdefs.h. */ | |
16070 | $ac_includes_default | |
16071 | #include <$ac_header> | |
16072 | _ACEOF | |
16073 | rm -f conftest.$ac_objext | |
16074 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16075 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16076 | ac_status=$? |
ac1cb8d3 VS |
16077 | grep -v '^ *+' conftest.er1 >conftest.err |
16078 | rm -f conftest.er1 | |
16079 | cat conftest.err >&5 | |
a848cd7e SC |
16080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16081 | (exit $ac_status); } && | |
3565d135 RR |
16082 | { ac_try='test -z "$ac_c_werror_flag" |
16083 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16085 | (eval $ac_try) 2>&5 | |
16086 | ac_status=$? | |
16087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16088 | (exit $ac_status); }; } && | |
16089 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16091 | (eval $ac_try) 2>&5 | |
16092 | ac_status=$? | |
16093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16094 | (exit $ac_status); }; }; then | |
16095 | ac_header_compiler=yes | |
16096 | else | |
16097 | echo "$as_me: failed program was:" >&5 | |
16098 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16099 | ||
16100 | ac_header_compiler=no | |
16101 | fi | |
ac1cb8d3 | 16102 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16103 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16104 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16105 | ||
16106 | # Is the header present? | |
16107 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16108 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16109 | cat >conftest.$ac_ext <<_ACEOF | |
16110 | /* confdefs.h. */ | |
16111 | _ACEOF | |
16112 | cat confdefs.h >>conftest.$ac_ext | |
16113 | cat >>conftest.$ac_ext <<_ACEOF | |
16114 | /* end confdefs.h. */ | |
16115 | #include <$ac_header> | |
16116 | _ACEOF | |
16117 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16118 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16119 | ac_status=$? | |
16120 | grep -v '^ *+' conftest.er1 >conftest.err | |
16121 | rm -f conftest.er1 | |
16122 | cat conftest.err >&5 | |
16123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16124 | (exit $ac_status); } >/dev/null; then | |
16125 | if test -s conftest.err; then | |
16126 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 16127 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
16128 | else |
16129 | ac_cpp_err= | |
16130 | fi | |
16131 | else | |
16132 | ac_cpp_err=yes | |
16133 | fi | |
16134 | if test -z "$ac_cpp_err"; then | |
16135 | ac_header_preproc=yes | |
16136 | else | |
16137 | echo "$as_me: failed program was:" >&5 | |
16138 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16139 | ||
16140 | ac_header_preproc=no | |
16141 | fi | |
16142 | rm -f conftest.err conftest.$ac_ext | |
16143 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16144 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16145 | ||
16146 | # So? What about this header? | |
ac1cb8d3 VS |
16147 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16148 | yes:no: ) | |
a848cd7e SC |
16149 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16150 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16151 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16152 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16153 | ac_header_preproc=yes | |
a848cd7e | 16154 | ;; |
ac1cb8d3 | 16155 | no:yes:* ) |
a848cd7e SC |
16156 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16157 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16158 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16159 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16160 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16161 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16162 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16163 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16164 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16165 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16166 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16167 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16168 | ( |
16169 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16170 | ## ----------------------------------------- ## |
16171 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16172 | ## ----------------------------------------- ## | |
a848cd7e SC |
16173 | _ASBOX |
16174 | ) | | |
16175 | sed "s/^/$as_me: WARNING: /" >&2 | |
16176 | ;; | |
16177 | esac | |
16178 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16179 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16180 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16181 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16182 | else | |
ac1cb8d3 | 16183 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16184 | fi |
16185 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16186 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16187 | ||
16188 | fi | |
16189 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16190 | cat >>confdefs.h <<_ACEOF | |
16191 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16192 | _ACEOF | |
16193 | ||
16194 | fi | |
16195 | ||
16196 | done | |
16197 | ||
16198 | ||
16199 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
16200 | ||
16201 | for ac_header in wcstr.h | |
16202 | do | |
16203 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16204 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16205 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16206 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16207 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16208 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16209 | fi | |
16210 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16211 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16212 | else | |
16213 | # Is the header compilable? | |
16214 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16215 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16216 | cat >conftest.$ac_ext <<_ACEOF | |
16217 | /* confdefs.h. */ | |
16218 | _ACEOF | |
16219 | cat confdefs.h >>conftest.$ac_ext | |
16220 | cat >>conftest.$ac_ext <<_ACEOF | |
16221 | /* end confdefs.h. */ | |
16222 | $ac_includes_default | |
16223 | #include <$ac_header> | |
16224 | _ACEOF | |
16225 | rm -f conftest.$ac_objext | |
16226 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16227 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16228 | ac_status=$? |
ac1cb8d3 VS |
16229 | grep -v '^ *+' conftest.er1 >conftest.err |
16230 | rm -f conftest.er1 | |
16231 | cat conftest.err >&5 | |
a848cd7e SC |
16232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16233 | (exit $ac_status); } && | |
3565d135 RR |
16234 | { ac_try='test -z "$ac_c_werror_flag" |
16235 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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); }; } && | |
16241 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16243 | (eval $ac_try) 2>&5 | |
16244 | ac_status=$? | |
16245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16246 | (exit $ac_status); }; }; then | |
16247 | ac_header_compiler=yes | |
16248 | else | |
16249 | echo "$as_me: failed program was:" >&5 | |
16250 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16251 | ||
16252 | ac_header_compiler=no | |
16253 | fi | |
ac1cb8d3 | 16254 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16255 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16256 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16257 | ||
16258 | # Is the header present? | |
16259 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16260 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16261 | cat >conftest.$ac_ext <<_ACEOF | |
16262 | /* confdefs.h. */ | |
16263 | _ACEOF | |
16264 | cat confdefs.h >>conftest.$ac_ext | |
16265 | cat >>conftest.$ac_ext <<_ACEOF | |
16266 | /* end confdefs.h. */ | |
16267 | #include <$ac_header> | |
16268 | _ACEOF | |
16269 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16270 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16271 | ac_status=$? | |
16272 | grep -v '^ *+' conftest.er1 >conftest.err | |
16273 | rm -f conftest.er1 | |
16274 | cat conftest.err >&5 | |
16275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16276 | (exit $ac_status); } >/dev/null; then | |
16277 | if test -s conftest.err; then | |
16278 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 16279 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
16280 | else |
16281 | ac_cpp_err= | |
16282 | fi | |
16283 | else | |
16284 | ac_cpp_err=yes | |
16285 | fi | |
16286 | if test -z "$ac_cpp_err"; then | |
16287 | ac_header_preproc=yes | |
16288 | else | |
16289 | echo "$as_me: failed program was:" >&5 | |
16290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16291 | ||
16292 | ac_header_preproc=no | |
16293 | fi | |
16294 | rm -f conftest.err conftest.$ac_ext | |
16295 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16296 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16297 | ||
16298 | # So? What about this header? | |
ac1cb8d3 VS |
16299 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16300 | yes:no: ) | |
a848cd7e SC |
16301 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16302 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16303 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16304 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16305 | ac_header_preproc=yes | |
a848cd7e | 16306 | ;; |
ac1cb8d3 | 16307 | no:yes:* ) |
a848cd7e SC |
16308 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16309 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16310 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16311 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16312 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16313 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16314 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16315 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16316 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16317 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16318 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16319 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16320 | ( |
16321 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16322 | ## ----------------------------------------- ## |
16323 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16324 | ## ----------------------------------------- ## | |
a848cd7e SC |
16325 | _ASBOX |
16326 | ) | | |
16327 | sed "s/^/$as_me: WARNING: /" >&2 | |
16328 | ;; | |
16329 | esac | |
16330 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16331 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16332 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16333 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16334 | else | |
ac1cb8d3 | 16335 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16336 | fi |
16337 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16338 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16339 | ||
16340 | fi | |
16341 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16342 | cat >>confdefs.h <<_ACEOF | |
16343 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16344 | _ACEOF | |
16345 | ||
16346 | fi | |
16347 | ||
16348 | done | |
16349 | ||
16350 | fi | |
16351 | ||
16352 | ||
16353 | for ac_header in fnmatch.h | |
16354 | do | |
16355 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16356 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16357 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16358 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16359 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16360 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16361 | fi | |
16362 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16363 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16364 | else | |
16365 | # Is the header compilable? | |
16366 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16367 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16368 | cat >conftest.$ac_ext <<_ACEOF | |
16369 | /* confdefs.h. */ | |
16370 | _ACEOF | |
16371 | cat confdefs.h >>conftest.$ac_ext | |
16372 | cat >>conftest.$ac_ext <<_ACEOF | |
16373 | /* end confdefs.h. */ | |
16374 | $ac_includes_default | |
16375 | #include <$ac_header> | |
16376 | _ACEOF | |
16377 | rm -f conftest.$ac_objext | |
16378 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16379 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16380 | ac_status=$? |
ac1cb8d3 VS |
16381 | grep -v '^ *+' conftest.er1 >conftest.err |
16382 | rm -f conftest.er1 | |
16383 | cat conftest.err >&5 | |
a848cd7e SC |
16384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16385 | (exit $ac_status); } && | |
3565d135 RR |
16386 | { ac_try='test -z "$ac_c_werror_flag" |
16387 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16389 | (eval $ac_try) 2>&5 | |
16390 | ac_status=$? | |
16391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16392 | (exit $ac_status); }; } && | |
16393 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16395 | (eval $ac_try) 2>&5 | |
16396 | ac_status=$? | |
16397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16398 | (exit $ac_status); }; }; then | |
16399 | ac_header_compiler=yes | |
16400 | else | |
16401 | echo "$as_me: failed program was:" >&5 | |
16402 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16403 | ||
16404 | ac_header_compiler=no | |
16405 | fi | |
ac1cb8d3 | 16406 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16407 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16408 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16409 | ||
16410 | # Is the header present? | |
16411 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16412 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16413 | cat >conftest.$ac_ext <<_ACEOF | |
16414 | /* confdefs.h. */ | |
16415 | _ACEOF | |
16416 | cat confdefs.h >>conftest.$ac_ext | |
16417 | cat >>conftest.$ac_ext <<_ACEOF | |
16418 | /* end confdefs.h. */ | |
16419 | #include <$ac_header> | |
16420 | _ACEOF | |
16421 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16422 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16423 | ac_status=$? | |
16424 | grep -v '^ *+' conftest.er1 >conftest.err | |
16425 | rm -f conftest.er1 | |
16426 | cat conftest.err >&5 | |
16427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16428 | (exit $ac_status); } >/dev/null; then | |
16429 | if test -s conftest.err; then | |
16430 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 16431 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
16432 | else |
16433 | ac_cpp_err= | |
16434 | fi | |
16435 | else | |
16436 | ac_cpp_err=yes | |
16437 | fi | |
16438 | if test -z "$ac_cpp_err"; then | |
16439 | ac_header_preproc=yes | |
16440 | else | |
16441 | echo "$as_me: failed program was:" >&5 | |
16442 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16443 | ||
16444 | ac_header_preproc=no | |
16445 | fi | |
16446 | rm -f conftest.err conftest.$ac_ext | |
16447 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16448 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16449 | ||
16450 | # So? What about this header? | |
ac1cb8d3 VS |
16451 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16452 | yes:no: ) | |
a848cd7e SC |
16453 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16454 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16455 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16456 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16457 | ac_header_preproc=yes | |
a848cd7e | 16458 | ;; |
ac1cb8d3 | 16459 | no:yes:* ) |
a848cd7e SC |
16460 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16461 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16462 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16463 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16464 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16465 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16466 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16467 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16468 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16469 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16470 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16471 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16472 | ( |
16473 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16474 | ## ----------------------------------------- ## |
16475 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16476 | ## ----------------------------------------- ## | |
a848cd7e SC |
16477 | _ASBOX |
16478 | ) | | |
16479 | sed "s/^/$as_me: WARNING: /" >&2 | |
16480 | ;; | |
16481 | esac | |
16482 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16483 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16484 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16485 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16486 | else | |
ac1cb8d3 | 16487 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16488 | fi |
16489 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16490 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16491 | ||
16492 | fi | |
16493 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16494 | cat >>confdefs.h <<_ACEOF | |
16495 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16496 | _ACEOF | |
16497 | ||
16498 | fi | |
16499 | ||
16500 | done | |
16501 | ||
16502 | ||
a848cd7e SC |
16503 | |
16504 | for ac_header in langinfo.h | |
16505 | do | |
16506 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
16507 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16508 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16509 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16510 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16511 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16512 | fi | |
16513 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16514 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16515 | else | |
16516 | # Is the header compilable? | |
16517 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
16518 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
16519 | cat >conftest.$ac_ext <<_ACEOF | |
16520 | /* confdefs.h. */ | |
16521 | _ACEOF | |
16522 | cat confdefs.h >>conftest.$ac_ext | |
16523 | cat >>conftest.$ac_ext <<_ACEOF | |
16524 | /* end confdefs.h. */ | |
16525 | $ac_includes_default | |
16526 | #include <$ac_header> | |
16527 | _ACEOF | |
16528 | rm -f conftest.$ac_objext | |
16529 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16530 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16531 | ac_status=$? |
ac1cb8d3 VS |
16532 | grep -v '^ *+' conftest.er1 >conftest.err |
16533 | rm -f conftest.er1 | |
16534 | cat conftest.err >&5 | |
a848cd7e SC |
16535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16536 | (exit $ac_status); } && | |
3565d135 RR |
16537 | { ac_try='test -z "$ac_c_werror_flag" |
16538 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16540 | (eval $ac_try) 2>&5 | |
16541 | ac_status=$? | |
16542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16543 | (exit $ac_status); }; } && | |
16544 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16546 | (eval $ac_try) 2>&5 | |
16547 | ac_status=$? | |
16548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16549 | (exit $ac_status); }; }; then | |
16550 | ac_header_compiler=yes | |
16551 | else | |
16552 | echo "$as_me: failed program was:" >&5 | |
16553 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16554 | ||
16555 | ac_header_compiler=no | |
16556 | fi | |
ac1cb8d3 | 16557 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16558 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16559 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
16560 | ||
16561 | # Is the header present? | |
16562 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
16563 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
16564 | cat >conftest.$ac_ext <<_ACEOF | |
16565 | /* confdefs.h. */ | |
16566 | _ACEOF | |
16567 | cat confdefs.h >>conftest.$ac_ext | |
16568 | cat >>conftest.$ac_ext <<_ACEOF | |
16569 | /* end confdefs.h. */ | |
16570 | #include <$ac_header> | |
16571 | _ACEOF | |
16572 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16573 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16574 | ac_status=$? | |
16575 | grep -v '^ *+' conftest.er1 >conftest.err | |
16576 | rm -f conftest.er1 | |
16577 | cat conftest.err >&5 | |
16578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16579 | (exit $ac_status); } >/dev/null; then | |
16580 | if test -s conftest.err; then | |
16581 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 16582 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
16583 | else |
16584 | ac_cpp_err= | |
16585 | fi | |
16586 | else | |
16587 | ac_cpp_err=yes | |
16588 | fi | |
16589 | if test -z "$ac_cpp_err"; then | |
16590 | ac_header_preproc=yes | |
16591 | else | |
16592 | echo "$as_me: failed program was:" >&5 | |
16593 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16594 | ||
16595 | ac_header_preproc=no | |
16596 | fi | |
16597 | rm -f conftest.err conftest.$ac_ext | |
16598 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
16599 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
16600 | ||
16601 | # So? What about this header? | |
ac1cb8d3 VS |
16602 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
16603 | yes:no: ) | |
a848cd7e SC |
16604 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
16605 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
16606 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
16607 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16608 | ac_header_preproc=yes | |
a848cd7e | 16609 | ;; |
ac1cb8d3 | 16610 | no:yes:* ) |
a848cd7e SC |
16611 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
16612 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
16613 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
16614 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16615 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16616 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16617 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16618 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
16619 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
16620 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
16621 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
16622 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
16623 | ( |
16624 | cat <<\_ASBOX | |
ac1cb8d3 VS |
16625 | ## ----------------------------------------- ## |
16626 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
16627 | ## ----------------------------------------- ## | |
a848cd7e SC |
16628 | _ASBOX |
16629 | ) | | |
16630 | sed "s/^/$as_me: WARNING: /" >&2 | |
16631 | ;; | |
16632 | esac | |
16633 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16634 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16635 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
16636 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16637 | else | |
ac1cb8d3 | 16638 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
16639 | fi |
16640 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
16641 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
16642 | ||
16643 | fi | |
16644 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16645 | cat >>confdefs.h <<_ACEOF | |
16646 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16647 | _ACEOF | |
16648 | ||
16649 | fi | |
16650 | ||
16651 | done | |
16652 | ||
16653 | ||
16654 | case "${host}" in | |
16655 | *-pc-os2_emx | *-pc-os2-emx ) | |
391a765e VS |
16656 | if test $ac_cv_header_langinfo_h = "yes" \ |
16657 | -a \( "$wx_cv_gccversion" = "EMX2" \ | |
16658 | -o "$wx_cv_gccversion" = "EMX3" \ | |
16659 | -o "$wx_cv_gccversion" = "Innotek5" \); then | |
a848cd7e SC |
16660 | LIBS="$LIBS -lintl" |
16661 | fi | |
16662 | ;; | |
16663 | esac | |
16664 | ||
a848cd7e SC |
16665 | |
16666 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
16667 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
16668 | if test "${ac_cv_c_const+set}" = set; then | |
16669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16670 | else | |
16671 | cat >conftest.$ac_ext <<_ACEOF | |
16672 | /* confdefs.h. */ | |
16673 | _ACEOF | |
16674 | cat confdefs.h >>conftest.$ac_ext | |
16675 | cat >>conftest.$ac_ext <<_ACEOF | |
16676 | /* end confdefs.h. */ | |
16677 | ||
16678 | int | |
16679 | main () | |
16680 | { | |
16681 | /* FIXME: Include the comments suggested by Paul. */ | |
16682 | #ifndef __cplusplus | |
16683 | /* Ultrix mips cc rejects this. */ | |
16684 | typedef int charset[2]; | |
16685 | const charset x; | |
16686 | /* SunOS 4.1.1 cc rejects this. */ | |
16687 | char const *const *ccp; | |
16688 | char **p; | |
16689 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
16690 | struct point {int x, y;}; | |
16691 | static struct point const zero = {0,0}; | |
16692 | /* AIX XL C 1.02.0.0 rejects this. | |
16693 | It does not let you subtract one const X* pointer from another in | |
16694 | an arm of an if-expression whose if-part is not a constant | |
16695 | expression */ | |
16696 | const char *g = "string"; | |
16697 | ccp = &g + (g ? g-g : 0); | |
16698 | /* HPUX 7.0 cc rejects these. */ | |
16699 | ++ccp; | |
16700 | p = (char**) ccp; | |
16701 | ccp = (char const *const *) p; | |
16702 | { /* SCO 3.2v4 cc rejects this. */ | |
16703 | char *t; | |
16704 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
16705 | ||
16706 | *t++ = 0; | |
16707 | } | |
16708 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
16709 | int x[] = {25, 17}; | |
16710 | const int *foo = &x[0]; | |
16711 | ++foo; | |
16712 | } | |
16713 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
16714 | typedef const int *iptr; | |
16715 | iptr p = 0; | |
16716 | ++p; | |
16717 | } | |
16718 | { /* AIX XL C 1.02.0.0 rejects this saying | |
16719 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
16720 | struct s { int j; const int *ap[3]; }; | |
16721 | struct s *b; b->j = 5; | |
16722 | } | |
16723 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
16724 | const int foo = 10; | |
16725 | } | |
16726 | #endif | |
16727 | ||
16728 | ; | |
16729 | return 0; | |
16730 | } | |
16731 | _ACEOF | |
16732 | rm -f conftest.$ac_objext | |
16733 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16734 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16735 | ac_status=$? |
ac1cb8d3 VS |
16736 | grep -v '^ *+' conftest.er1 >conftest.err |
16737 | rm -f conftest.er1 | |
16738 | cat conftest.err >&5 | |
a848cd7e SC |
16739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16740 | (exit $ac_status); } && | |
3565d135 RR |
16741 | { ac_try='test -z "$ac_c_werror_flag" |
16742 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16744 | (eval $ac_try) 2>&5 | |
16745 | ac_status=$? | |
16746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16747 | (exit $ac_status); }; } && | |
16748 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16750 | (eval $ac_try) 2>&5 | |
16751 | ac_status=$? | |
16752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16753 | (exit $ac_status); }; }; then | |
16754 | ac_cv_c_const=yes | |
16755 | else | |
16756 | echo "$as_me: failed program was:" >&5 | |
16757 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16758 | ||
16759 | ac_cv_c_const=no | |
16760 | fi | |
ac1cb8d3 | 16761 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16762 | fi |
16763 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
16764 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
16765 | if test $ac_cv_c_const = no; then | |
16766 | ||
16767 | cat >>confdefs.h <<\_ACEOF | |
16768 | #define const | |
16769 | _ACEOF | |
16770 | ||
16771 | fi | |
16772 | ||
16773 | echo "$as_me:$LINENO: checking for inline" >&5 | |
16774 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
16775 | if test "${ac_cv_c_inline+set}" = set; then | |
16776 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16777 | else | |
16778 | ac_cv_c_inline=no | |
16779 | for ac_kw in inline __inline__ __inline; do | |
16780 | cat >conftest.$ac_ext <<_ACEOF | |
16781 | /* confdefs.h. */ | |
16782 | _ACEOF | |
16783 | cat confdefs.h >>conftest.$ac_ext | |
16784 | cat >>conftest.$ac_ext <<_ACEOF | |
16785 | /* end confdefs.h. */ | |
16786 | #ifndef __cplusplus | |
16787 | typedef int foo_t; | |
16788 | static $ac_kw foo_t static_foo () {return 0; } | |
16789 | $ac_kw foo_t foo () {return 0; } | |
16790 | #endif | |
16791 | ||
16792 | _ACEOF | |
16793 | rm -f conftest.$ac_objext | |
16794 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16795 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16796 | ac_status=$? |
ac1cb8d3 VS |
16797 | grep -v '^ *+' conftest.er1 >conftest.err |
16798 | rm -f conftest.er1 | |
16799 | cat conftest.err >&5 | |
a848cd7e SC |
16800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16801 | (exit $ac_status); } && | |
3565d135 RR |
16802 | { ac_try='test -z "$ac_c_werror_flag" |
16803 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16805 | (eval $ac_try) 2>&5 | |
16806 | ac_status=$? | |
16807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16808 | (exit $ac_status); }; } && | |
16809 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16811 | (eval $ac_try) 2>&5 | |
16812 | ac_status=$? | |
16813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16814 | (exit $ac_status); }; }; then | |
16815 | ac_cv_c_inline=$ac_kw; break | |
16816 | else | |
16817 | echo "$as_me: failed program was:" >&5 | |
16818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16819 | ||
16820 | fi | |
ac1cb8d3 | 16821 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16822 | done |
16823 | ||
16824 | fi | |
16825 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
16826 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
ac1cb8d3 VS |
16827 | |
16828 | ||
a848cd7e SC |
16829 | case $ac_cv_c_inline in |
16830 | inline | yes) ;; | |
ac1cb8d3 VS |
16831 | *) |
16832 | case $ac_cv_c_inline in | |
16833 | no) ac_val=;; | |
16834 | *) ac_val=$ac_cv_c_inline;; | |
16835 | esac | |
16836 | cat >>confdefs.h <<_ACEOF | |
16837 | #ifndef __cplusplus | |
16838 | #define inline $ac_val | |
16839 | #endif | |
de59c161 | 16840 | _ACEOF |
ac1cb8d3 | 16841 | ;; |
a848cd7e SC |
16842 | esac |
16843 | ||
16844 | ||
16845 | echo "$as_me:$LINENO: checking for char" >&5 | |
16846 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
16847 | if test "${ac_cv_type_char+set}" = set; then | |
16848 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16849 | else | |
16850 | cat >conftest.$ac_ext <<_ACEOF | |
16851 | /* confdefs.h. */ | |
16852 | _ACEOF | |
16853 | cat confdefs.h >>conftest.$ac_ext | |
16854 | cat >>conftest.$ac_ext <<_ACEOF | |
16855 | /* end confdefs.h. */ | |
16856 | $ac_includes_default | |
16857 | int | |
16858 | main () | |
16859 | { | |
16860 | if ((char *) 0) | |
16861 | return 0; | |
16862 | if (sizeof (char)) | |
16863 | return 0; | |
16864 | ; | |
16865 | return 0; | |
16866 | } | |
16867 | _ACEOF | |
16868 | rm -f conftest.$ac_objext | |
16869 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16870 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16871 | ac_status=$? |
ac1cb8d3 VS |
16872 | grep -v '^ *+' conftest.er1 >conftest.err |
16873 | rm -f conftest.er1 | |
16874 | cat conftest.err >&5 | |
a848cd7e SC |
16875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16876 | (exit $ac_status); } && | |
3565d135 RR |
16877 | { ac_try='test -z "$ac_c_werror_flag" |
16878 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16880 | (eval $ac_try) 2>&5 | |
16881 | ac_status=$? | |
16882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16883 | (exit $ac_status); }; } && | |
16884 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16886 | (eval $ac_try) 2>&5 | |
16887 | ac_status=$? | |
16888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16889 | (exit $ac_status); }; }; then | |
16890 | ac_cv_type_char=yes | |
16891 | else | |
16892 | echo "$as_me: failed program was:" >&5 | |
16893 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16894 | ||
16895 | ac_cv_type_char=no | |
16896 | fi | |
ac1cb8d3 | 16897 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16898 | fi |
16899 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
16900 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
16901 | ||
16902 | echo "$as_me:$LINENO: checking size of char" >&5 | |
16903 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
16904 | if test "${ac_cv_sizeof_char+set}" = set; then | |
16905 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16906 | else | |
16907 | if test "$ac_cv_type_char" = yes; then | |
16908 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16909 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16910 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16911 | # This bug is HP SR number 8606223364. | |
16912 | if test "$cross_compiling" = yes; then | |
16913 | # Depending upon the size, compute the lo and hi bounds. | |
16914 | cat >conftest.$ac_ext <<_ACEOF | |
16915 | /* confdefs.h. */ | |
16916 | _ACEOF | |
16917 | cat confdefs.h >>conftest.$ac_ext | |
16918 | cat >>conftest.$ac_ext <<_ACEOF | |
16919 | /* end confdefs.h. */ | |
16920 | $ac_includes_default | |
16921 | int | |
16922 | main () | |
16923 | { | |
16924 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
16925 | test_array [0] = 0 | |
16926 | ||
16927 | ; | |
16928 | return 0; | |
16929 | } | |
16930 | _ACEOF | |
16931 | rm -f conftest.$ac_objext | |
16932 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16933 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16934 | ac_status=$? |
ac1cb8d3 VS |
16935 | grep -v '^ *+' conftest.er1 >conftest.err |
16936 | rm -f conftest.er1 | |
16937 | cat conftest.err >&5 | |
a848cd7e SC |
16938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16939 | (exit $ac_status); } && | |
3565d135 RR |
16940 | { ac_try='test -z "$ac_c_werror_flag" |
16941 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16943 | (eval $ac_try) 2>&5 | |
16944 | ac_status=$? | |
16945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16946 | (exit $ac_status); }; } && | |
16947 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16949 | (eval $ac_try) 2>&5 | |
16950 | ac_status=$? | |
16951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16952 | (exit $ac_status); }; }; then | |
16953 | ac_lo=0 ac_mid=0 | |
16954 | while :; do | |
16955 | cat >conftest.$ac_ext <<_ACEOF | |
16956 | /* confdefs.h. */ | |
16957 | _ACEOF | |
16958 | cat confdefs.h >>conftest.$ac_ext | |
16959 | cat >>conftest.$ac_ext <<_ACEOF | |
16960 | /* end confdefs.h. */ | |
16961 | $ac_includes_default | |
16962 | int | |
16963 | main () | |
16964 | { | |
16965 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
16966 | test_array [0] = 0 | |
16967 | ||
16968 | ; | |
16969 | return 0; | |
16970 | } | |
16971 | _ACEOF | |
16972 | rm -f conftest.$ac_objext | |
16973 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 16974 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 16975 | ac_status=$? |
ac1cb8d3 VS |
16976 | grep -v '^ *+' conftest.er1 >conftest.err |
16977 | rm -f conftest.er1 | |
16978 | cat conftest.err >&5 | |
a848cd7e SC |
16979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16980 | (exit $ac_status); } && | |
3565d135 RR |
16981 | { ac_try='test -z "$ac_c_werror_flag" |
16982 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
16983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16984 | (eval $ac_try) 2>&5 | |
16985 | ac_status=$? | |
16986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16987 | (exit $ac_status); }; } && | |
16988 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
16989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16990 | (eval $ac_try) 2>&5 | |
16991 | ac_status=$? | |
16992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16993 | (exit $ac_status); }; }; then | |
16994 | ac_hi=$ac_mid; break | |
16995 | else | |
16996 | echo "$as_me: failed program was:" >&5 | |
16997 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16998 | ||
16999 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17000 | if test $ac_lo -le $ac_mid; then |
17001 | ac_lo= ac_hi= | |
17002 | break | |
17003 | fi | |
17004 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17005 | fi |
ac1cb8d3 | 17006 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17007 | done |
17008 | else | |
17009 | echo "$as_me: failed program was:" >&5 | |
17010 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17011 | ||
17012 | cat >conftest.$ac_ext <<_ACEOF | |
17013 | /* confdefs.h. */ | |
17014 | _ACEOF | |
17015 | cat confdefs.h >>conftest.$ac_ext | |
17016 | cat >>conftest.$ac_ext <<_ACEOF | |
17017 | /* end confdefs.h. */ | |
17018 | $ac_includes_default | |
17019 | int | |
17020 | main () | |
17021 | { | |
17022 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
17023 | test_array [0] = 0 | |
17024 | ||
17025 | ; | |
17026 | return 0; | |
17027 | } | |
17028 | _ACEOF | |
17029 | rm -f conftest.$ac_objext | |
17030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17031 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17032 | ac_status=$? |
ac1cb8d3 VS |
17033 | grep -v '^ *+' conftest.er1 >conftest.err |
17034 | rm -f conftest.er1 | |
17035 | cat conftest.err >&5 | |
a848cd7e SC |
17036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17037 | (exit $ac_status); } && | |
3565d135 RR |
17038 | { ac_try='test -z "$ac_c_werror_flag" |
17039 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17041 | (eval $ac_try) 2>&5 | |
17042 | ac_status=$? | |
17043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17044 | (exit $ac_status); }; } && | |
17045 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17047 | (eval $ac_try) 2>&5 | |
17048 | ac_status=$? | |
17049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17050 | (exit $ac_status); }; }; then | |
17051 | ac_hi=-1 ac_mid=-1 | |
17052 | while :; do | |
17053 | cat >conftest.$ac_ext <<_ACEOF | |
17054 | /* confdefs.h. */ | |
17055 | _ACEOF | |
17056 | cat confdefs.h >>conftest.$ac_ext | |
17057 | cat >>conftest.$ac_ext <<_ACEOF | |
17058 | /* end confdefs.h. */ | |
17059 | $ac_includes_default | |
17060 | int | |
17061 | main () | |
17062 | { | |
17063 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
17064 | test_array [0] = 0 | |
17065 | ||
17066 | ; | |
17067 | return 0; | |
17068 | } | |
17069 | _ACEOF | |
17070 | rm -f conftest.$ac_objext | |
17071 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17072 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17073 | ac_status=$? |
ac1cb8d3 VS |
17074 | grep -v '^ *+' conftest.er1 >conftest.err |
17075 | rm -f conftest.er1 | |
17076 | cat conftest.err >&5 | |
a848cd7e SC |
17077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17078 | (exit $ac_status); } && | |
3565d135 RR |
17079 | { ac_try='test -z "$ac_c_werror_flag" |
17080 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17082 | (eval $ac_try) 2>&5 | |
17083 | ac_status=$? | |
17084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17085 | (exit $ac_status); }; } && | |
17086 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17088 | (eval $ac_try) 2>&5 | |
17089 | ac_status=$? | |
17090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17091 | (exit $ac_status); }; }; then | |
17092 | ac_lo=$ac_mid; break | |
17093 | else | |
17094 | echo "$as_me: failed program was:" >&5 | |
17095 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17096 | ||
17097 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17098 | if test $ac_mid -le $ac_hi; then |
17099 | ac_lo= ac_hi= | |
17100 | break | |
17101 | fi | |
17102 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17103 | fi |
ac1cb8d3 | 17104 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17105 | done |
17106 | else | |
17107 | echo "$as_me: failed program was:" >&5 | |
17108 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17109 | ||
17110 | ac_lo= ac_hi= | |
17111 | fi | |
ac1cb8d3 | 17112 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17113 | fi |
ac1cb8d3 | 17114 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17115 | # Binary search between lo and hi bounds. |
17116 | while test "x$ac_lo" != "x$ac_hi"; do | |
17117 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17118 | cat >conftest.$ac_ext <<_ACEOF | |
17119 | /* confdefs.h. */ | |
17120 | _ACEOF | |
17121 | cat confdefs.h >>conftest.$ac_ext | |
17122 | cat >>conftest.$ac_ext <<_ACEOF | |
17123 | /* end confdefs.h. */ | |
17124 | $ac_includes_default | |
17125 | int | |
17126 | main () | |
17127 | { | |
17128 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
17129 | test_array [0] = 0 | |
17130 | ||
17131 | ; | |
17132 | return 0; | |
17133 | } | |
17134 | _ACEOF | |
17135 | rm -f conftest.$ac_objext | |
17136 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17137 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17138 | ac_status=$? |
ac1cb8d3 VS |
17139 | grep -v '^ *+' conftest.er1 >conftest.err |
17140 | rm -f conftest.er1 | |
17141 | cat conftest.err >&5 | |
a848cd7e SC |
17142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17143 | (exit $ac_status); } && | |
3565d135 RR |
17144 | { ac_try='test -z "$ac_c_werror_flag" |
17145 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17147 | (eval $ac_try) 2>&5 | |
17148 | ac_status=$? | |
17149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17150 | (exit $ac_status); }; } && | |
17151 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17153 | (eval $ac_try) 2>&5 | |
17154 | ac_status=$? | |
17155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17156 | (exit $ac_status); }; }; then | |
17157 | ac_hi=$ac_mid | |
17158 | else | |
17159 | echo "$as_me: failed program was:" >&5 | |
17160 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17161 | ||
17162 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17163 | fi | |
ac1cb8d3 | 17164 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17165 | done |
17166 | case $ac_lo in | |
17167 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
17168 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
17169 | See \`config.log' for more details." >&5 | |
17170 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
17171 | See \`config.log' for more details." >&2;} | |
17172 | { (exit 1); exit 1; }; } ;; | |
17173 | esac | |
17174 | else | |
17175 | if test "$cross_compiling" = yes; then | |
3565d135 RR |
17176 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
17177 | See \`config.log' for more details." >&5 | |
17178 | echo "$as_me: error: cannot run test program while cross compiling | |
17179 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
17180 | { (exit 1); exit 1; }; } |
17181 | else | |
17182 | cat >conftest.$ac_ext <<_ACEOF | |
17183 | /* confdefs.h. */ | |
17184 | _ACEOF | |
17185 | cat confdefs.h >>conftest.$ac_ext | |
17186 | cat >>conftest.$ac_ext <<_ACEOF | |
17187 | /* end confdefs.h. */ | |
17188 | $ac_includes_default | |
17189 | long longval () { return (long) (sizeof (char)); } | |
17190 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
17191 | #include <stdio.h> | |
17192 | #include <stdlib.h> | |
17193 | int | |
17194 | main () | |
17195 | { | |
17196 | ||
17197 | FILE *f = fopen ("conftest.val", "w"); | |
17198 | if (! f) | |
17199 | exit (1); | |
17200 | if (((long) (sizeof (char))) < 0) | |
17201 | { | |
17202 | long i = longval (); | |
17203 | if (i != ((long) (sizeof (char)))) | |
17204 | exit (1); | |
17205 | fprintf (f, "%ld\n", i); | |
17206 | } | |
17207 | else | |
17208 | { | |
17209 | unsigned long i = ulongval (); | |
17210 | if (i != ((long) (sizeof (char)))) | |
17211 | exit (1); | |
17212 | fprintf (f, "%lu\n", i); | |
17213 | } | |
17214 | exit (ferror (f) || fclose (f) != 0); | |
17215 | ||
17216 | ; | |
17217 | return 0; | |
17218 | } | |
17219 | _ACEOF | |
17220 | rm -f conftest$ac_exeext | |
17221 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17222 | (eval $ac_link) 2>&5 | |
17223 | ac_status=$? | |
17224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17225 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17227 | (eval $ac_try) 2>&5 | |
17228 | ac_status=$? | |
17229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17230 | (exit $ac_status); }; }; then | |
17231 | ac_cv_sizeof_char=`cat conftest.val` | |
17232 | else | |
17233 | echo "$as_me: program exited with status $ac_status" >&5 | |
17234 | echo "$as_me: failed program was:" >&5 | |
17235 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17236 | ||
17237 | ( exit $ac_status ) | |
17238 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
17239 | See \`config.log' for more details." >&5 | |
17240 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
17241 | See \`config.log' for more details." >&2;} | |
17242 | { (exit 1); exit 1; }; } | |
17243 | fi | |
ac1cb8d3 | 17244 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17245 | fi |
17246 | fi | |
17247 | rm -f conftest.val | |
17248 | else | |
17249 | ac_cv_sizeof_char=0 | |
17250 | fi | |
17251 | fi | |
17252 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
17253 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
17254 | cat >>confdefs.h <<_ACEOF | |
17255 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
17256 | _ACEOF | |
17257 | ||
17258 | ||
17259 | echo "$as_me:$LINENO: checking for short" >&5 | |
17260 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
17261 | if test "${ac_cv_type_short+set}" = set; then | |
17262 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17263 | else | |
17264 | cat >conftest.$ac_ext <<_ACEOF | |
17265 | /* confdefs.h. */ | |
17266 | _ACEOF | |
17267 | cat confdefs.h >>conftest.$ac_ext | |
17268 | cat >>conftest.$ac_ext <<_ACEOF | |
17269 | /* end confdefs.h. */ | |
17270 | $ac_includes_default | |
17271 | int | |
17272 | main () | |
17273 | { | |
17274 | if ((short *) 0) | |
17275 | return 0; | |
17276 | if (sizeof (short)) | |
17277 | return 0; | |
17278 | ; | |
17279 | return 0; | |
17280 | } | |
17281 | _ACEOF | |
17282 | rm -f conftest.$ac_objext | |
17283 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17284 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17285 | ac_status=$? |
ac1cb8d3 VS |
17286 | grep -v '^ *+' conftest.er1 >conftest.err |
17287 | rm -f conftest.er1 | |
17288 | cat conftest.err >&5 | |
a848cd7e SC |
17289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17290 | (exit $ac_status); } && | |
3565d135 RR |
17291 | { ac_try='test -z "$ac_c_werror_flag" |
17292 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17294 | (eval $ac_try) 2>&5 | |
17295 | ac_status=$? | |
17296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17297 | (exit $ac_status); }; } && | |
17298 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17300 | (eval $ac_try) 2>&5 | |
17301 | ac_status=$? | |
17302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17303 | (exit $ac_status); }; }; then | |
17304 | ac_cv_type_short=yes | |
17305 | else | |
17306 | echo "$as_me: failed program was:" >&5 | |
17307 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17308 | ||
17309 | ac_cv_type_short=no | |
17310 | fi | |
ac1cb8d3 | 17311 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17312 | fi |
17313 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
17314 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
17315 | ||
17316 | echo "$as_me:$LINENO: checking size of short" >&5 | |
17317 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
17318 | if test "${ac_cv_sizeof_short+set}" = set; then | |
17319 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17320 | else | |
17321 | if test "$ac_cv_type_short" = yes; then | |
17322 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17323 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17324 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17325 | # This bug is HP SR number 8606223364. | |
17326 | if test "$cross_compiling" = yes; then | |
17327 | # Depending upon the size, compute the lo and hi bounds. | |
17328 | cat >conftest.$ac_ext <<_ACEOF | |
17329 | /* confdefs.h. */ | |
17330 | _ACEOF | |
17331 | cat confdefs.h >>conftest.$ac_ext | |
17332 | cat >>conftest.$ac_ext <<_ACEOF | |
17333 | /* end confdefs.h. */ | |
17334 | $ac_includes_default | |
17335 | int | |
17336 | main () | |
17337 | { | |
17338 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
17339 | test_array [0] = 0 | |
17340 | ||
17341 | ; | |
17342 | return 0; | |
17343 | } | |
17344 | _ACEOF | |
17345 | rm -f conftest.$ac_objext | |
17346 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17347 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17348 | ac_status=$? |
ac1cb8d3 VS |
17349 | grep -v '^ *+' conftest.er1 >conftest.err |
17350 | rm -f conftest.er1 | |
17351 | cat conftest.err >&5 | |
a848cd7e SC |
17352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17353 | (exit $ac_status); } && | |
3565d135 RR |
17354 | { ac_try='test -z "$ac_c_werror_flag" |
17355 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17357 | (eval $ac_try) 2>&5 | |
17358 | ac_status=$? | |
17359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17360 | (exit $ac_status); }; } && | |
17361 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17363 | (eval $ac_try) 2>&5 | |
17364 | ac_status=$? | |
17365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17366 | (exit $ac_status); }; }; then | |
17367 | ac_lo=0 ac_mid=0 | |
17368 | while :; do | |
17369 | cat >conftest.$ac_ext <<_ACEOF | |
17370 | /* confdefs.h. */ | |
17371 | _ACEOF | |
17372 | cat confdefs.h >>conftest.$ac_ext | |
17373 | cat >>conftest.$ac_ext <<_ACEOF | |
17374 | /* end confdefs.h. */ | |
17375 | $ac_includes_default | |
17376 | int | |
17377 | main () | |
17378 | { | |
17379 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
17380 | test_array [0] = 0 | |
17381 | ||
17382 | ; | |
17383 | return 0; | |
17384 | } | |
17385 | _ACEOF | |
17386 | rm -f conftest.$ac_objext | |
17387 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17388 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17389 | ac_status=$? |
ac1cb8d3 VS |
17390 | grep -v '^ *+' conftest.er1 >conftest.err |
17391 | rm -f conftest.er1 | |
17392 | cat conftest.err >&5 | |
a848cd7e SC |
17393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17394 | (exit $ac_status); } && | |
3565d135 RR |
17395 | { ac_try='test -z "$ac_c_werror_flag" |
17396 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17398 | (eval $ac_try) 2>&5 | |
17399 | ac_status=$? | |
17400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17401 | (exit $ac_status); }; } && | |
17402 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17404 | (eval $ac_try) 2>&5 | |
17405 | ac_status=$? | |
17406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17407 | (exit $ac_status); }; }; then | |
17408 | ac_hi=$ac_mid; break | |
17409 | else | |
17410 | echo "$as_me: failed program was:" >&5 | |
17411 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17412 | ||
17413 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17414 | if test $ac_lo -le $ac_mid; then |
17415 | ac_lo= ac_hi= | |
17416 | break | |
17417 | fi | |
17418 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17419 | fi |
ac1cb8d3 | 17420 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17421 | done |
17422 | else | |
17423 | echo "$as_me: failed program was:" >&5 | |
17424 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17425 | ||
17426 | cat >conftest.$ac_ext <<_ACEOF | |
17427 | /* confdefs.h. */ | |
17428 | _ACEOF | |
17429 | cat confdefs.h >>conftest.$ac_ext | |
17430 | cat >>conftest.$ac_ext <<_ACEOF | |
17431 | /* end confdefs.h. */ | |
17432 | $ac_includes_default | |
17433 | int | |
17434 | main () | |
17435 | { | |
17436 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
17437 | test_array [0] = 0 | |
17438 | ||
17439 | ; | |
17440 | return 0; | |
17441 | } | |
17442 | _ACEOF | |
17443 | rm -f conftest.$ac_objext | |
17444 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17445 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17446 | ac_status=$? |
ac1cb8d3 VS |
17447 | grep -v '^ *+' conftest.er1 >conftest.err |
17448 | rm -f conftest.er1 | |
17449 | cat conftest.err >&5 | |
a848cd7e SC |
17450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17451 | (exit $ac_status); } && | |
3565d135 RR |
17452 | { ac_try='test -z "$ac_c_werror_flag" |
17453 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17455 | (eval $ac_try) 2>&5 | |
17456 | ac_status=$? | |
17457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17458 | (exit $ac_status); }; } && | |
17459 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17461 | (eval $ac_try) 2>&5 | |
17462 | ac_status=$? | |
17463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17464 | (exit $ac_status); }; }; then | |
17465 | ac_hi=-1 ac_mid=-1 | |
17466 | while :; do | |
17467 | cat >conftest.$ac_ext <<_ACEOF | |
17468 | /* confdefs.h. */ | |
17469 | _ACEOF | |
17470 | cat confdefs.h >>conftest.$ac_ext | |
17471 | cat >>conftest.$ac_ext <<_ACEOF | |
17472 | /* end confdefs.h. */ | |
17473 | $ac_includes_default | |
17474 | int | |
17475 | main () | |
17476 | { | |
17477 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
17478 | test_array [0] = 0 | |
17479 | ||
17480 | ; | |
17481 | return 0; | |
17482 | } | |
17483 | _ACEOF | |
17484 | rm -f conftest.$ac_objext | |
17485 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17486 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17487 | ac_status=$? |
ac1cb8d3 VS |
17488 | grep -v '^ *+' conftest.er1 >conftest.err |
17489 | rm -f conftest.er1 | |
17490 | cat conftest.err >&5 | |
a848cd7e SC |
17491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17492 | (exit $ac_status); } && | |
3565d135 RR |
17493 | { ac_try='test -z "$ac_c_werror_flag" |
17494 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17496 | (eval $ac_try) 2>&5 | |
17497 | ac_status=$? | |
17498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17499 | (exit $ac_status); }; } && | |
17500 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17502 | (eval $ac_try) 2>&5 | |
17503 | ac_status=$? | |
17504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17505 | (exit $ac_status); }; }; then | |
17506 | ac_lo=$ac_mid; break | |
17507 | else | |
17508 | echo "$as_me: failed program was:" >&5 | |
17509 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17510 | ||
17511 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17512 | if test $ac_mid -le $ac_hi; then |
17513 | ac_lo= ac_hi= | |
17514 | break | |
17515 | fi | |
17516 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17517 | fi |
ac1cb8d3 | 17518 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17519 | done |
17520 | else | |
17521 | echo "$as_me: failed program was:" >&5 | |
17522 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17523 | ||
17524 | ac_lo= ac_hi= | |
17525 | fi | |
ac1cb8d3 | 17526 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17527 | fi |
ac1cb8d3 | 17528 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17529 | # Binary search between lo and hi bounds. |
17530 | while test "x$ac_lo" != "x$ac_hi"; do | |
17531 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17532 | cat >conftest.$ac_ext <<_ACEOF | |
17533 | /* confdefs.h. */ | |
17534 | _ACEOF | |
17535 | cat confdefs.h >>conftest.$ac_ext | |
17536 | cat >>conftest.$ac_ext <<_ACEOF | |
17537 | /* end confdefs.h. */ | |
17538 | $ac_includes_default | |
17539 | int | |
17540 | main () | |
17541 | { | |
17542 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
17543 | test_array [0] = 0 | |
17544 | ||
17545 | ; | |
17546 | return 0; | |
17547 | } | |
17548 | _ACEOF | |
17549 | rm -f conftest.$ac_objext | |
17550 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17551 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17552 | ac_status=$? |
ac1cb8d3 VS |
17553 | grep -v '^ *+' conftest.er1 >conftest.err |
17554 | rm -f conftest.er1 | |
17555 | cat conftest.err >&5 | |
a848cd7e SC |
17556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17557 | (exit $ac_status); } && | |
3565d135 RR |
17558 | { ac_try='test -z "$ac_c_werror_flag" |
17559 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17561 | (eval $ac_try) 2>&5 | |
17562 | ac_status=$? | |
17563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17564 | (exit $ac_status); }; } && | |
17565 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17567 | (eval $ac_try) 2>&5 | |
17568 | ac_status=$? | |
17569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17570 | (exit $ac_status); }; }; then | |
17571 | ac_hi=$ac_mid | |
17572 | else | |
17573 | echo "$as_me: failed program was:" >&5 | |
17574 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17575 | ||
17576 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17577 | fi | |
ac1cb8d3 | 17578 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17579 | done |
17580 | case $ac_lo in | |
17581 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
17582 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
17583 | See \`config.log' for more details." >&5 | |
17584 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
17585 | See \`config.log' for more details." >&2;} | |
17586 | { (exit 1); exit 1; }; } ;; | |
17587 | esac | |
17588 | else | |
17589 | if test "$cross_compiling" = yes; then | |
3565d135 RR |
17590 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
17591 | See \`config.log' for more details." >&5 | |
17592 | echo "$as_me: error: cannot run test program while cross compiling | |
17593 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
17594 | { (exit 1); exit 1; }; } |
17595 | else | |
17596 | cat >conftest.$ac_ext <<_ACEOF | |
17597 | /* confdefs.h. */ | |
17598 | _ACEOF | |
17599 | cat confdefs.h >>conftest.$ac_ext | |
17600 | cat >>conftest.$ac_ext <<_ACEOF | |
17601 | /* end confdefs.h. */ | |
17602 | $ac_includes_default | |
17603 | long longval () { return (long) (sizeof (short)); } | |
17604 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
17605 | #include <stdio.h> | |
17606 | #include <stdlib.h> | |
17607 | int | |
17608 | main () | |
17609 | { | |
17610 | ||
17611 | FILE *f = fopen ("conftest.val", "w"); | |
17612 | if (! f) | |
17613 | exit (1); | |
17614 | if (((long) (sizeof (short))) < 0) | |
17615 | { | |
17616 | long i = longval (); | |
17617 | if (i != ((long) (sizeof (short)))) | |
17618 | exit (1); | |
17619 | fprintf (f, "%ld\n", i); | |
17620 | } | |
17621 | else | |
17622 | { | |
17623 | unsigned long i = ulongval (); | |
17624 | if (i != ((long) (sizeof (short)))) | |
17625 | exit (1); | |
17626 | fprintf (f, "%lu\n", i); | |
17627 | } | |
17628 | exit (ferror (f) || fclose (f) != 0); | |
17629 | ||
17630 | ; | |
17631 | return 0; | |
17632 | } | |
17633 | _ACEOF | |
17634 | rm -f conftest$ac_exeext | |
17635 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17636 | (eval $ac_link) 2>&5 | |
17637 | ac_status=$? | |
17638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17639 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17641 | (eval $ac_try) 2>&5 | |
17642 | ac_status=$? | |
17643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17644 | (exit $ac_status); }; }; then | |
17645 | ac_cv_sizeof_short=`cat conftest.val` | |
17646 | else | |
17647 | echo "$as_me: program exited with status $ac_status" >&5 | |
17648 | echo "$as_me: failed program was:" >&5 | |
17649 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17650 | ||
17651 | ( exit $ac_status ) | |
17652 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
17653 | See \`config.log' for more details." >&5 | |
17654 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
17655 | See \`config.log' for more details." >&2;} | |
17656 | { (exit 1); exit 1; }; } | |
17657 | fi | |
ac1cb8d3 | 17658 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17659 | fi |
17660 | fi | |
17661 | rm -f conftest.val | |
17662 | else | |
17663 | ac_cv_sizeof_short=0 | |
17664 | fi | |
17665 | fi | |
17666 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
17667 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
17668 | cat >>confdefs.h <<_ACEOF | |
17669 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
17670 | _ACEOF | |
17671 | ||
17672 | ||
17673 | echo "$as_me:$LINENO: checking for void *" >&5 | |
17674 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
17675 | if test "${ac_cv_type_void_p+set}" = set; then | |
17676 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17677 | else | |
17678 | cat >conftest.$ac_ext <<_ACEOF | |
17679 | /* confdefs.h. */ | |
17680 | _ACEOF | |
17681 | cat confdefs.h >>conftest.$ac_ext | |
17682 | cat >>conftest.$ac_ext <<_ACEOF | |
17683 | /* end confdefs.h. */ | |
17684 | $ac_includes_default | |
17685 | int | |
17686 | main () | |
17687 | { | |
17688 | if ((void * *) 0) | |
17689 | return 0; | |
17690 | if (sizeof (void *)) | |
17691 | return 0; | |
17692 | ; | |
17693 | return 0; | |
17694 | } | |
17695 | _ACEOF | |
17696 | rm -f conftest.$ac_objext | |
17697 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17698 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17699 | ac_status=$? |
ac1cb8d3 VS |
17700 | grep -v '^ *+' conftest.er1 >conftest.err |
17701 | rm -f conftest.er1 | |
17702 | cat conftest.err >&5 | |
a848cd7e SC |
17703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17704 | (exit $ac_status); } && | |
3565d135 RR |
17705 | { ac_try='test -z "$ac_c_werror_flag" |
17706 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17708 | (eval $ac_try) 2>&5 | |
17709 | ac_status=$? | |
17710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17711 | (exit $ac_status); }; } && | |
17712 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17714 | (eval $ac_try) 2>&5 | |
17715 | ac_status=$? | |
17716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17717 | (exit $ac_status); }; }; then | |
17718 | ac_cv_type_void_p=yes | |
17719 | else | |
17720 | echo "$as_me: failed program was:" >&5 | |
17721 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17722 | ||
17723 | ac_cv_type_void_p=no | |
17724 | fi | |
ac1cb8d3 | 17725 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17726 | fi |
17727 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
17728 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
17729 | ||
17730 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
17731 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
17732 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
17733 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17734 | else | |
17735 | if test "$ac_cv_type_void_p" = yes; then | |
17736 | # The cast to unsigned long works around a bug in the HP C Compiler | |
17737 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
17738 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
17739 | # This bug is HP SR number 8606223364. | |
17740 | if test "$cross_compiling" = yes; then | |
17741 | # Depending upon the size, compute the lo and hi bounds. | |
17742 | cat >conftest.$ac_ext <<_ACEOF | |
17743 | /* confdefs.h. */ | |
17744 | _ACEOF | |
17745 | cat confdefs.h >>conftest.$ac_ext | |
17746 | cat >>conftest.$ac_ext <<_ACEOF | |
17747 | /* end confdefs.h. */ | |
17748 | $ac_includes_default | |
17749 | int | |
17750 | main () | |
17751 | { | |
17752 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
17753 | test_array [0] = 0 | |
17754 | ||
17755 | ; | |
17756 | return 0; | |
17757 | } | |
17758 | _ACEOF | |
17759 | rm -f conftest.$ac_objext | |
17760 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17761 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17762 | ac_status=$? |
ac1cb8d3 VS |
17763 | grep -v '^ *+' conftest.er1 >conftest.err |
17764 | rm -f conftest.er1 | |
17765 | cat conftest.err >&5 | |
a848cd7e SC |
17766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17767 | (exit $ac_status); } && | |
3565d135 RR |
17768 | { ac_try='test -z "$ac_c_werror_flag" |
17769 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17771 | (eval $ac_try) 2>&5 | |
17772 | ac_status=$? | |
17773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17774 | (exit $ac_status); }; } && | |
17775 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17777 | (eval $ac_try) 2>&5 | |
17778 | ac_status=$? | |
17779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17780 | (exit $ac_status); }; }; then | |
17781 | ac_lo=0 ac_mid=0 | |
17782 | while :; do | |
17783 | cat >conftest.$ac_ext <<_ACEOF | |
17784 | /* confdefs.h. */ | |
17785 | _ACEOF | |
17786 | cat confdefs.h >>conftest.$ac_ext | |
17787 | cat >>conftest.$ac_ext <<_ACEOF | |
17788 | /* end confdefs.h. */ | |
17789 | $ac_includes_default | |
17790 | int | |
17791 | main () | |
17792 | { | |
17793 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
17794 | test_array [0] = 0 | |
17795 | ||
17796 | ; | |
17797 | return 0; | |
17798 | } | |
17799 | _ACEOF | |
17800 | rm -f conftest.$ac_objext | |
17801 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17802 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17803 | ac_status=$? |
ac1cb8d3 VS |
17804 | grep -v '^ *+' conftest.er1 >conftest.err |
17805 | rm -f conftest.er1 | |
17806 | cat conftest.err >&5 | |
a848cd7e SC |
17807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17808 | (exit $ac_status); } && | |
3565d135 RR |
17809 | { ac_try='test -z "$ac_c_werror_flag" |
17810 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17812 | (eval $ac_try) 2>&5 | |
17813 | ac_status=$? | |
17814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17815 | (exit $ac_status); }; } && | |
17816 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17818 | (eval $ac_try) 2>&5 | |
17819 | ac_status=$? | |
17820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17821 | (exit $ac_status); }; }; then | |
17822 | ac_hi=$ac_mid; break | |
17823 | else | |
17824 | echo "$as_me: failed program was:" >&5 | |
17825 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17826 | ||
17827 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
17828 | if test $ac_lo -le $ac_mid; then |
17829 | ac_lo= ac_hi= | |
17830 | break | |
17831 | fi | |
17832 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17833 | fi |
ac1cb8d3 | 17834 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17835 | done |
17836 | else | |
17837 | echo "$as_me: failed program was:" >&5 | |
17838 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17839 | ||
17840 | cat >conftest.$ac_ext <<_ACEOF | |
17841 | /* confdefs.h. */ | |
17842 | _ACEOF | |
17843 | cat confdefs.h >>conftest.$ac_ext | |
17844 | cat >>conftest.$ac_ext <<_ACEOF | |
17845 | /* end confdefs.h. */ | |
17846 | $ac_includes_default | |
17847 | int | |
17848 | main () | |
17849 | { | |
17850 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
17851 | test_array [0] = 0 | |
17852 | ||
17853 | ; | |
17854 | return 0; | |
17855 | } | |
17856 | _ACEOF | |
17857 | rm -f conftest.$ac_objext | |
17858 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17859 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17860 | ac_status=$? |
ac1cb8d3 VS |
17861 | grep -v '^ *+' conftest.er1 >conftest.err |
17862 | rm -f conftest.er1 | |
17863 | cat conftest.err >&5 | |
a848cd7e SC |
17864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17865 | (exit $ac_status); } && | |
3565d135 RR |
17866 | { ac_try='test -z "$ac_c_werror_flag" |
17867 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17869 | (eval $ac_try) 2>&5 | |
17870 | ac_status=$? | |
17871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17872 | (exit $ac_status); }; } && | |
17873 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17875 | (eval $ac_try) 2>&5 | |
17876 | ac_status=$? | |
17877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17878 | (exit $ac_status); }; }; then | |
17879 | ac_hi=-1 ac_mid=-1 | |
17880 | while :; do | |
17881 | cat >conftest.$ac_ext <<_ACEOF | |
17882 | /* confdefs.h. */ | |
17883 | _ACEOF | |
17884 | cat confdefs.h >>conftest.$ac_ext | |
17885 | cat >>conftest.$ac_ext <<_ACEOF | |
17886 | /* end confdefs.h. */ | |
17887 | $ac_includes_default | |
17888 | int | |
17889 | main () | |
17890 | { | |
17891 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
17892 | test_array [0] = 0 | |
17893 | ||
17894 | ; | |
17895 | return 0; | |
17896 | } | |
17897 | _ACEOF | |
17898 | rm -f conftest.$ac_objext | |
17899 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17900 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17901 | ac_status=$? |
ac1cb8d3 VS |
17902 | grep -v '^ *+' conftest.er1 >conftest.err |
17903 | rm -f conftest.er1 | |
17904 | cat conftest.err >&5 | |
a848cd7e SC |
17905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17906 | (exit $ac_status); } && | |
3565d135 RR |
17907 | { ac_try='test -z "$ac_c_werror_flag" |
17908 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17910 | (eval $ac_try) 2>&5 | |
17911 | ac_status=$? | |
17912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17913 | (exit $ac_status); }; } && | |
17914 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17916 | (eval $ac_try) 2>&5 | |
17917 | ac_status=$? | |
17918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17919 | (exit $ac_status); }; }; then | |
17920 | ac_lo=$ac_mid; break | |
17921 | else | |
17922 | echo "$as_me: failed program was:" >&5 | |
17923 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17924 | ||
17925 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
17926 | if test $ac_mid -le $ac_hi; then |
17927 | ac_lo= ac_hi= | |
17928 | break | |
17929 | fi | |
17930 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17931 | fi |
ac1cb8d3 | 17932 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17933 | done |
17934 | else | |
17935 | echo "$as_me: failed program was:" >&5 | |
17936 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17937 | ||
17938 | ac_lo= ac_hi= | |
17939 | fi | |
ac1cb8d3 | 17940 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17941 | fi |
ac1cb8d3 | 17942 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17943 | # Binary search between lo and hi bounds. |
17944 | while test "x$ac_lo" != "x$ac_hi"; do | |
17945 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17946 | cat >conftest.$ac_ext <<_ACEOF | |
17947 | /* confdefs.h. */ | |
17948 | _ACEOF | |
17949 | cat confdefs.h >>conftest.$ac_ext | |
17950 | cat >>conftest.$ac_ext <<_ACEOF | |
17951 | /* end confdefs.h. */ | |
17952 | $ac_includes_default | |
17953 | int | |
17954 | main () | |
17955 | { | |
17956 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
17957 | test_array [0] = 0 | |
17958 | ||
17959 | ; | |
17960 | return 0; | |
17961 | } | |
17962 | _ACEOF | |
17963 | rm -f conftest.$ac_objext | |
17964 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 17965 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 17966 | ac_status=$? |
ac1cb8d3 VS |
17967 | grep -v '^ *+' conftest.er1 >conftest.err |
17968 | rm -f conftest.er1 | |
17969 | cat conftest.err >&5 | |
a848cd7e SC |
17970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17971 | (exit $ac_status); } && | |
3565d135 RR |
17972 | { ac_try='test -z "$ac_c_werror_flag" |
17973 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
17974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17975 | (eval $ac_try) 2>&5 | |
17976 | ac_status=$? | |
17977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17978 | (exit $ac_status); }; } && | |
17979 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
17980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17981 | (eval $ac_try) 2>&5 | |
17982 | ac_status=$? | |
17983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17984 | (exit $ac_status); }; }; then | |
17985 | ac_hi=$ac_mid | |
17986 | else | |
17987 | echo "$as_me: failed program was:" >&5 | |
17988 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17989 | ||
17990 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17991 | fi | |
ac1cb8d3 | 17992 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17993 | done |
17994 | case $ac_lo in | |
17995 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
17996 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
17997 | See \`config.log' for more details." >&5 | |
17998 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
17999 | See \`config.log' for more details." >&2;} | |
18000 | { (exit 1); exit 1; }; } ;; | |
18001 | esac | |
18002 | else | |
18003 | if test "$cross_compiling" = yes; then | |
3565d135 RR |
18004 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
18005 | See \`config.log' for more details." >&5 | |
18006 | echo "$as_me: error: cannot run test program while cross compiling | |
18007 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
18008 | { (exit 1); exit 1; }; } |
18009 | else | |
18010 | cat >conftest.$ac_ext <<_ACEOF | |
18011 | /* confdefs.h. */ | |
18012 | _ACEOF | |
18013 | cat confdefs.h >>conftest.$ac_ext | |
18014 | cat >>conftest.$ac_ext <<_ACEOF | |
18015 | /* end confdefs.h. */ | |
18016 | $ac_includes_default | |
18017 | long longval () { return (long) (sizeof (void *)); } | |
18018 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
18019 | #include <stdio.h> | |
18020 | #include <stdlib.h> | |
18021 | int | |
18022 | main () | |
18023 | { | |
18024 | ||
18025 | FILE *f = fopen ("conftest.val", "w"); | |
18026 | if (! f) | |
18027 | exit (1); | |
18028 | if (((long) (sizeof (void *))) < 0) | |
18029 | { | |
18030 | long i = longval (); | |
18031 | if (i != ((long) (sizeof (void *)))) | |
18032 | exit (1); | |
18033 | fprintf (f, "%ld\n", i); | |
18034 | } | |
18035 | else | |
18036 | { | |
18037 | unsigned long i = ulongval (); | |
18038 | if (i != ((long) (sizeof (void *)))) | |
18039 | exit (1); | |
18040 | fprintf (f, "%lu\n", i); | |
18041 | } | |
18042 | exit (ferror (f) || fclose (f) != 0); | |
18043 | ||
18044 | ; | |
18045 | return 0; | |
18046 | } | |
18047 | _ACEOF | |
18048 | rm -f conftest$ac_exeext | |
18049 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18050 | (eval $ac_link) 2>&5 | |
18051 | ac_status=$? | |
18052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18053 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18055 | (eval $ac_try) 2>&5 | |
18056 | ac_status=$? | |
18057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18058 | (exit $ac_status); }; }; then | |
18059 | ac_cv_sizeof_void_p=`cat conftest.val` | |
18060 | else | |
18061 | echo "$as_me: program exited with status $ac_status" >&5 | |
18062 | echo "$as_me: failed program was:" >&5 | |
18063 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18064 | ||
18065 | ( exit $ac_status ) | |
18066 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
18067 | See \`config.log' for more details." >&5 | |
18068 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
18069 | See \`config.log' for more details." >&2;} | |
18070 | { (exit 1); exit 1; }; } | |
18071 | fi | |
ac1cb8d3 | 18072 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18073 | fi |
18074 | fi | |
18075 | rm -f conftest.val | |
18076 | else | |
18077 | ac_cv_sizeof_void_p=0 | |
18078 | fi | |
18079 | fi | |
18080 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
18081 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
18082 | cat >>confdefs.h <<_ACEOF | |
18083 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
18084 | _ACEOF | |
18085 | ||
18086 | ||
18087 | echo "$as_me:$LINENO: checking for int" >&5 | |
18088 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
18089 | if test "${ac_cv_type_int+set}" = set; then | |
18090 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18091 | else | |
18092 | cat >conftest.$ac_ext <<_ACEOF | |
18093 | /* confdefs.h. */ | |
18094 | _ACEOF | |
18095 | cat confdefs.h >>conftest.$ac_ext | |
18096 | cat >>conftest.$ac_ext <<_ACEOF | |
18097 | /* end confdefs.h. */ | |
18098 | $ac_includes_default | |
18099 | int | |
18100 | main () | |
18101 | { | |
18102 | if ((int *) 0) | |
18103 | return 0; | |
18104 | if (sizeof (int)) | |
18105 | return 0; | |
18106 | ; | |
18107 | return 0; | |
18108 | } | |
18109 | _ACEOF | |
18110 | rm -f conftest.$ac_objext | |
18111 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18112 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18113 | ac_status=$? |
ac1cb8d3 VS |
18114 | grep -v '^ *+' conftest.er1 >conftest.err |
18115 | rm -f conftest.er1 | |
18116 | cat conftest.err >&5 | |
a848cd7e SC |
18117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18118 | (exit $ac_status); } && | |
3565d135 RR |
18119 | { ac_try='test -z "$ac_c_werror_flag" |
18120 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18122 | (eval $ac_try) 2>&5 | |
18123 | ac_status=$? | |
18124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18125 | (exit $ac_status); }; } && | |
18126 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18128 | (eval $ac_try) 2>&5 | |
18129 | ac_status=$? | |
18130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18131 | (exit $ac_status); }; }; then | |
18132 | ac_cv_type_int=yes | |
18133 | else | |
18134 | echo "$as_me: failed program was:" >&5 | |
18135 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18136 | ||
18137 | ac_cv_type_int=no | |
18138 | fi | |
ac1cb8d3 | 18139 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18140 | fi |
18141 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
18142 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
18143 | ||
18144 | echo "$as_me:$LINENO: checking size of int" >&5 | |
18145 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
18146 | if test "${ac_cv_sizeof_int+set}" = set; then | |
18147 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18148 | else | |
18149 | if test "$ac_cv_type_int" = yes; then | |
18150 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18151 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18152 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18153 | # This bug is HP SR number 8606223364. | |
18154 | if test "$cross_compiling" = yes; then | |
18155 | # Depending upon the size, compute the lo and hi bounds. | |
18156 | cat >conftest.$ac_ext <<_ACEOF | |
18157 | /* confdefs.h. */ | |
18158 | _ACEOF | |
18159 | cat confdefs.h >>conftest.$ac_ext | |
18160 | cat >>conftest.$ac_ext <<_ACEOF | |
18161 | /* end confdefs.h. */ | |
18162 | $ac_includes_default | |
18163 | int | |
18164 | main () | |
18165 | { | |
18166 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
18167 | test_array [0] = 0 | |
18168 | ||
18169 | ; | |
18170 | return 0; | |
18171 | } | |
18172 | _ACEOF | |
18173 | rm -f conftest.$ac_objext | |
18174 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18175 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18176 | ac_status=$? |
ac1cb8d3 VS |
18177 | grep -v '^ *+' conftest.er1 >conftest.err |
18178 | rm -f conftest.er1 | |
18179 | cat conftest.err >&5 | |
a848cd7e SC |
18180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18181 | (exit $ac_status); } && | |
3565d135 RR |
18182 | { ac_try='test -z "$ac_c_werror_flag" |
18183 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18185 | (eval $ac_try) 2>&5 | |
18186 | ac_status=$? | |
18187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18188 | (exit $ac_status); }; } && | |
18189 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18191 | (eval $ac_try) 2>&5 | |
18192 | ac_status=$? | |
18193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18194 | (exit $ac_status); }; }; then | |
18195 | ac_lo=0 ac_mid=0 | |
18196 | while :; do | |
18197 | cat >conftest.$ac_ext <<_ACEOF | |
18198 | /* confdefs.h. */ | |
18199 | _ACEOF | |
18200 | cat confdefs.h >>conftest.$ac_ext | |
18201 | cat >>conftest.$ac_ext <<_ACEOF | |
18202 | /* end confdefs.h. */ | |
18203 | $ac_includes_default | |
18204 | int | |
18205 | main () | |
18206 | { | |
18207 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
18208 | test_array [0] = 0 | |
18209 | ||
18210 | ; | |
18211 | return 0; | |
18212 | } | |
18213 | _ACEOF | |
18214 | rm -f conftest.$ac_objext | |
18215 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18216 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18217 | ac_status=$? |
ac1cb8d3 VS |
18218 | grep -v '^ *+' conftest.er1 >conftest.err |
18219 | rm -f conftest.er1 | |
18220 | cat conftest.err >&5 | |
a848cd7e SC |
18221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18222 | (exit $ac_status); } && | |
3565d135 RR |
18223 | { ac_try='test -z "$ac_c_werror_flag" |
18224 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18226 | (eval $ac_try) 2>&5 | |
18227 | ac_status=$? | |
18228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18229 | (exit $ac_status); }; } && | |
18230 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18232 | (eval $ac_try) 2>&5 | |
18233 | ac_status=$? | |
18234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18235 | (exit $ac_status); }; }; then | |
18236 | ac_hi=$ac_mid; break | |
18237 | else | |
18238 | echo "$as_me: failed program was:" >&5 | |
18239 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18240 | ||
18241 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18242 | if test $ac_lo -le $ac_mid; then |
18243 | ac_lo= ac_hi= | |
18244 | break | |
18245 | fi | |
18246 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18247 | fi |
ac1cb8d3 | 18248 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18249 | done |
18250 | else | |
18251 | echo "$as_me: failed program was:" >&5 | |
18252 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18253 | ||
18254 | cat >conftest.$ac_ext <<_ACEOF | |
18255 | /* confdefs.h. */ | |
18256 | _ACEOF | |
18257 | cat confdefs.h >>conftest.$ac_ext | |
18258 | cat >>conftest.$ac_ext <<_ACEOF | |
18259 | /* end confdefs.h. */ | |
18260 | $ac_includes_default | |
18261 | int | |
18262 | main () | |
18263 | { | |
18264 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
18265 | test_array [0] = 0 | |
18266 | ||
18267 | ; | |
18268 | return 0; | |
18269 | } | |
18270 | _ACEOF | |
18271 | rm -f conftest.$ac_objext | |
18272 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18273 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18274 | ac_status=$? |
ac1cb8d3 VS |
18275 | grep -v '^ *+' conftest.er1 >conftest.err |
18276 | rm -f conftest.er1 | |
18277 | cat conftest.err >&5 | |
a848cd7e SC |
18278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18279 | (exit $ac_status); } && | |
3565d135 RR |
18280 | { ac_try='test -z "$ac_c_werror_flag" |
18281 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18283 | (eval $ac_try) 2>&5 | |
18284 | ac_status=$? | |
18285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18286 | (exit $ac_status); }; } && | |
18287 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18289 | (eval $ac_try) 2>&5 | |
18290 | ac_status=$? | |
18291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18292 | (exit $ac_status); }; }; then | |
18293 | ac_hi=-1 ac_mid=-1 | |
18294 | while :; do | |
18295 | cat >conftest.$ac_ext <<_ACEOF | |
18296 | /* confdefs.h. */ | |
18297 | _ACEOF | |
18298 | cat confdefs.h >>conftest.$ac_ext | |
18299 | cat >>conftest.$ac_ext <<_ACEOF | |
18300 | /* end confdefs.h. */ | |
18301 | $ac_includes_default | |
18302 | int | |
18303 | main () | |
18304 | { | |
18305 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
18306 | test_array [0] = 0 | |
18307 | ||
18308 | ; | |
18309 | return 0; | |
18310 | } | |
18311 | _ACEOF | |
18312 | rm -f conftest.$ac_objext | |
18313 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18314 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18315 | ac_status=$? |
ac1cb8d3 VS |
18316 | grep -v '^ *+' conftest.er1 >conftest.err |
18317 | rm -f conftest.er1 | |
18318 | cat conftest.err >&5 | |
a848cd7e SC |
18319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18320 | (exit $ac_status); } && | |
3565d135 RR |
18321 | { ac_try='test -z "$ac_c_werror_flag" |
18322 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18324 | (eval $ac_try) 2>&5 | |
18325 | ac_status=$? | |
18326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18327 | (exit $ac_status); }; } && | |
18328 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18330 | (eval $ac_try) 2>&5 | |
18331 | ac_status=$? | |
18332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18333 | (exit $ac_status); }; }; then | |
18334 | ac_lo=$ac_mid; break | |
18335 | else | |
18336 | echo "$as_me: failed program was:" >&5 | |
18337 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18338 | ||
18339 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18340 | if test $ac_mid -le $ac_hi; then |
18341 | ac_lo= ac_hi= | |
18342 | break | |
18343 | fi | |
18344 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18345 | fi |
ac1cb8d3 | 18346 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18347 | done |
18348 | else | |
18349 | echo "$as_me: failed program was:" >&5 | |
18350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18351 | ||
18352 | ac_lo= ac_hi= | |
18353 | fi | |
ac1cb8d3 | 18354 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18355 | fi |
ac1cb8d3 | 18356 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18357 | # Binary search between lo and hi bounds. |
18358 | while test "x$ac_lo" != "x$ac_hi"; do | |
18359 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18360 | cat >conftest.$ac_ext <<_ACEOF | |
18361 | /* confdefs.h. */ | |
18362 | _ACEOF | |
18363 | cat confdefs.h >>conftest.$ac_ext | |
18364 | cat >>conftest.$ac_ext <<_ACEOF | |
18365 | /* end confdefs.h. */ | |
18366 | $ac_includes_default | |
18367 | int | |
18368 | main () | |
18369 | { | |
18370 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
18371 | test_array [0] = 0 | |
18372 | ||
18373 | ; | |
18374 | return 0; | |
18375 | } | |
18376 | _ACEOF | |
18377 | rm -f conftest.$ac_objext | |
18378 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18379 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18380 | ac_status=$? |
ac1cb8d3 VS |
18381 | grep -v '^ *+' conftest.er1 >conftest.err |
18382 | rm -f conftest.er1 | |
18383 | cat conftest.err >&5 | |
a848cd7e SC |
18384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18385 | (exit $ac_status); } && | |
3565d135 RR |
18386 | { ac_try='test -z "$ac_c_werror_flag" |
18387 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18389 | (eval $ac_try) 2>&5 | |
18390 | ac_status=$? | |
18391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18392 | (exit $ac_status); }; } && | |
18393 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18395 | (eval $ac_try) 2>&5 | |
18396 | ac_status=$? | |
18397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18398 | (exit $ac_status); }; }; then | |
18399 | ac_hi=$ac_mid | |
18400 | else | |
18401 | echo "$as_me: failed program was:" >&5 | |
18402 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18403 | ||
18404 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18405 | fi | |
ac1cb8d3 | 18406 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18407 | done |
18408 | case $ac_lo in | |
18409 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
18410 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
18411 | See \`config.log' for more details." >&5 | |
18412 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
18413 | See \`config.log' for more details." >&2;} | |
18414 | { (exit 1); exit 1; }; } ;; | |
18415 | esac | |
18416 | else | |
18417 | if test "$cross_compiling" = yes; then | |
3565d135 RR |
18418 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
18419 | See \`config.log' for more details." >&5 | |
18420 | echo "$as_me: error: cannot run test program while cross compiling | |
18421 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
18422 | { (exit 1); exit 1; }; } |
18423 | else | |
18424 | cat >conftest.$ac_ext <<_ACEOF | |
18425 | /* confdefs.h. */ | |
18426 | _ACEOF | |
18427 | cat confdefs.h >>conftest.$ac_ext | |
18428 | cat >>conftest.$ac_ext <<_ACEOF | |
18429 | /* end confdefs.h. */ | |
18430 | $ac_includes_default | |
18431 | long longval () { return (long) (sizeof (int)); } | |
18432 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
18433 | #include <stdio.h> | |
18434 | #include <stdlib.h> | |
18435 | int | |
18436 | main () | |
18437 | { | |
18438 | ||
18439 | FILE *f = fopen ("conftest.val", "w"); | |
18440 | if (! f) | |
18441 | exit (1); | |
18442 | if (((long) (sizeof (int))) < 0) | |
18443 | { | |
18444 | long i = longval (); | |
18445 | if (i != ((long) (sizeof (int)))) | |
18446 | exit (1); | |
18447 | fprintf (f, "%ld\n", i); | |
18448 | } | |
18449 | else | |
18450 | { | |
18451 | unsigned long i = ulongval (); | |
18452 | if (i != ((long) (sizeof (int)))) | |
18453 | exit (1); | |
18454 | fprintf (f, "%lu\n", i); | |
18455 | } | |
18456 | exit (ferror (f) || fclose (f) != 0); | |
18457 | ||
18458 | ; | |
18459 | return 0; | |
18460 | } | |
18461 | _ACEOF | |
18462 | rm -f conftest$ac_exeext | |
18463 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18464 | (eval $ac_link) 2>&5 | |
18465 | ac_status=$? | |
18466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18467 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18469 | (eval $ac_try) 2>&5 | |
18470 | ac_status=$? | |
18471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18472 | (exit $ac_status); }; }; then | |
18473 | ac_cv_sizeof_int=`cat conftest.val` | |
18474 | else | |
18475 | echo "$as_me: program exited with status $ac_status" >&5 | |
18476 | echo "$as_me: failed program was:" >&5 | |
18477 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18478 | ||
18479 | ( exit $ac_status ) | |
18480 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
18481 | See \`config.log' for more details." >&5 | |
18482 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
18483 | See \`config.log' for more details." >&2;} | |
18484 | { (exit 1); exit 1; }; } | |
18485 | fi | |
ac1cb8d3 | 18486 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18487 | fi |
18488 | fi | |
18489 | rm -f conftest.val | |
18490 | else | |
18491 | ac_cv_sizeof_int=0 | |
18492 | fi | |
18493 | fi | |
18494 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
18495 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
18496 | cat >>confdefs.h <<_ACEOF | |
18497 | #define SIZEOF_INT $ac_cv_sizeof_int | |
18498 | _ACEOF | |
18499 | ||
18500 | ||
18501 | echo "$as_me:$LINENO: checking for long" >&5 | |
18502 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
18503 | if test "${ac_cv_type_long+set}" = set; then | |
18504 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18505 | else | |
18506 | cat >conftest.$ac_ext <<_ACEOF | |
18507 | /* confdefs.h. */ | |
18508 | _ACEOF | |
18509 | cat confdefs.h >>conftest.$ac_ext | |
18510 | cat >>conftest.$ac_ext <<_ACEOF | |
18511 | /* end confdefs.h. */ | |
18512 | $ac_includes_default | |
18513 | int | |
18514 | main () | |
18515 | { | |
18516 | if ((long *) 0) | |
18517 | return 0; | |
18518 | if (sizeof (long)) | |
18519 | return 0; | |
18520 | ; | |
18521 | return 0; | |
18522 | } | |
18523 | _ACEOF | |
18524 | rm -f conftest.$ac_objext | |
18525 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18526 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18527 | ac_status=$? |
ac1cb8d3 VS |
18528 | grep -v '^ *+' conftest.er1 >conftest.err |
18529 | rm -f conftest.er1 | |
18530 | cat conftest.err >&5 | |
a848cd7e SC |
18531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18532 | (exit $ac_status); } && | |
3565d135 RR |
18533 | { ac_try='test -z "$ac_c_werror_flag" |
18534 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18536 | (eval $ac_try) 2>&5 | |
18537 | ac_status=$? | |
18538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18539 | (exit $ac_status); }; } && | |
18540 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18542 | (eval $ac_try) 2>&5 | |
18543 | ac_status=$? | |
18544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18545 | (exit $ac_status); }; }; then | |
18546 | ac_cv_type_long=yes | |
18547 | else | |
18548 | echo "$as_me: failed program was:" >&5 | |
18549 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18550 | ||
18551 | ac_cv_type_long=no | |
18552 | fi | |
ac1cb8d3 | 18553 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18554 | fi |
18555 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
18556 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
18557 | ||
18558 | echo "$as_me:$LINENO: checking size of long" >&5 | |
18559 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
18560 | if test "${ac_cv_sizeof_long+set}" = set; then | |
18561 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18562 | else | |
18563 | if test "$ac_cv_type_long" = yes; then | |
18564 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18565 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18566 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18567 | # This bug is HP SR number 8606223364. | |
18568 | if test "$cross_compiling" = yes; then | |
18569 | # Depending upon the size, compute the lo and hi bounds. | |
18570 | cat >conftest.$ac_ext <<_ACEOF | |
18571 | /* confdefs.h. */ | |
18572 | _ACEOF | |
18573 | cat confdefs.h >>conftest.$ac_ext | |
18574 | cat >>conftest.$ac_ext <<_ACEOF | |
18575 | /* end confdefs.h. */ | |
18576 | $ac_includes_default | |
18577 | int | |
18578 | main () | |
18579 | { | |
18580 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
18581 | test_array [0] = 0 | |
18582 | ||
18583 | ; | |
18584 | return 0; | |
18585 | } | |
18586 | _ACEOF | |
18587 | rm -f conftest.$ac_objext | |
18588 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18589 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18590 | ac_status=$? |
ac1cb8d3 VS |
18591 | grep -v '^ *+' conftest.er1 >conftest.err |
18592 | rm -f conftest.er1 | |
18593 | cat conftest.err >&5 | |
a848cd7e SC |
18594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18595 | (exit $ac_status); } && | |
3565d135 RR |
18596 | { ac_try='test -z "$ac_c_werror_flag" |
18597 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18599 | (eval $ac_try) 2>&5 | |
18600 | ac_status=$? | |
18601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18602 | (exit $ac_status); }; } && | |
18603 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18605 | (eval $ac_try) 2>&5 | |
18606 | ac_status=$? | |
18607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18608 | (exit $ac_status); }; }; then | |
18609 | ac_lo=0 ac_mid=0 | |
18610 | while :; do | |
18611 | cat >conftest.$ac_ext <<_ACEOF | |
18612 | /* confdefs.h. */ | |
18613 | _ACEOF | |
18614 | cat confdefs.h >>conftest.$ac_ext | |
18615 | cat >>conftest.$ac_ext <<_ACEOF | |
18616 | /* end confdefs.h. */ | |
18617 | $ac_includes_default | |
18618 | int | |
18619 | main () | |
18620 | { | |
18621 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
18622 | test_array [0] = 0 | |
18623 | ||
18624 | ; | |
18625 | return 0; | |
18626 | } | |
18627 | _ACEOF | |
18628 | rm -f conftest.$ac_objext | |
18629 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18630 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18631 | ac_status=$? |
ac1cb8d3 VS |
18632 | grep -v '^ *+' conftest.er1 >conftest.err |
18633 | rm -f conftest.er1 | |
18634 | cat conftest.err >&5 | |
a848cd7e SC |
18635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18636 | (exit $ac_status); } && | |
3565d135 RR |
18637 | { ac_try='test -z "$ac_c_werror_flag" |
18638 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18640 | (eval $ac_try) 2>&5 | |
18641 | ac_status=$? | |
18642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18643 | (exit $ac_status); }; } && | |
18644 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18646 | (eval $ac_try) 2>&5 | |
18647 | ac_status=$? | |
18648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18649 | (exit $ac_status); }; }; then | |
18650 | ac_hi=$ac_mid; break | |
18651 | else | |
18652 | echo "$as_me: failed program was:" >&5 | |
18653 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18654 | ||
18655 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
18656 | if test $ac_lo -le $ac_mid; then |
18657 | ac_lo= ac_hi= | |
18658 | break | |
18659 | fi | |
18660 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 18661 | fi |
ac1cb8d3 | 18662 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18663 | done |
18664 | else | |
18665 | echo "$as_me: failed program was:" >&5 | |
18666 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18667 | ||
18668 | cat >conftest.$ac_ext <<_ACEOF | |
18669 | /* confdefs.h. */ | |
18670 | _ACEOF | |
18671 | cat confdefs.h >>conftest.$ac_ext | |
18672 | cat >>conftest.$ac_ext <<_ACEOF | |
18673 | /* end confdefs.h. */ | |
18674 | $ac_includes_default | |
18675 | int | |
18676 | main () | |
18677 | { | |
18678 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
18679 | test_array [0] = 0 | |
18680 | ||
18681 | ; | |
18682 | return 0; | |
18683 | } | |
18684 | _ACEOF | |
18685 | rm -f conftest.$ac_objext | |
18686 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18687 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18688 | ac_status=$? |
ac1cb8d3 VS |
18689 | grep -v '^ *+' conftest.er1 >conftest.err |
18690 | rm -f conftest.er1 | |
18691 | cat conftest.err >&5 | |
a848cd7e SC |
18692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18693 | (exit $ac_status); } && | |
3565d135 RR |
18694 | { ac_try='test -z "$ac_c_werror_flag" |
18695 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18697 | (eval $ac_try) 2>&5 | |
18698 | ac_status=$? | |
18699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18700 | (exit $ac_status); }; } && | |
18701 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18703 | (eval $ac_try) 2>&5 | |
18704 | ac_status=$? | |
18705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18706 | (exit $ac_status); }; }; then | |
18707 | ac_hi=-1 ac_mid=-1 | |
18708 | while :; do | |
18709 | cat >conftest.$ac_ext <<_ACEOF | |
18710 | /* confdefs.h. */ | |
18711 | _ACEOF | |
18712 | cat confdefs.h >>conftest.$ac_ext | |
18713 | cat >>conftest.$ac_ext <<_ACEOF | |
18714 | /* end confdefs.h. */ | |
18715 | $ac_includes_default | |
18716 | int | |
18717 | main () | |
18718 | { | |
18719 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
18720 | test_array [0] = 0 | |
18721 | ||
18722 | ; | |
18723 | return 0; | |
18724 | } | |
18725 | _ACEOF | |
18726 | rm -f conftest.$ac_objext | |
18727 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18728 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18729 | ac_status=$? |
ac1cb8d3 VS |
18730 | grep -v '^ *+' conftest.er1 >conftest.err |
18731 | rm -f conftest.er1 | |
18732 | cat conftest.err >&5 | |
a848cd7e SC |
18733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18734 | (exit $ac_status); } && | |
3565d135 RR |
18735 | { ac_try='test -z "$ac_c_werror_flag" |
18736 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18738 | (eval $ac_try) 2>&5 | |
18739 | ac_status=$? | |
18740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18741 | (exit $ac_status); }; } && | |
18742 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18744 | (eval $ac_try) 2>&5 | |
18745 | ac_status=$? | |
18746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18747 | (exit $ac_status); }; }; then | |
18748 | ac_lo=$ac_mid; break | |
18749 | else | |
18750 | echo "$as_me: failed program was:" >&5 | |
18751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18752 | ||
18753 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
18754 | if test $ac_mid -le $ac_hi; then |
18755 | ac_lo= ac_hi= | |
18756 | break | |
18757 | fi | |
18758 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 18759 | fi |
ac1cb8d3 | 18760 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18761 | done |
18762 | else | |
18763 | echo "$as_me: failed program was:" >&5 | |
18764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18765 | ||
18766 | ac_lo= ac_hi= | |
18767 | fi | |
ac1cb8d3 | 18768 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 18769 | fi |
ac1cb8d3 | 18770 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18771 | # Binary search between lo and hi bounds. |
18772 | while test "x$ac_lo" != "x$ac_hi"; do | |
18773 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
18774 | cat >conftest.$ac_ext <<_ACEOF | |
18775 | /* confdefs.h. */ | |
18776 | _ACEOF | |
18777 | cat confdefs.h >>conftest.$ac_ext | |
18778 | cat >>conftest.$ac_ext <<_ACEOF | |
18779 | /* end confdefs.h. */ | |
18780 | $ac_includes_default | |
18781 | int | |
18782 | main () | |
18783 | { | |
18784 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
18785 | test_array [0] = 0 | |
18786 | ||
18787 | ; | |
18788 | return 0; | |
18789 | } | |
18790 | _ACEOF | |
18791 | rm -f conftest.$ac_objext | |
18792 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18793 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18794 | ac_status=$? |
ac1cb8d3 VS |
18795 | grep -v '^ *+' conftest.er1 >conftest.err |
18796 | rm -f conftest.er1 | |
18797 | cat conftest.err >&5 | |
a848cd7e SC |
18798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18799 | (exit $ac_status); } && | |
3565d135 RR |
18800 | { ac_try='test -z "$ac_c_werror_flag" |
18801 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18803 | (eval $ac_try) 2>&5 | |
18804 | ac_status=$? | |
18805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18806 | (exit $ac_status); }; } && | |
18807 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18809 | (eval $ac_try) 2>&5 | |
18810 | ac_status=$? | |
18811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18812 | (exit $ac_status); }; }; then | |
18813 | ac_hi=$ac_mid | |
18814 | else | |
18815 | echo "$as_me: failed program was:" >&5 | |
18816 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18817 | ||
18818 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
18819 | fi | |
ac1cb8d3 | 18820 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18821 | done |
18822 | case $ac_lo in | |
18823 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
18824 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
18825 | See \`config.log' for more details." >&5 | |
18826 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
18827 | See \`config.log' for more details." >&2;} | |
18828 | { (exit 1); exit 1; }; } ;; | |
18829 | esac | |
18830 | else | |
18831 | if test "$cross_compiling" = yes; then | |
3565d135 RR |
18832 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
18833 | See \`config.log' for more details." >&5 | |
18834 | echo "$as_me: error: cannot run test program while cross compiling | |
18835 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
18836 | { (exit 1); exit 1; }; } |
18837 | else | |
18838 | cat >conftest.$ac_ext <<_ACEOF | |
18839 | /* confdefs.h. */ | |
18840 | _ACEOF | |
18841 | cat confdefs.h >>conftest.$ac_ext | |
18842 | cat >>conftest.$ac_ext <<_ACEOF | |
18843 | /* end confdefs.h. */ | |
18844 | $ac_includes_default | |
18845 | long longval () { return (long) (sizeof (long)); } | |
18846 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
18847 | #include <stdio.h> | |
18848 | #include <stdlib.h> | |
18849 | int | |
18850 | main () | |
18851 | { | |
18852 | ||
18853 | FILE *f = fopen ("conftest.val", "w"); | |
18854 | if (! f) | |
18855 | exit (1); | |
18856 | if (((long) (sizeof (long))) < 0) | |
18857 | { | |
18858 | long i = longval (); | |
18859 | if (i != ((long) (sizeof (long)))) | |
18860 | exit (1); | |
18861 | fprintf (f, "%ld\n", i); | |
18862 | } | |
18863 | else | |
18864 | { | |
18865 | unsigned long i = ulongval (); | |
18866 | if (i != ((long) (sizeof (long)))) | |
18867 | exit (1); | |
18868 | fprintf (f, "%lu\n", i); | |
18869 | } | |
18870 | exit (ferror (f) || fclose (f) != 0); | |
18871 | ||
18872 | ; | |
18873 | return 0; | |
18874 | } | |
18875 | _ACEOF | |
18876 | rm -f conftest$ac_exeext | |
18877 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18878 | (eval $ac_link) 2>&5 | |
18879 | ac_status=$? | |
18880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18881 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18883 | (eval $ac_try) 2>&5 | |
18884 | ac_status=$? | |
18885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18886 | (exit $ac_status); }; }; then | |
18887 | ac_cv_sizeof_long=`cat conftest.val` | |
18888 | else | |
18889 | echo "$as_me: program exited with status $ac_status" >&5 | |
18890 | echo "$as_me: failed program was:" >&5 | |
18891 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18892 | ||
18893 | ( exit $ac_status ) | |
18894 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
18895 | See \`config.log' for more details." >&5 | |
18896 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
18897 | See \`config.log' for more details." >&2;} | |
18898 | { (exit 1); exit 1; }; } | |
18899 | fi | |
ac1cb8d3 | 18900 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18901 | fi |
18902 | fi | |
18903 | rm -f conftest.val | |
18904 | else | |
18905 | ac_cv_sizeof_long=0 | |
18906 | fi | |
18907 | fi | |
18908 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
18909 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
18910 | cat >>confdefs.h <<_ACEOF | |
18911 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
18912 | _ACEOF | |
18913 | ||
18914 | ||
18915 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
18916 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
18917 | if test "${ac_cv_type_size_t+set}" = set; then | |
18918 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18919 | else | |
18920 | cat >conftest.$ac_ext <<_ACEOF | |
18921 | /* confdefs.h. */ | |
18922 | _ACEOF | |
18923 | cat confdefs.h >>conftest.$ac_ext | |
18924 | cat >>conftest.$ac_ext <<_ACEOF | |
18925 | /* end confdefs.h. */ | |
18926 | $ac_includes_default | |
18927 | int | |
18928 | main () | |
18929 | { | |
18930 | if ((size_t *) 0) | |
18931 | return 0; | |
18932 | if (sizeof (size_t)) | |
18933 | return 0; | |
18934 | ; | |
18935 | return 0; | |
18936 | } | |
18937 | _ACEOF | |
18938 | rm -f conftest.$ac_objext | |
18939 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 18940 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 18941 | ac_status=$? |
ac1cb8d3 VS |
18942 | grep -v '^ *+' conftest.er1 >conftest.err |
18943 | rm -f conftest.er1 | |
18944 | cat conftest.err >&5 | |
a848cd7e SC |
18945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18946 | (exit $ac_status); } && | |
3565d135 RR |
18947 | { ac_try='test -z "$ac_c_werror_flag" |
18948 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
18949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18950 | (eval $ac_try) 2>&5 | |
18951 | ac_status=$? | |
18952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18953 | (exit $ac_status); }; } && | |
18954 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
18955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18956 | (eval $ac_try) 2>&5 | |
18957 | ac_status=$? | |
18958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18959 | (exit $ac_status); }; }; then | |
18960 | ac_cv_type_size_t=yes | |
18961 | else | |
18962 | echo "$as_me: failed program was:" >&5 | |
18963 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18964 | ||
18965 | ac_cv_type_size_t=no | |
18966 | fi | |
ac1cb8d3 | 18967 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18968 | fi |
18969 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
18970 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
18971 | ||
18972 | echo "$as_me:$LINENO: checking size of size_t" >&5 | |
18973 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
18974 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
18975 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18976 | else | |
18977 | if test "$ac_cv_type_size_t" = yes; then | |
18978 | # The cast to unsigned long works around a bug in the HP C Compiler | |
18979 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
18980 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
18981 | # This bug is HP SR number 8606223364. | |
18982 | if test "$cross_compiling" = yes; then | |
18983 | # Depending upon the size, compute the lo and hi bounds. | |
18984 | cat >conftest.$ac_ext <<_ACEOF | |
18985 | /* confdefs.h. */ | |
18986 | _ACEOF | |
18987 | cat confdefs.h >>conftest.$ac_ext | |
18988 | cat >>conftest.$ac_ext <<_ACEOF | |
18989 | /* end confdefs.h. */ | |
18990 | $ac_includes_default | |
18991 | int | |
18992 | main () | |
18993 | { | |
18994 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
18995 | test_array [0] = 0 | |
18996 | ||
18997 | ; | |
18998 | return 0; | |
18999 | } | |
19000 | _ACEOF | |
19001 | rm -f conftest.$ac_objext | |
19002 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19003 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19004 | ac_status=$? |
ac1cb8d3 VS |
19005 | grep -v '^ *+' conftest.er1 >conftest.err |
19006 | rm -f conftest.er1 | |
19007 | cat conftest.err >&5 | |
a848cd7e SC |
19008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19009 | (exit $ac_status); } && | |
3565d135 RR |
19010 | { ac_try='test -z "$ac_c_werror_flag" |
19011 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19013 | (eval $ac_try) 2>&5 | |
19014 | ac_status=$? | |
19015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19016 | (exit $ac_status); }; } && | |
19017 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19019 | (eval $ac_try) 2>&5 | |
19020 | ac_status=$? | |
19021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19022 | (exit $ac_status); }; }; then | |
19023 | ac_lo=0 ac_mid=0 | |
19024 | while :; do | |
19025 | cat >conftest.$ac_ext <<_ACEOF | |
19026 | /* confdefs.h. */ | |
19027 | _ACEOF | |
19028 | cat confdefs.h >>conftest.$ac_ext | |
19029 | cat >>conftest.$ac_ext <<_ACEOF | |
19030 | /* end confdefs.h. */ | |
19031 | $ac_includes_default | |
19032 | int | |
19033 | main () | |
19034 | { | |
19035 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
19036 | test_array [0] = 0 | |
19037 | ||
19038 | ; | |
19039 | return 0; | |
19040 | } | |
19041 | _ACEOF | |
19042 | rm -f conftest.$ac_objext | |
19043 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19044 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19045 | ac_status=$? |
ac1cb8d3 VS |
19046 | grep -v '^ *+' conftest.er1 >conftest.err |
19047 | rm -f conftest.er1 | |
19048 | cat conftest.err >&5 | |
a848cd7e SC |
19049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19050 | (exit $ac_status); } && | |
3565d135 RR |
19051 | { ac_try='test -z "$ac_c_werror_flag" |
19052 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19054 | (eval $ac_try) 2>&5 | |
19055 | ac_status=$? | |
19056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19057 | (exit $ac_status); }; } && | |
19058 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19060 | (eval $ac_try) 2>&5 | |
19061 | ac_status=$? | |
19062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19063 | (exit $ac_status); }; }; then | |
19064 | ac_hi=$ac_mid; break | |
19065 | else | |
19066 | echo "$as_me: failed program was:" >&5 | |
19067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19068 | ||
19069 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
19070 | if test $ac_lo -le $ac_mid; then |
19071 | ac_lo= ac_hi= | |
19072 | break | |
19073 | fi | |
19074 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 19075 | fi |
ac1cb8d3 | 19076 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19077 | done |
19078 | else | |
19079 | echo "$as_me: failed program was:" >&5 | |
19080 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19081 | ||
19082 | cat >conftest.$ac_ext <<_ACEOF | |
19083 | /* confdefs.h. */ | |
19084 | _ACEOF | |
19085 | cat confdefs.h >>conftest.$ac_ext | |
19086 | cat >>conftest.$ac_ext <<_ACEOF | |
19087 | /* end confdefs.h. */ | |
19088 | $ac_includes_default | |
19089 | int | |
19090 | main () | |
19091 | { | |
19092 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; | |
19093 | test_array [0] = 0 | |
19094 | ||
19095 | ; | |
19096 | return 0; | |
19097 | } | |
19098 | _ACEOF | |
19099 | rm -f conftest.$ac_objext | |
19100 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19101 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19102 | ac_status=$? |
ac1cb8d3 VS |
19103 | grep -v '^ *+' conftest.er1 >conftest.err |
19104 | rm -f conftest.er1 | |
19105 | cat conftest.err >&5 | |
a848cd7e SC |
19106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19107 | (exit $ac_status); } && | |
3565d135 RR |
19108 | { ac_try='test -z "$ac_c_werror_flag" |
19109 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19111 | (eval $ac_try) 2>&5 | |
19112 | ac_status=$? | |
19113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19114 | (exit $ac_status); }; } && | |
19115 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19117 | (eval $ac_try) 2>&5 | |
19118 | ac_status=$? | |
19119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19120 | (exit $ac_status); }; }; then | |
19121 | ac_hi=-1 ac_mid=-1 | |
19122 | while :; do | |
19123 | cat >conftest.$ac_ext <<_ACEOF | |
19124 | /* confdefs.h. */ | |
19125 | _ACEOF | |
19126 | cat confdefs.h >>conftest.$ac_ext | |
19127 | cat >>conftest.$ac_ext <<_ACEOF | |
19128 | /* end confdefs.h. */ | |
19129 | $ac_includes_default | |
19130 | int | |
19131 | main () | |
19132 | { | |
19133 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
19134 | test_array [0] = 0 | |
19135 | ||
19136 | ; | |
19137 | return 0; | |
19138 | } | |
19139 | _ACEOF | |
19140 | rm -f conftest.$ac_objext | |
19141 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19142 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19143 | ac_status=$? |
ac1cb8d3 VS |
19144 | grep -v '^ *+' conftest.er1 >conftest.err |
19145 | rm -f conftest.er1 | |
19146 | cat conftest.err >&5 | |
a848cd7e SC |
19147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19148 | (exit $ac_status); } && | |
3565d135 RR |
19149 | { ac_try='test -z "$ac_c_werror_flag" |
19150 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19152 | (eval $ac_try) 2>&5 | |
19153 | ac_status=$? | |
19154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19155 | (exit $ac_status); }; } && | |
19156 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19158 | (eval $ac_try) 2>&5 | |
19159 | ac_status=$? | |
19160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19161 | (exit $ac_status); }; }; then | |
19162 | ac_lo=$ac_mid; break | |
19163 | else | |
19164 | echo "$as_me: failed program was:" >&5 | |
19165 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19166 | ||
19167 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
19168 | if test $ac_mid -le $ac_hi; then |
19169 | ac_lo= ac_hi= | |
19170 | break | |
19171 | fi | |
19172 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 19173 | fi |
ac1cb8d3 | 19174 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19175 | done |
19176 | else | |
19177 | echo "$as_me: failed program was:" >&5 | |
19178 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19179 | ||
19180 | ac_lo= ac_hi= | |
19181 | fi | |
ac1cb8d3 | 19182 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19183 | fi |
ac1cb8d3 | 19184 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19185 | # Binary search between lo and hi bounds. |
19186 | while test "x$ac_lo" != "x$ac_hi"; do | |
19187 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19188 | cat >conftest.$ac_ext <<_ACEOF | |
19189 | /* confdefs.h. */ | |
19190 | _ACEOF | |
19191 | cat confdefs.h >>conftest.$ac_ext | |
19192 | cat >>conftest.$ac_ext <<_ACEOF | |
19193 | /* end confdefs.h. */ | |
19194 | $ac_includes_default | |
19195 | int | |
19196 | main () | |
19197 | { | |
19198 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
19199 | test_array [0] = 0 | |
19200 | ||
19201 | ; | |
19202 | return 0; | |
19203 | } | |
19204 | _ACEOF | |
19205 | rm -f conftest.$ac_objext | |
19206 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19207 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19208 | ac_status=$? |
ac1cb8d3 VS |
19209 | grep -v '^ *+' conftest.er1 >conftest.err |
19210 | rm -f conftest.er1 | |
19211 | cat conftest.err >&5 | |
a848cd7e SC |
19212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19213 | (exit $ac_status); } && | |
3565d135 RR |
19214 | { ac_try='test -z "$ac_c_werror_flag" |
19215 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19217 | (eval $ac_try) 2>&5 | |
19218 | ac_status=$? | |
19219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19220 | (exit $ac_status); }; } && | |
19221 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19223 | (eval $ac_try) 2>&5 | |
19224 | ac_status=$? | |
19225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19226 | (exit $ac_status); }; }; then | |
19227 | ac_hi=$ac_mid | |
19228 | else | |
19229 | echo "$as_me: failed program was:" >&5 | |
19230 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19231 | ||
19232 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19233 | fi | |
ac1cb8d3 | 19234 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19235 | done |
19236 | case $ac_lo in | |
19237 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
19238 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
19239 | See \`config.log' for more details." >&5 | |
19240 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
19241 | See \`config.log' for more details." >&2;} | |
19242 | { (exit 1); exit 1; }; } ;; | |
19243 | esac | |
19244 | else | |
19245 | if test "$cross_compiling" = yes; then | |
3565d135 RR |
19246 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
19247 | See \`config.log' for more details." >&5 | |
19248 | echo "$as_me: error: cannot run test program while cross compiling | |
19249 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
19250 | { (exit 1); exit 1; }; } |
19251 | else | |
19252 | cat >conftest.$ac_ext <<_ACEOF | |
19253 | /* confdefs.h. */ | |
19254 | _ACEOF | |
19255 | cat confdefs.h >>conftest.$ac_ext | |
19256 | cat >>conftest.$ac_ext <<_ACEOF | |
19257 | /* end confdefs.h. */ | |
19258 | $ac_includes_default | |
19259 | long longval () { return (long) (sizeof (size_t)); } | |
19260 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
19261 | #include <stdio.h> | |
19262 | #include <stdlib.h> | |
19263 | int | |
19264 | main () | |
19265 | { | |
19266 | ||
19267 | FILE *f = fopen ("conftest.val", "w"); | |
19268 | if (! f) | |
19269 | exit (1); | |
19270 | if (((long) (sizeof (size_t))) < 0) | |
19271 | { | |
19272 | long i = longval (); | |
19273 | if (i != ((long) (sizeof (size_t)))) | |
19274 | exit (1); | |
19275 | fprintf (f, "%ld\n", i); | |
19276 | } | |
19277 | else | |
19278 | { | |
19279 | unsigned long i = ulongval (); | |
19280 | if (i != ((long) (sizeof (size_t)))) | |
19281 | exit (1); | |
19282 | fprintf (f, "%lu\n", i); | |
19283 | } | |
19284 | exit (ferror (f) || fclose (f) != 0); | |
19285 | ||
19286 | ; | |
19287 | return 0; | |
19288 | } | |
19289 | _ACEOF | |
19290 | rm -f conftest$ac_exeext | |
19291 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19292 | (eval $ac_link) 2>&5 | |
19293 | ac_status=$? | |
19294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19295 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19297 | (eval $ac_try) 2>&5 | |
19298 | ac_status=$? | |
19299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19300 | (exit $ac_status); }; }; then | |
19301 | ac_cv_sizeof_size_t=`cat conftest.val` | |
19302 | else | |
19303 | echo "$as_me: program exited with status $ac_status" >&5 | |
19304 | echo "$as_me: failed program was:" >&5 | |
19305 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19306 | ||
19307 | ( exit $ac_status ) | |
19308 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
19309 | See \`config.log' for more details." >&5 | |
19310 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
19311 | See \`config.log' for more details." >&2;} | |
19312 | { (exit 1); exit 1; }; } | |
19313 | fi | |
ac1cb8d3 | 19314 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19315 | fi |
19316 | fi | |
19317 | rm -f conftest.val | |
19318 | else | |
19319 | ac_cv_sizeof_size_t=0 | |
19320 | fi | |
19321 | fi | |
19322 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 | |
19323 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
19324 | cat >>confdefs.h <<_ACEOF | |
19325 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
19326 | _ACEOF | |
19327 | ||
19328 | ||
19329 | ||
19330 | case "${host}" in | |
19331 | arm-*-linux* ) | |
19332 | echo "$as_me:$LINENO: checking for long long" >&5 | |
19333 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
19334 | if test "${ac_cv_type_long_long+set}" = set; then | |
19335 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19336 | else | |
19337 | cat >conftest.$ac_ext <<_ACEOF | |
19338 | /* confdefs.h. */ | |
19339 | _ACEOF | |
19340 | cat confdefs.h >>conftest.$ac_ext | |
19341 | cat >>conftest.$ac_ext <<_ACEOF | |
19342 | /* end confdefs.h. */ | |
19343 | $ac_includes_default | |
19344 | int | |
19345 | main () | |
19346 | { | |
19347 | if ((long long *) 0) | |
19348 | return 0; | |
19349 | if (sizeof (long long)) | |
19350 | return 0; | |
19351 | ; | |
19352 | return 0; | |
19353 | } | |
19354 | _ACEOF | |
19355 | rm -f conftest.$ac_objext | |
19356 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19357 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19358 | ac_status=$? |
ac1cb8d3 VS |
19359 | grep -v '^ *+' conftest.er1 >conftest.err |
19360 | rm -f conftest.er1 | |
19361 | cat conftest.err >&5 | |
a848cd7e SC |
19362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19363 | (exit $ac_status); } && | |
3565d135 RR |
19364 | { ac_try='test -z "$ac_c_werror_flag" |
19365 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19367 | (eval $ac_try) 2>&5 | |
19368 | ac_status=$? | |
19369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19370 | (exit $ac_status); }; } && | |
19371 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19373 | (eval $ac_try) 2>&5 | |
19374 | ac_status=$? | |
19375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19376 | (exit $ac_status); }; }; then | |
19377 | ac_cv_type_long_long=yes | |
19378 | else | |
19379 | echo "$as_me: failed program was:" >&5 | |
19380 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19381 | ||
19382 | ac_cv_type_long_long=no | |
19383 | fi | |
ac1cb8d3 | 19384 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19385 | fi |
19386 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
19387 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
19388 | ||
19389 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
19390 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
19391 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
19392 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19393 | else | |
19394 | if test "$ac_cv_type_long_long" = yes; then | |
19395 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19396 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19397 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19398 | # This bug is HP SR number 8606223364. | |
19399 | if test "$cross_compiling" = yes; then | |
19400 | # Depending upon the size, compute the lo and hi bounds. | |
19401 | cat >conftest.$ac_ext <<_ACEOF | |
19402 | /* confdefs.h. */ | |
19403 | _ACEOF | |
19404 | cat confdefs.h >>conftest.$ac_ext | |
19405 | cat >>conftest.$ac_ext <<_ACEOF | |
19406 | /* end confdefs.h. */ | |
19407 | $ac_includes_default | |
19408 | int | |
19409 | main () | |
19410 | { | |
19411 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
19412 | test_array [0] = 0 | |
19413 | ||
19414 | ; | |
19415 | return 0; | |
19416 | } | |
19417 | _ACEOF | |
19418 | rm -f conftest.$ac_objext | |
19419 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19420 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19421 | ac_status=$? |
ac1cb8d3 VS |
19422 | grep -v '^ *+' conftest.er1 >conftest.err |
19423 | rm -f conftest.er1 | |
19424 | cat conftest.err >&5 | |
a848cd7e SC |
19425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19426 | (exit $ac_status); } && | |
3565d135 RR |
19427 | { ac_try='test -z "$ac_c_werror_flag" |
19428 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19430 | (eval $ac_try) 2>&5 | |
19431 | ac_status=$? | |
19432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19433 | (exit $ac_status); }; } && | |
19434 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19436 | (eval $ac_try) 2>&5 | |
19437 | ac_status=$? | |
19438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19439 | (exit $ac_status); }; }; then | |
19440 | ac_lo=0 ac_mid=0 | |
19441 | while :; do | |
19442 | cat >conftest.$ac_ext <<_ACEOF | |
19443 | /* confdefs.h. */ | |
19444 | _ACEOF | |
19445 | cat confdefs.h >>conftest.$ac_ext | |
19446 | cat >>conftest.$ac_ext <<_ACEOF | |
19447 | /* end confdefs.h. */ | |
19448 | $ac_includes_default | |
19449 | int | |
19450 | main () | |
19451 | { | |
19452 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
19453 | test_array [0] = 0 | |
19454 | ||
19455 | ; | |
19456 | return 0; | |
19457 | } | |
19458 | _ACEOF | |
19459 | rm -f conftest.$ac_objext | |
19460 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19461 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19462 | ac_status=$? |
ac1cb8d3 VS |
19463 | grep -v '^ *+' conftest.er1 >conftest.err |
19464 | rm -f conftest.er1 | |
19465 | cat conftest.err >&5 | |
a848cd7e SC |
19466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19467 | (exit $ac_status); } && | |
3565d135 RR |
19468 | { ac_try='test -z "$ac_c_werror_flag" |
19469 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19471 | (eval $ac_try) 2>&5 | |
19472 | ac_status=$? | |
19473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19474 | (exit $ac_status); }; } && | |
19475 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19477 | (eval $ac_try) 2>&5 | |
19478 | ac_status=$? | |
19479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19480 | (exit $ac_status); }; }; then | |
19481 | ac_hi=$ac_mid; break | |
19482 | else | |
19483 | echo "$as_me: failed program was:" >&5 | |
19484 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19485 | ||
19486 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
19487 | if test $ac_lo -le $ac_mid; then |
19488 | ac_lo= ac_hi= | |
19489 | break | |
19490 | fi | |
19491 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 19492 | fi |
ac1cb8d3 | 19493 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19494 | done |
19495 | else | |
19496 | echo "$as_me: failed program was:" >&5 | |
19497 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19498 | ||
19499 | cat >conftest.$ac_ext <<_ACEOF | |
19500 | /* confdefs.h. */ | |
19501 | _ACEOF | |
19502 | cat confdefs.h >>conftest.$ac_ext | |
19503 | cat >>conftest.$ac_ext <<_ACEOF | |
19504 | /* end confdefs.h. */ | |
19505 | $ac_includes_default | |
19506 | int | |
19507 | main () | |
19508 | { | |
19509 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
19510 | test_array [0] = 0 | |
19511 | ||
19512 | ; | |
19513 | return 0; | |
19514 | } | |
19515 | _ACEOF | |
19516 | rm -f conftest.$ac_objext | |
19517 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19518 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19519 | ac_status=$? |
ac1cb8d3 VS |
19520 | grep -v '^ *+' conftest.er1 >conftest.err |
19521 | rm -f conftest.er1 | |
19522 | cat conftest.err >&5 | |
a848cd7e SC |
19523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19524 | (exit $ac_status); } && | |
3565d135 RR |
19525 | { ac_try='test -z "$ac_c_werror_flag" |
19526 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19528 | (eval $ac_try) 2>&5 | |
19529 | ac_status=$? | |
19530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19531 | (exit $ac_status); }; } && | |
19532 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19534 | (eval $ac_try) 2>&5 | |
19535 | ac_status=$? | |
19536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19537 | (exit $ac_status); }; }; then | |
19538 | ac_hi=-1 ac_mid=-1 | |
19539 | while :; do | |
19540 | cat >conftest.$ac_ext <<_ACEOF | |
19541 | /* confdefs.h. */ | |
19542 | _ACEOF | |
19543 | cat confdefs.h >>conftest.$ac_ext | |
19544 | cat >>conftest.$ac_ext <<_ACEOF | |
19545 | /* end confdefs.h. */ | |
19546 | $ac_includes_default | |
19547 | int | |
19548 | main () | |
19549 | { | |
19550 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
19551 | test_array [0] = 0 | |
19552 | ||
19553 | ; | |
19554 | return 0; | |
19555 | } | |
19556 | _ACEOF | |
19557 | rm -f conftest.$ac_objext | |
19558 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19559 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19560 | ac_status=$? |
ac1cb8d3 VS |
19561 | grep -v '^ *+' conftest.er1 >conftest.err |
19562 | rm -f conftest.er1 | |
19563 | cat conftest.err >&5 | |
a848cd7e SC |
19564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19565 | (exit $ac_status); } && | |
3565d135 RR |
19566 | { ac_try='test -z "$ac_c_werror_flag" |
19567 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19569 | (eval $ac_try) 2>&5 | |
19570 | ac_status=$? | |
19571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19572 | (exit $ac_status); }; } && | |
19573 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19575 | (eval $ac_try) 2>&5 | |
19576 | ac_status=$? | |
19577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19578 | (exit $ac_status); }; }; then | |
19579 | ac_lo=$ac_mid; break | |
19580 | else | |
19581 | echo "$as_me: failed program was:" >&5 | |
19582 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19583 | ||
19584 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
19585 | if test $ac_mid -le $ac_hi; then |
19586 | ac_lo= ac_hi= | |
19587 | break | |
19588 | fi | |
19589 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 19590 | fi |
ac1cb8d3 | 19591 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19592 | done |
19593 | else | |
19594 | echo "$as_me: failed program was:" >&5 | |
19595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19596 | ||
19597 | ac_lo= ac_hi= | |
19598 | fi | |
ac1cb8d3 | 19599 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 19600 | fi |
ac1cb8d3 | 19601 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19602 | # Binary search between lo and hi bounds. |
19603 | while test "x$ac_lo" != "x$ac_hi"; do | |
19604 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
19605 | cat >conftest.$ac_ext <<_ACEOF | |
19606 | /* confdefs.h. */ | |
19607 | _ACEOF | |
19608 | cat confdefs.h >>conftest.$ac_ext | |
19609 | cat >>conftest.$ac_ext <<_ACEOF | |
19610 | /* end confdefs.h. */ | |
19611 | $ac_includes_default | |
19612 | int | |
19613 | main () | |
19614 | { | |
19615 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
19616 | test_array [0] = 0 | |
19617 | ||
19618 | ; | |
19619 | return 0; | |
19620 | } | |
19621 | _ACEOF | |
19622 | rm -f conftest.$ac_objext | |
19623 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19624 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19625 | ac_status=$? |
ac1cb8d3 VS |
19626 | grep -v '^ *+' conftest.er1 >conftest.err |
19627 | rm -f conftest.er1 | |
19628 | cat conftest.err >&5 | |
a848cd7e SC |
19629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19630 | (exit $ac_status); } && | |
3565d135 RR |
19631 | { ac_try='test -z "$ac_c_werror_flag" |
19632 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19634 | (eval $ac_try) 2>&5 | |
19635 | ac_status=$? | |
19636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19637 | (exit $ac_status); }; } && | |
19638 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19640 | (eval $ac_try) 2>&5 | |
19641 | ac_status=$? | |
19642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19643 | (exit $ac_status); }; }; then | |
19644 | ac_hi=$ac_mid | |
19645 | else | |
19646 | echo "$as_me: failed program was:" >&5 | |
19647 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19648 | ||
19649 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
19650 | fi | |
ac1cb8d3 | 19651 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19652 | done |
19653 | case $ac_lo in | |
19654 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
19655 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
19656 | See \`config.log' for more details." >&5 | |
19657 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
19658 | See \`config.log' for more details." >&2;} | |
19659 | { (exit 1); exit 1; }; } ;; | |
19660 | esac | |
19661 | else | |
19662 | if test "$cross_compiling" = yes; then | |
3565d135 RR |
19663 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
19664 | See \`config.log' for more details." >&5 | |
19665 | echo "$as_me: error: cannot run test program while cross compiling | |
19666 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
19667 | { (exit 1); exit 1; }; } |
19668 | else | |
19669 | cat >conftest.$ac_ext <<_ACEOF | |
19670 | /* confdefs.h. */ | |
19671 | _ACEOF | |
19672 | cat confdefs.h >>conftest.$ac_ext | |
19673 | cat >>conftest.$ac_ext <<_ACEOF | |
19674 | /* end confdefs.h. */ | |
19675 | $ac_includes_default | |
19676 | long longval () { return (long) (sizeof (long long)); } | |
19677 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
19678 | #include <stdio.h> | |
19679 | #include <stdlib.h> | |
19680 | int | |
19681 | main () | |
19682 | { | |
19683 | ||
19684 | FILE *f = fopen ("conftest.val", "w"); | |
19685 | if (! f) | |
19686 | exit (1); | |
19687 | if (((long) (sizeof (long long))) < 0) | |
19688 | { | |
19689 | long i = longval (); | |
19690 | if (i != ((long) (sizeof (long long)))) | |
19691 | exit (1); | |
19692 | fprintf (f, "%ld\n", i); | |
19693 | } | |
19694 | else | |
19695 | { | |
19696 | unsigned long i = ulongval (); | |
19697 | if (i != ((long) (sizeof (long long)))) | |
19698 | exit (1); | |
19699 | fprintf (f, "%lu\n", i); | |
19700 | } | |
19701 | exit (ferror (f) || fclose (f) != 0); | |
19702 | ||
19703 | ; | |
19704 | return 0; | |
19705 | } | |
19706 | _ACEOF | |
19707 | rm -f conftest$ac_exeext | |
19708 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19709 | (eval $ac_link) 2>&5 | |
19710 | ac_status=$? | |
19711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19712 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19714 | (eval $ac_try) 2>&5 | |
19715 | ac_status=$? | |
19716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19717 | (exit $ac_status); }; }; then | |
19718 | ac_cv_sizeof_long_long=`cat conftest.val` | |
19719 | else | |
19720 | echo "$as_me: program exited with status $ac_status" >&5 | |
19721 | echo "$as_me: failed program was:" >&5 | |
19722 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19723 | ||
19724 | ( exit $ac_status ) | |
19725 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
19726 | See \`config.log' for more details." >&5 | |
19727 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
19728 | See \`config.log' for more details." >&2;} | |
19729 | { (exit 1); exit 1; }; } | |
19730 | fi | |
ac1cb8d3 | 19731 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19732 | fi |
19733 | fi | |
19734 | rm -f conftest.val | |
19735 | else | |
19736 | ac_cv_sizeof_long_long=0 | |
19737 | fi | |
19738 | fi | |
19739 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
19740 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
19741 | cat >>confdefs.h <<_ACEOF | |
19742 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
19743 | _ACEOF | |
19744 | ||
19745 | ||
19746 | ;; | |
19747 | *-hp-hpux* ) | |
19748 | echo "$as_me:$LINENO: checking for long long" >&5 | |
19749 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
19750 | if test "${ac_cv_type_long_long+set}" = set; then | |
19751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19752 | else | |
19753 | cat >conftest.$ac_ext <<_ACEOF | |
19754 | /* confdefs.h. */ | |
19755 | _ACEOF | |
19756 | cat confdefs.h >>conftest.$ac_ext | |
19757 | cat >>conftest.$ac_ext <<_ACEOF | |
19758 | /* end confdefs.h. */ | |
19759 | $ac_includes_default | |
19760 | int | |
19761 | main () | |
19762 | { | |
19763 | if ((long long *) 0) | |
19764 | return 0; | |
19765 | if (sizeof (long long)) | |
19766 | return 0; | |
19767 | ; | |
19768 | return 0; | |
19769 | } | |
19770 | _ACEOF | |
19771 | rm -f conftest.$ac_objext | |
19772 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19773 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19774 | ac_status=$? |
ac1cb8d3 VS |
19775 | grep -v '^ *+' conftest.er1 >conftest.err |
19776 | rm -f conftest.er1 | |
19777 | cat conftest.err >&5 | |
a848cd7e SC |
19778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19779 | (exit $ac_status); } && | |
3565d135 RR |
19780 | { ac_try='test -z "$ac_c_werror_flag" |
19781 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19783 | (eval $ac_try) 2>&5 | |
19784 | ac_status=$? | |
19785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19786 | (exit $ac_status); }; } && | |
19787 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19789 | (eval $ac_try) 2>&5 | |
19790 | ac_status=$? | |
19791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19792 | (exit $ac_status); }; }; then | |
19793 | ac_cv_type_long_long=yes | |
19794 | else | |
19795 | echo "$as_me: failed program was:" >&5 | |
19796 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19797 | ||
19798 | ac_cv_type_long_long=no | |
19799 | fi | |
ac1cb8d3 | 19800 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19801 | fi |
19802 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
19803 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
19804 | ||
19805 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
19806 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
19807 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
19808 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19809 | else | |
19810 | if test "$ac_cv_type_long_long" = yes; then | |
19811 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19812 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19813 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19814 | # This bug is HP SR number 8606223364. | |
19815 | if test "$cross_compiling" = yes; then | |
19816 | # Depending upon the size, compute the lo and hi bounds. | |
19817 | cat >conftest.$ac_ext <<_ACEOF | |
19818 | /* confdefs.h. */ | |
19819 | _ACEOF | |
19820 | cat confdefs.h >>conftest.$ac_ext | |
19821 | cat >>conftest.$ac_ext <<_ACEOF | |
19822 | /* end confdefs.h. */ | |
19823 | $ac_includes_default | |
19824 | int | |
19825 | main () | |
19826 | { | |
19827 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
19828 | test_array [0] = 0 | |
19829 | ||
19830 | ; | |
19831 | return 0; | |
19832 | } | |
19833 | _ACEOF | |
19834 | rm -f conftest.$ac_objext | |
19835 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19836 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19837 | ac_status=$? |
ac1cb8d3 VS |
19838 | grep -v '^ *+' conftest.er1 >conftest.err |
19839 | rm -f conftest.er1 | |
19840 | cat conftest.err >&5 | |
a848cd7e SC |
19841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19842 | (exit $ac_status); } && | |
3565d135 RR |
19843 | { ac_try='test -z "$ac_c_werror_flag" |
19844 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19846 | (eval $ac_try) 2>&5 | |
19847 | ac_status=$? | |
19848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19849 | (exit $ac_status); }; } && | |
19850 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19852 | (eval $ac_try) 2>&5 | |
19853 | ac_status=$? | |
19854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19855 | (exit $ac_status); }; }; then | |
19856 | ac_lo=0 ac_mid=0 | |
19857 | while :; do | |
19858 | cat >conftest.$ac_ext <<_ACEOF | |
19859 | /* confdefs.h. */ | |
19860 | _ACEOF | |
19861 | cat confdefs.h >>conftest.$ac_ext | |
19862 | cat >>conftest.$ac_ext <<_ACEOF | |
19863 | /* end confdefs.h. */ | |
19864 | $ac_includes_default | |
19865 | int | |
19866 | main () | |
19867 | { | |
19868 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
19869 | test_array [0] = 0 | |
19870 | ||
19871 | ; | |
19872 | return 0; | |
19873 | } | |
19874 | _ACEOF | |
19875 | rm -f conftest.$ac_objext | |
19876 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19877 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19878 | ac_status=$? |
ac1cb8d3 VS |
19879 | grep -v '^ *+' conftest.er1 >conftest.err |
19880 | rm -f conftest.er1 | |
19881 | cat conftest.err >&5 | |
a848cd7e SC |
19882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19883 | (exit $ac_status); } && | |
3565d135 RR |
19884 | { ac_try='test -z "$ac_c_werror_flag" |
19885 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19887 | (eval $ac_try) 2>&5 | |
19888 | ac_status=$? | |
19889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19890 | (exit $ac_status); }; } && | |
19891 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19893 | (eval $ac_try) 2>&5 | |
19894 | ac_status=$? | |
19895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19896 | (exit $ac_status); }; }; then | |
19897 | ac_hi=$ac_mid; break | |
19898 | else | |
19899 | echo "$as_me: failed program was:" >&5 | |
19900 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19901 | ||
19902 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
19903 | if test $ac_lo -le $ac_mid; then |
19904 | ac_lo= ac_hi= | |
19905 | break | |
19906 | fi | |
19907 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 19908 | fi |
ac1cb8d3 | 19909 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19910 | done |
19911 | else | |
19912 | echo "$as_me: failed program was:" >&5 | |
19913 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19914 | ||
19915 | cat >conftest.$ac_ext <<_ACEOF | |
19916 | /* confdefs.h. */ | |
19917 | _ACEOF | |
19918 | cat confdefs.h >>conftest.$ac_ext | |
19919 | cat >>conftest.$ac_ext <<_ACEOF | |
19920 | /* end confdefs.h. */ | |
19921 | $ac_includes_default | |
19922 | int | |
19923 | main () | |
19924 | { | |
19925 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
19926 | test_array [0] = 0 | |
19927 | ||
19928 | ; | |
19929 | return 0; | |
19930 | } | |
19931 | _ACEOF | |
19932 | rm -f conftest.$ac_objext | |
19933 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19934 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19935 | ac_status=$? |
ac1cb8d3 VS |
19936 | grep -v '^ *+' conftest.er1 >conftest.err |
19937 | rm -f conftest.er1 | |
19938 | cat conftest.err >&5 | |
a848cd7e SC |
19939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19940 | (exit $ac_status); } && | |
3565d135 RR |
19941 | { ac_try='test -z "$ac_c_werror_flag" |
19942 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19944 | (eval $ac_try) 2>&5 | |
19945 | ac_status=$? | |
19946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19947 | (exit $ac_status); }; } && | |
19948 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19950 | (eval $ac_try) 2>&5 | |
19951 | ac_status=$? | |
19952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19953 | (exit $ac_status); }; }; then | |
19954 | ac_hi=-1 ac_mid=-1 | |
19955 | while :; do | |
19956 | cat >conftest.$ac_ext <<_ACEOF | |
19957 | /* confdefs.h. */ | |
19958 | _ACEOF | |
19959 | cat confdefs.h >>conftest.$ac_ext | |
19960 | cat >>conftest.$ac_ext <<_ACEOF | |
19961 | /* end confdefs.h. */ | |
19962 | $ac_includes_default | |
19963 | int | |
19964 | main () | |
19965 | { | |
19966 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
19967 | test_array [0] = 0 | |
19968 | ||
19969 | ; | |
19970 | return 0; | |
19971 | } | |
19972 | _ACEOF | |
19973 | rm -f conftest.$ac_objext | |
19974 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 19975 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 19976 | ac_status=$? |
ac1cb8d3 VS |
19977 | grep -v '^ *+' conftest.er1 >conftest.err |
19978 | rm -f conftest.er1 | |
19979 | cat conftest.err >&5 | |
a848cd7e SC |
19980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19981 | (exit $ac_status); } && | |
3565d135 RR |
19982 | { ac_try='test -z "$ac_c_werror_flag" |
19983 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
19984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19985 | (eval $ac_try) 2>&5 | |
19986 | ac_status=$? | |
19987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19988 | (exit $ac_status); }; } && | |
19989 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
19990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19991 | (eval $ac_try) 2>&5 | |
19992 | ac_status=$? | |
19993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19994 | (exit $ac_status); }; }; then | |
19995 | ac_lo=$ac_mid; break | |
19996 | else | |
19997 | echo "$as_me: failed program was:" >&5 | |
19998 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19999 | ||
20000 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
20001 | if test $ac_mid -le $ac_hi; then |
20002 | ac_lo= ac_hi= | |
20003 | break | |
20004 | fi | |
20005 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 20006 | fi |
ac1cb8d3 | 20007 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20008 | done |
20009 | else | |
20010 | echo "$as_me: failed program was:" >&5 | |
20011 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20012 | ||
20013 | ac_lo= ac_hi= | |
20014 | fi | |
ac1cb8d3 | 20015 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 20016 | fi |
ac1cb8d3 | 20017 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20018 | # Binary search between lo and hi bounds. |
20019 | while test "x$ac_lo" != "x$ac_hi"; do | |
20020 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20021 | cat >conftest.$ac_ext <<_ACEOF | |
20022 | /* confdefs.h. */ | |
20023 | _ACEOF | |
20024 | cat confdefs.h >>conftest.$ac_ext | |
20025 | cat >>conftest.$ac_ext <<_ACEOF | |
20026 | /* end confdefs.h. */ | |
20027 | $ac_includes_default | |
20028 | int | |
20029 | main () | |
20030 | { | |
20031 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20032 | test_array [0] = 0 | |
20033 | ||
20034 | ; | |
20035 | return 0; | |
20036 | } | |
20037 | _ACEOF | |
20038 | rm -f conftest.$ac_objext | |
20039 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20040 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20041 | ac_status=$? |
ac1cb8d3 VS |
20042 | grep -v '^ *+' conftest.er1 >conftest.err |
20043 | rm -f conftest.er1 | |
20044 | cat conftest.err >&5 | |
a848cd7e SC |
20045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20046 | (exit $ac_status); } && | |
3565d135 RR |
20047 | { ac_try='test -z "$ac_c_werror_flag" |
20048 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20050 | (eval $ac_try) 2>&5 | |
20051 | ac_status=$? | |
20052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20053 | (exit $ac_status); }; } && | |
20054 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20056 | (eval $ac_try) 2>&5 | |
20057 | ac_status=$? | |
20058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20059 | (exit $ac_status); }; }; then | |
20060 | ac_hi=$ac_mid | |
20061 | else | |
20062 | echo "$as_me: failed program was:" >&5 | |
20063 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20064 | ||
20065 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
20066 | fi | |
ac1cb8d3 | 20067 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20068 | done |
20069 | case $ac_lo in | |
20070 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
20071 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20072 | See \`config.log' for more details." >&5 | |
20073 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20074 | See \`config.log' for more details." >&2;} | |
20075 | { (exit 1); exit 1; }; } ;; | |
20076 | esac | |
20077 | else | |
20078 | if test "$cross_compiling" = yes; then | |
3565d135 RR |
20079 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
20080 | See \`config.log' for more details." >&5 | |
20081 | echo "$as_me: error: cannot run test program while cross compiling | |
20082 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
20083 | { (exit 1); exit 1; }; } |
20084 | else | |
20085 | cat >conftest.$ac_ext <<_ACEOF | |
20086 | /* confdefs.h. */ | |
20087 | _ACEOF | |
20088 | cat confdefs.h >>conftest.$ac_ext | |
20089 | cat >>conftest.$ac_ext <<_ACEOF | |
20090 | /* end confdefs.h. */ | |
20091 | $ac_includes_default | |
20092 | long longval () { return (long) (sizeof (long long)); } | |
20093 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
20094 | #include <stdio.h> | |
20095 | #include <stdlib.h> | |
20096 | int | |
20097 | main () | |
20098 | { | |
20099 | ||
20100 | FILE *f = fopen ("conftest.val", "w"); | |
20101 | if (! f) | |
20102 | exit (1); | |
20103 | if (((long) (sizeof (long long))) < 0) | |
20104 | { | |
20105 | long i = longval (); | |
20106 | if (i != ((long) (sizeof (long long)))) | |
20107 | exit (1); | |
20108 | fprintf (f, "%ld\n", i); | |
20109 | } | |
20110 | else | |
20111 | { | |
20112 | unsigned long i = ulongval (); | |
20113 | if (i != ((long) (sizeof (long long)))) | |
20114 | exit (1); | |
20115 | fprintf (f, "%lu\n", i); | |
20116 | } | |
20117 | exit (ferror (f) || fclose (f) != 0); | |
20118 | ||
20119 | ; | |
20120 | return 0; | |
20121 | } | |
20122 | _ACEOF | |
20123 | rm -f conftest$ac_exeext | |
20124 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20125 | (eval $ac_link) 2>&5 | |
20126 | ac_status=$? | |
20127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20128 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20130 | (eval $ac_try) 2>&5 | |
20131 | ac_status=$? | |
20132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20133 | (exit $ac_status); }; }; then | |
20134 | ac_cv_sizeof_long_long=`cat conftest.val` | |
20135 | else | |
20136 | echo "$as_me: program exited with status $ac_status" >&5 | |
20137 | echo "$as_me: failed program was:" >&5 | |
20138 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20139 | ||
20140 | ( exit $ac_status ) | |
20141 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20142 | See \`config.log' for more details." >&5 | |
20143 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20144 | See \`config.log' for more details." >&2;} | |
20145 | { (exit 1); exit 1; }; } | |
20146 | fi | |
ac1cb8d3 | 20147 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20148 | fi |
20149 | fi | |
20150 | rm -f conftest.val | |
20151 | else | |
20152 | ac_cv_sizeof_long_long=0 | |
20153 | fi | |
20154 | fi | |
20155 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
20156 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
20157 | cat >>confdefs.h <<_ACEOF | |
20158 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
20159 | _ACEOF | |
20160 | ||
20161 | ||
20162 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
c92ad099 | 20163 | CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS" |
a848cd7e SC |
20164 | fi |
20165 | ;; | |
20166 | * ) | |
20167 | echo "$as_me:$LINENO: checking for long long" >&5 | |
20168 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
20169 | if test "${ac_cv_type_long_long+set}" = set; then | |
20170 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20171 | else | |
20172 | cat >conftest.$ac_ext <<_ACEOF | |
20173 | /* confdefs.h. */ | |
20174 | _ACEOF | |
20175 | cat confdefs.h >>conftest.$ac_ext | |
20176 | cat >>conftest.$ac_ext <<_ACEOF | |
20177 | /* end confdefs.h. */ | |
20178 | $ac_includes_default | |
20179 | int | |
20180 | main () | |
20181 | { | |
20182 | if ((long long *) 0) | |
20183 | return 0; | |
20184 | if (sizeof (long long)) | |
20185 | return 0; | |
20186 | ; | |
20187 | return 0; | |
20188 | } | |
20189 | _ACEOF | |
20190 | rm -f conftest.$ac_objext | |
20191 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20192 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20193 | ac_status=$? |
ac1cb8d3 VS |
20194 | grep -v '^ *+' conftest.er1 >conftest.err |
20195 | rm -f conftest.er1 | |
20196 | cat conftest.err >&5 | |
a848cd7e SC |
20197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20198 | (exit $ac_status); } && | |
3565d135 RR |
20199 | { ac_try='test -z "$ac_c_werror_flag" |
20200 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20202 | (eval $ac_try) 2>&5 | |
20203 | ac_status=$? | |
20204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20205 | (exit $ac_status); }; } && | |
20206 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20208 | (eval $ac_try) 2>&5 | |
20209 | ac_status=$? | |
20210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20211 | (exit $ac_status); }; }; then | |
20212 | ac_cv_type_long_long=yes | |
20213 | else | |
20214 | echo "$as_me: failed program was:" >&5 | |
20215 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20216 | ||
20217 | ac_cv_type_long_long=no | |
20218 | fi | |
ac1cb8d3 | 20219 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20220 | fi |
20221 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
20222 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
20223 | ||
20224 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
20225 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
20226 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
20227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20228 | else | |
20229 | if test "$ac_cv_type_long_long" = yes; then | |
20230 | # The cast to unsigned long works around a bug in the HP C Compiler | |
20231 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20232 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20233 | # This bug is HP SR number 8606223364. | |
20234 | if test "$cross_compiling" = yes; then | |
20235 | # Depending upon the size, compute the lo and hi bounds. | |
20236 | cat >conftest.$ac_ext <<_ACEOF | |
20237 | /* confdefs.h. */ | |
20238 | _ACEOF | |
20239 | cat confdefs.h >>conftest.$ac_ext | |
20240 | cat >>conftest.$ac_ext <<_ACEOF | |
20241 | /* end confdefs.h. */ | |
20242 | $ac_includes_default | |
20243 | int | |
20244 | main () | |
20245 | { | |
20246 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
20247 | test_array [0] = 0 | |
20248 | ||
20249 | ; | |
20250 | return 0; | |
20251 | } | |
20252 | _ACEOF | |
20253 | rm -f conftest.$ac_objext | |
20254 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20255 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20256 | ac_status=$? |
ac1cb8d3 VS |
20257 | grep -v '^ *+' conftest.er1 >conftest.err |
20258 | rm -f conftest.er1 | |
20259 | cat conftest.err >&5 | |
a848cd7e SC |
20260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20261 | (exit $ac_status); } && | |
3565d135 RR |
20262 | { ac_try='test -z "$ac_c_werror_flag" |
20263 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20265 | (eval $ac_try) 2>&5 | |
20266 | ac_status=$? | |
20267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20268 | (exit $ac_status); }; } && | |
20269 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20271 | (eval $ac_try) 2>&5 | |
20272 | ac_status=$? | |
20273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20274 | (exit $ac_status); }; }; then | |
20275 | ac_lo=0 ac_mid=0 | |
20276 | while :; do | |
20277 | cat >conftest.$ac_ext <<_ACEOF | |
20278 | /* confdefs.h. */ | |
20279 | _ACEOF | |
20280 | cat confdefs.h >>conftest.$ac_ext | |
20281 | cat >>conftest.$ac_ext <<_ACEOF | |
20282 | /* end confdefs.h. */ | |
20283 | $ac_includes_default | |
20284 | int | |
20285 | main () | |
20286 | { | |
20287 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20288 | test_array [0] = 0 | |
20289 | ||
20290 | ; | |
20291 | return 0; | |
20292 | } | |
20293 | _ACEOF | |
20294 | rm -f conftest.$ac_objext | |
20295 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20296 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20297 | ac_status=$? |
ac1cb8d3 VS |
20298 | grep -v '^ *+' conftest.er1 >conftest.err |
20299 | rm -f conftest.er1 | |
20300 | cat conftest.err >&5 | |
a848cd7e SC |
20301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20302 | (exit $ac_status); } && | |
3565d135 RR |
20303 | { ac_try='test -z "$ac_c_werror_flag" |
20304 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20306 | (eval $ac_try) 2>&5 | |
20307 | ac_status=$? | |
20308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20309 | (exit $ac_status); }; } && | |
20310 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20312 | (eval $ac_try) 2>&5 | |
20313 | ac_status=$? | |
20314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20315 | (exit $ac_status); }; }; then | |
20316 | ac_hi=$ac_mid; break | |
20317 | else | |
20318 | echo "$as_me: failed program was:" >&5 | |
20319 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20320 | ||
20321 | ac_lo=`expr $ac_mid + 1` | |
ac1cb8d3 VS |
20322 | if test $ac_lo -le $ac_mid; then |
20323 | ac_lo= ac_hi= | |
20324 | break | |
20325 | fi | |
20326 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 20327 | fi |
ac1cb8d3 | 20328 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20329 | done |
20330 | else | |
20331 | echo "$as_me: failed program was:" >&5 | |
20332 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20333 | ||
20334 | cat >conftest.$ac_ext <<_ACEOF | |
20335 | /* confdefs.h. */ | |
20336 | _ACEOF | |
20337 | cat confdefs.h >>conftest.$ac_ext | |
20338 | cat >>conftest.$ac_ext <<_ACEOF | |
20339 | /* end confdefs.h. */ | |
20340 | $ac_includes_default | |
20341 | int | |
20342 | main () | |
20343 | { | |
20344 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
20345 | test_array [0] = 0 | |
20346 | ||
20347 | ; | |
20348 | return 0; | |
20349 | } | |
20350 | _ACEOF | |
20351 | rm -f conftest.$ac_objext | |
20352 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20353 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20354 | ac_status=$? |
ac1cb8d3 VS |
20355 | grep -v '^ *+' conftest.er1 >conftest.err |
20356 | rm -f conftest.er1 | |
20357 | cat conftest.err >&5 | |
a848cd7e SC |
20358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20359 | (exit $ac_status); } && | |
3565d135 RR |
20360 | { ac_try='test -z "$ac_c_werror_flag" |
20361 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20363 | (eval $ac_try) 2>&5 | |
20364 | ac_status=$? | |
20365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20366 | (exit $ac_status); }; } && | |
20367 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20369 | (eval $ac_try) 2>&5 | |
20370 | ac_status=$? | |
20371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20372 | (exit $ac_status); }; }; then | |
20373 | ac_hi=-1 ac_mid=-1 | |
20374 | while :; do | |
20375 | cat >conftest.$ac_ext <<_ACEOF | |
20376 | /* confdefs.h. */ | |
20377 | _ACEOF | |
20378 | cat confdefs.h >>conftest.$ac_ext | |
20379 | cat >>conftest.$ac_ext <<_ACEOF | |
20380 | /* end confdefs.h. */ | |
20381 | $ac_includes_default | |
20382 | int | |
20383 | main () | |
20384 | { | |
20385 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
20386 | test_array [0] = 0 | |
20387 | ||
20388 | ; | |
20389 | return 0; | |
20390 | } | |
20391 | _ACEOF | |
20392 | rm -f conftest.$ac_objext | |
20393 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20394 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20395 | ac_status=$? |
ac1cb8d3 VS |
20396 | grep -v '^ *+' conftest.er1 >conftest.err |
20397 | rm -f conftest.er1 | |
20398 | cat conftest.err >&5 | |
a848cd7e SC |
20399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20400 | (exit $ac_status); } && | |
3565d135 RR |
20401 | { ac_try='test -z "$ac_c_werror_flag" |
20402 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20404 | (eval $ac_try) 2>&5 | |
20405 | ac_status=$? | |
20406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20407 | (exit $ac_status); }; } && | |
20408 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20410 | (eval $ac_try) 2>&5 | |
20411 | ac_status=$? | |
20412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20413 | (exit $ac_status); }; }; then | |
20414 | ac_lo=$ac_mid; break | |
20415 | else | |
20416 | echo "$as_me: failed program was:" >&5 | |
20417 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20418 | ||
20419 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
ac1cb8d3 VS |
20420 | if test $ac_mid -le $ac_hi; then |
20421 | ac_lo= ac_hi= | |
20422 | break | |
20423 | fi | |
20424 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 20425 | fi |
ac1cb8d3 | 20426 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20427 | done |
20428 | else | |
20429 | echo "$as_me: failed program was:" >&5 | |
20430 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20431 | ||
20432 | ac_lo= ac_hi= | |
20433 | fi | |
ac1cb8d3 | 20434 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 20435 | fi |
ac1cb8d3 | 20436 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20437 | # Binary search between lo and hi bounds. |
20438 | while test "x$ac_lo" != "x$ac_hi"; do | |
20439 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20440 | cat >conftest.$ac_ext <<_ACEOF | |
20441 | /* confdefs.h. */ | |
20442 | _ACEOF | |
20443 | cat confdefs.h >>conftest.$ac_ext | |
20444 | cat >>conftest.$ac_ext <<_ACEOF | |
20445 | /* end confdefs.h. */ | |
20446 | $ac_includes_default | |
20447 | int | |
20448 | main () | |
20449 | { | |
20450 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
20451 | test_array [0] = 0 | |
20452 | ||
20453 | ; | |
20454 | return 0; | |
20455 | } | |
20456 | _ACEOF | |
20457 | rm -f conftest.$ac_objext | |
20458 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 20459 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 20460 | ac_status=$? |
ac1cb8d3 VS |
20461 | grep -v '^ *+' conftest.er1 >conftest.err |
20462 | rm -f conftest.er1 | |
20463 | cat conftest.err >&5 | |
a848cd7e SC |
20464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20465 | (exit $ac_status); } && | |
3565d135 RR |
20466 | { ac_try='test -z "$ac_c_werror_flag" |
20467 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
20468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20469 | (eval $ac_try) 2>&5 | |
20470 | ac_status=$? | |
20471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20472 | (exit $ac_status); }; } && | |
20473 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
20474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20475 | (eval $ac_try) 2>&5 | |
20476 | ac_status=$? | |
20477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20478 | (exit $ac_status); }; }; then | |
20479 | ac_hi=$ac_mid | |
20480 | else | |
20481 | echo "$as_me: failed program was:" >&5 | |
20482 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20483 | ||
20484 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
20485 | fi | |
ac1cb8d3 | 20486 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20487 | done |
20488 | case $ac_lo in | |
20489 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
20490 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20491 | See \`config.log' for more details." >&5 | |
20492 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20493 | See \`config.log' for more details." >&2;} | |
20494 | { (exit 1); exit 1; }; } ;; | |
20495 | esac | |
20496 | else | |
20497 | if test "$cross_compiling" = yes; then | |
3565d135 RR |
20498 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
20499 | See \`config.log' for more details." >&5 | |
20500 | echo "$as_me: error: cannot run test program while cross compiling | |
20501 | See \`config.log' for more details." >&2;} | |
a848cd7e SC |
20502 | { (exit 1); exit 1; }; } |
20503 | else | |
20504 | cat >conftest.$ac_ext <<_ACEOF | |
20505 | /* confdefs.h. */ | |
20506 | _ACEOF | |
20507 | cat confdefs.h >>conftest.$ac_ext | |
20508 | cat >>conftest.$ac_ext <<_ACEOF | |
20509 | /* end confdefs.h. */ | |
20510 | $ac_includes_default | |
20511 | long longval () { return (long) (sizeof (long long)); } | |
20512 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
20513 | #include <stdio.h> | |
20514 | #include <stdlib.h> | |
20515 | int | |
20516 | main () | |
20517 | { | |
20518 | ||
20519 | FILE *f = fopen ("conftest.val", "w"); | |
20520 | if (! f) | |
20521 | exit (1); | |
20522 | if (((long) (sizeof (long long))) < 0) | |
20523 | { | |
20524 | long i = longval (); | |
20525 | if (i != ((long) (sizeof (long long)))) | |
20526 | exit (1); | |
20527 | fprintf (f, "%ld\n", i); | |
20528 | } | |
20529 | else | |
20530 | { | |
20531 | unsigned long i = ulongval (); | |
20532 | if (i != ((long) (sizeof (long long)))) | |
20533 | exit (1); | |
20534 | fprintf (f, "%lu\n", i); | |
20535 | } | |
20536 | exit (ferror (f) || fclose (f) != 0); | |
20537 | ||
20538 | ; | |
20539 | return 0; | |
20540 | } | |
20541 | _ACEOF | |
20542 | rm -f conftest$ac_exeext | |
20543 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20544 | (eval $ac_link) 2>&5 | |
20545 | ac_status=$? | |
20546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20547 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20549 | (eval $ac_try) 2>&5 | |
20550 | ac_status=$? | |
20551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20552 | (exit $ac_status); }; }; then | |
20553 | ac_cv_sizeof_long_long=`cat conftest.val` | |
20554 | else | |
20555 | echo "$as_me: program exited with status $ac_status" >&5 | |
20556 | echo "$as_me: failed program was:" >&5 | |
20557 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20558 | ||
20559 | ( exit $ac_status ) | |
20560 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
20561 | See \`config.log' for more details." >&5 | |
20562 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
20563 | See \`config.log' for more details." >&2;} | |
20564 | { (exit 1); exit 1; }; } | |
20565 | fi | |
ac1cb8d3 | 20566 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20567 | fi |
20568 | fi | |
20569 | rm -f conftest.val | |
20570 | else | |
20571 | ac_cv_sizeof_long_long=0 | |
20572 | fi | |
20573 | fi | |
20574 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
20575 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
20576 | cat >>confdefs.h <<_ACEOF | |
20577 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
20578 | _ACEOF | |
20579 | ||
20580 | ||
20581 | esac | |
20582 | ||
238ecede MW |
20583 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
20584 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 | |
20585 | if test "${ac_cv_type_wchar_t+set}" = set; then | |
20586 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20587 | else | |
20588 | cat >conftest.$ac_ext <<_ACEOF | |
20589 | /* confdefs.h. */ | |
20590 | _ACEOF | |
20591 | cat confdefs.h >>conftest.$ac_ext | |
20592 | cat >>conftest.$ac_ext <<_ACEOF | |
20593 | /* end confdefs.h. */ | |
20594 | ||
83d8eb47 MW |
20595 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20596 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20597 | # error "fake wchar_t" |
20598 | #endif | |
20599 | #ifdef HAVE_WCHAR_H | |
20600 | # ifdef __CYGWIN__ | |
20601 | # include <stddef.h> | |
20602 | # endif | |
20603 | # include <wchar.h> | |
20604 | #endif | |
20605 | #ifdef HAVE_STDLIB_H | |
20606 | # include <stdlib.h> | |
20607 | #endif | |
20608 | #include <stdio.h> | |
20609 | ||
20610 | ||
20611 | ||
20612 | int | |
20613 | main () | |
20614 | { | |
20615 | if ((wchar_t *) 0) | |
20616 | return 0; | |
20617 | if (sizeof (wchar_t)) | |
20618 | return 0; | |
20619 | ; | |
20620 | return 0; | |
20621 | } | |
20622 | _ACEOF | |
20623 | rm -f conftest.$ac_objext | |
20624 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20625 | (eval $ac_compile) 2>conftest.er1 | |
20626 | ac_status=$? | |
20627 | grep -v '^ *+' conftest.er1 >conftest.err | |
20628 | rm -f conftest.er1 | |
20629 | cat conftest.err >&5 | |
20630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20631 | (exit $ac_status); } && | |
3565d135 RR |
20632 | { ac_try='test -z "$ac_c_werror_flag" |
20633 | || test ! -s conftest.err' | |
238ecede MW |
20634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20635 | (eval $ac_try) 2>&5 | |
20636 | ac_status=$? | |
20637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20638 | (exit $ac_status); }; } && | |
20639 | { ac_try='test -s conftest.$ac_objext' | |
20640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20641 | (eval $ac_try) 2>&5 | |
20642 | ac_status=$? | |
20643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20644 | (exit $ac_status); }; }; then | |
20645 | ac_cv_type_wchar_t=yes | |
20646 | else | |
20647 | echo "$as_me: failed program was:" >&5 | |
20648 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20649 | ||
20650 | ac_cv_type_wchar_t=no | |
20651 | fi | |
20652 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20653 | fi | |
20654 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 | |
20655 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 | |
20656 | ||
a848cd7e SC |
20657 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
20658 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
238ecede | 20659 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
a848cd7e SC |
20660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20661 | else | |
238ecede MW |
20662 | if test "$ac_cv_type_wchar_t" = yes; then |
20663 | # The cast to unsigned long works around a bug in the HP C Compiler | |
20664 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
20665 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
20666 | # This bug is HP SR number 8606223364. | |
20667 | if test "$cross_compiling" = yes; then | |
20668 | # Depending upon the size, compute the lo and hi bounds. | |
20669 | cat >conftest.$ac_ext <<_ACEOF | |
20670 | /* confdefs.h. */ | |
20671 | _ACEOF | |
20672 | cat confdefs.h >>conftest.$ac_ext | |
20673 | cat >>conftest.$ac_ext <<_ACEOF | |
20674 | /* end confdefs.h. */ | |
20675 | ||
83d8eb47 MW |
20676 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20677 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20678 | # error "fake wchar_t" |
20679 | #endif | |
20680 | #ifdef HAVE_WCHAR_H | |
20681 | # ifdef __CYGWIN__ | |
20682 | # include <stddef.h> | |
20683 | # endif | |
20684 | # include <wchar.h> | |
20685 | #endif | |
20686 | #ifdef HAVE_STDLIB_H | |
20687 | # include <stdlib.h> | |
20688 | #endif | |
20689 | #include <stdio.h> | |
20690 | ||
20691 | ||
20692 | ||
20693 | int | |
20694 | main () | |
20695 | { | |
20696 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; | |
20697 | test_array [0] = 0 | |
20698 | ||
20699 | ; | |
20700 | return 0; | |
20701 | } | |
20702 | _ACEOF | |
20703 | rm -f conftest.$ac_objext | |
20704 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20705 | (eval $ac_compile) 2>conftest.er1 | |
20706 | ac_status=$? | |
20707 | grep -v '^ *+' conftest.er1 >conftest.err | |
20708 | rm -f conftest.er1 | |
20709 | cat conftest.err >&5 | |
20710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20711 | (exit $ac_status); } && | |
3565d135 RR |
20712 | { ac_try='test -z "$ac_c_werror_flag" |
20713 | || test ! -s conftest.err' | |
238ecede MW |
20714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20715 | (eval $ac_try) 2>&5 | |
20716 | ac_status=$? | |
20717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20718 | (exit $ac_status); }; } && | |
20719 | { ac_try='test -s conftest.$ac_objext' | |
20720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20721 | (eval $ac_try) 2>&5 | |
20722 | ac_status=$? | |
20723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20724 | (exit $ac_status); }; }; then | |
20725 | ac_lo=0 ac_mid=0 | |
20726 | while :; do | |
20727 | cat >conftest.$ac_ext <<_ACEOF | |
20728 | /* confdefs.h. */ | |
20729 | _ACEOF | |
20730 | cat confdefs.h >>conftest.$ac_ext | |
20731 | cat >>conftest.$ac_ext <<_ACEOF | |
20732 | /* end confdefs.h. */ | |
20733 | ||
83d8eb47 MW |
20734 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20735 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20736 | # error "fake wchar_t" |
20737 | #endif | |
20738 | #ifdef HAVE_WCHAR_H | |
20739 | # ifdef __CYGWIN__ | |
20740 | # include <stddef.h> | |
20741 | # endif | |
20742 | # include <wchar.h> | |
20743 | #endif | |
20744 | #ifdef HAVE_STDLIB_H | |
20745 | # include <stdlib.h> | |
20746 | #endif | |
20747 | #include <stdio.h> | |
20748 | ||
20749 | ||
20750 | ||
20751 | int | |
20752 | main () | |
20753 | { | |
20754 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
20755 | test_array [0] = 0 | |
20756 | ||
20757 | ; | |
20758 | return 0; | |
20759 | } | |
20760 | _ACEOF | |
20761 | rm -f conftest.$ac_objext | |
20762 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20763 | (eval $ac_compile) 2>conftest.er1 | |
20764 | ac_status=$? | |
20765 | grep -v '^ *+' conftest.er1 >conftest.err | |
20766 | rm -f conftest.er1 | |
20767 | cat conftest.err >&5 | |
20768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20769 | (exit $ac_status); } && | |
3565d135 RR |
20770 | { ac_try='test -z "$ac_c_werror_flag" |
20771 | || test ! -s conftest.err' | |
238ecede MW |
20772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20773 | (eval $ac_try) 2>&5 | |
20774 | ac_status=$? | |
20775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20776 | (exit $ac_status); }; } && | |
20777 | { ac_try='test -s conftest.$ac_objext' | |
20778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20779 | (eval $ac_try) 2>&5 | |
20780 | ac_status=$? | |
20781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20782 | (exit $ac_status); }; }; then | |
20783 | ac_hi=$ac_mid; break | |
20784 | else | |
20785 | echo "$as_me: failed program was:" >&5 | |
20786 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20787 | ||
20788 | ac_lo=`expr $ac_mid + 1` | |
20789 | if test $ac_lo -le $ac_mid; then | |
20790 | ac_lo= ac_hi= | |
20791 | break | |
20792 | fi | |
20793 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
20794 | fi | |
20795 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20796 | done | |
20797 | else | |
20798 | echo "$as_me: failed program was:" >&5 | |
20799 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20800 | ||
20801 | cat >conftest.$ac_ext <<_ACEOF | |
20802 | /* confdefs.h. */ | |
20803 | _ACEOF | |
20804 | cat confdefs.h >>conftest.$ac_ext | |
20805 | cat >>conftest.$ac_ext <<_ACEOF | |
20806 | /* end confdefs.h. */ | |
20807 | ||
83d8eb47 MW |
20808 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20809 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20810 | # error "fake wchar_t" |
20811 | #endif | |
20812 | #ifdef HAVE_WCHAR_H | |
20813 | # ifdef __CYGWIN__ | |
20814 | # include <stddef.h> | |
20815 | # endif | |
20816 | # include <wchar.h> | |
20817 | #endif | |
20818 | #ifdef HAVE_STDLIB_H | |
20819 | # include <stdlib.h> | |
20820 | #endif | |
20821 | #include <stdio.h> | |
20822 | ||
20823 | ||
20824 | ||
20825 | int | |
20826 | main () | |
20827 | { | |
20828 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; | |
20829 | test_array [0] = 0 | |
20830 | ||
20831 | ; | |
20832 | return 0; | |
20833 | } | |
20834 | _ACEOF | |
20835 | rm -f conftest.$ac_objext | |
20836 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20837 | (eval $ac_compile) 2>conftest.er1 | |
20838 | ac_status=$? | |
20839 | grep -v '^ *+' conftest.er1 >conftest.err | |
20840 | rm -f conftest.er1 | |
20841 | cat conftest.err >&5 | |
20842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20843 | (exit $ac_status); } && | |
3565d135 RR |
20844 | { ac_try='test -z "$ac_c_werror_flag" |
20845 | || test ! -s conftest.err' | |
238ecede MW |
20846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20847 | (eval $ac_try) 2>&5 | |
20848 | ac_status=$? | |
20849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20850 | (exit $ac_status); }; } && | |
20851 | { ac_try='test -s conftest.$ac_objext' | |
20852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20853 | (eval $ac_try) 2>&5 | |
20854 | ac_status=$? | |
20855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20856 | (exit $ac_status); }; }; then | |
20857 | ac_hi=-1 ac_mid=-1 | |
20858 | while :; do | |
20859 | cat >conftest.$ac_ext <<_ACEOF | |
20860 | /* confdefs.h. */ | |
20861 | _ACEOF | |
20862 | cat confdefs.h >>conftest.$ac_ext | |
20863 | cat >>conftest.$ac_ext <<_ACEOF | |
20864 | /* end confdefs.h. */ | |
20865 | ||
83d8eb47 MW |
20866 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20867 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20868 | # error "fake wchar_t" |
20869 | #endif | |
20870 | #ifdef HAVE_WCHAR_H | |
20871 | # ifdef __CYGWIN__ | |
20872 | # include <stddef.h> | |
20873 | # endif | |
20874 | # include <wchar.h> | |
20875 | #endif | |
20876 | #ifdef HAVE_STDLIB_H | |
20877 | # include <stdlib.h> | |
20878 | #endif | |
20879 | #include <stdio.h> | |
20880 | ||
20881 | ||
20882 | ||
20883 | int | |
20884 | main () | |
20885 | { | |
20886 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; | |
20887 | test_array [0] = 0 | |
20888 | ||
20889 | ; | |
20890 | return 0; | |
20891 | } | |
20892 | _ACEOF | |
20893 | rm -f conftest.$ac_objext | |
20894 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20895 | (eval $ac_compile) 2>conftest.er1 | |
20896 | ac_status=$? | |
20897 | grep -v '^ *+' conftest.er1 >conftest.err | |
20898 | rm -f conftest.er1 | |
20899 | cat conftest.err >&5 | |
20900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20901 | (exit $ac_status); } && | |
3565d135 RR |
20902 | { ac_try='test -z "$ac_c_werror_flag" |
20903 | || test ! -s conftest.err' | |
238ecede MW |
20904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20905 | (eval $ac_try) 2>&5 | |
20906 | ac_status=$? | |
20907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20908 | (exit $ac_status); }; } && | |
20909 | { ac_try='test -s conftest.$ac_objext' | |
20910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20911 | (eval $ac_try) 2>&5 | |
20912 | ac_status=$? | |
20913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20914 | (exit $ac_status); }; }; then | |
20915 | ac_lo=$ac_mid; break | |
20916 | else | |
20917 | echo "$as_me: failed program was:" >&5 | |
20918 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20919 | ||
20920 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
20921 | if test $ac_mid -le $ac_hi; then | |
20922 | ac_lo= ac_hi= | |
20923 | break | |
20924 | fi | |
20925 | ac_mid=`expr 2 '*' $ac_mid` | |
20926 | fi | |
20927 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20928 | done | |
20929 | else | |
20930 | echo "$as_me: failed program was:" >&5 | |
20931 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20932 | ||
20933 | ac_lo= ac_hi= | |
20934 | fi | |
20935 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20936 | fi | |
20937 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20938 | # Binary search between lo and hi bounds. | |
20939 | while test "x$ac_lo" != "x$ac_hi"; do | |
20940 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
20941 | cat >conftest.$ac_ext <<_ACEOF | |
20942 | /* confdefs.h. */ | |
20943 | _ACEOF | |
20944 | cat confdefs.h >>conftest.$ac_ext | |
20945 | cat >>conftest.$ac_ext <<_ACEOF | |
20946 | /* end confdefs.h. */ | |
20947 | ||
83d8eb47 MW |
20948 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
20949 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
20950 | # error "fake wchar_t" |
20951 | #endif | |
20952 | #ifdef HAVE_WCHAR_H | |
20953 | # ifdef __CYGWIN__ | |
20954 | # include <stddef.h> | |
20955 | # endif | |
20956 | # include <wchar.h> | |
20957 | #endif | |
20958 | #ifdef HAVE_STDLIB_H | |
20959 | # include <stdlib.h> | |
20960 | #endif | |
20961 | #include <stdio.h> | |
a848cd7e | 20962 | |
a848cd7e | 20963 | |
a848cd7e | 20964 | |
238ecede MW |
20965 | int |
20966 | main () | |
20967 | { | |
20968 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; | |
20969 | test_array [0] = 0 | |
a848cd7e | 20970 | |
238ecede MW |
20971 | ; |
20972 | return 0; | |
20973 | } | |
20974 | _ACEOF | |
20975 | rm -f conftest.$ac_objext | |
20976 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20977 | (eval $ac_compile) 2>conftest.er1 | |
20978 | ac_status=$? | |
20979 | grep -v '^ *+' conftest.er1 >conftest.err | |
20980 | rm -f conftest.er1 | |
20981 | cat conftest.err >&5 | |
20982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20983 | (exit $ac_status); } && | |
3565d135 RR |
20984 | { ac_try='test -z "$ac_c_werror_flag" |
20985 | || test ! -s conftest.err' | |
238ecede MW |
20986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20987 | (eval $ac_try) 2>&5 | |
20988 | ac_status=$? | |
20989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20990 | (exit $ac_status); }; } && | |
20991 | { ac_try='test -s conftest.$ac_objext' | |
20992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20993 | (eval $ac_try) 2>&5 | |
20994 | ac_status=$? | |
20995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20996 | (exit $ac_status); }; }; then | |
20997 | ac_hi=$ac_mid | |
20998 | else | |
20999 | echo "$as_me: failed program was:" >&5 | |
21000 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21001 | ||
21002 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
21003 | fi | |
21004 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21005 | done | |
21006 | case $ac_lo in | |
21007 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; | |
21008 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 | |
21009 | See \`config.log' for more details." >&5 | |
21010 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
21011 | See \`config.log' for more details." >&2;} | |
21012 | { (exit 1); exit 1; }; } ;; | |
21013 | esac | |
21014 | else | |
21015 | if test "$cross_compiling" = yes; then | |
3565d135 RR |
21016 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
21017 | See \`config.log' for more details." >&5 | |
21018 | echo "$as_me: error: cannot run test program while cross compiling | |
21019 | See \`config.log' for more details." >&2;} | |
238ecede | 21020 | { (exit 1); exit 1; }; } |
a848cd7e SC |
21021 | else |
21022 | cat >conftest.$ac_ext <<_ACEOF | |
21023 | /* confdefs.h. */ | |
21024 | _ACEOF | |
21025 | cat confdefs.h >>conftest.$ac_ext | |
21026 | cat >>conftest.$ac_ext <<_ACEOF | |
21027 | /* end confdefs.h. */ | |
21028 | ||
83d8eb47 MW |
21029 | /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */ |
21030 | #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 ) | |
238ecede MW |
21031 | # error "fake wchar_t" |
21032 | #endif | |
21033 | #ifdef HAVE_WCHAR_H | |
21034 | # ifdef __CYGWIN__ | |
21035 | # include <stddef.h> | |
21036 | # endif | |
21037 | # include <wchar.h> | |
21038 | #endif | |
21039 | #ifdef HAVE_STDLIB_H | |
21040 | # include <stdlib.h> | |
21041 | #endif | |
21042 | #include <stdio.h> | |
21043 | ||
21044 | ||
21045 | ||
21046 | long longval () { return (long) (sizeof (wchar_t)); } | |
21047 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } | |
21048 | #include <stdio.h> | |
21049 | #include <stdlib.h> | |
21050 | int | |
21051 | main () | |
21052 | { | |
a848cd7e | 21053 | |
238ecede MW |
21054 | FILE *f = fopen ("conftest.val", "w"); |
21055 | if (! f) | |
21056 | exit (1); | |
21057 | if (((long) (sizeof (wchar_t))) < 0) | |
21058 | { | |
21059 | long i = longval (); | |
21060 | if (i != ((long) (sizeof (wchar_t)))) | |
21061 | exit (1); | |
21062 | fprintf (f, "%ld\n", i); | |
21063 | } | |
21064 | else | |
21065 | { | |
21066 | unsigned long i = ulongval (); | |
21067 | if (i != ((long) (sizeof (wchar_t)))) | |
21068 | exit (1); | |
21069 | fprintf (f, "%lu\n", i); | |
21070 | } | |
21071 | exit (ferror (f) || fclose (f) != 0); | |
21072 | ||
21073 | ; | |
21074 | return 0; | |
21075 | } | |
a848cd7e SC |
21076 | _ACEOF |
21077 | rm -f conftest$ac_exeext | |
21078 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21079 | (eval $ac_link) 2>&5 | |
21080 | ac_status=$? | |
21081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21082 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21084 | (eval $ac_try) 2>&5 | |
21085 | ac_status=$? | |
21086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21087 | (exit $ac_status); }; }; then | |
238ecede | 21088 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
a848cd7e SC |
21089 | else |
21090 | echo "$as_me: program exited with status $ac_status" >&5 | |
21091 | echo "$as_me: failed program was:" >&5 | |
21092 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21093 | ||
21094 | ( exit $ac_status ) | |
238ecede MW |
21095 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77 |
21096 | See \`config.log' for more details." >&5 | |
21097 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77 | |
21098 | See \`config.log' for more details." >&2;} | |
21099 | { (exit 1); exit 1; }; } | |
a848cd7e | 21100 | fi |
ac1cb8d3 | 21101 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 21102 | fi |
a848cd7e | 21103 | fi |
238ecede MW |
21104 | rm -f conftest.val |
21105 | else | |
21106 | ac_cv_sizeof_wchar_t=0 | |
21107 | fi | |
21108 | fi | |
21109 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 | |
21110 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 | |
a848cd7e | 21111 | cat >>confdefs.h <<_ACEOF |
238ecede | 21112 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
a848cd7e SC |
21113 | _ACEOF |
21114 | ||
21115 | ||
47a7e797 MW |
21116 | if test "$ac_cv_sizeof_wchar_t" != "0"; then |
21117 | wxUSE_WCHAR_T=yes | |
21118 | else | |
21119 | wxUSE_WCHAR_T=no | |
21120 | fi | |
238ecede | 21121 | |
ba3d13e1 VZ |
21122 | echo "$as_me:$LINENO: checking for va_copy" >&5 |
21123 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6 | |
21124 | if test "${wx_cv_func_va_copy+set}" = set; then | |
21125 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21126 | else | |
21127 | ||
21128 | cat >conftest.$ac_ext <<_ACEOF | |
21129 | ||
21130 | #include <stdarg.h> | |
21131 | void foo(char *f, ...) | |
21132 | { | |
21133 | va_list ap1, ap2; | |
21134 | va_start(ap1, f); | |
21135 | va_copy(ap2, ap1); | |
21136 | va_end(ap2); | |
21137 | va_end(ap1); | |
21138 | } | |
5886b072 VZ |
21139 | int main() |
21140 | { | |
b902e639 VZ |
21141 | foo("hi", 17); |
21142 | return 0; | |
5886b072 | 21143 | } |
ba3d13e1 VZ |
21144 | _ACEOF |
21145 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21146 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21147 | (eval $ac_link) 2>conftest.er1 | |
21148 | ac_status=$? | |
21149 | grep -v '^ *+' conftest.er1 >conftest.err | |
21150 | rm -f conftest.er1 | |
21151 | cat conftest.err >&5 | |
21152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21153 | (exit $ac_status); } && | |
3565d135 RR |
21154 | { ac_try='test -z "$ac_c_werror_flag" |
21155 | || test ! -s conftest.err' | |
ba3d13e1 VZ |
21156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21157 | (eval $ac_try) 2>&5 | |
21158 | ac_status=$? | |
21159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21160 | (exit $ac_status); }; } && | |
21161 | { ac_try='test -s conftest$ac_exeext' | |
21162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21163 | (eval $ac_try) 2>&5 | |
21164 | ac_status=$? | |
21165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21166 | (exit $ac_status); }; }; then | |
21167 | wx_cv_func_va_copy=yes | |
21168 | else | |
21169 | echo "$as_me: failed program was:" >&5 | |
21170 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21171 | ||
21172 | wx_cv_func_va_copy=no | |
21173 | ||
21174 | fi | |
21175 | rm -f conftest.err conftest.$ac_objext \ | |
21176 | conftest$ac_exeext conftest.$ac_ext | |
21177 | ||
21178 | ||
21179 | fi | |
21180 | echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5 | |
21181 | echo "${ECHO_T}$wx_cv_func_va_copy" >&6 | |
21182 | ||
21183 | if test $wx_cv_func_va_copy = "yes"; then | |
21184 | cat >>confdefs.h <<\_ACEOF | |
21185 | #define HAVE_VA_COPY 1 | |
21186 | _ACEOF | |
21187 | ||
21188 | else | |
21189 | echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5 | |
21190 | echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6 | |
21191 | if test "${wx_cv_type_va_list_lvalue+set}" = set; then | |
21192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21193 | else | |
21194 | ||
21195 | if test "$cross_compiling" = yes; then | |
21196 | wx_cv_type_va_list_lvalue=yes | |
21197 | ||
21198 | else | |
21199 | cat >conftest.$ac_ext <<_ACEOF | |
21200 | ||
21201 | #include <stdarg.h> | |
21202 | int foo(char *f, ...) | |
21203 | { | |
21204 | va_list ap1, ap2; | |
21205 | va_start(ap1, f); | |
21206 | ap2 = ap1; | |
21207 | if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 ) | |
21208 | return 1; | |
21209 | va_end(ap2); | |
21210 | va_end(ap1); | |
21211 | return 0; | |
21212 | } | |
21213 | int main() | |
21214 | { | |
21215 | return foo("hi", 17); | |
21216 | } | |
21217 | _ACEOF | |
21218 | rm -f conftest$ac_exeext | |
21219 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21220 | (eval $ac_link) 2>&5 | |
21221 | ac_status=$? | |
21222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21223 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
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 | wx_cv_type_va_list_lvalue=yes | |
21230 | else | |
21231 | echo "$as_me: program exited with status $ac_status" >&5 | |
21232 | echo "$as_me: failed program was:" >&5 | |
21233 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21234 | ||
21235 | ( exit $ac_status ) | |
21236 | wx_cv_type_va_list_lvalue=no | |
21237 | fi | |
21238 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
21239 | fi | |
21240 | ||
21241 | ||
21242 | fi | |
21243 | echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5 | |
21244 | echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6 | |
21245 | ||
21246 | if test $wx_cv_type_va_list_lvalue != "yes"; then | |
21247 | cat >>confdefs.h <<\_ACEOF | |
21248 | #define VA_LIST_IS_ARRAY 1 | |
21249 | _ACEOF | |
21250 | ||
21251 | fi | |
21252 | fi | |
21253 | ||
a848cd7e SC |
21254 | # Check whether --enable-largefile or --disable-largefile was given. |
21255 | if test "${enable_largefile+set}" = set; then | |
21256 | enableval="$enable_largefile" | |
21257 | ||
21258 | fi; | |
21259 | if test "$enable_largefile" != no; then | |
21260 | wx_largefile=no | |
21261 | ||
21262 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
21263 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
21264 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
21265 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21266 | else | |
21267 | ||
21268 | cat >conftest.$ac_ext <<_ACEOF | |
21269 | /* confdefs.h. */ | |
21270 | _ACEOF | |
21271 | cat confdefs.h >>conftest.$ac_ext | |
21272 | cat >>conftest.$ac_ext <<_ACEOF | |
21273 | /* end confdefs.h. */ | |
21274 | #define _FILE_OFFSET_BITS 64 | |
21275 | #include <sys/types.h> | |
21276 | int | |
21277 | main () | |
21278 | { | |
21279 | typedef struct { | |
21280 | unsigned int field: sizeof(off_t) == 8; | |
21281 | } wxlf; | |
21282 | ||
21283 | ; | |
21284 | return 0; | |
21285 | } | |
21286 | _ACEOF | |
21287 | rm -f conftest.$ac_objext | |
21288 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21289 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21290 | ac_status=$? |
ac1cb8d3 VS |
21291 | grep -v '^ *+' conftest.er1 >conftest.err |
21292 | rm -f conftest.er1 | |
21293 | cat conftest.err >&5 | |
a848cd7e SC |
21294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21295 | (exit $ac_status); } && | |
3565d135 RR |
21296 | { ac_try='test -z "$ac_c_werror_flag" |
21297 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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); }; } && | |
21303 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21305 | (eval $ac_try) 2>&5 | |
21306 | ac_status=$? | |
21307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21308 | (exit $ac_status); }; }; then | |
21309 | ac_cv_sys_file_offset_bits=64 | |
21310 | else | |
21311 | echo "$as_me: failed program was:" >&5 | |
21312 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21313 | ||
21314 | ac_cv_sys_file_offset_bits=no | |
21315 | fi | |
ac1cb8d3 | 21316 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21317 | |
21318 | ||
21319 | fi | |
21320 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
21321 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
21322 | ||
21323 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
21324 | wx_largefile=yes | |
21325 | cat >>confdefs.h <<_ACEOF | |
21326 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
21327 | _ACEOF | |
21328 | ||
21329 | fi | |
21330 | ||
21331 | if test "x$wx_largefile" != "xyes"; then | |
21332 | ||
21333 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
21334 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
21335 | if test "${ac_cv_sys_large_files+set}" = set; then | |
21336 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21337 | else | |
21338 | ||
21339 | cat >conftest.$ac_ext <<_ACEOF | |
21340 | /* confdefs.h. */ | |
21341 | _ACEOF | |
21342 | cat confdefs.h >>conftest.$ac_ext | |
21343 | cat >>conftest.$ac_ext <<_ACEOF | |
21344 | /* end confdefs.h. */ | |
21345 | #define _LARGE_FILES 1 | |
21346 | #include <sys/types.h> | |
21347 | int | |
21348 | main () | |
21349 | { | |
21350 | typedef struct { | |
21351 | unsigned int field: sizeof(off_t) == 8; | |
21352 | } wxlf; | |
21353 | ||
21354 | ; | |
21355 | return 0; | |
21356 | } | |
21357 | _ACEOF | |
21358 | rm -f conftest.$ac_objext | |
21359 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21360 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21361 | ac_status=$? |
ac1cb8d3 VS |
21362 | grep -v '^ *+' conftest.er1 >conftest.err |
21363 | rm -f conftest.er1 | |
21364 | cat conftest.err >&5 | |
a848cd7e SC |
21365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21366 | (exit $ac_status); } && | |
3565d135 RR |
21367 | { ac_try='test -z "$ac_c_werror_flag" |
21368 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21370 | (eval $ac_try) 2>&5 | |
21371 | ac_status=$? | |
21372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21373 | (exit $ac_status); }; } && | |
21374 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21376 | (eval $ac_try) 2>&5 | |
21377 | ac_status=$? | |
21378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21379 | (exit $ac_status); }; }; then | |
21380 | ac_cv_sys_large_files=1 | |
21381 | else | |
21382 | echo "$as_me: failed program was:" >&5 | |
21383 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21384 | ||
21385 | ac_cv_sys_large_files=no | |
21386 | fi | |
ac1cb8d3 | 21387 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21388 | |
21389 | ||
21390 | fi | |
21391 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
21392 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
21393 | ||
21394 | if test "$ac_cv_sys_large_files" != no; then | |
21395 | wx_largefile=yes | |
21396 | cat >>confdefs.h <<_ACEOF | |
21397 | #define _LARGE_FILES $ac_cv_sys_large_files | |
21398 | _ACEOF | |
21399 | ||
21400 | fi | |
21401 | ||
21402 | fi | |
21403 | ||
21404 | echo "$as_me:$LINENO: checking if large file support is available" >&5 | |
21405 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
21406 | if test "x$wx_largefile" = "xyes"; then | |
21407 | cat >>confdefs.h <<\_ACEOF | |
21408 | #define HAVE_LARGEFILE_SUPPORT 1 | |
21409 | _ACEOF | |
21410 | ||
21411 | fi | |
21412 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 | |
21413 | echo "${ECHO_T}$wx_largefile" >&6 | |
21414 | fi | |
21415 | ||
5b674b9d DE |
21416 | |
21417 | if test "x$wx_largefile" = "xyes"; then | |
21418 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then | |
5ff751d6 | 21419 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" |
00421666 MW |
21420 | |
21421 | if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then | |
21422 | echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5 | |
21423 | echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6 | |
21424 | if test "${wx_cv_STDC_EXT_required+set}" = set; then | |
21425 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21426 | else | |
21427 | ||
21428 | ||
21429 | ||
21430 | ac_ext=cc | |
21431 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21432 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21433 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21434 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21435 | ||
21436 | cat >conftest.$ac_ext <<_ACEOF | |
21437 | /* confdefs.h. */ | |
21438 | _ACEOF | |
21439 | cat confdefs.h >>conftest.$ac_ext | |
21440 | cat >>conftest.$ac_ext <<_ACEOF | |
21441 | /* end confdefs.h. */ | |
21442 | ||
21443 | int | |
21444 | main () | |
21445 | { | |
21446 | ||
21447 | #ifndef __STDC_EXT__ | |
21448 | choke me | |
21449 | #endif | |
21450 | ||
21451 | ; | |
21452 | return 0; | |
21453 | } | |
21454 | _ACEOF | |
21455 | rm -f conftest.$ac_objext | |
21456 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21457 | (eval $ac_compile) 2>conftest.er1 | |
21458 | ac_status=$? | |
21459 | grep -v '^ *+' conftest.er1 >conftest.err | |
21460 | rm -f conftest.er1 | |
21461 | cat conftest.err >&5 | |
21462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21463 | (exit $ac_status); } && | |
3565d135 RR |
21464 | { ac_try='test -z "$ac_cxx_werror_flag" |
21465 | || test ! -s conftest.err' | |
00421666 MW |
21466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21467 | (eval $ac_try) 2>&5 | |
21468 | ac_status=$? | |
21469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21470 | (exit $ac_status); }; } && | |
21471 | { ac_try='test -s conftest.$ac_objext' | |
21472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21473 | (eval $ac_try) 2>&5 | |
21474 | ac_status=$? | |
21475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21476 | (exit $ac_status); }; }; then | |
21477 | wx_cv_STDC_EXT_required=no | |
21478 | else | |
21479 | echo "$as_me: failed program was:" >&5 | |
21480 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21481 | ||
21482 | wx_cv_STDC_EXT_required=yes | |
21483 | ||
21484 | fi | |
21485 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21486 | ac_ext=c | |
21487 | ac_cpp='$CPP $CPPFLAGS' | |
21488 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21489 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21490 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21491 | ||
21492 | ||
21493 | ||
21494 | fi | |
21495 | echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5 | |
21496 | echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6 | |
21497 | if test "x$wx_cv_STDC_EXT_required" = "xyes"; then | |
5ff751d6 | 21498 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__" |
00421666 MW |
21499 | fi |
21500 | fi | |
5b674b9d | 21501 | else |
5ff751d6 | 21502 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES" |
5b674b9d DE |
21503 | fi |
21504 | echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | |
5294a27e VZ |
21505 | echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
21506 | if test "${ac_cv_sys_largefile_source+set}" = set; then | |
21507 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21508 | else | |
21509 | while :; do | |
21510 | ac_cv_sys_largefile_source=no | |
21511 | cat >conftest.$ac_ext <<_ACEOF | |
21512 | /* confdefs.h. */ | |
21513 | _ACEOF | |
21514 | cat confdefs.h >>conftest.$ac_ext | |
21515 | cat >>conftest.$ac_ext <<_ACEOF | |
21516 | /* end confdefs.h. */ | |
21517 | #include <stdio.h> | |
21518 | int | |
21519 | main () | |
21520 | { | |
21521 | return !fseeko; | |
21522 | ; | |
21523 | return 0; | |
21524 | } | |
21525 | _ACEOF | |
21526 | rm -f conftest.$ac_objext | |
21527 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21528 | (eval $ac_compile) 2>conftest.er1 | |
21529 | ac_status=$? | |
21530 | grep -v '^ *+' conftest.er1 >conftest.err | |
21531 | rm -f conftest.er1 | |
21532 | cat conftest.err >&5 | |
21533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21534 | (exit $ac_status); } && | |
3565d135 RR |
21535 | { ac_try='test -z "$ac_c_werror_flag" |
21536 | || test ! -s conftest.err' | |
5294a27e VZ |
21537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21538 | (eval $ac_try) 2>&5 | |
21539 | ac_status=$? | |
21540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21541 | (exit $ac_status); }; } && | |
21542 | { ac_try='test -s conftest.$ac_objext' | |
21543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21544 | (eval $ac_try) 2>&5 | |
21545 | ac_status=$? | |
21546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21547 | (exit $ac_status); }; }; then | |
21548 | break | |
21549 | else | |
21550 | echo "$as_me: failed program was:" >&5 | |
21551 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21552 | ||
21553 | fi | |
21554 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21555 | cat >conftest.$ac_ext <<_ACEOF | |
21556 | /* confdefs.h. */ | |
21557 | _ACEOF | |
21558 | cat confdefs.h >>conftest.$ac_ext | |
21559 | cat >>conftest.$ac_ext <<_ACEOF | |
21560 | /* end confdefs.h. */ | |
21561 | #define _LARGEFILE_SOURCE 1 | |
21562 | #include <stdio.h> | |
21563 | int | |
21564 | main () | |
21565 | { | |
21566 | return !fseeko; | |
21567 | ; | |
21568 | return 0; | |
21569 | } | |
21570 | _ACEOF | |
21571 | rm -f conftest.$ac_objext | |
21572 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21573 | (eval $ac_compile) 2>conftest.er1 | |
21574 | ac_status=$? | |
21575 | grep -v '^ *+' conftest.er1 >conftest.err | |
21576 | rm -f conftest.er1 | |
21577 | cat conftest.err >&5 | |
21578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21579 | (exit $ac_status); } && | |
3565d135 RR |
21580 | { ac_try='test -z "$ac_c_werror_flag" |
21581 | || test ! -s conftest.err' | |
5294a27e VZ |
21582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21583 | (eval $ac_try) 2>&5 | |
21584 | ac_status=$? | |
21585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21586 | (exit $ac_status); }; } && | |
21587 | { ac_try='test -s conftest.$ac_objext' | |
21588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21589 | (eval $ac_try) 2>&5 | |
21590 | ac_status=$? | |
21591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21592 | (exit $ac_status); }; }; then | |
21593 | ac_cv_sys_largefile_source=1; break | |
21594 | else | |
21595 | echo "$as_me: failed program was:" >&5 | |
21596 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21597 | ||
21598 | fi | |
21599 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21600 | break | |
21601 | done | |
21602 | fi | |
21603 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 | |
21604 | echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 | |
21605 | if test "$ac_cv_sys_largefile_source" != no; then | |
21606 | ||
21607 | cat >>confdefs.h <<_ACEOF | |
21608 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
21609 | _ACEOF | |
21610 | ||
21611 | fi | |
21612 | rm -f conftest* | |
21613 | ||
21614 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | |
21615 | # in glibc 2.1.3, but that breaks too many other things. | |
21616 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
21617 | echo "$as_me:$LINENO: checking for fseeko" >&5 | |
21618 | echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 | |
21619 | if test "${ac_cv_func_fseeko+set}" = set; then | |
21620 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21621 | else | |
21622 | cat >conftest.$ac_ext <<_ACEOF | |
21623 | /* confdefs.h. */ | |
21624 | _ACEOF | |
21625 | cat confdefs.h >>conftest.$ac_ext | |
21626 | cat >>conftest.$ac_ext <<_ACEOF | |
21627 | /* end confdefs.h. */ | |
21628 | #include <stdio.h> | |
21629 | int | |
21630 | main () | |
21631 | { | |
21632 | return fseeko && fseeko (stdin, 0, 0); | |
21633 | ; | |
21634 | return 0; | |
21635 | } | |
21636 | _ACEOF | |
21637 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21638 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21639 | (eval $ac_link) 2>conftest.er1 | |
21640 | ac_status=$? | |
21641 | grep -v '^ *+' conftest.er1 >conftest.err | |
21642 | rm -f conftest.er1 | |
21643 | cat conftest.err >&5 | |
21644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21645 | (exit $ac_status); } && | |
3565d135 RR |
21646 | { ac_try='test -z "$ac_c_werror_flag" |
21647 | || test ! -s conftest.err' | |
5294a27e VZ |
21648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21649 | (eval $ac_try) 2>&5 | |
21650 | ac_status=$? | |
21651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21652 | (exit $ac_status); }; } && | |
21653 | { ac_try='test -s conftest$ac_exeext' | |
21654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21655 | (eval $ac_try) 2>&5 | |
21656 | ac_status=$? | |
21657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21658 | (exit $ac_status); }; }; then | |
21659 | ac_cv_func_fseeko=yes | |
21660 | else | |
21661 | echo "$as_me: failed program was:" >&5 | |
21662 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21663 | ||
21664 | ac_cv_func_fseeko=no | |
21665 | fi | |
21666 | rm -f conftest.err conftest.$ac_objext \ | |
21667 | conftest$ac_exeext conftest.$ac_ext | |
21668 | fi | |
21669 | echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5 | |
21670 | echo "${ECHO_T}$ac_cv_func_fseeko" >&6 | |
21671 | if test $ac_cv_func_fseeko = yes; then | |
21672 | ||
21673 | cat >>confdefs.h <<\_ACEOF | |
21674 | #define HAVE_FSEEKO 1 | |
21675 | _ACEOF | |
21676 | ||
21677 | fi | |
21678 | ||
5b674b9d | 21679 | if test "$ac_cv_sys_largefile_source" != no; then |
5ff751d6 | 21680 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source" |
a848cd7e | 21681 | fi |
a848cd7e SC |
21682 | fi |
21683 | ||
21684 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
21685 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
21686 | if test "${ac_cv_c_bigendian+set}" = set; then | |
21687 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21688 | else | |
21689 | ac_cv_c_bigendian=unknown | |
21690 | # See if sys/param.h defines the BYTE_ORDER macro. | |
21691 | cat >conftest.$ac_ext <<_ACEOF | |
21692 | /* confdefs.h. */ | |
21693 | _ACEOF | |
21694 | cat confdefs.h >>conftest.$ac_ext | |
21695 | cat >>conftest.$ac_ext <<_ACEOF | |
21696 | /* end confdefs.h. */ | |
21697 | #include <sys/types.h> | |
21698 | #include <sys/param.h> | |
21699 | int | |
21700 | main () | |
21701 | { | |
21702 | ||
21703 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
21704 | bogus endian macros | |
21705 | #endif | |
21706 | ; | |
21707 | return 0; | |
21708 | } | |
21709 | _ACEOF | |
21710 | rm -f conftest.$ac_objext | |
21711 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21712 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21713 | ac_status=$? |
ac1cb8d3 VS |
21714 | grep -v '^ *+' conftest.er1 >conftest.err |
21715 | rm -f conftest.er1 | |
21716 | cat conftest.err >&5 | |
a848cd7e SC |
21717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21718 | (exit $ac_status); } && | |
3565d135 RR |
21719 | { ac_try='test -z "$ac_c_werror_flag" |
21720 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21722 | (eval $ac_try) 2>&5 | |
21723 | ac_status=$? | |
21724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21725 | (exit $ac_status); }; } && | |
21726 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21728 | (eval $ac_try) 2>&5 | |
21729 | ac_status=$? | |
21730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21731 | (exit $ac_status); }; }; then | |
21732 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
21733 | cat >conftest.$ac_ext <<_ACEOF | |
21734 | /* confdefs.h. */ | |
21735 | _ACEOF | |
21736 | cat confdefs.h >>conftest.$ac_ext | |
21737 | cat >>conftest.$ac_ext <<_ACEOF | |
21738 | /* end confdefs.h. */ | |
21739 | #include <sys/types.h> | |
21740 | #include <sys/param.h> | |
21741 | int | |
21742 | main () | |
21743 | { | |
21744 | ||
21745 | #if BYTE_ORDER != BIG_ENDIAN | |
21746 | not big endian | |
21747 | #endif | |
21748 | ; | |
21749 | return 0; | |
21750 | } | |
21751 | _ACEOF | |
21752 | rm -f conftest.$ac_objext | |
21753 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 21754 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 21755 | ac_status=$? |
ac1cb8d3 VS |
21756 | grep -v '^ *+' conftest.er1 >conftest.err |
21757 | rm -f conftest.er1 | |
21758 | cat conftest.err >&5 | |
a848cd7e SC |
21759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21760 | (exit $ac_status); } && | |
3565d135 RR |
21761 | { ac_try='test -z "$ac_c_werror_flag" |
21762 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
21763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21764 | (eval $ac_try) 2>&5 | |
21765 | ac_status=$? | |
21766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21767 | (exit $ac_status); }; } && | |
21768 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
21769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21770 | (eval $ac_try) 2>&5 | |
21771 | ac_status=$? | |
21772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21773 | (exit $ac_status); }; }; then | |
21774 | ac_cv_c_bigendian=yes | |
21775 | else | |
21776 | echo "$as_me: failed program was:" >&5 | |
21777 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21778 | ||
21779 | ac_cv_c_bigendian=no | |
21780 | fi | |
ac1cb8d3 | 21781 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21782 | else |
21783 | echo "$as_me: failed program was:" >&5 | |
21784 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21785 | ||
21786 | fi | |
ac1cb8d3 | 21787 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21788 | if test $ac_cv_c_bigendian = unknown; then |
21789 | if test "$cross_compiling" = yes; then | |
21790 | ac_cv_c_bigendian=unknown | |
21791 | else | |
21792 | cat >conftest.$ac_ext <<_ACEOF | |
21793 | /* confdefs.h. */ | |
21794 | _ACEOF | |
21795 | cat confdefs.h >>conftest.$ac_ext | |
21796 | cat >>conftest.$ac_ext <<_ACEOF | |
21797 | /* end confdefs.h. */ | |
21798 | main () { | |
21799 | /* Are we little or big endian? From Harbison&Steele. */ | |
21800 | union | |
21801 | { | |
21802 | long l; | |
21803 | char c[sizeof (long)]; | |
21804 | } u; | |
21805 | u.l = 1; | |
21806 | exit (u.c[sizeof (long) - 1] == 1); | |
21807 | } | |
21808 | _ACEOF | |
21809 | rm -f conftest$ac_exeext | |
21810 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21811 | (eval $ac_link) 2>&5 | |
21812 | ac_status=$? | |
21813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21814 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
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); }; }; then | |
21820 | ac_cv_c_bigendian=no | |
21821 | else | |
21822 | echo "$as_me: program exited with status $ac_status" >&5 | |
21823 | echo "$as_me: failed program was:" >&5 | |
21824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21825 | ||
21826 | ( exit $ac_status ) | |
21827 | ac_cv_c_bigendian=yes | |
21828 | fi | |
ac1cb8d3 | 21829 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21830 | fi |
21831 | fi | |
21832 | fi | |
21833 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
21834 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
21835 | if test $ac_cv_c_bigendian = unknown; then | |
21836 | { 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 | |
21837 | 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;} | |
21838 | fi | |
21839 | if test $ac_cv_c_bigendian = yes; then | |
21840 | cat >>confdefs.h <<\_ACEOF | |
21841 | #define WORDS_BIGENDIAN 1 | |
21842 | _ACEOF | |
21843 | ||
21844 | fi | |
21845 | ||
21846 | ||
21847 | ac_ext=cc | |
21848 | ac_cpp='$CXXCPP $CPPFLAGS' | |
21849 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21850 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21851 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21852 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
21853 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
21854 | if test -z "$CXXCPP"; then | |
21855 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
21856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21857 | else | |
21858 | # Double quotes because CXXCPP needs to be expanded | |
21859 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
21860 | do | |
21861 | ac_preproc_ok=false | |
21862 | for ac_cxx_preproc_warn_flag in '' yes | |
21863 | do | |
21864 | # Use a header file that comes with gcc, so configuring glibc | |
21865 | # with a fresh cross-compiler works. | |
21866 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21867 | # <limits.h> exists even on freestanding compilers. | |
21868 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
21869 | # not just through cpp. "Syntax error" is here to catch this case. | |
21870 | cat >conftest.$ac_ext <<_ACEOF | |
21871 | /* confdefs.h. */ | |
21872 | _ACEOF | |
21873 | cat confdefs.h >>conftest.$ac_ext | |
21874 | cat >>conftest.$ac_ext <<_ACEOF | |
21875 | /* end confdefs.h. */ | |
21876 | #ifdef __STDC__ | |
21877 | # include <limits.h> | |
21878 | #else | |
21879 | # include <assert.h> | |
21880 | #endif | |
ac1cb8d3 | 21881 | Syntax error |
a848cd7e SC |
21882 | _ACEOF |
21883 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21884 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21885 | ac_status=$? | |
21886 | grep -v '^ *+' conftest.er1 >conftest.err | |
21887 | rm -f conftest.er1 | |
21888 | cat conftest.err >&5 | |
21889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21890 | (exit $ac_status); } >/dev/null; then | |
21891 | if test -s conftest.err; then | |
21892 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 21893 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
21894 | else |
21895 | ac_cpp_err= | |
21896 | fi | |
21897 | else | |
21898 | ac_cpp_err=yes | |
21899 | fi | |
21900 | if test -z "$ac_cpp_err"; then | |
21901 | : | |
21902 | else | |
21903 | echo "$as_me: failed program was:" >&5 | |
21904 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21905 | ||
21906 | # Broken: fails on valid input. | |
21907 | continue | |
21908 | fi | |
21909 | rm -f conftest.err conftest.$ac_ext | |
21910 | ||
21911 | # OK, works on sane cases. Now check whether non-existent headers | |
21912 | # can be detected and how. | |
21913 | cat >conftest.$ac_ext <<_ACEOF | |
21914 | /* confdefs.h. */ | |
21915 | _ACEOF | |
21916 | cat confdefs.h >>conftest.$ac_ext | |
21917 | cat >>conftest.$ac_ext <<_ACEOF | |
21918 | /* end confdefs.h. */ | |
21919 | #include <ac_nonexistent.h> | |
21920 | _ACEOF | |
21921 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21922 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21923 | ac_status=$? | |
21924 | grep -v '^ *+' conftest.er1 >conftest.err | |
21925 | rm -f conftest.er1 | |
21926 | cat conftest.err >&5 | |
21927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21928 | (exit $ac_status); } >/dev/null; then | |
21929 | if test -s conftest.err; then | |
21930 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 21931 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
21932 | else |
21933 | ac_cpp_err= | |
21934 | fi | |
21935 | else | |
21936 | ac_cpp_err=yes | |
21937 | fi | |
21938 | if test -z "$ac_cpp_err"; then | |
21939 | # Broken: success on invalid input. | |
21940 | continue | |
21941 | else | |
21942 | echo "$as_me: failed program was:" >&5 | |
21943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21944 | ||
21945 | # Passes both tests. | |
21946 | ac_preproc_ok=: | |
21947 | break | |
21948 | fi | |
21949 | rm -f conftest.err conftest.$ac_ext | |
21950 | ||
21951 | done | |
21952 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
21953 | rm -f conftest.err conftest.$ac_ext | |
21954 | if $ac_preproc_ok; then | |
21955 | break | |
21956 | fi | |
21957 | ||
21958 | done | |
21959 | ac_cv_prog_CXXCPP=$CXXCPP | |
21960 | ||
21961 | fi | |
21962 | CXXCPP=$ac_cv_prog_CXXCPP | |
21963 | else | |
21964 | ac_cv_prog_CXXCPP=$CXXCPP | |
21965 | fi | |
21966 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
21967 | echo "${ECHO_T}$CXXCPP" >&6 | |
21968 | ac_preproc_ok=false | |
21969 | for ac_cxx_preproc_warn_flag in '' yes | |
21970 | do | |
21971 | # Use a header file that comes with gcc, so configuring glibc | |
21972 | # with a fresh cross-compiler works. | |
21973 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21974 | # <limits.h> exists even on freestanding compilers. | |
21975 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
21976 | # not just through cpp. "Syntax error" is here to catch this case. | |
21977 | cat >conftest.$ac_ext <<_ACEOF | |
21978 | /* confdefs.h. */ | |
21979 | _ACEOF | |
21980 | cat confdefs.h >>conftest.$ac_ext | |
21981 | cat >>conftest.$ac_ext <<_ACEOF | |
21982 | /* end confdefs.h. */ | |
21983 | #ifdef __STDC__ | |
21984 | # include <limits.h> | |
21985 | #else | |
21986 | # include <assert.h> | |
21987 | #endif | |
ac1cb8d3 | 21988 | Syntax error |
a848cd7e SC |
21989 | _ACEOF |
21990 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21991 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21992 | ac_status=$? | |
21993 | grep -v '^ *+' conftest.er1 >conftest.err | |
21994 | rm -f conftest.er1 | |
21995 | cat conftest.err >&5 | |
21996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21997 | (exit $ac_status); } >/dev/null; then | |
21998 | if test -s conftest.err; then | |
21999 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 22000 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
22001 | else |
22002 | ac_cpp_err= | |
22003 | fi | |
22004 | else | |
22005 | ac_cpp_err=yes | |
22006 | fi | |
22007 | if test -z "$ac_cpp_err"; then | |
22008 | : | |
22009 | else | |
22010 | echo "$as_me: failed program was:" >&5 | |
22011 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22012 | ||
22013 | # Broken: fails on valid input. | |
22014 | continue | |
22015 | fi | |
22016 | rm -f conftest.err conftest.$ac_ext | |
22017 | ||
22018 | # OK, works on sane cases. Now check whether non-existent headers | |
22019 | # can be detected and how. | |
22020 | cat >conftest.$ac_ext <<_ACEOF | |
22021 | /* confdefs.h. */ | |
22022 | _ACEOF | |
22023 | cat confdefs.h >>conftest.$ac_ext | |
22024 | cat >>conftest.$ac_ext <<_ACEOF | |
22025 | /* end confdefs.h. */ | |
22026 | #include <ac_nonexistent.h> | |
22027 | _ACEOF | |
22028 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22029 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22030 | ac_status=$? | |
22031 | grep -v '^ *+' conftest.er1 >conftest.err | |
22032 | rm -f conftest.er1 | |
22033 | cat conftest.err >&5 | |
22034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22035 | (exit $ac_status); } >/dev/null; then | |
22036 | if test -s conftest.err; then | |
22037 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 22038 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
22039 | else |
22040 | ac_cpp_err= | |
22041 | fi | |
22042 | else | |
22043 | ac_cpp_err=yes | |
22044 | fi | |
22045 | if test -z "$ac_cpp_err"; then | |
22046 | # Broken: success on invalid input. | |
22047 | continue | |
22048 | else | |
22049 | echo "$as_me: failed program was:" >&5 | |
22050 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22051 | ||
22052 | # Passes both tests. | |
22053 | ac_preproc_ok=: | |
22054 | break | |
22055 | fi | |
22056 | rm -f conftest.err conftest.$ac_ext | |
22057 | ||
22058 | done | |
22059 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
22060 | rm -f conftest.err conftest.$ac_ext | |
22061 | if $ac_preproc_ok; then | |
22062 | : | |
22063 | else | |
22064 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
22065 | See \`config.log' for more details." >&5 | |
22066 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
22067 | See \`config.log' for more details." >&2;} | |
22068 | { (exit 1); exit 1; }; } | |
22069 | fi | |
22070 | ||
22071 | ac_ext=cc | |
22072 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22073 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22074 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22075 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22076 | ||
22077 | ||
22078 | ||
22079 | ||
22080 | ||
22081 | ac_ext=cc | |
22082 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22083 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22084 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22085 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22086 | ||
22087 | ||
22088 | ||
22089 | for ac_header in iostream | |
22090 | do | |
22091 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
22092 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22093 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22094 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22095 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22096 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22097 | fi | |
22098 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22099 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22100 | else | |
22101 | # Is the header compilable? | |
22102 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
22103 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
22104 | cat >conftest.$ac_ext <<_ACEOF | |
22105 | /* confdefs.h. */ | |
22106 | _ACEOF | |
22107 | cat confdefs.h >>conftest.$ac_ext | |
22108 | cat >>conftest.$ac_ext <<_ACEOF | |
22109 | /* end confdefs.h. */ | |
22110 | $ac_includes_default | |
22111 | #include <$ac_header> | |
22112 | _ACEOF | |
22113 | rm -f conftest.$ac_objext | |
22114 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22115 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22116 | ac_status=$? |
ac1cb8d3 VS |
22117 | grep -v '^ *+' conftest.er1 >conftest.err |
22118 | rm -f conftest.er1 | |
22119 | cat conftest.err >&5 | |
a848cd7e SC |
22120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22121 | (exit $ac_status); } && | |
3565d135 RR |
22122 | { ac_try='test -z "$ac_cxx_werror_flag" |
22123 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22125 | (eval $ac_try) 2>&5 | |
22126 | ac_status=$? | |
22127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22128 | (exit $ac_status); }; } && | |
22129 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22131 | (eval $ac_try) 2>&5 | |
22132 | ac_status=$? | |
22133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22134 | (exit $ac_status); }; }; then | |
22135 | ac_header_compiler=yes | |
22136 | else | |
22137 | echo "$as_me: failed program was:" >&5 | |
22138 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22139 | ||
22140 | ac_header_compiler=no | |
22141 | fi | |
ac1cb8d3 | 22142 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22143 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22144 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
22145 | ||
22146 | # Is the header present? | |
22147 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
22148 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
22149 | cat >conftest.$ac_ext <<_ACEOF | |
22150 | /* confdefs.h. */ | |
22151 | _ACEOF | |
22152 | cat confdefs.h >>conftest.$ac_ext | |
22153 | cat >>conftest.$ac_ext <<_ACEOF | |
22154 | /* end confdefs.h. */ | |
22155 | #include <$ac_header> | |
22156 | _ACEOF | |
22157 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22158 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22159 | ac_status=$? | |
22160 | grep -v '^ *+' conftest.er1 >conftest.err | |
22161 | rm -f conftest.er1 | |
22162 | cat conftest.err >&5 | |
22163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22164 | (exit $ac_status); } >/dev/null; then | |
22165 | if test -s conftest.err; then | |
22166 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 22167 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a848cd7e SC |
22168 | else |
22169 | ac_cpp_err= | |
22170 | fi | |
22171 | else | |
22172 | ac_cpp_err=yes | |
22173 | fi | |
22174 | if test -z "$ac_cpp_err"; then | |
22175 | ac_header_preproc=yes | |
22176 | else | |
22177 | echo "$as_me: failed program was:" >&5 | |
22178 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22179 | ||
22180 | ac_header_preproc=no | |
22181 | fi | |
22182 | rm -f conftest.err conftest.$ac_ext | |
22183 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
22184 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
22185 | ||
22186 | # So? What about this header? | |
ac1cb8d3 VS |
22187 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
22188 | yes:no: ) | |
a848cd7e SC |
22189 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
22190 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
22191 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
22192 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
22193 | ac_header_preproc=yes | |
a848cd7e | 22194 | ;; |
ac1cb8d3 | 22195 | no:yes:* ) |
a848cd7e SC |
22196 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
22197 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
22198 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
22199 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
22200 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
22201 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
22202 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
22203 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
22204 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
22205 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
22206 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
22207 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
22208 | ( |
22209 | cat <<\_ASBOX | |
ac1cb8d3 VS |
22210 | ## ----------------------------------------- ## |
22211 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
22212 | ## ----------------------------------------- ## | |
a848cd7e SC |
22213 | _ASBOX |
22214 | ) | | |
22215 | sed "s/^/$as_me: WARNING: /" >&2 | |
22216 | ;; | |
22217 | esac | |
22218 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22219 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22220 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22222 | else | |
ac1cb8d3 | 22223 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
22224 | fi |
22225 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22226 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22227 | ||
22228 | fi | |
22229 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
22230 | cat >>confdefs.h <<_ACEOF | |
22231 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
22232 | _ACEOF | |
22233 | ||
22234 | fi | |
22235 | ||
22236 | done | |
22237 | ||
22238 | ||
22239 | if test "$ac_cv_header_iostream" = "yes" ; then | |
22240 | : | |
22241 | else | |
22242 | cat >>confdefs.h <<\_ACEOF | |
22243 | #define wxUSE_IOSTREAMH 1 | |
22244 | _ACEOF | |
22245 | ||
22246 | fi | |
22247 | ||
22248 | ac_ext=c | |
22249 | ac_cpp='$CPP $CPPFLAGS' | |
22250 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22251 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22252 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22253 | ||
22254 | ||
22255 | ||
22256 | ||
22257 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 | |
22258 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
22259 | if test "${wx_cv_cpp_bool+set}" = set; then | |
22260 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22261 | else | |
22262 | ||
22263 | ||
22264 | ||
22265 | ac_ext=cc | |
22266 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22267 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22268 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22269 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22270 | ||
22271 | ||
22272 | cat >conftest.$ac_ext <<_ACEOF | |
22273 | /* confdefs.h. */ | |
22274 | _ACEOF | |
22275 | cat confdefs.h >>conftest.$ac_ext | |
22276 | cat >>conftest.$ac_ext <<_ACEOF | |
22277 | /* end confdefs.h. */ | |
22278 | ||
22279 | ||
22280 | int | |
22281 | main () | |
22282 | { | |
22283 | ||
22284 | bool b = true; | |
22285 | ||
22286 | return 0; | |
22287 | ||
22288 | ; | |
22289 | return 0; | |
22290 | } | |
22291 | _ACEOF | |
22292 | rm -f conftest.$ac_objext | |
22293 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22294 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22295 | ac_status=$? |
ac1cb8d3 VS |
22296 | grep -v '^ *+' conftest.er1 >conftest.err |
22297 | rm -f conftest.er1 | |
22298 | cat conftest.err >&5 | |
a848cd7e SC |
22299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22300 | (exit $ac_status); } && | |
3565d135 RR |
22301 | { ac_try='test -z "$ac_cxx_werror_flag" |
22302 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22304 | (eval $ac_try) 2>&5 | |
22305 | ac_status=$? | |
22306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22307 | (exit $ac_status); }; } && | |
22308 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22310 | (eval $ac_try) 2>&5 | |
22311 | ac_status=$? | |
22312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22313 | (exit $ac_status); }; }; then | |
22314 | ||
22315 | wx_cv_cpp_bool=yes | |
22316 | ||
22317 | else | |
22318 | echo "$as_me: failed program was:" >&5 | |
22319 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22320 | ||
22321 | ||
22322 | wx_cv_cpp_bool=no | |
22323 | ||
22324 | ||
22325 | fi | |
ac1cb8d3 | 22326 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22327 | |
22328 | ac_ext=c | |
22329 | ac_cpp='$CPP $CPPFLAGS' | |
22330 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22331 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22332 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22333 | ||
22334 | ||
22335 | fi | |
22336 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
22337 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
22338 | ||
22339 | if test "$wx_cv_cpp_bool" = "yes"; then | |
22340 | cat >>confdefs.h <<\_ACEOF | |
22341 | #define HAVE_BOOL 1 | |
22342 | _ACEOF | |
22343 | ||
22344 | fi | |
22345 | ||
22346 | ||
22347 | ||
22348 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 | |
22349 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
22350 | if test "${wx_cv_explicit+set}" = set; then | |
22351 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22352 | else | |
22353 | ||
22354 | ||
22355 | ||
22356 | ac_ext=cc | |
22357 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22358 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22359 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22360 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22361 | ||
22362 | ||
22363 | cat >conftest.$ac_ext <<_ACEOF | |
22364 | /* confdefs.h. */ | |
22365 | _ACEOF | |
22366 | cat confdefs.h >>conftest.$ac_ext | |
22367 | cat >>conftest.$ac_ext <<_ACEOF | |
22368 | /* end confdefs.h. */ | |
22369 | ||
22370 | class Foo { public: explicit Foo(int) {} }; | |
22371 | ||
22372 | int | |
22373 | main () | |
22374 | { | |
22375 | ||
22376 | return 0; | |
22377 | ||
22378 | ; | |
22379 | return 0; | |
22380 | } | |
22381 | _ACEOF | |
22382 | rm -f conftest.$ac_objext | |
22383 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22384 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22385 | ac_status=$? |
ac1cb8d3 VS |
22386 | grep -v '^ *+' conftest.er1 >conftest.err |
22387 | rm -f conftest.er1 | |
22388 | cat conftest.err >&5 | |
a848cd7e SC |
22389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22390 | (exit $ac_status); } && | |
3565d135 RR |
22391 | { ac_try='test -z "$ac_cxx_werror_flag" |
22392 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22394 | (eval $ac_try) 2>&5 | |
22395 | ac_status=$? | |
22396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22397 | (exit $ac_status); }; } && | |
22398 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22400 | (eval $ac_try) 2>&5 | |
22401 | ac_status=$? | |
22402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22403 | (exit $ac_status); }; }; then | |
22404 | ||
22405 | cat >conftest.$ac_ext <<_ACEOF | |
22406 | /* confdefs.h. */ | |
22407 | _ACEOF | |
22408 | cat confdefs.h >>conftest.$ac_ext | |
22409 | cat >>conftest.$ac_ext <<_ACEOF | |
22410 | /* end confdefs.h. */ | |
22411 | ||
22412 | class Foo { public: explicit Foo(int) {} }; | |
22413 | static void TakeFoo(const Foo& foo) { } | |
22414 | ||
22415 | int | |
22416 | main () | |
22417 | { | |
22418 | ||
22419 | TakeFoo(17); | |
22420 | return 0; | |
22421 | ||
22422 | ; | |
22423 | return 0; | |
22424 | } | |
22425 | _ACEOF | |
22426 | rm -f conftest.$ac_objext | |
22427 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22428 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22429 | ac_status=$? |
ac1cb8d3 VS |
22430 | grep -v '^ *+' conftest.er1 >conftest.err |
22431 | rm -f conftest.er1 | |
22432 | cat conftest.err >&5 | |
a848cd7e SC |
22433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22434 | (exit $ac_status); } && | |
3565d135 RR |
22435 | { ac_try='test -z "$ac_cxx_werror_flag" |
22436 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22438 | (eval $ac_try) 2>&5 | |
22439 | ac_status=$? | |
22440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22441 | (exit $ac_status); }; } && | |
22442 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22444 | (eval $ac_try) 2>&5 | |
22445 | ac_status=$? | |
22446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22447 | (exit $ac_status); }; }; then | |
22448 | wx_cv_explicit=no | |
22449 | else | |
22450 | echo "$as_me: failed program was:" >&5 | |
22451 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22452 | ||
22453 | wx_cv_explicit=yes | |
22454 | ||
22455 | fi | |
ac1cb8d3 | 22456 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22457 | |
22458 | else | |
22459 | echo "$as_me: failed program was:" >&5 | |
22460 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22461 | ||
22462 | wx_cv_explicit=no | |
22463 | ||
22464 | fi | |
ac1cb8d3 | 22465 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22466 | |
22467 | ac_ext=c | |
22468 | ac_cpp='$CPP $CPPFLAGS' | |
22469 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22470 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22471 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22472 | ||
22473 | ||
22474 | fi | |
22475 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
22476 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
22477 | ||
22478 | if test "$wx_cv_explicit" = "yes"; then | |
22479 | cat >>confdefs.h <<\_ACEOF | |
22480 | #define HAVE_EXPLICIT 1 | |
22481 | _ACEOF | |
22482 | ||
22483 | fi | |
22484 | ||
22485 | ||
22486 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 | |
22487 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
22488 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
22489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22490 | else | |
22491 | ||
22492 | ||
22493 | ac_ext=cc | |
22494 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22495 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22496 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22497 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22498 | ||
22499 | cat >conftest.$ac_ext <<_ACEOF | |
22500 | /* confdefs.h. */ | |
22501 | _ACEOF | |
22502 | cat confdefs.h >>conftest.$ac_ext | |
22503 | cat >>conftest.$ac_ext <<_ACEOF | |
22504 | /* end confdefs.h. */ | |
22505 | ||
22506 | int | |
22507 | main () | |
22508 | { | |
22509 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
22510 | ; | |
22511 | return 0; | |
22512 | } | |
22513 | _ACEOF | |
22514 | rm -f conftest.$ac_objext | |
22515 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22516 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22517 | ac_status=$? |
ac1cb8d3 VS |
22518 | grep -v '^ *+' conftest.er1 >conftest.err |
22519 | rm -f conftest.er1 | |
22520 | cat conftest.err >&5 | |
a848cd7e SC |
22521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22522 | (exit $ac_status); } && | |
3565d135 RR |
22523 | { ac_try='test -z "$ac_cxx_werror_flag" |
22524 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22526 | (eval $ac_try) 2>&5 | |
22527 | ac_status=$? | |
22528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22529 | (exit $ac_status); }; } && | |
22530 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22532 | (eval $ac_try) 2>&5 | |
22533 | ac_status=$? | |
22534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22535 | (exit $ac_status); }; }; then | |
22536 | ac_cv_cxx_const_cast=yes | |
22537 | else | |
22538 | echo "$as_me: failed program was:" >&5 | |
22539 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22540 | ||
22541 | ac_cv_cxx_const_cast=no | |
22542 | fi | |
ac1cb8d3 | 22543 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22544 | ac_ext=c |
22545 | ac_cpp='$CPP $CPPFLAGS' | |
22546 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22547 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22548 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22549 | ||
22550 | ||
22551 | fi | |
22552 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 | |
22553 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
22554 | if test "$ac_cv_cxx_const_cast" = yes; then | |
22555 | ||
22556 | cat >>confdefs.h <<\_ACEOF | |
22557 | #define HAVE_CONST_CAST | |
22558 | _ACEOF | |
22559 | ||
22560 | fi | |
22561 | ||
7714864e RL |
22562 | echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5 |
22563 | echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6 | |
22564 | if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then | |
22565 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22566 | else | |
22567 | ||
22568 | ||
22569 | ac_ext=cc | |
22570 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22571 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22572 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22573 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22574 | ||
22575 | cat >conftest.$ac_ext <<_ACEOF | |
22576 | /* confdefs.h. */ | |
22577 | _ACEOF | |
22578 | cat confdefs.h >>conftest.$ac_ext | |
22579 | cat >>conftest.$ac_ext <<_ACEOF | |
22580 | /* end confdefs.h. */ | |
22581 | #include <typeinfo> | |
22582 | class Base { public : Base () {} virtual void f () = 0;}; | |
22583 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
22584 | class Unrelated { public : Unrelated () {} }; | |
22585 | int g (Unrelated&) { return 0; } | |
22586 | int | |
22587 | main () | |
22588 | { | |
22589 | ||
22590 | Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e); | |
22591 | ; | |
22592 | return 0; | |
22593 | } | |
22594 | _ACEOF | |
22595 | rm -f conftest.$ac_objext | |
22596 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22597 | (eval $ac_compile) 2>conftest.er1 | |
22598 | ac_status=$? | |
22599 | grep -v '^ *+' conftest.er1 >conftest.err | |
22600 | rm -f conftest.er1 | |
22601 | cat conftest.err >&5 | |
22602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22603 | (exit $ac_status); } && | |
3565d135 RR |
22604 | { ac_try='test -z "$ac_cxx_werror_flag" |
22605 | || test ! -s conftest.err' | |
7714864e RL |
22606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22607 | (eval $ac_try) 2>&5 | |
22608 | ac_status=$? | |
22609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22610 | (exit $ac_status); }; } && | |
22611 | { ac_try='test -s conftest.$ac_objext' | |
22612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22613 | (eval $ac_try) 2>&5 | |
22614 | ac_status=$? | |
22615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22616 | (exit $ac_status); }; }; then | |
22617 | ac_cv_cxx_reinterpret_cast=yes | |
22618 | else | |
22619 | echo "$as_me: failed program was:" >&5 | |
22620 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22621 | ||
22622 | ac_cv_cxx_reinterpret_cast=no | |
22623 | fi | |
22624 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22625 | ac_ext=c | |
22626 | ac_cpp='$CPP $CPPFLAGS' | |
22627 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22628 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22629 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22630 | ||
22631 | ||
22632 | fi | |
22633 | echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5 | |
22634 | echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6 | |
22635 | if test "$ac_cv_cxx_reinterpret_cast" = yes; then | |
22636 | ||
22637 | cat >>confdefs.h <<\_ACEOF | |
22638 | #define HAVE_REINTERPRET_CAST | |
22639 | _ACEOF | |
22640 | ||
22641 | fi | |
22642 | ||
a848cd7e SC |
22643 | echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5 |
22644 | echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6 | |
22645 | if test "${ac_cv_cxx_static_cast+set}" = set; then | |
22646 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22647 | else | |
22648 | ||
22649 | ||
22650 | ac_ext=cc | |
22651 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22652 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22653 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22654 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22655 | ||
22656 | cat >conftest.$ac_ext <<_ACEOF | |
22657 | /* confdefs.h. */ | |
22658 | _ACEOF | |
22659 | cat confdefs.h >>conftest.$ac_ext | |
22660 | cat >>conftest.$ac_ext <<_ACEOF | |
22661 | /* end confdefs.h. */ | |
22662 | #include <typeinfo> | |
22663 | class Base { public : Base () {} virtual void f () = 0; }; | |
22664 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
22665 | int g (Derived&) { return 0; } | |
22666 | int | |
22667 | main () | |
22668 | { | |
22669 | ||
22670 | Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); | |
22671 | ; | |
22672 | return 0; | |
22673 | } | |
22674 | _ACEOF | |
22675 | rm -f conftest.$ac_objext | |
22676 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22677 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22678 | ac_status=$? |
ac1cb8d3 VS |
22679 | grep -v '^ *+' conftest.er1 >conftest.err |
22680 | rm -f conftest.er1 | |
22681 | cat conftest.err >&5 | |
a848cd7e SC |
22682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22683 | (exit $ac_status); } && | |
3565d135 RR |
22684 | { ac_try='test -z "$ac_cxx_werror_flag" |
22685 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22687 | (eval $ac_try) 2>&5 | |
22688 | ac_status=$? | |
22689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22690 | (exit $ac_status); }; } && | |
22691 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22693 | (eval $ac_try) 2>&5 | |
22694 | ac_status=$? | |
22695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22696 | (exit $ac_status); }; }; then | |
22697 | ac_cv_cxx_static_cast=yes | |
22698 | else | |
22699 | echo "$as_me: failed program was:" >&5 | |
22700 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22701 | ||
22702 | ac_cv_cxx_static_cast=no | |
22703 | fi | |
ac1cb8d3 | 22704 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
22705 | ac_ext=c |
22706 | ac_cpp='$CPP $CPPFLAGS' | |
22707 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22708 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22709 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22710 | ||
22711 | ||
22712 | fi | |
22713 | echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5 | |
22714 | echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6 | |
22715 | if test "$ac_cv_cxx_static_cast" = yes; then | |
22716 | ||
22717 | cat >>confdefs.h <<\_ACEOF | |
22718 | #define HAVE_STATIC_CAST | |
22719 | _ACEOF | |
22720 | ||
22721 | fi | |
22722 | ||
22723 | ||
3c28b7cb | 22724 | if test "x$SUNCXX" = xyes; then |
c92ad099 | 22725 | CXXFLAGS="-features=tmplife $CXXFLAGS" |
3c28b7cb MW |
22726 | fi |
22727 | ||
9122d155 | 22728 | if test "x$SUNCC" = xyes; then |
c92ad099 | 22729 | CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS" |
9122d155 VZ |
22730 | fi |
22731 | ||
0ad5d837 | 22732 | if test "x$SGICC" = "xyes"; then |
c92ad099 | 22733 | CFLAGS="-woff 3970 $CFLAGS" |
0ad5d837 VZ |
22734 | fi |
22735 | if test "x$SGICXX" = "xyes"; then | |
c92ad099 | 22736 | CXXFLAGS="-woff 3970 $CXXFLAGS" |
0ad5d837 VZ |
22737 | fi |
22738 | ||
2eef8513 | 22739 | if test "x$HPCC" = "xyes"; then |
c92ad099 | 22740 | CFLAGS="+W 2011,2450 $CFLAGS" |
2eef8513 VZ |
22741 | fi |
22742 | if test "x$HPCXX" = "xyes"; then | |
c92ad099 | 22743 | CXXFLAGS="+W 2340 $CXXFLAGS" |
2eef8513 VZ |
22744 | fi |
22745 | ||
22746 | if test "x$COMPAQCXX" = "xyes"; then | |
22747 | CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit" | |
22748 | fi | |
22749 | ||
f56c22b4 | 22750 | if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then |
a848cd7e SC |
22751 | ac_ext=cc |
22752 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22753 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22754 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22755 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22756 | ||
22757 | ||
f56c22b4 MW |
22758 | if test "$wxUSE_UNICODE" = "yes"; then |
22759 | std_string="std::wstring" | |
22760 | char_type="wchar_t" | |
22761 | else | |
22762 | std_string="std::string" | |
22763 | char_type="char" | |
22764 | fi | |
22765 | ||
22766 | echo "$as_me:$LINENO: checking for $std_string in <string>" >&5 | |
22767 | echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6 | |
a848cd7e SC |
22768 | cat >conftest.$ac_ext <<_ACEOF |
22769 | /* confdefs.h. */ | |
22770 | _ACEOF | |
22771 | cat confdefs.h >>conftest.$ac_ext | |
22772 | cat >>conftest.$ac_ext <<_ACEOF | |
22773 | /* end confdefs.h. */ | |
22774 | #include <string> | |
a848cd7e SC |
22775 | int |
22776 | main () | |
22777 | { | |
f56c22b4 | 22778 | $std_string foo; |
a848cd7e SC |
22779 | ; |
22780 | return 0; | |
22781 | } | |
22782 | _ACEOF | |
22783 | rm -f conftest.$ac_objext | |
22784 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 22785 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 22786 | ac_status=$? |
ac1cb8d3 VS |
22787 | grep -v '^ *+' conftest.er1 >conftest.err |
22788 | rm -f conftest.er1 | |
22789 | cat conftest.err >&5 | |
a848cd7e SC |
22790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22791 | (exit $ac_status); } && | |
3565d135 RR |
22792 | { ac_try='test -z "$ac_cxx_werror_flag" |
22793 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
22794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22795 | (eval $ac_try) 2>&5 | |
22796 | ac_status=$? | |
22797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22798 | (exit $ac_status); }; } && | |
22799 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
22800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22801 | (eval $ac_try) 2>&5 | |
22802 | ac_status=$? | |
22803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22804 | (exit $ac_status); }; }; then | |
22805 | echo "$as_me:$LINENO: result: yes" >&5 | |
22806 | echo "${ECHO_T}yes" >&6 | |
0a08f02a MB |
22807 | cat >>confdefs.h <<\_ACEOF |
22808 | #define HAVE_STD_WSTRING 1 | |
22809 | _ACEOF | |
22810 | ||
a848cd7e SC |
22811 | else |
22812 | echo "$as_me: failed program was:" >&5 | |
22813 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22814 | ||
22815 | echo "$as_me:$LINENO: result: no" >&5 | |
22816 | echo "${ECHO_T}no" >&6 | |
f56c22b4 MW |
22817 | echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5 |
22818 | echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6 | |
0a08f02a MB |
22819 | cat >conftest.$ac_ext <<_ACEOF |
22820 | /* confdefs.h. */ | |
22821 | _ACEOF | |
22822 | cat confdefs.h >>conftest.$ac_ext | |
22823 | cat >>conftest.$ac_ext <<_ACEOF | |
22824 | /* end confdefs.h. */ | |
22825 | ||
22826 | #ifdef HAVE_WCHAR_H | |
22827 | # ifdef __CYGWIN__ | |
22828 | # include <stddef.h> | |
22829 | # endif | |
22830 | # include <wchar.h> | |
22831 | #endif | |
22832 | #ifdef HAVE_STDLIB_H | |
22833 | # include <stdlib.h> | |
22834 | #endif | |
22835 | #include <stdio.h> | |
22836 | #include <string> | |
22837 | ||
22838 | int | |
22839 | main () | |
22840 | { | |
f56c22b4 MW |
22841 | std::basic_string<$char_type> foo; |
22842 | const $char_type* dummy = foo.c_str(); | |
0a08f02a MB |
22843 | ; |
22844 | return 0; | |
22845 | } | |
22846 | _ACEOF | |
22847 | rm -f conftest.$ac_objext | |
22848 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22849 | (eval $ac_compile) 2>conftest.er1 | |
22850 | ac_status=$? | |
22851 | grep -v '^ *+' conftest.er1 >conftest.err | |
22852 | rm -f conftest.er1 | |
22853 | cat conftest.err >&5 | |
22854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22855 | (exit $ac_status); } && | |
3565d135 RR |
22856 | { ac_try='test -z "$ac_cxx_werror_flag" |
22857 | || test ! -s conftest.err' | |
0a08f02a MB |
22858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22859 | (eval $ac_try) 2>&5 | |
22860 | ac_status=$? | |
22861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22862 | (exit $ac_status); }; } && | |
22863 | { ac_try='test -s conftest.$ac_objext' | |
22864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22865 | (eval $ac_try) 2>&5 | |
22866 | ac_status=$? | |
22867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22868 | (exit $ac_status); }; }; then | |
22869 | echo "$as_me:$LINENO: result: yes" >&5 | |
22870 | echo "${ECHO_T}yes" >&6 | |
22871 | else | |
22872 | echo "$as_me: failed program was:" >&5 | |
22873 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22874 | ||
22875 | echo "$as_me:$LINENO: result: no" >&5 | |
22876 | echo "${ECHO_T}no" >&6 | |
f56c22b4 | 22877 | if test "$wxUSE_STL" = "yes"; then |
4b9918c5 MW |
22878 | { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5 |
22879 | echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;} | |
22880 | { (exit 1); exit 1; }; } | |
22881 | elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then | |
22882 | { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5 | |
22883 | echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;} | |
a848cd7e | 22884 | { (exit 1); exit 1; }; } |
f56c22b4 MW |
22885 | else |
22886 | { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5 | |
22887 | echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;} | |
22888 | wxUSE_STD_STRING=no | |
22889 | fi | |
22890 | ||
0a08f02a | 22891 | |
a848cd7e | 22892 | fi |
ac1cb8d3 | 22893 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 22894 | |
0a08f02a MB |
22895 | fi |
22896 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22897 | ||
22898 | ac_ext=c | |
22899 | ac_cpp='$CPP $CPPFLAGS' | |
22900 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22901 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
f56c22b4 MW |
22902 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
22903 | ||
22904 | fi | |
22905 | ||
22906 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
22907 | ac_ext=cc | |
22908 | ac_cpp='$CXXCPP $CPPFLAGS' | |
22909 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22910 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22911 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
22912 | ||
22913 | ||
22914 | echo "$as_me:$LINENO: checking for std::istream" >&5 | |
22915 | echo $ECHO_N "checking for std::istream... $ECHO_C" >&6 | |
22916 | if test "${ac_cv_type_std__istream+set}" = set; then | |
22917 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22918 | else | |
22919 | cat >conftest.$ac_ext <<_ACEOF | |
22920 | /* confdefs.h. */ | |
22921 | _ACEOF | |
22922 | cat confdefs.h >>conftest.$ac_ext | |
22923 | cat >>conftest.$ac_ext <<_ACEOF | |
22924 | /* end confdefs.h. */ | |
22925 | #include <iostream> | |
22926 | ||
22927 | int | |
22928 | main () | |
22929 | { | |
22930 | if ((std::istream *) 0) | |
22931 | return 0; | |
22932 | if (sizeof (std::istream)) | |
22933 | return 0; | |
22934 | ; | |
22935 | return 0; | |
22936 | } | |
22937 | _ACEOF | |
22938 | rm -f conftest.$ac_objext | |
22939 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22940 | (eval $ac_compile) 2>conftest.er1 | |
22941 | ac_status=$? | |
22942 | grep -v '^ *+' conftest.er1 >conftest.err | |
22943 | rm -f conftest.er1 | |
22944 | cat conftest.err >&5 | |
22945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22946 | (exit $ac_status); } && | |
3565d135 RR |
22947 | { ac_try='test -z "$ac_cxx_werror_flag" |
22948 | || test ! -s conftest.err' | |
f56c22b4 MW |
22949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22950 | (eval $ac_try) 2>&5 | |
22951 | ac_status=$? | |
22952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22953 | (exit $ac_status); }; } && | |
22954 | { ac_try='test -s conftest.$ac_objext' | |
22955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22956 | (eval $ac_try) 2>&5 | |
22957 | ac_status=$? | |
22958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22959 | (exit $ac_status); }; }; then | |
22960 | ac_cv_type_std__istream=yes | |
22961 | else | |
22962 | echo "$as_me: failed program was:" >&5 | |
22963 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22964 | ||
22965 | ac_cv_type_std__istream=no | |
22966 | fi | |
22967 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22968 | fi | |
22969 | echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5 | |
22970 | echo "${ECHO_T}$ac_cv_type_std__istream" >&6 | |
22971 | if test $ac_cv_type_std__istream = yes; then | |
22972 | ||
22973 | cat >>confdefs.h <<_ACEOF | |
22974 | #define HAVE_STD__ISTREAM 1 | |
22975 | _ACEOF | |
22976 | ||
22977 | ||
22978 | else | |
22979 | wxUSE_STD_IOSTREAM=no | |
22980 | fi | |
22981 | echo "$as_me:$LINENO: checking for std::ostream" >&5 | |
22982 | echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6 | |
22983 | if test "${ac_cv_type_std__ostream+set}" = set; then | |
22984 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22985 | else | |
22986 | cat >conftest.$ac_ext <<_ACEOF | |
22987 | /* confdefs.h. */ | |
22988 | _ACEOF | |
22989 | cat confdefs.h >>conftest.$ac_ext | |
22990 | cat >>conftest.$ac_ext <<_ACEOF | |
22991 | /* end confdefs.h. */ | |
22992 | #include <iostream> | |
22993 | ||
22994 | int | |
22995 | main () | |
22996 | { | |
22997 | if ((std::ostream *) 0) | |
22998 | return 0; | |
22999 | if (sizeof (std::ostream)) | |
23000 | return 0; | |
23001 | ; | |
23002 | return 0; | |
23003 | } | |
23004 | _ACEOF | |
23005 | rm -f conftest.$ac_objext | |
23006 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23007 | (eval $ac_compile) 2>conftest.er1 | |
23008 | ac_status=$? | |
23009 | grep -v '^ *+' conftest.er1 >conftest.err | |
23010 | rm -f conftest.er1 | |
23011 | cat conftest.err >&5 | |
23012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23013 | (exit $ac_status); } && | |
3565d135 RR |
23014 | { ac_try='test -z "$ac_cxx_werror_flag" |
23015 | || test ! -s conftest.err' | |
f56c22b4 MW |
23016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23017 | (eval $ac_try) 2>&5 | |
23018 | ac_status=$? | |
23019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23020 | (exit $ac_status); }; } && | |
23021 | { ac_try='test -s conftest.$ac_objext' | |
23022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23023 | (eval $ac_try) 2>&5 | |
23024 | ac_status=$? | |
23025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23026 | (exit $ac_status); }; }; then | |
23027 | ac_cv_type_std__ostream=yes | |
23028 | else | |
23029 | echo "$as_me: failed program was:" >&5 | |
23030 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23031 | ||
23032 | ac_cv_type_std__ostream=no | |
23033 | fi | |
23034 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
23035 | fi | |
23036 | echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5 | |
23037 | echo "${ECHO_T}$ac_cv_type_std__ostream" >&6 | |
23038 | if test $ac_cv_type_std__ostream = yes; then | |
23039 | ||
23040 | cat >>confdefs.h <<_ACEOF | |
23041 | #define HAVE_STD__OSTREAM 1 | |
23042 | _ACEOF | |
23043 | ||
23044 | ||
23045 | else | |
23046 | wxUSE_STD_IOSTREAM=no | |
23047 | fi | |
23048 | ||
23049 | ||
23050 | if test "$wxUSE_STD_IOSTREAM" != "yes"; then | |
4b9918c5 MW |
23051 | if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then |
23052 | { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5 | |
23053 | echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;} | |
23054 | { (exit 1); exit 1; }; } | |
23055 | else | |
23056 | { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5 | |
f56c22b4 | 23057 | echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;} |
4b9918c5 | 23058 | fi |
f56c22b4 MW |
23059 | fi |
23060 | ||
23061 | ac_ext=c | |
23062 | ac_cpp='$CPP $CPPFLAGS' | |
23063 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23064 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
0a08f02a MB |
23065 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
23066 | ||
23067 | fi | |
23068 | ||
23069 | if test "$wxUSE_STL" = "yes"; then | |
23070 | ac_ext=cc | |
23071 | ac_cpp='$CXXCPP $CPPFLAGS' | |
23072 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23073 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23074 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
23075 | ||
23076 | ||
23077 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 | |
23078 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
a848cd7e SC |
23079 | cat >conftest.$ac_ext <<_ACEOF |
23080 | /* confdefs.h. */ | |
23081 | _ACEOF | |
23082 | cat confdefs.h >>conftest.$ac_ext | |
23083 | cat >>conftest.$ac_ext <<_ACEOF | |
23084 | /* end confdefs.h. */ | |
23085 | #include <string> | |
0a08f02a MB |
23086 | #include <functional> |
23087 | #include <algorithm> | |
23088 | #include <vector> | |
23089 | #include <list> | |
a848cd7e SC |
23090 | int |
23091 | main () | |
23092 | { | |
0a08f02a MB |
23093 | std::vector<int> moo; |
23094 | std::list<int> foo; | |
23095 | std::vector<int>::iterator it = | |
23096 | std::find_if(moo.begin(), moo.end(), | |
23097 | std::bind2nd(std::less<int>(), 3)); | |
a848cd7e SC |
23098 | ; |
23099 | return 0; | |
23100 | } | |
23101 | _ACEOF | |
23102 | rm -f conftest.$ac_objext | |
23103 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23104 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23105 | ac_status=$? |
ac1cb8d3 VS |
23106 | grep -v '^ *+' conftest.er1 >conftest.err |
23107 | rm -f conftest.er1 | |
23108 | cat conftest.err >&5 | |
a848cd7e SC |
23109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23110 | (exit $ac_status); } && | |
3565d135 RR |
23111 | { ac_try='test -z "$ac_cxx_werror_flag" |
23112 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23114 | (eval $ac_try) 2>&5 | |
23115 | ac_status=$? | |
23116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23117 | (exit $ac_status); }; } && | |
23118 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23120 | (eval $ac_try) 2>&5 | |
23121 | ac_status=$? | |
23122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23123 | (exit $ac_status); }; }; then | |
23124 | echo "$as_me:$LINENO: result: yes" >&5 | |
23125 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
23126 | else |
23127 | echo "$as_me: failed program was:" >&5 | |
23128 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23129 | ||
23130 | echo "$as_me:$LINENO: result: no" >&5 | |
23131 | echo "${ECHO_T}no" >&6 | |
0a08f02a MB |
23132 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 |
23133 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
23134 | { (exit 1); exit 1; }; } | |
a848cd7e | 23135 | fi |
ac1cb8d3 | 23136 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23137 | |
23138 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
23139 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
23140 | cat >conftest.$ac_ext <<_ACEOF | |
23141 | /* confdefs.h. */ | |
23142 | _ACEOF | |
23143 | cat confdefs.h >>conftest.$ac_ext | |
23144 | cat >>conftest.$ac_ext <<_ACEOF | |
23145 | /* end confdefs.h. */ | |
23146 | #include <string> | |
23147 | int | |
23148 | main () | |
23149 | { | |
23150 | std::string foo, bar; | |
23151 | foo.compare(bar); | |
23152 | foo.compare(1, 1, bar); | |
23153 | foo.compare(1, 1, bar, 1, 1); | |
23154 | foo.compare(""); | |
23155 | foo.compare(1, 1, ""); | |
23156 | foo.compare(1, 1, "", 2); | |
23157 | ; | |
23158 | return 0; | |
23159 | } | |
23160 | _ACEOF | |
23161 | rm -f conftest.$ac_objext | |
23162 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23163 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23164 | ac_status=$? |
ac1cb8d3 VS |
23165 | grep -v '^ *+' conftest.er1 >conftest.err |
23166 | rm -f conftest.er1 | |
23167 | cat conftest.err >&5 | |
a848cd7e SC |
23168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23169 | (exit $ac_status); } && | |
3565d135 RR |
23170 | { ac_try='test -z "$ac_cxx_werror_flag" |
23171 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23173 | (eval $ac_try) 2>&5 | |
23174 | ac_status=$? | |
23175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23176 | (exit $ac_status); }; } && | |
23177 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23179 | (eval $ac_try) 2>&5 | |
23180 | ac_status=$? | |
23181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23182 | (exit $ac_status); }; }; then | |
23183 | echo "$as_me:$LINENO: result: yes" >&5 | |
23184 | echo "${ECHO_T}yes" >&6 | |
23185 | cat >>confdefs.h <<\_ACEOF | |
23186 | #define HAVE_STD_STRING_COMPARE 1 | |
23187 | _ACEOF | |
23188 | ||
23189 | else | |
23190 | echo "$as_me: failed program was:" >&5 | |
23191 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23192 | ||
23193 | echo "$as_me:$LINENO: result: no" >&5 | |
23194 | echo "${ECHO_T}no" >&6 | |
23195 | fi | |
ac1cb8d3 | 23196 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23197 | |
23198 | if test "${ac_cv_header_hash_map+set}" = set; then | |
23199 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
23200 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
23201 | if test "${ac_cv_header_hash_map+set}" = set; then | |
23202 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23203 | fi | |
23204 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
23205 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
23206 | else | |
23207 | # Is the header compilable? | |
23208 | echo "$as_me:$LINENO: checking hash_map usability" >&5 | |
23209 | echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6 | |
23210 | cat >conftest.$ac_ext <<_ACEOF | |
23211 | /* confdefs.h. */ | |
23212 | _ACEOF | |
23213 | cat confdefs.h >>conftest.$ac_ext | |
23214 | cat >>conftest.$ac_ext <<_ACEOF | |
23215 | /* end confdefs.h. */ | |
23216 | $ac_includes_default | |
23217 | #include <hash_map> | |
23218 | _ACEOF | |
23219 | rm -f conftest.$ac_objext | |
23220 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23221 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 23222 | ac_status=$? |
ac1cb8d3 VS |
23223 | grep -v '^ *+' conftest.er1 >conftest.err |
23224 | rm -f conftest.er1 | |
23225 | cat conftest.err >&5 | |
bdcade0a MB |
23226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23227 | (exit $ac_status); } && | |
3565d135 RR |
23228 | { ac_try='test -z "$ac_cxx_werror_flag" |
23229 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23231 | (eval $ac_try) 2>&5 | |
23232 | ac_status=$? | |
23233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23234 | (exit $ac_status); }; } && | |
23235 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
23236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23237 | (eval $ac_try) 2>&5 | |
23238 | ac_status=$? | |
23239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23240 | (exit $ac_status); }; }; then | |
23241 | ac_header_compiler=yes | |
23242 | else | |
23243 | echo "$as_me: failed program was:" >&5 | |
23244 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23245 | ||
23246 | ac_header_compiler=no | |
23247 | fi | |
ac1cb8d3 | 23248 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23249 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23250 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23251 | ||
23252 | # Is the header present? | |
23253 | echo "$as_me:$LINENO: checking hash_map presence" >&5 | |
23254 | echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6 | |
23255 | cat >conftest.$ac_ext <<_ACEOF | |
23256 | /* confdefs.h. */ | |
23257 | _ACEOF | |
23258 | cat confdefs.h >>conftest.$ac_ext | |
23259 | cat >>conftest.$ac_ext <<_ACEOF | |
23260 | /* end confdefs.h. */ | |
23261 | #include <hash_map> | |
23262 | _ACEOF | |
23263 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23264 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23265 | ac_status=$? | |
23266 | grep -v '^ *+' conftest.er1 >conftest.err | |
23267 | rm -f conftest.er1 | |
23268 | cat conftest.err >&5 | |
23269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23270 | (exit $ac_status); } >/dev/null; then | |
23271 | if test -s conftest.err; then | |
23272 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 23273 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
23274 | else |
23275 | ac_cpp_err= | |
23276 | fi | |
23277 | else | |
23278 | ac_cpp_err=yes | |
23279 | fi | |
23280 | if test -z "$ac_cpp_err"; then | |
23281 | ac_header_preproc=yes | |
23282 | else | |
23283 | echo "$as_me: failed program was:" >&5 | |
23284 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23285 | ||
23286 | ac_header_preproc=no | |
23287 | fi | |
23288 | rm -f conftest.err conftest.$ac_ext | |
23289 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23290 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23291 | ||
23292 | # So? What about this header? | |
ac1cb8d3 VS |
23293 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
23294 | yes:no: ) | |
bdcade0a MB |
23295 | { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
23296 | echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23297 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5 |
23298 | echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;} | |
23299 | ac_header_preproc=yes | |
bdcade0a | 23300 | ;; |
ac1cb8d3 | 23301 | no:yes:* ) |
bdcade0a MB |
23302 | { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5 |
23303 | echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23304 | { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5 |
23305 | echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;} | |
23306 | { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5 | |
23307 | echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;} | |
23308 | { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
23309 | echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
23310 | { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5 |
23311 | echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23312 | { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5 |
23313 | echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
23314 | ( |
23315 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23316 | ## ----------------------------------------- ## |
23317 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23318 | ## ----------------------------------------- ## | |
bdcade0a MB |
23319 | _ASBOX |
23320 | ) | | |
23321 | sed "s/^/$as_me: WARNING: /" >&2 | |
23322 | ;; | |
23323 | esac | |
23324 | echo "$as_me:$LINENO: checking for hash_map" >&5 | |
23325 | echo $ECHO_N "checking for hash_map... $ECHO_C" >&6 | |
23326 | if test "${ac_cv_header_hash_map+set}" = set; then | |
23327 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23328 | else | |
23329 | ac_cv_header_hash_map=$ac_header_preproc | |
23330 | fi | |
23331 | echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5 | |
23332 | echo "${ECHO_T}$ac_cv_header_hash_map" >&6 | |
23333 | ||
23334 | fi | |
23335 | if test $ac_cv_header_hash_map = yes; then | |
23336 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
23337 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
23338 | cat >conftest.$ac_ext <<_ACEOF | |
23339 | /* confdefs.h. */ | |
23340 | _ACEOF | |
23341 | cat confdefs.h >>conftest.$ac_ext | |
23342 | cat >>conftest.$ac_ext <<_ACEOF | |
23343 | /* end confdefs.h. */ | |
23344 | #include <hash_map> | |
23345 | #include <hash_set> | |
23346 | int | |
23347 | main () | |
23348 | { | |
23349 | std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1; | |
23350 | std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2; | |
23351 | ; | |
23352 | return 0; | |
23353 | } | |
23354 | _ACEOF | |
23355 | rm -f conftest.$ac_objext | |
23356 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23357 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 23358 | ac_status=$? |
ac1cb8d3 VS |
23359 | grep -v '^ *+' conftest.er1 >conftest.err |
23360 | rm -f conftest.er1 | |
23361 | cat conftest.err >&5 | |
bdcade0a MB |
23362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23363 | (exit $ac_status); } && | |
3565d135 RR |
23364 | { ac_try='test -z "$ac_cxx_werror_flag" |
23365 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23367 | (eval $ac_try) 2>&5 | |
23368 | ac_status=$? | |
23369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23370 | (exit $ac_status); }; } && | |
23371 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
23372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23373 | (eval $ac_try) 2>&5 | |
23374 | ac_status=$? | |
23375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23376 | (exit $ac_status); }; }; then | |
23377 | echo "$as_me:$LINENO: result: yes" >&5 | |
23378 | echo "${ECHO_T}yes" >&6 | |
23379 | cat >>confdefs.h <<\_ACEOF | |
23380 | #define HAVE_HASH_MAP 1 | |
23381 | _ACEOF | |
23382 | ||
23383 | cat >>confdefs.h <<\_ACEOF | |
23384 | #define HAVE_STD_HASH_MAP 1 | |
23385 | _ACEOF | |
23386 | ||
23387 | else | |
23388 | echo "$as_me: failed program was:" >&5 | |
23389 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23390 | ||
23391 | echo "$as_me:$LINENO: result: no" >&5 | |
23392 | echo "${ECHO_T}no" >&6 | |
23393 | fi | |
ac1cb8d3 | 23394 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23395 | |
23396 | fi | |
23397 | ||
23398 | ||
23399 | ||
23400 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
23401 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
23402 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
23403 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
23404 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23405 | fi | |
23406 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
23407 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
23408 | else | |
23409 | # Is the header compilable? | |
23410 | echo "$as_me:$LINENO: checking ext/hash_map usability" >&5 | |
23411 | echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6 | |
23412 | cat >conftest.$ac_ext <<_ACEOF | |
23413 | /* confdefs.h. */ | |
23414 | _ACEOF | |
23415 | cat confdefs.h >>conftest.$ac_ext | |
23416 | cat >>conftest.$ac_ext <<_ACEOF | |
23417 | /* end confdefs.h. */ | |
23418 | $ac_includes_default | |
23419 | #include <ext/hash_map> | |
23420 | _ACEOF | |
23421 | rm -f conftest.$ac_objext | |
23422 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23423 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 23424 | ac_status=$? |
ac1cb8d3 VS |
23425 | grep -v '^ *+' conftest.er1 >conftest.err |
23426 | rm -f conftest.er1 | |
23427 | cat conftest.err >&5 | |
bdcade0a MB |
23428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23429 | (exit $ac_status); } && | |
3565d135 RR |
23430 | { ac_try='test -z "$ac_cxx_werror_flag" |
23431 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23433 | (eval $ac_try) 2>&5 | |
23434 | ac_status=$? | |
23435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23436 | (exit $ac_status); }; } && | |
23437 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
23438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23439 | (eval $ac_try) 2>&5 | |
23440 | ac_status=$? | |
23441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23442 | (exit $ac_status); }; }; then | |
23443 | ac_header_compiler=yes | |
23444 | else | |
23445 | echo "$as_me: failed program was:" >&5 | |
23446 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23447 | ||
23448 | ac_header_compiler=no | |
23449 | fi | |
ac1cb8d3 | 23450 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23451 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23452 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23453 | ||
23454 | # Is the header present? | |
23455 | echo "$as_me:$LINENO: checking ext/hash_map presence" >&5 | |
23456 | echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6 | |
23457 | cat >conftest.$ac_ext <<_ACEOF | |
23458 | /* confdefs.h. */ | |
23459 | _ACEOF | |
23460 | cat confdefs.h >>conftest.$ac_ext | |
23461 | cat >>conftest.$ac_ext <<_ACEOF | |
23462 | /* end confdefs.h. */ | |
23463 | #include <ext/hash_map> | |
23464 | _ACEOF | |
23465 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23466 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23467 | ac_status=$? | |
23468 | grep -v '^ *+' conftest.er1 >conftest.err | |
23469 | rm -f conftest.er1 | |
23470 | cat conftest.err >&5 | |
23471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23472 | (exit $ac_status); } >/dev/null; then | |
23473 | if test -s conftest.err; then | |
23474 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ac1cb8d3 | 23475 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
bdcade0a MB |
23476 | else |
23477 | ac_cpp_err= | |
23478 | fi | |
23479 | else | |
23480 | ac_cpp_err=yes | |
23481 | fi | |
23482 | if test -z "$ac_cpp_err"; then | |
23483 | ac_header_preproc=yes | |
23484 | else | |
23485 | echo "$as_me: failed program was:" >&5 | |
23486 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23487 | ||
23488 | ac_header_preproc=no | |
23489 | fi | |
23490 | rm -f conftest.err conftest.$ac_ext | |
23491 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23492 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23493 | ||
23494 | # So? What about this header? | |
ac1cb8d3 VS |
23495 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in |
23496 | yes:no: ) | |
bdcade0a MB |
23497 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5 |
23498 | echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
23499 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5 |
23500 | echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;} | |
23501 | ac_header_preproc=yes | |
bdcade0a | 23502 | ;; |
ac1cb8d3 | 23503 | no:yes:* ) |
bdcade0a MB |
23504 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5 |
23505 | echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
23506 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5 |
23507 | echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;} | |
23508 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5 | |
23509 | echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;} | |
23510 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5 | |
23511 | echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;} | |
bdcade0a MB |
23512 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5 |
23513 | echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
23514 | { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5 |
23515 | echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;} | |
bdcade0a MB |
23516 | ( |
23517 | cat <<\_ASBOX | |
ac1cb8d3 VS |
23518 | ## ----------------------------------------- ## |
23519 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
23520 | ## ----------------------------------------- ## | |
bdcade0a MB |
23521 | _ASBOX |
23522 | ) | | |
23523 | sed "s/^/$as_me: WARNING: /" >&2 | |
23524 | ;; | |
23525 | esac | |
23526 | echo "$as_me:$LINENO: checking for ext/hash_map" >&5 | |
23527 | echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6 | |
23528 | if test "${ac_cv_header_ext_hash_map+set}" = set; then | |
23529 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23530 | else | |
23531 | ac_cv_header_ext_hash_map=$ac_header_preproc | |
23532 | fi | |
23533 | echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5 | |
23534 | echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6 | |
23535 | ||
23536 | fi | |
23537 | if test $ac_cv_header_ext_hash_map = yes; then | |
23538 | echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5 | |
23539 | echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6 | |
23540 | cat >conftest.$ac_ext <<_ACEOF | |
23541 | /* confdefs.h. */ | |
23542 | _ACEOF | |
23543 | cat confdefs.h >>conftest.$ac_ext | |
23544 | cat >>conftest.$ac_ext <<_ACEOF | |
23545 | /* end confdefs.h. */ | |
23546 | #include <ext/hash_map> | |
23547 | #include <ext/hash_set> | |
23548 | int | |
23549 | main () | |
23550 | { | |
23551 | __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1; | |
23552 | __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2; | |
23553 | ; | |
23554 | return 0; | |
23555 | } | |
23556 | _ACEOF | |
23557 | rm -f conftest.$ac_objext | |
23558 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23559 | (eval $ac_compile) 2>conftest.er1 |
bdcade0a | 23560 | ac_status=$? |
ac1cb8d3 VS |
23561 | grep -v '^ *+' conftest.er1 >conftest.err |
23562 | rm -f conftest.er1 | |
23563 | cat conftest.err >&5 | |
bdcade0a MB |
23564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23565 | (exit $ac_status); } && | |
3565d135 RR |
23566 | { ac_try='test -z "$ac_cxx_werror_flag" |
23567 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23569 | (eval $ac_try) 2>&5 | |
23570 | ac_status=$? | |
23571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23572 | (exit $ac_status); }; } && | |
23573 | { ac_try='test -s conftest.$ac_objext' | |
bdcade0a MB |
23574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23575 | (eval $ac_try) 2>&5 | |
23576 | ac_status=$? | |
23577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23578 | (exit $ac_status); }; }; then | |
23579 | echo "$as_me:$LINENO: result: yes" >&5 | |
23580 | echo "${ECHO_T}yes" >&6 | |
23581 | cat >>confdefs.h <<\_ACEOF | |
23582 | #define HAVE_EXT_HASH_MAP 1 | |
23583 | _ACEOF | |
23584 | ||
23585 | cat >>confdefs.h <<\_ACEOF | |
23586 | #define HAVE_GNU_CXX_HASH_MAP 1 | |
23587 | _ACEOF | |
23588 | ||
23589 | else | |
23590 | echo "$as_me: failed program was:" >&5 | |
23591 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23592 | ||
23593 | echo "$as_me:$LINENO: result: no" >&5 | |
23594 | echo "${ECHO_T}no" >&6 | |
23595 | fi | |
ac1cb8d3 | 23596 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bdcade0a MB |
23597 | |
23598 | fi | |
23599 | ||
23600 | ||
a848cd7e SC |
23601 | |
23602 | ac_ext=c | |
23603 | ac_cpp='$CPP $CPPFLAGS' | |
23604 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
23605 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
23606 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
23607 | ||
23608 | fi | |
23609 | ||
23610 | ||
23611 | SEARCH_INCLUDE="\ | |
23612 | /usr/local/include \ | |
23613 | \ | |
23614 | /usr/Motif-2.1/include \ | |
23615 | /usr/Motif-1.2/include \ | |
23616 | /usr/include/Motif1.2 \ | |
a848cd7e SC |
23617 | \ |
23618 | /usr/dt/include \ | |
23619 | /usr/openwin/include \ | |
23620 | \ | |
23621 | /usr/include/Xm \ | |
23622 | \ | |
23623 | /usr/X11R6/include \ | |
23624 | /usr/X11R6.4/include \ | |
23625 | /usr/X11R5/include \ | |
23626 | /usr/X11R4/include \ | |
23627 | \ | |
23628 | /usr/include/X11R6 \ | |
23629 | /usr/include/X11R5 \ | |
23630 | /usr/include/X11R4 \ | |
23631 | \ | |
23632 | /usr/local/X11R6/include \ | |
23633 | /usr/local/X11R5/include \ | |
23634 | /usr/local/X11R4/include \ | |
23635 | \ | |
23636 | /usr/local/include/X11R6 \ | |
23637 | /usr/local/include/X11R5 \ | |
23638 | /usr/local/include/X11R4 \ | |
23639 | \ | |
23640 | /usr/X11/include \ | |
23641 | /usr/include/X11 \ | |
23642 | /usr/local/X11/include \ | |
23643 | /usr/local/include/X11 \ | |
23644 | \ | |
a848cd7e | 23645 | /usr/XFree86/include/X11 \ |
e051b34e MW |
23646 | /usr/pkg/include \ |
23647 | \ | |
a848cd7e SC |
23648 | /usr/openwin/share/include" |
23649 | ||
6f9cf1e6 | 23650 | echo "$as_me:$LINENO: checking for libraries directory" >&5 |
0ad5d837 | 23651 | echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6 |
6f9cf1e6 MW |
23652 | |
23653 | case "${host}" in | |
23654 | *-*-irix6* ) | |
23655 | if test "${wx_cv_std_libpath+set}" = set; then | |
0ad5d837 VZ |
23656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23657 | else | |
23658 | ||
c687b303 VZ |
23659 | for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do |
23660 | for e in a so sl dylib dll.a; do | |
23661 | libc="$d/libc.$e" | |
23662 | if test -f $libc; then | |
23663 | save_LIBS="$LIBS" | |
23664 | LIBS="$libc" | |
23665 | cat >conftest.$ac_ext <<_ACEOF | |
0ad5d837 VZ |
23666 | int main() { return 0; } |
23667 | _ACEOF | |
23668 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23669 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23670 | (eval $ac_link) 2>conftest.er1 | |
23671 | ac_status=$? | |
23672 | grep -v '^ *+' conftest.er1 >conftest.err | |
23673 | rm -f conftest.er1 | |
23674 | cat conftest.err >&5 | |
23675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23676 | (exit $ac_status); } && | |
3565d135 RR |
23677 | { ac_try='test -z "$ac_c_werror_flag" |
23678 | || test ! -s conftest.err' | |
0ad5d837 VZ |
23679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23680 | (eval $ac_try) 2>&5 | |
23681 | ac_status=$? | |
23682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23683 | (exit $ac_status); }; } && | |
23684 | { ac_try='test -s conftest$ac_exeext' | |
23685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23686 | (eval $ac_try) 2>&5 | |
23687 | ac_status=$? | |
23688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23689 | (exit $ac_status); }; }; then | |
23690 | wx_cv_std_libpath=`echo $d | sed s@/usr/@@` | |
23691 | else | |
23692 | echo "$as_me: failed program was:" >&5 | |
23693 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23694 | ||
23695 | fi | |
23696 | rm -f conftest.err conftest.$ac_objext \ | |
23697 | conftest$ac_exeext conftest.$ac_ext | |
c687b303 VZ |
23698 | LIBS="$save_LIBS" |
23699 | if test "x$wx_cv_std_libpath" != "x"; then | |
23700 | break 2 | |
23701 | fi | |
23702 | fi | |
23703 | done | |
23704 | done | |
23705 | if test "x$wx_cv_std_libpath" = "x"; then | |
23706 | wx_cv_std_libpath="lib" | |
0ad5d837 | 23707 | fi |
0ad5d837 VZ |
23708 | |
23709 | ||
23710 | fi | |
6f9cf1e6 MW |
23711 | |
23712 | ;; | |
23713 | ||
23714 | *-*-solaris2* ) | |
23715 | if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then | |
23716 | wx_cv_std_libpath="lib/64" | |
23717 | else | |
23718 | wx_cv_std_libpath="lib" | |
23719 | fi | |
23720 | ;; | |
23721 | ||
23722 | *-*-linux* ) | |
23723 | if test "$ac_cv_sizeof_void_p" = 8 -a \ | |
23724 | -d "/usr/lib64" -a ! -h "/usr/lib64"; then | |
23725 | wx_cv_std_libpath="lib64" | |
23726 | else | |
23727 | wx_cv_std_libpath="lib" | |
23728 | fi | |
c687b303 VZ |
23729 | ;; |
23730 | ||
23731 | *) | |
23732 | wx_cv_std_libpath="lib"; | |
23733 | ;; | |
23734 | esac | |
0ad5d837 | 23735 | |
6f9cf1e6 MW |
23736 | echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5 |
23737 | echo "${ECHO_T}$wx_cv_std_libpath" >&6 | |
23738 | ||
23739 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath" | |
a848cd7e | 23740 | |
3eca31dc MW |
23741 | if test "$build" != "$host" -a "$GCC" = yes; then |
23742 | if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then | |
23743 | cross_root=`dirname $cross_root` | |
23744 | cross_root=`dirname $cross_root` | |
23745 | ||
23746 | SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"` | |
23747 | SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"` | |
5c60e845 | 23748 | SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include" |
3eca31dc MW |
23749 | |
23750 | if test -z "$PKG_CONFIG_PATH"; then | |
23751 | PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig" | |
23752 | export PKG_CONFIG_PATH | |
23753 | fi | |
23754 | ||
23755 | if test -z "$x_includes" -o "$x_includes" = NONE; then | |
23756 | ||
23757 | ac_find_includes= | |
23758 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
23759 | do | |
23760 | if test -f "$ac_dir/X11/Intrinsic.h"; then | |
23761 | ac_find_includes=$ac_dir | |
23762 | break | |
23763 | fi | |
23764 | done | |
23765 | ||
23766 | x_includes=$ac_find_includes | |
23767 | fi | |
23768 | if test -z "$x_libraries" -o "$x_libraries" = NONE; then | |
23769 | ||
0ad5d837 VZ |
23770 | ac_find_libraries= |
23771 | for ac_dir in $SEARCH_LIB; | |
3eca31dc MW |
23772 | do |
23773 | for ac_extension in a so sl dylib dll.a; do | |
23774 | if test -f "$ac_dir/libXt.$ac_extension"; then | |
23775 | ac_find_libraries=$ac_dir | |
23776 | break 2 | |
23777 | fi | |
23778 | done | |
23779 | done | |
23780 | ||
23781 | x_libraries=$ac_find_libraries | |
23782 | fi | |
23783 | fi | |
23784 | fi | |
23785 | ||
a848cd7e SC |
23786 | |
23787 | cat >confcache <<\_ACEOF | |
23788 | # This file is a shell script that caches the results of configure | |
23789 | # tests run on this system so they can be shared between configure | |
23790 | # scripts and configure runs, see configure's option --config-cache. | |
23791 | # It is not useful on other systems. If it contains results you don't | |
23792 | # want to keep, you may remove or edit it. | |
23793 | # | |
23794 | # config.status only pays attention to the cache file if you give it | |
23795 | # the --recheck option to rerun configure. | |
23796 | # | |
23797 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
23798 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
23799 | # following values. | |
23800 | ||
23801 | _ACEOF | |
23802 | ||
23803 | # The following way of writing the cache mishandles newlines in values, | |
23804 | # but we know of no workaround that is simple, portable, and efficient. | |
23805 | # So, don't put newlines in cache variables' values. | |
23806 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
23807 | # and sets the high bit in the cache file unless we assign to the vars. | |
23808 | { | |
23809 | (set) 2>&1 | | |
23810 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
23811 | *ac_space=\ *) | |
23812 | # `set' does not quote correctly, so add quotes (double-quote | |
23813 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
23814 | sed -n \ | |
ac1cb8d3 VS |
23815 | "s/'/'\\\\''/g; |
23816 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
23817 | ;; |
23818 | *) | |
23819 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
23820 | sed -n \ | |
ac1cb8d3 | 23821 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
23822 | ;; |
23823 | esac; | |
23824 | } | | |
23825 | sed ' | |
23826 | t clear | |
23827 | : clear | |
23828 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
23829 | t end | |
23830 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
23831 | : end' >>confcache | |
23832 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
23833 | if test -w $cache_file; then | |
23834 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
23835 | cat confcache >$cache_file | |
23836 | else | |
23837 | echo "not updating unwritable cache $cache_file" | |
23838 | fi | |
23839 | fi | |
23840 | rm -f confcache | |
23841 | ||
23842 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then | |
23843 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 | |
23844 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
23845 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
23846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23847 | else | |
23848 | ||
23849 | cat >conftest.$ac_ext <<_ACEOF | |
23850 | /* confdefs.h. */ | |
23851 | _ACEOF | |
23852 | cat confdefs.h >>conftest.$ac_ext | |
23853 | cat >>conftest.$ac_ext <<_ACEOF | |
23854 | /* end confdefs.h. */ | |
23855 | #include <features.h> | |
23856 | int | |
23857 | main () | |
23858 | { | |
23859 | ||
23860 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) | |
04e525a0 | 23861 | not glibc 2.1 |
a848cd7e SC |
23862 | #endif |
23863 | ||
23864 | ; | |
23865 | return 0; | |
23866 | } | |
23867 | _ACEOF | |
23868 | rm -f conftest.$ac_objext | |
23869 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23870 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23871 | ac_status=$? |
ac1cb8d3 VS |
23872 | grep -v '^ *+' conftest.er1 >conftest.err |
23873 | rm -f conftest.er1 | |
23874 | cat conftest.err >&5 | |
a848cd7e SC |
23875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23876 | (exit $ac_status); } && | |
3565d135 RR |
23877 | { ac_try='test -z "$ac_c_werror_flag" |
23878 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23880 | (eval $ac_try) 2>&5 | |
23881 | ac_status=$? | |
23882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23883 | (exit $ac_status); }; } && | |
23884 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23886 | (eval $ac_try) 2>&5 | |
23887 | ac_status=$? | |
23888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23889 | (exit $ac_status); }; }; then | |
23890 | ||
23891 | wx_cv_lib_glibc21=yes | |
23892 | ||
23893 | else | |
23894 | echo "$as_me: failed program was:" >&5 | |
23895 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23896 | ||
23897 | ||
23898 | wx_cv_lib_glibc21=no | |
23899 | ||
23900 | ||
23901 | fi | |
ac1cb8d3 | 23902 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23903 | |
23904 | fi | |
23905 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
23906 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
23907 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
23908 | cat >>confdefs.h <<\_ACEOF | |
23909 | #define wxHAVE_GLIBC2 1 | |
23910 | _ACEOF | |
23911 | ||
23912 | fi | |
23913 | fi | |
23914 | ||
23915 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
23916 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
23917 | cat >>confdefs.h <<\_ACEOF | |
23918 | #define _GNU_SOURCE 1 | |
23919 | _ACEOF | |
23920 | ||
23921 | fi | |
23922 | fi | |
23923 | ||
23924 | ||
23925 | ||
23926 | if test "$wxUSE_REGEX" != "no"; then | |
23927 | cat >>confdefs.h <<\_ACEOF | |
23928 | #define wxUSE_REGEX 1 | |
23929 | _ACEOF | |
23930 | ||
23931 | ||
23932 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then | |
23933 | { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5 | |
23934 | echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;} | |
23935 | wxUSE_REGEX=builtin | |
23936 | fi | |
23937 | ||
23938 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
23939 | if test "${ac_cv_header_regex_h+set}" = set; then | |
23940 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
23941 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
23942 | if test "${ac_cv_header_regex_h+set}" = set; then | |
23943 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23944 | fi | |
23945 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
23946 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
23947 | else | |
23948 | # Is the header compilable? | |
23949 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
23950 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
23951 | cat >conftest.$ac_ext <<_ACEOF | |
23952 | /* confdefs.h. */ | |
23953 | _ACEOF | |
23954 | cat confdefs.h >>conftest.$ac_ext | |
23955 | cat >>conftest.$ac_ext <<_ACEOF | |
23956 | /* end confdefs.h. */ | |
23957 | $ac_includes_default | |
23958 | #include <regex.h> | |
23959 | _ACEOF | |
23960 | rm -f conftest.$ac_objext | |
23961 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 23962 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 23963 | ac_status=$? |
ac1cb8d3 VS |
23964 | grep -v '^ *+' conftest.er1 >conftest.err |
23965 | rm -f conftest.er1 | |
23966 | cat conftest.err >&5 | |
a848cd7e SC |
23967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23968 | (exit $ac_status); } && | |
3565d135 RR |
23969 | { ac_try='test -z "$ac_c_werror_flag" |
23970 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
23971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23972 | (eval $ac_try) 2>&5 | |
23973 | ac_status=$? | |
23974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23975 | (exit $ac_status); }; } && | |
23976 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
23977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23978 | (eval $ac_try) 2>&5 | |
23979 | ac_status=$? | |
23980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23981 | (exit $ac_status); }; }; then | |
23982 | ac_header_compiler=yes | |
23983 | else | |
23984 | echo "$as_me: failed program was:" >&5 | |
23985 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23986 | ||
23987 | ac_header_compiler=no | |
23988 | fi | |
ac1cb8d3 | 23989 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
23990 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23991 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23992 | ||
23993 | # Is the header present? | |
23994 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
23995 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
23996 | cat >conftest.$ac_ext <<_ACEOF | |
23997 | /* confdefs.h. */ | |
23998 | _ACEOF | |
23999 | cat confdefs.h >>conftest.$ac_ext | |
24000 | cat >>conftest.$ac_ext <<_ACEOF | |
24001 | /* end confdefs.h. */ | |
24002 | #include <regex.h> | |
24003 | _ACEOF | |
24004 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24005 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24006 | ac_status=$? | |
24007 | grep -v '^ *+' conftest.er1 >conftest.err | |
24008 | rm -f conftest.er1 | |
24009 | cat conftest.err >&5 | |
24010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24011 | (exit $ac_status); } >/dev/null; then | |
24012 | if test -s conftest.err; then | |
24013 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24014 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24015 | else |
24016 | ac_cpp_err= | |
24017 | fi | |
24018 | else | |
24019 | ac_cpp_err=yes | |
24020 | fi | |
24021 | if test -z "$ac_cpp_err"; then | |
24022 | ac_header_preproc=yes | |
24023 | else | |
24024 | echo "$as_me: failed program was:" >&5 | |
24025 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24026 | ||
24027 | ac_header_preproc=no | |
24028 | fi | |
24029 | rm -f conftest.err conftest.$ac_ext | |
24030 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24031 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24032 | ||
24033 | # So? What about this header? | |
ac1cb8d3 VS |
24034 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
24035 | yes:no: ) | |
a848cd7e SC |
24036 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
24037 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24038 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5 |
24039 | echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;} | |
24040 | ac_header_preproc=yes | |
a848cd7e | 24041 | ;; |
ac1cb8d3 | 24042 | no:yes:* ) |
a848cd7e SC |
24043 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 |
24044 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24045 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 |
24046 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
24047 | { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5 | |
24048 | echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;} | |
24049 | { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24050 | echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
24051 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 |
24052 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24053 | { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5 |
24054 | echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
24055 | ( |
24056 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24057 | ## ----------------------------------------- ## |
24058 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24059 | ## ----------------------------------------- ## | |
a848cd7e SC |
24060 | _ASBOX |
24061 | ) | | |
24062 | sed "s/^/$as_me: WARNING: /" >&2 | |
24063 | ;; | |
24064 | esac | |
24065 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
24066 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
24067 | if test "${ac_cv_header_regex_h+set}" = set; then | |
24068 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24069 | else | |
24070 | ac_cv_header_regex_h=$ac_header_preproc | |
24071 | fi | |
24072 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
24073 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
24074 | ||
24075 | fi | |
24076 | if test $ac_cv_header_regex_h = yes; then | |
24077 | ||
ab0f0edd MW |
24078 | |
24079 | for ac_func in regcomp re_search | |
a848cd7e SC |
24080 | do |
24081 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
24082 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
24083 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
24084 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
24085 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24086 | else | |
24087 | cat >conftest.$ac_ext <<_ACEOF | |
24088 | /* confdefs.h. */ | |
24089 | _ACEOF | |
24090 | cat confdefs.h >>conftest.$ac_ext | |
24091 | cat >>conftest.$ac_ext <<_ACEOF | |
24092 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
24093 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
24094 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
24095 | #define $ac_func innocuous_$ac_func | |
24096 | ||
a848cd7e SC |
24097 | /* System header to define __stub macros and hopefully few prototypes, |
24098 | which can conflict with char $ac_func (); below. | |
24099 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24100 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 24101 | |
a848cd7e SC |
24102 | #ifdef __STDC__ |
24103 | # include <limits.h> | |
24104 | #else | |
24105 | # include <assert.h> | |
24106 | #endif | |
ac1cb8d3 VS |
24107 | |
24108 | #undef $ac_func | |
24109 | ||
a848cd7e SC |
24110 | /* Override any gcc2 internal prototype to avoid an error. */ |
24111 | #ifdef __cplusplus | |
24112 | extern "C" | |
24113 | { | |
24114 | #endif | |
24115 | /* We use char because int might match the return type of a gcc2 | |
24116 | builtin and then its argument prototype would still apply. */ | |
24117 | char $ac_func (); | |
24118 | /* The GNU C library defines this for functions which it implements | |
24119 | to always fail with ENOSYS. Some functions are actually named | |
24120 | something starting with __ and the normal name is an alias. */ | |
24121 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
24122 | choke me | |
24123 | #else | |
24124 | char (*f) () = $ac_func; | |
24125 | #endif | |
24126 | #ifdef __cplusplus | |
24127 | } | |
24128 | #endif | |
24129 | ||
24130 | int | |
24131 | main () | |
24132 | { | |
24133 | return f != $ac_func; | |
24134 | ; | |
24135 | return 0; | |
24136 | } | |
24137 | _ACEOF | |
24138 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24139 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24140 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24141 | ac_status=$? |
ac1cb8d3 VS |
24142 | grep -v '^ *+' conftest.er1 >conftest.err |
24143 | rm -f conftest.er1 | |
24144 | cat conftest.err >&5 | |
a848cd7e SC |
24145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24146 | (exit $ac_status); } && | |
3565d135 RR |
24147 | { ac_try='test -z "$ac_c_werror_flag" |
24148 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24150 | (eval $ac_try) 2>&5 | |
24151 | ac_status=$? | |
24152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24153 | (exit $ac_status); }; } && | |
24154 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24156 | (eval $ac_try) 2>&5 | |
24157 | ac_status=$? | |
24158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24159 | (exit $ac_status); }; }; then | |
24160 | eval "$as_ac_var=yes" | |
24161 | else | |
24162 | echo "$as_me: failed program was:" >&5 | |
24163 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24164 | ||
24165 | eval "$as_ac_var=no" | |
24166 | fi | |
ac1cb8d3 VS |
24167 | rm -f conftest.err conftest.$ac_objext \ |
24168 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24169 | fi |
24170 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
24171 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
24172 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
24173 | cat >>confdefs.h <<_ACEOF | |
24174 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
24175 | _ACEOF | |
24176 | ||
24177 | fi | |
24178 | done | |
24179 | ||
24180 | fi | |
24181 | ||
24182 | ||
24183 | ||
24184 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
24185 | if test "$wxUSE_REGEX" = "sys" ; then | |
24186 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 | |
24187 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
24188 | { (exit 1); exit 1; }; } | |
24189 | else | |
24190 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 | |
24191 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
24192 | wxUSE_REGEX=builtin | |
24193 | fi | |
24194 | else | |
24195 | wxUSE_REGEX=sys | |
24196 | cat >>confdefs.h <<\_ACEOF | |
24197 | #define WX_NO_REGEX_ADVANCED 1 | |
24198 | _ACEOF | |
24199 | ||
24200 | fi | |
24201 | fi | |
24202 | fi | |
24203 | ||
24204 | ||
24205 | ZLIB_LINK= | |
24206 | if test "$wxUSE_ZLIB" != "no" ; then | |
24207 | cat >>confdefs.h <<\_ACEOF | |
24208 | #define wxUSE_ZLIB 1 | |
24209 | _ACEOF | |
24210 | ||
24211 | ||
24212 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
24213 | if test "$USE_DARWIN" = 1; then | |
24214 | system_zlib_h_ok="yes" | |
24215 | else | |
24216 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 | |
24217 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
24218 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
24219 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24220 | else | |
24221 | if test "$cross_compiling" = yes; then | |
24222 | unset ac_cv_header_zlib_h | |
24223 | ||
24224 | else | |
24225 | cat >conftest.$ac_ext <<_ACEOF | |
24226 | /* confdefs.h. */ | |
24227 | _ACEOF | |
24228 | cat confdefs.h >>conftest.$ac_ext | |
24229 | cat >>conftest.$ac_ext <<_ACEOF | |
24230 | /* end confdefs.h. */ | |
24231 | ||
24232 | #include <zlib.h> | |
24233 | #include <stdio.h> | |
24234 | ||
24235 | int main() | |
24236 | { | |
24237 | FILE *f=fopen("conftestval", "w"); | |
24238 | if (!f) exit(1); | |
24239 | fprintf(f, "%s", | |
24240 | ZLIB_VERSION[0] == '1' && | |
24241 | (ZLIB_VERSION[2] > '1' || | |
24242 | (ZLIB_VERSION[2] == '1' && | |
24243 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
24244 | exit(0); | |
24245 | } | |
24246 | ||
24247 | _ACEOF | |
24248 | rm -f conftest$ac_exeext | |
24249 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24250 | (eval $ac_link) 2>&5 | |
24251 | ac_status=$? | |
24252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24253 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
24254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24255 | (eval $ac_try) 2>&5 | |
24256 | ac_status=$? | |
24257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24258 | (exit $ac_status); }; }; then | |
24259 | ac_cv_header_zlib_h=`cat conftestval` | |
24260 | else | |
24261 | echo "$as_me: program exited with status $ac_status" >&5 | |
24262 | echo "$as_me: failed program was:" >&5 | |
24263 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24264 | ||
24265 | ( exit $ac_status ) | |
24266 | ac_cv_header_zlib_h=no | |
24267 | fi | |
ac1cb8d3 | 24268 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24269 | fi |
24270 | ||
24271 | fi | |
24272 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
24273 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
24274 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
24275 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
24276 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
24277 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
24278 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24279 | fi | |
24280 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
24281 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
24282 | else | |
24283 | # Is the header compilable? | |
24284 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
24285 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
24286 | cat >conftest.$ac_ext <<_ACEOF | |
24287 | /* confdefs.h. */ | |
24288 | _ACEOF | |
24289 | cat confdefs.h >>conftest.$ac_ext | |
24290 | cat >>conftest.$ac_ext <<_ACEOF | |
24291 | /* end confdefs.h. */ | |
24292 | $ac_includes_default | |
24293 | #include <zlib.h> | |
24294 | _ACEOF | |
24295 | rm -f conftest.$ac_objext | |
24296 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24297 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24298 | ac_status=$? |
ac1cb8d3 VS |
24299 | grep -v '^ *+' conftest.er1 >conftest.err |
24300 | rm -f conftest.er1 | |
24301 | cat conftest.err >&5 | |
a848cd7e SC |
24302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24303 | (exit $ac_status); } && | |
3565d135 RR |
24304 | { ac_try='test -z "$ac_c_werror_flag" |
24305 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24307 | (eval $ac_try) 2>&5 | |
24308 | ac_status=$? | |
24309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24310 | (exit $ac_status); }; } && | |
24311 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24313 | (eval $ac_try) 2>&5 | |
24314 | ac_status=$? | |
24315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24316 | (exit $ac_status); }; }; then | |
24317 | ac_header_compiler=yes | |
24318 | else | |
24319 | echo "$as_me: failed program was:" >&5 | |
24320 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24321 | ||
24322 | ac_header_compiler=no | |
24323 | fi | |
ac1cb8d3 | 24324 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24325 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24326 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24327 | ||
24328 | # Is the header present? | |
24329 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
24330 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
24331 | cat >conftest.$ac_ext <<_ACEOF | |
24332 | /* confdefs.h. */ | |
24333 | _ACEOF | |
24334 | cat confdefs.h >>conftest.$ac_ext | |
24335 | cat >>conftest.$ac_ext <<_ACEOF | |
24336 | /* end confdefs.h. */ | |
24337 | #include <zlib.h> | |
24338 | _ACEOF | |
24339 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24340 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24341 | ac_status=$? | |
24342 | grep -v '^ *+' conftest.er1 >conftest.err | |
24343 | rm -f conftest.er1 | |
24344 | cat conftest.err >&5 | |
24345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24346 | (exit $ac_status); } >/dev/null; then | |
24347 | if test -s conftest.err; then | |
24348 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24349 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24350 | else |
24351 | ac_cpp_err= | |
24352 | fi | |
24353 | else | |
24354 | ac_cpp_err=yes | |
24355 | fi | |
24356 | if test -z "$ac_cpp_err"; then | |
24357 | ac_header_preproc=yes | |
24358 | else | |
24359 | echo "$as_me: failed program was:" >&5 | |
24360 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24361 | ||
24362 | ac_header_preproc=no | |
24363 | fi | |
24364 | rm -f conftest.err conftest.$ac_ext | |
24365 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24366 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24367 | ||
24368 | # So? What about this header? | |
ac1cb8d3 VS |
24369 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
24370 | yes:no: ) | |
a848cd7e SC |
24371 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
24372 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24373 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 |
24374 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | |
24375 | ac_header_preproc=yes | |
a848cd7e | 24376 | ;; |
ac1cb8d3 | 24377 | no:yes:* ) |
a848cd7e SC |
24378 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
24379 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24380 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
24381 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
24382 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | |
24383 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | |
24384 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24385 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
24386 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
24387 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24388 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 |
24389 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
24390 | ( |
24391 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24392 | ## ----------------------------------------- ## |
24393 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24394 | ## ----------------------------------------- ## | |
a848cd7e SC |
24395 | _ASBOX |
24396 | ) | | |
24397 | sed "s/^/$as_me: WARNING: /" >&2 | |
24398 | ;; | |
24399 | esac | |
24400 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
24401 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
24402 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
24403 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24404 | else | |
24405 | ac_cv_header_zlib_h=$ac_header_preproc | |
24406 | fi | |
24407 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
24408 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
24409 | ||
24410 | fi | |
24411 | ||
24412 | ||
24413 | ||
24414 | system_zlib_h_ok=$ac_cv_header_zlib_h | |
24415 | fi | |
24416 | ||
24417 | if test "$system_zlib_h_ok" = "yes"; then | |
24418 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | |
24419 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
24420 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
24421 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24422 | else | |
24423 | ac_check_lib_save_LIBS=$LIBS | |
24424 | LIBS="-lz $LIBS" | |
24425 | cat >conftest.$ac_ext <<_ACEOF | |
24426 | /* confdefs.h. */ | |
24427 | _ACEOF | |
24428 | cat confdefs.h >>conftest.$ac_ext | |
24429 | cat >>conftest.$ac_ext <<_ACEOF | |
24430 | /* end confdefs.h. */ | |
24431 | ||
24432 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24433 | #ifdef __cplusplus | |
24434 | extern "C" | |
24435 | #endif | |
24436 | /* We use char because int might match the return type of a gcc2 | |
24437 | builtin and then its argument prototype would still apply. */ | |
24438 | char deflate (); | |
24439 | int | |
24440 | main () | |
24441 | { | |
24442 | deflate (); | |
24443 | ; | |
24444 | return 0; | |
24445 | } | |
24446 | _ACEOF | |
24447 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24448 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24449 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24450 | ac_status=$? |
ac1cb8d3 VS |
24451 | grep -v '^ *+' conftest.er1 >conftest.err |
24452 | rm -f conftest.er1 | |
24453 | cat conftest.err >&5 | |
a848cd7e SC |
24454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24455 | (exit $ac_status); } && | |
3565d135 RR |
24456 | { ac_try='test -z "$ac_c_werror_flag" |
24457 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24459 | (eval $ac_try) 2>&5 | |
24460 | ac_status=$? | |
24461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24462 | (exit $ac_status); }; } && | |
24463 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24465 | (eval $ac_try) 2>&5 | |
24466 | ac_status=$? | |
24467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24468 | (exit $ac_status); }; }; then | |
24469 | ac_cv_lib_z_deflate=yes | |
24470 | else | |
24471 | echo "$as_me: failed program was:" >&5 | |
24472 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24473 | ||
24474 | ac_cv_lib_z_deflate=no | |
24475 | fi | |
ac1cb8d3 VS |
24476 | rm -f conftest.err conftest.$ac_objext \ |
24477 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24478 | LIBS=$ac_check_lib_save_LIBS |
24479 | fi | |
24480 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
24481 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
24482 | if test $ac_cv_lib_z_deflate = yes; then | |
24483 | ZLIB_LINK=" -lz" | |
24484 | fi | |
24485 | ||
24486 | fi | |
24487 | ||
24488 | if test "x$ZLIB_LINK" = "x" ; then | |
24489 | if test "$wxUSE_ZLIB" = "sys" ; then | |
24490 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 | |
24491 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
24492 | { (exit 1); exit 1; }; } | |
24493 | else | |
24494 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 | |
24495 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
24496 | wxUSE_ZLIB=builtin | |
24497 | fi | |
24498 | else | |
24499 | wxUSE_ZLIB=sys | |
24500 | fi | |
24501 | fi | |
24502 | fi | |
24503 | ||
24504 | ||
24505 | PNG_LINK= | |
24506 | if test "$wxUSE_LIBPNG" != "no" ; then | |
24507 | cat >>confdefs.h <<\_ACEOF | |
24508 | #define wxUSE_LIBPNG 1 | |
24509 | _ACEOF | |
24510 | ||
24511 | ||
24512 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
24513 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 | |
24514 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
24515 | wxUSE_LIBPNG=sys | |
24516 | fi | |
24517 | ||
24518 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
24519 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 | |
24520 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
24521 | wxUSE_LIBPNG=builtin | |
24522 | fi | |
24523 | ||
24524 | if test "$wxUSE_MGL" != 1 ; then | |
24525 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
24526 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 | |
24527 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
24528 | if test "${ac_cv_header_png_h+set}" = set; then | |
24529 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24530 | else | |
24531 | if test "$cross_compiling" = yes; then | |
24532 | unset ac_cv_header_png_h | |
24533 | ||
24534 | else | |
24535 | cat >conftest.$ac_ext <<_ACEOF | |
24536 | /* confdefs.h. */ | |
24537 | _ACEOF | |
24538 | cat confdefs.h >>conftest.$ac_ext | |
24539 | cat >>conftest.$ac_ext <<_ACEOF | |
24540 | /* end confdefs.h. */ | |
24541 | ||
24542 | #include <png.h> | |
24543 | #include <stdio.h> | |
24544 | ||
24545 | int main() | |
24546 | { | |
24547 | FILE *f=fopen("conftestval", "w"); | |
24548 | if (!f) exit(1); | |
24549 | fprintf(f, "%s", | |
24550 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
24551 | exit(0); | |
24552 | } | |
24553 | ||
24554 | _ACEOF | |
24555 | rm -f conftest$ac_exeext | |
24556 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24557 | (eval $ac_link) 2>&5 | |
24558 | ac_status=$? | |
24559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24560 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
24561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24562 | (eval $ac_try) 2>&5 | |
24563 | ac_status=$? | |
24564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24565 | (exit $ac_status); }; }; then | |
24566 | ac_cv_header_png_h=`cat conftestval` | |
24567 | else | |
24568 | echo "$as_me: program exited with status $ac_status" >&5 | |
24569 | echo "$as_me: failed program was:" >&5 | |
24570 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24571 | ||
24572 | ( exit $ac_status ) | |
24573 | ac_cv_header_png_h=no | |
24574 | fi | |
ac1cb8d3 | 24575 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24576 | fi |
24577 | ||
24578 | fi | |
24579 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
24580 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
24581 | if test "${ac_cv_header_png_h+set}" = set; then | |
24582 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
24583 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
24584 | if test "${ac_cv_header_png_h+set}" = set; then | |
24585 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24586 | fi | |
24587 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
24588 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
24589 | else | |
24590 | # Is the header compilable? | |
24591 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
24592 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
24593 | cat >conftest.$ac_ext <<_ACEOF | |
24594 | /* confdefs.h. */ | |
24595 | _ACEOF | |
24596 | cat confdefs.h >>conftest.$ac_ext | |
24597 | cat >>conftest.$ac_ext <<_ACEOF | |
24598 | /* end confdefs.h. */ | |
24599 | $ac_includes_default | |
24600 | #include <png.h> | |
24601 | _ACEOF | |
24602 | rm -f conftest.$ac_objext | |
24603 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24604 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24605 | ac_status=$? |
ac1cb8d3 VS |
24606 | grep -v '^ *+' conftest.er1 >conftest.err |
24607 | rm -f conftest.er1 | |
24608 | cat conftest.err >&5 | |
a848cd7e SC |
24609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24610 | (exit $ac_status); } && | |
3565d135 RR |
24611 | { ac_try='test -z "$ac_c_werror_flag" |
24612 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24614 | (eval $ac_try) 2>&5 | |
24615 | ac_status=$? | |
24616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24617 | (exit $ac_status); }; } && | |
24618 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24620 | (eval $ac_try) 2>&5 | |
24621 | ac_status=$? | |
24622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24623 | (exit $ac_status); }; }; then | |
24624 | ac_header_compiler=yes | |
24625 | else | |
24626 | echo "$as_me: failed program was:" >&5 | |
24627 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24628 | ||
24629 | ac_header_compiler=no | |
24630 | fi | |
ac1cb8d3 | 24631 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24632 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24633 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24634 | ||
24635 | # Is the header present? | |
24636 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
24637 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
24638 | cat >conftest.$ac_ext <<_ACEOF | |
24639 | /* confdefs.h. */ | |
24640 | _ACEOF | |
24641 | cat confdefs.h >>conftest.$ac_ext | |
24642 | cat >>conftest.$ac_ext <<_ACEOF | |
24643 | /* end confdefs.h. */ | |
24644 | #include <png.h> | |
24645 | _ACEOF | |
24646 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24647 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24648 | ac_status=$? | |
24649 | grep -v '^ *+' conftest.er1 >conftest.err | |
24650 | rm -f conftest.er1 | |
24651 | cat conftest.err >&5 | |
24652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24653 | (exit $ac_status); } >/dev/null; then | |
24654 | if test -s conftest.err; then | |
24655 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 24656 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
24657 | else |
24658 | ac_cpp_err= | |
24659 | fi | |
24660 | else | |
24661 | ac_cpp_err=yes | |
24662 | fi | |
24663 | if test -z "$ac_cpp_err"; then | |
24664 | ac_header_preproc=yes | |
24665 | else | |
24666 | echo "$as_me: failed program was:" >&5 | |
24667 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24668 | ||
24669 | ac_header_preproc=no | |
24670 | fi | |
24671 | rm -f conftest.err conftest.$ac_ext | |
24672 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24673 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24674 | ||
24675 | # So? What about this header? | |
ac1cb8d3 VS |
24676 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
24677 | yes:no: ) | |
a848cd7e SC |
24678 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
24679 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
24680 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5 |
24681 | echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;} | |
24682 | ac_header_preproc=yes | |
a848cd7e | 24683 | ;; |
ac1cb8d3 | 24684 | no:yes:* ) |
a848cd7e SC |
24685 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
24686 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
24687 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
24688 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
24689 | { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5 | |
24690 | echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;} | |
24691 | { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5 | |
24692 | echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
24693 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
24694 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
24695 | { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5 |
24696 | echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
24697 | ( |
24698 | cat <<\_ASBOX | |
ac1cb8d3 VS |
24699 | ## ----------------------------------------- ## |
24700 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
24701 | ## ----------------------------------------- ## | |
a848cd7e SC |
24702 | _ASBOX |
24703 | ) | | |
24704 | sed "s/^/$as_me: WARNING: /" >&2 | |
24705 | ;; | |
24706 | esac | |
24707 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
24708 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
24709 | if test "${ac_cv_header_png_h+set}" = set; then | |
24710 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24711 | else | |
24712 | ac_cv_header_png_h=$ac_header_preproc | |
24713 | fi | |
24714 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
24715 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
24716 | ||
24717 | fi | |
24718 | ||
24719 | ||
24720 | ||
24721 | if test "$ac_cv_header_png_h" = "yes"; then | |
24722 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 | |
24723 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
24724 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
24725 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24726 | else | |
24727 | ac_check_lib_save_LIBS=$LIBS | |
24728 | LIBS="-lpng -lz -lm $LIBS" | |
24729 | cat >conftest.$ac_ext <<_ACEOF | |
24730 | /* confdefs.h. */ | |
24731 | _ACEOF | |
24732 | cat confdefs.h >>conftest.$ac_ext | |
24733 | cat >>conftest.$ac_ext <<_ACEOF | |
24734 | /* end confdefs.h. */ | |
24735 | ||
24736 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24737 | #ifdef __cplusplus | |
24738 | extern "C" | |
24739 | #endif | |
24740 | /* We use char because int might match the return type of a gcc2 | |
24741 | builtin and then its argument prototype would still apply. */ | |
24742 | char png_check_sig (); | |
24743 | int | |
24744 | main () | |
24745 | { | |
24746 | png_check_sig (); | |
24747 | ; | |
24748 | return 0; | |
24749 | } | |
24750 | _ACEOF | |
24751 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24752 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24753 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24754 | ac_status=$? |
ac1cb8d3 VS |
24755 | grep -v '^ *+' conftest.er1 >conftest.err |
24756 | rm -f conftest.er1 | |
24757 | cat conftest.err >&5 | |
a848cd7e SC |
24758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24759 | (exit $ac_status); } && | |
3565d135 RR |
24760 | { ac_try='test -z "$ac_c_werror_flag" |
24761 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24763 | (eval $ac_try) 2>&5 | |
24764 | ac_status=$? | |
24765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24766 | (exit $ac_status); }; } && | |
24767 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24769 | (eval $ac_try) 2>&5 | |
24770 | ac_status=$? | |
24771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24772 | (exit $ac_status); }; }; then | |
24773 | ac_cv_lib_png_png_check_sig=yes | |
24774 | else | |
24775 | echo "$as_me: failed program was:" >&5 | |
24776 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24777 | ||
24778 | ac_cv_lib_png_png_check_sig=no | |
24779 | fi | |
ac1cb8d3 VS |
24780 | rm -f conftest.err conftest.$ac_objext \ |
24781 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24782 | LIBS=$ac_check_lib_save_LIBS |
24783 | fi | |
24784 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
24785 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
24786 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
24787 | PNG_LINK=" -lpng -lz" | |
24788 | fi | |
24789 | ||
24790 | fi | |
24791 | ||
24792 | if test "x$PNG_LINK" = "x" ; then | |
24793 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
24794 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 | |
24795 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
24796 | { (exit 1); exit 1; }; } | |
24797 | else | |
24798 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 | |
24799 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
24800 | wxUSE_LIBPNG=builtin | |
24801 | fi | |
24802 | else | |
24803 | wxUSE_LIBPNG=sys | |
24804 | fi | |
24805 | fi | |
24806 | fi | |
24807 | ||
24808 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
24809 | fi | |
24810 | ||
24811 | ||
24812 | JPEG_LINK= | |
24813 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
24814 | cat >>confdefs.h <<\_ACEOF | |
24815 | #define wxUSE_LIBJPEG 1 | |
24816 | _ACEOF | |
24817 | ||
24818 | ||
24819 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
24820 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 | |
24821 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
24822 | wxUSE_LIBJPEG=sys | |
24823 | fi | |
24824 | ||
24825 | if test "$wxUSE_MGL" != 1 ; then | |
24826 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
24827 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 | |
24828 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
24829 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
24830 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24831 | else | |
24832 | cat >conftest.$ac_ext <<_ACEOF | |
24833 | /* confdefs.h. */ | |
24834 | _ACEOF | |
24835 | cat confdefs.h >>conftest.$ac_ext | |
24836 | cat >>conftest.$ac_ext <<_ACEOF | |
24837 | /* end confdefs.h. */ | |
24838 | ||
24839 | #undef HAVE_STDLIB_H | |
24840 | #include <stdio.h> | |
24841 | #include <jpeglib.h> | |
24842 | ||
24843 | int | |
24844 | main () | |
24845 | { | |
24846 | ||
24847 | ||
24848 | ; | |
24849 | return 0; | |
24850 | } | |
24851 | _ACEOF | |
24852 | rm -f conftest.$ac_objext | |
24853 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 24854 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 24855 | ac_status=$? |
ac1cb8d3 VS |
24856 | grep -v '^ *+' conftest.er1 >conftest.err |
24857 | rm -f conftest.er1 | |
24858 | cat conftest.err >&5 | |
a848cd7e SC |
24859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24860 | (exit $ac_status); } && | |
3565d135 RR |
24861 | { ac_try='test -z "$ac_c_werror_flag" |
24862 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24864 | (eval $ac_try) 2>&5 | |
24865 | ac_status=$? | |
24866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24867 | (exit $ac_status); }; } && | |
24868 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
24869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24870 | (eval $ac_try) 2>&5 | |
24871 | ac_status=$? | |
24872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24873 | (exit $ac_status); }; }; then | |
24874 | ac_cv_header_jpeglib_h=yes | |
24875 | else | |
24876 | echo "$as_me: failed program was:" >&5 | |
24877 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24878 | ||
24879 | ac_cv_header_jpeglib_h=no | |
24880 | ||
24881 | fi | |
ac1cb8d3 | 24882 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24883 | |
24884 | fi | |
24885 | ||
24886 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 | |
24887 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
24888 | ||
24889 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
24890 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 | |
24891 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
24892 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
24893 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24894 | else | |
24895 | ac_check_lib_save_LIBS=$LIBS | |
24896 | LIBS="-ljpeg $LIBS" | |
24897 | cat >conftest.$ac_ext <<_ACEOF | |
24898 | /* confdefs.h. */ | |
24899 | _ACEOF | |
24900 | cat confdefs.h >>conftest.$ac_ext | |
24901 | cat >>conftest.$ac_ext <<_ACEOF | |
24902 | /* end confdefs.h. */ | |
24903 | ||
24904 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24905 | #ifdef __cplusplus | |
24906 | extern "C" | |
24907 | #endif | |
24908 | /* We use char because int might match the return type of a gcc2 | |
24909 | builtin and then its argument prototype would still apply. */ | |
24910 | char jpeg_read_header (); | |
24911 | int | |
24912 | main () | |
24913 | { | |
24914 | jpeg_read_header (); | |
24915 | ; | |
24916 | return 0; | |
24917 | } | |
24918 | _ACEOF | |
24919 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24920 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 24921 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 24922 | ac_status=$? |
ac1cb8d3 VS |
24923 | grep -v '^ *+' conftest.er1 >conftest.err |
24924 | rm -f conftest.er1 | |
24925 | cat conftest.err >&5 | |
a848cd7e SC |
24926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24927 | (exit $ac_status); } && | |
3565d135 RR |
24928 | { ac_try='test -z "$ac_c_werror_flag" |
24929 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
24930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24931 | (eval $ac_try) 2>&5 | |
24932 | ac_status=$? | |
24933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24934 | (exit $ac_status); }; } && | |
24935 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
24936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24937 | (eval $ac_try) 2>&5 | |
24938 | ac_status=$? | |
24939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24940 | (exit $ac_status); }; }; then | |
24941 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
24942 | else | |
24943 | echo "$as_me: failed program was:" >&5 | |
24944 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24945 | ||
24946 | ac_cv_lib_jpeg_jpeg_read_header=no | |
24947 | fi | |
ac1cb8d3 VS |
24948 | rm -f conftest.err conftest.$ac_objext \ |
24949 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
24950 | LIBS=$ac_check_lib_save_LIBS |
24951 | fi | |
24952 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
24953 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
24954 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
24955 | JPEG_LINK=" -ljpeg" | |
24956 | fi | |
24957 | ||
24958 | fi | |
24959 | ||
24960 | if test "x$JPEG_LINK" = "x" ; then | |
24961 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
24962 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 | |
24963 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
24964 | { (exit 1); exit 1; }; } | |
24965 | else | |
24966 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 | |
24967 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
24968 | wxUSE_LIBJPEG=builtin | |
24969 | fi | |
24970 | else | |
24971 | wxUSE_LIBJPEG=sys | |
24972 | fi | |
24973 | fi | |
24974 | fi | |
24975 | fi | |
24976 | ||
24977 | ||
24978 | TIFF_LINK= | |
24979 | TIFF_PREREQ_LINKS=-lm | |
24980 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
24981 | cat >>confdefs.h <<\_ACEOF | |
24982 | #define wxUSE_LIBTIFF 1 | |
24983 | _ACEOF | |
24984 | ||
24985 | ||
24986 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
24987 | if test "$wxUSE_LIBJPEG" = "sys"; then | |
24988 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
24989 | fi | |
24990 | if test "$wxUSE_ZLIB" = "sys"; then | |
24991 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
24992 | fi | |
24993 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
24994 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
24995 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
24996 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
24997 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24998 | fi | |
24999 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
25000 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
25001 | else | |
25002 | # Is the header compilable? | |
25003 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
25004 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
25005 | cat >conftest.$ac_ext <<_ACEOF | |
25006 | /* confdefs.h. */ | |
25007 | _ACEOF | |
25008 | cat confdefs.h >>conftest.$ac_ext | |
25009 | cat >>conftest.$ac_ext <<_ACEOF | |
25010 | /* end confdefs.h. */ | |
25011 | $ac_includes_default | |
25012 | #include <tiffio.h> | |
25013 | _ACEOF | |
25014 | rm -f conftest.$ac_objext | |
25015 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25016 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25017 | ac_status=$? |
ac1cb8d3 VS |
25018 | grep -v '^ *+' conftest.er1 >conftest.err |
25019 | rm -f conftest.er1 | |
25020 | cat conftest.err >&5 | |
a848cd7e SC |
25021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25022 | (exit $ac_status); } && | |
3565d135 RR |
25023 | { ac_try='test -z "$ac_c_werror_flag" |
25024 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25026 | (eval $ac_try) 2>&5 | |
25027 | ac_status=$? | |
25028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25029 | (exit $ac_status); }; } && | |
25030 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25032 | (eval $ac_try) 2>&5 | |
25033 | ac_status=$? | |
25034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25035 | (exit $ac_status); }; }; then | |
25036 | ac_header_compiler=yes | |
25037 | else | |
25038 | echo "$as_me: failed program was:" >&5 | |
25039 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25040 | ||
25041 | ac_header_compiler=no | |
25042 | fi | |
ac1cb8d3 | 25043 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25044 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25045 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25046 | ||
25047 | # Is the header present? | |
25048 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
25049 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
25050 | cat >conftest.$ac_ext <<_ACEOF | |
25051 | /* confdefs.h. */ | |
25052 | _ACEOF | |
25053 | cat confdefs.h >>conftest.$ac_ext | |
25054 | cat >>conftest.$ac_ext <<_ACEOF | |
25055 | /* end confdefs.h. */ | |
25056 | #include <tiffio.h> | |
25057 | _ACEOF | |
25058 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25059 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25060 | ac_status=$? | |
25061 | grep -v '^ *+' conftest.er1 >conftest.err | |
25062 | rm -f conftest.er1 | |
25063 | cat conftest.err >&5 | |
25064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25065 | (exit $ac_status); } >/dev/null; then | |
25066 | if test -s conftest.err; then | |
25067 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 25068 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
25069 | else |
25070 | ac_cpp_err= | |
25071 | fi | |
25072 | else | |
25073 | ac_cpp_err=yes | |
25074 | fi | |
25075 | if test -z "$ac_cpp_err"; then | |
25076 | ac_header_preproc=yes | |
25077 | else | |
25078 | echo "$as_me: failed program was:" >&5 | |
25079 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25080 | ||
25081 | ac_header_preproc=no | |
25082 | fi | |
25083 | rm -f conftest.err conftest.$ac_ext | |
25084 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25085 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25086 | ||
25087 | # So? What about this header? | |
ac1cb8d3 VS |
25088 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
25089 | yes:no: ) | |
a848cd7e SC |
25090 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
25091 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25092 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5 |
25093 | echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;} | |
25094 | ac_header_preproc=yes | |
a848cd7e | 25095 | ;; |
ac1cb8d3 | 25096 | no:yes:* ) |
a848cd7e SC |
25097 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
25098 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25099 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
25100 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
25101 | { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5 | |
25102 | echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;} | |
25103 | { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5 | |
25104 | echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25105 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
25106 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25107 | { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5 |
25108 | echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25109 | ( |
25110 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25111 | ## ----------------------------------------- ## |
25112 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25113 | ## ----------------------------------------- ## | |
a848cd7e SC |
25114 | _ASBOX |
25115 | ) | | |
25116 | sed "s/^/$as_me: WARNING: /" >&2 | |
25117 | ;; | |
25118 | esac | |
25119 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
25120 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
25121 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
25122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25123 | else | |
25124 | ac_cv_header_tiffio_h=$ac_header_preproc | |
25125 | fi | |
25126 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
25127 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
25128 | ||
25129 | fi | |
25130 | if test $ac_cv_header_tiffio_h = yes; then | |
25131 | ||
25132 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
25133 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
25134 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
25135 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25136 | else | |
25137 | ac_check_lib_save_LIBS=$LIBS | |
25138 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" | |
25139 | cat >conftest.$ac_ext <<_ACEOF | |
25140 | /* confdefs.h. */ | |
25141 | _ACEOF | |
25142 | cat confdefs.h >>conftest.$ac_ext | |
25143 | cat >>conftest.$ac_ext <<_ACEOF | |
25144 | /* end confdefs.h. */ | |
25145 | ||
25146 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25147 | #ifdef __cplusplus | |
25148 | extern "C" | |
25149 | #endif | |
25150 | /* We use char because int might match the return type of a gcc2 | |
25151 | builtin and then its argument prototype would still apply. */ | |
25152 | char TIFFError (); | |
25153 | int | |
25154 | main () | |
25155 | { | |
25156 | TIFFError (); | |
25157 | ; | |
25158 | return 0; | |
25159 | } | |
25160 | _ACEOF | |
25161 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25162 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25163 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25164 | ac_status=$? |
ac1cb8d3 VS |
25165 | grep -v '^ *+' conftest.er1 >conftest.err |
25166 | rm -f conftest.er1 | |
25167 | cat conftest.err >&5 | |
a848cd7e SC |
25168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25169 | (exit $ac_status); } && | |
3565d135 RR |
25170 | { ac_try='test -z "$ac_c_werror_flag" |
25171 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25173 | (eval $ac_try) 2>&5 | |
25174 | ac_status=$? | |
25175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25176 | (exit $ac_status); }; } && | |
25177 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25179 | (eval $ac_try) 2>&5 | |
25180 | ac_status=$? | |
25181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25182 | (exit $ac_status); }; }; then | |
25183 | ac_cv_lib_tiff_TIFFError=yes | |
25184 | else | |
25185 | echo "$as_me: failed program was:" >&5 | |
25186 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25187 | ||
25188 | ac_cv_lib_tiff_TIFFError=no | |
25189 | fi | |
ac1cb8d3 VS |
25190 | rm -f conftest.err conftest.$ac_objext \ |
25191 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25192 | LIBS=$ac_check_lib_save_LIBS |
25193 | fi | |
25194 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
25195 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
25196 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
25197 | TIFF_LINK=" -ltiff" | |
25198 | fi | |
25199 | ||
25200 | ||
25201 | ||
25202 | fi | |
25203 | ||
25204 | ||
25205 | ||
25206 | if test "x$TIFF_LINK" = "x" ; then | |
25207 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
25208 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 | |
25209 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
25210 | { (exit 1); exit 1; }; } | |
25211 | else | |
25212 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 | |
25213 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
25214 | wxUSE_LIBTIFF=builtin | |
25215 | fi | |
25216 | else | |
25217 | wxUSE_LIBTIFF=sys | |
25218 | fi | |
25219 | fi | |
25220 | fi | |
25221 | ||
25222 | ||
47a7e797 MW |
25223 | if test "$wxUSE_WCHAR_T" != "yes"; then |
25224 | if test "$wxUSE_EXPAT" != "no"; then | |
25225 | { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5 | |
25226 | echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;} | |
25227 | wxUSE_EXPAT=no | |
25228 | fi | |
25229 | if test "$wxUSE_XML" != "no"; then | |
25230 | { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5 | |
25231 | echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;} | |
25232 | wxUSE_XML=no | |
25233 | fi | |
25234 | fi | |
25235 | ||
a848cd7e SC |
25236 | if test "$wxUSE_EXPAT" != "no"; then |
25237 | wxUSE_XML=yes | |
25238 | cat >>confdefs.h <<\_ACEOF | |
25239 | #define wxUSE_EXPAT 1 | |
25240 | _ACEOF | |
25241 | ||
25242 | cat >>confdefs.h <<\_ACEOF | |
25243 | #define wxUSE_XML 1 | |
25244 | _ACEOF | |
25245 | ||
25246 | ||
25247 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
25248 | if test "${ac_cv_header_expat_h+set}" = set; then | |
25249 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
25250 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
25251 | if test "${ac_cv_header_expat_h+set}" = set; then | |
25252 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25253 | fi | |
25254 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
25255 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
25256 | else | |
25257 | # Is the header compilable? | |
25258 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
25259 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
25260 | cat >conftest.$ac_ext <<_ACEOF | |
25261 | /* confdefs.h. */ | |
25262 | _ACEOF | |
25263 | cat confdefs.h >>conftest.$ac_ext | |
25264 | cat >>conftest.$ac_ext <<_ACEOF | |
25265 | /* end confdefs.h. */ | |
25266 | $ac_includes_default | |
25267 | #include <expat.h> | |
25268 | _ACEOF | |
25269 | rm -f conftest.$ac_objext | |
25270 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25271 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25272 | ac_status=$? |
ac1cb8d3 VS |
25273 | grep -v '^ *+' conftest.er1 >conftest.err |
25274 | rm -f conftest.er1 | |
25275 | cat conftest.err >&5 | |
a848cd7e SC |
25276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25277 | (exit $ac_status); } && | |
3565d135 RR |
25278 | { ac_try='test -z "$ac_c_werror_flag" |
25279 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25281 | (eval $ac_try) 2>&5 | |
25282 | ac_status=$? | |
25283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25284 | (exit $ac_status); }; } && | |
25285 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25287 | (eval $ac_try) 2>&5 | |
25288 | ac_status=$? | |
25289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25290 | (exit $ac_status); }; }; then | |
25291 | ac_header_compiler=yes | |
25292 | else | |
25293 | echo "$as_me: failed program was:" >&5 | |
25294 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25295 | ||
25296 | ac_header_compiler=no | |
25297 | fi | |
ac1cb8d3 | 25298 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25299 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25300 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25301 | ||
25302 | # Is the header present? | |
25303 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
25304 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
25305 | cat >conftest.$ac_ext <<_ACEOF | |
25306 | /* confdefs.h. */ | |
25307 | _ACEOF | |
25308 | cat confdefs.h >>conftest.$ac_ext | |
25309 | cat >>conftest.$ac_ext <<_ACEOF | |
25310 | /* end confdefs.h. */ | |
25311 | #include <expat.h> | |
25312 | _ACEOF | |
25313 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25314 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25315 | ac_status=$? | |
25316 | grep -v '^ *+' conftest.er1 >conftest.err | |
25317 | rm -f conftest.er1 | |
25318 | cat conftest.err >&5 | |
25319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25320 | (exit $ac_status); } >/dev/null; then | |
25321 | if test -s conftest.err; then | |
25322 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 25323 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
25324 | else |
25325 | ac_cpp_err= | |
25326 | fi | |
25327 | else | |
25328 | ac_cpp_err=yes | |
25329 | fi | |
25330 | if test -z "$ac_cpp_err"; then | |
25331 | ac_header_preproc=yes | |
25332 | else | |
25333 | echo "$as_me: failed program was:" >&5 | |
25334 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25335 | ||
25336 | ac_header_preproc=no | |
25337 | fi | |
25338 | rm -f conftest.err conftest.$ac_ext | |
25339 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25340 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25341 | ||
25342 | # So? What about this header? | |
ac1cb8d3 VS |
25343 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
25344 | yes:no: ) | |
a848cd7e SC |
25345 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
25346 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25347 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5 |
25348 | echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;} | |
25349 | ac_header_preproc=yes | |
a848cd7e | 25350 | ;; |
ac1cb8d3 | 25351 | no:yes:* ) |
a848cd7e SC |
25352 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
25353 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25354 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
25355 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
25356 | { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5 | |
25357 | echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;} | |
25358 | { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5 | |
25359 | echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25360 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
25361 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25362 | { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5 |
25363 | echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25364 | ( |
25365 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25366 | ## ----------------------------------------- ## |
25367 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25368 | ## ----------------------------------------- ## | |
a848cd7e SC |
25369 | _ASBOX |
25370 | ) | | |
25371 | sed "s/^/$as_me: WARNING: /" >&2 | |
25372 | ;; | |
25373 | esac | |
25374 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
25375 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
25376 | if test "${ac_cv_header_expat_h+set}" = set; then | |
25377 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25378 | else | |
25379 | ac_cv_header_expat_h=$ac_header_preproc | |
25380 | fi | |
25381 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
25382 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
25383 | ||
25384 | fi | |
25385 | if test $ac_cv_header_expat_h = yes; then | |
25386 | found_expat_h=1 | |
25387 | fi | |
25388 | ||
25389 | ||
25390 | if test "x$found_expat_h" = "x1"; then | |
25391 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
25392 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
25393 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
25394 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25395 | else | |
25396 | ||
25397 | ||
25398 | ||
25399 | ac_ext=cc | |
25400 | ac_cpp='$CXXCPP $CPPFLAGS' | |
25401 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
25402 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
25403 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
25404 | ||
25405 | cat >conftest.$ac_ext <<_ACEOF | |
25406 | /* confdefs.h. */ | |
25407 | _ACEOF | |
25408 | cat confdefs.h >>conftest.$ac_ext | |
25409 | cat >>conftest.$ac_ext <<_ACEOF | |
25410 | /* end confdefs.h. */ | |
25411 | #include <expat.h> | |
25412 | int | |
25413 | main () | |
25414 | { | |
25415 | ||
25416 | ; | |
25417 | return 0; | |
25418 | } | |
25419 | _ACEOF | |
25420 | rm -f conftest.$ac_objext | |
25421 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25422 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25423 | ac_status=$? |
ac1cb8d3 VS |
25424 | grep -v '^ *+' conftest.er1 >conftest.err |
25425 | rm -f conftest.er1 | |
25426 | cat conftest.err >&5 | |
a848cd7e SC |
25427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25428 | (exit $ac_status); } && | |
3565d135 RR |
25429 | { ac_try='test -z "$ac_cxx_werror_flag" |
25430 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25432 | (eval $ac_try) 2>&5 | |
25433 | ac_status=$? | |
25434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25435 | (exit $ac_status); }; } && | |
25436 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25438 | (eval $ac_try) 2>&5 | |
25439 | ac_status=$? | |
25440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25441 | (exit $ac_status); }; }; then | |
25442 | wx_cv_expat_is_not_broken=yes | |
25443 | else | |
25444 | echo "$as_me: failed program was:" >&5 | |
25445 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25446 | ||
25447 | wx_cv_expat_is_not_broken=no | |
25448 | ||
25449 | fi | |
ac1cb8d3 | 25450 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25451 | ac_ext=c |
25452 | ac_cpp='$CPP $CPPFLAGS' | |
25453 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
25454 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
25455 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
25456 | ||
25457 | ||
25458 | ||
25459 | fi | |
25460 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
25461 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
25462 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
25463 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
25464 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 | |
25465 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
25466 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25467 | else | |
25468 | ac_check_lib_save_LIBS=$LIBS | |
25469 | LIBS="-lexpat $LIBS" | |
25470 | cat >conftest.$ac_ext <<_ACEOF | |
25471 | /* confdefs.h. */ | |
25472 | _ACEOF | |
25473 | cat confdefs.h >>conftest.$ac_ext | |
25474 | cat >>conftest.$ac_ext <<_ACEOF | |
25475 | /* end confdefs.h. */ | |
25476 | ||
25477 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25478 | #ifdef __cplusplus | |
25479 | extern "C" | |
25480 | #endif | |
25481 | /* We use char because int might match the return type of a gcc2 | |
25482 | builtin and then its argument prototype would still apply. */ | |
25483 | char XML_ParserCreate (); | |
25484 | int | |
25485 | main () | |
25486 | { | |
25487 | XML_ParserCreate (); | |
25488 | ; | |
25489 | return 0; | |
25490 | } | |
25491 | _ACEOF | |
25492 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25493 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25494 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25495 | ac_status=$? |
ac1cb8d3 VS |
25496 | grep -v '^ *+' conftest.er1 >conftest.err |
25497 | rm -f conftest.er1 | |
25498 | cat conftest.err >&5 | |
a848cd7e SC |
25499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25500 | (exit $ac_status); } && | |
3565d135 RR |
25501 | { ac_try='test -z "$ac_c_werror_flag" |
25502 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25504 | (eval $ac_try) 2>&5 | |
25505 | ac_status=$? | |
25506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25507 | (exit $ac_status); }; } && | |
25508 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25510 | (eval $ac_try) 2>&5 | |
25511 | ac_status=$? | |
25512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25513 | (exit $ac_status); }; }; then | |
25514 | ac_cv_lib_expat_XML_ParserCreate=yes | |
25515 | else | |
25516 | echo "$as_me: failed program was:" >&5 | |
25517 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25518 | ||
25519 | ac_cv_lib_expat_XML_ParserCreate=no | |
25520 | fi | |
ac1cb8d3 VS |
25521 | rm -f conftest.err conftest.$ac_objext \ |
25522 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25523 | LIBS=$ac_check_lib_save_LIBS |
25524 | fi | |
25525 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
25526 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
25527 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
25528 | EXPAT_LINK=" -lexpat" | |
25529 | fi | |
25530 | ||
25531 | fi | |
25532 | fi | |
25533 | if test "x$EXPAT_LINK" = "x" ; then | |
25534 | if test "$wxUSE_EXPAT" = "sys" ; then | |
25535 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
25536 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
25537 | { (exit 1); exit 1; }; } | |
25538 | else | |
25539 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
25540 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
25541 | wxUSE_EXPAT=builtin | |
25542 | fi | |
25543 | else | |
25544 | wxUSE_EXPAT=sys | |
25545 | fi | |
25546 | fi | |
25547 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
25548 | ||
25549 | ||
25550 | subdirs="$subdirs src/expat" | |
25551 | ||
25552 | fi | |
25553 | fi | |
25554 | ||
25555 | ||
25556 | ||
25557 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
a848cd7e SC |
25558 | if test "${ac_cv_header_mspack_h+set}" = set; then |
25559 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
25560 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
25561 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
25562 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25563 | fi | |
25564 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
25565 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
25566 | else | |
25567 | # Is the header compilable? | |
25568 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
25569 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
25570 | cat >conftest.$ac_ext <<_ACEOF | |
25571 | /* confdefs.h. */ | |
25572 | _ACEOF | |
25573 | cat confdefs.h >>conftest.$ac_ext | |
25574 | cat >>conftest.$ac_ext <<_ACEOF | |
25575 | /* end confdefs.h. */ | |
25576 | $ac_includes_default | |
25577 | #include <mspack.h> | |
25578 | _ACEOF | |
25579 | rm -f conftest.$ac_objext | |
25580 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25581 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25582 | ac_status=$? |
ac1cb8d3 VS |
25583 | grep -v '^ *+' conftest.er1 >conftest.err |
25584 | rm -f conftest.er1 | |
25585 | cat conftest.err >&5 | |
a848cd7e SC |
25586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25587 | (exit $ac_status); } && | |
3565d135 RR |
25588 | { ac_try='test -z "$ac_c_werror_flag" |
25589 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25591 | (eval $ac_try) 2>&5 | |
25592 | ac_status=$? | |
25593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25594 | (exit $ac_status); }; } && | |
25595 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25597 | (eval $ac_try) 2>&5 | |
25598 | ac_status=$? | |
25599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25600 | (exit $ac_status); }; }; then | |
25601 | ac_header_compiler=yes | |
25602 | else | |
25603 | echo "$as_me: failed program was:" >&5 | |
25604 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25605 | ||
25606 | ac_header_compiler=no | |
25607 | fi | |
ac1cb8d3 | 25608 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25609 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25610 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25611 | ||
25612 | # Is the header present? | |
25613 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
25614 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
25615 | cat >conftest.$ac_ext <<_ACEOF | |
25616 | /* confdefs.h. */ | |
25617 | _ACEOF | |
25618 | cat confdefs.h >>conftest.$ac_ext | |
25619 | cat >>conftest.$ac_ext <<_ACEOF | |
25620 | /* end confdefs.h. */ | |
25621 | #include <mspack.h> | |
25622 | _ACEOF | |
25623 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25624 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25625 | ac_status=$? | |
25626 | grep -v '^ *+' conftest.er1 >conftest.err | |
25627 | rm -f conftest.er1 | |
25628 | cat conftest.err >&5 | |
25629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25630 | (exit $ac_status); } >/dev/null; then | |
25631 | if test -s conftest.err; then | |
25632 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 25633 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
25634 | else |
25635 | ac_cpp_err= | |
25636 | fi | |
25637 | else | |
25638 | ac_cpp_err=yes | |
25639 | fi | |
25640 | if test -z "$ac_cpp_err"; then | |
25641 | ac_header_preproc=yes | |
25642 | else | |
25643 | echo "$as_me: failed program was:" >&5 | |
25644 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25645 | ||
25646 | ac_header_preproc=no | |
25647 | fi | |
25648 | rm -f conftest.err conftest.$ac_ext | |
25649 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25650 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25651 | ||
25652 | # So? What about this header? | |
ac1cb8d3 VS |
25653 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
25654 | yes:no: ) | |
a848cd7e SC |
25655 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
25656 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25657 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5 |
25658 | echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;} | |
25659 | ac_header_preproc=yes | |
a848cd7e | 25660 | ;; |
ac1cb8d3 | 25661 | no:yes:* ) |
a848cd7e SC |
25662 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
25663 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25664 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
25665 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
25666 | { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5 | |
25667 | echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;} | |
25668 | { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5 | |
25669 | echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25670 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
25671 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25672 | { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5 |
25673 | echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25674 | ( |
25675 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25676 | ## ----------------------------------------- ## |
25677 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25678 | ## ----------------------------------------- ## | |
a848cd7e SC |
25679 | _ASBOX |
25680 | ) | | |
25681 | sed "s/^/$as_me: WARNING: /" >&2 | |
25682 | ;; | |
25683 | esac | |
25684 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
25685 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
25686 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
25687 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25688 | else | |
25689 | ac_cv_header_mspack_h=$ac_header_preproc | |
25690 | fi | |
25691 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
25692 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
25693 | ||
25694 | fi | |
25695 | if test $ac_cv_header_mspack_h = yes; then | |
25696 | found_mspack_h=1 | |
25697 | fi | |
25698 | ||
25699 | ||
25700 | if test "x$found_mspack_h" = "x1"; then | |
25701 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
25702 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
25703 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
25704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25705 | else | |
25706 | ac_check_lib_save_LIBS=$LIBS | |
25707 | LIBS="-lmspack $LIBS" | |
25708 | cat >conftest.$ac_ext <<_ACEOF | |
25709 | /* confdefs.h. */ | |
25710 | _ACEOF | |
25711 | cat confdefs.h >>conftest.$ac_ext | |
25712 | cat >>conftest.$ac_ext <<_ACEOF | |
25713 | /* end confdefs.h. */ | |
25714 | ||
25715 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25716 | #ifdef __cplusplus | |
25717 | extern "C" | |
25718 | #endif | |
25719 | /* We use char because int might match the return type of a gcc2 | |
25720 | builtin and then its argument prototype would still apply. */ | |
25721 | char mspack_create_chm_decompressor (); | |
25722 | int | |
25723 | main () | |
25724 | { | |
25725 | mspack_create_chm_decompressor (); | |
25726 | ; | |
25727 | return 0; | |
25728 | } | |
25729 | _ACEOF | |
25730 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25731 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 25732 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 25733 | ac_status=$? |
ac1cb8d3 VS |
25734 | grep -v '^ *+' conftest.er1 >conftest.err |
25735 | rm -f conftest.er1 | |
25736 | cat conftest.err >&5 | |
a848cd7e SC |
25737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25738 | (exit $ac_status); } && | |
3565d135 RR |
25739 | { ac_try='test -z "$ac_c_werror_flag" |
25740 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25742 | (eval $ac_try) 2>&5 | |
25743 | ac_status=$? | |
25744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25745 | (exit $ac_status); }; } && | |
25746 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
25747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25748 | (eval $ac_try) 2>&5 | |
25749 | ac_status=$? | |
25750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25751 | (exit $ac_status); }; }; then | |
25752 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
25753 | else | |
25754 | echo "$as_me: failed program was:" >&5 | |
25755 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25756 | ||
25757 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
25758 | fi | |
ac1cb8d3 VS |
25759 | rm -f conftest.err conftest.$ac_objext \ |
25760 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
25761 | LIBS=$ac_check_lib_save_LIBS |
25762 | fi | |
25763 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
25764 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
25765 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
25766 | MSPACK_LINK=" -lmspack" | |
25767 | fi | |
25768 | ||
25769 | fi | |
25770 | if test "x$MSPACK_LINK" = "x" ; then | |
25771 | wxUSE_LIBMSPACK=no | |
dd3a2d96 VZ |
25772 | fi |
25773 | fi | |
25774 | ||
25775 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
25776 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
25777 | #define wxUSE_LIBMSPACK 1 |
25778 | _ACEOF | |
25779 | ||
a848cd7e SC |
25780 | fi |
25781 | ||
25782 | ||
25783 | ||
25784 | AFMINSTALL= | |
25785 | WIN32INSTALL= | |
25786 | ||
25787 | TOOLKIT= | |
25788 | TOOLKIT_INCLUDE= | |
25789 | WIDGET_SET= | |
25790 | ||
25791 | if test "$USE_WIN32" = 1 ; then | |
25792 | ||
25793 | for ac_header in w32api.h | |
25794 | do | |
25795 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
25796 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
25797 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
25798 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
25799 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
25800 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25801 | fi | |
25802 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
25803 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
25804 | else | |
25805 | # Is the header compilable? | |
25806 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
25807 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
25808 | cat >conftest.$ac_ext <<_ACEOF | |
25809 | /* confdefs.h. */ | |
25810 | _ACEOF | |
25811 | cat confdefs.h >>conftest.$ac_ext | |
25812 | cat >>conftest.$ac_ext <<_ACEOF | |
25813 | /* end confdefs.h. */ | |
25814 | $ac_includes_default | |
25815 | #include <$ac_header> | |
25816 | _ACEOF | |
25817 | rm -f conftest.$ac_objext | |
25818 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25819 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25820 | ac_status=$? |
ac1cb8d3 VS |
25821 | grep -v '^ *+' conftest.er1 >conftest.err |
25822 | rm -f conftest.er1 | |
25823 | cat conftest.err >&5 | |
a848cd7e SC |
25824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25825 | (exit $ac_status); } && | |
3565d135 RR |
25826 | { ac_try='test -z "$ac_c_werror_flag" |
25827 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25829 | (eval $ac_try) 2>&5 | |
25830 | ac_status=$? | |
25831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25832 | (exit $ac_status); }; } && | |
25833 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25835 | (eval $ac_try) 2>&5 | |
25836 | ac_status=$? | |
25837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25838 | (exit $ac_status); }; }; then | |
25839 | ac_header_compiler=yes | |
25840 | else | |
25841 | echo "$as_me: failed program was:" >&5 | |
25842 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25843 | ||
25844 | ac_header_compiler=no | |
25845 | fi | |
ac1cb8d3 | 25846 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25847 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25848 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25849 | ||
25850 | # Is the header present? | |
25851 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
25852 | echo $ECHO_N "checking $ac_header presence... $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 | #include <$ac_header> | |
25860 | _ACEOF | |
25861 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25862 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25863 | ac_status=$? | |
25864 | grep -v '^ *+' conftest.er1 >conftest.err | |
25865 | rm -f conftest.er1 | |
25866 | cat conftest.err >&5 | |
25867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25868 | (exit $ac_status); } >/dev/null; then | |
25869 | if test -s conftest.err; then | |
25870 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 25871 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
25872 | else |
25873 | ac_cpp_err= | |
25874 | fi | |
25875 | else | |
25876 | ac_cpp_err=yes | |
25877 | fi | |
25878 | if test -z "$ac_cpp_err"; then | |
25879 | ac_header_preproc=yes | |
25880 | else | |
25881 | echo "$as_me: failed program was:" >&5 | |
25882 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25883 | ||
25884 | ac_header_preproc=no | |
25885 | fi | |
25886 | rm -f conftest.err conftest.$ac_ext | |
25887 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25888 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25889 | ||
25890 | # So? What about this header? | |
ac1cb8d3 VS |
25891 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
25892 | yes:no: ) | |
a848cd7e SC |
25893 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
25894 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
25895 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
25896 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
25897 | ac_header_preproc=yes | |
a848cd7e | 25898 | ;; |
ac1cb8d3 | 25899 | no:yes:* ) |
a848cd7e SC |
25900 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
25901 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
25902 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
25903 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
25904 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
25905 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
25906 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
25907 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
25908 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
25909 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
25910 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
25911 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
25912 | ( |
25913 | cat <<\_ASBOX | |
ac1cb8d3 VS |
25914 | ## ----------------------------------------- ## |
25915 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
25916 | ## ----------------------------------------- ## | |
a848cd7e SC |
25917 | _ASBOX |
25918 | ) | | |
25919 | sed "s/^/$as_me: WARNING: /" >&2 | |
25920 | ;; | |
25921 | esac | |
25922 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
25923 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
25924 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
25925 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25926 | else | |
ac1cb8d3 | 25927 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
25928 | fi |
25929 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
25930 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
25931 | ||
25932 | fi | |
25933 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
25934 | cat >>confdefs.h <<_ACEOF | |
25935 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
25936 | _ACEOF | |
25937 | ||
25938 | fi | |
25939 | ||
25940 | done | |
25941 | ||
25942 | if test "${ac_cv_header_windows_h+set}" = set; then | |
25943 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
25944 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
25945 | if test "${ac_cv_header_windows_h+set}" = set; then | |
25946 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25947 | fi | |
25948 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
25949 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
25950 | else | |
25951 | # Is the header compilable? | |
25952 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
25953 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
25954 | cat >conftest.$ac_ext <<_ACEOF | |
25955 | /* confdefs.h. */ | |
25956 | _ACEOF | |
25957 | cat confdefs.h >>conftest.$ac_ext | |
25958 | cat >>conftest.$ac_ext <<_ACEOF | |
25959 | /* end confdefs.h. */ | |
25960 | $ac_includes_default | |
25961 | #include <windows.h> | |
25962 | _ACEOF | |
25963 | rm -f conftest.$ac_objext | |
25964 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 25965 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 25966 | ac_status=$? |
ac1cb8d3 VS |
25967 | grep -v '^ *+' conftest.er1 >conftest.err |
25968 | rm -f conftest.er1 | |
25969 | cat conftest.err >&5 | |
a848cd7e SC |
25970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25971 | (exit $ac_status); } && | |
3565d135 RR |
25972 | { ac_try='test -z "$ac_c_werror_flag" |
25973 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
25974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25975 | (eval $ac_try) 2>&5 | |
25976 | ac_status=$? | |
25977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25978 | (exit $ac_status); }; } && | |
25979 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
25980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25981 | (eval $ac_try) 2>&5 | |
25982 | ac_status=$? | |
25983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25984 | (exit $ac_status); }; }; then | |
25985 | ac_header_compiler=yes | |
25986 | else | |
25987 | echo "$as_me: failed program was:" >&5 | |
25988 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25989 | ||
25990 | ac_header_compiler=no | |
25991 | fi | |
ac1cb8d3 | 25992 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25993 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25994 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25995 | ||
25996 | # Is the header present? | |
25997 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
25998 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
25999 | cat >conftest.$ac_ext <<_ACEOF | |
26000 | /* confdefs.h. */ | |
26001 | _ACEOF | |
26002 | cat confdefs.h >>conftest.$ac_ext | |
26003 | cat >>conftest.$ac_ext <<_ACEOF | |
26004 | /* end confdefs.h. */ | |
26005 | #include <windows.h> | |
26006 | _ACEOF | |
26007 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26008 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26009 | ac_status=$? | |
26010 | grep -v '^ *+' conftest.er1 >conftest.err | |
26011 | rm -f conftest.er1 | |
26012 | cat conftest.err >&5 | |
26013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26014 | (exit $ac_status); } >/dev/null; then | |
26015 | if test -s conftest.err; then | |
26016 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 26017 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
26018 | else |
26019 | ac_cpp_err= | |
26020 | fi | |
26021 | else | |
26022 | ac_cpp_err=yes | |
26023 | fi | |
26024 | if test -z "$ac_cpp_err"; then | |
26025 | ac_header_preproc=yes | |
26026 | else | |
26027 | echo "$as_me: failed program was:" >&5 | |
26028 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26029 | ||
26030 | ac_header_preproc=no | |
26031 | fi | |
26032 | rm -f conftest.err conftest.$ac_ext | |
26033 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26034 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26035 | ||
26036 | # So? What about this header? | |
ac1cb8d3 VS |
26037 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
26038 | yes:no: ) | |
a848cd7e SC |
26039 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
26040 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
26041 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5 |
26042 | echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;} | |
26043 | ac_header_preproc=yes | |
a848cd7e | 26044 | ;; |
ac1cb8d3 | 26045 | no:yes:* ) |
a848cd7e SC |
26046 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
26047 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
26048 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
26049 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
26050 | { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5 | |
26051 | echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;} | |
26052 | { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5 | |
26053 | echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
26054 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
26055 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
26056 | { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5 |
26057 | echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
26058 | ( |
26059 | cat <<\_ASBOX | |
ac1cb8d3 VS |
26060 | ## ----------------------------------------- ## |
26061 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
26062 | ## ----------------------------------------- ## | |
a848cd7e SC |
26063 | _ASBOX |
26064 | ) | | |
26065 | sed "s/^/$as_me: WARNING: /" >&2 | |
26066 | ;; | |
26067 | esac | |
26068 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
26069 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
26070 | if test "${ac_cv_header_windows_h+set}" = set; then | |
26071 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26072 | else | |
26073 | ac_cv_header_windows_h=$ac_header_preproc | |
26074 | fi | |
26075 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
26076 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
26077 | ||
26078 | fi | |
26079 | if test $ac_cv_header_windows_h = yes; then | |
26080 | : | |
26081 | else | |
26082 | ||
26083 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 | |
26084 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
26085 | { (exit 1); exit 1; }; } | |
26086 | ||
26087 | fi | |
26088 | ||
26089 | ||
26090 | ||
26091 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" | |
26092 | ||
26093 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then | |
26094 | LIBS="$LIBS -loleacc" | |
26095 | fi | |
26096 | ||
26097 | case "${host}" in | |
26098 | *-*-cygwin* ) | |
26099 | LIBS="$LIBS -lkernel32 -luser32" | |
a848cd7e SC |
26100 | esac |
26101 | ||
26102 | if test "$wxUSE_ODBC" = "sys" ; then | |
26103 | wxUSE_ODBC = "yes" | |
26104 | fi | |
26105 | if test "$wxUSE_ODBC" = "yes" ; then | |
26106 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
26107 | cat >>confdefs.h <<\_ACEOF | |
26108 | #define wxUSE_ODBC 1 | |
26109 | _ACEOF | |
26110 | ||
26111 | fi | |
26112 | ||
370d2fd7 | 26113 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
a848cd7e SC |
26114 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" |
26115 | ||
004ee6da | 26116 | WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
370d2fd7 | 26117 | |
a848cd7e SC |
26118 | WIN32INSTALL=win32install |
26119 | fi | |
26120 | ||
26121 | if test "$wxUSE_GUI" = "yes"; then | |
26122 | USE_GUI=1 | |
26123 | ||
26124 | GUI_TK_LIBRARY= | |
26125 | ||
26126 | WXGTK12= | |
26127 | WXGTK127= | |
26128 | WXGTK20= | |
26129 | WXGPE= | |
26130 | ||
207bc66c RN |
26131 | if test "$wxUSE_COCOA" = 1 ; then |
26132 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then | |
26133 | { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5 | |
26134 | echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;} | |
26135 | wxUSE_PRINTING_ARCHITECTURE=no | |
26136 | fi | |
26137 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
26138 | { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5 | |
26139 | echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;} | |
26140 | wxUSE_DRAG_AND_DROP=no | |
26141 | fi | |
26142 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
26143 | { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5 | |
26144 | echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;} | |
26145 | wxUSE_DRAGIMAGE=no | |
26146 | fi | |
26147 | fi | |
26148 | ||
a848cd7e SC |
26149 | if test "$wxUSE_MSW" = 1 ; then |
26150 | TOOLKIT=MSW | |
26151 | GUIDIST=MSW_DIST | |
26152 | ||
ceec2216 | 26153 | case "${host}" in |
a848cd7e SC |
26154 | *-*-mingw32* ) |
26155 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
26156 | esac | |
26157 | fi | |
26158 | ||
26159 | if test "$wxUSE_GTK" = 1; then | |
26160 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 | |
26161 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
26162 | ||
26163 | gtk_version_cached=1 | |
26164 | if test "${wx_cv_lib_gtk+set}" = set; then | |
26165 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26166 | else | |
26167 | ||
26168 | gtk_version_cached=0 | |
26169 | echo "$as_me:$LINENO: result: " >&5 | |
26170 | echo "${ECHO_T}" >&6 | |
26171 | ||
26172 | GTK_MODULES= | |
26173 | if test "$wxUSE_THREADS" = "yes"; then | |
26174 | GTK_MODULES=gthread | |
26175 | fi | |
26176 | ||
f597b41c | 26177 | wx_cv_lib_gtk= |
5001df0d MW |
26178 | if test "x$wxGTK_VERSION" != "x1" |
26179 | then | |
26180 | case "${host}" in | |
26181 | *-*-solaris2* ) | |
26182 | if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then | |
5ff751d6 | 26183 | enable_gtktest=no |
5001df0d MW |
26184 | fi |
26185 | esac | |
26186 | ||
a848cd7e SC |
26187 | # Check whether --enable-gtktest or --disable-gtktest was given. |
26188 | if test "${enable_gtktest+set}" = set; then | |
26189 | enableval="$enable_gtktest" | |
26190 | ||
26191 | else | |
26192 | enable_gtktest=yes | |
26193 | fi; | |
26194 | ||
26195 | pkg_config_args=gtk+-2.0 | |
26196 | for module in . $GTK_MODULES | |
26197 | do | |
26198 | case "$module" in | |
26199 | gthread) | |
26200 | pkg_config_args="$pkg_config_args gthread-2.0" | |
26201 | ;; | |
26202 | esac | |
26203 | done | |
26204 | ||
26205 | no_gtk="" | |
26206 | ||
26207 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
26208 | set dummy pkg-config; ac_word=$2 | |
26209 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
26210 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
26211 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
26212 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26213 | else | |
26214 | case $PKG_CONFIG in | |
26215 | [\\/]* | ?:[\\/]*) | |
26216 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
26217 | ;; | |
26218 | *) | |
26219 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26220 | for as_dir in $PATH | |
26221 | do | |
26222 | IFS=$as_save_IFS | |
26223 | test -z "$as_dir" && as_dir=. | |
26224 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26225 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
26226 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
26227 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
26228 | break 2 | |
26229 | fi | |
26230 | done | |
26231 | done | |
26232 | ||
26233 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
26234 | ;; | |
26235 | esac | |
26236 | fi | |
26237 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
26238 | ||
26239 | if test -n "$PKG_CONFIG"; then | |
26240 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
26241 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
26242 | else | |
26243 | echo "$as_me:$LINENO: result: no" >&5 | |
26244 | echo "${ECHO_T}no" >&6 | |
26245 | fi | |
26246 | ||
26247 | ||
26248 | if test x$PKG_CONFIG != xno ; then | |
26249 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
26250 | : | |
26251 | else | |
c2218763 | 26252 | echo "*** pkg-config too old; version 0.7 or better required." |
a848cd7e SC |
26253 | no_gtk=yes |
26254 | PKG_CONFIG=no | |
26255 | fi | |
26256 | else | |
26257 | no_gtk=yes | |
26258 | fi | |
26259 | ||
26260 | min_gtk_version=2.0.0 | |
26261 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 | |
26262 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
26263 | ||
26264 | if test x$PKG_CONFIG != xno ; then | |
26265 | ## don't try to run the test against uninstalled libtool libs | |
26266 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
26267 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
26268 | enable_gtktest=no | |
26269 | fi | |
26270 | ||
26271 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
26272 | : | |
26273 | else | |
26274 | no_gtk=yes | |
26275 | fi | |
26276 | fi | |
26277 | ||
26278 | if test x"$no_gtk" = x ; then | |
26279 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
26280 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
26281 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
26282 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
26283 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
26284 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
26285 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
26286 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
26287 | if test "x$enable_gtktest" = "xyes" ; then | |
26288 | ac_save_CFLAGS="$CFLAGS" | |
26289 | ac_save_LIBS="$LIBS" | |
26290 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
26291 | LIBS="$GTK_LIBS $LIBS" | |
26292 | rm -f conf.gtktest | |
26293 | if test "$cross_compiling" = yes; then | |
26294 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
26295 | else | |
26296 | cat >conftest.$ac_ext <<_ACEOF | |
26297 | /* confdefs.h. */ | |
26298 | _ACEOF | |
26299 | cat confdefs.h >>conftest.$ac_ext | |
26300 | cat >>conftest.$ac_ext <<_ACEOF | |
26301 | /* end confdefs.h. */ | |
26302 | ||
26303 | #include <gtk/gtk.h> | |
26304 | #include <stdio.h> | |
26305 | #include <stdlib.h> | |
26306 | ||
26307 | int | |
26308 | main () | |
26309 | { | |
26310 | int major, minor, micro; | |
26311 | char *tmp_version; | |
26312 | ||
26313 | system ("touch conf.gtktest"); | |
26314 | ||
26315 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
26316 | tmp_version = g_strdup("$min_gtk_version"); | |
26317 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
26318 | printf("%s, bad version string\n", "$min_gtk_version"); | |
26319 | exit(1); | |
26320 | } | |
26321 | ||
26322 | if ((gtk_major_version != $gtk_config_major_version) || | |
26323 | (gtk_minor_version != $gtk_config_minor_version) || | |
26324 | (gtk_micro_version != $gtk_config_micro_version)) | |
26325 | { | |
26326 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
26327 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
26328 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26329 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
26330 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
26331 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
26332 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
26333 | printf("*** required on your system.\n"); | |
26334 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
26335 | printf("*** to point to the correct configuration files\n"); | |
26336 | } | |
26337 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
26338 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
26339 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
26340 | { | |
26341 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
26342 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
26343 | printf("*** library (version %d.%d.%d)\n", | |
26344 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26345 | } | |
26346 | else | |
26347 | { | |
26348 | if ((gtk_major_version > major) || | |
26349 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
26350 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
26351 | { | |
26352 | return 0; | |
26353 | } | |
26354 | else | |
26355 | { | |
26356 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
26357 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26358 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
26359 | major, minor, micro); | |
26360 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
26361 | printf("***\n"); | |
26362 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
26363 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
26364 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
26365 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
26366 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
26367 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
26368 | printf("*** so that the correct libraries are found at run-time))\n"); | |
26369 | } | |
26370 | } | |
26371 | return 1; | |
26372 | } | |
26373 | ||
26374 | _ACEOF | |
26375 | rm -f conftest$ac_exeext | |
26376 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26377 | (eval $ac_link) 2>&5 | |
26378 | ac_status=$? | |
26379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26380 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
26381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26382 | (eval $ac_try) 2>&5 | |
26383 | ac_status=$? | |
26384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26385 | (exit $ac_status); }; }; then | |
26386 | : | |
26387 | else | |
26388 | echo "$as_me: program exited with status $ac_status" >&5 | |
26389 | echo "$as_me: failed program was:" >&5 | |
26390 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26391 | ||
26392 | ( exit $ac_status ) | |
26393 | no_gtk=yes | |
26394 | fi | |
ac1cb8d3 | 26395 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26396 | fi |
26397 | CFLAGS="$ac_save_CFLAGS" | |
26398 | LIBS="$ac_save_LIBS" | |
26399 | fi | |
26400 | fi | |
26401 | if test "x$no_gtk" = x ; then | |
26402 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | |
26403 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
26404 | wx_cv_lib_gtk=2.0 | |
26405 | else | |
26406 | echo "$as_me:$LINENO: result: no" >&5 | |
26407 | echo "${ECHO_T}no" >&6 | |
26408 | if test "$PKG_CONFIG" = "no" ; then | |
26409 | echo "*** A new enough version of pkg-config was not found." | |
26410 | echo "*** See http://pkgconfig.sourceforge.net" | |
26411 | else | |
26412 | if test -f conf.gtktest ; then | |
26413 | : | |
26414 | else | |
26415 | echo "*** Could not run GTK+ test program, checking why..." | |
26416 | ac_save_CFLAGS="$CFLAGS" | |
26417 | ac_save_LIBS="$LIBS" | |
26418 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
26419 | LIBS="$LIBS $GTK_LIBS" | |
26420 | cat >conftest.$ac_ext <<_ACEOF | |
26421 | /* confdefs.h. */ | |
26422 | _ACEOF | |
26423 | cat confdefs.h >>conftest.$ac_ext | |
26424 | cat >>conftest.$ac_ext <<_ACEOF | |
26425 | /* end confdefs.h. */ | |
26426 | ||
26427 | #include <gtk/gtk.h> | |
26428 | #include <stdio.h> | |
26429 | ||
26430 | int | |
26431 | main () | |
26432 | { | |
26433 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
26434 | ; | |
26435 | return 0; | |
26436 | } | |
26437 | _ACEOF | |
26438 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26439 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26440 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26441 | ac_status=$? |
ac1cb8d3 VS |
26442 | grep -v '^ *+' conftest.er1 >conftest.err |
26443 | rm -f conftest.er1 | |
26444 | cat conftest.err >&5 | |
a848cd7e SC |
26445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26446 | (exit $ac_status); } && | |
3565d135 RR |
26447 | { ac_try='test -z "$ac_c_werror_flag" |
26448 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26450 | (eval $ac_try) 2>&5 | |
26451 | ac_status=$? | |
26452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26453 | (exit $ac_status); }; } && | |
26454 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26456 | (eval $ac_try) 2>&5 | |
26457 | ac_status=$? | |
26458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26459 | (exit $ac_status); }; }; then | |
26460 | echo "*** The test program compiled, but did not run. This usually means" | |
26461 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
26462 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
26463 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
26464 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
26465 | echo "*** is required on your system" | |
26466 | echo "***" | |
26467 | echo "*** If you have an old version installed, it is best to remove it, although" | |
26468 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
26469 | else | |
26470 | echo "$as_me: failed program was:" >&5 | |
26471 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26472 | ||
26473 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
26474 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | |
26475 | fi | |
ac1cb8d3 VS |
26476 | rm -f conftest.err conftest.$ac_objext \ |
26477 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26478 | CFLAGS="$ac_save_CFLAGS" |
26479 | LIBS="$ac_save_LIBS" | |
26480 | fi | |
26481 | fi | |
26482 | GTK_CFLAGS="" | |
26483 | GTK_LIBS="" | |
26484 | : | |
26485 | fi | |
26486 | ||
26487 | ||
26488 | rm -f conf.gtktest | |
26489 | ||
5001df0d MW |
26490 | |
26491 | case "${host}" in | |
26492 | *-*-solaris2* ) | |
26493 | if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then | |
26494 | GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'` | |
26495 | GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'` | |
26496 | fi | |
26497 | if test "$wxUSE_SHARED" != "yes"; then | |
26498 | GTK_LIBS="$GTK_LIBS -lX11" | |
26499 | fi | |
26500 | esac | |
f597b41c MW |
26501 | fi |
26502 | ||
f34ca037 MW |
26503 | if test -z "$wx_cv_lib_gtk"; then |
26504 | if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then | |
a848cd7e SC |
26505 | |
26506 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
26507 | if test "${with_gtk_prefix+set}" = set; then | |
26508 | withval="$with_gtk_prefix" | |
26509 | gtk_config_prefix="$withval" | |
26510 | else | |
26511 | gtk_config_prefix="" | |
26512 | fi; | |
26513 | ||
26514 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
26515 | if test "${with_gtk_exec_prefix+set}" = set; then | |
26516 | withval="$with_gtk_exec_prefix" | |
26517 | gtk_config_exec_prefix="$withval" | |
26518 | else | |
26519 | gtk_config_exec_prefix="" | |
26520 | fi; | |
26521 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
26522 | if test "${enable_gtktest+set}" = set; then | |
26523 | enableval="$enable_gtktest" | |
26524 | ||
26525 | else | |
26526 | enable_gtktest=yes | |
26527 | fi; | |
26528 | ||
26529 | for module in . $GTK_MODULES | |
26530 | do | |
26531 | case "$module" in | |
26532 | gthread) | |
26533 | gtk_config_args="$gtk_config_args gthread" | |
26534 | ;; | |
26535 | esac | |
26536 | done | |
26537 | ||
26538 | if test x$gtk_config_exec_prefix != x ; then | |
26539 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
26540 | if test x${GTK_CONFIG+set} != xset ; then | |
26541 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
26542 | fi | |
26543 | fi | |
26544 | if test x$gtk_config_prefix != x ; then | |
26545 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
26546 | if test x${GTK_CONFIG+set} != xset ; then | |
26547 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
26548 | fi | |
26549 | fi | |
26550 | ||
26551 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
26552 | set dummy gtk-config; ac_word=$2 | |
26553 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
26554 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
26555 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
26556 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26557 | else | |
26558 | case $GTK_CONFIG in | |
26559 | [\\/]* | ?:[\\/]*) | |
26560 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
26561 | ;; | |
26562 | *) | |
26563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26564 | for as_dir in $PATH | |
26565 | do | |
26566 | IFS=$as_save_IFS | |
26567 | test -z "$as_dir" && as_dir=. | |
26568 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26569 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
26570 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
26571 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
26572 | break 2 | |
26573 | fi | |
26574 | done | |
26575 | done | |
26576 | ||
26577 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
26578 | ;; | |
26579 | esac | |
26580 | fi | |
26581 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
26582 | ||
26583 | if test -n "$GTK_CONFIG"; then | |
26584 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
26585 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
26586 | else | |
26587 | echo "$as_me:$LINENO: result: no" >&5 | |
26588 | echo "${ECHO_T}no" >&6 | |
26589 | fi | |
26590 | ||
26591 | min_gtk_version=1.2.7 | |
26592 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
26593 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
26594 | no_gtk="" | |
26595 | if test "$GTK_CONFIG" = "no" ; then | |
26596 | no_gtk=yes | |
26597 | else | |
26598 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
26599 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
26600 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
26601 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
26602 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
26603 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
26604 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
26605 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
26606 | if test "x$enable_gtktest" = "xyes" ; then | |
26607 | ac_save_CFLAGS="$CFLAGS" | |
26608 | ac_save_LIBS="$LIBS" | |
26609 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
26610 | LIBS="$GTK_LIBS $LIBS" | |
26611 | rm -f conf.gtktest | |
26612 | if test "$cross_compiling" = yes; then | |
26613 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
26614 | else | |
26615 | cat >conftest.$ac_ext <<_ACEOF | |
26616 | /* confdefs.h. */ | |
26617 | _ACEOF | |
26618 | cat confdefs.h >>conftest.$ac_ext | |
26619 | cat >>conftest.$ac_ext <<_ACEOF | |
26620 | /* end confdefs.h. */ | |
26621 | ||
26622 | #include <gtk/gtk.h> | |
26623 | #include <stdio.h> | |
26624 | #include <stdlib.h> | |
26625 | ||
26626 | int | |
26627 | main () | |
26628 | { | |
26629 | int major, minor, micro; | |
26630 | char *tmp_version; | |
26631 | ||
26632 | system ("touch conf.gtktest"); | |
26633 | ||
26634 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
26635 | tmp_version = g_strdup("$min_gtk_version"); | |
26636 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
26637 | printf("%s, bad version string\n", "$min_gtk_version"); | |
26638 | exit(1); | |
26639 | } | |
26640 | ||
26641 | if ((gtk_major_version != $gtk_config_major_version) || | |
26642 | (gtk_minor_version != $gtk_config_minor_version) || | |
26643 | (gtk_micro_version != $gtk_config_micro_version)) | |
26644 | { | |
26645 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
26646 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
26647 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26648 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
26649 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
26650 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
26651 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
26652 | printf("*** required on your system.\n"); | |
26653 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
26654 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
26655 | printf("*** before re-running configure\n"); | |
26656 | } | |
26657 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
26658 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
26659 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
26660 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
26661 | { | |
26662 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
26663 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
26664 | printf("*** library (version %d.%d.%d)\n", | |
26665 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26666 | } | |
26667 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
26668 | else | |
26669 | { | |
26670 | if ((gtk_major_version > major) || | |
26671 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
26672 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
26673 | { | |
26674 | return 0; | |
26675 | } | |
26676 | else | |
26677 | { | |
26678 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
26679 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26680 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
26681 | major, minor, micro); | |
26682 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
26683 | printf("***\n"); | |
26684 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
26685 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
26686 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
26687 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
26688 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
26689 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
26690 | printf("*** so that the correct libraries are found at run-time))\n"); | |
26691 | } | |
26692 | } | |
26693 | return 1; | |
26694 | } | |
26695 | ||
26696 | _ACEOF | |
26697 | rm -f conftest$ac_exeext | |
26698 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26699 | (eval $ac_link) 2>&5 | |
26700 | ac_status=$? | |
26701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26702 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
26703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26704 | (eval $ac_try) 2>&5 | |
26705 | ac_status=$? | |
26706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26707 | (exit $ac_status); }; }; then | |
26708 | : | |
26709 | else | |
26710 | echo "$as_me: program exited with status $ac_status" >&5 | |
26711 | echo "$as_me: failed program was:" >&5 | |
26712 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26713 | ||
26714 | ( exit $ac_status ) | |
26715 | no_gtk=yes | |
26716 | fi | |
ac1cb8d3 | 26717 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26718 | fi |
26719 | CFLAGS="$ac_save_CFLAGS" | |
26720 | LIBS="$ac_save_LIBS" | |
26721 | fi | |
26722 | fi | |
26723 | if test "x$no_gtk" = x ; then | |
26724 | echo "$as_me:$LINENO: result: yes" >&5 | |
26725 | echo "${ECHO_T}yes" >&6 | |
26726 | wx_cv_lib_gtk=1.2.7 | |
26727 | else | |
26728 | echo "$as_me:$LINENO: result: no" >&5 | |
26729 | echo "${ECHO_T}no" >&6 | |
26730 | if test "$GTK_CONFIG" = "no" ; then | |
26731 | echo "*** The gtk-config script installed by GTK could not be found" | |
26732 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
26733 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
26734 | echo "*** full path to gtk-config." | |
26735 | else | |
26736 | if test -f conf.gtktest ; then | |
26737 | : | |
26738 | else | |
26739 | echo "*** Could not run GTK test program, checking why..." | |
26740 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
26741 | LIBS="$LIBS $GTK_LIBS" | |
26742 | cat >conftest.$ac_ext <<_ACEOF | |
26743 | /* confdefs.h. */ | |
26744 | _ACEOF | |
26745 | cat confdefs.h >>conftest.$ac_ext | |
26746 | cat >>conftest.$ac_ext <<_ACEOF | |
26747 | /* end confdefs.h. */ | |
26748 | ||
26749 | #include <gtk/gtk.h> | |
26750 | #include <stdio.h> | |
26751 | ||
26752 | int | |
26753 | main () | |
26754 | { | |
26755 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
26756 | ; | |
26757 | return 0; | |
26758 | } | |
26759 | _ACEOF | |
26760 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26761 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 26762 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 26763 | ac_status=$? |
ac1cb8d3 VS |
26764 | grep -v '^ *+' conftest.er1 >conftest.err |
26765 | rm -f conftest.er1 | |
26766 | cat conftest.err >&5 | |
a848cd7e SC |
26767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26768 | (exit $ac_status); } && | |
3565d135 RR |
26769 | { ac_try='test -z "$ac_c_werror_flag" |
26770 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
26771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26772 | (eval $ac_try) 2>&5 | |
26773 | ac_status=$? | |
26774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26775 | (exit $ac_status); }; } && | |
26776 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
26777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26778 | (eval $ac_try) 2>&5 | |
26779 | ac_status=$? | |
26780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26781 | (exit $ac_status); }; }; then | |
26782 | echo "*** The test program compiled, but did not run. This usually means" | |
26783 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
26784 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
26785 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
26786 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
26787 | echo "*** is required on your system" | |
26788 | echo "***" | |
26789 | echo "*** If you have an old version installed, it is best to remove it, although" | |
26790 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
26791 | echo "***" | |
26792 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
26793 | echo "*** came with the system with the command" | |
26794 | echo "***" | |
26795 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
26796 | else | |
26797 | echo "$as_me: failed program was:" >&5 | |
26798 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26799 | ||
26800 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
26801 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
26802 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
26803 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
26804 | fi | |
ac1cb8d3 VS |
26805 | rm -f conftest.err conftest.$ac_objext \ |
26806 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
26807 | CFLAGS="$ac_save_CFLAGS" |
26808 | LIBS="$ac_save_LIBS" | |
26809 | fi | |
26810 | fi | |
26811 | GTK_CFLAGS="" | |
26812 | GTK_LIBS="" | |
26813 | : | |
26814 | fi | |
26815 | ||
26816 | ||
26817 | rm -f conf.gtktest | |
26818 | ||
26819 | ||
f34ca037 | 26820 | if test -z "$wx_cv_lib_gtk"; then |
a848cd7e SC |
26821 | |
26822 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
26823 | if test "${with_gtk_prefix+set}" = set; then | |
26824 | withval="$with_gtk_prefix" | |
26825 | gtk_config_prefix="$withval" | |
26826 | else | |
26827 | gtk_config_prefix="" | |
26828 | fi; | |
26829 | ||
26830 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
26831 | if test "${with_gtk_exec_prefix+set}" = set; then | |
26832 | withval="$with_gtk_exec_prefix" | |
26833 | gtk_config_exec_prefix="$withval" | |
26834 | else | |
26835 | gtk_config_exec_prefix="" | |
26836 | fi; | |
26837 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
26838 | if test "${enable_gtktest+set}" = set; then | |
26839 | enableval="$enable_gtktest" | |
26840 | ||
26841 | else | |
26842 | enable_gtktest=yes | |
26843 | fi; | |
26844 | ||
26845 | for module in . $GTK_MODULES | |
26846 | do | |
26847 | case "$module" in | |
26848 | gthread) | |
26849 | gtk_config_args="$gtk_config_args gthread" | |
26850 | ;; | |
26851 | esac | |
26852 | done | |
26853 | ||
26854 | if test x$gtk_config_exec_prefix != x ; then | |
26855 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
26856 | if test x${GTK_CONFIG+set} != xset ; then | |
26857 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
26858 | fi | |
26859 | fi | |
26860 | if test x$gtk_config_prefix != x ; then | |
26861 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
26862 | if test x${GTK_CONFIG+set} != xset ; then | |
26863 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
26864 | fi | |
26865 | fi | |
26866 | ||
26867 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
26868 | set dummy gtk-config; ac_word=$2 | |
26869 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
26870 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
26871 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
26872 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26873 | else | |
26874 | case $GTK_CONFIG in | |
26875 | [\\/]* | ?:[\\/]*) | |
26876 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
26877 | ;; | |
26878 | *) | |
26879 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26880 | for as_dir in $PATH | |
26881 | do | |
26882 | IFS=$as_save_IFS | |
26883 | test -z "$as_dir" && as_dir=. | |
26884 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26885 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
26886 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
26887 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
26888 | break 2 | |
26889 | fi | |
26890 | done | |
26891 | done | |
26892 | ||
26893 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
26894 | ;; | |
26895 | esac | |
26896 | fi | |
26897 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
26898 | ||
26899 | if test -n "$GTK_CONFIG"; then | |
26900 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
26901 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
26902 | else | |
26903 | echo "$as_me:$LINENO: result: no" >&5 | |
26904 | echo "${ECHO_T}no" >&6 | |
26905 | fi | |
26906 | ||
26907 | min_gtk_version=1.2.3 | |
26908 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
26909 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
26910 | no_gtk="" | |
26911 | if test "$GTK_CONFIG" = "no" ; then | |
26912 | no_gtk=yes | |
26913 | else | |
26914 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
26915 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
26916 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
26917 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
26918 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
26919 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
26920 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
26921 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
26922 | if test "x$enable_gtktest" = "xyes" ; then | |
26923 | ac_save_CFLAGS="$CFLAGS" | |
26924 | ac_save_LIBS="$LIBS" | |
26925 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
26926 | LIBS="$GTK_LIBS $LIBS" | |
26927 | rm -f conf.gtktest | |
26928 | if test "$cross_compiling" = yes; then | |
26929 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
26930 | else | |
26931 | cat >conftest.$ac_ext <<_ACEOF | |
26932 | /* confdefs.h. */ | |
26933 | _ACEOF | |
26934 | cat confdefs.h >>conftest.$ac_ext | |
26935 | cat >>conftest.$ac_ext <<_ACEOF | |
26936 | /* end confdefs.h. */ | |
26937 | ||
26938 | #include <gtk/gtk.h> | |
26939 | #include <stdio.h> | |
26940 | #include <stdlib.h> | |
26941 | ||
26942 | int | |
26943 | main () | |
26944 | { | |
26945 | int major, minor, micro; | |
26946 | char *tmp_version; | |
26947 | ||
26948 | system ("touch conf.gtktest"); | |
26949 | ||
26950 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
26951 | tmp_version = g_strdup("$min_gtk_version"); | |
26952 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
26953 | printf("%s, bad version string\n", "$min_gtk_version"); | |
26954 | exit(1); | |
26955 | } | |
26956 | ||
26957 | if ((gtk_major_version != $gtk_config_major_version) || | |
26958 | (gtk_minor_version != $gtk_config_minor_version) || | |
26959 | (gtk_micro_version != $gtk_config_micro_version)) | |
26960 | { | |
26961 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
26962 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
26963 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26964 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
26965 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
26966 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
26967 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
26968 | printf("*** required on your system.\n"); | |
26969 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
26970 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
26971 | printf("*** before re-running configure\n"); | |
26972 | } | |
26973 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
26974 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
26975 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
26976 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
26977 | { | |
26978 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
26979 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
26980 | printf("*** library (version %d.%d.%d)\n", | |
26981 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26982 | } | |
26983 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
26984 | else | |
26985 | { | |
26986 | if ((gtk_major_version > major) || | |
26987 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
26988 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
26989 | { | |
26990 | return 0; | |
26991 | } | |
26992 | else | |
26993 | { | |
26994 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
26995 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
26996 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
26997 | major, minor, micro); | |
26998 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
26999 | printf("***\n"); | |
27000 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
27001 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
27002 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
27003 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
27004 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
27005 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
27006 | printf("*** so that the correct libraries are found at run-time))\n"); | |
27007 | } | |
27008 | } | |
27009 | return 1; | |
27010 | } | |
27011 | ||
27012 | _ACEOF | |
27013 | rm -f conftest$ac_exeext | |
27014 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27015 | (eval $ac_link) 2>&5 | |
27016 | ac_status=$? | |
27017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27018 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
27019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27020 | (eval $ac_try) 2>&5 | |
27021 | ac_status=$? | |
27022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27023 | (exit $ac_status); }; }; then | |
27024 | : | |
27025 | else | |
27026 | echo "$as_me: program exited with status $ac_status" >&5 | |
27027 | echo "$as_me: failed program was:" >&5 | |
27028 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27029 | ||
27030 | ( exit $ac_status ) | |
27031 | no_gtk=yes | |
27032 | fi | |
ac1cb8d3 | 27033 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27034 | fi |
27035 | CFLAGS="$ac_save_CFLAGS" | |
27036 | LIBS="$ac_save_LIBS" | |
27037 | fi | |
27038 | fi | |
27039 | if test "x$no_gtk" = x ; then | |
27040 | echo "$as_me:$LINENO: result: yes" >&5 | |
27041 | echo "${ECHO_T}yes" >&6 | |
27042 | wx_cv_lib_gtk=1.2.3 | |
27043 | else | |
27044 | echo "$as_me:$LINENO: result: no" >&5 | |
27045 | echo "${ECHO_T}no" >&6 | |
27046 | if test "$GTK_CONFIG" = "no" ; then | |
27047 | echo "*** The gtk-config script installed by GTK could not be found" | |
27048 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
27049 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
27050 | echo "*** full path to gtk-config." | |
27051 | else | |
27052 | if test -f conf.gtktest ; then | |
27053 | : | |
27054 | else | |
27055 | echo "*** Could not run GTK test program, checking why..." | |
27056 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
27057 | LIBS="$LIBS $GTK_LIBS" | |
27058 | cat >conftest.$ac_ext <<_ACEOF | |
27059 | /* confdefs.h. */ | |
27060 | _ACEOF | |
27061 | cat confdefs.h >>conftest.$ac_ext | |
27062 | cat >>conftest.$ac_ext <<_ACEOF | |
27063 | /* end confdefs.h. */ | |
27064 | ||
27065 | #include <gtk/gtk.h> | |
27066 | #include <stdio.h> | |
27067 | ||
27068 | int | |
27069 | main () | |
27070 | { | |
27071 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
27072 | ; | |
27073 | return 0; | |
27074 | } | |
27075 | _ACEOF | |
27076 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27077 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27078 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27079 | ac_status=$? |
ac1cb8d3 VS |
27080 | grep -v '^ *+' conftest.er1 >conftest.err |
27081 | rm -f conftest.er1 | |
27082 | cat conftest.err >&5 | |
a848cd7e SC |
27083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27084 | (exit $ac_status); } && | |
3565d135 RR |
27085 | { ac_try='test -z "$ac_c_werror_flag" |
27086 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27088 | (eval $ac_try) 2>&5 | |
27089 | ac_status=$? | |
27090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27091 | (exit $ac_status); }; } && | |
27092 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27094 | (eval $ac_try) 2>&5 | |
27095 | ac_status=$? | |
27096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27097 | (exit $ac_status); }; }; then | |
27098 | echo "*** The test program compiled, but did not run. This usually means" | |
27099 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
27100 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
27101 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
27102 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
27103 | echo "*** is required on your system" | |
27104 | echo "***" | |
27105 | echo "*** If you have an old version installed, it is best to remove it, although" | |
27106 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
27107 | echo "***" | |
27108 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
27109 | echo "*** came with the system with the command" | |
27110 | echo "***" | |
27111 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
27112 | else | |
27113 | echo "$as_me: failed program was:" >&5 | |
27114 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27115 | ||
27116 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
27117 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
27118 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
27119 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
27120 | fi | |
ac1cb8d3 VS |
27121 | rm -f conftest.err conftest.$ac_objext \ |
27122 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27123 | CFLAGS="$ac_save_CFLAGS" |
27124 | LIBS="$ac_save_LIBS" | |
27125 | fi | |
27126 | fi | |
27127 | GTK_CFLAGS="" | |
27128 | GTK_LIBS="" | |
27129 | : | |
27130 | fi | |
27131 | ||
27132 | ||
27133 | rm -f conf.gtktest | |
27134 | ||
f34ca037 | 27135 | fi |
a848cd7e SC |
27136 | fi |
27137 | fi | |
27138 | ||
27139 | if test -z "$wx_cv_lib_gtk"; then | |
27140 | wx_cv_lib_gtk=none | |
27141 | else | |
27142 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
d2822091 | 27143 | wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'` |
a848cd7e SC |
27144 | fi |
27145 | ||
27146 | ||
27147 | fi | |
27148 | ||
27149 | ||
27150 | if test "$gtk_version_cached" = 1; then | |
27151 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 | |
27152 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
27153 | fi | |
27154 | ||
27155 | case "$wx_cv_lib_gtk" in | |
27156 | 2.0) WXGTK20=1 | |
27157 | TOOLKIT_VERSION=2 | |
27158 | ;; | |
27159 | 1.2.7) WXGTK127=1 | |
27160 | WXGTK12=1 | |
27161 | ;; | |
27162 | 1.2.3) WXGTK12=1 | |
27163 | ;; | |
27164 | *) { { echo "$as_me:$LINENO: error: | |
f597b41c MW |
27165 | The development files for GTK+ were not found. For GTK+ 2, please |
27166 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
27167 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
27168 | and that the version is 1.2.3 or above. Also check that the | |
27169 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
27170 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e SC |
27171 | " >&5 |
27172 | echo "$as_me: error: | |
f597b41c MW |
27173 | The development files for GTK+ were not found. For GTK+ 2, please |
27174 | ensure that pkg-config is in the path and that gtk+-2.0.pc is | |
27175 | installed. For GTK+ 1.2 please check that gtk-config is in the path, | |
27176 | and that the version is 1.2.3 or above. Also check that the | |
27177 | libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config | |
27178 | --libs' are in the LD_LIBRARY_PATH or equivalent. | |
a848cd7e SC |
27179 | " >&2;} |
27180 | { (exit 1); exit 1; }; } | |
27181 | ;; | |
27182 | esac | |
27183 | ||
27184 | if test "$WXGTK20" = 1; then | |
304205f1 VS |
27185 | save_CFLAGS="$CFLAGS" |
27186 | save_LIBS="$LIBS" | |
c92ad099 | 27187 | CFLAGS="$wx_cv_cflags_gtk $CFLAGS" |
abc736fd | 27188 | LIBS="$LIBS $wx_cv_libs_gtk" |
304205f1 | 27189 | |
d12aef51 VZ |
27190 | echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5 |
27191 | echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6 | |
27192 | cat >conftest.$ac_ext <<_ACEOF | |
304205f1 VS |
27193 | /* confdefs.h. */ |
27194 | _ACEOF | |
27195 | cat confdefs.h >>conftest.$ac_ext | |
27196 | cat >>conftest.$ac_ext <<_ACEOF | |
27197 | /* end confdefs.h. */ | |
304205f1 | 27198 | |
d12aef51 | 27199 | #include <gtk/gtk.h> |
304205f1 | 27200 | |
d12aef51 VZ |
27201 | int |
27202 | main () | |
27203 | { | |
304205f1 | 27204 | |
d12aef51 | 27205 | void *f = gtk_icon_size_lookup; |
abc736fd MW |
27206 | |
27207 | ; | |
27208 | return 0; | |
27209 | } | |
27210 | _ACEOF | |
27211 | rm -f conftest.$ac_objext | |
27212 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27213 | (eval $ac_compile) 2>conftest.er1 | |
27214 | ac_status=$? | |
27215 | grep -v '^ *+' conftest.er1 >conftest.err | |
27216 | rm -f conftest.er1 | |
27217 | cat conftest.err >&5 | |
27218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27219 | (exit $ac_status); } && | |
3565d135 RR |
27220 | { ac_try='test -z "$ac_c_werror_flag" |
27221 | || test ! -s conftest.err' | |
abc736fd MW |
27222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27223 | (eval $ac_try) 2>&5 | |
27224 | ac_status=$? | |
27225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27226 | (exit $ac_status); }; } && | |
27227 | { ac_try='test -s conftest.$ac_objext' | |
27228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27229 | (eval $ac_try) 2>&5 | |
27230 | ac_status=$? | |
27231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27232 | (exit $ac_status); }; }; then | |
27233 | ||
27234 | echo "$as_me:$LINENO: result: no" >&5 | |
27235 | echo "${ECHO_T}no" >&6 | |
27236 | ||
27237 | else | |
27238 | echo "$as_me: failed program was:" >&5 | |
27239 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27240 | ||
27241 | ||
27242 | cat >>confdefs.h <<\_ACEOF | |
27243 | #define NEED_GTK_ICON_SIZE_LOOKUP 1 | |
27244 | _ACEOF | |
27245 | ||
27246 | echo "$as_me:$LINENO: result: yes" >&5 | |
27247 | echo "${ECHO_T}yes" >&6 | |
27248 | ||
27249 | fi | |
27250 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
27251 | ||
9755e73b VS |
27252 | echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5 |
27253 | echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6 | |
27254 | cat >conftest.$ac_ext <<_ACEOF | |
27255 | /* confdefs.h. */ | |
27256 | _ACEOF | |
27257 | cat confdefs.h >>conftest.$ac_ext | |
27258 | cat >>conftest.$ac_ext <<_ACEOF | |
27259 | /* end confdefs.h. */ | |
27260 | ||
27261 | #include <gtk/gtk.h> | |
27262 | ||
27263 | int | |
27264 | main () | |
27265 | { | |
27266 | ||
27267 | #if !GTK_CHECK_VERSION(2,4,0) | |
04e525a0 | 27268 | Not GTK+ 2.4 |
9755e73b VS |
27269 | #endif |
27270 | ||
27271 | ; | |
27272 | return 0; | |
27273 | } | |
27274 | _ACEOF | |
27275 | rm -f conftest.$ac_objext | |
27276 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27277 | (eval $ac_compile) 2>conftest.er1 | |
27278 | ac_status=$? | |
27279 | grep -v '^ *+' conftest.er1 >conftest.err | |
27280 | rm -f conftest.er1 | |
27281 | cat conftest.err >&5 | |
27282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27283 | (exit $ac_status); } && | |
3565d135 RR |
27284 | { ac_try='test -z "$ac_c_werror_flag" |
27285 | || test ! -s conftest.err' | |
9755e73b VS |
27286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27287 | (eval $ac_try) 2>&5 | |
27288 | ac_status=$? | |
27289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27290 | (exit $ac_status); }; } && | |
27291 | { ac_try='test -s conftest.$ac_objext' | |
27292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27293 | (eval $ac_try) 2>&5 | |
27294 | ac_status=$? | |
27295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27296 | (exit $ac_status); }; }; then | |
27297 | ||
27298 | cat >>confdefs.h <<\_ACEOF | |
27299 | #define __WXGTK24__ 1 | |
27300 | _ACEOF | |
27301 | ||
27302 | echo "$as_me:$LINENO: result: yes" >&5 | |
27303 | echo "${ECHO_T}yes" >&6 | |
27304 | ||
27305 | else | |
27306 | echo "$as_me: failed program was:" >&5 | |
27307 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27308 | ||
27309 | ||
27310 | echo "$as_me:$LINENO: result: no" >&5 | |
27311 | echo "${ECHO_T}no" >&6 | |
27312 | ||
27313 | fi | |
27314 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
27315 | ||
304205f1 VS |
27316 | CFLAGS="$save_CFLAGS" |
27317 | LIBS="$save_LIBS" | |
a848cd7e SC |
27318 | else |
27319 | if test "$wxUSE_UNICODE" = "yes"; then | |
27320 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 | |
27321 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
27322 | wxUSE_UNICODE=no | |
27323 | fi | |
27324 | fi | |
27325 | ||
27326 | if test "$USE_DARWIN" != 1; then | |
27327 | ||
27328 | for ac_func in poll | |
27329 | do | |
27330 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
27331 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27332 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27333 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27335 | else | |
27336 | cat >conftest.$ac_ext <<_ACEOF | |
27337 | /* confdefs.h. */ | |
27338 | _ACEOF | |
27339 | cat confdefs.h >>conftest.$ac_ext | |
27340 | cat >>conftest.$ac_ext <<_ACEOF | |
27341 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
27342 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
27343 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
27344 | #define $ac_func innocuous_$ac_func | |
27345 | ||
a848cd7e SC |
27346 | /* System header to define __stub macros and hopefully few prototypes, |
27347 | which can conflict with char $ac_func (); below. | |
27348 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27349 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 27350 | |
a848cd7e SC |
27351 | #ifdef __STDC__ |
27352 | # include <limits.h> | |
27353 | #else | |
27354 | # include <assert.h> | |
27355 | #endif | |
ac1cb8d3 VS |
27356 | |
27357 | #undef $ac_func | |
27358 | ||
a848cd7e SC |
27359 | /* Override any gcc2 internal prototype to avoid an error. */ |
27360 | #ifdef __cplusplus | |
27361 | extern "C" | |
27362 | { | |
27363 | #endif | |
27364 | /* We use char because int might match the return type of a gcc2 | |
27365 | builtin and then its argument prototype would still apply. */ | |
27366 | char $ac_func (); | |
27367 | /* The GNU C library defines this for functions which it implements | |
27368 | to always fail with ENOSYS. Some functions are actually named | |
27369 | something starting with __ and the normal name is an alias. */ | |
27370 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27371 | choke me | |
27372 | #else | |
27373 | char (*f) () = $ac_func; | |
27374 | #endif | |
27375 | #ifdef __cplusplus | |
27376 | } | |
27377 | #endif | |
27378 | ||
27379 | int | |
27380 | main () | |
27381 | { | |
27382 | return f != $ac_func; | |
27383 | ; | |
27384 | return 0; | |
27385 | } | |
27386 | _ACEOF | |
27387 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27388 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27389 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27390 | ac_status=$? |
ac1cb8d3 VS |
27391 | grep -v '^ *+' conftest.er1 >conftest.err |
27392 | rm -f conftest.er1 | |
27393 | cat conftest.err >&5 | |
a848cd7e SC |
27394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27395 | (exit $ac_status); } && | |
3565d135 RR |
27396 | { ac_try='test -z "$ac_c_werror_flag" |
27397 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27399 | (eval $ac_try) 2>&5 | |
27400 | ac_status=$? | |
27401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27402 | (exit $ac_status); }; } && | |
27403 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27405 | (eval $ac_try) 2>&5 | |
27406 | ac_status=$? | |
27407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27408 | (exit $ac_status); }; }; then | |
27409 | eval "$as_ac_var=yes" | |
27410 | else | |
27411 | echo "$as_me: failed program was:" >&5 | |
27412 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27413 | ||
27414 | eval "$as_ac_var=no" | |
27415 | fi | |
ac1cb8d3 VS |
27416 | rm -f conftest.err conftest.$ac_objext \ |
27417 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27418 | fi |
27419 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27420 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27421 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27422 | cat >>confdefs.h <<_ACEOF | |
27423 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27424 | _ACEOF | |
27425 | ||
27426 | fi | |
27427 | done | |
27428 | ||
27429 | fi | |
27430 | ||
27431 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
27432 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" | |
27433 | ||
27434 | AFMINSTALL=afminstall | |
27435 | TOOLKIT=GTK | |
27436 | GUIDIST=GTK_DIST | |
27437 | ||
27438 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 | |
27439 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
27440 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
27441 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27442 | else | |
27443 | ac_check_lib_save_LIBS=$LIBS | |
27444 | LIBS="-lgdk $LIBS" | |
27445 | cat >conftest.$ac_ext <<_ACEOF | |
27446 | /* confdefs.h. */ | |
27447 | _ACEOF | |
27448 | cat confdefs.h >>conftest.$ac_ext | |
27449 | cat >>conftest.$ac_ext <<_ACEOF | |
27450 | /* end confdefs.h. */ | |
27451 | ||
27452 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27453 | #ifdef __cplusplus | |
27454 | extern "C" | |
27455 | #endif | |
27456 | /* We use char because int might match the return type of a gcc2 | |
27457 | builtin and then its argument prototype would still apply. */ | |
27458 | char gdk_im_open (); | |
27459 | int | |
27460 | main () | |
27461 | { | |
27462 | gdk_im_open (); | |
27463 | ; | |
27464 | return 0; | |
27465 | } | |
27466 | _ACEOF | |
27467 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27468 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27469 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27470 | ac_status=$? |
ac1cb8d3 VS |
27471 | grep -v '^ *+' conftest.er1 >conftest.err |
27472 | rm -f conftest.er1 | |
27473 | cat conftest.err >&5 | |
a848cd7e SC |
27474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27475 | (exit $ac_status); } && | |
3565d135 RR |
27476 | { ac_try='test -z "$ac_c_werror_flag" |
27477 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27479 | (eval $ac_try) 2>&5 | |
27480 | ac_status=$? | |
27481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27482 | (exit $ac_status); }; } && | |
27483 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27485 | (eval $ac_try) 2>&5 | |
27486 | ac_status=$? | |
27487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27488 | (exit $ac_status); }; }; then | |
27489 | ac_cv_lib_gdk_gdk_im_open=yes | |
27490 | else | |
27491 | echo "$as_me: failed program was:" >&5 | |
27492 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27493 | ||
27494 | ac_cv_lib_gdk_gdk_im_open=no | |
27495 | fi | |
ac1cb8d3 VS |
27496 | rm -f conftest.err conftest.$ac_objext \ |
27497 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27498 | LIBS=$ac_check_lib_save_LIBS |
27499 | fi | |
27500 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
27501 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
27502 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
27503 | cat >>confdefs.h <<\_ACEOF | |
27504 | #define HAVE_XIM 1 | |
27505 | _ACEOF | |
27506 | ||
27507 | fi | |
27508 | ||
27509 | ||
27510 | ||
27511 | if test "$wxUSE_GPE" = "yes"; then | |
27512 | echo "$as_me:$LINENO: checking for gpewidget library" >&5 | |
27513 | echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6 | |
27514 | ||
0ad5d837 VZ |
27515 | ac_find_libraries= |
27516 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 27517 | do |
3eca31dc | 27518 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
27519 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then |
27520 | ac_find_libraries=$ac_dir | |
27521 | break 2 | |
27522 | fi | |
27523 | done | |
27524 | done | |
27525 | ||
27526 | if test "$ac_find_libraries" != "" ; then | |
27527 | ||
0ad5d837 | 27528 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
27529 | ac_path_to_link="" |
27530 | else | |
0ad5d837 VZ |
27531 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
27532 | result=$? | |
27533 | if test $result = 0; then | |
27534 | ac_path_to_link="" | |
27535 | else | |
27536 | ac_path_to_link=" -L$ac_find_libraries" | |
27537 | fi | |
a848cd7e SC |
27538 | fi |
27539 | ||
27540 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
27541 | WXGPE=1 | |
0ad5d837 VZ |
27542 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 |
27543 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e SC |
27544 | else |
27545 | echo "$as_me:$LINENO: result: not found" >&5 | |
27546 | echo "${ECHO_T}not found" >&6 | |
27547 | fi | |
27548 | ||
27549 | fi | |
27550 | fi | |
27551 | ||
27552 | if test "$wxUSE_MGL" = 1; then | |
27553 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 | |
27554 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
27555 | if test "x$MGL_ROOT" = x ; then | |
27556 | echo "$as_me:$LINENO: result: not found" >&5 | |
27557 | echo "${ECHO_T}not found" >&6 | |
27558 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
27559 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
27560 | { (exit 1); exit 1; }; } | |
27561 | else | |
27562 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 | |
27563 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
27564 | fi | |
27565 | ||
27566 | echo "$as_me:$LINENO: checking for libmgl location" >&5 | |
27567 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
27568 | case "${host}" in | |
27569 | *-*-linux* ) | |
27570 | if test "x$wxUSE_SHARED" = xyes ; then | |
27571 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
27572 | else | |
27573 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" | |
27574 | fi | |
27575 | ;; | |
27576 | *-pc-msdosdjgpp ) | |
27577 | mgl_os_candidates="dos32/dj2" | |
27578 | ;; | |
27579 | *) | |
27580 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 | |
27581 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
27582 | { (exit 1); exit 1; }; } | |
27583 | esac | |
27584 | ||
27585 | mgl_lib_type="" | |
27586 | mgl_os="" | |
27587 | ||
27588 | for mgl_os_i in $mgl_os_candidates ; do | |
27589 | if test "x$mgl_os" = x ; then | |
27590 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
27591 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
27592 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
27593 | mgl_lib_type=debug | |
27594 | mgl_os=$mgl_os_i | |
27595 | fi | |
27596 | fi | |
27597 | if test "x$mgl_lib_type" = x ; then | |
27598 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
27599 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
27600 | mgl_lib_type=release | |
27601 | mgl_os=$mgl_os_i | |
27602 | fi | |
27603 | fi | |
27604 | fi | |
27605 | done | |
27606 | ||
27607 | if test "x$mgl_os" = x ; then | |
27608 | echo "$as_me:$LINENO: result: not found" >&5 | |
27609 | echo "${ECHO_T}not found" >&6 | |
27610 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
27611 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
27612 | { (exit 1); exit 1; }; } | |
27613 | fi | |
27614 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 | |
27615 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
27616 | ||
27617 | wxUSE_UNIVERSAL="yes" | |
27618 | ||
27619 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
27620 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
27621 | ||
27622 | AFMINSTALL=afminstall | |
27623 | TOOLKIT=MGL | |
27624 | GUIDIST=MGL_DIST | |
27625 | fi | |
27626 | ||
27627 | if test "$wxUSE_MICROWIN" = 1; then | |
27628 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 | |
27629 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
27630 | if test "x$MICROWINDOWS" = x ; then | |
27631 | echo "$as_me:$LINENO: result: not found" >&5 | |
27632 | echo "${ECHO_T}not found" >&6 | |
27633 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
27634 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
27635 | { (exit 1); exit 1; }; } | |
27636 | else | |
27637 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 | |
27638 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
27639 | fi | |
27640 | ||
27641 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
27642 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 | |
27643 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
27644 | else | |
27645 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 | |
27646 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
27647 | { (exit 1); exit 1; }; } | |
27648 | fi | |
27649 | ||
27650 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
27651 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
27652 | ||
27653 | wxUSE_UNIVERSAL="yes" | |
27654 | ||
27655 | AFMINSTALL=afminstall | |
27656 | TOOLKIT=MICROWIN | |
27657 | GUIDIST=MICROWIN_DIST | |
27658 | ||
27659 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
27660 | fi | |
27661 | ||
74b84332 | 27662 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
3565d135 | 27663 | echo "$as_me:$LINENO: checking for X" >&5 |
a848cd7e SC |
27664 | echo $ECHO_N "checking for X... $ECHO_C" >&6 |
27665 | ||
27666 | ||
27667 | # Check whether --with-x or --without-x was given. | |
27668 | if test "${with_x+set}" = set; then | |
27669 | withval="$with_x" | |
27670 | ||
27671 | fi; | |
27672 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
27673 | if test "x$with_x" = xno; then | |
27674 | # The user explicitly disabled X. | |
27675 | have_x=disabled | |
27676 | else | |
27677 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
27678 | # Both variables are already set. | |
27679 | have_x=yes | |
27680 | else | |
27681 | if test "${ac_cv_have_x+set}" = set; then | |
27682 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27683 | else | |
27684 | # One or both of the vars are not set, and there is no cached value. | |
27685 | ac_x_includes=no ac_x_libraries=no | |
27686 | rm -fr conftest.dir | |
27687 | if mkdir conftest.dir; then | |
27688 | cd conftest.dir | |
27689 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
27690 | cat >Imakefile <<'_ACEOF' | |
27691 | acfindx: | |
27692 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
27693 | _ACEOF | |
27694 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
27695 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
27696 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
27697 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
27698 | for ac_extension in a so sl; do | |
27699 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
ac1cb8d3 VS |
27700 | test -f $ac_im_libdir/libX11.$ac_extension; then |
27701 | ac_im_usrlibdir=$ac_im_libdir; break | |
a848cd7e SC |
27702 | fi |
27703 | done | |
27704 | # Screen out bogus values from the imake configuration. They are | |
27705 | # bogus both because they are the default anyway, and because | |
27706 | # using them would break gcc on systems where it needs fixed includes. | |
27707 | case $ac_im_incroot in | |
27708 | /usr/include) ;; | |
27709 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
27710 | esac | |
27711 | case $ac_im_usrlibdir in | |
27712 | /usr/lib | /lib) ;; | |
27713 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
27714 | esac | |
27715 | fi | |
27716 | cd .. | |
27717 | rm -fr conftest.dir | |
27718 | fi | |
27719 | ||
27720 | # Standard set of common directories for X headers. | |
27721 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
27722 | ac_x_header_dirs=' | |
27723 | /usr/X11/include | |
27724 | /usr/X11R6/include | |
27725 | /usr/X11R5/include | |
27726 | /usr/X11R4/include | |
27727 | ||
27728 | /usr/include/X11 | |
27729 | /usr/include/X11R6 | |
27730 | /usr/include/X11R5 | |
27731 | /usr/include/X11R4 | |
27732 | ||
27733 | /usr/local/X11/include | |
27734 | /usr/local/X11R6/include | |
27735 | /usr/local/X11R5/include | |
27736 | /usr/local/X11R4/include | |
27737 | ||
27738 | /usr/local/include/X11 | |
27739 | /usr/local/include/X11R6 | |
27740 | /usr/local/include/X11R5 | |
27741 | /usr/local/include/X11R4 | |
27742 | ||
27743 | /usr/X386/include | |
27744 | /usr/x386/include | |
27745 | /usr/XFree86/include/X11 | |
27746 | ||
27747 | /usr/include | |
27748 | /usr/local/include | |
27749 | /usr/unsupported/include | |
27750 | /usr/athena/include | |
27751 | /usr/local/x11r5/include | |
27752 | /usr/lpp/Xamples/include | |
27753 | ||
27754 | /usr/openwin/include | |
27755 | /usr/openwin/share/include' | |
27756 | ||
27757 | if test "$ac_x_includes" = no; then | |
3565d135 | 27758 | # Guess where to find include files, by looking for Intrinsic.h. |
a848cd7e SC |
27759 | # First, try using that file with no special directory specified. |
27760 | cat >conftest.$ac_ext <<_ACEOF | |
27761 | /* confdefs.h. */ | |
27762 | _ACEOF | |
27763 | cat confdefs.h >>conftest.$ac_ext | |
27764 | cat >>conftest.$ac_ext <<_ACEOF | |
27765 | /* end confdefs.h. */ | |
3565d135 | 27766 | #include <X11/Intrinsic.h> |
a848cd7e SC |
27767 | _ACEOF |
27768 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
27769 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
27770 | ac_status=$? | |
27771 | grep -v '^ *+' conftest.er1 >conftest.err | |
27772 | rm -f conftest.er1 | |
27773 | cat conftest.err >&5 | |
27774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27775 | (exit $ac_status); } >/dev/null; then | |
27776 | if test -s conftest.err; then | |
27777 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 27778 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
27779 | else |
27780 | ac_cpp_err= | |
27781 | fi | |
27782 | else | |
27783 | ac_cpp_err=yes | |
27784 | fi | |
27785 | if test -z "$ac_cpp_err"; then | |
27786 | # We can compile using X headers with no special include directory. | |
27787 | ac_x_includes= | |
27788 | else | |
27789 | echo "$as_me: failed program was:" >&5 | |
27790 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27791 | ||
27792 | for ac_dir in $ac_x_header_dirs; do | |
3565d135 | 27793 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
a848cd7e SC |
27794 | ac_x_includes=$ac_dir |
27795 | break | |
27796 | fi | |
27797 | done | |
27798 | fi | |
27799 | rm -f conftest.err conftest.$ac_ext | |
27800 | fi # $ac_x_includes = no | |
27801 | ||
27802 | if test "$ac_x_libraries" = no; then | |
27803 | # Check for the libraries. | |
27804 | # See if we find them without any special options. | |
27805 | # Don't add to $LIBS permanently. | |
27806 | ac_save_LIBS=$LIBS | |
3565d135 | 27807 | LIBS="-lXt $LIBS" |
a848cd7e SC |
27808 | cat >conftest.$ac_ext <<_ACEOF |
27809 | /* confdefs.h. */ | |
27810 | _ACEOF | |
27811 | cat confdefs.h >>conftest.$ac_ext | |
27812 | cat >>conftest.$ac_ext <<_ACEOF | |
27813 | /* end confdefs.h. */ | |
3565d135 | 27814 | #include <X11/Intrinsic.h> |
a848cd7e SC |
27815 | int |
27816 | main () | |
27817 | { | |
3565d135 | 27818 | XtMalloc (0) |
a848cd7e SC |
27819 | ; |
27820 | return 0; | |
27821 | } | |
27822 | _ACEOF | |
27823 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27824 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27825 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27826 | ac_status=$? |
ac1cb8d3 VS |
27827 | grep -v '^ *+' conftest.er1 >conftest.err |
27828 | rm -f conftest.er1 | |
27829 | cat conftest.err >&5 | |
a848cd7e SC |
27830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27831 | (exit $ac_status); } && | |
3565d135 RR |
27832 | { ac_try='test -z "$ac_c_werror_flag" |
27833 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27835 | (eval $ac_try) 2>&5 | |
27836 | ac_status=$? | |
27837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27838 | (exit $ac_status); }; } && | |
27839 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27841 | (eval $ac_try) 2>&5 | |
27842 | ac_status=$? | |
27843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27844 | (exit $ac_status); }; }; then | |
27845 | LIBS=$ac_save_LIBS | |
27846 | # We can link X programs with no special library path. | |
27847 | ac_x_libraries= | |
27848 | else | |
27849 | echo "$as_me: failed program was:" >&5 | |
27850 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27851 | ||
27852 | LIBS=$ac_save_LIBS | |
27853 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
27854 | do | |
27855 | # Don't even attempt the hair of trying to link an X program! | |
27856 | for ac_extension in a so sl; do | |
3565d135 | 27857 | if test -r $ac_dir/libXt.$ac_extension; then |
a848cd7e SC |
27858 | ac_x_libraries=$ac_dir |
27859 | break 2 | |
27860 | fi | |
27861 | done | |
27862 | done | |
27863 | fi | |
ac1cb8d3 VS |
27864 | rm -f conftest.err conftest.$ac_objext \ |
27865 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27866 | fi # $ac_x_libraries = no |
27867 | ||
27868 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
27869 | # Didn't find X anywhere. Cache the known absence of X. | |
27870 | ac_cv_have_x="have_x=no" | |
27871 | else | |
27872 | # Record where we found X for the cache. | |
27873 | ac_cv_have_x="have_x=yes \ | |
ac1cb8d3 | 27874 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
a848cd7e SC |
27875 | fi |
27876 | fi | |
27877 | ||
27878 | fi | |
27879 | eval "$ac_cv_have_x" | |
27880 | fi # $with_x != no | |
27881 | ||
27882 | if test "$have_x" != yes; then | |
27883 | echo "$as_me:$LINENO: result: $have_x" >&5 | |
27884 | echo "${ECHO_T}$have_x" >&6 | |
27885 | no_x=yes | |
27886 | else | |
27887 | # If each of the values was on the command line, it overrides each guess. | |
27888 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
27889 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
27890 | # Update the cache value to reflect the command line values. | |
27891 | ac_cv_have_x="have_x=yes \ | |
27892 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
3565d135 RR |
27893 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
27894 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
a848cd7e SC |
27895 | fi |
27896 | ||
27897 | if test "$no_x" = yes; then | |
27898 | # Not all programs may use this symbol, but it does not hurt to define it. | |
27899 | ||
27900 | cat >>confdefs.h <<\_ACEOF | |
27901 | #define X_DISPLAY_MISSING 1 | |
27902 | _ACEOF | |
27903 | ||
27904 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
27905 | else | |
27906 | if test -n "$x_includes"; then | |
27907 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
27908 | fi | |
27909 | ||
27910 | # It would also be nice to do this for all -L options, not just this one. | |
27911 | if test -n "$x_libraries"; then | |
27912 | X_LIBS="$X_LIBS -L$x_libraries" | |
27913 | # For Solaris; some versions of Sun CC require a space after -R and | |
27914 | # others require no space. Words are not sufficient . . . . | |
27915 | case `(uname -sr) 2>/dev/null` in | |
27916 | "SunOS 5"*) | |
27917 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
27918 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
27919 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
27920 | cat >conftest.$ac_ext <<_ACEOF | |
27921 | /* confdefs.h. */ | |
27922 | _ACEOF | |
27923 | cat confdefs.h >>conftest.$ac_ext | |
27924 | cat >>conftest.$ac_ext <<_ACEOF | |
27925 | /* end confdefs.h. */ | |
27926 | ||
27927 | int | |
27928 | main () | |
27929 | { | |
27930 | ||
27931 | ; | |
27932 | return 0; | |
27933 | } | |
27934 | _ACEOF | |
27935 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27936 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27937 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27938 | ac_status=$? |
ac1cb8d3 VS |
27939 | grep -v '^ *+' conftest.er1 >conftest.err |
27940 | rm -f conftest.er1 | |
27941 | cat conftest.err >&5 | |
a848cd7e SC |
27942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27943 | (exit $ac_status); } && | |
3565d135 RR |
27944 | { ac_try='test -z "$ac_c_werror_flag" |
27945 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27947 | (eval $ac_try) 2>&5 | |
27948 | ac_status=$? | |
27949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27950 | (exit $ac_status); }; } && | |
27951 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
27952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27953 | (eval $ac_try) 2>&5 | |
27954 | ac_status=$? | |
27955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27956 | (exit $ac_status); }; }; then | |
27957 | ac_R_nospace=yes | |
27958 | else | |
27959 | echo "$as_me: failed program was:" >&5 | |
27960 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27961 | ||
27962 | ac_R_nospace=no | |
27963 | fi | |
ac1cb8d3 VS |
27964 | rm -f conftest.err conftest.$ac_objext \ |
27965 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
27966 | if test $ac_R_nospace = yes; then |
27967 | echo "$as_me:$LINENO: result: no" >&5 | |
27968 | echo "${ECHO_T}no" >&6 | |
27969 | X_LIBS="$X_LIBS -R$x_libraries" | |
27970 | else | |
27971 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
27972 | cat >conftest.$ac_ext <<_ACEOF | |
27973 | /* confdefs.h. */ | |
27974 | _ACEOF | |
27975 | cat confdefs.h >>conftest.$ac_ext | |
27976 | cat >>conftest.$ac_ext <<_ACEOF | |
27977 | /* end confdefs.h. */ | |
27978 | ||
27979 | int | |
27980 | main () | |
27981 | { | |
27982 | ||
27983 | ; | |
27984 | return 0; | |
27985 | } | |
27986 | _ACEOF | |
27987 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27988 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 27989 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 27990 | ac_status=$? |
ac1cb8d3 VS |
27991 | grep -v '^ *+' conftest.er1 >conftest.err |
27992 | rm -f conftest.er1 | |
27993 | cat conftest.err >&5 | |
a848cd7e SC |
27994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27995 | (exit $ac_status); } && | |
3565d135 RR |
27996 | { ac_try='test -z "$ac_c_werror_flag" |
27997 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
27998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27999 | (eval $ac_try) 2>&5 | |
28000 | ac_status=$? | |
28001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28002 | (exit $ac_status); }; } && | |
28003 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28005 | (eval $ac_try) 2>&5 | |
28006 | ac_status=$? | |
28007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28008 | (exit $ac_status); }; }; then | |
28009 | ac_R_space=yes | |
28010 | else | |
28011 | echo "$as_me: failed program was:" >&5 | |
28012 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28013 | ||
28014 | ac_R_space=no | |
28015 | fi | |
ac1cb8d3 VS |
28016 | rm -f conftest.err conftest.$ac_objext \ |
28017 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28018 | if test $ac_R_space = yes; then |
28019 | echo "$as_me:$LINENO: result: yes" >&5 | |
28020 | echo "${ECHO_T}yes" >&6 | |
28021 | X_LIBS="$X_LIBS -R $x_libraries" | |
28022 | else | |
28023 | echo "$as_me:$LINENO: result: neither works" >&5 | |
28024 | echo "${ECHO_T}neither works" >&6 | |
28025 | fi | |
28026 | fi | |
28027 | LIBS=$ac_xsave_LIBS | |
28028 | esac | |
28029 | fi | |
28030 | ||
28031 | # Check for system-dependent libraries X programs must link with. | |
28032 | # Do this before checking for the system-independent R6 libraries | |
28033 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
28034 | ||
28035 | if test "$ISC" = yes; then | |
28036 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
28037 | else | |
28038 | # Martyn Johnson says this is needed for Ultrix, if the X | |
28039 | # libraries were built with DECnet support. And Karl Berry says | |
28040 | # the Alpha needs dnet_stub (dnet does not exist). | |
28041 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
28042 | cat >conftest.$ac_ext <<_ACEOF | |
28043 | /* confdefs.h. */ | |
28044 | _ACEOF | |
28045 | cat confdefs.h >>conftest.$ac_ext | |
28046 | cat >>conftest.$ac_ext <<_ACEOF | |
28047 | /* end confdefs.h. */ | |
28048 | ||
28049 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28050 | #ifdef __cplusplus | |
28051 | extern "C" | |
28052 | #endif | |
28053 | /* We use char because int might match the return type of a gcc2 | |
28054 | builtin and then its argument prototype would still apply. */ | |
28055 | char XOpenDisplay (); | |
28056 | int | |
28057 | main () | |
28058 | { | |
28059 | XOpenDisplay (); | |
28060 | ; | |
28061 | return 0; | |
28062 | } | |
28063 | _ACEOF | |
28064 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28065 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28066 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28067 | ac_status=$? |
ac1cb8d3 VS |
28068 | grep -v '^ *+' conftest.er1 >conftest.err |
28069 | rm -f conftest.er1 | |
28070 | cat conftest.err >&5 | |
a848cd7e SC |
28071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28072 | (exit $ac_status); } && | |
3565d135 RR |
28073 | { ac_try='test -z "$ac_c_werror_flag" |
28074 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28076 | (eval $ac_try) 2>&5 | |
28077 | ac_status=$? | |
28078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28079 | (exit $ac_status); }; } && | |
28080 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28082 | (eval $ac_try) 2>&5 | |
28083 | ac_status=$? | |
28084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28085 | (exit $ac_status); }; }; then | |
28086 | : | |
28087 | else | |
28088 | echo "$as_me: failed program was:" >&5 | |
28089 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28090 | ||
28091 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
28092 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
28093 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
28094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28095 | else | |
28096 | ac_check_lib_save_LIBS=$LIBS | |
28097 | LIBS="-ldnet $LIBS" | |
28098 | cat >conftest.$ac_ext <<_ACEOF | |
28099 | /* confdefs.h. */ | |
28100 | _ACEOF | |
28101 | cat confdefs.h >>conftest.$ac_ext | |
28102 | cat >>conftest.$ac_ext <<_ACEOF | |
28103 | /* end confdefs.h. */ | |
28104 | ||
28105 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28106 | #ifdef __cplusplus | |
28107 | extern "C" | |
28108 | #endif | |
28109 | /* We use char because int might match the return type of a gcc2 | |
28110 | builtin and then its argument prototype would still apply. */ | |
28111 | char dnet_ntoa (); | |
28112 | int | |
28113 | main () | |
28114 | { | |
28115 | dnet_ntoa (); | |
28116 | ; | |
28117 | return 0; | |
28118 | } | |
28119 | _ACEOF | |
28120 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28121 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28122 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28123 | ac_status=$? |
ac1cb8d3 VS |
28124 | grep -v '^ *+' conftest.er1 >conftest.err |
28125 | rm -f conftest.er1 | |
28126 | cat conftest.err >&5 | |
a848cd7e SC |
28127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28128 | (exit $ac_status); } && | |
3565d135 RR |
28129 | { ac_try='test -z "$ac_c_werror_flag" |
28130 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28132 | (eval $ac_try) 2>&5 | |
28133 | ac_status=$? | |
28134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28135 | (exit $ac_status); }; } && | |
28136 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28138 | (eval $ac_try) 2>&5 | |
28139 | ac_status=$? | |
28140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28141 | (exit $ac_status); }; }; then | |
28142 | ac_cv_lib_dnet_dnet_ntoa=yes | |
28143 | else | |
28144 | echo "$as_me: failed program was:" >&5 | |
28145 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28146 | ||
28147 | ac_cv_lib_dnet_dnet_ntoa=no | |
28148 | fi | |
ac1cb8d3 VS |
28149 | rm -f conftest.err conftest.$ac_objext \ |
28150 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28151 | LIBS=$ac_check_lib_save_LIBS |
28152 | fi | |
28153 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
28154 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
28155 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
28156 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
28157 | fi | |
28158 | ||
28159 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
28160 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
28161 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
28162 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
28163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28164 | else | |
28165 | ac_check_lib_save_LIBS=$LIBS | |
28166 | LIBS="-ldnet_stub $LIBS" | |
28167 | cat >conftest.$ac_ext <<_ACEOF | |
28168 | /* confdefs.h. */ | |
28169 | _ACEOF | |
28170 | cat confdefs.h >>conftest.$ac_ext | |
28171 | cat >>conftest.$ac_ext <<_ACEOF | |
28172 | /* end confdefs.h. */ | |
28173 | ||
28174 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28175 | #ifdef __cplusplus | |
28176 | extern "C" | |
28177 | #endif | |
28178 | /* We use char because int might match the return type of a gcc2 | |
28179 | builtin and then its argument prototype would still apply. */ | |
28180 | char dnet_ntoa (); | |
28181 | int | |
28182 | main () | |
28183 | { | |
28184 | dnet_ntoa (); | |
28185 | ; | |
28186 | return 0; | |
28187 | } | |
28188 | _ACEOF | |
28189 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28190 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28191 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28192 | ac_status=$? |
ac1cb8d3 VS |
28193 | grep -v '^ *+' conftest.er1 >conftest.err |
28194 | rm -f conftest.er1 | |
28195 | cat conftest.err >&5 | |
a848cd7e SC |
28196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28197 | (exit $ac_status); } && | |
3565d135 RR |
28198 | { ac_try='test -z "$ac_c_werror_flag" |
28199 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28201 | (eval $ac_try) 2>&5 | |
28202 | ac_status=$? | |
28203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28204 | (exit $ac_status); }; } && | |
28205 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28207 | (eval $ac_try) 2>&5 | |
28208 | ac_status=$? | |
28209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28210 | (exit $ac_status); }; }; then | |
28211 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
28212 | else | |
28213 | echo "$as_me: failed program was:" >&5 | |
28214 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28215 | ||
28216 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
28217 | fi | |
ac1cb8d3 VS |
28218 | rm -f conftest.err conftest.$ac_objext \ |
28219 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28220 | LIBS=$ac_check_lib_save_LIBS |
28221 | fi | |
28222 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
28223 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
28224 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
28225 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
28226 | fi | |
28227 | ||
28228 | fi | |
28229 | fi | |
ac1cb8d3 VS |
28230 | rm -f conftest.err conftest.$ac_objext \ |
28231 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28232 | LIBS="$ac_xsave_LIBS" |
28233 | ||
28234 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
28235 | # to get the SysV transport functions. | |
28236 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
28237 | # needs -lnsl. | |
28238 | # The nsl library prevents programs from opening the X display | |
28239 | # on Irix 5.2, according to T.E. Dickey. | |
28240 | # The functions gethostbyname, getservbyname, and inet_addr are | |
28241 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
28242 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
28243 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
28244 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
28245 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28246 | else | |
28247 | cat >conftest.$ac_ext <<_ACEOF | |
28248 | /* confdefs.h. */ | |
28249 | _ACEOF | |
28250 | cat confdefs.h >>conftest.$ac_ext | |
28251 | cat >>conftest.$ac_ext <<_ACEOF | |
28252 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28253 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
28254 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28255 | #define gethostbyname innocuous_gethostbyname | |
28256 | ||
a848cd7e SC |
28257 | /* System header to define __stub macros and hopefully few prototypes, |
28258 | which can conflict with char gethostbyname (); below. | |
28259 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28260 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28261 | |
a848cd7e SC |
28262 | #ifdef __STDC__ |
28263 | # include <limits.h> | |
28264 | #else | |
28265 | # include <assert.h> | |
28266 | #endif | |
ac1cb8d3 VS |
28267 | |
28268 | #undef gethostbyname | |
28269 | ||
a848cd7e SC |
28270 | /* Override any gcc2 internal prototype to avoid an error. */ |
28271 | #ifdef __cplusplus | |
28272 | extern "C" | |
28273 | { | |
28274 | #endif | |
28275 | /* We use char because int might match the return type of a gcc2 | |
28276 | builtin and then its argument prototype would still apply. */ | |
28277 | char gethostbyname (); | |
28278 | /* The GNU C library defines this for functions which it implements | |
28279 | to always fail with ENOSYS. Some functions are actually named | |
28280 | something starting with __ and the normal name is an alias. */ | |
28281 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
28282 | choke me | |
28283 | #else | |
28284 | char (*f) () = gethostbyname; | |
28285 | #endif | |
28286 | #ifdef __cplusplus | |
28287 | } | |
28288 | #endif | |
28289 | ||
28290 | int | |
28291 | main () | |
28292 | { | |
28293 | return f != gethostbyname; | |
28294 | ; | |
28295 | return 0; | |
28296 | } | |
28297 | _ACEOF | |
28298 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28299 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28300 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28301 | ac_status=$? |
ac1cb8d3 VS |
28302 | grep -v '^ *+' conftest.er1 >conftest.err |
28303 | rm -f conftest.er1 | |
28304 | cat conftest.err >&5 | |
a848cd7e SC |
28305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28306 | (exit $ac_status); } && | |
3565d135 RR |
28307 | { ac_try='test -z "$ac_c_werror_flag" |
28308 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28310 | (eval $ac_try) 2>&5 | |
28311 | ac_status=$? | |
28312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28313 | (exit $ac_status); }; } && | |
28314 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28316 | (eval $ac_try) 2>&5 | |
28317 | ac_status=$? | |
28318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28319 | (exit $ac_status); }; }; then | |
28320 | ac_cv_func_gethostbyname=yes | |
28321 | else | |
28322 | echo "$as_me: failed program was:" >&5 | |
28323 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28324 | ||
28325 | ac_cv_func_gethostbyname=no | |
28326 | fi | |
ac1cb8d3 VS |
28327 | rm -f conftest.err conftest.$ac_objext \ |
28328 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28329 | fi |
28330 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
28331 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
28332 | ||
28333 | if test $ac_cv_func_gethostbyname = no; then | |
28334 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
28335 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
28336 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
28337 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28338 | else | |
28339 | ac_check_lib_save_LIBS=$LIBS | |
28340 | LIBS="-lnsl $LIBS" | |
28341 | cat >conftest.$ac_ext <<_ACEOF | |
28342 | /* confdefs.h. */ | |
28343 | _ACEOF | |
28344 | cat confdefs.h >>conftest.$ac_ext | |
28345 | cat >>conftest.$ac_ext <<_ACEOF | |
28346 | /* end confdefs.h. */ | |
28347 | ||
28348 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28349 | #ifdef __cplusplus | |
28350 | extern "C" | |
28351 | #endif | |
28352 | /* We use char because int might match the return type of a gcc2 | |
28353 | builtin and then its argument prototype would still apply. */ | |
28354 | char gethostbyname (); | |
28355 | int | |
28356 | main () | |
28357 | { | |
28358 | gethostbyname (); | |
28359 | ; | |
28360 | return 0; | |
28361 | } | |
28362 | _ACEOF | |
28363 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28364 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 VS |
28365 | (eval $ac_link) 2>conftest.er1 |
28366 | ac_status=$? | |
28367 | grep -v '^ *+' conftest.er1 >conftest.err | |
28368 | rm -f conftest.er1 | |
28369 | cat conftest.err >&5 | |
28370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28371 | (exit $ac_status); } && | |
3565d135 RR |
28372 | { ac_try='test -z "$ac_c_werror_flag" |
28373 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28375 | (eval $ac_try) 2>&5 | |
28376 | ac_status=$? | |
28377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28378 | (exit $ac_status); }; } && | |
28379 | { ac_try='test -s conftest$ac_exeext' | |
28380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28381 | (eval $ac_try) 2>&5 | |
28382 | ac_status=$? | |
28383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28384 | (exit $ac_status); }; }; then | |
28385 | ac_cv_lib_nsl_gethostbyname=yes | |
28386 | else | |
28387 | echo "$as_me: failed program was:" >&5 | |
28388 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28389 | ||
28390 | ac_cv_lib_nsl_gethostbyname=no | |
28391 | fi | |
28392 | rm -f conftest.err conftest.$ac_objext \ | |
28393 | conftest$ac_exeext conftest.$ac_ext | |
28394 | LIBS=$ac_check_lib_save_LIBS | |
28395 | fi | |
28396 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
28397 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
28398 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
28399 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
28400 | fi | |
28401 | ||
28402 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
28403 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
28404 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
28405 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
28406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28407 | else | |
28408 | ac_check_lib_save_LIBS=$LIBS | |
28409 | LIBS="-lbsd $LIBS" | |
28410 | cat >conftest.$ac_ext <<_ACEOF | |
28411 | /* confdefs.h. */ | |
28412 | _ACEOF | |
28413 | cat confdefs.h >>conftest.$ac_ext | |
28414 | cat >>conftest.$ac_ext <<_ACEOF | |
28415 | /* end confdefs.h. */ | |
28416 | ||
28417 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28418 | #ifdef __cplusplus | |
28419 | extern "C" | |
28420 | #endif | |
28421 | /* We use char because int might match the return type of a gcc2 | |
28422 | builtin and then its argument prototype would still apply. */ | |
28423 | char gethostbyname (); | |
28424 | int | |
28425 | main () | |
28426 | { | |
28427 | gethostbyname (); | |
28428 | ; | |
28429 | return 0; | |
28430 | } | |
28431 | _ACEOF | |
28432 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28433 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28434 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 28435 | ac_status=$? |
ac1cb8d3 VS |
28436 | grep -v '^ *+' conftest.er1 >conftest.err |
28437 | rm -f conftest.er1 | |
28438 | cat conftest.err >&5 | |
a848cd7e SC |
28439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28440 | (exit $ac_status); } && | |
3565d135 RR |
28441 | { ac_try='test -z "$ac_c_werror_flag" |
28442 | || test ! -s conftest.err' | |
a848cd7e SC |
28443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28444 | (eval $ac_try) 2>&5 | |
28445 | ac_status=$? | |
28446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ac1cb8d3 VS |
28447 | (exit $ac_status); }; } && |
28448 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28450 | (eval $ac_try) 2>&5 | |
28451 | ac_status=$? | |
28452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28453 | (exit $ac_status); }; }; then | |
28454 | ac_cv_lib_bsd_gethostbyname=yes | |
28455 | else | |
28456 | echo "$as_me: failed program was:" >&5 | |
28457 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28458 | ||
28459 | ac_cv_lib_bsd_gethostbyname=no | |
28460 | fi | |
ac1cb8d3 VS |
28461 | rm -f conftest.err conftest.$ac_objext \ |
28462 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28463 | LIBS=$ac_check_lib_save_LIBS |
28464 | fi | |
28465 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
28466 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
28467 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
28468 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
28469 | fi | |
28470 | ||
28471 | fi | |
28472 | fi | |
28473 | ||
28474 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
28475 | # socket/setsockopt and other routines are undefined under SCO ODT | |
28476 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
28477 | # on later versions), says Simon Leinen: it contains gethostby* | |
28478 | # variants that don't use the name server (or something). -lsocket | |
28479 | # must be given before -lnsl if both are needed. We assume that | |
28480 | # if connect needs -lnsl, so does gethostbyname. | |
28481 | echo "$as_me:$LINENO: checking for connect" >&5 | |
28482 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
28483 | if test "${ac_cv_func_connect+set}" = set; then | |
28484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28485 | else | |
28486 | cat >conftest.$ac_ext <<_ACEOF | |
28487 | /* confdefs.h. */ | |
28488 | _ACEOF | |
28489 | cat confdefs.h >>conftest.$ac_ext | |
28490 | cat >>conftest.$ac_ext <<_ACEOF | |
28491 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28492 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
28493 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28494 | #define connect innocuous_connect | |
28495 | ||
a848cd7e SC |
28496 | /* System header to define __stub macros and hopefully few prototypes, |
28497 | which can conflict with char connect (); below. | |
28498 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28499 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28500 | |
a848cd7e SC |
28501 | #ifdef __STDC__ |
28502 | # include <limits.h> | |
28503 | #else | |
28504 | # include <assert.h> | |
28505 | #endif | |
ac1cb8d3 VS |
28506 | |
28507 | #undef connect | |
28508 | ||
a848cd7e SC |
28509 | /* Override any gcc2 internal prototype to avoid an error. */ |
28510 | #ifdef __cplusplus | |
28511 | extern "C" | |
28512 | { | |
28513 | #endif | |
28514 | /* We use char because int might match the return type of a gcc2 | |
28515 | builtin and then its argument prototype would still apply. */ | |
28516 | char connect (); | |
28517 | /* The GNU C library defines this for functions which it implements | |
28518 | to always fail with ENOSYS. Some functions are actually named | |
28519 | something starting with __ and the normal name is an alias. */ | |
28520 | #if defined (__stub_connect) || defined (__stub___connect) | |
28521 | choke me | |
28522 | #else | |
28523 | char (*f) () = connect; | |
28524 | #endif | |
28525 | #ifdef __cplusplus | |
28526 | } | |
28527 | #endif | |
28528 | ||
28529 | int | |
28530 | main () | |
28531 | { | |
28532 | return f != connect; | |
28533 | ; | |
28534 | return 0; | |
28535 | } | |
28536 | _ACEOF | |
28537 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28538 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28539 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28540 | ac_status=$? |
ac1cb8d3 VS |
28541 | grep -v '^ *+' conftest.er1 >conftest.err |
28542 | rm -f conftest.er1 | |
28543 | cat conftest.err >&5 | |
a848cd7e SC |
28544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28545 | (exit $ac_status); } && | |
3565d135 RR |
28546 | { ac_try='test -z "$ac_c_werror_flag" |
28547 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28549 | (eval $ac_try) 2>&5 | |
28550 | ac_status=$? | |
28551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28552 | (exit $ac_status); }; } && | |
28553 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28555 | (eval $ac_try) 2>&5 | |
28556 | ac_status=$? | |
28557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28558 | (exit $ac_status); }; }; then | |
28559 | ac_cv_func_connect=yes | |
28560 | else | |
28561 | echo "$as_me: failed program was:" >&5 | |
28562 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28563 | ||
28564 | ac_cv_func_connect=no | |
28565 | fi | |
ac1cb8d3 VS |
28566 | rm -f conftest.err conftest.$ac_objext \ |
28567 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28568 | fi |
28569 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
28570 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
28571 | ||
28572 | if test $ac_cv_func_connect = no; then | |
28573 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
28574 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
28575 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
28576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28577 | else | |
28578 | ac_check_lib_save_LIBS=$LIBS | |
28579 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
28580 | cat >conftest.$ac_ext <<_ACEOF | |
28581 | /* confdefs.h. */ | |
28582 | _ACEOF | |
28583 | cat confdefs.h >>conftest.$ac_ext | |
28584 | cat >>conftest.$ac_ext <<_ACEOF | |
28585 | /* end confdefs.h. */ | |
28586 | ||
28587 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28588 | #ifdef __cplusplus | |
28589 | extern "C" | |
28590 | #endif | |
28591 | /* We use char because int might match the return type of a gcc2 | |
28592 | builtin and then its argument prototype would still apply. */ | |
28593 | char connect (); | |
28594 | int | |
28595 | main () | |
28596 | { | |
28597 | connect (); | |
28598 | ; | |
28599 | return 0; | |
28600 | } | |
28601 | _ACEOF | |
28602 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28603 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28604 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28605 | ac_status=$? |
ac1cb8d3 VS |
28606 | grep -v '^ *+' conftest.er1 >conftest.err |
28607 | rm -f conftest.er1 | |
28608 | cat conftest.err >&5 | |
a848cd7e SC |
28609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28610 | (exit $ac_status); } && | |
3565d135 RR |
28611 | { ac_try='test -z "$ac_c_werror_flag" |
28612 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28614 | (eval $ac_try) 2>&5 | |
28615 | ac_status=$? | |
28616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28617 | (exit $ac_status); }; } && | |
28618 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28620 | (eval $ac_try) 2>&5 | |
28621 | ac_status=$? | |
28622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28623 | (exit $ac_status); }; }; then | |
28624 | ac_cv_lib_socket_connect=yes | |
28625 | else | |
28626 | echo "$as_me: failed program was:" >&5 | |
28627 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28628 | ||
28629 | ac_cv_lib_socket_connect=no | |
28630 | fi | |
ac1cb8d3 VS |
28631 | rm -f conftest.err conftest.$ac_objext \ |
28632 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28633 | LIBS=$ac_check_lib_save_LIBS |
28634 | fi | |
28635 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
28636 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
28637 | if test $ac_cv_lib_socket_connect = yes; then | |
28638 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
28639 | fi | |
28640 | ||
28641 | fi | |
28642 | ||
28643 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
28644 | echo "$as_me:$LINENO: checking for remove" >&5 | |
28645 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
28646 | if test "${ac_cv_func_remove+set}" = set; then | |
28647 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28648 | else | |
28649 | cat >conftest.$ac_ext <<_ACEOF | |
28650 | /* confdefs.h. */ | |
28651 | _ACEOF | |
28652 | cat confdefs.h >>conftest.$ac_ext | |
28653 | cat >>conftest.$ac_ext <<_ACEOF | |
28654 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28655 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
28656 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28657 | #define remove innocuous_remove | |
28658 | ||
a848cd7e SC |
28659 | /* System header to define __stub macros and hopefully few prototypes, |
28660 | which can conflict with char remove (); below. | |
28661 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28662 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28663 | |
a848cd7e SC |
28664 | #ifdef __STDC__ |
28665 | # include <limits.h> | |
28666 | #else | |
28667 | # include <assert.h> | |
28668 | #endif | |
ac1cb8d3 VS |
28669 | |
28670 | #undef remove | |
28671 | ||
a848cd7e SC |
28672 | /* Override any gcc2 internal prototype to avoid an error. */ |
28673 | #ifdef __cplusplus | |
28674 | extern "C" | |
28675 | { | |
28676 | #endif | |
28677 | /* We use char because int might match the return type of a gcc2 | |
28678 | builtin and then its argument prototype would still apply. */ | |
28679 | char remove (); | |
28680 | /* The GNU C library defines this for functions which it implements | |
28681 | to always fail with ENOSYS. Some functions are actually named | |
28682 | something starting with __ and the normal name is an alias. */ | |
28683 | #if defined (__stub_remove) || defined (__stub___remove) | |
28684 | choke me | |
28685 | #else | |
28686 | char (*f) () = remove; | |
28687 | #endif | |
28688 | #ifdef __cplusplus | |
28689 | } | |
28690 | #endif | |
28691 | ||
28692 | int | |
28693 | main () | |
28694 | { | |
28695 | return f != remove; | |
28696 | ; | |
28697 | return 0; | |
28698 | } | |
28699 | _ACEOF | |
28700 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28701 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28702 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28703 | ac_status=$? |
ac1cb8d3 VS |
28704 | grep -v '^ *+' conftest.er1 >conftest.err |
28705 | rm -f conftest.er1 | |
28706 | cat conftest.err >&5 | |
a848cd7e SC |
28707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28708 | (exit $ac_status); } && | |
3565d135 RR |
28709 | { ac_try='test -z "$ac_c_werror_flag" |
28710 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28712 | (eval $ac_try) 2>&5 | |
28713 | ac_status=$? | |
28714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28715 | (exit $ac_status); }; } && | |
28716 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28718 | (eval $ac_try) 2>&5 | |
28719 | ac_status=$? | |
28720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28721 | (exit $ac_status); }; }; then | |
28722 | ac_cv_func_remove=yes | |
28723 | else | |
28724 | echo "$as_me: failed program was:" >&5 | |
28725 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28726 | ||
28727 | ac_cv_func_remove=no | |
28728 | fi | |
ac1cb8d3 VS |
28729 | rm -f conftest.err conftest.$ac_objext \ |
28730 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28731 | fi |
28732 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
28733 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
28734 | ||
28735 | if test $ac_cv_func_remove = no; then | |
28736 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
28737 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
28738 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
28739 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28740 | else | |
28741 | ac_check_lib_save_LIBS=$LIBS | |
28742 | LIBS="-lposix $LIBS" | |
28743 | cat >conftest.$ac_ext <<_ACEOF | |
28744 | /* confdefs.h. */ | |
28745 | _ACEOF | |
28746 | cat confdefs.h >>conftest.$ac_ext | |
28747 | cat >>conftest.$ac_ext <<_ACEOF | |
28748 | /* end confdefs.h. */ | |
28749 | ||
28750 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28751 | #ifdef __cplusplus | |
28752 | extern "C" | |
28753 | #endif | |
28754 | /* We use char because int might match the return type of a gcc2 | |
28755 | builtin and then its argument prototype would still apply. */ | |
28756 | char remove (); | |
28757 | int | |
28758 | main () | |
28759 | { | |
28760 | remove (); | |
28761 | ; | |
28762 | return 0; | |
28763 | } | |
28764 | _ACEOF | |
28765 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28766 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28767 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28768 | ac_status=$? |
ac1cb8d3 VS |
28769 | grep -v '^ *+' conftest.er1 >conftest.err |
28770 | rm -f conftest.er1 | |
28771 | cat conftest.err >&5 | |
a848cd7e SC |
28772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28773 | (exit $ac_status); } && | |
3565d135 RR |
28774 | { ac_try='test -z "$ac_c_werror_flag" |
28775 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28777 | (eval $ac_try) 2>&5 | |
28778 | ac_status=$? | |
28779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28780 | (exit $ac_status); }; } && | |
28781 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28783 | (eval $ac_try) 2>&5 | |
28784 | ac_status=$? | |
28785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28786 | (exit $ac_status); }; }; then | |
28787 | ac_cv_lib_posix_remove=yes | |
28788 | else | |
28789 | echo "$as_me: failed program was:" >&5 | |
28790 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28791 | ||
28792 | ac_cv_lib_posix_remove=no | |
28793 | fi | |
ac1cb8d3 VS |
28794 | rm -f conftest.err conftest.$ac_objext \ |
28795 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28796 | LIBS=$ac_check_lib_save_LIBS |
28797 | fi | |
28798 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
28799 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
28800 | if test $ac_cv_lib_posix_remove = yes; then | |
28801 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
28802 | fi | |
28803 | ||
28804 | fi | |
28805 | ||
28806 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
28807 | echo "$as_me:$LINENO: checking for shmat" >&5 | |
28808 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
28809 | if test "${ac_cv_func_shmat+set}" = set; then | |
28810 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28811 | else | |
28812 | cat >conftest.$ac_ext <<_ACEOF | |
28813 | /* confdefs.h. */ | |
28814 | _ACEOF | |
28815 | cat confdefs.h >>conftest.$ac_ext | |
28816 | cat >>conftest.$ac_ext <<_ACEOF | |
28817 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
28818 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
28819 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
28820 | #define shmat innocuous_shmat | |
28821 | ||
a848cd7e SC |
28822 | /* System header to define __stub macros and hopefully few prototypes, |
28823 | which can conflict with char shmat (); below. | |
28824 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28825 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 28826 | |
a848cd7e SC |
28827 | #ifdef __STDC__ |
28828 | # include <limits.h> | |
28829 | #else | |
28830 | # include <assert.h> | |
28831 | #endif | |
ac1cb8d3 VS |
28832 | |
28833 | #undef shmat | |
28834 | ||
a848cd7e SC |
28835 | /* Override any gcc2 internal prototype to avoid an error. */ |
28836 | #ifdef __cplusplus | |
28837 | extern "C" | |
28838 | { | |
28839 | #endif | |
28840 | /* We use char because int might match the return type of a gcc2 | |
28841 | builtin and then its argument prototype would still apply. */ | |
28842 | char shmat (); | |
28843 | /* The GNU C library defines this for functions which it implements | |
28844 | to always fail with ENOSYS. Some functions are actually named | |
28845 | something starting with __ and the normal name is an alias. */ | |
28846 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
28847 | choke me | |
28848 | #else | |
28849 | char (*f) () = shmat; | |
28850 | #endif | |
28851 | #ifdef __cplusplus | |
28852 | } | |
28853 | #endif | |
28854 | ||
28855 | int | |
28856 | main () | |
28857 | { | |
28858 | return f != shmat; | |
28859 | ; | |
28860 | return 0; | |
28861 | } | |
28862 | _ACEOF | |
28863 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28864 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28865 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28866 | ac_status=$? |
ac1cb8d3 VS |
28867 | grep -v '^ *+' conftest.er1 >conftest.err |
28868 | rm -f conftest.er1 | |
28869 | cat conftest.err >&5 | |
a848cd7e SC |
28870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28871 | (exit $ac_status); } && | |
3565d135 RR |
28872 | { ac_try='test -z "$ac_c_werror_flag" |
28873 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28875 | (eval $ac_try) 2>&5 | |
28876 | ac_status=$? | |
28877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28878 | (exit $ac_status); }; } && | |
28879 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28881 | (eval $ac_try) 2>&5 | |
28882 | ac_status=$? | |
28883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28884 | (exit $ac_status); }; }; then | |
28885 | ac_cv_func_shmat=yes | |
28886 | else | |
28887 | echo "$as_me: failed program was:" >&5 | |
28888 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28889 | ||
28890 | ac_cv_func_shmat=no | |
28891 | fi | |
ac1cb8d3 VS |
28892 | rm -f conftest.err conftest.$ac_objext \ |
28893 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28894 | fi |
28895 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
28896 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
28897 | ||
28898 | if test $ac_cv_func_shmat = no; then | |
28899 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
28900 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
28901 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
28902 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28903 | else | |
28904 | ac_check_lib_save_LIBS=$LIBS | |
28905 | LIBS="-lipc $LIBS" | |
28906 | cat >conftest.$ac_ext <<_ACEOF | |
28907 | /* confdefs.h. */ | |
28908 | _ACEOF | |
28909 | cat confdefs.h >>conftest.$ac_ext | |
28910 | cat >>conftest.$ac_ext <<_ACEOF | |
28911 | /* end confdefs.h. */ | |
28912 | ||
28913 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28914 | #ifdef __cplusplus | |
28915 | extern "C" | |
28916 | #endif | |
28917 | /* We use char because int might match the return type of a gcc2 | |
28918 | builtin and then its argument prototype would still apply. */ | |
28919 | char shmat (); | |
28920 | int | |
28921 | main () | |
28922 | { | |
28923 | shmat (); | |
28924 | ; | |
28925 | return 0; | |
28926 | } | |
28927 | _ACEOF | |
28928 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28929 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 28930 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 28931 | ac_status=$? |
ac1cb8d3 VS |
28932 | grep -v '^ *+' conftest.er1 >conftest.err |
28933 | rm -f conftest.er1 | |
28934 | cat conftest.err >&5 | |
a848cd7e SC |
28935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28936 | (exit $ac_status); } && | |
3565d135 RR |
28937 | { ac_try='test -z "$ac_c_werror_flag" |
28938 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
28939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28940 | (eval $ac_try) 2>&5 | |
28941 | ac_status=$? | |
28942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28943 | (exit $ac_status); }; } && | |
28944 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
28945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28946 | (eval $ac_try) 2>&5 | |
28947 | ac_status=$? | |
28948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28949 | (exit $ac_status); }; }; then | |
28950 | ac_cv_lib_ipc_shmat=yes | |
28951 | else | |
28952 | echo "$as_me: failed program was:" >&5 | |
28953 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28954 | ||
28955 | ac_cv_lib_ipc_shmat=no | |
28956 | fi | |
ac1cb8d3 VS |
28957 | rm -f conftest.err conftest.$ac_objext \ |
28958 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
28959 | LIBS=$ac_check_lib_save_LIBS |
28960 | fi | |
28961 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
28962 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
28963 | if test $ac_cv_lib_ipc_shmat = yes; then | |
28964 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
28965 | fi | |
28966 | ||
28967 | fi | |
28968 | fi | |
28969 | ||
28970 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
28971 | ac_save_LDFLAGS=$LDFLAGS | |
28972 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
28973 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
28974 | # check for ICE first), but we must link in the order -lSM -lICE or | |
28975 | # we get undefined symbols. So assume we have SM if we have ICE. | |
28976 | # These have to be linked with before -lX11, unlike the other | |
28977 | # libraries we check for below, so use a different variable. | |
28978 | # John Interrante, Karl Berry | |
28979 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
28980 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
28981 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
28982 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28983 | else | |
28984 | ac_check_lib_save_LIBS=$LIBS | |
28985 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
28986 | cat >conftest.$ac_ext <<_ACEOF | |
28987 | /* confdefs.h. */ | |
28988 | _ACEOF | |
28989 | cat confdefs.h >>conftest.$ac_ext | |
28990 | cat >>conftest.$ac_ext <<_ACEOF | |
28991 | /* end confdefs.h. */ | |
28992 | ||
28993 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28994 | #ifdef __cplusplus | |
28995 | extern "C" | |
28996 | #endif | |
28997 | /* We use char because int might match the return type of a gcc2 | |
28998 | builtin and then its argument prototype would still apply. */ | |
28999 | char IceConnectionNumber (); | |
29000 | int | |
29001 | main () | |
29002 | { | |
29003 | IceConnectionNumber (); | |
29004 | ; | |
29005 | return 0; | |
29006 | } | |
29007 | _ACEOF | |
29008 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29009 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29010 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29011 | ac_status=$? |
ac1cb8d3 VS |
29012 | grep -v '^ *+' conftest.er1 >conftest.err |
29013 | rm -f conftest.er1 | |
29014 | cat conftest.err >&5 | |
a848cd7e SC |
29015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29016 | (exit $ac_status); } && | |
3565d135 RR |
29017 | { ac_try='test -z "$ac_c_werror_flag" |
29018 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29020 | (eval $ac_try) 2>&5 | |
29021 | ac_status=$? | |
29022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29023 | (exit $ac_status); }; } && | |
29024 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29026 | (eval $ac_try) 2>&5 | |
29027 | ac_status=$? | |
29028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29029 | (exit $ac_status); }; }; then | |
29030 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
29031 | else | |
29032 | echo "$as_me: failed program was:" >&5 | |
29033 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29034 | ||
29035 | ac_cv_lib_ICE_IceConnectionNumber=no | |
29036 | fi | |
ac1cb8d3 VS |
29037 | rm -f conftest.err conftest.$ac_objext \ |
29038 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29039 | LIBS=$ac_check_lib_save_LIBS |
29040 | fi | |
29041 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
29042 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
29043 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
29044 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
29045 | fi | |
29046 | ||
29047 | LDFLAGS=$ac_save_LDFLAGS | |
29048 | ||
29049 | fi | |
29050 | ||
29051 | ||
29052 | if test "$no_x" = "yes"; then | |
89d90d6d VZ |
29053 | { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5 |
29054 | echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;} | |
29055 | { (exit 1); exit 1; }; } | |
a848cd7e SC |
29056 | fi |
29057 | ||
74b84332 VS |
29058 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'` |
29059 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
a848cd7e SC |
29060 | AFMINSTALL=afminstall |
29061 | COMPILED_X_PROGRAM=0 | |
29062 | ||
74b84332 VS |
29063 | fi |
29064 | ||
29065 | if test "$wxUSE_X11" = 1; then | |
a848cd7e SC |
29066 | if test "$wxUSE_NANOX" = "yes"; then |
29067 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 | |
29068 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
29069 | if test "x$MICROWIN" = x ; then | |
29070 | echo "$as_me:$LINENO: result: not found" >&5 | |
29071 | echo "${ECHO_T}not found" >&6 | |
29072 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
29073 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
29074 | { (exit 1); exit 1; }; } | |
29075 | else | |
29076 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 | |
29077 | echo "${ECHO_T}$MICROWIN" >&6 | |
29078 | cat >>confdefs.h <<\_ACEOF | |
29079 | #define wxUSE_NANOX 1 | |
29080 | _ACEOF | |
29081 | ||
29082 | fi | |
29083 | fi | |
29084 | ||
29085 | if test "$wxUSE_UNICODE" = "yes"; then | |
29086 | ||
29087 | succeeded=no | |
29088 | ||
29089 | if test -z "$PKG_CONFIG"; then | |
29090 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
29091 | set dummy pkg-config; ac_word=$2 | |
29092 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
29093 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
29094 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
29095 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29096 | else | |
29097 | case $PKG_CONFIG in | |
29098 | [\\/]* | ?:[\\/]*) | |
29099 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
29100 | ;; | |
29101 | *) | |
29102 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29103 | for as_dir in $PATH | |
29104 | do | |
29105 | IFS=$as_save_IFS | |
29106 | test -z "$as_dir" && as_dir=. | |
29107 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29108 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
29109 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
29110 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
29111 | break 2 | |
29112 | fi | |
29113 | done | |
29114 | done | |
29115 | ||
29116 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
29117 | ;; | |
29118 | esac | |
29119 | fi | |
29120 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
29121 | ||
29122 | if test -n "$PKG_CONFIG"; then | |
29123 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
29124 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
29125 | else | |
29126 | echo "$as_me:$LINENO: result: no" >&5 | |
29127 | echo "${ECHO_T}no" >&6 | |
29128 | fi | |
29129 | ||
29130 | fi | |
29131 | ||
29132 | if test "$PKG_CONFIG" = "no" ; then | |
29133 | echo "*** The pkg-config script could not be found. Make sure it is" | |
29134 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
29135 | echo "*** to the full path to pkg-config." | |
29136 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
29137 | else | |
29138 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
29139 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
29140 | echo "$as_me:$LINENO: checking for pangox" >&5 | |
29141 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
29142 | ||
29143 | if $PKG_CONFIG --exists "pangox" ; then | |
29144 | echo "$as_me:$LINENO: result: yes" >&5 | |
29145 | echo "${ECHO_T}yes" >&6 | |
29146 | succeeded=yes | |
29147 | ||
29148 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 | |
29149 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
29150 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` | |
29151 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 | |
29152 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
29153 | ||
29154 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 | |
29155 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
29156 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` | |
29157 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 | |
29158 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
29159 | else | |
29160 | PANGOX_CFLAGS="" | |
29161 | PANGOX_LIBS="" | |
29162 | ## If we have a custom action on failure, don't print errors, but | |
29163 | ## do set a variable so people can do so. | |
29164 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
29165 | ||
29166 | fi | |
29167 | ||
29168 | ||
29169 | ||
29170 | else | |
29171 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
29172 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
29173 | fi | |
29174 | fi | |
29175 | ||
29176 | if test $succeeded = yes; then | |
29177 | ||
c92ad099 | 29178 | CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS" |
a848cd7e SC |
29179 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" |
29180 | ||
29181 | else | |
29182 | ||
29183 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
29184 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
29185 | { (exit 1); exit 1; }; } | |
29186 | ||
29187 | ||
29188 | fi | |
29189 | ||
29190 | ||
29191 | succeeded=no | |
29192 | ||
29193 | if test -z "$PKG_CONFIG"; then | |
29194 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
29195 | set dummy pkg-config; ac_word=$2 | |
29196 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
29197 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
29198 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
29199 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29200 | else | |
29201 | case $PKG_CONFIG in | |
29202 | [\\/]* | ?:[\\/]*) | |
29203 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
29204 | ;; | |
29205 | *) | |
29206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29207 | for as_dir in $PATH | |
29208 | do | |
29209 | IFS=$as_save_IFS | |
29210 | test -z "$as_dir" && as_dir=. | |
29211 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29212 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
29213 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
29214 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
29215 | break 2 | |
29216 | fi | |
29217 | done | |
29218 | done | |
29219 | ||
29220 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
29221 | ;; | |
29222 | esac | |
29223 | fi | |
29224 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
29225 | ||
29226 | if test -n "$PKG_CONFIG"; then | |
29227 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
29228 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
29229 | else | |
29230 | echo "$as_me:$LINENO: result: no" >&5 | |
29231 | echo "${ECHO_T}no" >&6 | |
29232 | fi | |
29233 | ||
29234 | fi | |
29235 | ||
29236 | if test "$PKG_CONFIG" = "no" ; then | |
29237 | echo "*** The pkg-config script could not be found. Make sure it is" | |
29238 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
29239 | echo "*** to the full path to pkg-config." | |
29240 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
29241 | else | |
29242 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
29243 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
29244 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
29245 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
29246 | ||
29247 | if $PKG_CONFIG --exists "pangoft2" ; then | |
29248 | echo "$as_me:$LINENO: result: yes" >&5 | |
29249 | echo "${ECHO_T}yes" >&6 | |
29250 | succeeded=yes | |
29251 | ||
29252 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
29253 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
29254 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
29255 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
29256 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
29257 | ||
29258 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
29259 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
29260 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
29261 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
29262 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
29263 | else | |
29264 | PANGOFT2_CFLAGS="" | |
29265 | PANGOFT2_LIBS="" | |
29266 | ## If we have a custom action on failure, don't print errors, but | |
29267 | ## do set a variable so people can do so. | |
29268 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
29269 | ||
29270 | fi | |
29271 | ||
29272 | ||
29273 | ||
29274 | else | |
29275 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
29276 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
29277 | fi | |
29278 | fi | |
29279 | ||
29280 | if test $succeeded = yes; then | |
29281 | ||
c92ad099 | 29282 | CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS" |
a848cd7e SC |
29283 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" |
29284 | ||
29285 | else | |
29286 | ||
29287 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
29288 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
29289 | wxUSE_PRINTING_ARCHITECTURE="no" | |
29290 | ||
29291 | ||
29292 | fi | |
29293 | ||
29294 | ||
29295 | succeeded=no | |
29296 | ||
29297 | if test -z "$PKG_CONFIG"; then | |
29298 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
29299 | set dummy pkg-config; ac_word=$2 | |
29300 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
29301 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
29302 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
29303 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29304 | else | |
29305 | case $PKG_CONFIG in | |
29306 | [\\/]* | ?:[\\/]*) | |
29307 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
29308 | ;; | |
29309 | *) | |
29310 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
29311 | for as_dir in $PATH | |
29312 | do | |
29313 | IFS=$as_save_IFS | |
29314 | test -z "$as_dir" && as_dir=. | |
29315 | for ac_exec_ext in '' $ac_executable_extensions; do | |
29316 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
29317 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
29318 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
29319 | break 2 | |
29320 | fi | |
29321 | done | |
29322 | done | |
29323 | ||
29324 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
29325 | ;; | |
29326 | esac | |
29327 | fi | |
29328 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
29329 | ||
29330 | if test -n "$PKG_CONFIG"; then | |
29331 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
29332 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
29333 | else | |
29334 | echo "$as_me:$LINENO: result: no" >&5 | |
29335 | echo "${ECHO_T}no" >&6 | |
29336 | fi | |
29337 | ||
29338 | fi | |
29339 | ||
29340 | if test "$PKG_CONFIG" = "no" ; then | |
29341 | echo "*** The pkg-config script could not be found. Make sure it is" | |
29342 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
29343 | echo "*** to the full path to pkg-config." | |
29344 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
29345 | else | |
29346 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
29347 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
29348 | echo "$as_me:$LINENO: checking for pangoxft" >&5 | |
29349 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
29350 | ||
29351 | if $PKG_CONFIG --exists "pangoxft" ; then | |
29352 | echo "$as_me:$LINENO: result: yes" >&5 | |
29353 | echo "${ECHO_T}yes" >&6 | |
29354 | succeeded=yes | |
29355 | ||
29356 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 | |
29357 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
29358 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` | |
29359 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 | |
29360 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
29361 | ||
29362 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 | |
29363 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
29364 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` | |
29365 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 | |
29366 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
29367 | else | |
29368 | PANGOXFT_CFLAGS="" | |
29369 | PANGOXFT_LIBS="" | |
29370 | ## If we have a custom action on failure, don't print errors, but | |
29371 | ## do set a variable so people can do so. | |
29372 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
29373 | ||
29374 | fi | |
29375 | ||
29376 | ||
29377 | ||
29378 | else | |
29379 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
29380 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
29381 | fi | |
29382 | fi | |
29383 | ||
29384 | if test $succeeded = yes; then | |
29385 | ||
4ae1af05 MB |
29386 | cat >>confdefs.h <<\_ACEOF |
29387 | #define HAVE_PANGO_XFT 1 | |
29388 | _ACEOF | |
29389 | ||
c92ad099 | 29390 | CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS" |
a848cd7e SC |
29391 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" |
29392 | ||
29393 | else | |
29394 | ||
29395 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
29396 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
29397 | ||
29398 | ||
29399 | fi | |
29400 | ||
304205f1 VS |
29401 | save_CFLAGS="$CFLAGS" |
29402 | save_LIBS="$LIBS" | |
c92ad099 | 29403 | CFLAGS="$PANGOX_CFLAGS $CFLAGS" |
304205f1 VS |
29404 | LIBS="$LIBS $PANGOX_LIBS" |
29405 | ||
29406 | for ac_func in pango_font_family_is_monospace | |
29407 | do | |
29408 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29409 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29410 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29411 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29412 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29413 | else | |
29414 | cat >conftest.$ac_ext <<_ACEOF | |
29415 | /* confdefs.h. */ | |
29416 | _ACEOF | |
29417 | cat confdefs.h >>conftest.$ac_ext | |
29418 | cat >>conftest.$ac_ext <<_ACEOF | |
29419 | /* end confdefs.h. */ | |
29420 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
29421 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
29422 | #define $ac_func innocuous_$ac_func | |
29423 | ||
29424 | /* System header to define __stub macros and hopefully few prototypes, | |
29425 | which can conflict with char $ac_func (); below. | |
29426 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29427 | <limits.h> exists even on freestanding compilers. */ | |
29428 | ||
29429 | #ifdef __STDC__ | |
29430 | # include <limits.h> | |
29431 | #else | |
29432 | # include <assert.h> | |
29433 | #endif | |
29434 | ||
29435 | #undef $ac_func | |
29436 | ||
29437 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29438 | #ifdef __cplusplus | |
29439 | extern "C" | |
29440 | { | |
29441 | #endif | |
29442 | /* We use char because int might match the return type of a gcc2 | |
29443 | builtin and then its argument prototype would still apply. */ | |
29444 | char $ac_func (); | |
29445 | /* The GNU C library defines this for functions which it implements | |
29446 | to always fail with ENOSYS. Some functions are actually named | |
29447 | something starting with __ and the normal name is an alias. */ | |
29448 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29449 | choke me | |
29450 | #else | |
29451 | char (*f) () = $ac_func; | |
29452 | #endif | |
29453 | #ifdef __cplusplus | |
29454 | } | |
29455 | #endif | |
29456 | ||
29457 | int | |
29458 | main () | |
29459 | { | |
29460 | return f != $ac_func; | |
29461 | ; | |
29462 | return 0; | |
29463 | } | |
29464 | _ACEOF | |
29465 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29466 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29467 | (eval $ac_link) 2>conftest.er1 | |
29468 | ac_status=$? | |
29469 | grep -v '^ *+' conftest.er1 >conftest.err | |
29470 | rm -f conftest.er1 | |
29471 | cat conftest.err >&5 | |
29472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29473 | (exit $ac_status); } && | |
3565d135 RR |
29474 | { ac_try='test -z "$ac_c_werror_flag" |
29475 | || test ! -s conftest.err' | |
304205f1 VS |
29476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29477 | (eval $ac_try) 2>&5 | |
29478 | ac_status=$? | |
29479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29480 | (exit $ac_status); }; } && | |
29481 | { ac_try='test -s conftest$ac_exeext' | |
29482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29483 | (eval $ac_try) 2>&5 | |
29484 | ac_status=$? | |
29485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29486 | (exit $ac_status); }; }; then | |
29487 | eval "$as_ac_var=yes" | |
29488 | else | |
29489 | echo "$as_me: failed program was:" >&5 | |
29490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29491 | ||
29492 | eval "$as_ac_var=no" | |
29493 | fi | |
29494 | rm -f conftest.err conftest.$ac_objext \ | |
29495 | conftest$ac_exeext conftest.$ac_ext | |
29496 | fi | |
29497 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29498 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29499 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29500 | cat >>confdefs.h <<_ACEOF | |
29501 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29502 | _ACEOF | |
29503 | ||
29504 | fi | |
29505 | done | |
29506 | ||
29507 | CFLAGS="$save_CFLAGS" | |
29508 | LIBS="$save_LIBS" | |
a848cd7e SC |
29509 | fi |
29510 | ||
29511 | wxUSE_UNIVERSAL="yes" | |
29512 | ||
29513 | if test "$wxUSE_NANOX" = "yes"; then | |
29514 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
29515 | 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" | |
29516 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
29517 | else | |
29518 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" | |
29519 | fi | |
29520 | ||
a848cd7e SC |
29521 | TOOLKIT=X11 |
29522 | GUIDIST=X11_DIST | |
29523 | fi | |
29524 | ||
29525 | if test "$wxUSE_MOTIF" = 1; then | |
0a08f02a MB |
29526 | if test "$wxUSE_UNICODE" = "yes"; then |
29527 | { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5 | |
29528 | echo "$as_me: error: Unicode configuration not supported with Motif" >&2;} | |
29529 | { (exit 1); exit 1; }; } | |
29530 | fi | |
29531 | ||
74b84332 VS |
29532 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
29533 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
a848cd7e | 29534 | |
74b84332 VS |
29535 | ac_find_includes= |
29536 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
29537 | do | |
29538 | if test -f "$ac_dir/Xm/Xm.h"; then | |
29539 | ac_find_includes=$ac_dir | |
29540 | break | |
29541 | fi | |
29542 | done | |
a848cd7e | 29543 | |
74b84332 VS |
29544 | if test "$ac_find_includes" != "" ; then |
29545 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
29546 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
29547 | ||
29548 | if test "x$ac_find_includes" = "x/usr/include"; then | |
29549 | ac_path_to_include="" | |
29550 | else | |
29551 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
29552 | result=$? | |
29553 | if test $result = 0; then | |
29554 | ac_path_to_include="" | |
29555 | else | |
29556 | ac_path_to_include=" -I$ac_find_includes" | |
29557 | fi | |
a848cd7e SC |
29558 | fi |
29559 | ||
74b84332 VS |
29560 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" |
29561 | else | |
e051b34e | 29562 | save_CFLAGS=$CFLAGS |
c92ad099 | 29563 | CFLAGS="$TOOLKIT_INCLUDE $CFLAGS" |
e051b34e | 29564 | |
74b84332 | 29565 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
29566 | /* confdefs.h. */ |
29567 | _ACEOF | |
29568 | cat confdefs.h >>conftest.$ac_ext | |
29569 | cat >>conftest.$ac_ext <<_ACEOF | |
29570 | /* end confdefs.h. */ | |
29571 | ||
74b84332 VS |
29572 | #include <Xm/Xm.h> |
29573 | ||
a848cd7e SC |
29574 | int |
29575 | main () | |
29576 | { | |
29577 | ||
74b84332 VS |
29578 | int version; |
29579 | version = xmUseVersion; | |
29580 | ||
a848cd7e SC |
29581 | ; |
29582 | return 0; | |
29583 | } | |
29584 | _ACEOF | |
74b84332 VS |
29585 | rm -f conftest.$ac_objext |
29586 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29587 | (eval $ac_compile) 2>conftest.er1 | |
a848cd7e | 29588 | ac_status=$? |
ac1cb8d3 VS |
29589 | grep -v '^ *+' conftest.er1 >conftest.err |
29590 | rm -f conftest.er1 | |
29591 | cat conftest.err >&5 | |
a848cd7e SC |
29592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29593 | (exit $ac_status); } && | |
3565d135 RR |
29594 | { ac_try='test -z "$ac_c_werror_flag" |
29595 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29597 | (eval $ac_try) 2>&5 | |
29598 | ac_status=$? | |
29599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29600 | (exit $ac_status); }; } && | |
74b84332 | 29601 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
29602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29603 | (eval $ac_try) 2>&5 | |
29604 | ac_status=$? | |
29605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29606 | (exit $ac_status); }; }; then | |
74b84332 VS |
29607 | |
29608 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
29609 | echo "${ECHO_T}found in default search path" >&6 | |
29610 | COMPILED_X_PROGRAM=1 | |
29611 | ||
a848cd7e SC |
29612 | else |
29613 | echo "$as_me: failed program was:" >&5 | |
29614 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29615 | ||
a848cd7e | 29616 | |
74b84332 VS |
29617 | echo "$as_me:$LINENO: result: no" >&5 |
29618 | echo "${ECHO_T}no" >&6 | |
e051b34e MW |
29619 | { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5 |
29620 | echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;} | |
74b84332 | 29621 | { (exit 1); exit 1; }; } |
a848cd7e | 29622 | |
a848cd7e | 29623 | |
a848cd7e | 29624 | fi |
74b84332 | 29625 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
e051b34e MW |
29626 | |
29627 | CFLAGS=$save_CFLAGS | |
74b84332 VS |
29628 | fi |
29629 | ||
0ad5d837 VZ |
29630 | |
29631 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 | |
74b84332 VS |
29632 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 |
29633 | ||
0ad5d837 VZ |
29634 | ac_find_libraries= |
29635 | for ac_dir in $SEARCH_LIB; | |
74b84332 | 29636 | do |
3eca31dc | 29637 | for ac_extension in a so sl dylib dll.a; do |
74b84332 VS |
29638 | if test -f "$ac_dir/libXm.$ac_extension"; then |
29639 | ac_find_libraries=$ac_dir | |
29640 | break 2 | |
a848cd7e | 29641 | fi |
74b84332 VS |
29642 | done |
29643 | done | |
a848cd7e | 29644 | |
0ad5d837 VZ |
29645 | |
29646 | if test "x$ac_find_libraries" != "x" ; then | |
29647 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 | |
29648 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e | 29649 | |
74b84332 | 29650 | |
0ad5d837 | 29651 | if test "$ac_find_libraries" = "default location"; then |
74b84332 | 29652 | ac_path_to_link="" |
a848cd7e | 29653 | else |
0ad5d837 VZ |
29654 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
29655 | result=$? | |
29656 | if test $result = 0; then | |
29657 | ac_path_to_link="" | |
29658 | else | |
29659 | ac_path_to_link=" -L$ac_find_libraries" | |
29660 | fi | |
74b84332 VS |
29661 | fi |
29662 | ||
0ad5d837 VZ |
29663 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
29664 | else | |
29665 | save_CFLAGS=$CFLAGS | |
c92ad099 | 29666 | CFLAGS="$TOOLKIT_INCLUDE $CFLAGS" |
6f9cf1e6 MW |
29667 | save_LIBS="$LIBS" |
29668 | LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11" | |
74b84332 | 29669 | |
0ad5d837 | 29670 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
29671 | /* confdefs.h. */ |
29672 | _ACEOF | |
29673 | cat confdefs.h >>conftest.$ac_ext | |
29674 | cat >>conftest.$ac_ext <<_ACEOF | |
29675 | /* end confdefs.h. */ | |
29676 | ||
0ad5d837 | 29677 | #include <Xm/Xm.h> |
74b84332 | 29678 | |
a848cd7e SC |
29679 | int |
29680 | main () | |
29681 | { | |
74b84332 | 29682 | |
0ad5d837 VZ |
29683 | int version; |
29684 | version = xmUseVersion; | |
74b84332 | 29685 | |
a848cd7e SC |
29686 | ; |
29687 | return 0; | |
29688 | } | |
29689 | _ACEOF | |
0ad5d837 VZ |
29690 | rm -f conftest.$ac_objext conftest$ac_exeext |
29691 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29692 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 29693 | ac_status=$? |
ac1cb8d3 VS |
29694 | grep -v '^ *+' conftest.er1 >conftest.err |
29695 | rm -f conftest.er1 | |
29696 | cat conftest.err >&5 | |
a848cd7e SC |
29697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29698 | (exit $ac_status); } && | |
3565d135 RR |
29699 | { ac_try='test -z "$ac_c_werror_flag" |
29700 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29702 | (eval $ac_try) 2>&5 | |
29703 | ac_status=$? | |
29704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29705 | (exit $ac_status); }; } && | |
0ad5d837 | 29706 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
29707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29708 | (eval $ac_try) 2>&5 | |
29709 | ac_status=$? | |
29710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29711 | (exit $ac_status); }; }; then | |
74b84332 | 29712 | |
0ad5d837 | 29713 | echo "$as_me:$LINENO: result: found in default search path" >&5 |
74b84332 | 29714 | echo "${ECHO_T}found in default search path" >&6 |
0ad5d837 | 29715 | COMPILED_X_PROGRAM=1 |
74b84332 | 29716 | |
a848cd7e SC |
29717 | else |
29718 | echo "$as_me: failed program was:" >&5 | |
29719 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29720 | ||
74b84332 | 29721 | |
6f9cf1e6 | 29722 | echo "$as_me:$LINENO: result: no" >&5 |
74b84332 | 29723 | echo "${ECHO_T}no" >&6 |
6f9cf1e6 | 29724 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 |
74b84332 VS |
29725 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} |
29726 | { (exit 1); exit 1; }; } | |
29727 | ||
29728 | ||
29729 | fi | |
0ad5d837 VZ |
29730 | rm -f conftest.err conftest.$ac_objext \ |
29731 | conftest$ac_exeext conftest.$ac_ext | |
74b84332 | 29732 | |
0ad5d837 | 29733 | CFLAGS=$save_CFLAGS |
6f9cf1e6 | 29734 | LIBS="$save_LIBS" |
74b84332 VS |
29735 | fi |
29736 | ||
29737 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 | |
29738 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
29739 | libp_link="" | |
29740 | libsm_ice_link="" | |
29741 | libs_found=0 | |
29742 | for libp in "" " -lXp"; do | |
29743 | if test "$libs_found" = "0"; then | |
29744 | for libsm_ice in "" " -lSM -lICE"; do | |
29745 | if test "$libs_found" = "0"; then | |
29746 | save_LIBS="$LIBS" | |
29747 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
29748 | save_CFLAGS=$CFLAGS | |
c92ad099 | 29749 | CFLAGS="$TOOLKIT_INCLUDE $CFLAGS" |
74b84332 VS |
29750 | |
29751 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
29752 | /* confdefs.h. */ |
29753 | _ACEOF | |
29754 | cat confdefs.h >>conftest.$ac_ext | |
29755 | cat >>conftest.$ac_ext <<_ACEOF | |
29756 | /* end confdefs.h. */ | |
29757 | ||
74b84332 VS |
29758 | #include <Xm/Xm.h> |
29759 | #include <Xm/List.h> | |
29760 | ||
a848cd7e SC |
29761 | int |
29762 | main () | |
29763 | { | |
74b84332 VS |
29764 | |
29765 | XmString string = NULL; | |
29766 | Widget w = NULL; | |
29767 | int position = 0; | |
29768 | XmListAddItem(w, string, position); | |
29769 | ||
a848cd7e SC |
29770 | ; |
29771 | return 0; | |
29772 | } | |
29773 | _ACEOF | |
29774 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29775 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 29776 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 29777 | ac_status=$? |
ac1cb8d3 VS |
29778 | grep -v '^ *+' conftest.er1 >conftest.err |
29779 | rm -f conftest.er1 | |
29780 | cat conftest.err >&5 | |
a848cd7e SC |
29781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29782 | (exit $ac_status); } && | |
3565d135 RR |
29783 | { ac_try='test -z "$ac_c_werror_flag" |
29784 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29786 | (eval $ac_try) 2>&5 | |
29787 | ac_status=$? | |
29788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29789 | (exit $ac_status); }; } && | |
29790 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
29791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29792 | (eval $ac_try) 2>&5 | |
29793 | ac_status=$? | |
29794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29795 | (exit $ac_status); }; }; then | |
29796 | ||
29797 | libp_link="$libp" | |
29798 | libsm_ice_link="$libsm_ice" | |
29799 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 | |
29800 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
29801 | libs_found=1 | |
29802 | ||
29803 | else | |
29804 | echo "$as_me: failed program was:" >&5 | |
29805 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29806 | ||
29807 | ||
29808 | ||
29809 | fi | |
ac1cb8d3 VS |
29810 | rm -f conftest.err conftest.$ac_objext \ |
29811 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
29812 | |
29813 | LIBS="$save_LIBS" | |
29814 | CFLAGS=$save_CFLAGS | |
29815 | fi | |
29816 | done | |
29817 | fi | |
29818 | done | |
29819 | ||
29820 | if test "$libs_found" = "0"; then | |
29821 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 | |
29822 | echo "${ECHO_T}can't find the right libraries" >&6 | |
29823 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
29824 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
29825 | { (exit 1); exit 1; }; } | |
29826 | fi | |
29827 | ||
62fa8b3a MW |
29828 | echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5 |
29829 | echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6 | |
29830 | if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then | |
29831 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29832 | else | |
29833 | ac_check_lib_save_LIBS=$LIBS | |
29834 | LIBS="-lSgm $LIBS" | |
29835 | cat >conftest.$ac_ext <<_ACEOF | |
29836 | /* confdefs.h. */ | |
29837 | _ACEOF | |
29838 | cat confdefs.h >>conftest.$ac_ext | |
29839 | cat >>conftest.$ac_ext <<_ACEOF | |
29840 | /* end confdefs.h. */ | |
29841 | ||
29842 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29843 | #ifdef __cplusplus | |
29844 | extern "C" | |
29845 | #endif | |
29846 | /* We use char because int might match the return type of a gcc2 | |
29847 | builtin and then its argument prototype would still apply. */ | |
29848 | char SgCreateList (); | |
29849 | int | |
29850 | main () | |
29851 | { | |
29852 | SgCreateList (); | |
29853 | ; | |
29854 | return 0; | |
29855 | } | |
29856 | _ACEOF | |
29857 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29858 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29859 | (eval $ac_link) 2>conftest.er1 | |
29860 | ac_status=$? | |
29861 | grep -v '^ *+' conftest.er1 >conftest.err | |
29862 | rm -f conftest.er1 | |
29863 | cat conftest.err >&5 | |
29864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29865 | (exit $ac_status); } && | |
3565d135 RR |
29866 | { ac_try='test -z "$ac_c_werror_flag" |
29867 | || test ! -s conftest.err' | |
62fa8b3a MW |
29868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29869 | (eval $ac_try) 2>&5 | |
29870 | ac_status=$? | |
29871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29872 | (exit $ac_status); }; } && | |
29873 | { ac_try='test -s conftest$ac_exeext' | |
29874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29875 | (eval $ac_try) 2>&5 | |
29876 | ac_status=$? | |
29877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29878 | (exit $ac_status); }; }; then | |
29879 | ac_cv_lib_Sgm_SgCreateList=yes | |
29880 | else | |
29881 | echo "$as_me: failed program was:" >&5 | |
29882 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29883 | ||
29884 | ac_cv_lib_Sgm_SgCreateList=no | |
29885 | fi | |
29886 | rm -f conftest.err conftest.$ac_objext \ | |
29887 | conftest$ac_exeext conftest.$ac_ext | |
29888 | LIBS=$ac_check_lib_save_LIBS | |
29889 | fi | |
29890 | echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5 | |
29891 | echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6 | |
29892 | if test $ac_cv_lib_Sgm_SgCreateList = yes; then | |
29893 | libsgm_link=" -lSgm" | |
29894 | fi | |
29895 | ||
29896 | ||
a848cd7e | 29897 | save_CFLAGS=$CFLAGS |
c92ad099 | 29898 | CFLAGS="$TOOLKIT_INCLUDE $CFLAGS" |
0ad5d837 | 29899 | |
a848cd7e SC |
29900 | echo "$as_me:$LINENO: checking for Motif 2" >&5 |
29901 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
0ad5d837 VZ |
29902 | if test "${wx_cv_lib_motif2+set}" = set; then |
29903 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29904 | else | |
29905 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
29906 | /* confdefs.h. */ |
29907 | _ACEOF | |
29908 | cat confdefs.h >>conftest.$ac_ext | |
29909 | cat >>conftest.$ac_ext <<_ACEOF | |
29910 | /* end confdefs.h. */ | |
29911 | ||
0ad5d837 | 29912 | #include <Xm/Xm.h> |
a848cd7e SC |
29913 | |
29914 | int | |
29915 | main () | |
29916 | { | |
29917 | ||
0ad5d837 VZ |
29918 | #if XmVersion < 2000 |
29919 | Not Motif 2 | |
29920 | #endif | |
a848cd7e SC |
29921 | |
29922 | ; | |
29923 | return 0; | |
29924 | } | |
29925 | _ACEOF | |
29926 | rm -f conftest.$ac_objext | |
29927 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 29928 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 29929 | ac_status=$? |
ac1cb8d3 VS |
29930 | grep -v '^ *+' conftest.er1 >conftest.err |
29931 | rm -f conftest.er1 | |
29932 | cat conftest.err >&5 | |
a848cd7e SC |
29933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29934 | (exit $ac_status); } && | |
3565d135 RR |
29935 | { ac_try='test -z "$ac_c_werror_flag" |
29936 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
29937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29938 | (eval $ac_try) 2>&5 | |
29939 | ac_status=$? | |
29940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29941 | (exit $ac_status); }; } && | |
29942 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
29943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29944 | (eval $ac_try) 2>&5 | |
29945 | ac_status=$? | |
29946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29947 | (exit $ac_status); }; }; then | |
0ad5d837 | 29948 | wx_cv_lib_motif2="yes" |
a848cd7e SC |
29949 | else |
29950 | echo "$as_me: failed program was:" >&5 | |
29951 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29952 | ||
0ad5d837 VZ |
29953 | wx_cv_lib_motif2="no" |
29954 | fi | |
29955 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
29956 | fi | |
29957 | echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5 | |
29958 | echo "${ECHO_T}$wx_cv_lib_motif2" >&6 | |
29959 | if test "$wx_cv_lib_motif2" = "yes"; then | |
29960 | cat >>confdefs.h <<\_ACEOF | |
29961 | #define __WXMOTIF20__ 1 | |
29962 | _ACEOF | |
a848cd7e | 29963 | |
0ad5d837 VZ |
29964 | else |
29965 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
29966 | #define __WXMOTIF20__ 0 |
29967 | _ACEOF | |
29968 | ||
0ad5d837 | 29969 | fi |
2113bc77 MW |
29970 | |
29971 | echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5 | |
29972 | echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6 | |
0ad5d837 VZ |
29973 | if test "${wx_cv_lib_lesstif+set}" = set; then |
29974 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29975 | else | |
29976 | cat >conftest.$ac_ext <<_ACEOF | |
2113bc77 MW |
29977 | /* confdefs.h. */ |
29978 | _ACEOF | |
29979 | cat confdefs.h >>conftest.$ac_ext | |
29980 | cat >>conftest.$ac_ext <<_ACEOF | |
29981 | /* end confdefs.h. */ | |
29982 | ||
0ad5d837 | 29983 | #include <Xm/Xm.h> |
2113bc77 MW |
29984 | |
29985 | int | |
29986 | main () | |
29987 | { | |
29988 | ||
0ad5d837 VZ |
29989 | #if !defined(LesstifVersion) || LesstifVersion <= 0 |
29990 | Not Lesstif | |
29991 | #endif | |
2113bc77 MW |
29992 | |
29993 | ; | |
29994 | return 0; | |
29995 | } | |
29996 | _ACEOF | |
29997 | rm -f conftest.$ac_objext | |
29998 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29999 | (eval $ac_compile) 2>conftest.er1 | |
30000 | ac_status=$? | |
30001 | grep -v '^ *+' conftest.er1 >conftest.err | |
30002 | rm -f conftest.er1 | |
30003 | cat conftest.err >&5 | |
30004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30005 | (exit $ac_status); } && | |
3565d135 RR |
30006 | { ac_try='test -z "$ac_c_werror_flag" |
30007 | || test ! -s conftest.err' | |
2113bc77 MW |
30008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30009 | (eval $ac_try) 2>&5 | |
30010 | ac_status=$? | |
30011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30012 | (exit $ac_status); }; } && | |
30013 | { ac_try='test -s conftest.$ac_objext' | |
30014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30015 | (eval $ac_try) 2>&5 | |
30016 | ac_status=$? | |
30017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30018 | (exit $ac_status); }; }; then | |
0ad5d837 | 30019 | wx_cv_lib_lesstif="yes" |
2113bc77 MW |
30020 | else |
30021 | echo "$as_me: failed program was:" >&5 | |
30022 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30023 | ||
0ad5d837 VZ |
30024 | wx_cv_lib_lesstif="no" |
30025 | fi | |
30026 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2113bc77 | 30027 | |
0ad5d837 VZ |
30028 | fi |
30029 | echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5 | |
30030 | echo "${ECHO_T}$wx_cv_lib_lesstif" >&6 | |
30031 | if test "$wx_cv_lib_lesstif" = "yes"; then | |
30032 | cat >>confdefs.h <<\_ACEOF | |
30033 | #define __WXLESSTIF__ 1 | |
30034 | _ACEOF | |
30035 | ||
30036 | else | |
30037 | cat >>confdefs.h <<\_ACEOF | |
2113bc77 MW |
30038 | #define __WXLESSTIF__ 0 |
30039 | _ACEOF | |
30040 | ||
0ad5d837 | 30041 | fi |
2113bc77 | 30042 | |
a848cd7e SC |
30043 | CFLAGS=$save_CFLAGS |
30044 | ||
62fa8b3a | 30045 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" |
a848cd7e SC |
30046 | TOOLKIT=MOTIF |
30047 | GUIDIST=MOTIF_DIST | |
30048 | fi | |
30049 | ||
74b84332 | 30050 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
a848cd7e SC |
30051 | if test "$wxUSE_LIBXPM" = "sys"; then |
30052 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
30053 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
30054 | ||
0ad5d837 VZ |
30055 | ac_find_libraries= |
30056 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 30057 | do |
3eca31dc | 30058 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
30059 | if test -f "$ac_dir/libXpm.$ac_extension"; then |
30060 | ac_find_libraries=$ac_dir | |
30061 | break 2 | |
30062 | fi | |
30063 | done | |
30064 | done | |
30065 | ||
30066 | if test "$ac_find_libraries" != "" ; then | |
30067 | ||
0ad5d837 | 30068 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
30069 | ac_path_to_link="" |
30070 | else | |
0ad5d837 VZ |
30071 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
30072 | result=$? | |
30073 | if test $result = 0; then | |
30074 | ac_path_to_link="" | |
30075 | else | |
30076 | ac_path_to_link=" -L$ac_find_libraries" | |
30077 | fi | |
a848cd7e SC |
30078 | fi |
30079 | ||
30080 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
0ad5d837 VZ |
30081 | echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5 |
30082 | echo "${ECHO_T}found in $ac_find_libraries" >&6 | |
a848cd7e SC |
30083 | |
30084 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
30085 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
30086 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
30087 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30088 | else | |
30089 | ||
30090 | save_CFLAGS=$CFLAGS | |
c92ad099 | 30091 | CFLAGS="$TOOLKIT_INCLUDE $CFLAGS" |
a848cd7e SC |
30092 | |
30093 | cat >conftest.$ac_ext <<_ACEOF | |
30094 | /* confdefs.h. */ | |
30095 | _ACEOF | |
30096 | cat confdefs.h >>conftest.$ac_ext | |
30097 | cat >>conftest.$ac_ext <<_ACEOF | |
30098 | /* end confdefs.h. */ | |
30099 | ||
30100 | #include <X11/xpm.h> | |
30101 | ||
30102 | int | |
30103 | main () | |
30104 | { | |
30105 | ||
30106 | int version; | |
30107 | version = XpmLibraryVersion(); | |
30108 | ||
30109 | ; | |
30110 | return 0; | |
30111 | } | |
30112 | _ACEOF | |
30113 | rm -f conftest.$ac_objext | |
30114 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30115 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30116 | ac_status=$? |
ac1cb8d3 VS |
30117 | grep -v '^ *+' conftest.er1 >conftest.err |
30118 | rm -f conftest.er1 | |
30119 | cat conftest.err >&5 | |
a848cd7e SC |
30120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30121 | (exit $ac_status); } && | |
3565d135 RR |
30122 | { ac_try='test -z "$ac_c_werror_flag" |
30123 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30125 | (eval $ac_try) 2>&5 | |
30126 | ac_status=$? | |
30127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30128 | (exit $ac_status); }; } && | |
30129 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30131 | (eval $ac_try) 2>&5 | |
30132 | ac_status=$? | |
30133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30134 | (exit $ac_status); }; }; then | |
30135 | wx_cv_x11_xpm_h=yes | |
30136 | else | |
30137 | echo "$as_me: failed program was:" >&5 | |
30138 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30139 | ||
30140 | wx_cv_x11_xpm_h=no | |
30141 | ||
30142 | fi | |
ac1cb8d3 | 30143 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30144 | |
30145 | CFLAGS=$save_CFLAGS | |
30146 | ||
30147 | ||
30148 | fi | |
30149 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
30150 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
30151 | ||
30152 | if test $wx_cv_x11_xpm_h = "yes"; then | |
30153 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" | |
30154 | cat >>confdefs.h <<\_ACEOF | |
30155 | #define wxHAVE_LIB_XPM 1 | |
30156 | _ACEOF | |
30157 | ||
30158 | else | |
30159 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
30160 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
30161 | fi | |
30162 | fi | |
30163 | ||
30164 | fi | |
30165 | ||
30166 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
30167 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
30168 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
30169 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30170 | else | |
30171 | ac_check_lib_save_LIBS=$LIBS | |
30172 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
30173 | cat >conftest.$ac_ext <<_ACEOF | |
30174 | /* confdefs.h. */ | |
30175 | _ACEOF | |
30176 | cat confdefs.h >>conftest.$ac_ext | |
30177 | cat >>conftest.$ac_ext <<_ACEOF | |
30178 | /* end confdefs.h. */ | |
30179 | ||
30180 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30181 | #ifdef __cplusplus | |
30182 | extern "C" | |
30183 | #endif | |
30184 | /* We use char because int might match the return type of a gcc2 | |
30185 | builtin and then its argument prototype would still apply. */ | |
30186 | char XShapeQueryExtension (); | |
30187 | int | |
30188 | main () | |
30189 | { | |
30190 | XShapeQueryExtension (); | |
30191 | ; | |
30192 | return 0; | |
30193 | } | |
30194 | _ACEOF | |
30195 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30196 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30197 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30198 | ac_status=$? |
ac1cb8d3 VS |
30199 | grep -v '^ *+' conftest.er1 >conftest.err |
30200 | rm -f conftest.er1 | |
30201 | cat conftest.err >&5 | |
a848cd7e SC |
30202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30203 | (exit $ac_status); } && | |
3565d135 RR |
30204 | { ac_try='test -z "$ac_c_werror_flag" |
30205 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30207 | (eval $ac_try) 2>&5 | |
30208 | ac_status=$? | |
30209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30210 | (exit $ac_status); }; } && | |
30211 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30213 | (eval $ac_try) 2>&5 | |
30214 | ac_status=$? | |
30215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30216 | (exit $ac_status); }; }; then | |
30217 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
30218 | else | |
30219 | echo "$as_me: failed program was:" >&5 | |
30220 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30221 | ||
30222 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
30223 | fi | |
ac1cb8d3 VS |
30224 | rm -f conftest.err conftest.$ac_objext \ |
30225 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30226 | LIBS=$ac_check_lib_save_LIBS |
30227 | fi | |
30228 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
30229 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
30230 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
30231 | ||
30232 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
30233 | wxHAVE_XEXT_LIB=1 | |
30234 | ||
30235 | fi | |
30236 | ||
30237 | ||
30238 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
30239 | save_CFLAGS="$CFLAGS" | |
c92ad099 | 30240 | CFLAGS="$TOOLKIT_INCLUDE $CFLAGS" |
a848cd7e SC |
30241 | |
30242 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
30243 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
30244 | cat >conftest.$ac_ext <<_ACEOF | |
30245 | /* confdefs.h. */ | |
30246 | _ACEOF | |
30247 | cat confdefs.h >>conftest.$ac_ext | |
30248 | cat >>conftest.$ac_ext <<_ACEOF | |
30249 | /* end confdefs.h. */ | |
30250 | ||
30251 | #include <X11/Xlib.h> | |
30252 | #include <X11/extensions/shape.h> | |
30253 | ||
30254 | int | |
30255 | main () | |
30256 | { | |
30257 | ||
30258 | int dummy1, dummy2; | |
30259 | XShapeQueryExtension((Display*)NULL, | |
30260 | (int*)NULL, (int*)NULL); | |
30261 | ||
30262 | ; | |
30263 | return 0; | |
30264 | } | |
30265 | _ACEOF | |
30266 | rm -f conftest.$ac_objext | |
30267 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30268 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30269 | ac_status=$? |
ac1cb8d3 VS |
30270 | grep -v '^ *+' conftest.er1 >conftest.err |
30271 | rm -f conftest.er1 | |
30272 | cat conftest.err >&5 | |
a848cd7e SC |
30273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30274 | (exit $ac_status); } && | |
3565d135 RR |
30275 | { ac_try='test -z "$ac_c_werror_flag" |
30276 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30278 | (eval $ac_try) 2>&5 | |
30279 | ac_status=$? | |
30280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30281 | (exit $ac_status); }; } && | |
30282 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30284 | (eval $ac_try) 2>&5 | |
30285 | ac_status=$? | |
30286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30287 | (exit $ac_status); }; }; then | |
30288 | ||
30289 | cat >>confdefs.h <<\_ACEOF | |
30290 | #define HAVE_XSHAPE 1 | |
30291 | _ACEOF | |
30292 | ||
30293 | echo "$as_me:$LINENO: result: found" >&5 | |
30294 | echo "${ECHO_T}found" >&6 | |
30295 | ||
30296 | else | |
30297 | echo "$as_me: failed program was:" >&5 | |
30298 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30299 | ||
30300 | ||
30301 | echo "$as_me:$LINENO: result: not found" >&5 | |
30302 | echo "${ECHO_T}not found" >&6 | |
30303 | ||
30304 | fi | |
ac1cb8d3 | 30305 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30306 | CFLAGS="$save_CFLAGS" |
30307 | ||
30308 | fi | |
30309 | fi | |
30310 | ||
30311 | if test "$wxUSE_MAC" = 1; then | |
30312 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 | |
30313 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
30314 | if test "$GCC" = yes; then | |
30315 | echo "$as_me:$LINENO: result: gcc" >&5 | |
30316 | echo "${ECHO_T}gcc" >&6 | |
30317 | CPPFLAGS_PASCAL="-fpascal-strings" | |
30318 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
30319 | echo "$as_me:$LINENO: result: xlc" >&5 | |
30320 | echo "${ECHO_T}xlc" >&6 | |
30321 | CPPFLAGS_PASCAL="-qmacpstr" | |
30322 | else | |
30323 | echo "$as_me:$LINENO: result: none" >&5 | |
30324 | echo "${ECHO_T}none" >&6 | |
30325 | fi | |
30326 | ||
1e9e8aba | 30327 | if test "x$wxUSE_UNIX" = "xyes"; then |
c92ad099 | 30328 | CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS" |
1e9e8aba | 30329 | else |
c92ad099 | 30330 | CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS" |
1e9e8aba | 30331 | fi |
a848cd7e | 30332 | |
a848cd7e SC |
30333 | TOOLKIT=MAC |
30334 | GUIDIST=MACX_DIST | |
dd21ced8 | 30335 | WXBASEPORT="_carbon" |
a848cd7e SC |
30336 | fi |
30337 | ||
30338 | if test "$wxUSE_COCOA" = 1; then | |
a848cd7e SC |
30339 | TOOLKIT=COCOA |
30340 | GUIDIST=COCOA_DIST | |
30341 | fi | |
30342 | ||
30343 | if test "$wxUSE_PM" = 1; then | |
30344 | TOOLKIT=PM | |
de59c161 RD |
30345 | GUIDIST=PM_DIST |
30346 | echo "$as_me:$LINENO: checking for type SPBCDATA" >&5 | |
30347 | echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6 | |
30348 | if test "${wx_cv_spbcdata+set}" = set; then | |
30349 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30350 | else | |
30351 | ||
30352 | cat >conftest.$ac_ext <<_ACEOF | |
de59c161 RD |
30353 | /* confdefs.h. */ |
30354 | _ACEOF | |
30355 | cat confdefs.h >>conftest.$ac_ext | |
30356 | cat >>conftest.$ac_ext <<_ACEOF | |
30357 | /* end confdefs.h. */ | |
30358 | ||
30359 | #define INCL_PM | |
30360 | #include <os2.h> | |
30361 | ||
30362 | int | |
30363 | main () | |
30364 | { | |
30365 | ||
30366 | SPBCDATA test; | |
30367 | ||
30368 | ; | |
30369 | return 0; | |
30370 | } | |
30371 | _ACEOF | |
30372 | rm -f conftest.$ac_objext | |
30373 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30374 | (eval $ac_compile) 2>conftest.er1 |
de59c161 | 30375 | ac_status=$? |
ac1cb8d3 VS |
30376 | grep -v '^ *+' conftest.er1 >conftest.err |
30377 | rm -f conftest.er1 | |
30378 | cat conftest.err >&5 | |
de59c161 RD |
30379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30380 | (exit $ac_status); } && | |
3565d135 RR |
30381 | { ac_try='test -z "$ac_c_werror_flag" |
30382 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30384 | (eval $ac_try) 2>&5 | |
30385 | ac_status=$? | |
30386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30387 | (exit $ac_status); }; } && | |
30388 | { ac_try='test -s conftest.$ac_objext' | |
de59c161 RD |
30389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30390 | (eval $ac_try) 2>&5 | |
30391 | ac_status=$? | |
30392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30393 | (exit $ac_status); }; }; then | |
30394 | wx_cv_spbcdata=yes | |
30395 | else | |
30396 | echo "$as_me: failed program was:" >&5 | |
30397 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30398 | ||
30399 | wx_cv_spbcdata=no | |
30400 | ||
30401 | fi | |
ac1cb8d3 | 30402 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
de59c161 RD |
30403 | |
30404 | ||
30405 | fi | |
30406 | echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5 | |
30407 | echo "${ECHO_T}$wx_cv_spbcdata" >&6 | |
30408 | ||
30409 | if test $wx_cv_spbcdata = "yes"; then | |
30410 | cat >>confdefs.h <<\_ACEOF | |
30411 | #define HAVE_SPBCDATA 1 | |
30412 | _ACEOF | |
30413 | ||
30414 | fi | |
a848cd7e SC |
30415 | fi |
30416 | ||
30417 | if test "$TOOLKIT" = "PM" ; then | |
30418 | TOOLKIT_DIR="os2" | |
30419 | else | |
30420 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
30421 | fi | |
30422 | ||
a848cd7e | 30423 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
a848cd7e SC |
30424 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" |
30425 | WIDGET_SET=univ | |
a848cd7e SC |
30426 | fi |
30427 | ||
30428 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
30429 | DISTDIR="wx\$(TOOLKIT)" | |
30430 | else | |
30431 | USE_GUI=0 | |
30432 | ||
30433 | TOOLKIT_DIR="base" | |
30434 | ||
30435 | if test "$USE_WIN32" = 1 ; then | |
a848cd7e | 30436 | TOOLKIT="MSW" |
a848cd7e SC |
30437 | fi |
30438 | ||
a848cd7e SC |
30439 | GUIDIST="BASE_DIST" |
30440 | DISTDIR="wxBase" | |
30441 | fi | |
30442 | ||
30443 | ||
d12aef51 VZ |
30444 | if test "$wxUSE_GUI" = "yes"; then |
30445 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then | |
30446 | ||
30447 | for ac_header in X11/Xlib.h | |
30448 | do | |
30449 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
30450 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30451 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
30452 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
30453 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30454 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30455 | fi | |
30456 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
30457 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
30458 | else | |
30459 | # Is the header compilable? | |
30460 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
30461 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
30462 | cat >conftest.$ac_ext <<_ACEOF | |
30463 | /* confdefs.h. */ | |
30464 | _ACEOF | |
30465 | cat confdefs.h >>conftest.$ac_ext | |
30466 | cat >>conftest.$ac_ext <<_ACEOF | |
30467 | /* end confdefs.h. */ | |
30468 | $ac_includes_default | |
30469 | #include <$ac_header> | |
30470 | _ACEOF | |
30471 | rm -f conftest.$ac_objext | |
30472 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30473 | (eval $ac_compile) 2>conftest.er1 | |
30474 | ac_status=$? | |
30475 | grep -v '^ *+' conftest.er1 >conftest.err | |
30476 | rm -f conftest.er1 | |
30477 | cat conftest.err >&5 | |
30478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30479 | (exit $ac_status); } && | |
3565d135 RR |
30480 | { ac_try='test -z "$ac_c_werror_flag" |
30481 | || test ! -s conftest.err' | |
d12aef51 VZ |
30482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30483 | (eval $ac_try) 2>&5 | |
30484 | ac_status=$? | |
30485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30486 | (exit $ac_status); }; } && | |
30487 | { ac_try='test -s conftest.$ac_objext' | |
30488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30489 | (eval $ac_try) 2>&5 | |
30490 | ac_status=$? | |
30491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30492 | (exit $ac_status); }; }; then | |
30493 | ac_header_compiler=yes | |
30494 | else | |
30495 | echo "$as_me: failed program was:" >&5 | |
30496 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30497 | ||
30498 | ac_header_compiler=no | |
30499 | fi | |
30500 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30501 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
30502 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
30503 | ||
30504 | # Is the header present? | |
30505 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
30506 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
30507 | cat >conftest.$ac_ext <<_ACEOF | |
30508 | /* confdefs.h. */ | |
30509 | _ACEOF | |
30510 | cat confdefs.h >>conftest.$ac_ext | |
30511 | cat >>conftest.$ac_ext <<_ACEOF | |
30512 | /* end confdefs.h. */ | |
30513 | #include <$ac_header> | |
30514 | _ACEOF | |
30515 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
30516 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
30517 | ac_status=$? | |
30518 | grep -v '^ *+' conftest.er1 >conftest.err | |
30519 | rm -f conftest.er1 | |
30520 | cat conftest.err >&5 | |
30521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30522 | (exit $ac_status); } >/dev/null; then | |
30523 | if test -s conftest.err; then | |
30524 | ac_cpp_err=$ac_c_preproc_warn_flag | |
30525 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
30526 | else | |
30527 | ac_cpp_err= | |
30528 | fi | |
30529 | else | |
30530 | ac_cpp_err=yes | |
30531 | fi | |
30532 | if test -z "$ac_cpp_err"; then | |
30533 | ac_header_preproc=yes | |
30534 | else | |
30535 | echo "$as_me: failed program was:" >&5 | |
30536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30537 | ||
30538 | ac_header_preproc=no | |
30539 | fi | |
30540 | rm -f conftest.err conftest.$ac_ext | |
30541 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
30542 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
30543 | ||
30544 | # So? What about this header? | |
30545 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
30546 | yes:no: ) | |
30547 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
30548 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
30549 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
30550 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
30551 | ac_header_preproc=yes | |
30552 | ;; | |
30553 | no:yes:* ) | |
30554 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
30555 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
30556 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
30557 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
30558 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
30559 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
30560 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
30561 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
30562 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
30563 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
30564 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
30565 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
30566 | ( | |
30567 | cat <<\_ASBOX | |
30568 | ## ----------------------------------------- ## | |
30569 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
30570 | ## ----------------------------------------- ## | |
30571 | _ASBOX | |
30572 | ) | | |
30573 | sed "s/^/$as_me: WARNING: /" >&2 | |
30574 | ;; | |
30575 | esac | |
30576 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
30577 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
30578 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30579 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30580 | else | |
30581 | eval "$as_ac_Header=\$ac_header_preproc" | |
30582 | fi | |
30583 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
30584 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
30585 | ||
30586 | fi | |
30587 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
30588 | cat >>confdefs.h <<_ACEOF | |
30589 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
30590 | _ACEOF | |
30591 | ||
30592 | fi | |
30593 | ||
30594 | done | |
30595 | ||
30596 | ||
30597 | for ac_header in X11/XKBlib.h | |
30598 | do | |
30599 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
30600 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
30601 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
30602 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30603 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30604 | else | |
30605 | cat >conftest.$ac_ext <<_ACEOF | |
30606 | /* confdefs.h. */ | |
30607 | _ACEOF | |
30608 | cat confdefs.h >>conftest.$ac_ext | |
30609 | cat >>conftest.$ac_ext <<_ACEOF | |
30610 | /* end confdefs.h. */ | |
30611 | ||
30612 | #if HAVE_X11_XLIB_H | |
30613 | #include <X11/Xlib.h> | |
30614 | #endif | |
30615 | ||
30616 | ||
30617 | #include <$ac_header> | |
30618 | _ACEOF | |
30619 | rm -f conftest.$ac_objext | |
30620 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30621 | (eval $ac_compile) 2>conftest.er1 | |
30622 | ac_status=$? | |
30623 | grep -v '^ *+' conftest.er1 >conftest.err | |
30624 | rm -f conftest.er1 | |
30625 | cat conftest.err >&5 | |
30626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30627 | (exit $ac_status); } && | |
3565d135 RR |
30628 | { ac_try='test -z "$ac_c_werror_flag" |
30629 | || test ! -s conftest.err' | |
d12aef51 VZ |
30630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30631 | (eval $ac_try) 2>&5 | |
30632 | ac_status=$? | |
30633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30634 | (exit $ac_status); }; } && | |
30635 | { ac_try='test -s conftest.$ac_objext' | |
30636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30637 | (eval $ac_try) 2>&5 | |
30638 | ac_status=$? | |
30639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30640 | (exit $ac_status); }; }; then | |
30641 | eval "$as_ac_Header=yes" | |
30642 | else | |
30643 | echo "$as_me: failed program was:" >&5 | |
30644 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30645 | ||
30646 | eval "$as_ac_Header=no" | |
30647 | fi | |
30648 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30649 | fi | |
30650 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
30651 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
30652 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
30653 | cat >>confdefs.h <<_ACEOF | |
30654 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
30655 | _ACEOF | |
30656 | ||
30657 | fi | |
30658 | ||
30659 | done | |
30660 | ||
30661 | fi | |
30662 | fi | |
30663 | ||
a848cd7e SC |
30664 | |
30665 | ||
30666 | IODBC_C_SRC="" | |
30667 | ||
30668 | ||
30669 | if test "$TOOLKIT" != "MSW" ; then | |
30670 | ||
30671 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then | |
30672 | ||
30673 | if test "${ac_cv_header_sql_h+set}" = set; then | |
30674 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
30675 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
30676 | if test "${ac_cv_header_sql_h+set}" = set; then | |
30677 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30678 | fi | |
30679 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
30680 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
30681 | else | |
30682 | # Is the header compilable? | |
30683 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
30684 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
30685 | cat >conftest.$ac_ext <<_ACEOF | |
30686 | /* confdefs.h. */ | |
30687 | _ACEOF | |
30688 | cat confdefs.h >>conftest.$ac_ext | |
30689 | cat >>conftest.$ac_ext <<_ACEOF | |
30690 | /* end confdefs.h. */ | |
30691 | $ac_includes_default | |
30692 | #include <sql.h> | |
30693 | _ACEOF | |
30694 | rm -f conftest.$ac_objext | |
30695 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 30696 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 30697 | ac_status=$? |
ac1cb8d3 VS |
30698 | grep -v '^ *+' conftest.er1 >conftest.err |
30699 | rm -f conftest.er1 | |
30700 | cat conftest.err >&5 | |
a848cd7e SC |
30701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30702 | (exit $ac_status); } && | |
3565d135 RR |
30703 | { ac_try='test -z "$ac_c_werror_flag" |
30704 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30706 | (eval $ac_try) 2>&5 | |
30707 | ac_status=$? | |
30708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30709 | (exit $ac_status); }; } && | |
30710 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
30711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30712 | (eval $ac_try) 2>&5 | |
30713 | ac_status=$? | |
30714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30715 | (exit $ac_status); }; }; then | |
30716 | ac_header_compiler=yes | |
30717 | else | |
30718 | echo "$as_me: failed program was:" >&5 | |
30719 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30720 | ||
30721 | ac_header_compiler=no | |
30722 | fi | |
ac1cb8d3 | 30723 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30724 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
30725 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
30726 | ||
30727 | # Is the header present? | |
30728 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
30729 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
30730 | cat >conftest.$ac_ext <<_ACEOF | |
30731 | /* confdefs.h. */ | |
30732 | _ACEOF | |
30733 | cat confdefs.h >>conftest.$ac_ext | |
30734 | cat >>conftest.$ac_ext <<_ACEOF | |
30735 | /* end confdefs.h. */ | |
30736 | #include <sql.h> | |
30737 | _ACEOF | |
30738 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
30739 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
30740 | ac_status=$? | |
30741 | grep -v '^ *+' conftest.er1 >conftest.err | |
30742 | rm -f conftest.er1 | |
30743 | cat conftest.err >&5 | |
30744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30745 | (exit $ac_status); } >/dev/null; then | |
30746 | if test -s conftest.err; then | |
30747 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 30748 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
30749 | else |
30750 | ac_cpp_err= | |
30751 | fi | |
30752 | else | |
30753 | ac_cpp_err=yes | |
30754 | fi | |
30755 | if test -z "$ac_cpp_err"; then | |
30756 | ac_header_preproc=yes | |
30757 | else | |
30758 | echo "$as_me: failed program was:" >&5 | |
30759 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30760 | ||
30761 | ac_header_preproc=no | |
30762 | fi | |
30763 | rm -f conftest.err conftest.$ac_ext | |
30764 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
30765 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
30766 | ||
30767 | # So? What about this header? | |
ac1cb8d3 VS |
30768 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
30769 | yes:no: ) | |
a848cd7e SC |
30770 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
30771 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
30772 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5 |
30773 | echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;} | |
30774 | ac_header_preproc=yes | |
a848cd7e | 30775 | ;; |
ac1cb8d3 | 30776 | no:yes:* ) |
a848cd7e SC |
30777 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
30778 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
30779 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
30780 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
30781 | { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5 | |
30782 | echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;} | |
30783 | { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5 | |
30784 | echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
30785 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
30786 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
30787 | { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5 |
30788 | echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
30789 | ( |
30790 | cat <<\_ASBOX | |
ac1cb8d3 VS |
30791 | ## ----------------------------------------- ## |
30792 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
30793 | ## ----------------------------------------- ## | |
a848cd7e SC |
30794 | _ASBOX |
30795 | ) | | |
30796 | sed "s/^/$as_me: WARNING: /" >&2 | |
30797 | ;; | |
30798 | esac | |
30799 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
30800 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
30801 | if test "${ac_cv_header_sql_h+set}" = set; then | |
30802 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30803 | else | |
30804 | ac_cv_header_sql_h=$ac_header_preproc | |
30805 | fi | |
30806 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
30807 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
30808 | ||
30809 | fi | |
30810 | if test $ac_cv_header_sql_h = yes; then | |
30811 | found_sql_h=1 | |
30812 | fi | |
30813 | ||
30814 | ||
30815 | if test "x$found_sql_h" = "x1" ; then | |
30816 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 | |
30817 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
30818 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
30819 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30820 | else | |
30821 | ac_check_lib_save_LIBS=$LIBS | |
30822 | LIBS="-liodbc $LIBS" | |
30823 | cat >conftest.$ac_ext <<_ACEOF | |
30824 | /* confdefs.h. */ | |
30825 | _ACEOF | |
30826 | cat confdefs.h >>conftest.$ac_ext | |
30827 | cat >>conftest.$ac_ext <<_ACEOF | |
30828 | /* end confdefs.h. */ | |
30829 | ||
30830 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30831 | #ifdef __cplusplus | |
30832 | extern "C" | |
30833 | #endif | |
30834 | /* We use char because int might match the return type of a gcc2 | |
30835 | builtin and then its argument prototype would still apply. */ | |
30836 | char SQLAllocEnv (); | |
30837 | int | |
30838 | main () | |
30839 | { | |
30840 | SQLAllocEnv (); | |
30841 | ; | |
30842 | return 0; | |
30843 | } | |
30844 | _ACEOF | |
30845 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30846 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30847 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30848 | ac_status=$? |
ac1cb8d3 VS |
30849 | grep -v '^ *+' conftest.er1 >conftest.err |
30850 | rm -f conftest.er1 | |
30851 | cat conftest.err >&5 | |
a848cd7e SC |
30852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30853 | (exit $ac_status); } && | |
3565d135 RR |
30854 | { ac_try='test -z "$ac_c_werror_flag" |
30855 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30857 | (eval $ac_try) 2>&5 | |
30858 | ac_status=$? | |
30859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30860 | (exit $ac_status); }; } && | |
30861 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30863 | (eval $ac_try) 2>&5 | |
30864 | ac_status=$? | |
30865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30866 | (exit $ac_status); }; }; then | |
30867 | ac_cv_lib_iodbc_SQLAllocEnv=yes | |
30868 | else | |
30869 | echo "$as_me: failed program was:" >&5 | |
30870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30871 | ||
30872 | ac_cv_lib_iodbc_SQLAllocEnv=no | |
30873 | fi | |
ac1cb8d3 VS |
30874 | rm -f conftest.err conftest.$ac_objext \ |
30875 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30876 | LIBS=$ac_check_lib_save_LIBS |
30877 | fi | |
30878 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 | |
30879 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
30880 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
30881 | ODBC_LINK=" -liodbc" | |
30882 | else | |
30883 | ||
30884 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 | |
30885 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
30886 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
30887 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30888 | else | |
30889 | ac_check_lib_save_LIBS=$LIBS | |
30890 | LIBS="-lunixodbc $LIBS" | |
30891 | cat >conftest.$ac_ext <<_ACEOF | |
30892 | /* confdefs.h. */ | |
30893 | _ACEOF | |
30894 | cat confdefs.h >>conftest.$ac_ext | |
30895 | cat >>conftest.$ac_ext <<_ACEOF | |
30896 | /* end confdefs.h. */ | |
30897 | ||
30898 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30899 | #ifdef __cplusplus | |
30900 | extern "C" | |
30901 | #endif | |
30902 | /* We use char because int might match the return type of a gcc2 | |
30903 | builtin and then its argument prototype would still apply. */ | |
30904 | char SQLAllocEnv (); | |
30905 | int | |
30906 | main () | |
30907 | { | |
30908 | SQLAllocEnv (); | |
30909 | ; | |
30910 | return 0; | |
30911 | } | |
30912 | _ACEOF | |
30913 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30914 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30915 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30916 | ac_status=$? |
ac1cb8d3 VS |
30917 | grep -v '^ *+' conftest.er1 >conftest.err |
30918 | rm -f conftest.er1 | |
30919 | cat conftest.err >&5 | |
a848cd7e SC |
30920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30921 | (exit $ac_status); } && | |
3565d135 RR |
30922 | { ac_try='test -z "$ac_c_werror_flag" |
30923 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30925 | (eval $ac_try) 2>&5 | |
30926 | ac_status=$? | |
30927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30928 | (exit $ac_status); }; } && | |
30929 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30931 | (eval $ac_try) 2>&5 | |
30932 | ac_status=$? | |
30933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30934 | (exit $ac_status); }; }; then | |
30935 | ac_cv_lib_unixodbc_SQLAllocEnv=yes | |
30936 | else | |
30937 | echo "$as_me: failed program was:" >&5 | |
30938 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30939 | ||
30940 | ac_cv_lib_unixodbc_SQLAllocEnv=no | |
30941 | fi | |
ac1cb8d3 VS |
30942 | rm -f conftest.err conftest.$ac_objext \ |
30943 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
30944 | LIBS=$ac_check_lib_save_LIBS |
30945 | fi | |
30946 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 | |
30947 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
30948 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
30949 | ODBC_LINK=" -lunixodbc" | |
30950 | else | |
30951 | ||
30952 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 | |
30953 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
30954 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
30955 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30956 | else | |
30957 | ac_check_lib_save_LIBS=$LIBS | |
30958 | LIBS="-lodbc $LIBS" | |
30959 | cat >conftest.$ac_ext <<_ACEOF | |
30960 | /* confdefs.h. */ | |
30961 | _ACEOF | |
30962 | cat confdefs.h >>conftest.$ac_ext | |
30963 | cat >>conftest.$ac_ext <<_ACEOF | |
30964 | /* end confdefs.h. */ | |
30965 | ||
30966 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30967 | #ifdef __cplusplus | |
30968 | extern "C" | |
30969 | #endif | |
30970 | /* We use char because int might match the return type of a gcc2 | |
30971 | builtin and then its argument prototype would still apply. */ | |
30972 | char SQLAllocEnv (); | |
30973 | int | |
30974 | main () | |
30975 | { | |
30976 | SQLAllocEnv (); | |
30977 | ; | |
30978 | return 0; | |
30979 | } | |
30980 | _ACEOF | |
30981 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30982 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 30983 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 30984 | ac_status=$? |
ac1cb8d3 VS |
30985 | grep -v '^ *+' conftest.er1 >conftest.err |
30986 | rm -f conftest.er1 | |
30987 | cat conftest.err >&5 | |
a848cd7e SC |
30988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30989 | (exit $ac_status); } && | |
3565d135 RR |
30990 | { ac_try='test -z "$ac_c_werror_flag" |
30991 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
30992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30993 | (eval $ac_try) 2>&5 | |
30994 | ac_status=$? | |
30995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30996 | (exit $ac_status); }; } && | |
30997 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
30998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30999 | (eval $ac_try) 2>&5 | |
31000 | ac_status=$? | |
31001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31002 | (exit $ac_status); }; }; then | |
31003 | ac_cv_lib_odbc_SQLAllocEnv=yes | |
31004 | else | |
31005 | echo "$as_me: failed program was:" >&5 | |
31006 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31007 | ||
31008 | ac_cv_lib_odbc_SQLAllocEnv=no | |
31009 | fi | |
ac1cb8d3 VS |
31010 | rm -f conftest.err conftest.$ac_objext \ |
31011 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31012 | LIBS=$ac_check_lib_save_LIBS |
31013 | fi | |
31014 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 | |
31015 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
31016 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
31017 | ODBC_LINK=" -lodbc" | |
31018 | fi | |
31019 | ||
31020 | ||
31021 | fi | |
31022 | ||
31023 | ||
31024 | fi | |
31025 | ||
31026 | fi | |
31027 | if test "x$ODBC_LINK" = "x" ; then | |
31028 | if test "$wxUSE_ODBC" = "sys" ; then | |
31029 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
31030 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
31031 | { (exit 1); exit 1; }; } | |
31032 | else | |
31033 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
31034 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
31035 | wxUSE_ODBC=builtin | |
31036 | fi | |
31037 | else | |
31038 | wxUSE_ODBC=sys | |
31039 | fi | |
31040 | fi | |
a848cd7e | 31041 | |
2da0c077 RD |
31042 | if test "$wxUSE_ODBC" = "builtin" ; then |
31043 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
31044 | #define wxUSE_BUILTIN_IODBC 1 |
31045 | _ACEOF | |
31046 | ||
a848cd7e SC |
31047 | fi |
31048 | fi | |
31049 | ||
2da0c077 RD |
31050 | if test "$wxUSE_ODBC" != "no" ; then |
31051 | cat >>confdefs.h <<\_ACEOF | |
31052 | #define wxUSE_ODBC 1 | |
31053 | _ACEOF | |
31054 | ||
31055 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
31056 | ||
5ff751d6 | 31057 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_" |
2da0c077 | 31058 | fi |
a848cd7e | 31059 | |
01cb68df | 31060 | |
a848cd7e | 31061 | if test "$wxUSE_DISPLAY" = "yes"; then |
2a5d7a98 | 31062 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then |
a848cd7e SC |
31063 | echo "$as_me:$LINENO: checking for Xinerama" >&5 |
31064 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
31065 | ||
0ad5d837 VZ |
31066 | ac_find_libraries= |
31067 | for ac_dir in $SEARCH_LIB; | |
31068 | do | |
31069 | for ac_extension in a so sl dylib dll.a; do | |
31070 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
31071 | ac_find_libraries=$ac_dir | |
31072 | break 2 | |
31073 | fi | |
31074 | done | |
31075 | done | |
31076 | ||
a848cd7e SC |
31077 | if test "$ac_find_libraries" != "" ; then |
31078 | ||
0ad5d837 | 31079 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
31080 | ac_path_to_link="" |
31081 | else | |
0ad5d837 VZ |
31082 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
31083 | result=$? | |
31084 | if test $result = 0; then | |
31085 | ac_path_to_link="" | |
31086 | else | |
31087 | ac_path_to_link=" -L$ac_find_libraries" | |
31088 | fi | |
a848cd7e SC |
31089 | fi |
31090 | ||
31091 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
31092 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
31093 | fi | |
31094 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
31095 | echo "$as_me:$LINENO: result: yes" >&5 | |
31096 | echo "${ECHO_T}yes" >&6 | |
31097 | ||
31098 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
31099 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
31100 | ||
0ad5d837 VZ |
31101 | ac_find_libraries= |
31102 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 31103 | do |
3eca31dc | 31104 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
31105 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then |
31106 | ac_find_libraries=$ac_dir | |
31107 | break 2 | |
31108 | fi | |
31109 | done | |
31110 | done | |
31111 | ||
31112 | if test "$ac_find_libraries" != "" ; then | |
31113 | echo "$as_me:$LINENO: result: yes" >&5 | |
31114 | echo "${ECHO_T}yes" >&6 | |
31115 | ||
31116 | for ac_header in X11/extensions/xf86vmode.h | |
31117 | do | |
31118 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
31119 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31120 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31121 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31123 | else | |
31124 | cat >conftest.$ac_ext <<_ACEOF | |
31125 | /* confdefs.h. */ | |
31126 | _ACEOF | |
31127 | cat confdefs.h >>conftest.$ac_ext | |
31128 | cat >>conftest.$ac_ext <<_ACEOF | |
31129 | /* end confdefs.h. */ | |
31130 | ||
31131 | #if HAVE_X11_XLIB_H | |
31132 | #include <X11/Xlib.h> | |
31133 | #endif | |
31134 | ||
31135 | ||
31136 | #include <$ac_header> | |
31137 | _ACEOF | |
31138 | rm -f conftest.$ac_objext | |
31139 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31140 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31141 | ac_status=$? |
ac1cb8d3 VS |
31142 | grep -v '^ *+' conftest.er1 >conftest.err |
31143 | rm -f conftest.er1 | |
31144 | cat conftest.err >&5 | |
a848cd7e SC |
31145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31146 | (exit $ac_status); } && | |
3565d135 RR |
31147 | { ac_try='test -z "$ac_c_werror_flag" |
31148 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31150 | (eval $ac_try) 2>&5 | |
31151 | ac_status=$? | |
31152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31153 | (exit $ac_status); }; } && | |
31154 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31156 | (eval $ac_try) 2>&5 | |
31157 | ac_status=$? | |
31158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31159 | (exit $ac_status); }; }; then | |
31160 | eval "$as_ac_Header=yes" | |
31161 | else | |
31162 | echo "$as_me: failed program was:" >&5 | |
31163 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31164 | ||
31165 | eval "$as_ac_Header=no" | |
31166 | fi | |
ac1cb8d3 | 31167 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31168 | fi |
31169 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31170 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31171 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
31172 | cat >>confdefs.h <<_ACEOF | |
31173 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31174 | _ACEOF | |
31175 | ||
31176 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
31177 | ||
31178 | fi | |
31179 | ||
31180 | done | |
31181 | ||
31182 | else | |
31183 | echo "$as_me:$LINENO: result: no" >&5 | |
31184 | echo "${ECHO_T}no" >&6 | |
31185 | fi | |
31186 | ||
31187 | else | |
31188 | echo "$as_me:$LINENO: result: no" >&5 | |
31189 | echo "${ECHO_T}no" >&6 | |
dcc1b6ad VS |
31190 | { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5 |
31191 | echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;} | |
a848cd7e SC |
31192 | wxUSE_DISPLAY="no" |
31193 | fi | |
01cb68df RG |
31194 | elif test "$wxUSE_MSW" = 1; then |
31195 | ||
31196 | ||
31197 | for ac_header in multimon.h ddraw.h | |
31198 | do | |
31199 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5294a27e | 31200 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
01cb68df RG |
31201 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
31202 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31203 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
01cb68df | 31204 | else |
5294a27e | 31205 | cat >conftest.$ac_ext <<_ACEOF |
01cb68df RG |
31206 | /* confdefs.h. */ |
31207 | _ACEOF | |
31208 | cat confdefs.h >>conftest.$ac_ext | |
31209 | cat >>conftest.$ac_ext <<_ACEOF | |
31210 | /* end confdefs.h. */ | |
5294a27e VZ |
31211 | #include <windows.h> |
31212 | ||
01cb68df RG |
31213 | #include <$ac_header> |
31214 | _ACEOF | |
31215 | rm -f conftest.$ac_objext | |
31216 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31217 | (eval $ac_compile) 2>conftest.er1 |
01cb68df | 31218 | ac_status=$? |
ac1cb8d3 VS |
31219 | grep -v '^ *+' conftest.er1 >conftest.err |
31220 | rm -f conftest.er1 | |
31221 | cat conftest.err >&5 | |
01cb68df RG |
31222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31223 | (exit $ac_status); } && | |
3565d135 RR |
31224 | { ac_try='test -z "$ac_c_werror_flag" |
31225 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31227 | (eval $ac_try) 2>&5 | |
31228 | ac_status=$? | |
31229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31230 | (exit $ac_status); }; } && | |
31231 | { ac_try='test -s conftest.$ac_objext' | |
01cb68df RG |
31232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31233 | (eval $ac_try) 2>&5 | |
31234 | ac_status=$? | |
31235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31236 | (exit $ac_status); }; }; then | |
5294a27e | 31237 | eval "$as_ac_Header=yes" |
01cb68df RG |
31238 | else |
31239 | echo "$as_me: failed program was:" >&5 | |
31240 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31241 | ||
5294a27e | 31242 | eval "$as_ac_Header=no" |
01cb68df | 31243 | fi |
ac1cb8d3 | 31244 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
01cb68df RG |
31245 | fi |
31246 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31247 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
01cb68df RG |
31248 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
31249 | cat >>confdefs.h <<_ACEOF | |
31250 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31251 | _ACEOF | |
31252 | ||
31253 | else | |
31254 | ||
5294a27e VZ |
31255 | wxUSE_DISPLAY="no" |
31256 | { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5 | |
dcc1b6ad | 31257 | echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;} |
01cb68df RG |
31258 | |
31259 | fi | |
31260 | ||
31261 | done | |
31262 | ||
a848cd7e SC |
31263 | fi |
31264 | fi | |
31265 | ||
31266 | ||
31267 | USE_OPENGL=0 | |
31268 | if test "$wxUSE_OPENGL" = "yes"; then | |
31269 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
31270 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
31271 | elif test "$wxUSE_MSW" = 1; then | |
31272 | OPENGL_LIBS="-lopengl32 -lglu32" | |
31273 | else | |
31274 | ||
31275 | ||
31276 | ac_find_includes= | |
31277 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
31278 | do | |
31279 | if test -f "$ac_dir/GL/gl.h"; then | |
31280 | ac_find_includes=$ac_dir | |
31281 | break | |
31282 | fi | |
31283 | done | |
31284 | ||
31285 | if test "$ac_find_includes" != "" ; then | |
31286 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
31287 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
31288 | ||
31289 | if test "x$ac_find_includes" = "x/usr/include"; then | |
31290 | ac_path_to_include="" | |
31291 | else | |
31292 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
31293 | result=$? | |
31294 | if test $result = 0; then | |
31295 | ac_path_to_include="" | |
31296 | else | |
31297 | ac_path_to_include=" -I$ac_find_includes" | |
31298 | fi | |
31299 | fi | |
31300 | ||
c92ad099 | 31301 | CPPFLAGS="$ac_path_to_include $CPPFLAGS" |
a848cd7e SC |
31302 | fi |
31303 | ||
31304 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
31305 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
31306 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
31307 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
31308 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31309 | fi | |
31310 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
31311 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
31312 | else | |
31313 | # Is the header compilable? | |
31314 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
31315 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
31316 | cat >conftest.$ac_ext <<_ACEOF | |
31317 | /* confdefs.h. */ | |
31318 | _ACEOF | |
31319 | cat confdefs.h >>conftest.$ac_ext | |
31320 | cat >>conftest.$ac_ext <<_ACEOF | |
31321 | /* end confdefs.h. */ | |
31322 | $ac_includes_default | |
31323 | #include <GL/gl.h> | |
31324 | _ACEOF | |
31325 | rm -f conftest.$ac_objext | |
31326 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 31327 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 31328 | ac_status=$? |
ac1cb8d3 VS |
31329 | grep -v '^ *+' conftest.er1 >conftest.err |
31330 | rm -f conftest.er1 | |
31331 | cat conftest.err >&5 | |
a848cd7e SC |
31332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31333 | (exit $ac_status); } && | |
3565d135 RR |
31334 | { ac_try='test -z "$ac_c_werror_flag" |
31335 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31337 | (eval $ac_try) 2>&5 | |
31338 | ac_status=$? | |
31339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31340 | (exit $ac_status); }; } && | |
31341 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
31342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31343 | (eval $ac_try) 2>&5 | |
31344 | ac_status=$? | |
31345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31346 | (exit $ac_status); }; }; then | |
31347 | ac_header_compiler=yes | |
31348 | else | |
31349 | echo "$as_me: failed program was:" >&5 | |
31350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31351 | ||
31352 | ac_header_compiler=no | |
31353 | fi | |
ac1cb8d3 | 31354 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31355 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
31356 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31357 | ||
31358 | # Is the header present? | |
31359 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
31360 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
31361 | cat >conftest.$ac_ext <<_ACEOF | |
31362 | /* confdefs.h. */ | |
31363 | _ACEOF | |
31364 | cat confdefs.h >>conftest.$ac_ext | |
31365 | cat >>conftest.$ac_ext <<_ACEOF | |
31366 | /* end confdefs.h. */ | |
31367 | #include <GL/gl.h> | |
31368 | _ACEOF | |
31369 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31370 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31371 | ac_status=$? | |
31372 | grep -v '^ *+' conftest.er1 >conftest.err | |
31373 | rm -f conftest.er1 | |
31374 | cat conftest.err >&5 | |
31375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31376 | (exit $ac_status); } >/dev/null; then | |
31377 | if test -s conftest.err; then | |
31378 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 31379 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
31380 | else |
31381 | ac_cpp_err= | |
31382 | fi | |
31383 | else | |
31384 | ac_cpp_err=yes | |
31385 | fi | |
31386 | if test -z "$ac_cpp_err"; then | |
31387 | ac_header_preproc=yes | |
31388 | else | |
31389 | echo "$as_me: failed program was:" >&5 | |
31390 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31391 | ||
31392 | ac_header_preproc=no | |
31393 | fi | |
31394 | rm -f conftest.err conftest.$ac_ext | |
31395 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31396 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31397 | ||
31398 | # So? What about this header? | |
ac1cb8d3 VS |
31399 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
31400 | yes:no: ) | |
a848cd7e SC |
31401 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
31402 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
31403 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5 |
31404 | echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;} | |
31405 | ac_header_preproc=yes | |
a848cd7e | 31406 | ;; |
ac1cb8d3 | 31407 | no:yes:* ) |
a848cd7e SC |
31408 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
31409 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
31410 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
31411 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
31412 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5 | |
31413 | echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;} | |
31414 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
31415 | echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
31416 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
31417 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
31418 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5 |
31419 | echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
31420 | ( |
31421 | cat <<\_ASBOX | |
ac1cb8d3 VS |
31422 | ## ----------------------------------------- ## |
31423 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
31424 | ## ----------------------------------------- ## | |
a848cd7e SC |
31425 | _ASBOX |
31426 | ) | | |
31427 | sed "s/^/$as_me: WARNING: /" >&2 | |
31428 | ;; | |
31429 | esac | |
31430 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
31431 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
31432 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
31433 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31434 | else | |
31435 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
31436 | fi | |
31437 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
31438 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
31439 | ||
31440 | fi | |
31441 | if test $ac_cv_header_GL_gl_h = yes; then | |
31442 | ||
31443 | found_gl=0 | |
31444 | ||
31445 | echo "$as_me:$LINENO: checking for -lGL" >&5 | |
31446 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
31447 | ||
0ad5d837 VZ |
31448 | ac_find_libraries= |
31449 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 31450 | do |
3eca31dc | 31451 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
31452 | if test -f "$ac_dir/libGL.$ac_extension"; then |
31453 | ac_find_libraries=$ac_dir | |
31454 | break 2 | |
31455 | fi | |
31456 | done | |
31457 | done | |
31458 | ||
31459 | if test "$ac_find_libraries" != "" ; then | |
69120ee4 VZ |
31460 | echo "$as_me:$LINENO: result: yes" >&5 |
31461 | echo "${ECHO_T}yes" >&6 | |
31462 | ||
a848cd7e | 31463 | |
0ad5d837 | 31464 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
31465 | ac_path_to_link="" |
31466 | else | |
0ad5d837 VZ |
31467 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
31468 | result=$? | |
31469 | if test $result = 0; then | |
31470 | ac_path_to_link="" | |
31471 | else | |
31472 | ac_path_to_link=" -L$ac_find_libraries" | |
31473 | fi | |
a848cd7e SC |
31474 | fi |
31475 | ||
31476 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
31477 | LDFLAGS_GL="$ac_path_to_link" | |
31478 | fi | |
31479 | ||
69120ee4 VZ |
31480 | echo "$as_me:$LINENO: checking for -lGLU" >&5 |
31481 | echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6 | |
a848cd7e | 31482 | |
0ad5d837 VZ |
31483 | ac_find_libraries= |
31484 | for ac_dir in $SEARCH_LIB; | |
31485 | do | |
31486 | for ac_extension in a so sl dylib dll.a; do | |
31487 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
31488 | ac_find_libraries=$ac_dir | |
31489 | break 2 | |
31490 | fi | |
31491 | done | |
31492 | done | |
31493 | ||
a848cd7e SC |
31494 | if test "$ac_find_libraries" != "" ; then |
31495 | ||
0ad5d837 | 31496 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
31497 | ac_path_to_link="" |
31498 | else | |
0ad5d837 VZ |
31499 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
31500 | result=$? | |
31501 | if test $result = 0; then | |
31502 | ac_path_to_link="" | |
31503 | else | |
31504 | ac_path_to_link=" -L$ac_find_libraries" | |
31505 | fi | |
a848cd7e SC |
31506 | fi |
31507 | ||
31508 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
31509 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
31510 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
31511 | fi | |
31512 | ||
31513 | found_gl=1 | |
31514 | OPENGL_LIBS="-lGL -lGLU" | |
31515 | echo "$as_me:$LINENO: result: yes" >&5 | |
31516 | echo "${ECHO_T}yes" >&6 | |
69120ee4 VZ |
31517 | else |
31518 | echo "$as_me:$LINENO: result: no" >&5 | |
31519 | echo "${ECHO_T}no" >&6 | |
a848cd7e | 31520 | fi |
69120ee4 VZ |
31521 | else |
31522 | echo "$as_me:$LINENO: result: no" >&5 | |
31523 | echo "${ECHO_T}no" >&6 | |
a848cd7e SC |
31524 | fi |
31525 | ||
31526 | if test "$found_gl" != 1; then | |
a848cd7e SC |
31527 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 |
31528 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
31529 | ||
0ad5d837 VZ |
31530 | ac_find_libraries= |
31531 | for ac_dir in $SEARCH_LIB; | |
a848cd7e | 31532 | do |
3eca31dc | 31533 | for ac_extension in a so sl dylib dll.a; do |
a848cd7e SC |
31534 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then |
31535 | ac_find_libraries=$ac_dir | |
31536 | break 2 | |
31537 | fi | |
31538 | done | |
31539 | done | |
31540 | ||
31541 | if test "$ac_find_libraries" != "" ; then | |
31542 | ||
0ad5d837 | 31543 | if test "$ac_find_libraries" = "default location"; then |
a848cd7e SC |
31544 | ac_path_to_link="" |
31545 | else | |
0ad5d837 VZ |
31546 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
31547 | result=$? | |
31548 | if test $result = 0; then | |
31549 | ac_path_to_link="" | |
31550 | else | |
31551 | ac_path_to_link=" -L$ac_find_libraries" | |
31552 | fi | |
a848cd7e SC |
31553 | fi |
31554 | ||
31555 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
31556 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
31557 | echo "$as_me:$LINENO: result: yes" >&5 | |
31558 | echo "${ECHO_T}yes" >&6 | |
31559 | else | |
31560 | echo "$as_me:$LINENO: result: no" >&5 | |
31561 | echo "${ECHO_T}no" >&6 | |
31562 | fi | |
31563 | fi | |
31564 | ||
31565 | fi | |
31566 | ||
31567 | ||
31568 | ||
31569 | if test "x$OPENGL_LIBS" = "x"; then | |
31570 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 | |
31571 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
31572 | { (exit 1); exit 1; }; } | |
31573 | fi | |
31574 | fi | |
31575 | ||
31576 | if test "$wxUSE_OPENGL" = "yes"; then | |
31577 | USE_OPENGL=1 | |
31578 | cat >>confdefs.h <<\_ACEOF | |
31579 | #define wxUSE_OPENGL 1 | |
31580 | _ACEOF | |
31581 | ||
31582 | cat >>confdefs.h <<\_ACEOF | |
31583 | #define wxUSE_GLCANVAS 1 | |
31584 | _ACEOF | |
31585 | ||
31586 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" | |
31587 | fi | |
31588 | fi | |
31589 | ||
a848cd7e SC |
31590 | |
31591 | if test -n "$TOOLKIT" ; then | |
31592 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
31593 | fi | |
31594 | ||
a848cd7e SC |
31595 | |
31596 | ||
31597 | if test "$wxUSE_SHARED" = "yes"; then | |
31598 | case "${host}" in | |
31599 | *-pc-msdosdjgpp ) | |
31600 | wxUSE_SHARED=no | |
31601 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 | |
31602 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
31603 | ;; | |
31604 | esac | |
31605 | fi | |
31606 | ||
a848cd7e | 31607 | if test "$wxUSE_SHARED" = "yes"; then |
a848cd7e SC |
31608 | |
31609 | ||
31610 | found_versioning=no | |
31611 | ||
31612 | ||
31613 | if test $found_versioning = no ; then | |
31614 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 | |
31615 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
31616 | if test "${wx_cv_version_script+set}" = set; then | |
31617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31618 | else | |
31619 | ||
31620 | echo "VER_1 { *; };" >conftest.sym | |
31621 | echo "int main() { return 0; }" >conftest.cpp | |
31622 | ||
31623 | if { ac_try=' | |
31624 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
31625 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' | |
31626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31627 | (eval $ac_try) 2>&5 | |
31628 | ac_status=$? | |
31629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31630 | (exit $ac_status); }; } ; then | |
31631 | if test -s conftest.stderr ; then | |
31632 | wx_cv_version_script=no | |
31633 | else | |
31634 | wx_cv_version_script=yes | |
31635 | fi | |
31636 | else | |
31637 | wx_cv_version_script=no | |
31638 | fi | |
e5d4b470 MW |
31639 | |
31640 | if test $wx_cv_version_script = yes | |
31641 | then | |
31642 | echo "struct B { virtual ~B() { } }; \ | |
31643 | struct D : public B { }; \ | |
31644 | void F() { D d; }" > conftest.cpp | |
31645 | ||
31646 | if { ac_try=' | |
31647 | $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
31648 | -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null' | |
31649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31650 | (eval $ac_try) 2>&5 | |
31651 | ac_status=$? | |
31652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31653 | (exit $ac_status); }; } && | |
31654 | { ac_try=' | |
31655 | $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
31656 | -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null' | |
31657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31658 | (eval $ac_try) 2>&5 | |
31659 | ac_status=$? | |
31660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31661 | (exit $ac_status); }; } | |
31662 | then | |
31663 | if { ac_try=' | |
31664 | $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
31665 | -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null' | |
31666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31667 | (eval $ac_try) 2>&5 | |
31668 | ac_status=$? | |
31669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31670 | (exit $ac_status); }; } | |
31671 | then | |
31672 | wx_cv_version_script=yes | |
31673 | else | |
31674 | wx_cv_version_script=no | |
31675 | fi | |
31676 | fi | |
31677 | fi | |
31678 | ||
a848cd7e | 31679 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp |
e5d4b470 | 31680 | rm -f conftest1.output conftest2.output conftest3.output |
a848cd7e SC |
31681 | |
31682 | fi | |
31683 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
31684 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
31685 | if test $wx_cv_version_script = yes ; then | |
31686 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" | |
31687 | fi | |
31688 | fi | |
31689 | ||
31690 | ||
31691 | case "${host}" in | |
31692 | *-*-linux* | *-*-gnu* ) | |
31693 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 31694 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
6ebeb4c7 | 31695 | ;; |
a848cd7e SC |
31696 | |
31697 | *-*-solaris2* ) | |
31698 | if test "$GCC" = yes ; then | |
c92ad099 | 31699 | CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS" |
a848cd7e SC |
31700 | |
31701 | saveLdflags="$LDFLAGS" | |
31702 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
31703 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 | |
31704 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
31705 | cat >conftest.$ac_ext <<_ACEOF | |
31706 | /* confdefs.h. */ | |
31707 | _ACEOF | |
31708 | cat confdefs.h >>conftest.$ac_ext | |
31709 | cat >>conftest.$ac_ext <<_ACEOF | |
31710 | /* end confdefs.h. */ | |
31711 | ||
31712 | int | |
31713 | main () | |
31714 | { | |
31715 | ||
31716 | ; | |
31717 | return 0; | |
31718 | } | |
31719 | _ACEOF | |
31720 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31721 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31722 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31723 | ac_status=$? |
ac1cb8d3 VS |
31724 | grep -v '^ *+' conftest.er1 >conftest.err |
31725 | rm -f conftest.er1 | |
31726 | cat conftest.err >&5 | |
a848cd7e SC |
31727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31728 | (exit $ac_status); } && | |
3565d135 RR |
31729 | { ac_try='test -z "$ac_c_werror_flag" |
31730 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31732 | (eval $ac_try) 2>&5 | |
31733 | ac_status=$? | |
31734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31735 | (exit $ac_status); }; } && | |
31736 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31738 | (eval $ac_try) 2>&5 | |
31739 | ac_status=$? | |
31740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31741 | (exit $ac_status); }; }; then | |
31742 | ||
31743 | echo "$as_me:$LINENO: result: yes" >&5 | |
31744 | echo "${ECHO_T}yes" >&6 | |
31745 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
ffa0583f | 31746 | WXCONFIG_RPATH="-Wl,-rpath,\$libdir" |
a848cd7e SC |
31747 | |
31748 | else | |
31749 | echo "$as_me: failed program was:" >&5 | |
31750 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31751 | ||
31752 | ||
31753 | echo "$as_me:$LINENO: result: no" >&5 | |
31754 | echo "${ECHO_T}no" >&6 | |
31755 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
31756 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
31757 | LDFLAGS="$saveLdflags -Wl,-R,/" | |
31758 | cat >conftest.$ac_ext <<_ACEOF | |
31759 | /* confdefs.h. */ | |
31760 | _ACEOF | |
31761 | cat confdefs.h >>conftest.$ac_ext | |
31762 | cat >>conftest.$ac_ext <<_ACEOF | |
31763 | /* end confdefs.h. */ | |
31764 | ||
31765 | int | |
31766 | main () | |
31767 | { | |
31768 | ||
31769 | ; | |
31770 | return 0; | |
31771 | } | |
31772 | _ACEOF | |
31773 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31774 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 31775 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 31776 | ac_status=$? |
ac1cb8d3 VS |
31777 | grep -v '^ *+' conftest.er1 >conftest.err |
31778 | rm -f conftest.er1 | |
31779 | cat conftest.err >&5 | |
a848cd7e SC |
31780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31781 | (exit $ac_status); } && | |
3565d135 RR |
31782 | { ac_try='test -z "$ac_c_werror_flag" |
31783 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
31784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31785 | (eval $ac_try) 2>&5 | |
31786 | ac_status=$? | |
31787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31788 | (exit $ac_status); }; } && | |
31789 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
31790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31791 | (eval $ac_try) 2>&5 | |
31792 | ac_status=$? | |
31793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31794 | (exit $ac_status); }; }; then | |
31795 | ||
ffa0583f | 31796 | echo "$as_me:$LINENO: result: yes" >&5 |
a848cd7e | 31797 | echo "${ECHO_T}yes" >&6 |
ffa0583f RL |
31798 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" |
31799 | WXCONFIG_RPATH="-Wl,-R,\$libdir" | |
31800 | ||
a848cd7e SC |
31801 | else |
31802 | echo "$as_me: failed program was:" >&5 | |
31803 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31804 | ||
31805 | ||
31806 | echo "$as_me:$LINENO: result: no" >&5 | |
31807 | echo "${ECHO_T}no" >&6 | |
31808 | ||
31809 | fi | |
ac1cb8d3 VS |
31810 | rm -f conftest.err conftest.$ac_objext \ |
31811 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31812 | |
31813 | fi | |
ac1cb8d3 VS |
31814 | rm -f conftest.err conftest.$ac_objext \ |
31815 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
31816 | LDFLAGS="$saveLdflags" |
31817 | else | |
a848cd7e | 31818 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
ffa0583f | 31819 | WXCONFIG_RPATH="-R\$libdir" |
a848cd7e SC |
31820 | fi |
31821 | ;; | |
31822 | ||
cfda0ea8 | 31823 | *-*-darwin* ) |
0caebc27 MW |
31824 | install_name_tool=`which install_name_tool` |
31825 | if test "$install_name_tool" -a -x "$install_name_tool"; then | |
31826 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" | |
31827 | cat <<EOF >change-install-names | |
a848cd7e SC |
31828 | #!/bin/sh |
31829 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
31830 | inst_cmd="install_name_tool " | |
31831 | for i in \${libnames} ; do | |
31832 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
31833 | done | |
31834 | \${inst_cmd} \${3} | |
31835 | EOF | |
0caebc27 MW |
31836 | chmod +x change-install-names |
31837 | fi | |
a848cd7e SC |
31838 | ;; |
31839 | ||
31840 | *-*-cygwin* | *-*-mingw32* ) | |
5ff751d6 VZ |
31841 | WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL" |
31842 | ;; | |
a848cd7e | 31843 | |
81f90336 MW |
31844 | *-*-hpux* ) |
31845 | SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib" | |
31846 | WXCONFIG_RPATH="-Wl,+b,\$libdir" | |
5ff751d6 | 31847 | ;; |
81f90336 | 31848 | |
a848cd7e | 31849 | esac |
ceec2216 | 31850 | |
ffa0583f RL |
31851 | if test $wxUSE_RPATH = "no"; then |
31852 | SAMPLES_RPATH_FLAG='' | |
31853 | SAMPLES_RPATH_POSTLINK='' | |
31854 | WXCONFIG_RPATH='' | |
31855 | fi | |
31856 | ||
31857 | SHARED=1 | |
31858 | ||
31859 | else | |
31860 | ||
ceec2216 RL |
31861 | config_linkage_component="-static" |
31862 | SHARED=0 | |
ffa0583f | 31863 | |
ceec2216 | 31864 | fi |
a848cd7e | 31865 | |
a848cd7e | 31866 | |
ceec2216 RL |
31867 | UNICODE=0 |
31868 | lib_unicode_suffix= | |
31869 | WX_CHARTYPE="ansi" | |
31870 | if test "$wxUSE_UNICODE" = "yes"; then | |
31871 | lib_unicode_suffix=u | |
31872 | WX_CHARTYPE="unicode" | |
31873 | UNICODE=1 | |
a848cd7e SC |
31874 | fi |
31875 | ||
ceec2216 RL |
31876 | lib_debug_suffix= |
31877 | WX_DEBUGTYPE="release" | |
31878 | DEBUG_FLAG=0 | |
31879 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
31880 | lib_debug_suffix=d | |
31881 | WX_DEBUGTYPE="debug" | |
31882 | DEBUG_FLAG=1 | |
31883 | fi | |
a848cd7e | 31884 | |
ceec2216 RL |
31885 | WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR} |
31886 | WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'` | |
a848cd7e | 31887 | |
ceec2216 RL |
31888 | DEBUG_INFO=0 |
31889 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
31890 | DEBUG_INFO=1 | |
31891 | fi | |
a848cd7e | 31892 | |
ceec2216 | 31893 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
a848cd7e | 31894 | |
ceec2216 | 31895 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}" |
a848cd7e | 31896 | |
ceec2216 | 31897 | TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}" |
a848cd7e | 31898 | |
ceec2216 RL |
31899 | if test "$cross_compiling" = "yes"; then |
31900 | HOST_SUFFIX="-$host_alias" | |
31901 | TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX" | |
31902 | TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME" | |
a848cd7e SC |
31903 | fi |
31904 | ||
dd21ced8 | 31905 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" |
abc736fd MW |
31906 | if test "${TOOLKIT_DIR}" = "os2"; then |
31907 | WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" | |
31908 | else | |
31909 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}" | |
31910 | fi | |
ceec2216 RL |
31911 | |
31912 | ||
31913 | ||
1d1af5ea DE |
31914 | if test "$wxUSE_COCOA" = 1; then |
31915 | ||
31916 | ||
31917 | ac_ext=c | |
31918 | ac_cpp='$CPP $CPPFLAGS' | |
31919 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
31920 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31921 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
31922 | ||
31923 | ac_ext=m | |
31924 | ||
31925 | echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5 | |
31926 | echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6 | |
31927 | cat >conftest.$ac_ext <<_ACEOF | |
31928 | /* confdefs.h. */ | |
31929 | _ACEOF | |
31930 | cat confdefs.h >>conftest.$ac_ext | |
31931 | cat >>conftest.$ac_ext <<_ACEOF | |
31932 | /* end confdefs.h. */ | |
31933 | #include <AppKit/NSEvent.h> | |
31934 | #include <CoreFoundation/CoreFoundation.h> | |
31935 | ||
31936 | int | |
31937 | main () | |
31938 | { | |
31939 | ||
31940 | ; | |
31941 | return 0; | |
31942 | } | |
31943 | _ACEOF | |
31944 | rm -f conftest.$ac_objext | |
31945 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31946 | (eval $ac_compile) 2>conftest.er1 | |
31947 | ac_status=$? | |
31948 | grep -v '^ *+' conftest.er1 >conftest.err | |
31949 | rm -f conftest.er1 | |
31950 | cat conftest.err >&5 | |
31951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31952 | (exit $ac_status); } && | |
3565d135 RR |
31953 | { ac_try='test -z "$ac_c_werror_flag" |
31954 | || test ! -s conftest.err' | |
1d1af5ea DE |
31955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31956 | (eval $ac_try) 2>&5 | |
31957 | ac_status=$? | |
31958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31959 | (exit $ac_status); }; } && | |
31960 | { ac_try='test -s conftest.$ac_objext' | |
31961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31962 | (eval $ac_try) 2>&5 | |
31963 | ac_status=$? | |
31964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31965 | (exit $ac_status); }; }; then | |
31966 | echo "$as_me:$LINENO: result: no" >&5 | |
31967 | echo "${ECHO_T}no" >&6 | |
31968 | else | |
31969 | echo "$as_me: failed program was:" >&5 | |
31970 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31971 | ||
31972 | echo "$as_me:$LINENO: result: yes" >&5 | |
31973 | echo "${ECHO_T}yes" >&6 | |
31974 | echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5 | |
31975 | echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6 | |
31976 | cat >conftest.$ac_ext <<_ACEOF | |
31977 | /* confdefs.h. */ | |
31978 | _ACEOF | |
31979 | cat confdefs.h >>conftest.$ac_ext | |
31980 | cat >>conftest.$ac_ext <<_ACEOF | |
31981 | /* end confdefs.h. */ | |
31982 | #define __Point__ 1 | |
31983 | #include <AppKit/NSEvent.h> | |
31984 | #include <CoreFoundation/CoreFoundation.h> | |
31985 | ||
31986 | int | |
31987 | main () | |
31988 | { | |
31989 | ||
31990 | ; | |
31991 | return 0; | |
31992 | } | |
31993 | _ACEOF | |
31994 | rm -f conftest.$ac_objext | |
31995 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31996 | (eval $ac_compile) 2>conftest.er1 | |
31997 | ac_status=$? | |
31998 | grep -v '^ *+' conftest.er1 >conftest.err | |
31999 | rm -f conftest.er1 | |
32000 | cat conftest.err >&5 | |
32001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32002 | (exit $ac_status); } && | |
3565d135 RR |
32003 | { ac_try='test -z "$ac_c_werror_flag" |
32004 | || test ! -s conftest.err' | |
1d1af5ea DE |
32005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32006 | (eval $ac_try) 2>&5 | |
32007 | ac_status=$? | |
32008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32009 | (exit $ac_status); }; } && | |
32010 | { ac_try='test -s conftest.$ac_objext' | |
32011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32012 | (eval $ac_try) 2>&5 | |
32013 | ac_status=$? | |
32014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32015 | (exit $ac_status); }; }; then | |
32016 | echo "$as_me:$LINENO: result: yes" >&5 | |
32017 | echo "${ECHO_T}yes" >&6 | |
32018 | cat >>confdefs.h <<\_ACEOF | |
32019 | #define __Point__ 1 | |
32020 | _ACEOF | |
32021 | ||
32022 | ||
32023 | else | |
32024 | echo "$as_me: failed program was:" >&5 | |
32025 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32026 | ||
32027 | { { echo "$as_me:$LINENO: error: no | |
32028 | See \`config.log' for more details." >&5 | |
32029 | echo "$as_me: error: no | |
32030 | See \`config.log' for more details." >&2;} | |
32031 | { (exit 1); exit 1; }; } | |
32032 | ||
32033 | fi | |
32034 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32035 | ||
32036 | fi | |
32037 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32038 | ac_ext=c | |
32039 | ac_cpp='$CPP $CPPFLAGS' | |
32040 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32041 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32042 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
32043 | ||
32044 | fi | |
32045 | ||
a848cd7e | 32046 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
abb9aae7 VZ |
32047 | WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r" |
32048 | WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc" | |
ceec2216 | 32049 | |
a848cd7e | 32050 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
a848cd7e SC |
32051 | |
32052 | # Extract the first word of "Rez", so it can be a program name with args. | |
32053 | set dummy Rez; ac_word=$2 | |
32054 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
32055 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 32056 | if test "${ac_cv_prog_REZ+set}" = set; then |
a848cd7e SC |
32057 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
32058 | else | |
8ced02f6 DE |
32059 | if test -n "$REZ"; then |
32060 | ac_cv_prog_REZ="$REZ" # Let the user override the test. | |
a848cd7e SC |
32061 | else |
32062 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
32063 | for as_dir in $PATH | |
32064 | do | |
32065 | IFS=$as_save_IFS | |
32066 | test -z "$as_dir" && as_dir=. | |
32067 | for ac_exec_ext in '' $ac_executable_extensions; do | |
32068 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 32069 | ac_cv_prog_REZ="Rez" |
a848cd7e SC |
32070 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
32071 | break 2 | |
32072 | fi | |
32073 | done | |
32074 | done | |
32075 | ||
8ced02f6 | 32076 | test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez" |
a848cd7e SC |
32077 | fi |
32078 | fi | |
8ced02f6 DE |
32079 | REZ=$ac_cv_prog_REZ |
32080 | if test -n "$REZ"; then | |
32081 | echo "$as_me:$LINENO: result: $REZ" >&5 | |
32082 | echo "${ECHO_T}$REZ" >&6 | |
a848cd7e SC |
32083 | else |
32084 | echo "$as_me:$LINENO: result: no" >&5 | |
32085 | echo "${ECHO_T}no" >&6 | |
32086 | fi | |
32087 | ||
32088 | # Extract the first word of "DeRez", so it can be a program name with args. | |
32089 | set dummy DeRez; ac_word=$2 | |
32090 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
32091 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
32092 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
32093 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32094 | else | |
32095 | if test -n "$DEREZ"; then | |
32096 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
32097 | else | |
32098 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
32099 | for as_dir in $PATH | |
32100 | do | |
32101 | IFS=$as_save_IFS | |
32102 | test -z "$as_dir" && as_dir=. | |
32103 | for ac_exec_ext in '' $ac_executable_extensions; do | |
32104 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
32105 | ac_cv_prog_DEREZ="DeRez" | |
32106 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
32107 | break 2 | |
32108 | fi | |
32109 | done | |
32110 | done | |
32111 | ||
32112 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
32113 | fi | |
32114 | fi | |
32115 | DEREZ=$ac_cv_prog_DEREZ | |
32116 | if test -n "$DEREZ"; then | |
32117 | echo "$as_me:$LINENO: result: $DEREZ" >&5 | |
32118 | echo "${ECHO_T}$DEREZ" >&6 | |
32119 | else | |
32120 | echo "$as_me:$LINENO: result: no" >&5 | |
32121 | echo "${ECHO_T}no" >&6 | |
32122 | fi | |
32123 | ||
32124 | # Extract the first word of "SetFile", so it can be a program name with args. | |
32125 | set dummy SetFile; ac_word=$2 | |
32126 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
32127 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
32128 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
32129 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32130 | else | |
32131 | if test -n "$SETFILE"; then | |
32132 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
32133 | else | |
32134 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
32135 | for as_dir in $PATH | |
32136 | do | |
32137 | IFS=$as_save_IFS | |
32138 | test -z "$as_dir" && as_dir=. | |
32139 | for ac_exec_ext in '' $ac_executable_extensions; do | |
32140 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
32141 | ac_cv_prog_SETFILE="SetFile" | |
32142 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
32143 | break 2 | |
32144 | fi | |
32145 | done | |
32146 | done | |
32147 | ||
32148 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
32149 | fi | |
32150 | fi | |
32151 | SETFILE=$ac_cv_prog_SETFILE | |
32152 | if test -n "$SETFILE"; then | |
32153 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
32154 | echo "${ECHO_T}$SETFILE" >&6 | |
32155 | else | |
32156 | echo "$as_me:$LINENO: result: no" >&5 | |
32157 | echo "${ECHO_T}no" >&6 | |
32158 | fi | |
32159 | ||
32160 | ||
32161 | MACSETFILE="\$(SETFILE)" | |
32162 | ||
32163 | if test "$wxUSE_MAC" = 1; then | |
8ced02f6 | 32164 | POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o" |
004ee6da RL |
32165 | RESCOMP="$REZ" |
32166 | WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o" | |
a848cd7e | 32167 | else |
004ee6da RL |
32168 | POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}" |
32169 | RESCOMP="echo -n \| $REZ" | |
32170 | WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII" | |
a848cd7e | 32171 | fi |
004ee6da | 32172 | |
a848cd7e | 32173 | else |
ffa0583f | 32174 | MACSETFILE="@true" |
a848cd7e | 32175 | |
8ced02f6 | 32176 | if test "$wxUSE_PM" = 1; then |
004ee6da RL |
32177 | RESCOMP="emxbind" |
32178 | WXCONFIG_RESFLAGS="-ep" | |
32179 | ||
32180 | POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS" | |
a848cd7e | 32181 | else |
8ced02f6 | 32182 | POSTLINK_COMMAND="@true" |
a848cd7e | 32183 | fi |
004ee6da | 32184 | |
a848cd7e SC |
32185 | fi |
32186 | ||
32187 | ||
32188 | ||
32189 | echo "$as_me:$LINENO: checking for mode_t" >&5 | |
32190 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
32191 | if test "${ac_cv_type_mode_t+set}" = set; then | |
32192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32193 | else | |
32194 | cat >conftest.$ac_ext <<_ACEOF | |
32195 | /* confdefs.h. */ | |
32196 | _ACEOF | |
32197 | cat confdefs.h >>conftest.$ac_ext | |
32198 | cat >>conftest.$ac_ext <<_ACEOF | |
32199 | /* end confdefs.h. */ | |
32200 | $ac_includes_default | |
32201 | int | |
32202 | main () | |
32203 | { | |
32204 | if ((mode_t *) 0) | |
32205 | return 0; | |
32206 | if (sizeof (mode_t)) | |
32207 | return 0; | |
32208 | ; | |
32209 | return 0; | |
32210 | } | |
32211 | _ACEOF | |
32212 | rm -f conftest.$ac_objext | |
32213 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32214 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32215 | ac_status=$? |
ac1cb8d3 VS |
32216 | grep -v '^ *+' conftest.er1 >conftest.err |
32217 | rm -f conftest.er1 | |
32218 | cat conftest.err >&5 | |
a848cd7e SC |
32219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32220 | (exit $ac_status); } && | |
3565d135 RR |
32221 | { ac_try='test -z "$ac_c_werror_flag" |
32222 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32224 | (eval $ac_try) 2>&5 | |
32225 | ac_status=$? | |
32226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32227 | (exit $ac_status); }; } && | |
32228 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32230 | (eval $ac_try) 2>&5 | |
32231 | ac_status=$? | |
32232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32233 | (exit $ac_status); }; }; then | |
32234 | ac_cv_type_mode_t=yes | |
32235 | else | |
32236 | echo "$as_me: failed program was:" >&5 | |
32237 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32238 | ||
32239 | ac_cv_type_mode_t=no | |
32240 | fi | |
ac1cb8d3 | 32241 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32242 | fi |
32243 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
32244 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
32245 | if test $ac_cv_type_mode_t = yes; then | |
32246 | : | |
32247 | else | |
32248 | ||
32249 | cat >>confdefs.h <<_ACEOF | |
32250 | #define mode_t int | |
32251 | _ACEOF | |
32252 | ||
32253 | fi | |
32254 | ||
32255 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
32256 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
32257 | if test "${ac_cv_type_off_t+set}" = set; then | |
32258 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32259 | else | |
32260 | cat >conftest.$ac_ext <<_ACEOF | |
32261 | /* confdefs.h. */ | |
32262 | _ACEOF | |
32263 | cat confdefs.h >>conftest.$ac_ext | |
32264 | cat >>conftest.$ac_ext <<_ACEOF | |
32265 | /* end confdefs.h. */ | |
32266 | $ac_includes_default | |
32267 | int | |
32268 | main () | |
32269 | { | |
32270 | if ((off_t *) 0) | |
32271 | return 0; | |
32272 | if (sizeof (off_t)) | |
32273 | return 0; | |
32274 | ; | |
32275 | return 0; | |
32276 | } | |
32277 | _ACEOF | |
32278 | rm -f conftest.$ac_objext | |
32279 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32280 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32281 | ac_status=$? |
ac1cb8d3 VS |
32282 | grep -v '^ *+' conftest.er1 >conftest.err |
32283 | rm -f conftest.er1 | |
32284 | cat conftest.err >&5 | |
a848cd7e SC |
32285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32286 | (exit $ac_status); } && | |
3565d135 RR |
32287 | { ac_try='test -z "$ac_c_werror_flag" |
32288 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32290 | (eval $ac_try) 2>&5 | |
32291 | ac_status=$? | |
32292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32293 | (exit $ac_status); }; } && | |
32294 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32296 | (eval $ac_try) 2>&5 | |
32297 | ac_status=$? | |
32298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32299 | (exit $ac_status); }; }; then | |
32300 | ac_cv_type_off_t=yes | |
32301 | else | |
32302 | echo "$as_me: failed program was:" >&5 | |
32303 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32304 | ||
32305 | ac_cv_type_off_t=no | |
32306 | fi | |
ac1cb8d3 | 32307 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32308 | fi |
32309 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
32310 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
32311 | if test $ac_cv_type_off_t = yes; then | |
32312 | : | |
32313 | else | |
32314 | ||
32315 | cat >>confdefs.h <<_ACEOF | |
32316 | #define off_t long | |
32317 | _ACEOF | |
32318 | ||
32319 | fi | |
32320 | ||
32321 | echo "$as_me:$LINENO: checking for pid_t" >&5 | |
32322 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
32323 | if test "${ac_cv_type_pid_t+set}" = set; then | |
32324 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32325 | else | |
32326 | cat >conftest.$ac_ext <<_ACEOF | |
32327 | /* confdefs.h. */ | |
32328 | _ACEOF | |
32329 | cat confdefs.h >>conftest.$ac_ext | |
32330 | cat >>conftest.$ac_ext <<_ACEOF | |
32331 | /* end confdefs.h. */ | |
32332 | $ac_includes_default | |
32333 | int | |
32334 | main () | |
32335 | { | |
32336 | if ((pid_t *) 0) | |
32337 | return 0; | |
32338 | if (sizeof (pid_t)) | |
32339 | return 0; | |
32340 | ; | |
32341 | return 0; | |
32342 | } | |
32343 | _ACEOF | |
32344 | rm -f conftest.$ac_objext | |
32345 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32346 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32347 | ac_status=$? |
ac1cb8d3 VS |
32348 | grep -v '^ *+' conftest.er1 >conftest.err |
32349 | rm -f conftest.er1 | |
32350 | cat conftest.err >&5 | |
a848cd7e SC |
32351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32352 | (exit $ac_status); } && | |
3565d135 RR |
32353 | { ac_try='test -z "$ac_c_werror_flag" |
32354 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32356 | (eval $ac_try) 2>&5 | |
32357 | ac_status=$? | |
32358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32359 | (exit $ac_status); }; } && | |
32360 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32362 | (eval $ac_try) 2>&5 | |
32363 | ac_status=$? | |
32364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32365 | (exit $ac_status); }; }; then | |
32366 | ac_cv_type_pid_t=yes | |
32367 | else | |
32368 | echo "$as_me: failed program was:" >&5 | |
32369 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32370 | ||
32371 | ac_cv_type_pid_t=no | |
32372 | fi | |
ac1cb8d3 | 32373 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32374 | fi |
32375 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
32376 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
32377 | if test $ac_cv_type_pid_t = yes; then | |
32378 | : | |
32379 | else | |
32380 | ||
32381 | cat >>confdefs.h <<_ACEOF | |
32382 | #define pid_t int | |
32383 | _ACEOF | |
32384 | ||
32385 | fi | |
32386 | ||
32387 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
32388 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
32389 | if test "${ac_cv_type_size_t+set}" = set; then | |
32390 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32391 | else | |
32392 | cat >conftest.$ac_ext <<_ACEOF | |
32393 | /* confdefs.h. */ | |
32394 | _ACEOF | |
32395 | cat confdefs.h >>conftest.$ac_ext | |
32396 | cat >>conftest.$ac_ext <<_ACEOF | |
32397 | /* end confdefs.h. */ | |
32398 | $ac_includes_default | |
32399 | int | |
32400 | main () | |
32401 | { | |
32402 | if ((size_t *) 0) | |
32403 | return 0; | |
32404 | if (sizeof (size_t)) | |
32405 | return 0; | |
32406 | ; | |
32407 | return 0; | |
32408 | } | |
32409 | _ACEOF | |
32410 | rm -f conftest.$ac_objext | |
32411 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32412 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32413 | ac_status=$? |
ac1cb8d3 VS |
32414 | grep -v '^ *+' conftest.er1 >conftest.err |
32415 | rm -f conftest.er1 | |
32416 | cat conftest.err >&5 | |
a848cd7e SC |
32417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32418 | (exit $ac_status); } && | |
3565d135 RR |
32419 | { ac_try='test -z "$ac_c_werror_flag" |
32420 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32422 | (eval $ac_try) 2>&5 | |
32423 | ac_status=$? | |
32424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32425 | (exit $ac_status); }; } && | |
32426 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32428 | (eval $ac_try) 2>&5 | |
32429 | ac_status=$? | |
32430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32431 | (exit $ac_status); }; }; then | |
32432 | ac_cv_type_size_t=yes | |
32433 | else | |
32434 | echo "$as_me: failed program was:" >&5 | |
32435 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32436 | ||
32437 | ac_cv_type_size_t=no | |
32438 | fi | |
ac1cb8d3 | 32439 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32440 | fi |
32441 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
32442 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
32443 | if test $ac_cv_type_size_t = yes; then | |
32444 | : | |
32445 | else | |
32446 | ||
32447 | cat >>confdefs.h <<_ACEOF | |
32448 | #define size_t unsigned | |
32449 | _ACEOF | |
32450 | ||
32451 | fi | |
32452 | ||
32453 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 | |
32454 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
32455 | if test "${ac_cv_type_uid_t+set}" = set; then | |
32456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32457 | else | |
32458 | cat >conftest.$ac_ext <<_ACEOF | |
32459 | /* confdefs.h. */ | |
32460 | _ACEOF | |
32461 | cat confdefs.h >>conftest.$ac_ext | |
32462 | cat >>conftest.$ac_ext <<_ACEOF | |
32463 | /* end confdefs.h. */ | |
32464 | #include <sys/types.h> | |
32465 | ||
32466 | _ACEOF | |
32467 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
32468 | $EGREP "uid_t" >/dev/null 2>&1; then | |
32469 | ac_cv_type_uid_t=yes | |
32470 | else | |
32471 | ac_cv_type_uid_t=no | |
32472 | fi | |
32473 | rm -f conftest* | |
32474 | ||
32475 | fi | |
32476 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 | |
32477 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
32478 | if test $ac_cv_type_uid_t = no; then | |
32479 | ||
32480 | cat >>confdefs.h <<\_ACEOF | |
32481 | #define uid_t int | |
32482 | _ACEOF | |
32483 | ||
32484 | ||
32485 | cat >>confdefs.h <<\_ACEOF | |
32486 | #define gid_t int | |
32487 | _ACEOF | |
32488 | ||
32489 | fi | |
32490 | ||
32491 | ||
d51253e8 RL |
32492 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
32493 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | |
32494 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
32495 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32496 | else | |
32497 | cat >conftest.$ac_ext <<_ACEOF | |
32498 | /* confdefs.h. */ | |
32499 | _ACEOF | |
32500 | cat confdefs.h >>conftest.$ac_ext | |
32501 | cat >>conftest.$ac_ext <<_ACEOF | |
32502 | /* end confdefs.h. */ | |
32503 | $ac_includes_default | |
32504 | int | |
32505 | main () | |
32506 | { | |
32507 | if ((ssize_t *) 0) | |
32508 | return 0; | |
32509 | if (sizeof (ssize_t)) | |
32510 | return 0; | |
32511 | ; | |
32512 | return 0; | |
32513 | } | |
32514 | _ACEOF | |
32515 | rm -f conftest.$ac_objext | |
32516 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32517 | (eval $ac_compile) 2>conftest.er1 | |
32518 | ac_status=$? | |
32519 | grep -v '^ *+' conftest.er1 >conftest.err | |
32520 | rm -f conftest.er1 | |
32521 | cat conftest.err >&5 | |
32522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32523 | (exit $ac_status); } && | |
3565d135 RR |
32524 | { ac_try='test -z "$ac_c_werror_flag" |
32525 | || test ! -s conftest.err' | |
d51253e8 RL |
32526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32527 | (eval $ac_try) 2>&5 | |
32528 | ac_status=$? | |
32529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32530 | (exit $ac_status); }; } && | |
32531 | { ac_try='test -s conftest.$ac_objext' | |
32532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32533 | (eval $ac_try) 2>&5 | |
32534 | ac_status=$? | |
32535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32536 | (exit $ac_status); }; }; then | |
32537 | ac_cv_type_ssize_t=yes | |
32538 | else | |
32539 | echo "$as_me: failed program was:" >&5 | |
32540 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32541 | ||
32542 | ac_cv_type_ssize_t=no | |
32543 | fi | |
32544 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32545 | fi | |
32546 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 | |
32547 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 | |
32548 | if test $ac_cv_type_ssize_t = yes; then | |
32549 | ||
32550 | cat >>confdefs.h <<_ACEOF | |
32551 | #define HAVE_SSIZE_T 1 | |
32552 | _ACEOF | |
32553 | ||
32554 | ||
32555 | fi | |
32556 | ||
32557 | ||
a848cd7e SC |
32558 | |
32559 | ||
32560 | ac_ext=cc | |
32561 | ac_cpp='$CXXCPP $CPPFLAGS' | |
32562 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32563 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32564 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
32565 | ||
32566 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
32567 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
32568 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
32569 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32570 | else | |
32571 | ||
32572 | cat >conftest.$ac_ext <<_ACEOF | |
32573 | /* confdefs.h. */ | |
32574 | _ACEOF | |
32575 | cat confdefs.h >>conftest.$ac_ext | |
32576 | cat >>conftest.$ac_ext <<_ACEOF | |
32577 | /* end confdefs.h. */ | |
32578 | #include <stddef.h> | |
32579 | int | |
32580 | main () | |
32581 | { | |
32582 | ||
32583 | return 0; } | |
32584 | ||
32585 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
32586 | ||
32587 | int bar() { | |
32588 | ||
32589 | ; | |
32590 | return 0; | |
32591 | } | |
32592 | _ACEOF | |
32593 | rm -f conftest.$ac_objext | |
32594 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32595 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32596 | ac_status=$? |
ac1cb8d3 VS |
32597 | grep -v '^ *+' conftest.er1 >conftest.err |
32598 | rm -f conftest.er1 | |
32599 | cat conftest.err >&5 | |
a848cd7e SC |
32600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32601 | (exit $ac_status); } && | |
3565d135 RR |
32602 | { ac_try='test -z "$ac_cxx_werror_flag" |
32603 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32605 | (eval $ac_try) 2>&5 | |
32606 | ac_status=$? | |
32607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32608 | (exit $ac_status); }; } && | |
32609 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32611 | (eval $ac_try) 2>&5 | |
32612 | ac_status=$? | |
32613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32614 | (exit $ac_status); }; }; then | |
32615 | wx_cv_size_t_is_uint=no | |
32616 | else | |
32617 | echo "$as_me: failed program was:" >&5 | |
32618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32619 | ||
32620 | wx_cv_size_t_is_uint=yes | |
32621 | ||
32622 | fi | |
ac1cb8d3 | 32623 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32624 | |
32625 | ||
32626 | fi | |
32627 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
32628 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
32629 | ||
32630 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
32631 | cat >>confdefs.h <<\_ACEOF | |
32632 | #define wxSIZE_T_IS_UINT 1 | |
32633 | _ACEOF | |
32634 | ||
32635 | else | |
32636 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 | |
32637 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
32638 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
32639 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32640 | else | |
32641 | cat >conftest.$ac_ext <<_ACEOF | |
32642 | /* confdefs.h. */ | |
32643 | _ACEOF | |
32644 | cat confdefs.h >>conftest.$ac_ext | |
32645 | cat >>conftest.$ac_ext <<_ACEOF | |
32646 | /* end confdefs.h. */ | |
32647 | #include <stddef.h> | |
32648 | int | |
32649 | main () | |
32650 | { | |
32651 | ||
32652 | return 0; } | |
32653 | ||
32654 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
32655 | ||
32656 | int bar() { | |
32657 | ||
32658 | ; | |
32659 | return 0; | |
32660 | } | |
32661 | _ACEOF | |
32662 | rm -f conftest.$ac_objext | |
32663 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32664 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32665 | ac_status=$? |
ac1cb8d3 VS |
32666 | grep -v '^ *+' conftest.er1 >conftest.err |
32667 | rm -f conftest.er1 | |
32668 | cat conftest.err >&5 | |
a848cd7e SC |
32669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32670 | (exit $ac_status); } && | |
3565d135 RR |
32671 | { ac_try='test -z "$ac_cxx_werror_flag" |
32672 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32674 | (eval $ac_try) 2>&5 | |
32675 | ac_status=$? | |
32676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32677 | (exit $ac_status); }; } && | |
32678 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32680 | (eval $ac_try) 2>&5 | |
32681 | ac_status=$? | |
32682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32683 | (exit $ac_status); }; }; then | |
32684 | wx_cv_size_t_is_ulong=no | |
32685 | else | |
32686 | echo "$as_me: failed program was:" >&5 | |
32687 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32688 | ||
32689 | wx_cv_size_t_is_ulong=yes | |
32690 | ||
32691 | fi | |
ac1cb8d3 | 32692 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32693 | |
32694 | fi | |
32695 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
32696 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
32697 | ||
32698 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
32699 | cat >>confdefs.h <<\_ACEOF | |
32700 | #define wxSIZE_T_IS_ULONG 1 | |
32701 | _ACEOF | |
32702 | ||
32703 | fi | |
32704 | fi | |
32705 | ||
32706 | ac_ext=c | |
32707 | ac_cpp='$CPP $CPPFLAGS' | |
32708 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32709 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32710 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
32711 | ||
32712 | ||
32713 | ||
32714 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 | |
32715 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
32716 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
32717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32718 | else | |
32719 | ||
32720 | cat >conftest.$ac_ext <<_ACEOF | |
32721 | /* confdefs.h. */ | |
32722 | _ACEOF | |
32723 | cat confdefs.h >>conftest.$ac_ext | |
32724 | cat >>conftest.$ac_ext <<_ACEOF | |
32725 | /* end confdefs.h. */ | |
32726 | #include <pwd.h> | |
32727 | int | |
32728 | main () | |
32729 | { | |
32730 | ||
32731 | char *p; | |
32732 | struct passwd *pw; | |
32733 | p = pw->pw_gecos; | |
32734 | ||
32735 | ; | |
32736 | return 0; | |
32737 | } | |
32738 | _ACEOF | |
32739 | rm -f conftest.$ac_objext | |
32740 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 32741 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 32742 | ac_status=$? |
ac1cb8d3 VS |
32743 | grep -v '^ *+' conftest.er1 >conftest.err |
32744 | rm -f conftest.er1 | |
32745 | cat conftest.err >&5 | |
a848cd7e SC |
32746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32747 | (exit $ac_status); } && | |
3565d135 RR |
32748 | { ac_try='test -z "$ac_c_werror_flag" |
32749 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32751 | (eval $ac_try) 2>&5 | |
32752 | ac_status=$? | |
32753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32754 | (exit $ac_status); }; } && | |
32755 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
32756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32757 | (eval $ac_try) 2>&5 | |
32758 | ac_status=$? | |
32759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32760 | (exit $ac_status); }; }; then | |
32761 | ||
32762 | wx_cv_struct_pw_gecos=yes | |
32763 | ||
32764 | else | |
32765 | echo "$as_me: failed program was:" >&5 | |
32766 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32767 | ||
32768 | ||
32769 | wx_cv_struct_pw_gecos=no | |
32770 | ||
32771 | ||
32772 | fi | |
ac1cb8d3 | 32773 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32774 | |
32775 | ||
32776 | fi | |
32777 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
32778 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
32779 | ||
32780 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
32781 | cat >>confdefs.h <<\_ACEOF | |
32782 | #define HAVE_PW_GECOS 1 | |
32783 | _ACEOF | |
32784 | ||
32785 | fi | |
32786 | ||
32787 | ||
47a7e797 | 32788 | if test "$wxUSE_WCHAR_T" = "yes"; then |
a848cd7e SC |
32789 | cat >>confdefs.h <<\_ACEOF |
32790 | #define wxUSE_WCHAR_T 1 | |
32791 | _ACEOF | |
32792 | ||
32793 | ||
32794 | WCSLEN_FOUND=0 | |
32795 | WCHAR_LINK= | |
32796 | ||
32797 | for ac_func in wcslen | |
32798 | do | |
32799 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32800 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32801 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32802 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32803 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32804 | else | |
32805 | cat >conftest.$ac_ext <<_ACEOF | |
32806 | /* confdefs.h. */ | |
32807 | _ACEOF | |
32808 | cat confdefs.h >>conftest.$ac_ext | |
32809 | cat >>conftest.$ac_ext <<_ACEOF | |
32810 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
32811 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
32812 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
32813 | #define $ac_func innocuous_$ac_func | |
32814 | ||
a848cd7e SC |
32815 | /* System header to define __stub macros and hopefully few prototypes, |
32816 | which can conflict with char $ac_func (); below. | |
32817 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32818 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 32819 | |
a848cd7e SC |
32820 | #ifdef __STDC__ |
32821 | # include <limits.h> | |
32822 | #else | |
32823 | # include <assert.h> | |
32824 | #endif | |
ac1cb8d3 VS |
32825 | |
32826 | #undef $ac_func | |
32827 | ||
a848cd7e SC |
32828 | /* Override any gcc2 internal prototype to avoid an error. */ |
32829 | #ifdef __cplusplus | |
32830 | extern "C" | |
32831 | { | |
32832 | #endif | |
32833 | /* We use char because int might match the return type of a gcc2 | |
32834 | builtin and then its argument prototype would still apply. */ | |
32835 | char $ac_func (); | |
32836 | /* The GNU C library defines this for functions which it implements | |
32837 | to always fail with ENOSYS. Some functions are actually named | |
32838 | something starting with __ and the normal name is an alias. */ | |
32839 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32840 | choke me | |
32841 | #else | |
32842 | char (*f) () = $ac_func; | |
32843 | #endif | |
32844 | #ifdef __cplusplus | |
32845 | } | |
32846 | #endif | |
32847 | ||
32848 | int | |
32849 | main () | |
32850 | { | |
32851 | return f != $ac_func; | |
32852 | ; | |
32853 | return 0; | |
32854 | } | |
32855 | _ACEOF | |
32856 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32857 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32858 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 32859 | ac_status=$? |
ac1cb8d3 VS |
32860 | grep -v '^ *+' conftest.er1 >conftest.err |
32861 | rm -f conftest.er1 | |
32862 | cat conftest.err >&5 | |
a848cd7e SC |
32863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32864 | (exit $ac_status); } && | |
3565d135 RR |
32865 | { ac_try='test -z "$ac_c_werror_flag" |
32866 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
32867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32868 | (eval $ac_try) 2>&5 | |
32869 | ac_status=$? | |
32870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32871 | (exit $ac_status); }; } && | |
32872 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
32873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32874 | (eval $ac_try) 2>&5 | |
32875 | ac_status=$? | |
32876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32877 | (exit $ac_status); }; }; then | |
32878 | eval "$as_ac_var=yes" | |
32879 | else | |
32880 | echo "$as_me: failed program was:" >&5 | |
32881 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32882 | ||
32883 | eval "$as_ac_var=no" | |
32884 | fi | |
ac1cb8d3 VS |
32885 | rm -f conftest.err conftest.$ac_objext \ |
32886 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32887 | fi |
32888 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32889 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32890 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32891 | cat >>confdefs.h <<_ACEOF | |
32892 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32893 | _ACEOF | |
32894 | WCSLEN_FOUND=1 | |
32895 | fi | |
32896 | done | |
32897 | ||
32898 | ||
32899 | if test "$WCSLEN_FOUND" = 0; then | |
32900 | if test "$TOOLKIT" = "MSW"; then | |
32901 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 | |
32902 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
32903 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
32904 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32905 | else | |
32906 | ac_check_lib_save_LIBS=$LIBS | |
32907 | LIBS="-lmsvcrt $LIBS" | |
32908 | cat >conftest.$ac_ext <<_ACEOF | |
32909 | /* confdefs.h. */ | |
32910 | _ACEOF | |
32911 | cat confdefs.h >>conftest.$ac_ext | |
32912 | cat >>conftest.$ac_ext <<_ACEOF | |
32913 | /* end confdefs.h. */ | |
32914 | ||
32915 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32916 | #ifdef __cplusplus | |
32917 | extern "C" | |
32918 | #endif | |
32919 | /* We use char because int might match the return type of a gcc2 | |
32920 | builtin and then its argument prototype would still apply. */ | |
32921 | char wcslen (); | |
32922 | int | |
32923 | main () | |
32924 | { | |
32925 | wcslen (); | |
32926 | ; | |
32927 | return 0; | |
32928 | } | |
32929 | _ACEOF | |
32930 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32931 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 32932 | (eval $ac_link) 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); } && | |
3565d135 RR |
32939 | { ac_try='test -z "$ac_c_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_exeext' | |
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_lib_msvcrt_wcslen=yes | |
32953 | else | |
32954 | echo "$as_me: failed program was:" >&5 | |
32955 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32956 | ||
32957 | ac_cv_lib_msvcrt_wcslen=no | |
32958 | fi | |
ac1cb8d3 VS |
32959 | rm -f conftest.err conftest.$ac_objext \ |
32960 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
32961 | LIBS=$ac_check_lib_save_LIBS |
32962 | fi | |
32963 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
32964 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
32965 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
32966 | WCHAR_OK=1 | |
32967 | fi | |
32968 | ||
32969 | else | |
32970 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 | |
32971 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
32972 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
32973 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32974 | else | |
32975 | ac_check_lib_save_LIBS=$LIBS | |
32976 | LIBS="-lw $LIBS" | |
32977 | cat >conftest.$ac_ext <<_ACEOF | |
32978 | /* confdefs.h. */ | |
32979 | _ACEOF | |
32980 | cat confdefs.h >>conftest.$ac_ext | |
32981 | cat >>conftest.$ac_ext <<_ACEOF | |
32982 | /* end confdefs.h. */ | |
32983 | ||
32984 | /* Override any gcc2 internal prototype to avoid an error. */ | |
32985 | #ifdef __cplusplus | |
32986 | extern "C" | |
32987 | #endif | |
32988 | /* We use char because int might match the return type of a gcc2 | |
32989 | builtin and then its argument prototype would still apply. */ | |
32990 | char wcslen (); | |
32991 | int | |
32992 | main () | |
32993 | { | |
32994 | wcslen (); | |
32995 | ; | |
32996 | return 0; | |
32997 | } | |
32998 | _ACEOF | |
32999 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33000 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33001 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33002 | ac_status=$? |
ac1cb8d3 VS |
33003 | grep -v '^ *+' conftest.er1 >conftest.err |
33004 | rm -f conftest.er1 | |
33005 | cat conftest.err >&5 | |
a848cd7e SC |
33006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33007 | (exit $ac_status); } && | |
3565d135 RR |
33008 | { ac_try='test -z "$ac_c_werror_flag" |
33009 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33011 | (eval $ac_try) 2>&5 | |
33012 | ac_status=$? | |
33013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33014 | (exit $ac_status); }; } && | |
33015 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33017 | (eval $ac_try) 2>&5 | |
33018 | ac_status=$? | |
33019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33020 | (exit $ac_status); }; }; then | |
33021 | ac_cv_lib_w_wcslen=yes | |
33022 | else | |
33023 | echo "$as_me: failed program was:" >&5 | |
33024 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33025 | ||
33026 | ac_cv_lib_w_wcslen=no | |
33027 | fi | |
ac1cb8d3 VS |
33028 | rm -f conftest.err conftest.$ac_objext \ |
33029 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33030 | LIBS=$ac_check_lib_save_LIBS |
33031 | fi | |
33032 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
33033 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
33034 | if test $ac_cv_lib_w_wcslen = yes; then | |
33035 | ||
33036 | WCHAR_LINK=" -lw" | |
33037 | WCSLEN_FOUND=1 | |
33038 | ||
33039 | fi | |
33040 | ||
33041 | fi | |
33042 | fi | |
33043 | ||
33044 | if test "$WCSLEN_FOUND" = 1; then | |
33045 | cat >>confdefs.h <<\_ACEOF | |
33046 | #define HAVE_WCSLEN 1 | |
33047 | _ACEOF | |
33048 | ||
33049 | fi | |
33050 | ||
efdf6afe | 33051 | if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then |
c92ad099 | 33052 | CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS" |
473276a9 VS |
33053 | fi |
33054 | ||
efdf6afe VZ |
33055 | echo "$as_me:$LINENO: checking for mbstate_t" >&5 |
33056 | echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6 | |
33057 | if test "${ac_cv_type_mbstate_t+set}" = set; then | |
33058 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33059 | else | |
33060 | cat >conftest.$ac_ext <<_ACEOF | |
33061 | /* confdefs.h. */ | |
33062 | _ACEOF | |
33063 | cat confdefs.h >>conftest.$ac_ext | |
33064 | cat >>conftest.$ac_ext <<_ACEOF | |
33065 | /* end confdefs.h. */ | |
33066 | #include <wchar.h> | |
33067 | ||
33068 | int | |
33069 | main () | |
33070 | { | |
33071 | if ((mbstate_t *) 0) | |
33072 | return 0; | |
33073 | if (sizeof (mbstate_t)) | |
33074 | return 0; | |
33075 | ; | |
33076 | return 0; | |
33077 | } | |
33078 | _ACEOF | |
33079 | rm -f conftest.$ac_objext | |
33080 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33081 | (eval $ac_compile) 2>conftest.er1 | |
33082 | ac_status=$? | |
33083 | grep -v '^ *+' conftest.er1 >conftest.err | |
33084 | rm -f conftest.er1 | |
33085 | cat conftest.err >&5 | |
33086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33087 | (exit $ac_status); } && | |
3565d135 RR |
33088 | { ac_try='test -z "$ac_c_werror_flag" |
33089 | || test ! -s conftest.err' | |
efdf6afe VZ |
33090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33091 | (eval $ac_try) 2>&5 | |
33092 | ac_status=$? | |
33093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33094 | (exit $ac_status); }; } && | |
33095 | { ac_try='test -s conftest.$ac_objext' | |
33096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33097 | (eval $ac_try) 2>&5 | |
33098 | ac_status=$? | |
33099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33100 | (exit $ac_status); }; }; then | |
33101 | ac_cv_type_mbstate_t=yes | |
33102 | else | |
33103 | echo "$as_me: failed program was:" >&5 | |
33104 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33105 | ||
33106 | ac_cv_type_mbstate_t=no | |
33107 | fi | |
33108 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33109 | fi | |
33110 | echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 | |
33111 | echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6 | |
33112 | if test $ac_cv_type_mbstate_t = yes; then | |
33113 | ||
33114 | cat >>confdefs.h <<_ACEOF | |
33115 | #define HAVE_MBSTATE_T 1 | |
33116 | _ACEOF | |
33117 | ||
a848cd7e SC |
33118 | |
33119 | for ac_func in wcsrtombs | |
33120 | do | |
33121 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33122 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33123 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33124 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33125 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33126 | else | |
33127 | cat >conftest.$ac_ext <<_ACEOF | |
33128 | /* confdefs.h. */ | |
33129 | _ACEOF | |
33130 | cat confdefs.h >>conftest.$ac_ext | |
33131 | cat >>conftest.$ac_ext <<_ACEOF | |
33132 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33133 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33134 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33135 | #define $ac_func innocuous_$ac_func | |
33136 | ||
a848cd7e SC |
33137 | /* System header to define __stub macros and hopefully few prototypes, |
33138 | which can conflict with char $ac_func (); below. | |
33139 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33140 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33141 | |
a848cd7e SC |
33142 | #ifdef __STDC__ |
33143 | # include <limits.h> | |
33144 | #else | |
33145 | # include <assert.h> | |
33146 | #endif | |
ac1cb8d3 VS |
33147 | |
33148 | #undef $ac_func | |
33149 | ||
a848cd7e SC |
33150 | /* Override any gcc2 internal prototype to avoid an error. */ |
33151 | #ifdef __cplusplus | |
33152 | extern "C" | |
33153 | { | |
33154 | #endif | |
33155 | /* We use char because int might match the return type of a gcc2 | |
33156 | builtin and then its argument prototype would still apply. */ | |
33157 | char $ac_func (); | |
33158 | /* The GNU C library defines this for functions which it implements | |
33159 | to always fail with ENOSYS. Some functions are actually named | |
33160 | something starting with __ and the normal name is an alias. */ | |
33161 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33162 | choke me | |
33163 | #else | |
33164 | char (*f) () = $ac_func; | |
33165 | #endif | |
33166 | #ifdef __cplusplus | |
33167 | } | |
33168 | #endif | |
33169 | ||
33170 | int | |
33171 | main () | |
33172 | { | |
33173 | return f != $ac_func; | |
33174 | ; | |
33175 | return 0; | |
33176 | } | |
33177 | _ACEOF | |
33178 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33179 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33180 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33181 | ac_status=$? |
ac1cb8d3 VS |
33182 | grep -v '^ *+' conftest.er1 >conftest.err |
33183 | rm -f conftest.er1 | |
33184 | cat conftest.err >&5 | |
a848cd7e SC |
33185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33186 | (exit $ac_status); } && | |
3565d135 RR |
33187 | { ac_try='test -z "$ac_c_werror_flag" |
33188 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33190 | (eval $ac_try) 2>&5 | |
33191 | ac_status=$? | |
33192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33193 | (exit $ac_status); }; } && | |
33194 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33196 | (eval $ac_try) 2>&5 | |
33197 | ac_status=$? | |
33198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33199 | (exit $ac_status); }; }; then | |
33200 | eval "$as_ac_var=yes" | |
33201 | else | |
33202 | echo "$as_me: failed program was:" >&5 | |
33203 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33204 | ||
33205 | eval "$as_ac_var=no" | |
33206 | fi | |
ac1cb8d3 VS |
33207 | rm -f conftest.err conftest.$ac_objext \ |
33208 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33209 | fi |
33210 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33211 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33212 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33213 | cat >>confdefs.h <<_ACEOF | |
33214 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33215 | _ACEOF | |
33216 | ||
33217 | fi | |
33218 | done | |
33219 | ||
efdf6afe VZ |
33220 | fi |
33221 | ||
a848cd7e SC |
33222 | else |
33223 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 | |
33224 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
33225 | fi | |
33226 | ||
33227 | ||
33228 | ||
33229 | ac_ext=cc | |
33230 | ac_cpp='$CXXCPP $CPPFLAGS' | |
33231 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33232 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33233 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
33234 | ||
33235 | ||
33236 | ||
4a767dd5 VZ |
33237 | |
33238 | for ac_func in snprintf vsnprintf | |
a848cd7e SC |
33239 | do |
33240 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33241 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33242 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33243 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33244 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33245 | else | |
33246 | cat >conftest.$ac_ext <<_ACEOF | |
33247 | /* confdefs.h. */ | |
33248 | _ACEOF | |
33249 | cat confdefs.h >>conftest.$ac_ext | |
33250 | cat >>conftest.$ac_ext <<_ACEOF | |
33251 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33252 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33253 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33254 | #define $ac_func innocuous_$ac_func | |
33255 | ||
a848cd7e SC |
33256 | /* System header to define __stub macros and hopefully few prototypes, |
33257 | which can conflict with char $ac_func (); below. | |
33258 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33259 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33260 | |
a848cd7e SC |
33261 | #ifdef __STDC__ |
33262 | # include <limits.h> | |
33263 | #else | |
33264 | # include <assert.h> | |
33265 | #endif | |
ac1cb8d3 VS |
33266 | |
33267 | #undef $ac_func | |
33268 | ||
a848cd7e SC |
33269 | /* Override any gcc2 internal prototype to avoid an error. */ |
33270 | #ifdef __cplusplus | |
33271 | extern "C" | |
33272 | { | |
33273 | #endif | |
33274 | /* We use char because int might match the return type of a gcc2 | |
33275 | builtin and then its argument prototype would still apply. */ | |
33276 | char $ac_func (); | |
33277 | /* The GNU C library defines this for functions which it implements | |
33278 | to always fail with ENOSYS. Some functions are actually named | |
33279 | something starting with __ and the normal name is an alias. */ | |
33280 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33281 | choke me | |
33282 | #else | |
33283 | char (*f) () = $ac_func; | |
33284 | #endif | |
33285 | #ifdef __cplusplus | |
33286 | } | |
33287 | #endif | |
33288 | ||
33289 | int | |
33290 | main () | |
33291 | { | |
33292 | return f != $ac_func; | |
33293 | ; | |
33294 | return 0; | |
33295 | } | |
33296 | _ACEOF | |
33297 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33298 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33299 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33300 | ac_status=$? |
ac1cb8d3 VS |
33301 | grep -v '^ *+' conftest.er1 >conftest.err |
33302 | rm -f conftest.er1 | |
33303 | cat conftest.err >&5 | |
a848cd7e SC |
33304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33305 | (exit $ac_status); } && | |
3565d135 RR |
33306 | { ac_try='test -z "$ac_cxx_werror_flag" |
33307 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33309 | (eval $ac_try) 2>&5 | |
33310 | ac_status=$? | |
33311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33312 | (exit $ac_status); }; } && | |
33313 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33315 | (eval $ac_try) 2>&5 | |
33316 | ac_status=$? | |
33317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33318 | (exit $ac_status); }; }; then | |
33319 | eval "$as_ac_var=yes" | |
33320 | else | |
33321 | echo "$as_me: failed program was:" >&5 | |
33322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33323 | ||
33324 | eval "$as_ac_var=no" | |
33325 | fi | |
ac1cb8d3 VS |
33326 | rm -f conftest.err conftest.$ac_objext \ |
33327 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33328 | fi |
33329 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33330 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33331 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33332 | cat >>confdefs.h <<_ACEOF | |
33333 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33334 | _ACEOF | |
33335 | ||
33336 | fi | |
33337 | done | |
33338 | ||
33339 | ||
33340 | if test "$ac_cv_func_vsnprintf" = "yes"; then | |
33341 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 | |
33342 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
33343 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
33344 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33345 | else | |
33346 | ||
efdf6afe | 33347 | cat >conftest.$ac_ext <<_ACEOF |
a848cd7e SC |
33348 | /* confdefs.h. */ |
33349 | _ACEOF | |
33350 | cat confdefs.h >>conftest.$ac_ext | |
33351 | cat >>conftest.$ac_ext <<_ACEOF | |
33352 | /* end confdefs.h. */ | |
33353 | ||
33354 | #include <stdio.h> | |
33355 | #include <stdarg.h> | |
efdf6afe VZ |
33356 | #ifdef __MSL__ |
33357 | #if __MSL__ >= 0x6000 | |
33358 | namespace std {} | |
33359 | using namespace std; | |
33360 | #endif | |
33361 | #endif | |
a848cd7e SC |
33362 | |
33363 | int | |
33364 | main () | |
33365 | { | |
33366 | ||
33367 | char *buf; | |
33368 | va_list ap; | |
62fa8b3a | 33369 | vsnprintf(buf, 10u, "%s", ap); |
c122b164 DE |
33370 | |
33371 | ; | |
33372 | return 0; | |
33373 | } | |
33374 | _ACEOF | |
33375 | rm -f conftest.$ac_objext | |
33376 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33377 | (eval $ac_compile) 2>conftest.er1 | |
33378 | ac_status=$? | |
33379 | grep -v '^ *+' conftest.er1 >conftest.err | |
33380 | rm -f conftest.er1 | |
33381 | cat conftest.err >&5 | |
33382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33383 | (exit $ac_status); } && | |
3565d135 RR |
33384 | { ac_try='test -z "$ac_cxx_werror_flag" |
33385 | || test ! -s conftest.err' | |
c122b164 DE |
33386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33387 | (eval $ac_try) 2>&5 | |
33388 | ac_status=$? | |
33389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33390 | (exit $ac_status); }; } && | |
33391 | { ac_try='test -s conftest.$ac_objext' | |
33392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33393 | (eval $ac_try) 2>&5 | |
33394 | ac_status=$? | |
33395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33396 | (exit $ac_status); }; }; then | |
33397 | wx_cv_func_vsnprintf_decl=yes | |
33398 | else | |
33399 | echo "$as_me: failed program was:" >&5 | |
33400 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33401 | ||
a848cd7e SC |
33402 | wx_cv_func_vsnprintf_decl=no |
33403 | ||
33404 | fi | |
ac1cb8d3 | 33405 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33406 | |
33407 | ||
33408 | fi | |
33409 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
33410 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
33411 | ||
33412 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
33413 | cat >>confdefs.h <<\_ACEOF | |
33414 | #define HAVE_VSNPRINTF_DECL 1 | |
33415 | _ACEOF | |
33416 | ||
62fa8b3a MW |
33417 | |
33418 | echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5 | |
33419 | echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6 | |
33420 | if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then | |
33421 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33422 | else | |
33423 | ||
33424 | cat >conftest.$ac_ext <<_ACEOF | |
33425 | /* confdefs.h. */ | |
33426 | _ACEOF | |
33427 | cat confdefs.h >>conftest.$ac_ext | |
33428 | cat >>conftest.$ac_ext <<_ACEOF | |
33429 | /* end confdefs.h. */ | |
33430 | ||
33431 | #include <stdio.h> | |
33432 | #include <stdarg.h> | |
33433 | #ifdef __MSL__ | |
33434 | #if __MSL__ >= 0x6000 | |
33435 | namespace std {} | |
33436 | using namespace std; | |
33437 | #endif | |
33438 | #endif | |
33439 | ||
33440 | int | |
33441 | main () | |
33442 | { | |
33443 | ||
33444 | char *buf; | |
33445 | va_list ap; | |
33446 | const char *fmt = "%s"; | |
33447 | vsnprintf(buf, 10u, fmt, ap); | |
33448 | ||
33449 | ; | |
33450 | return 0; | |
33451 | } | |
33452 | _ACEOF | |
33453 | rm -f conftest.$ac_objext | |
33454 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33455 | (eval $ac_compile) 2>conftest.er1 | |
33456 | ac_status=$? | |
33457 | grep -v '^ *+' conftest.er1 >conftest.err | |
33458 | rm -f conftest.er1 | |
33459 | cat conftest.err >&5 | |
33460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33461 | (exit $ac_status); } && | |
3565d135 RR |
33462 | { ac_try='test -z "$ac_cxx_werror_flag" |
33463 | || test ! -s conftest.err' | |
62fa8b3a MW |
33464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33465 | (eval $ac_try) 2>&5 | |
33466 | ac_status=$? | |
33467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33468 | (exit $ac_status); }; } && | |
33469 | { ac_try='test -s conftest.$ac_objext' | |
33470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33471 | (eval $ac_try) 2>&5 | |
33472 | ac_status=$? | |
33473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33474 | (exit $ac_status); }; }; then | |
33475 | wx_cv_func_broken_vsnprintf_decl=no | |
33476 | else | |
33477 | echo "$as_me: failed program was:" >&5 | |
33478 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33479 | ||
33480 | wx_cv_func_broken_vsnprintf_decl=yes | |
33481 | ||
33482 | fi | |
33483 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33484 | ||
33485 | ||
33486 | fi | |
33487 | echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5 | |
33488 | echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6 | |
33489 | ||
33490 | if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then | |
33491 | cat >>confdefs.h <<\_ACEOF | |
33492 | #define HAVE_BROKEN_VSNPRINTF_DECL 1 | |
33493 | _ACEOF | |
33494 | ||
33495 | fi | |
a848cd7e SC |
33496 | fi |
33497 | fi | |
33498 | ||
4a767dd5 VZ |
33499 | if test "$ac_cv_func_snprintf" = "yes"; then |
33500 | echo "$as_me:$LINENO: checking for snprintf declaration" >&5 | |
33501 | echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6 | |
33502 | if test "${wx_cv_func_snprintf_decl+set}" = set; then | |
33503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33504 | else | |
33505 | ||
33506 | cat >conftest.$ac_ext <<_ACEOF | |
33507 | /* confdefs.h. */ | |
33508 | _ACEOF | |
33509 | cat confdefs.h >>conftest.$ac_ext | |
33510 | cat >>conftest.$ac_ext <<_ACEOF | |
33511 | /* end confdefs.h. */ | |
33512 | ||
33513 | #include <stdio.h> | |
33514 | #include <stdarg.h> | |
33515 | #ifdef __MSL__ | |
33516 | #if __MSL__ >= 0x6000 | |
33517 | namespace std {} | |
33518 | using namespace std; | |
33519 | #endif | |
33520 | #endif | |
33521 | ||
33522 | int | |
33523 | main () | |
33524 | { | |
33525 | ||
33526 | char *buf; | |
62fa8b3a | 33527 | snprintf(buf, 10u, "%s", "wx"); |
4a767dd5 VZ |
33528 | |
33529 | ; | |
33530 | return 0; | |
33531 | } | |
33532 | _ACEOF | |
33533 | rm -f conftest.$ac_objext | |
33534 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33535 | (eval $ac_compile) 2>conftest.er1 | |
33536 | ac_status=$? | |
33537 | grep -v '^ *+' conftest.er1 >conftest.err | |
33538 | rm -f conftest.er1 | |
33539 | cat conftest.err >&5 | |
33540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33541 | (exit $ac_status); } && | |
3565d135 RR |
33542 | { ac_try='test -z "$ac_cxx_werror_flag" |
33543 | || test ! -s conftest.err' | |
4a767dd5 VZ |
33544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33545 | (eval $ac_try) 2>&5 | |
33546 | ac_status=$? | |
33547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33548 | (exit $ac_status); }; } && | |
33549 | { ac_try='test -s conftest.$ac_objext' | |
33550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33551 | (eval $ac_try) 2>&5 | |
33552 | ac_status=$? | |
33553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33554 | (exit $ac_status); }; }; then | |
33555 | wx_cv_func_snprintf_decl=yes | |
33556 | else | |
33557 | echo "$as_me: failed program was:" >&5 | |
33558 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33559 | ||
33560 | wx_cv_func_snprintf_decl=no | |
33561 | ||
33562 | fi | |
33563 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33564 | ||
33565 | ||
33566 | fi | |
33567 | echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5 | |
33568 | echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6 | |
33569 | ||
33570 | if test "$wx_cv_func_snprintf_decl" = "yes"; then | |
33571 | cat >>confdefs.h <<\_ACEOF | |
33572 | #define HAVE_SNPRINTF_DECL 1 | |
33573 | _ACEOF | |
33574 | ||
62fa8b3a MW |
33575 | |
33576 | echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5 | |
33577 | echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6 | |
33578 | if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then | |
33579 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33580 | else | |
33581 | ||
33582 | cat >conftest.$ac_ext <<_ACEOF | |
33583 | /* confdefs.h. */ | |
33584 | _ACEOF | |
33585 | cat confdefs.h >>conftest.$ac_ext | |
33586 | cat >>conftest.$ac_ext <<_ACEOF | |
33587 | /* end confdefs.h. */ | |
33588 | ||
33589 | #include <stdio.h> | |
33590 | #include <stdarg.h> | |
33591 | #ifdef __MSL__ | |
33592 | #if __MSL__ >= 0x6000 | |
33593 | namespace std {} | |
33594 | using namespace std; | |
33595 | #endif | |
33596 | #endif | |
33597 | ||
33598 | int | |
33599 | main () | |
33600 | { | |
33601 | ||
33602 | char *buf; | |
33603 | const char *fmt = "%s"; | |
33604 | snprintf(buf, 10u, fmt, "wx"); | |
33605 | ||
33606 | ; | |
33607 | return 0; | |
33608 | } | |
33609 | _ACEOF | |
33610 | rm -f conftest.$ac_objext | |
33611 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33612 | (eval $ac_compile) 2>conftest.er1 | |
33613 | ac_status=$? | |
33614 | grep -v '^ *+' conftest.er1 >conftest.err | |
33615 | rm -f conftest.er1 | |
33616 | cat conftest.err >&5 | |
33617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33618 | (exit $ac_status); } && | |
3565d135 RR |
33619 | { ac_try='test -z "$ac_cxx_werror_flag" |
33620 | || test ! -s conftest.err' | |
62fa8b3a MW |
33621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33622 | (eval $ac_try) 2>&5 | |
33623 | ac_status=$? | |
33624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33625 | (exit $ac_status); }; } && | |
33626 | { ac_try='test -s conftest.$ac_objext' | |
33627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33628 | (eval $ac_try) 2>&5 | |
33629 | ac_status=$? | |
33630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33631 | (exit $ac_status); }; }; then | |
33632 | wx_cv_func_broken_snprintf_decl=no | |
33633 | else | |
33634 | echo "$as_me: failed program was:" >&5 | |
33635 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33636 | ||
33637 | wx_cv_func_broken_snprintf_decl=yes | |
33638 | ||
33639 | fi | |
33640 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33641 | ||
33642 | ||
33643 | fi | |
33644 | echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5 | |
33645 | echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6 | |
33646 | ||
33647 | if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then | |
33648 | cat >>confdefs.h <<\_ACEOF | |
33649 | #define HAVE_BROKEN_SNPRINTF_DECL 1 | |
33650 | _ACEOF | |
33651 | ||
33652 | fi | |
4a767dd5 VZ |
33653 | fi |
33654 | fi | |
33655 | ||
a848cd7e SC |
33656 | if test "$wxUSE_UNICODE" = yes; then |
33657 | ||
33658 | ||
33659 | ||
fbe47c7b VS |
33660 | |
33661 | ||
33662 | ||
33663 | for ac_func in wputc wputchar putws fputws wprintf vswprintf | |
a848cd7e SC |
33664 | do |
33665 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33666 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33667 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33668 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33670 | else | |
33671 | cat >conftest.$ac_ext <<_ACEOF | |
33672 | /* confdefs.h. */ | |
33673 | _ACEOF | |
33674 | cat confdefs.h >>conftest.$ac_ext | |
33675 | cat >>conftest.$ac_ext <<_ACEOF | |
33676 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
33677 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
33678 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33679 | #define $ac_func innocuous_$ac_func | |
33680 | ||
a848cd7e SC |
33681 | /* System header to define __stub macros and hopefully few prototypes, |
33682 | which can conflict with char $ac_func (); below. | |
33683 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33684 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 33685 | |
a848cd7e SC |
33686 | #ifdef __STDC__ |
33687 | # include <limits.h> | |
33688 | #else | |
33689 | # include <assert.h> | |
33690 | #endif | |
ac1cb8d3 VS |
33691 | |
33692 | #undef $ac_func | |
33693 | ||
a848cd7e SC |
33694 | /* Override any gcc2 internal prototype to avoid an error. */ |
33695 | #ifdef __cplusplus | |
33696 | extern "C" | |
33697 | { | |
33698 | #endif | |
33699 | /* We use char because int might match the return type of a gcc2 | |
33700 | builtin and then its argument prototype would still apply. */ | |
33701 | char $ac_func (); | |
33702 | /* The GNU C library defines this for functions which it implements | |
33703 | to always fail with ENOSYS. Some functions are actually named | |
33704 | something starting with __ and the normal name is an alias. */ | |
33705 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33706 | choke me | |
33707 | #else | |
33708 | char (*f) () = $ac_func; | |
33709 | #endif | |
33710 | #ifdef __cplusplus | |
33711 | } | |
33712 | #endif | |
33713 | ||
33714 | int | |
33715 | main () | |
33716 | { | |
33717 | return f != $ac_func; | |
33718 | ; | |
33719 | return 0; | |
33720 | } | |
33721 | _ACEOF | |
33722 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33723 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 33724 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 33725 | ac_status=$? |
ac1cb8d3 VS |
33726 | grep -v '^ *+' conftest.er1 >conftest.err |
33727 | rm -f conftest.er1 | |
33728 | cat conftest.err >&5 | |
a848cd7e SC |
33729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33730 | (exit $ac_status); } && | |
3565d135 RR |
33731 | { ac_try='test -z "$ac_cxx_werror_flag" |
33732 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33734 | (eval $ac_try) 2>&5 | |
33735 | ac_status=$? | |
33736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33737 | (exit $ac_status); }; } && | |
33738 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
33739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33740 | (eval $ac_try) 2>&5 | |
33741 | ac_status=$? | |
33742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33743 | (exit $ac_status); }; }; then | |
33744 | eval "$as_ac_var=yes" | |
33745 | else | |
33746 | echo "$as_me: failed program was:" >&5 | |
33747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33748 | ||
33749 | eval "$as_ac_var=no" | |
33750 | fi | |
ac1cb8d3 VS |
33751 | rm -f conftest.err conftest.$ac_objext \ |
33752 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
33753 | fi |
33754 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33755 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33756 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33757 | cat >>confdefs.h <<_ACEOF | |
33758 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33759 | _ACEOF | |
33760 | ||
33761 | fi | |
33762 | done | |
33763 | ||
33764 | ||
33765 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 | |
33766 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
33767 | cat >conftest.$ac_ext <<_ACEOF | |
33768 | /* confdefs.h. */ | |
33769 | _ACEOF | |
33770 | cat confdefs.h >>conftest.$ac_ext | |
33771 | cat >>conftest.$ac_ext <<_ACEOF | |
33772 | /* end confdefs.h. */ | |
33773 | #include <wchar.h> | |
33774 | int | |
33775 | main () | |
33776 | { | |
33777 | &_vsnwprintf; | |
33778 | ; | |
33779 | return 0; | |
33780 | } | |
33781 | _ACEOF | |
33782 | rm -f conftest.$ac_objext | |
33783 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 33784 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 33785 | ac_status=$? |
ac1cb8d3 VS |
33786 | grep -v '^ *+' conftest.er1 >conftest.err |
33787 | rm -f conftest.er1 | |
33788 | cat conftest.err >&5 | |
a848cd7e SC |
33789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33790 | (exit $ac_status); } && | |
3565d135 RR |
33791 | { ac_try='test -z "$ac_cxx_werror_flag" |
33792 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
33793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33794 | (eval $ac_try) 2>&5 | |
33795 | ac_status=$? | |
33796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33797 | (exit $ac_status); }; } && | |
33798 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
33799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33800 | (eval $ac_try) 2>&5 | |
33801 | ac_status=$? | |
33802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33803 | (exit $ac_status); }; }; then | |
33804 | echo "$as_me:$LINENO: result: yes" >&5 | |
33805 | echo "${ECHO_T}yes" >&6 | |
33806 | cat >>confdefs.h <<\_ACEOF | |
33807 | #define HAVE__VSNWPRINTF 1 | |
33808 | _ACEOF | |
33809 | ||
33810 | else | |
33811 | echo "$as_me: failed program was:" >&5 | |
33812 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33813 | ||
33814 | echo "$as_me:$LINENO: result: no" >&5 | |
33815 | echo "${ECHO_T}no" >&6 | |
33816 | fi | |
ac1cb8d3 | 33817 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext; |
a848cd7e SC |
33818 | fi |
33819 | ||
33820 | ac_ext=c | |
33821 | ac_cpp='$CPP $CPPFLAGS' | |
33822 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33823 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33824 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
33825 | ||
33826 | ||
6ebeb4c7 VZ |
33827 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
33828 | ||
33829 | for ac_func in fnmatch | |
33830 | do | |
33831 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33832 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33833 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33834 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33835 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33836 | else | |
33837 | cat >conftest.$ac_ext <<_ACEOF | |
33838 | /* confdefs.h. */ | |
33839 | _ACEOF | |
33840 | cat confdefs.h >>conftest.$ac_ext | |
33841 | cat >>conftest.$ac_ext <<_ACEOF | |
33842 | /* end confdefs.h. */ | |
33843 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
33844 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33845 | #define $ac_func innocuous_$ac_func | |
33846 | ||
33847 | /* System header to define __stub macros and hopefully few prototypes, | |
33848 | which can conflict with char $ac_func (); below. | |
33849 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33850 | <limits.h> exists even on freestanding compilers. */ | |
33851 | ||
33852 | #ifdef __STDC__ | |
33853 | # include <limits.h> | |
33854 | #else | |
33855 | # include <assert.h> | |
33856 | #endif | |
33857 | ||
33858 | #undef $ac_func | |
33859 | ||
33860 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33861 | #ifdef __cplusplus | |
33862 | extern "C" | |
33863 | { | |
33864 | #endif | |
33865 | /* We use char because int might match the return type of a gcc2 | |
33866 | builtin and then its argument prototype would still apply. */ | |
33867 | char $ac_func (); | |
33868 | /* The GNU C library defines this for functions which it implements | |
33869 | to always fail with ENOSYS. Some functions are actually named | |
33870 | something starting with __ and the normal name is an alias. */ | |
33871 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33872 | choke me | |
33873 | #else | |
33874 | char (*f) () = $ac_func; | |
33875 | #endif | |
33876 | #ifdef __cplusplus | |
33877 | } | |
33878 | #endif | |
33879 | ||
33880 | int | |
33881 | main () | |
33882 | { | |
33883 | return f != $ac_func; | |
33884 | ; | |
33885 | return 0; | |
33886 | } | |
33887 | _ACEOF | |
33888 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33889 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33890 | (eval $ac_link) 2>conftest.er1 | |
33891 | ac_status=$? | |
33892 | grep -v '^ *+' conftest.er1 >conftest.err | |
33893 | rm -f conftest.er1 | |
33894 | cat conftest.err >&5 | |
33895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33896 | (exit $ac_status); } && | |
3565d135 RR |
33897 | { ac_try='test -z "$ac_c_werror_flag" |
33898 | || test ! -s conftest.err' | |
6ebeb4c7 VZ |
33899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33900 | (eval $ac_try) 2>&5 | |
33901 | ac_status=$? | |
33902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33903 | (exit $ac_status); }; } && | |
33904 | { ac_try='test -s conftest$ac_exeext' | |
33905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33906 | (eval $ac_try) 2>&5 | |
33907 | ac_status=$? | |
33908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33909 | (exit $ac_status); }; }; then | |
33910 | eval "$as_ac_var=yes" | |
33911 | else | |
33912 | echo "$as_me: failed program was:" >&5 | |
33913 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33914 | ||
33915 | eval "$as_ac_var=no" | |
33916 | fi | |
33917 | rm -f conftest.err conftest.$ac_objext \ | |
33918 | conftest$ac_exeext conftest.$ac_ext | |
33919 | fi | |
33920 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33921 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33922 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33923 | cat >>confdefs.h <<_ACEOF | |
33924 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33925 | _ACEOF | |
33926 | ||
33927 | fi | |
33928 | done | |
33929 | ||
33930 | fi | |
33931 | ||
33932 | if test "$wxUSE_FILE" = "yes"; then | |
33933 | ||
33934 | for ac_func in fsync | |
33935 | do | |
33936 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
33937 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33938 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33939 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33940 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33941 | else | |
33942 | cat >conftest.$ac_ext <<_ACEOF | |
33943 | /* confdefs.h. */ | |
33944 | _ACEOF | |
33945 | cat confdefs.h >>conftest.$ac_ext | |
33946 | cat >>conftest.$ac_ext <<_ACEOF | |
33947 | /* end confdefs.h. */ | |
33948 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
33949 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
33950 | #define $ac_func innocuous_$ac_func | |
33951 | ||
33952 | /* System header to define __stub macros and hopefully few prototypes, | |
33953 | which can conflict with char $ac_func (); below. | |
33954 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33955 | <limits.h> exists even on freestanding compilers. */ | |
33956 | ||
33957 | #ifdef __STDC__ | |
33958 | # include <limits.h> | |
33959 | #else | |
33960 | # include <assert.h> | |
33961 | #endif | |
33962 | ||
33963 | #undef $ac_func | |
33964 | ||
33965 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33966 | #ifdef __cplusplus | |
33967 | extern "C" | |
33968 | { | |
33969 | #endif | |
33970 | /* We use char because int might match the return type of a gcc2 | |
33971 | builtin and then its argument prototype would still apply. */ | |
33972 | char $ac_func (); | |
33973 | /* The GNU C library defines this for functions which it implements | |
33974 | to always fail with ENOSYS. Some functions are actually named | |
33975 | something starting with __ and the normal name is an alias. */ | |
33976 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33977 | choke me | |
33978 | #else | |
33979 | char (*f) () = $ac_func; | |
33980 | #endif | |
33981 | #ifdef __cplusplus | |
33982 | } | |
33983 | #endif | |
33984 | ||
33985 | int | |
33986 | main () | |
33987 | { | |
33988 | return f != $ac_func; | |
33989 | ; | |
33990 | return 0; | |
33991 | } | |
33992 | _ACEOF | |
33993 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33994 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33995 | (eval $ac_link) 2>conftest.er1 | |
33996 | ac_status=$? | |
33997 | grep -v '^ *+' conftest.er1 >conftest.err | |
33998 | rm -f conftest.er1 | |
33999 | cat conftest.err >&5 | |
34000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34001 | (exit $ac_status); } && | |
3565d135 RR |
34002 | { ac_try='test -z "$ac_c_werror_flag" |
34003 | || test ! -s conftest.err' | |
6ebeb4c7 VZ |
34004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34005 | (eval $ac_try) 2>&5 | |
34006 | ac_status=$? | |
34007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34008 | (exit $ac_status); }; } && | |
34009 | { ac_try='test -s conftest$ac_exeext' | |
34010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34011 | (eval $ac_try) 2>&5 | |
34012 | ac_status=$? | |
34013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34014 | (exit $ac_status); }; }; then | |
34015 | eval "$as_ac_var=yes" | |
34016 | else | |
34017 | echo "$as_me: failed program was:" >&5 | |
34018 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34019 | ||
34020 | eval "$as_ac_var=no" | |
34021 | fi | |
34022 | rm -f conftest.err conftest.$ac_objext \ | |
34023 | conftest$ac_exeext conftest.$ac_ext | |
34024 | fi | |
34025 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34026 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34027 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34028 | cat >>confdefs.h <<_ACEOF | |
34029 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34030 | _ACEOF | |
34031 | ||
34032 | fi | |
34033 | done | |
34034 | ||
34035 | fi | |
a848cd7e SC |
34036 | |
34037 | ||
34038 | if test "$TOOLKIT" != "MSW"; then | |
34039 | ||
34040 | ||
34041 | ||
34042 | ||
34043 | ac_ext=cc | |
34044 | ac_cpp='$CXXCPP $CPPFLAGS' | |
34045 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34046 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34047 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
34048 | ||
34049 | ||
34050 | ||
34051 | ||
34052 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
34053 | if test "${with_libiconv_prefix+set}" = set; then | |
34054 | withval="$with_libiconv_prefix" | |
34055 | ||
34056 | for dir in `echo "$withval" | tr : ' '`; do | |
34057 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
34058 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
34059 | done | |
34060 | ||
34061 | fi; | |
34062 | ||
34063 | echo "$as_me:$LINENO: checking for iconv" >&5 | |
34064 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
34065 | if test "${am_cv_func_iconv+set}" = set; then | |
34066 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34067 | else | |
34068 | ||
34069 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
34070 | am_cv_lib_iconv=no | |
34071 | cat >conftest.$ac_ext <<_ACEOF | |
34072 | /* confdefs.h. */ | |
34073 | _ACEOF | |
34074 | cat confdefs.h >>conftest.$ac_ext | |
34075 | cat >>conftest.$ac_ext <<_ACEOF | |
34076 | /* end confdefs.h. */ | |
34077 | #include <stdlib.h> | |
34078 | #include <iconv.h> | |
34079 | int | |
34080 | main () | |
34081 | { | |
34082 | iconv_t cd = iconv_open("",""); | |
34083 | iconv(cd,NULL,NULL,NULL,NULL); | |
34084 | iconv_close(cd); | |
34085 | ; | |
34086 | return 0; | |
34087 | } | |
34088 | _ACEOF | |
34089 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34090 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34091 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34092 | ac_status=$? |
ac1cb8d3 VS |
34093 | grep -v '^ *+' conftest.er1 >conftest.err |
34094 | rm -f conftest.er1 | |
34095 | cat conftest.err >&5 | |
a848cd7e SC |
34096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34097 | (exit $ac_status); } && | |
3565d135 RR |
34098 | { ac_try='test -z "$ac_cxx_werror_flag" |
34099 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34101 | (eval $ac_try) 2>&5 | |
34102 | ac_status=$? | |
34103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34104 | (exit $ac_status); }; } && | |
34105 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
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); }; }; then | |
34111 | am_cv_func_iconv=yes | |
34112 | else | |
34113 | echo "$as_me: failed program was:" >&5 | |
34114 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34115 | ||
34116 | fi | |
ac1cb8d3 VS |
34117 | rm -f conftest.err conftest.$ac_objext \ |
34118 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34119 | if test "$am_cv_func_iconv" != yes; then |
34120 | am_save_LIBS="$LIBS" | |
34121 | LIBS="$LIBS -liconv" | |
34122 | cat >conftest.$ac_ext <<_ACEOF | |
34123 | /* confdefs.h. */ | |
34124 | _ACEOF | |
34125 | cat confdefs.h >>conftest.$ac_ext | |
34126 | cat >>conftest.$ac_ext <<_ACEOF | |
34127 | /* end confdefs.h. */ | |
34128 | #include <stdlib.h> | |
34129 | #include <iconv.h> | |
34130 | int | |
34131 | main () | |
34132 | { | |
34133 | iconv_t cd = iconv_open("",""); | |
34134 | iconv(cd,NULL,NULL,NULL,NULL); | |
34135 | iconv_close(cd); | |
34136 | ; | |
34137 | return 0; | |
34138 | } | |
34139 | _ACEOF | |
34140 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34141 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34142 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34143 | ac_status=$? |
ac1cb8d3 VS |
34144 | grep -v '^ *+' conftest.er1 >conftest.err |
34145 | rm -f conftest.er1 | |
34146 | cat conftest.err >&5 | |
a848cd7e SC |
34147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34148 | (exit $ac_status); } && | |
3565d135 RR |
34149 | { ac_try='test -z "$ac_cxx_werror_flag" |
34150 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34152 | (eval $ac_try) 2>&5 | |
34153 | ac_status=$? | |
34154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34155 | (exit $ac_status); }; } && | |
34156 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34158 | (eval $ac_try) 2>&5 | |
34159 | ac_status=$? | |
34160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34161 | (exit $ac_status); }; }; then | |
34162 | am_cv_lib_iconv=yes | |
34163 | am_cv_func_iconv=yes | |
34164 | else | |
34165 | echo "$as_me: failed program was:" >&5 | |
34166 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34167 | ||
34168 | fi | |
ac1cb8d3 VS |
34169 | rm -f conftest.err conftest.$ac_objext \ |
34170 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34171 | LIBS="$am_save_LIBS" |
34172 | fi | |
34173 | ||
34174 | fi | |
34175 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
34176 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
34177 | if test "$am_cv_func_iconv" = yes; then | |
34178 | ||
34179 | cat >>confdefs.h <<\_ACEOF | |
34180 | #define HAVE_ICONV 1 | |
34181 | _ACEOF | |
34182 | ||
34183 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 | |
34184 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
34185 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
34186 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34187 | else | |
34188 | cat >conftest.$ac_ext <<_ACEOF | |
34189 | /* confdefs.h. */ | |
34190 | _ACEOF | |
34191 | cat confdefs.h >>conftest.$ac_ext | |
34192 | cat >>conftest.$ac_ext <<_ACEOF | |
34193 | /* end confdefs.h. */ | |
34194 | ||
34195 | #include <stdlib.h> | |
34196 | #include <iconv.h> | |
34197 | extern | |
34198 | #ifdef __cplusplus | |
34199 | "C" | |
34200 | #endif | |
34201 | #if defined(__STDC__) || defined(__cplusplus) | |
34202 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
34203 | #else | |
34204 | size_t iconv(); | |
34205 | #endif | |
34206 | ||
34207 | int | |
34208 | main () | |
34209 | { | |
34210 | ||
34211 | ; | |
34212 | return 0; | |
34213 | } | |
34214 | _ACEOF | |
34215 | rm -f conftest.$ac_objext | |
34216 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34217 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34218 | ac_status=$? |
ac1cb8d3 VS |
34219 | grep -v '^ *+' conftest.er1 >conftest.err |
34220 | rm -f conftest.er1 | |
34221 | cat conftest.err >&5 | |
a848cd7e SC |
34222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34223 | (exit $ac_status); } && | |
3565d135 RR |
34224 | { ac_try='test -z "$ac_cxx_werror_flag" |
34225 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34227 | (eval $ac_try) 2>&5 | |
34228 | ac_status=$? | |
34229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34230 | (exit $ac_status); }; } && | |
34231 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34233 | (eval $ac_try) 2>&5 | |
34234 | ac_status=$? | |
34235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34236 | (exit $ac_status); }; }; then | |
34237 | wx_cv_func_iconv_const="no" | |
34238 | else | |
34239 | echo "$as_me: failed program was:" >&5 | |
34240 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34241 | ||
34242 | wx_cv_func_iconv_const="yes" | |
34243 | ||
34244 | fi | |
ac1cb8d3 | 34245 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34246 | |
34247 | fi | |
34248 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
34249 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
34250 | ||
34251 | iconv_const= | |
34252 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
34253 | iconv_const="const" | |
34254 | fi | |
34255 | ||
34256 | ||
34257 | cat >>confdefs.h <<_ACEOF | |
34258 | #define ICONV_CONST $iconv_const | |
34259 | _ACEOF | |
34260 | ||
34261 | fi | |
34262 | LIBICONV= | |
34263 | if test "$am_cv_lib_iconv" = yes; then | |
34264 | LIBICONV="-liconv" | |
34265 | fi | |
34266 | ||
34267 | ||
34268 | LIBS="$LIBICONV $LIBS" | |
34269 | ac_ext=c | |
34270 | ac_cpp='$CPP $CPPFLAGS' | |
34271 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34272 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34273 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
34274 | ||
34275 | ||
34276 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
34277 | ||
34278 | for ac_func in sigaction | |
34279 | do | |
34280 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34281 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34282 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34283 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34284 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34285 | else | |
34286 | cat >conftest.$ac_ext <<_ACEOF | |
34287 | /* confdefs.h. */ | |
34288 | _ACEOF | |
34289 | cat confdefs.h >>conftest.$ac_ext | |
34290 | cat >>conftest.$ac_ext <<_ACEOF | |
34291 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34292 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34293 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34294 | #define $ac_func innocuous_$ac_func | |
34295 | ||
a848cd7e SC |
34296 | /* System header to define __stub macros and hopefully few prototypes, |
34297 | which can conflict with char $ac_func (); below. | |
34298 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34299 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34300 | |
a848cd7e SC |
34301 | #ifdef __STDC__ |
34302 | # include <limits.h> | |
34303 | #else | |
34304 | # include <assert.h> | |
34305 | #endif | |
ac1cb8d3 VS |
34306 | |
34307 | #undef $ac_func | |
34308 | ||
a848cd7e SC |
34309 | /* Override any gcc2 internal prototype to avoid an error. */ |
34310 | #ifdef __cplusplus | |
34311 | extern "C" | |
34312 | { | |
34313 | #endif | |
34314 | /* We use char because int might match the return type of a gcc2 | |
34315 | builtin and then its argument prototype would still apply. */ | |
34316 | char $ac_func (); | |
34317 | /* The GNU C library defines this for functions which it implements | |
34318 | to always fail with ENOSYS. Some functions are actually named | |
34319 | something starting with __ and the normal name is an alias. */ | |
34320 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34321 | choke me | |
34322 | #else | |
34323 | char (*f) () = $ac_func; | |
34324 | #endif | |
34325 | #ifdef __cplusplus | |
34326 | } | |
34327 | #endif | |
34328 | ||
34329 | int | |
34330 | main () | |
34331 | { | |
34332 | return f != $ac_func; | |
34333 | ; | |
34334 | return 0; | |
34335 | } | |
34336 | _ACEOF | |
34337 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34338 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34339 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34340 | ac_status=$? |
ac1cb8d3 VS |
34341 | grep -v '^ *+' conftest.er1 >conftest.err |
34342 | rm -f conftest.er1 | |
34343 | cat conftest.err >&5 | |
a848cd7e SC |
34344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34345 | (exit $ac_status); } && | |
3565d135 RR |
34346 | { ac_try='test -z "$ac_c_werror_flag" |
34347 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34349 | (eval $ac_try) 2>&5 | |
34350 | ac_status=$? | |
34351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34352 | (exit $ac_status); }; } && | |
34353 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34355 | (eval $ac_try) 2>&5 | |
34356 | ac_status=$? | |
34357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34358 | (exit $ac_status); }; }; then | |
34359 | eval "$as_ac_var=yes" | |
34360 | else | |
34361 | echo "$as_me: failed program was:" >&5 | |
34362 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34363 | ||
34364 | eval "$as_ac_var=no" | |
34365 | fi | |
ac1cb8d3 VS |
34366 | rm -f conftest.err conftest.$ac_objext \ |
34367 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34368 | fi |
34369 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34370 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34371 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34372 | cat >>confdefs.h <<_ACEOF | |
34373 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34374 | _ACEOF | |
34375 | ||
34376 | fi | |
34377 | done | |
34378 | ||
34379 | ||
34380 | if test "$ac_cv_func_sigaction" = "no"; then | |
34381 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 | |
34382 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
34383 | wxUSE_ON_FATAL_EXCEPTION=no | |
34384 | fi | |
34385 | ||
34386 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
34387 | ||
34388 | ||
34389 | ac_ext=cc | |
34390 | ac_cpp='$CXXCPP $CPPFLAGS' | |
34391 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34392 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34393 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
34394 | ||
34395 | ||
34396 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 | |
34397 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
34398 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
34399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34400 | else | |
34401 | ||
34402 | cat >conftest.$ac_ext <<_ACEOF | |
34403 | /* confdefs.h. */ | |
34404 | _ACEOF | |
34405 | cat confdefs.h >>conftest.$ac_ext | |
34406 | cat >>conftest.$ac_ext <<_ACEOF | |
34407 | /* end confdefs.h. */ | |
34408 | #include <signal.h> | |
34409 | int | |
34410 | main () | |
34411 | { | |
34412 | ||
34413 | extern void testSigHandler(int); | |
34414 | ||
34415 | struct sigaction sa; | |
34416 | sa.sa_handler = testSigHandler; | |
34417 | ||
34418 | ; | |
34419 | return 0; | |
34420 | } | |
34421 | _ACEOF | |
34422 | rm -f conftest.$ac_objext | |
34423 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34424 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34425 | ac_status=$? |
ac1cb8d3 VS |
34426 | grep -v '^ *+' conftest.er1 >conftest.err |
34427 | rm -f conftest.er1 | |
34428 | cat conftest.err >&5 | |
a848cd7e SC |
34429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34430 | (exit $ac_status); } && | |
3565d135 RR |
34431 | { ac_try='test -z "$ac_cxx_werror_flag" |
34432 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34434 | (eval $ac_try) 2>&5 | |
34435 | ac_status=$? | |
34436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34437 | (exit $ac_status); }; } && | |
34438 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34440 | (eval $ac_try) 2>&5 | |
34441 | ac_status=$? | |
34442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34443 | (exit $ac_status); }; }; then | |
34444 | ||
34445 | wx_cv_type_sa_handler=int | |
34446 | ||
34447 | else | |
34448 | echo "$as_me: failed program was:" >&5 | |
34449 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34450 | ||
34451 | ||
34452 | wx_cv_type_sa_handler=void | |
34453 | ||
34454 | fi | |
ac1cb8d3 | 34455 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34456 | |
34457 | fi | |
34458 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
34459 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
34460 | ||
34461 | ac_ext=c | |
34462 | ac_cpp='$CPP $CPPFLAGS' | |
34463 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34464 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34465 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
34466 | ||
34467 | ||
34468 | cat >>confdefs.h <<_ACEOF | |
34469 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
34470 | _ACEOF | |
34471 | ||
34472 | fi | |
34473 | fi | |
34474 | ||
eaff0f0d VZ |
34475 | if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
34476 | ||
34477 | ||
34478 | ac_ext=cc | |
34479 | ac_cpp='$CXXCPP $CPPFLAGS' | |
34480 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34481 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34482 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
34483 | ||
34484 | ||
34485 | echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5 | |
34486 | echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6 | |
34487 | if test "${wx_cv_func_backtrace+set}" = set; then | |
34488 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34489 | else | |
34490 | ||
34491 | cat >conftest.$ac_ext <<_ACEOF | |
34492 | /* confdefs.h. */ | |
34493 | _ACEOF | |
34494 | cat confdefs.h >>conftest.$ac_ext | |
34495 | cat >>conftest.$ac_ext <<_ACEOF | |
34496 | /* end confdefs.h. */ | |
34497 | #include <execinfo.h> | |
34498 | int | |
34499 | main () | |
34500 | { | |
34501 | ||
34502 | void *trace[1]; | |
34503 | char **messages; | |
34504 | ||
34505 | backtrace(trace, 1); | |
34506 | messages = backtrace_symbols(trace, 1); | |
34507 | ||
34508 | ; | |
34509 | return 0; | |
34510 | } | |
34511 | _ACEOF | |
34512 | rm -f conftest.$ac_objext | |
34513 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34514 | (eval $ac_compile) 2>conftest.er1 | |
34515 | ac_status=$? | |
34516 | grep -v '^ *+' conftest.er1 >conftest.err | |
34517 | rm -f conftest.er1 | |
34518 | cat conftest.err >&5 | |
34519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34520 | (exit $ac_status); } && | |
3565d135 RR |
34521 | { ac_try='test -z "$ac_cxx_werror_flag" |
34522 | || test ! -s conftest.err' | |
eaff0f0d VZ |
34523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34524 | (eval $ac_try) 2>&5 | |
34525 | ac_status=$? | |
34526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34527 | (exit $ac_status); }; } && | |
34528 | { ac_try='test -s conftest.$ac_objext' | |
34529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34530 | (eval $ac_try) 2>&5 | |
34531 | ac_status=$? | |
34532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34533 | (exit $ac_status); }; }; then | |
34534 | wx_cv_func_backtrace=yes | |
34535 | else | |
34536 | echo "$as_me: failed program was:" >&5 | |
34537 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34538 | ||
34539 | wx_cv_func_backtrace=no | |
34540 | ||
34541 | fi | |
34542 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
34543 | ||
34544 | ||
34545 | fi | |
34546 | echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5 | |
34547 | echo "${ECHO_T}$wx_cv_func_backtrace" >&6 | |
34548 | ||
34549 | ||
34550 | if test "$wx_cv_func_backtrace" = "no"; then | |
34551 | { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5 | |
34552 | echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;} | |
34553 | wxUSE_STACKWALKER=no | |
34554 | else | |
34555 | echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5 | |
34556 | echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6 | |
34557 | if test "${wx_cv_func_cxa_demangle+set}" = set; then | |
34558 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34559 | else | |
34560 | ||
34561 | cat >conftest.$ac_ext <<_ACEOF | |
34562 | /* confdefs.h. */ | |
34563 | _ACEOF | |
34564 | cat confdefs.h >>conftest.$ac_ext | |
34565 | cat >>conftest.$ac_ext <<_ACEOF | |
34566 | /* end confdefs.h. */ | |
34567 | #include <cxxabi.h> | |
34568 | int | |
34569 | main () | |
34570 | { | |
34571 | ||
34572 | int rc; | |
34573 | __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc); | |
34574 | ||
34575 | ; | |
34576 | return 0; | |
34577 | } | |
34578 | _ACEOF | |
dfe0c803 JS |
34579 | rm -f conftest.$ac_objext conftest$ac_exeext |
34580 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
34581 | (eval $ac_link) 2>conftest.er1 | |
eaff0f0d VZ |
34582 | ac_status=$? |
34583 | grep -v '^ *+' conftest.er1 >conftest.err | |
34584 | rm -f conftest.er1 | |
34585 | cat conftest.err >&5 | |
34586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34587 | (exit $ac_status); } && | |
3565d135 RR |
34588 | { ac_try='test -z "$ac_cxx_werror_flag" |
34589 | || test ! -s conftest.err' | |
eaff0f0d VZ |
34590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34591 | (eval $ac_try) 2>&5 | |
34592 | ac_status=$? | |
34593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34594 | (exit $ac_status); }; } && | |
dfe0c803 | 34595 | { ac_try='test -s conftest$ac_exeext' |
eaff0f0d VZ |
34596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34597 | (eval $ac_try) 2>&5 | |
34598 | ac_status=$? | |
34599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34600 | (exit $ac_status); }; }; then | |
34601 | wx_cv_func_cxa_demangle=yes | |
34602 | else | |
34603 | echo "$as_me: failed program was:" >&5 | |
34604 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34605 | ||
34606 | wx_cv_func_cxa_demangle=no | |
34607 | ||
34608 | fi | |
dfe0c803 JS |
34609 | rm -f conftest.err conftest.$ac_objext \ |
34610 | conftest$ac_exeext conftest.$ac_ext | |
eaff0f0d VZ |
34611 | |
34612 | ||
34613 | fi | |
34614 | echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5 | |
34615 | echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6 | |
34616 | ||
34617 | if test "$wx_cv_func_cxa_demangle" = "yes"; then | |
34618 | cat >>confdefs.h <<\_ACEOF | |
34619 | #define HAVE_CXA_DEMANGLE 1 | |
34620 | _ACEOF | |
34621 | ||
34622 | fi | |
34623 | fi | |
34624 | ||
34625 | ac_ext=c | |
34626 | ac_cpp='$CPP $CPPFLAGS' | |
34627 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34628 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34629 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
34630 | ||
34631 | fi | |
34632 | ||
898beab1 DE |
34633 | if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then |
34634 | { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5 | |
34635 | echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;} | |
34636 | wxUSE_STACKWALKER=no | |
34637 | fi | |
34638 | ||
34639 | ||
a848cd7e SC |
34640 | |
34641 | ||
34642 | for ac_func in mkstemp mktemp | |
34643 | do | |
34644 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34645 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34646 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34647 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34648 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34649 | else | |
34650 | cat >conftest.$ac_ext <<_ACEOF | |
34651 | /* confdefs.h. */ | |
34652 | _ACEOF | |
34653 | cat confdefs.h >>conftest.$ac_ext | |
34654 | cat >>conftest.$ac_ext <<_ACEOF | |
34655 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
34656 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
34657 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
34658 | #define $ac_func innocuous_$ac_func | |
34659 | ||
a848cd7e SC |
34660 | /* System header to define __stub macros and hopefully few prototypes, |
34661 | which can conflict with char $ac_func (); below. | |
34662 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34663 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 34664 | |
a848cd7e SC |
34665 | #ifdef __STDC__ |
34666 | # include <limits.h> | |
34667 | #else | |
34668 | # include <assert.h> | |
34669 | #endif | |
ac1cb8d3 VS |
34670 | |
34671 | #undef $ac_func | |
34672 | ||
a848cd7e SC |
34673 | /* Override any gcc2 internal prototype to avoid an error. */ |
34674 | #ifdef __cplusplus | |
34675 | extern "C" | |
34676 | { | |
34677 | #endif | |
34678 | /* We use char because int might match the return type of a gcc2 | |
34679 | builtin and then its argument prototype would still apply. */ | |
34680 | char $ac_func (); | |
34681 | /* The GNU C library defines this for functions which it implements | |
34682 | to always fail with ENOSYS. Some functions are actually named | |
34683 | something starting with __ and the normal name is an alias. */ | |
34684 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
34685 | choke me | |
34686 | #else | |
34687 | char (*f) () = $ac_func; | |
34688 | #endif | |
34689 | #ifdef __cplusplus | |
34690 | } | |
34691 | #endif | |
34692 | ||
34693 | int | |
34694 | main () | |
34695 | { | |
34696 | return f != $ac_func; | |
34697 | ; | |
34698 | return 0; | |
34699 | } | |
34700 | _ACEOF | |
34701 | rm -f conftest.$ac_objext conftest$ac_exeext | |
34702 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 34703 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 34704 | ac_status=$? |
ac1cb8d3 VS |
34705 | grep -v '^ *+' conftest.er1 >conftest.err |
34706 | rm -f conftest.er1 | |
34707 | cat conftest.err >&5 | |
a848cd7e SC |
34708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34709 | (exit $ac_status); } && | |
3565d135 RR |
34710 | { ac_try='test -z "$ac_c_werror_flag" |
34711 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34713 | (eval $ac_try) 2>&5 | |
34714 | ac_status=$? | |
34715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34716 | (exit $ac_status); }; } && | |
34717 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
34718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34719 | (eval $ac_try) 2>&5 | |
34720 | ac_status=$? | |
34721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34722 | (exit $ac_status); }; }; then | |
34723 | eval "$as_ac_var=yes" | |
34724 | else | |
34725 | echo "$as_me: failed program was:" >&5 | |
34726 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34727 | ||
34728 | eval "$as_ac_var=no" | |
34729 | fi | |
ac1cb8d3 VS |
34730 | rm -f conftest.err conftest.$ac_objext \ |
34731 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
34732 | fi |
34733 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
34734 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
34735 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
34736 | cat >>confdefs.h <<_ACEOF | |
34737 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
34738 | _ACEOF | |
34739 | break | |
34740 | fi | |
34741 | done | |
34742 | ||
34743 | ||
34744 | echo "$as_me:$LINENO: checking for statfs" >&5 | |
34745 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
34746 | if test "${wx_cv_func_statfs+set}" = set; then | |
34747 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34748 | else | |
34749 | cat >conftest.$ac_ext <<_ACEOF | |
34750 | /* confdefs.h. */ | |
34751 | _ACEOF | |
34752 | cat confdefs.h >>conftest.$ac_ext | |
34753 | cat >>conftest.$ac_ext <<_ACEOF | |
34754 | /* end confdefs.h. */ | |
34755 | ||
34756 | #if defined(__BSD__) | |
84ae7ca4 VZ |
34757 | #include <sys/param.h> |
34758 | #include <sys/mount.h> | |
a848cd7e | 34759 | #else |
84ae7ca4 | 34760 | #include <sys/vfs.h> |
a848cd7e SC |
34761 | #endif |
34762 | ||
34763 | int | |
34764 | main () | |
34765 | { | |
34766 | ||
34767 | long l; | |
34768 | struct statfs fs; | |
34769 | statfs("/", &fs); | |
34770 | l = fs.f_bsize; | |
34771 | l += fs.f_blocks; | |
34772 | l += fs.f_bavail; | |
34773 | ||
34774 | ; | |
34775 | return 0; | |
34776 | } | |
34777 | _ACEOF | |
34778 | rm -f conftest.$ac_objext | |
34779 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34780 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34781 | ac_status=$? |
ac1cb8d3 VS |
34782 | grep -v '^ *+' conftest.er1 >conftest.err |
34783 | rm -f conftest.er1 | |
34784 | cat conftest.err >&5 | |
a848cd7e SC |
34785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34786 | (exit $ac_status); } && | |
3565d135 RR |
34787 | { ac_try='test -z "$ac_c_werror_flag" |
34788 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34790 | (eval $ac_try) 2>&5 | |
34791 | ac_status=$? | |
34792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34793 | (exit $ac_status); }; } && | |
34794 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34796 | (eval $ac_try) 2>&5 | |
34797 | ac_status=$? | |
34798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34799 | (exit $ac_status); }; }; then | |
84ae7ca4 | 34800 | wx_cv_func_statfs=yes |
a848cd7e SC |
34801 | else |
34802 | echo "$as_me: failed program was:" >&5 | |
34803 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34804 | ||
84ae7ca4 | 34805 | wx_cv_func_statfs=no |
a848cd7e SC |
34806 | |
34807 | fi | |
ac1cb8d3 | 34808 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34809 | |
34810 | fi | |
34811 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
34812 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
34813 | ||
34814 | if test "$wx_cv_func_statfs" = "yes"; then | |
84ae7ca4 VZ |
34815 | |
34816 | ||
34817 | ac_ext=cc | |
34818 | ac_cpp='$CXXCPP $CPPFLAGS' | |
34819 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34820 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34821 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
34822 | ||
34823 | echo "$as_me:$LINENO: checking for statfs declaration" >&5 | |
34824 | echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6 | |
34825 | if test "${wx_cv_func_statfs_decl+set}" = set; then | |
34826 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34827 | else | |
0683aca6 VZ |
34828 | cat >conftest.$ac_ext <<_ACEOF |
34829 | /* confdefs.h. */ | |
34830 | _ACEOF | |
34831 | cat confdefs.h >>conftest.$ac_ext | |
34832 | cat >>conftest.$ac_ext <<_ACEOF | |
34833 | /* end confdefs.h. */ | |
84ae7ca4 | 34834 | |
0683aca6 VZ |
34835 | #if defined(__BSD__) |
34836 | #include <sys/param.h> | |
34837 | #include <sys/mount.h> | |
34838 | #else | |
34839 | #include <sys/vfs.h> | |
34840 | #endif | |
34841 | ||
34842 | int | |
34843 | main () | |
34844 | { | |
34845 | ||
34846 | struct statfs fs; | |
34847 | statfs("", &fs); | |
34848 | ||
34849 | ; | |
34850 | return 0; | |
34851 | } | |
34852 | _ACEOF | |
34853 | rm -f conftest.$ac_objext | |
34854 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34855 | (eval $ac_compile) 2>conftest.er1 | |
34856 | ac_status=$? | |
34857 | grep -v '^ *+' conftest.er1 >conftest.err | |
34858 | rm -f conftest.er1 | |
34859 | cat conftest.err >&5 | |
34860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34861 | (exit $ac_status); } && | |
3565d135 RR |
34862 | { ac_try='test -z "$ac_cxx_werror_flag" |
34863 | || test ! -s conftest.err' | |
0683aca6 VZ |
34864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34865 | (eval $ac_try) 2>&5 | |
34866 | ac_status=$? | |
34867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34868 | (exit $ac_status); }; } && | |
34869 | { ac_try='test -s conftest.$ac_objext' | |
34870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34871 | (eval $ac_try) 2>&5 | |
34872 | ac_status=$? | |
34873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34874 | (exit $ac_status); }; }; then | |
34875 | wx_cv_func_statfs_decl=yes | |
34876 | else | |
34877 | echo "$as_me: failed program was:" >&5 | |
34878 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34879 | ||
34880 | wx_cv_func_statfs_decl=no | |
34881 | ||
34882 | fi | |
34883 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
84ae7ca4 VZ |
34884 | |
34885 | fi | |
34886 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5 | |
34887 | echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6 | |
34888 | ac_ext=c | |
34889 | ac_cpp='$CPP $CPPFLAGS' | |
34890 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34891 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34892 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
34893 | ||
34894 | ||
34895 | if test "$wx_cv_func_statfs_decl" = "yes"; then | |
34896 | cat >>confdefs.h <<\_ACEOF | |
34897 | #define HAVE_STATFS_DECL 1 | |
34898 | _ACEOF | |
34899 | ||
34900 | fi | |
34901 | ||
a848cd7e SC |
34902 | wx_cv_type_statvfs_t="struct statfs" |
34903 | cat >>confdefs.h <<\_ACEOF | |
34904 | #define HAVE_STATFS 1 | |
34905 | _ACEOF | |
34906 | ||
34907 | else | |
34908 | echo "$as_me:$LINENO: checking for statvfs" >&5 | |
34909 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
34910 | if test "${wx_cv_func_statvfs+set}" = set; then | |
34911 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34912 | else | |
34913 | cat >conftest.$ac_ext <<_ACEOF | |
34914 | /* confdefs.h. */ | |
34915 | _ACEOF | |
34916 | cat confdefs.h >>conftest.$ac_ext | |
34917 | cat >>conftest.$ac_ext <<_ACEOF | |
34918 | /* end confdefs.h. */ | |
34919 | ||
34920 | #include <stddef.h> | |
34921 | #include <sys/statvfs.h> | |
34922 | ||
34923 | int | |
34924 | main () | |
34925 | { | |
34926 | ||
34927 | statvfs("/", NULL); | |
34928 | ||
34929 | ; | |
34930 | return 0; | |
34931 | } | |
34932 | _ACEOF | |
34933 | rm -f conftest.$ac_objext | |
34934 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 34935 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 34936 | ac_status=$? |
ac1cb8d3 VS |
34937 | grep -v '^ *+' conftest.er1 >conftest.err |
34938 | rm -f conftest.er1 | |
34939 | cat conftest.err >&5 | |
a848cd7e SC |
34940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34941 | (exit $ac_status); } && | |
3565d135 RR |
34942 | { ac_try='test -z "$ac_c_werror_flag" |
34943 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
34944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34945 | (eval $ac_try) 2>&5 | |
34946 | ac_status=$? | |
34947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34948 | (exit $ac_status); }; } && | |
34949 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
34950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34951 | (eval $ac_try) 2>&5 | |
34952 | ac_status=$? | |
34953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34954 | (exit $ac_status); }; }; then | |
34955 | wx_cv_func_statvfs=yes | |
34956 | else | |
34957 | echo "$as_me: failed program was:" >&5 | |
34958 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34959 | ||
34960 | wx_cv_func_statvfs=no | |
34961 | ||
34962 | fi | |
ac1cb8d3 | 34963 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34964 | |
34965 | fi | |
34966 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
34967 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
34968 | ||
34969 | if test "$wx_cv_func_statvfs" = "yes"; then | |
34970 | ||
34971 | ||
34972 | ac_ext=cc | |
34973 | ac_cpp='$CXXCPP $CPPFLAGS' | |
34974 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34975 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34976 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
34977 | ||
34978 | ||
34979 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 | |
34980 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
34981 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
34982 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34983 | else | |
34984 | cat >conftest.$ac_ext <<_ACEOF | |
34985 | /* confdefs.h. */ | |
34986 | _ACEOF | |
34987 | cat confdefs.h >>conftest.$ac_ext | |
34988 | cat >>conftest.$ac_ext <<_ACEOF | |
34989 | /* end confdefs.h. */ | |
34990 | ||
34991 | #include <sys/statvfs.h> | |
34992 | ||
34993 | int | |
34994 | main () | |
34995 | { | |
34996 | ||
34997 | long l; | |
34998 | statvfs_t fs; | |
34999 | statvfs("/", &fs); | |
35000 | l = fs.f_bsize; | |
35001 | l += fs.f_blocks; | |
35002 | l += fs.f_bavail; | |
35003 | ||
35004 | ; | |
35005 | return 0; | |
35006 | } | |
35007 | _ACEOF | |
35008 | rm -f conftest.$ac_objext | |
35009 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35010 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35011 | ac_status=$? |
ac1cb8d3 VS |
35012 | grep -v '^ *+' conftest.er1 >conftest.err |
35013 | rm -f conftest.er1 | |
35014 | cat conftest.err >&5 | |
a848cd7e SC |
35015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35016 | (exit $ac_status); } && | |
3565d135 RR |
35017 | { ac_try='test -z "$ac_cxx_werror_flag" |
35018 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35020 | (eval $ac_try) 2>&5 | |
35021 | ac_status=$? | |
35022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35023 | (exit $ac_status); }; } && | |
35024 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35026 | (eval $ac_try) 2>&5 | |
35027 | ac_status=$? | |
35028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35029 | (exit $ac_status); }; }; then | |
35030 | wx_cv_type_statvfs_t=statvfs_t | |
35031 | else | |
35032 | echo "$as_me: failed program was:" >&5 | |
35033 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35034 | ||
35035 | ||
35036 | cat >conftest.$ac_ext <<_ACEOF | |
35037 | /* confdefs.h. */ | |
35038 | _ACEOF | |
35039 | cat confdefs.h >>conftest.$ac_ext | |
35040 | cat >>conftest.$ac_ext <<_ACEOF | |
35041 | /* end confdefs.h. */ | |
35042 | ||
35043 | #include <sys/statvfs.h> | |
35044 | ||
35045 | int | |
35046 | main () | |
35047 | { | |
35048 | ||
35049 | long l; | |
35050 | struct statvfs fs; | |
35051 | statvfs("/", &fs); | |
35052 | l = fs.f_bsize; | |
35053 | l += fs.f_blocks; | |
35054 | l += fs.f_bavail; | |
35055 | ||
35056 | ; | |
35057 | return 0; | |
35058 | } | |
35059 | _ACEOF | |
35060 | rm -f conftest.$ac_objext | |
35061 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 35062 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 35063 | ac_status=$? |
ac1cb8d3 VS |
35064 | grep -v '^ *+' conftest.er1 >conftest.err |
35065 | rm -f conftest.er1 | |
35066 | cat conftest.err >&5 | |
a848cd7e SC |
35067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35068 | (exit $ac_status); } && | |
3565d135 RR |
35069 | { ac_try='test -z "$ac_cxx_werror_flag" |
35070 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35072 | (eval $ac_try) 2>&5 | |
35073 | ac_status=$? | |
35074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35075 | (exit $ac_status); }; } && | |
35076 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
35077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35078 | (eval $ac_try) 2>&5 | |
35079 | ac_status=$? | |
35080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35081 | (exit $ac_status); }; }; then | |
35082 | wx_cv_type_statvfs_t="struct statvfs" | |
35083 | else | |
35084 | echo "$as_me: failed program was:" >&5 | |
35085 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35086 | ||
35087 | wx_cv_type_statvfs_t="unknown" | |
35088 | ||
35089 | fi | |
ac1cb8d3 | 35090 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35091 | |
35092 | ||
35093 | fi | |
ac1cb8d3 | 35094 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
35095 | |
35096 | fi | |
35097 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
35098 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
35099 | ||
35100 | ac_ext=c | |
35101 | ac_cpp='$CPP $CPPFLAGS' | |
35102 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35103 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35104 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
35105 | ||
35106 | ||
35107 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
35108 | cat >>confdefs.h <<\_ACEOF | |
35109 | #define HAVE_STATVFS 1 | |
35110 | _ACEOF | |
35111 | ||
35112 | fi | |
35113 | else | |
35114 | wx_cv_type_statvfs_t="unknown" | |
35115 | fi | |
35116 | fi | |
35117 | ||
35118 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
35119 | cat >>confdefs.h <<_ACEOF | |
35120 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
35121 | _ACEOF | |
35122 | ||
35123 | else | |
35124 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 | |
35125 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
35126 | fi | |
35127 | ||
35128 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
35129 | ||
35130 | ||
35131 | for ac_func in fcntl flock | |
35132 | do | |
35133 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35134 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35135 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35136 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35137 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35138 | else | |
35139 | cat >conftest.$ac_ext <<_ACEOF | |
35140 | /* confdefs.h. */ | |
35141 | _ACEOF | |
35142 | cat confdefs.h >>conftest.$ac_ext | |
35143 | cat >>conftest.$ac_ext <<_ACEOF | |
35144 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35145 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35146 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35147 | #define $ac_func innocuous_$ac_func | |
35148 | ||
a848cd7e SC |
35149 | /* System header to define __stub macros and hopefully few prototypes, |
35150 | which can conflict with char $ac_func (); below. | |
35151 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35152 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35153 | |
a848cd7e SC |
35154 | #ifdef __STDC__ |
35155 | # include <limits.h> | |
35156 | #else | |
35157 | # include <assert.h> | |
35158 | #endif | |
ac1cb8d3 VS |
35159 | |
35160 | #undef $ac_func | |
35161 | ||
a848cd7e SC |
35162 | /* Override any gcc2 internal prototype to avoid an error. */ |
35163 | #ifdef __cplusplus | |
35164 | extern "C" | |
35165 | { | |
35166 | #endif | |
35167 | /* We use char because int might match the return type of a gcc2 | |
35168 | builtin and then its argument prototype would still apply. */ | |
35169 | char $ac_func (); | |
35170 | /* The GNU C library defines this for functions which it implements | |
35171 | to always fail with ENOSYS. Some functions are actually named | |
35172 | something starting with __ and the normal name is an alias. */ | |
35173 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35174 | choke me | |
35175 | #else | |
35176 | char (*f) () = $ac_func; | |
35177 | #endif | |
35178 | #ifdef __cplusplus | |
35179 | } | |
35180 | #endif | |
35181 | ||
35182 | int | |
35183 | main () | |
35184 | { | |
35185 | return f != $ac_func; | |
35186 | ; | |
35187 | return 0; | |
35188 | } | |
35189 | _ACEOF | |
35190 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35191 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35192 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35193 | ac_status=$? |
ac1cb8d3 VS |
35194 | grep -v '^ *+' conftest.er1 >conftest.err |
35195 | rm -f conftest.er1 | |
35196 | cat conftest.err >&5 | |
a848cd7e SC |
35197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35198 | (exit $ac_status); } && | |
3565d135 RR |
35199 | { ac_try='test -z "$ac_c_werror_flag" |
35200 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35202 | (eval $ac_try) 2>&5 | |
35203 | ac_status=$? | |
35204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35205 | (exit $ac_status); }; } && | |
35206 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35208 | (eval $ac_try) 2>&5 | |
35209 | ac_status=$? | |
35210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35211 | (exit $ac_status); }; }; then | |
35212 | eval "$as_ac_var=yes" | |
35213 | else | |
35214 | echo "$as_me: failed program was:" >&5 | |
35215 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35216 | ||
35217 | eval "$as_ac_var=no" | |
35218 | fi | |
ac1cb8d3 VS |
35219 | rm -f conftest.err conftest.$ac_objext \ |
35220 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35221 | fi |
35222 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35223 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35224 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35225 | cat >>confdefs.h <<_ACEOF | |
35226 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35227 | _ACEOF | |
35228 | break | |
35229 | fi | |
35230 | done | |
35231 | ||
35232 | ||
35233 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
35234 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 | |
35235 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
35236 | wxUSE_SNGLINST_CHECKER=no | |
35237 | fi | |
35238 | fi | |
35239 | ||
35240 | ||
35241 | for ac_func in timegm | |
35242 | do | |
35243 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35244 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35245 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35246 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35247 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35248 | else | |
35249 | cat >conftest.$ac_ext <<_ACEOF | |
35250 | /* confdefs.h. */ | |
35251 | _ACEOF | |
35252 | cat confdefs.h >>conftest.$ac_ext | |
35253 | cat >>conftest.$ac_ext <<_ACEOF | |
35254 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35255 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35256 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35257 | #define $ac_func innocuous_$ac_func | |
35258 | ||
a848cd7e SC |
35259 | /* System header to define __stub macros and hopefully few prototypes, |
35260 | which can conflict with char $ac_func (); below. | |
35261 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35262 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35263 | |
a848cd7e SC |
35264 | #ifdef __STDC__ |
35265 | # include <limits.h> | |
35266 | #else | |
35267 | # include <assert.h> | |
35268 | #endif | |
ac1cb8d3 VS |
35269 | |
35270 | #undef $ac_func | |
35271 | ||
a848cd7e SC |
35272 | /* Override any gcc2 internal prototype to avoid an error. */ |
35273 | #ifdef __cplusplus | |
35274 | extern "C" | |
35275 | { | |
35276 | #endif | |
35277 | /* We use char because int might match the return type of a gcc2 | |
35278 | builtin and then its argument prototype would still apply. */ | |
35279 | char $ac_func (); | |
35280 | /* The GNU C library defines this for functions which it implements | |
35281 | to always fail with ENOSYS. Some functions are actually named | |
35282 | something starting with __ and the normal name is an alias. */ | |
35283 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35284 | choke me | |
35285 | #else | |
35286 | char (*f) () = $ac_func; | |
35287 | #endif | |
35288 | #ifdef __cplusplus | |
35289 | } | |
35290 | #endif | |
35291 | ||
35292 | int | |
35293 | main () | |
35294 | { | |
35295 | return f != $ac_func; | |
35296 | ; | |
35297 | return 0; | |
35298 | } | |
35299 | _ACEOF | |
35300 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35301 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35302 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35303 | ac_status=$? |
ac1cb8d3 VS |
35304 | grep -v '^ *+' conftest.er1 >conftest.err |
35305 | rm -f conftest.er1 | |
35306 | cat conftest.err >&5 | |
a848cd7e SC |
35307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35308 | (exit $ac_status); } && | |
3565d135 RR |
35309 | { ac_try='test -z "$ac_c_werror_flag" |
35310 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35312 | (eval $ac_try) 2>&5 | |
35313 | ac_status=$? | |
35314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35315 | (exit $ac_status); }; } && | |
35316 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35318 | (eval $ac_try) 2>&5 | |
35319 | ac_status=$? | |
35320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35321 | (exit $ac_status); }; }; then | |
35322 | eval "$as_ac_var=yes" | |
35323 | else | |
35324 | echo "$as_me: failed program was:" >&5 | |
35325 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35326 | ||
35327 | eval "$as_ac_var=no" | |
35328 | fi | |
ac1cb8d3 VS |
35329 | rm -f conftest.err conftest.$ac_objext \ |
35330 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35331 | fi |
35332 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35333 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35334 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35335 | cat >>confdefs.h <<_ACEOF | |
35336 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35337 | _ACEOF | |
35338 | ||
35339 | fi | |
35340 | done | |
35341 | ||
35342 | ||
35343 | ||
35344 | ||
35345 | for ac_func in putenv setenv | |
35346 | do | |
35347 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35348 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35349 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35350 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35351 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35352 | else | |
35353 | cat >conftest.$ac_ext <<_ACEOF | |
35354 | /* confdefs.h. */ | |
35355 | _ACEOF | |
35356 | cat confdefs.h >>conftest.$ac_ext | |
35357 | cat >>conftest.$ac_ext <<_ACEOF | |
35358 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35359 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35360 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35361 | #define $ac_func innocuous_$ac_func | |
35362 | ||
a848cd7e SC |
35363 | /* System header to define __stub macros and hopefully few prototypes, |
35364 | which can conflict with char $ac_func (); below. | |
35365 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35366 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35367 | |
a848cd7e SC |
35368 | #ifdef __STDC__ |
35369 | # include <limits.h> | |
35370 | #else | |
35371 | # include <assert.h> | |
35372 | #endif | |
ac1cb8d3 VS |
35373 | |
35374 | #undef $ac_func | |
35375 | ||
a848cd7e SC |
35376 | /* Override any gcc2 internal prototype to avoid an error. */ |
35377 | #ifdef __cplusplus | |
35378 | extern "C" | |
35379 | { | |
35380 | #endif | |
35381 | /* We use char because int might match the return type of a gcc2 | |
35382 | builtin and then its argument prototype would still apply. */ | |
35383 | char $ac_func (); | |
35384 | /* The GNU C library defines this for functions which it implements | |
35385 | to always fail with ENOSYS. Some functions are actually named | |
35386 | something starting with __ and the normal name is an alias. */ | |
35387 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35388 | choke me | |
35389 | #else | |
35390 | char (*f) () = $ac_func; | |
35391 | #endif | |
35392 | #ifdef __cplusplus | |
35393 | } | |
35394 | #endif | |
35395 | ||
35396 | int | |
35397 | main () | |
35398 | { | |
35399 | return f != $ac_func; | |
35400 | ; | |
35401 | return 0; | |
35402 | } | |
35403 | _ACEOF | |
35404 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35405 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35406 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35407 | ac_status=$? |
ac1cb8d3 VS |
35408 | grep -v '^ *+' conftest.er1 >conftest.err |
35409 | rm -f conftest.er1 | |
35410 | cat conftest.err >&5 | |
a848cd7e SC |
35411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35412 | (exit $ac_status); } && | |
3565d135 RR |
35413 | { ac_try='test -z "$ac_c_werror_flag" |
35414 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35416 | (eval $ac_try) 2>&5 | |
35417 | ac_status=$? | |
35418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35419 | (exit $ac_status); }; } && | |
35420 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35422 | (eval $ac_try) 2>&5 | |
35423 | ac_status=$? | |
35424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35425 | (exit $ac_status); }; }; then | |
35426 | eval "$as_ac_var=yes" | |
35427 | else | |
35428 | echo "$as_me: failed program was:" >&5 | |
35429 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35430 | ||
35431 | eval "$as_ac_var=no" | |
35432 | fi | |
ac1cb8d3 VS |
35433 | rm -f conftest.err conftest.$ac_objext \ |
35434 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35435 | fi |
35436 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35437 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35438 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35439 | cat >>confdefs.h <<_ACEOF | |
35440 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35441 | _ACEOF | |
35442 | break | |
35443 | fi | |
35444 | done | |
35445 | ||
35446 | ||
35447 | HAVE_SOME_SLEEP_FUNC=0 | |
35448 | if test "$USE_BEOS" = 1; then | |
35449 | cat >>confdefs.h <<\_ACEOF | |
35450 | #define HAVE_SLEEP 1 | |
35451 | _ACEOF | |
35452 | ||
35453 | HAVE_SOME_SLEEP_FUNC=1 | |
35454 | fi | |
35455 | ||
35456 | if test "$USE_DARWIN" = 1; then | |
35457 | cat >>confdefs.h <<\_ACEOF | |
35458 | #define HAVE_USLEEP 1 | |
35459 | _ACEOF | |
35460 | ||
35461 | HAVE_SOME_SLEEP_FUNC=1 | |
35462 | fi | |
35463 | ||
35464 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
35465 | POSIX4_LINK= | |
35466 | ||
35467 | for ac_func in nanosleep | |
35468 | do | |
35469 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35470 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35471 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35472 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35474 | else | |
35475 | cat >conftest.$ac_ext <<_ACEOF | |
35476 | /* confdefs.h. */ | |
35477 | _ACEOF | |
35478 | cat confdefs.h >>conftest.$ac_ext | |
35479 | cat >>conftest.$ac_ext <<_ACEOF | |
35480 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35481 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35482 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35483 | #define $ac_func innocuous_$ac_func | |
35484 | ||
a848cd7e SC |
35485 | /* System header to define __stub macros and hopefully few prototypes, |
35486 | which can conflict with char $ac_func (); below. | |
35487 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35488 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35489 | |
a848cd7e SC |
35490 | #ifdef __STDC__ |
35491 | # include <limits.h> | |
35492 | #else | |
35493 | # include <assert.h> | |
35494 | #endif | |
ac1cb8d3 VS |
35495 | |
35496 | #undef $ac_func | |
35497 | ||
a848cd7e SC |
35498 | /* Override any gcc2 internal prototype to avoid an error. */ |
35499 | #ifdef __cplusplus | |
35500 | extern "C" | |
35501 | { | |
35502 | #endif | |
35503 | /* We use char because int might match the return type of a gcc2 | |
35504 | builtin and then its argument prototype would still apply. */ | |
35505 | char $ac_func (); | |
35506 | /* The GNU C library defines this for functions which it implements | |
35507 | to always fail with ENOSYS. Some functions are actually named | |
35508 | something starting with __ and the normal name is an alias. */ | |
35509 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35510 | choke me | |
35511 | #else | |
35512 | char (*f) () = $ac_func; | |
35513 | #endif | |
35514 | #ifdef __cplusplus | |
35515 | } | |
35516 | #endif | |
35517 | ||
35518 | int | |
35519 | main () | |
35520 | { | |
35521 | return f != $ac_func; | |
35522 | ; | |
35523 | return 0; | |
35524 | } | |
35525 | _ACEOF | |
35526 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35527 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35528 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35529 | ac_status=$? |
ac1cb8d3 VS |
35530 | grep -v '^ *+' conftest.er1 >conftest.err |
35531 | rm -f conftest.er1 | |
35532 | cat conftest.err >&5 | |
a848cd7e SC |
35533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35534 | (exit $ac_status); } && | |
3565d135 RR |
35535 | { ac_try='test -z "$ac_c_werror_flag" |
35536 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35538 | (eval $ac_try) 2>&5 | |
35539 | ac_status=$? | |
35540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35541 | (exit $ac_status); }; } && | |
35542 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35544 | (eval $ac_try) 2>&5 | |
35545 | ac_status=$? | |
35546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35547 | (exit $ac_status); }; }; then | |
35548 | eval "$as_ac_var=yes" | |
35549 | else | |
35550 | echo "$as_me: failed program was:" >&5 | |
35551 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35552 | ||
35553 | eval "$as_ac_var=no" | |
35554 | fi | |
ac1cb8d3 VS |
35555 | rm -f conftest.err conftest.$ac_objext \ |
35556 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35557 | fi |
35558 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35559 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35560 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35561 | cat >>confdefs.h <<_ACEOF | |
35562 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35563 | _ACEOF | |
35564 | cat >>confdefs.h <<\_ACEOF | |
35565 | #define HAVE_NANOSLEEP 1 | |
35566 | _ACEOF | |
35567 | ||
35568 | else | |
35569 | ||
35570 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
35571 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
35572 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
35573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35574 | else | |
35575 | ac_check_lib_save_LIBS=$LIBS | |
35576 | LIBS="-lposix4 $LIBS" | |
35577 | cat >conftest.$ac_ext <<_ACEOF | |
35578 | /* confdefs.h. */ | |
35579 | _ACEOF | |
35580 | cat confdefs.h >>conftest.$ac_ext | |
35581 | cat >>conftest.$ac_ext <<_ACEOF | |
35582 | /* end confdefs.h. */ | |
35583 | ||
35584 | /* Override any gcc2 internal prototype to avoid an error. */ | |
35585 | #ifdef __cplusplus | |
35586 | extern "C" | |
35587 | #endif | |
35588 | /* We use char because int might match the return type of a gcc2 | |
35589 | builtin and then its argument prototype would still apply. */ | |
35590 | char nanosleep (); | |
35591 | int | |
35592 | main () | |
35593 | { | |
35594 | nanosleep (); | |
35595 | ; | |
35596 | return 0; | |
35597 | } | |
35598 | _ACEOF | |
35599 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35600 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35601 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35602 | ac_status=$? |
ac1cb8d3 VS |
35603 | grep -v '^ *+' conftest.er1 >conftest.err |
35604 | rm -f conftest.er1 | |
35605 | cat conftest.err >&5 | |
a848cd7e SC |
35606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35607 | (exit $ac_status); } && | |
3565d135 RR |
35608 | { ac_try='test -z "$ac_c_werror_flag" |
35609 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35611 | (eval $ac_try) 2>&5 | |
35612 | ac_status=$? | |
35613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35614 | (exit $ac_status); }; } && | |
35615 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35617 | (eval $ac_try) 2>&5 | |
35618 | ac_status=$? | |
35619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35620 | (exit $ac_status); }; }; then | |
35621 | ac_cv_lib_posix4_nanosleep=yes | |
35622 | else | |
35623 | echo "$as_me: failed program was:" >&5 | |
35624 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35625 | ||
35626 | ac_cv_lib_posix4_nanosleep=no | |
35627 | fi | |
ac1cb8d3 VS |
35628 | rm -f conftest.err conftest.$ac_objext \ |
35629 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35630 | LIBS=$ac_check_lib_save_LIBS |
35631 | fi | |
35632 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
35633 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
35634 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
35635 | ||
35636 | cat >>confdefs.h <<\_ACEOF | |
35637 | #define HAVE_NANOSLEEP 1 | |
35638 | _ACEOF | |
35639 | ||
35640 | POSIX4_LINK=" -lposix4" | |
35641 | ||
35642 | else | |
35643 | ||
35644 | ||
35645 | for ac_func in usleep | |
35646 | do | |
35647 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35648 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35649 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35650 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35651 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35652 | else | |
35653 | cat >conftest.$ac_ext <<_ACEOF | |
35654 | /* confdefs.h. */ | |
35655 | _ACEOF | |
35656 | cat confdefs.h >>conftest.$ac_ext | |
35657 | cat >>conftest.$ac_ext <<_ACEOF | |
35658 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35659 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35660 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35661 | #define $ac_func innocuous_$ac_func | |
35662 | ||
a848cd7e SC |
35663 | /* System header to define __stub macros and hopefully few prototypes, |
35664 | which can conflict with char $ac_func (); below. | |
35665 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35666 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35667 | |
a848cd7e SC |
35668 | #ifdef __STDC__ |
35669 | # include <limits.h> | |
35670 | #else | |
35671 | # include <assert.h> | |
35672 | #endif | |
ac1cb8d3 VS |
35673 | |
35674 | #undef $ac_func | |
35675 | ||
a848cd7e SC |
35676 | /* Override any gcc2 internal prototype to avoid an error. */ |
35677 | #ifdef __cplusplus | |
35678 | extern "C" | |
35679 | { | |
35680 | #endif | |
35681 | /* We use char because int might match the return type of a gcc2 | |
35682 | builtin and then its argument prototype would still apply. */ | |
35683 | char $ac_func (); | |
35684 | /* The GNU C library defines this for functions which it implements | |
35685 | to always fail with ENOSYS. Some functions are actually named | |
35686 | something starting with __ and the normal name is an alias. */ | |
35687 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35688 | choke me | |
35689 | #else | |
35690 | char (*f) () = $ac_func; | |
35691 | #endif | |
35692 | #ifdef __cplusplus | |
35693 | } | |
35694 | #endif | |
35695 | ||
35696 | int | |
35697 | main () | |
35698 | { | |
35699 | return f != $ac_func; | |
35700 | ; | |
35701 | return 0; | |
35702 | } | |
35703 | _ACEOF | |
35704 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35705 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35706 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35707 | ac_status=$? |
ac1cb8d3 VS |
35708 | grep -v '^ *+' conftest.er1 >conftest.err |
35709 | rm -f conftest.er1 | |
35710 | cat conftest.err >&5 | |
a848cd7e SC |
35711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35712 | (exit $ac_status); } && | |
3565d135 RR |
35713 | { ac_try='test -z "$ac_c_werror_flag" |
35714 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35716 | (eval $ac_try) 2>&5 | |
35717 | ac_status=$? | |
35718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35719 | (exit $ac_status); }; } && | |
35720 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35722 | (eval $ac_try) 2>&5 | |
35723 | ac_status=$? | |
35724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35725 | (exit $ac_status); }; }; then | |
35726 | eval "$as_ac_var=yes" | |
35727 | else | |
35728 | echo "$as_me: failed program was:" >&5 | |
35729 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35730 | ||
35731 | eval "$as_ac_var=no" | |
35732 | fi | |
ac1cb8d3 VS |
35733 | rm -f conftest.err conftest.$ac_objext \ |
35734 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35735 | fi |
35736 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35737 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35738 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35739 | cat >>confdefs.h <<_ACEOF | |
35740 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35741 | _ACEOF | |
35742 | cat >>confdefs.h <<\_ACEOF | |
35743 | #define HAVE_USLEEP 1 | |
35744 | _ACEOF | |
35745 | ||
35746 | else | |
35747 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 | |
35748 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
35749 | ||
35750 | fi | |
35751 | done | |
35752 | ||
35753 | ||
35754 | ||
35755 | fi | |
35756 | ||
35757 | ||
35758 | ||
35759 | fi | |
35760 | done | |
35761 | ||
35762 | fi | |
35763 | ||
35764 | ||
35765 | ||
35766 | for ac_func in uname gethostname | |
35767 | do | |
35768 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35769 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35770 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35771 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35773 | else | |
35774 | cat >conftest.$ac_ext <<_ACEOF | |
35775 | /* confdefs.h. */ | |
35776 | _ACEOF | |
35777 | cat confdefs.h >>conftest.$ac_ext | |
35778 | cat >>conftest.$ac_ext <<_ACEOF | |
35779 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35780 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35781 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35782 | #define $ac_func innocuous_$ac_func | |
35783 | ||
a848cd7e SC |
35784 | /* System header to define __stub macros and hopefully few prototypes, |
35785 | which can conflict with char $ac_func (); below. | |
35786 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35787 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35788 | |
a848cd7e SC |
35789 | #ifdef __STDC__ |
35790 | # include <limits.h> | |
35791 | #else | |
35792 | # include <assert.h> | |
35793 | #endif | |
ac1cb8d3 VS |
35794 | |
35795 | #undef $ac_func | |
35796 | ||
a848cd7e SC |
35797 | /* Override any gcc2 internal prototype to avoid an error. */ |
35798 | #ifdef __cplusplus | |
35799 | extern "C" | |
35800 | { | |
35801 | #endif | |
35802 | /* We use char because int might match the return type of a gcc2 | |
35803 | builtin and then its argument prototype would still apply. */ | |
35804 | char $ac_func (); | |
35805 | /* The GNU C library defines this for functions which it implements | |
35806 | to always fail with ENOSYS. Some functions are actually named | |
35807 | something starting with __ and the normal name is an alias. */ | |
35808 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35809 | choke me | |
35810 | #else | |
35811 | char (*f) () = $ac_func; | |
35812 | #endif | |
35813 | #ifdef __cplusplus | |
35814 | } | |
35815 | #endif | |
35816 | ||
35817 | int | |
35818 | main () | |
35819 | { | |
35820 | return f != $ac_func; | |
35821 | ; | |
35822 | return 0; | |
35823 | } | |
35824 | _ACEOF | |
35825 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35826 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35827 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35828 | ac_status=$? |
ac1cb8d3 VS |
35829 | grep -v '^ *+' conftest.er1 >conftest.err |
35830 | rm -f conftest.er1 | |
35831 | cat conftest.err >&5 | |
a848cd7e SC |
35832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35833 | (exit $ac_status); } && | |
3565d135 RR |
35834 | { ac_try='test -z "$ac_c_werror_flag" |
35835 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35837 | (eval $ac_try) 2>&5 | |
35838 | ac_status=$? | |
35839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35840 | (exit $ac_status); }; } && | |
35841 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35843 | (eval $ac_try) 2>&5 | |
35844 | ac_status=$? | |
35845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35846 | (exit $ac_status); }; }; then | |
35847 | eval "$as_ac_var=yes" | |
35848 | else | |
35849 | echo "$as_me: failed program was:" >&5 | |
35850 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35851 | ||
35852 | eval "$as_ac_var=no" | |
35853 | fi | |
ac1cb8d3 VS |
35854 | rm -f conftest.err conftest.$ac_objext \ |
35855 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35856 | fi |
35857 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35858 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35859 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35860 | cat >>confdefs.h <<_ACEOF | |
35861 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35862 | _ACEOF | |
35863 | break | |
35864 | fi | |
35865 | done | |
35866 | ||
35867 | ||
35868 | ||
35869 | ||
35870 | ac_ext=cc | |
35871 | ac_cpp='$CXXCPP $CPPFLAGS' | |
35872 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35873 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35874 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
35875 | ||
35876 | ||
35877 | ||
35878 | for ac_func in strtok_r | |
35879 | do | |
35880 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35881 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35882 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35883 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35884 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35885 | else | |
35886 | cat >conftest.$ac_ext <<_ACEOF | |
35887 | /* confdefs.h. */ | |
35888 | _ACEOF | |
35889 | cat confdefs.h >>conftest.$ac_ext | |
35890 | cat >>conftest.$ac_ext <<_ACEOF | |
35891 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
35892 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
35893 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
35894 | #define $ac_func innocuous_$ac_func | |
35895 | ||
a848cd7e SC |
35896 | /* System header to define __stub macros and hopefully few prototypes, |
35897 | which can conflict with char $ac_func (); below. | |
35898 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35899 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 35900 | |
a848cd7e SC |
35901 | #ifdef __STDC__ |
35902 | # include <limits.h> | |
35903 | #else | |
35904 | # include <assert.h> | |
35905 | #endif | |
ac1cb8d3 VS |
35906 | |
35907 | #undef $ac_func | |
35908 | ||
a848cd7e SC |
35909 | /* Override any gcc2 internal prototype to avoid an error. */ |
35910 | #ifdef __cplusplus | |
35911 | extern "C" | |
35912 | { | |
35913 | #endif | |
35914 | /* We use char because int might match the return type of a gcc2 | |
35915 | builtin and then its argument prototype would still apply. */ | |
35916 | char $ac_func (); | |
35917 | /* The GNU C library defines this for functions which it implements | |
35918 | to always fail with ENOSYS. Some functions are actually named | |
35919 | something starting with __ and the normal name is an alias. */ | |
35920 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35921 | choke me | |
35922 | #else | |
35923 | char (*f) () = $ac_func; | |
35924 | #endif | |
35925 | #ifdef __cplusplus | |
35926 | } | |
35927 | #endif | |
35928 | ||
35929 | int | |
35930 | main () | |
35931 | { | |
35932 | return f != $ac_func; | |
35933 | ; | |
35934 | return 0; | |
35935 | } | |
35936 | _ACEOF | |
35937 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35938 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 35939 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 35940 | ac_status=$? |
ac1cb8d3 VS |
35941 | grep -v '^ *+' conftest.er1 >conftest.err |
35942 | rm -f conftest.er1 | |
35943 | cat conftest.err >&5 | |
a848cd7e SC |
35944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35945 | (exit $ac_status); } && | |
3565d135 RR |
35946 | { ac_try='test -z "$ac_cxx_werror_flag" |
35947 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
35948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35949 | (eval $ac_try) 2>&5 | |
35950 | ac_status=$? | |
35951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35952 | (exit $ac_status); }; } && | |
35953 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
35954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35955 | (eval $ac_try) 2>&5 | |
35956 | ac_status=$? | |
35957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35958 | (exit $ac_status); }; }; then | |
35959 | eval "$as_ac_var=yes" | |
35960 | else | |
35961 | echo "$as_me: failed program was:" >&5 | |
35962 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35963 | ||
35964 | eval "$as_ac_var=no" | |
35965 | fi | |
ac1cb8d3 VS |
35966 | rm -f conftest.err conftest.$ac_objext \ |
35967 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
35968 | fi |
35969 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35970 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35971 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35972 | cat >>confdefs.h <<_ACEOF | |
35973 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35974 | _ACEOF | |
35975 | ||
35976 | fi | |
35977 | done | |
35978 | ||
35979 | ||
35980 | ac_ext=c | |
35981 | ac_cpp='$CPP $CPPFLAGS' | |
35982 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
35983 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
35984 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
35985 | ||
35986 | ||
35987 | INET_LINK= | |
35988 | ||
35989 | for ac_func in inet_addr | |
35990 | do | |
35991 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35992 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35993 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35994 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35995 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35996 | else | |
35997 | cat >conftest.$ac_ext <<_ACEOF | |
35998 | /* confdefs.h. */ | |
35999 | _ACEOF | |
36000 | cat confdefs.h >>conftest.$ac_ext | |
36001 | cat >>conftest.$ac_ext <<_ACEOF | |
36002 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36003 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36004 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36005 | #define $ac_func innocuous_$ac_func | |
36006 | ||
a848cd7e SC |
36007 | /* System header to define __stub macros and hopefully few prototypes, |
36008 | which can conflict with char $ac_func (); below. | |
36009 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36010 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36011 | |
a848cd7e SC |
36012 | #ifdef __STDC__ |
36013 | # include <limits.h> | |
36014 | #else | |
36015 | # include <assert.h> | |
36016 | #endif | |
ac1cb8d3 VS |
36017 | |
36018 | #undef $ac_func | |
36019 | ||
a848cd7e SC |
36020 | /* Override any gcc2 internal prototype to avoid an error. */ |
36021 | #ifdef __cplusplus | |
36022 | extern "C" | |
36023 | { | |
36024 | #endif | |
36025 | /* We use char because int might match the return type of a gcc2 | |
36026 | builtin and then its argument prototype would still apply. */ | |
36027 | char $ac_func (); | |
36028 | /* The GNU C library defines this for functions which it implements | |
36029 | to always fail with ENOSYS. Some functions are actually named | |
36030 | something starting with __ and the normal name is an alias. */ | |
36031 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36032 | choke me | |
36033 | #else | |
36034 | char (*f) () = $ac_func; | |
36035 | #endif | |
36036 | #ifdef __cplusplus | |
36037 | } | |
36038 | #endif | |
36039 | ||
36040 | int | |
36041 | main () | |
36042 | { | |
36043 | return f != $ac_func; | |
36044 | ; | |
36045 | return 0; | |
36046 | } | |
36047 | _ACEOF | |
36048 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36049 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36050 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36051 | ac_status=$? |
ac1cb8d3 VS |
36052 | grep -v '^ *+' conftest.er1 >conftest.err |
36053 | rm -f conftest.er1 | |
36054 | cat conftest.err >&5 | |
a848cd7e SC |
36055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36056 | (exit $ac_status); } && | |
3565d135 RR |
36057 | { ac_try='test -z "$ac_c_werror_flag" |
36058 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36060 | (eval $ac_try) 2>&5 | |
36061 | ac_status=$? | |
36062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36063 | (exit $ac_status); }; } && | |
36064 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36066 | (eval $ac_try) 2>&5 | |
36067 | ac_status=$? | |
36068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36069 | (exit $ac_status); }; }; then | |
36070 | eval "$as_ac_var=yes" | |
36071 | else | |
36072 | echo "$as_me: failed program was:" >&5 | |
36073 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36074 | ||
36075 | eval "$as_ac_var=no" | |
36076 | fi | |
ac1cb8d3 VS |
36077 | rm -f conftest.err conftest.$ac_objext \ |
36078 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36079 | fi |
36080 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36081 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36082 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36083 | cat >>confdefs.h <<_ACEOF | |
36084 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36085 | _ACEOF | |
36086 | cat >>confdefs.h <<\_ACEOF | |
36087 | #define HAVE_INET_ADDR 1 | |
36088 | _ACEOF | |
36089 | ||
36090 | else | |
36091 | ||
36092 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
36093 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
36094 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
36095 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36096 | else | |
36097 | ac_check_lib_save_LIBS=$LIBS | |
36098 | LIBS="-lnsl $LIBS" | |
36099 | cat >conftest.$ac_ext <<_ACEOF | |
36100 | /* confdefs.h. */ | |
36101 | _ACEOF | |
36102 | cat confdefs.h >>conftest.$ac_ext | |
36103 | cat >>conftest.$ac_ext <<_ACEOF | |
36104 | /* end confdefs.h. */ | |
36105 | ||
36106 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36107 | #ifdef __cplusplus | |
36108 | extern "C" | |
36109 | #endif | |
36110 | /* We use char because int might match the return type of a gcc2 | |
36111 | builtin and then its argument prototype would still apply. */ | |
36112 | char inet_addr (); | |
36113 | int | |
36114 | main () | |
36115 | { | |
36116 | inet_addr (); | |
36117 | ; | |
36118 | return 0; | |
36119 | } | |
36120 | _ACEOF | |
36121 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36122 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36123 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36124 | ac_status=$? |
ac1cb8d3 VS |
36125 | grep -v '^ *+' conftest.er1 >conftest.err |
36126 | rm -f conftest.er1 | |
36127 | cat conftest.err >&5 | |
a848cd7e SC |
36128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36129 | (exit $ac_status); } && | |
3565d135 RR |
36130 | { ac_try='test -z "$ac_c_werror_flag" |
36131 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36133 | (eval $ac_try) 2>&5 | |
36134 | ac_status=$? | |
36135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36136 | (exit $ac_status); }; } && | |
36137 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36139 | (eval $ac_try) 2>&5 | |
36140 | ac_status=$? | |
36141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36142 | (exit $ac_status); }; }; then | |
36143 | ac_cv_lib_nsl_inet_addr=yes | |
36144 | else | |
36145 | echo "$as_me: failed program was:" >&5 | |
36146 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36147 | ||
36148 | ac_cv_lib_nsl_inet_addr=no | |
36149 | fi | |
ac1cb8d3 VS |
36150 | rm -f conftest.err conftest.$ac_objext \ |
36151 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36152 | LIBS=$ac_check_lib_save_LIBS |
36153 | fi | |
36154 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
36155 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
36156 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
36157 | INET_LINK="nsl" | |
36158 | else | |
36159 | ||
36160 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
36161 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
36162 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
36163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36164 | else | |
36165 | ac_check_lib_save_LIBS=$LIBS | |
36166 | LIBS="-lresolv $LIBS" | |
36167 | cat >conftest.$ac_ext <<_ACEOF | |
36168 | /* confdefs.h. */ | |
36169 | _ACEOF | |
36170 | cat confdefs.h >>conftest.$ac_ext | |
36171 | cat >>conftest.$ac_ext <<_ACEOF | |
36172 | /* end confdefs.h. */ | |
36173 | ||
36174 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36175 | #ifdef __cplusplus | |
36176 | extern "C" | |
36177 | #endif | |
36178 | /* We use char because int might match the return type of a gcc2 | |
36179 | builtin and then its argument prototype would still apply. */ | |
36180 | char inet_addr (); | |
36181 | int | |
36182 | main () | |
36183 | { | |
36184 | inet_addr (); | |
36185 | ; | |
36186 | return 0; | |
36187 | } | |
36188 | _ACEOF | |
36189 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36190 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36191 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36192 | ac_status=$? |
ac1cb8d3 VS |
36193 | grep -v '^ *+' conftest.er1 >conftest.err |
36194 | rm -f conftest.er1 | |
36195 | cat conftest.err >&5 | |
a848cd7e SC |
36196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36197 | (exit $ac_status); } && | |
3565d135 RR |
36198 | { ac_try='test -z "$ac_c_werror_flag" |
36199 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
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); }; } && | |
36205 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36207 | (eval $ac_try) 2>&5 | |
36208 | ac_status=$? | |
36209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36210 | (exit $ac_status); }; }; then | |
36211 | ac_cv_lib_resolv_inet_addr=yes | |
36212 | else | |
36213 | echo "$as_me: failed program was:" >&5 | |
36214 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36215 | ||
36216 | ac_cv_lib_resolv_inet_addr=no | |
36217 | fi | |
ac1cb8d3 VS |
36218 | rm -f conftest.err conftest.$ac_objext \ |
36219 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36220 | LIBS=$ac_check_lib_save_LIBS |
36221 | fi | |
36222 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
36223 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
36224 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
36225 | INET_LINK="resolv" | |
36226 | else | |
36227 | ||
36228 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
36229 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
36230 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
36231 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36232 | else | |
36233 | ac_check_lib_save_LIBS=$LIBS | |
36234 | LIBS="-lsocket $LIBS" | |
36235 | cat >conftest.$ac_ext <<_ACEOF | |
36236 | /* confdefs.h. */ | |
36237 | _ACEOF | |
36238 | cat confdefs.h >>conftest.$ac_ext | |
36239 | cat >>conftest.$ac_ext <<_ACEOF | |
36240 | /* end confdefs.h. */ | |
36241 | ||
36242 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36243 | #ifdef __cplusplus | |
36244 | extern "C" | |
36245 | #endif | |
36246 | /* We use char because int might match the return type of a gcc2 | |
36247 | builtin and then its argument prototype would still apply. */ | |
36248 | char inet_addr (); | |
36249 | int | |
36250 | main () | |
36251 | { | |
36252 | inet_addr (); | |
36253 | ; | |
36254 | return 0; | |
36255 | } | |
36256 | _ACEOF | |
36257 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36258 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36259 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36260 | ac_status=$? |
ac1cb8d3 VS |
36261 | grep -v '^ *+' conftest.er1 >conftest.err |
36262 | rm -f conftest.er1 | |
36263 | cat conftest.err >&5 | |
a848cd7e SC |
36264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36265 | (exit $ac_status); } && | |
3565d135 RR |
36266 | { ac_try='test -z "$ac_c_werror_flag" |
36267 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36269 | (eval $ac_try) 2>&5 | |
36270 | ac_status=$? | |
36271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36272 | (exit $ac_status); }; } && | |
36273 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36275 | (eval $ac_try) 2>&5 | |
36276 | ac_status=$? | |
36277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36278 | (exit $ac_status); }; }; then | |
36279 | ac_cv_lib_socket_inet_addr=yes | |
36280 | else | |
36281 | echo "$as_me: failed program was:" >&5 | |
36282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36283 | ||
36284 | ac_cv_lib_socket_inet_addr=no | |
36285 | fi | |
ac1cb8d3 VS |
36286 | rm -f conftest.err conftest.$ac_objext \ |
36287 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36288 | LIBS=$ac_check_lib_save_LIBS |
36289 | fi | |
36290 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
36291 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
36292 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
36293 | INET_LINK="socket" | |
36294 | ||
36295 | fi | |
36296 | ||
36297 | ||
36298 | ||
36299 | fi | |
36300 | ||
36301 | ||
36302 | ||
36303 | fi | |
36304 | ||
36305 | ||
36306 | ||
36307 | fi | |
36308 | done | |
36309 | ||
36310 | ||
36311 | ||
36312 | for ac_func in inet_aton | |
36313 | do | |
36314 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
36315 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
36316 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
36317 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
36318 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36319 | else | |
36320 | cat >conftest.$ac_ext <<_ACEOF | |
36321 | /* confdefs.h. */ | |
36322 | _ACEOF | |
36323 | cat confdefs.h >>conftest.$ac_ext | |
36324 | cat >>conftest.$ac_ext <<_ACEOF | |
36325 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
36326 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
36327 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
36328 | #define $ac_func innocuous_$ac_func | |
36329 | ||
a848cd7e SC |
36330 | /* System header to define __stub macros and hopefully few prototypes, |
36331 | which can conflict with char $ac_func (); below. | |
36332 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
36333 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 36334 | |
a848cd7e SC |
36335 | #ifdef __STDC__ |
36336 | # include <limits.h> | |
36337 | #else | |
36338 | # include <assert.h> | |
36339 | #endif | |
ac1cb8d3 VS |
36340 | |
36341 | #undef $ac_func | |
36342 | ||
a848cd7e SC |
36343 | /* Override any gcc2 internal prototype to avoid an error. */ |
36344 | #ifdef __cplusplus | |
36345 | extern "C" | |
36346 | { | |
36347 | #endif | |
36348 | /* We use char because int might match the return type of a gcc2 | |
36349 | builtin and then its argument prototype would still apply. */ | |
36350 | char $ac_func (); | |
36351 | /* The GNU C library defines this for functions which it implements | |
36352 | to always fail with ENOSYS. Some functions are actually named | |
36353 | something starting with __ and the normal name is an alias. */ | |
36354 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
36355 | choke me | |
36356 | #else | |
36357 | char (*f) () = $ac_func; | |
36358 | #endif | |
36359 | #ifdef __cplusplus | |
36360 | } | |
36361 | #endif | |
36362 | ||
36363 | int | |
36364 | main () | |
36365 | { | |
36366 | return f != $ac_func; | |
36367 | ; | |
36368 | return 0; | |
36369 | } | |
36370 | _ACEOF | |
36371 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36372 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36373 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36374 | ac_status=$? |
ac1cb8d3 VS |
36375 | grep -v '^ *+' conftest.er1 >conftest.err |
36376 | rm -f conftest.er1 | |
36377 | cat conftest.err >&5 | |
a848cd7e SC |
36378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36379 | (exit $ac_status); } && | |
3565d135 RR |
36380 | { ac_try='test -z "$ac_c_werror_flag" |
36381 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36383 | (eval $ac_try) 2>&5 | |
36384 | ac_status=$? | |
36385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36386 | (exit $ac_status); }; } && | |
36387 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36389 | (eval $ac_try) 2>&5 | |
36390 | ac_status=$? | |
36391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36392 | (exit $ac_status); }; }; then | |
36393 | eval "$as_ac_var=yes" | |
36394 | else | |
36395 | echo "$as_me: failed program was:" >&5 | |
36396 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36397 | ||
36398 | eval "$as_ac_var=no" | |
36399 | fi | |
ac1cb8d3 VS |
36400 | rm -f conftest.err conftest.$ac_objext \ |
36401 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36402 | fi |
36403 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
36404 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
36405 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
36406 | cat >>confdefs.h <<_ACEOF | |
36407 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
36408 | _ACEOF | |
36409 | cat >>confdefs.h <<\_ACEOF | |
36410 | #define HAVE_INET_ATON 1 | |
36411 | _ACEOF | |
36412 | ||
36413 | else | |
36414 | ||
36415 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
36416 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
36417 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
36418 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
36419 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36420 | else | |
36421 | ac_check_lib_save_LIBS=$LIBS | |
36422 | LIBS="-l$INET_LINK $LIBS" | |
36423 | cat >conftest.$ac_ext <<_ACEOF | |
36424 | /* confdefs.h. */ | |
36425 | _ACEOF | |
36426 | cat confdefs.h >>conftest.$ac_ext | |
36427 | cat >>conftest.$ac_ext <<_ACEOF | |
36428 | /* end confdefs.h. */ | |
36429 | ||
36430 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36431 | #ifdef __cplusplus | |
36432 | extern "C" | |
36433 | #endif | |
36434 | /* We use char because int might match the return type of a gcc2 | |
36435 | builtin and then its argument prototype would still apply. */ | |
36436 | char inet_aton (); | |
36437 | int | |
36438 | main () | |
36439 | { | |
36440 | inet_aton (); | |
36441 | ; | |
36442 | return 0; | |
36443 | } | |
36444 | _ACEOF | |
36445 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36446 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36447 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36448 | ac_status=$? |
ac1cb8d3 VS |
36449 | grep -v '^ *+' conftest.er1 >conftest.err |
36450 | rm -f conftest.er1 | |
36451 | cat conftest.err >&5 | |
a848cd7e SC |
36452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36453 | (exit $ac_status); } && | |
3565d135 RR |
36454 | { ac_try='test -z "$ac_c_werror_flag" |
36455 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36457 | (eval $ac_try) 2>&5 | |
36458 | ac_status=$? | |
36459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36460 | (exit $ac_status); }; } && | |
36461 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36463 | (eval $ac_try) 2>&5 | |
36464 | ac_status=$? | |
36465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36466 | (exit $ac_status); }; }; then | |
36467 | eval "$as_ac_Lib=yes" | |
36468 | else | |
36469 | echo "$as_me: failed program was:" >&5 | |
36470 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36471 | ||
36472 | eval "$as_ac_Lib=no" | |
36473 | fi | |
ac1cb8d3 VS |
36474 | rm -f conftest.err conftest.$ac_objext \ |
36475 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36476 | LIBS=$ac_check_lib_save_LIBS |
36477 | fi | |
36478 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
36479 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
36480 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
36481 | cat >>confdefs.h <<\_ACEOF | |
36482 | #define HAVE_INET_ATON 1 | |
36483 | _ACEOF | |
36484 | ||
36485 | fi | |
36486 | ||
36487 | ||
36488 | fi | |
36489 | done | |
36490 | ||
36491 | ||
36492 | if test "x$INET_LINK" != "x"; then | |
36493 | cat >>confdefs.h <<\_ACEOF | |
36494 | #define HAVE_INET_ADDR 1 | |
36495 | _ACEOF | |
36496 | ||
36497 | INET_LINK=" -l$INET_LINK" | |
36498 | fi | |
36499 | ||
36500 | fi | |
36501 | ||
36502 | ||
36503 | ||
36504 | EXTRALIBS_ESD= | |
36505 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
36506 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
36507 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
36508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36509 | else | |
36510 | ac_check_lib_save_LIBS=$LIBS | |
36511 | LIBS="-lesd $LIBS" | |
36512 | cat >conftest.$ac_ext <<_ACEOF | |
36513 | /* confdefs.h. */ | |
36514 | _ACEOF | |
36515 | cat confdefs.h >>conftest.$ac_ext | |
36516 | cat >>conftest.$ac_ext <<_ACEOF | |
36517 | /* end confdefs.h. */ | |
36518 | ||
36519 | /* Override any gcc2 internal prototype to avoid an error. */ | |
36520 | #ifdef __cplusplus | |
36521 | extern "C" | |
36522 | #endif | |
36523 | /* We use char because int might match the return type of a gcc2 | |
36524 | builtin and then its argument prototype would still apply. */ | |
36525 | char esd_close (); | |
36526 | int | |
36527 | main () | |
36528 | { | |
36529 | esd_close (); | |
36530 | ; | |
36531 | return 0; | |
36532 | } | |
36533 | _ACEOF | |
36534 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36535 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36536 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36537 | ac_status=$? |
ac1cb8d3 VS |
36538 | grep -v '^ *+' conftest.er1 >conftest.err |
36539 | rm -f conftest.er1 | |
36540 | cat conftest.err >&5 | |
a848cd7e SC |
36541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36542 | (exit $ac_status); } && | |
3565d135 RR |
36543 | { ac_try='test -z "$ac_c_werror_flag" |
36544 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36546 | (eval $ac_try) 2>&5 | |
36547 | ac_status=$? | |
36548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36549 | (exit $ac_status); }; } && | |
36550 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36552 | (eval $ac_try) 2>&5 | |
36553 | ac_status=$? | |
36554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36555 | (exit $ac_status); }; }; then | |
36556 | ac_cv_lib_esd_esd_close=yes | |
36557 | else | |
36558 | echo "$as_me: failed program was:" >&5 | |
36559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36560 | ||
36561 | ac_cv_lib_esd_esd_close=no | |
36562 | fi | |
ac1cb8d3 VS |
36563 | rm -f conftest.err conftest.$ac_objext \ |
36564 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36565 | LIBS=$ac_check_lib_save_LIBS |
36566 | fi | |
36567 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
36568 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
36569 | if test $ac_cv_lib_esd_esd_close = yes; then | |
36570 | ||
36571 | ||
36572 | for ac_header in esd.h | |
36573 | do | |
36574 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
36575 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36576 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36577 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36578 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36579 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36580 | fi | |
36581 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36582 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36583 | else | |
36584 | # Is the header compilable? | |
36585 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
36586 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
36587 | cat >conftest.$ac_ext <<_ACEOF | |
36588 | /* confdefs.h. */ | |
36589 | _ACEOF | |
36590 | cat confdefs.h >>conftest.$ac_ext | |
36591 | cat >>conftest.$ac_ext <<_ACEOF | |
36592 | /* end confdefs.h. */ | |
36593 | $ac_includes_default | |
36594 | #include <$ac_header> | |
36595 | _ACEOF | |
36596 | rm -f conftest.$ac_objext | |
36597 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36598 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36599 | ac_status=$? |
ac1cb8d3 VS |
36600 | grep -v '^ *+' conftest.er1 >conftest.err |
36601 | rm -f conftest.er1 | |
36602 | cat conftest.err >&5 | |
a848cd7e SC |
36603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36604 | (exit $ac_status); } && | |
3565d135 RR |
36605 | { ac_try='test -z "$ac_c_werror_flag" |
36606 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36608 | (eval $ac_try) 2>&5 | |
36609 | ac_status=$? | |
36610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36611 | (exit $ac_status); }; } && | |
36612 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36614 | (eval $ac_try) 2>&5 | |
36615 | ac_status=$? | |
36616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36617 | (exit $ac_status); }; }; then | |
36618 | ac_header_compiler=yes | |
36619 | else | |
36620 | echo "$as_me: failed program was:" >&5 | |
36621 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36622 | ||
36623 | ac_header_compiler=no | |
36624 | fi | |
ac1cb8d3 | 36625 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36626 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
36627 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
36628 | ||
36629 | # Is the header present? | |
36630 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
36631 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
36632 | cat >conftest.$ac_ext <<_ACEOF | |
36633 | /* confdefs.h. */ | |
36634 | _ACEOF | |
36635 | cat confdefs.h >>conftest.$ac_ext | |
36636 | cat >>conftest.$ac_ext <<_ACEOF | |
36637 | /* end confdefs.h. */ | |
36638 | #include <$ac_header> | |
36639 | _ACEOF | |
36640 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
36641 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
36642 | ac_status=$? | |
36643 | grep -v '^ *+' conftest.er1 >conftest.err | |
36644 | rm -f conftest.er1 | |
36645 | cat conftest.err >&5 | |
36646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36647 | (exit $ac_status); } >/dev/null; then | |
36648 | if test -s conftest.err; then | |
36649 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 36650 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
36651 | else |
36652 | ac_cpp_err= | |
36653 | fi | |
36654 | else | |
36655 | ac_cpp_err=yes | |
36656 | fi | |
36657 | if test -z "$ac_cpp_err"; then | |
36658 | ac_header_preproc=yes | |
36659 | else | |
36660 | echo "$as_me: failed program was:" >&5 | |
36661 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36662 | ||
36663 | ac_header_preproc=no | |
36664 | fi | |
36665 | rm -f conftest.err conftest.$ac_ext | |
36666 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
36667 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
36668 | ||
36669 | # So? What about this header? | |
ac1cb8d3 VS |
36670 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
36671 | yes:no: ) | |
a848cd7e SC |
36672 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
36673 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
36674 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
36675 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
36676 | ac_header_preproc=yes | |
a848cd7e | 36677 | ;; |
ac1cb8d3 | 36678 | no:yes:* ) |
a848cd7e SC |
36679 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
36680 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
36681 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
36682 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
36683 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
36684 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
36685 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
36686 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
36687 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
36688 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
36689 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
36690 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
36691 | ( |
36692 | cat <<\_ASBOX | |
ac1cb8d3 VS |
36693 | ## ----------------------------------------- ## |
36694 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
36695 | ## ----------------------------------------- ## | |
a848cd7e SC |
36696 | _ASBOX |
36697 | ) | | |
36698 | sed "s/^/$as_me: WARNING: /" >&2 | |
36699 | ;; | |
36700 | esac | |
36701 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
36702 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
36703 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
36704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36705 | else | |
ac1cb8d3 | 36706 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
36707 | fi |
36708 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
36709 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
36710 | ||
36711 | fi | |
36712 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
36713 | cat >>confdefs.h <<_ACEOF | |
36714 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
36715 | _ACEOF | |
36716 | ||
36717 | EXTRALIBS_ESD="-lesd" | |
36718 | ||
36719 | fi | |
36720 | ||
36721 | done | |
36722 | ||
36723 | ||
36724 | fi | |
36725 | ||
36726 | ||
36727 | ||
36728 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 | |
36729 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
36730 | cat >conftest.$ac_ext <<_ACEOF | |
36731 | /* confdefs.h. */ | |
36732 | _ACEOF | |
36733 | cat confdefs.h >>conftest.$ac_ext | |
36734 | cat >>conftest.$ac_ext <<_ACEOF | |
36735 | /* end confdefs.h. */ | |
36736 | #ifdef __linux__ | |
36737 | #include <linux/cdrom.h> | |
36738 | #else | |
36739 | /* For Solaris */ | |
36740 | #include <sys/cdio.h> | |
36741 | #endif | |
36742 | ||
36743 | int | |
36744 | main () | |
36745 | { | |
36746 | struct cdrom_tocentry entry, old_entry; | |
36747 | ; | |
36748 | return 0; | |
36749 | } | |
36750 | _ACEOF | |
36751 | rm -f conftest.$ac_objext | |
36752 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 36753 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 36754 | ac_status=$? |
ac1cb8d3 VS |
36755 | grep -v '^ *+' conftest.er1 >conftest.err |
36756 | rm -f conftest.er1 | |
36757 | cat conftest.err >&5 | |
a848cd7e SC |
36758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36759 | (exit $ac_status); } && | |
3565d135 RR |
36760 | { ac_try='test -z "$ac_c_werror_flag" |
36761 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36763 | (eval $ac_try) 2>&5 | |
36764 | ac_status=$? | |
36765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36766 | (exit $ac_status); }; } && | |
36767 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
36768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36769 | (eval $ac_try) 2>&5 | |
36770 | ac_status=$? | |
36771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36772 | (exit $ac_status); }; }; then | |
36773 | echo "$as_me:$LINENO: result: yes" >&5 | |
36774 | echo "${ECHO_T}yes" >&6 | |
36775 | cat >>confdefs.h <<\_ACEOF | |
36776 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
36777 | _ACEOF | |
36778 | ||
36779 | else | |
36780 | echo "$as_me: failed program was:" >&5 | |
36781 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36782 | ||
36783 | echo "$as_me:$LINENO: result: no" >&5 | |
36784 | echo "${ECHO_T}no" >&6 | |
36785 | fi | |
ac1cb8d3 | 36786 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36787 | |
36788 | ||
36789 | cat >confcache <<\_ACEOF | |
36790 | # This file is a shell script that caches the results of configure | |
36791 | # tests run on this system so they can be shared between configure | |
36792 | # scripts and configure runs, see configure's option --config-cache. | |
36793 | # It is not useful on other systems. If it contains results you don't | |
36794 | # want to keep, you may remove or edit it. | |
36795 | # | |
36796 | # config.status only pays attention to the cache file if you give it | |
36797 | # the --recheck option to rerun configure. | |
36798 | # | |
36799 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
36800 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
36801 | # following values. | |
36802 | ||
36803 | _ACEOF | |
36804 | ||
36805 | # The following way of writing the cache mishandles newlines in values, | |
36806 | # but we know of no workaround that is simple, portable, and efficient. | |
36807 | # So, don't put newlines in cache variables' values. | |
36808 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
36809 | # and sets the high bit in the cache file unless we assign to the vars. | |
36810 | { | |
36811 | (set) 2>&1 | | |
36812 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
36813 | *ac_space=\ *) | |
36814 | # `set' does not quote correctly, so add quotes (double-quote | |
36815 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
36816 | sed -n \ | |
ac1cb8d3 VS |
36817 | "s/'/'\\\\''/g; |
36818 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
36819 | ;; |
36820 | *) | |
36821 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
36822 | sed -n \ | |
ac1cb8d3 | 36823 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
36824 | ;; |
36825 | esac; | |
36826 | } | | |
36827 | sed ' | |
36828 | t clear | |
36829 | : clear | |
36830 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
36831 | t end | |
36832 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
36833 | : end' >>confcache | |
36834 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
36835 | if test -w $cache_file; then | |
36836 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
36837 | cat confcache >$cache_file | |
36838 | else | |
36839 | echo "not updating unwritable cache $cache_file" | |
36840 | fi | |
36841 | fi | |
36842 | rm -f confcache | |
36843 | ||
36844 | ||
a848cd7e SC |
36845 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then |
36846 | ||
36847 | ||
36848 | THREADS_LINK= | |
36849 | THREADS_CFLAGS= | |
36850 | ||
36851 | if test "$wxUSE_THREADS" = "yes" ; then | |
36852 | if test "$USE_BEOS" = 1; then | |
36853 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 | |
36854 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
36855 | wxUSE_THREADS="no" | |
36856 | fi | |
36857 | fi | |
36858 | ||
36859 | if test "$wxUSE_THREADS" = "yes" ; then | |
36860 | ||
36861 | ||
36862 | THREAD_OPTS="-pthread" | |
36863 | case "${host}" in | |
36864 | *-*-solaris2* | *-*-sunos4* ) | |
36865 | if test "x$GCC" = "xyes"; then | |
36866 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
36867 | else | |
36868 | THREAD_OPTS="-mt $THREAD_OPTS" | |
36869 | fi | |
36870 | ;; | |
36871 | *-*-freebsd*) | |
36872 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
36873 | ;; | |
36874 | *-*-darwin* | *-*-cygwin* ) | |
36875 | THREAD_OPTS="" | |
36876 | ;; | |
36877 | *-*-aix*) | |
36878 | THREAD_OPTS="pthreads" | |
36879 | ;; | |
36880 | *-hp-hpux* ) | |
00421666 MW |
36881 | if test "x$GCC" = "xyes"; then |
36882 | $CXX -dumpspecs | grep 'pthread:' >/dev/null || | |
36883 | THREAD_OPTS="" | |
36884 | else | |
0093c2fc | 36885 | THREAD_OPTS="-mt" |
a848cd7e SC |
36886 | fi |
36887 | ;; | |
36888 | ||
36889 | *-*-irix* ) | |
36890 | if test "x$GCC" = "xyes"; then | |
36891 | THREAD_OPTS="" | |
36892 | fi | |
36893 | ;; | |
36894 | ||
36895 | *-*-*UnixWare*) | |
36896 | if test "x$GCC" != "xyes"; then | |
36897 | THREAD_OPTS="-Ethread" | |
36898 | fi | |
36899 | ;; | |
36900 | esac | |
36901 | ||
36902 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
36903 | ||
36904 | THREADS_OK=no | |
36905 | for flag in $THREAD_OPTS; do | |
36906 | case $flag in | |
36907 | none) | |
36908 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 | |
36909 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
36910 | ;; | |
36911 | ||
36912 | -*) | |
36913 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 | |
36914 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
36915 | THREADS_CFLAGS="$flag" | |
36916 | ;; | |
36917 | ||
36918 | *) | |
36919 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 | |
36920 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
36921 | THREADS_LINK="-l$flag" | |
36922 | ;; | |
36923 | esac | |
36924 | ||
36925 | save_LIBS="$LIBS" | |
36926 | save_CFLAGS="$CFLAGS" | |
36927 | LIBS="$THREADS_LINK $LIBS" | |
36928 | CFLAGS="$THREADS_CFLAGS $CFLAGS" | |
36929 | ||
36930 | cat >conftest.$ac_ext <<_ACEOF | |
36931 | /* confdefs.h. */ | |
36932 | _ACEOF | |
36933 | cat confdefs.h >>conftest.$ac_ext | |
36934 | cat >>conftest.$ac_ext <<_ACEOF | |
36935 | /* end confdefs.h. */ | |
36936 | #include <pthread.h> | |
36937 | int | |
36938 | main () | |
36939 | { | |
36940 | pthread_create(0,0,0,0); | |
36941 | ; | |
36942 | return 0; | |
36943 | } | |
36944 | _ACEOF | |
36945 | rm -f conftest.$ac_objext conftest$ac_exeext | |
36946 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 36947 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 36948 | ac_status=$? |
ac1cb8d3 VS |
36949 | grep -v '^ *+' conftest.er1 >conftest.err |
36950 | rm -f conftest.er1 | |
36951 | cat conftest.err >&5 | |
a848cd7e SC |
36952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36953 | (exit $ac_status); } && | |
3565d135 RR |
36954 | { ac_try='test -z "$ac_c_werror_flag" |
36955 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
36956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36957 | (eval $ac_try) 2>&5 | |
36958 | ac_status=$? | |
36959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36960 | (exit $ac_status); }; } && | |
36961 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
36962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36963 | (eval $ac_try) 2>&5 | |
36964 | ac_status=$? | |
36965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36966 | (exit $ac_status); }; }; then | |
36967 | THREADS_OK=yes | |
36968 | else | |
36969 | echo "$as_me: failed program was:" >&5 | |
36970 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36971 | ||
36972 | fi | |
ac1cb8d3 VS |
36973 | rm -f conftest.err conftest.$ac_objext \ |
36974 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
36975 | |
36976 | LIBS="$save_LIBS" | |
36977 | CFLAGS="$save_CFLAGS" | |
36978 | ||
36979 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 | |
36980 | echo "${ECHO_T}$THREADS_OK" >&6 | |
36981 | if test "x$THREADS_OK" = "xyes"; then | |
36982 | break; | |
36983 | fi | |
36984 | ||
36985 | THREADS_LINK="" | |
36986 | THREADS_CFLAGS="" | |
36987 | done | |
36988 | ||
36989 | if test "x$THREADS_OK" != "xyes"; then | |
36990 | wxUSE_THREADS=no | |
36991 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 | |
36992 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
36993 | else | |
36994 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" | |
36995 | LIBS="$THREADS_LINK $LIBS" | |
36996 | ||
36997 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 | |
36998 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
36999 | flag=no | |
37000 | case "${host}" in | |
37001 | *-aix*) | |
37002 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
37003 | flag="-D_THREAD_SAFE" | |
37004 | ;; | |
37005 | *-freebsd*) | |
37006 | flag="-D_THREAD_SAFE" | |
37007 | ;; | |
37008 | *-hp-hpux* ) | |
37009 | flag="-D_REENTRANT" | |
37010 | if test "x$GCC" != "xyes"; then | |
37011 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
37012 | fi | |
37013 | ;; | |
37014 | *solaris* | alpha*-osf*) | |
37015 | flag="-D_REENTRANT" | |
37016 | ;; | |
37017 | esac | |
37018 | echo "$as_me:$LINENO: result: ${flag}" >&5 | |
37019 | echo "${ECHO_T}${flag}" >&6 | |
37020 | if test "x$flag" != xno; then | |
37021 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" | |
37022 | fi | |
37023 | ||
5ff751d6 | 37024 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS" |
a848cd7e SC |
37025 | fi |
37026 | fi | |
37027 | ||
37028 | if test "$wxUSE_THREADS" = "yes" ; then | |
37029 | ||
37030 | for ac_func in thr_setconcurrency | |
37031 | do | |
37032 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
37033 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
37034 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
37035 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
37036 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37037 | else | |
37038 | cat >conftest.$ac_ext <<_ACEOF | |
37039 | /* confdefs.h. */ | |
37040 | _ACEOF | |
37041 | cat confdefs.h >>conftest.$ac_ext | |
37042 | cat >>conftest.$ac_ext <<_ACEOF | |
37043 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37044 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
37045 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37046 | #define $ac_func innocuous_$ac_func | |
37047 | ||
a848cd7e SC |
37048 | /* System header to define __stub macros and hopefully few prototypes, |
37049 | which can conflict with char $ac_func (); below. | |
37050 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37051 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37052 | |
a848cd7e SC |
37053 | #ifdef __STDC__ |
37054 | # include <limits.h> | |
37055 | #else | |
37056 | # include <assert.h> | |
37057 | #endif | |
ac1cb8d3 VS |
37058 | |
37059 | #undef $ac_func | |
37060 | ||
a848cd7e SC |
37061 | /* Override any gcc2 internal prototype to avoid an error. */ |
37062 | #ifdef __cplusplus | |
37063 | extern "C" | |
37064 | { | |
37065 | #endif | |
37066 | /* We use char because int might match the return type of a gcc2 | |
37067 | builtin and then its argument prototype would still apply. */ | |
37068 | char $ac_func (); | |
37069 | /* The GNU C library defines this for functions which it implements | |
37070 | to always fail with ENOSYS. Some functions are actually named | |
37071 | something starting with __ and the normal name is an alias. */ | |
37072 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
37073 | choke me | |
37074 | #else | |
37075 | char (*f) () = $ac_func; | |
37076 | #endif | |
37077 | #ifdef __cplusplus | |
37078 | } | |
37079 | #endif | |
37080 | ||
37081 | int | |
37082 | main () | |
37083 | { | |
37084 | return f != $ac_func; | |
37085 | ; | |
37086 | return 0; | |
37087 | } | |
37088 | _ACEOF | |
37089 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37090 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37091 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37092 | ac_status=$? |
ac1cb8d3 VS |
37093 | grep -v '^ *+' conftest.er1 >conftest.err |
37094 | rm -f conftest.er1 | |
37095 | cat conftest.err >&5 | |
a848cd7e SC |
37096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37097 | (exit $ac_status); } && | |
3565d135 RR |
37098 | { ac_try='test -z "$ac_c_werror_flag" |
37099 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37101 | (eval $ac_try) 2>&5 | |
37102 | ac_status=$? | |
37103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37104 | (exit $ac_status); }; } && | |
37105 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37107 | (eval $ac_try) 2>&5 | |
37108 | ac_status=$? | |
37109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37110 | (exit $ac_status); }; }; then | |
37111 | eval "$as_ac_var=yes" | |
37112 | else | |
37113 | echo "$as_me: failed program was:" >&5 | |
37114 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37115 | ||
37116 | eval "$as_ac_var=no" | |
37117 | fi | |
ac1cb8d3 VS |
37118 | rm -f conftest.err conftest.$ac_objext \ |
37119 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37120 | fi |
37121 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
37122 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
37123 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
37124 | cat >>confdefs.h <<_ACEOF | |
37125 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
37126 | _ACEOF | |
37127 | ||
37128 | fi | |
37129 | done | |
37130 | ||
37131 | ||
6ebeb4c7 VZ |
37132 | echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5 |
37133 | echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6 | |
37134 | if test "${wx_cv_func_pthread_cleanup+set}" = set; then | |
37135 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37136 | else | |
37137 | ||
37138 | cat >conftest.$ac_ext <<_ACEOF | |
37139 | /* confdefs.h. */ | |
37140 | _ACEOF | |
37141 | cat confdefs.h >>conftest.$ac_ext | |
37142 | cat >>conftest.$ac_ext <<_ACEOF | |
37143 | /* end confdefs.h. */ | |
37144 | #include <pthread.h> | |
37145 | void ThreadCleanupFunc(void *p); | |
37146 | ||
37147 | int | |
37148 | main () | |
37149 | { | |
37150 | ||
37151 | void *p; | |
37152 | pthread_cleanup_push(ThreadCleanupFunc, p); | |
37153 | pthread_cleanup_pop(0); | |
37154 | ||
37155 | ; | |
37156 | return 0; | |
37157 | } | |
37158 | _ACEOF | |
37159 | rm -f conftest.$ac_objext | |
37160 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
37161 | (eval $ac_compile) 2>conftest.er1 | |
37162 | ac_status=$? | |
37163 | grep -v '^ *+' conftest.er1 >conftest.err | |
37164 | rm -f conftest.er1 | |
37165 | cat conftest.err >&5 | |
37166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37167 | (exit $ac_status); } && | |
3565d135 RR |
37168 | { ac_try='test -z "$ac_c_werror_flag" |
37169 | || test ! -s conftest.err' | |
6ebeb4c7 VZ |
37170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37171 | (eval $ac_try) 2>&5 | |
37172 | ac_status=$? | |
37173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37174 | (exit $ac_status); }; } && | |
37175 | { ac_try='test -s conftest.$ac_objext' | |
37176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
37177 | (eval $ac_try) 2>&5 | |
37178 | ac_status=$? | |
37179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37180 | (exit $ac_status); }; }; then | |
37181 | ||
37182 | wx_cv_func_pthread_cleanup=yes | |
37183 | ||
37184 | else | |
37185 | echo "$as_me: failed program was:" >&5 | |
37186 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37187 | ||
37188 | ||
37189 | wx_cv_func_pthread_cleanup=no | |
37190 | ||
37191 | ||
37192 | fi | |
37193 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
37194 | ||
37195 | fi | |
37196 | echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5 | |
37197 | echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6 | |
37198 | if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then | |
37199 | cat >>confdefs.h <<\_ACEOF | |
37200 | #define wxHAVE_PTHREAD_CLEANUP 1 | |
37201 | _ACEOF | |
37202 | ||
37203 | fi | |
37204 | ||
a848cd7e SC |
37205 | |
37206 | for ac_header in sched.h | |
37207 | do | |
37208 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
37209 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37210 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
37211 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
37212 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37214 | fi | |
37215 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
37216 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
37217 | else | |
37218 | # Is the header compilable? | |
37219 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
37220 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
37221 | cat >conftest.$ac_ext <<_ACEOF | |
37222 | /* confdefs.h. */ | |
37223 | _ACEOF | |
37224 | cat confdefs.h >>conftest.$ac_ext | |
37225 | cat >>conftest.$ac_ext <<_ACEOF | |
37226 | /* end confdefs.h. */ | |
37227 | $ac_includes_default | |
37228 | #include <$ac_header> | |
37229 | _ACEOF | |
37230 | rm -f conftest.$ac_objext | |
37231 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 37232 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 37233 | ac_status=$? |
ac1cb8d3 VS |
37234 | grep -v '^ *+' conftest.er1 >conftest.err |
37235 | rm -f conftest.er1 | |
37236 | cat conftest.err >&5 | |
a848cd7e SC |
37237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37238 | (exit $ac_status); } && | |
3565d135 RR |
37239 | { ac_try='test -z "$ac_c_werror_flag" |
37240 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37242 | (eval $ac_try) 2>&5 | |
37243 | ac_status=$? | |
37244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37245 | (exit $ac_status); }; } && | |
37246 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
37247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37248 | (eval $ac_try) 2>&5 | |
37249 | ac_status=$? | |
37250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37251 | (exit $ac_status); }; }; then | |
37252 | ac_header_compiler=yes | |
37253 | else | |
37254 | echo "$as_me: failed program was:" >&5 | |
37255 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37256 | ||
37257 | ac_header_compiler=no | |
37258 | fi | |
ac1cb8d3 | 37259 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37260 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
37261 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
37262 | ||
37263 | # Is the header present? | |
37264 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
37265 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
37266 | cat >conftest.$ac_ext <<_ACEOF | |
37267 | /* confdefs.h. */ | |
37268 | _ACEOF | |
37269 | cat confdefs.h >>conftest.$ac_ext | |
37270 | cat >>conftest.$ac_ext <<_ACEOF | |
37271 | /* end confdefs.h. */ | |
37272 | #include <$ac_header> | |
37273 | _ACEOF | |
37274 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
37275 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
37276 | ac_status=$? | |
37277 | grep -v '^ *+' conftest.er1 >conftest.err | |
37278 | rm -f conftest.er1 | |
37279 | cat conftest.err >&5 | |
37280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37281 | (exit $ac_status); } >/dev/null; then | |
37282 | if test -s conftest.err; then | |
37283 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 37284 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
37285 | else |
37286 | ac_cpp_err= | |
37287 | fi | |
37288 | else | |
37289 | ac_cpp_err=yes | |
37290 | fi | |
37291 | if test -z "$ac_cpp_err"; then | |
37292 | ac_header_preproc=yes | |
37293 | else | |
37294 | echo "$as_me: failed program was:" >&5 | |
37295 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37296 | ||
37297 | ac_header_preproc=no | |
37298 | fi | |
37299 | rm -f conftest.err conftest.$ac_ext | |
37300 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
37301 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
37302 | ||
37303 | # So? What about this header? | |
ac1cb8d3 VS |
37304 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
37305 | yes:no: ) | |
a848cd7e SC |
37306 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
37307 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
37308 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
37309 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
37310 | ac_header_preproc=yes | |
a848cd7e | 37311 | ;; |
ac1cb8d3 | 37312 | no:yes:* ) |
a848cd7e SC |
37313 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
37314 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
37315 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
37316 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
37317 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
37318 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
37319 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
37320 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
37321 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
37322 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
37323 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
37324 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
37325 | ( |
37326 | cat <<\_ASBOX | |
ac1cb8d3 VS |
37327 | ## ----------------------------------------- ## |
37328 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
37329 | ## ----------------------------------------- ## | |
a848cd7e SC |
37330 | _ASBOX |
37331 | ) | | |
37332 | sed "s/^/$as_me: WARNING: /" >&2 | |
37333 | ;; | |
37334 | esac | |
37335 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
37336 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
37337 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
37338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37339 | else | |
ac1cb8d3 | 37340 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
37341 | fi |
37342 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
37343 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
37344 | ||
37345 | fi | |
37346 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
37347 | cat >>confdefs.h <<_ACEOF | |
37348 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
37349 | _ACEOF | |
37350 | ||
37351 | fi | |
37352 | ||
37353 | done | |
37354 | ||
37355 | if test "$ac_cv_header_sched_h" = "yes"; then | |
37356 | echo "$as_me:$LINENO: checking for sched_yield" >&5 | |
37357 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
37358 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
37359 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37360 | else | |
37361 | cat >conftest.$ac_ext <<_ACEOF | |
37362 | /* confdefs.h. */ | |
37363 | _ACEOF | |
37364 | cat confdefs.h >>conftest.$ac_ext | |
37365 | cat >>conftest.$ac_ext <<_ACEOF | |
37366 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37367 | /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield. |
37368 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37369 | #define sched_yield innocuous_sched_yield | |
37370 | ||
a848cd7e SC |
37371 | /* System header to define __stub macros and hopefully few prototypes, |
37372 | which can conflict with char sched_yield (); below. | |
37373 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37374 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37375 | |
a848cd7e SC |
37376 | #ifdef __STDC__ |
37377 | # include <limits.h> | |
37378 | #else | |
37379 | # include <assert.h> | |
37380 | #endif | |
ac1cb8d3 VS |
37381 | |
37382 | #undef sched_yield | |
37383 | ||
a848cd7e SC |
37384 | /* Override any gcc2 internal prototype to avoid an error. */ |
37385 | #ifdef __cplusplus | |
37386 | extern "C" | |
37387 | { | |
37388 | #endif | |
37389 | /* We use char because int might match the return type of a gcc2 | |
37390 | builtin and then its argument prototype would still apply. */ | |
37391 | char sched_yield (); | |
37392 | /* The GNU C library defines this for functions which it implements | |
37393 | to always fail with ENOSYS. Some functions are actually named | |
37394 | something starting with __ and the normal name is an alias. */ | |
37395 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
37396 | choke me | |
37397 | #else | |
37398 | char (*f) () = sched_yield; | |
37399 | #endif | |
37400 | #ifdef __cplusplus | |
37401 | } | |
37402 | #endif | |
37403 | ||
37404 | int | |
37405 | main () | |
37406 | { | |
37407 | return f != sched_yield; | |
37408 | ; | |
37409 | return 0; | |
37410 | } | |
37411 | _ACEOF | |
37412 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37413 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37414 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37415 | ac_status=$? |
ac1cb8d3 VS |
37416 | grep -v '^ *+' conftest.er1 >conftest.err |
37417 | rm -f conftest.er1 | |
37418 | cat conftest.err >&5 | |
a848cd7e SC |
37419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37420 | (exit $ac_status); } && | |
3565d135 RR |
37421 | { ac_try='test -z "$ac_c_werror_flag" |
37422 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37424 | (eval $ac_try) 2>&5 | |
37425 | ac_status=$? | |
37426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37427 | (exit $ac_status); }; } && | |
37428 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37430 | (eval $ac_try) 2>&5 | |
37431 | ac_status=$? | |
37432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37433 | (exit $ac_status); }; }; then | |
37434 | ac_cv_func_sched_yield=yes | |
37435 | else | |
37436 | echo "$as_me: failed program was:" >&5 | |
37437 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37438 | ||
37439 | ac_cv_func_sched_yield=no | |
37440 | fi | |
ac1cb8d3 VS |
37441 | rm -f conftest.err conftest.$ac_objext \ |
37442 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37443 | fi |
37444 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
37445 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
37446 | if test $ac_cv_func_sched_yield = yes; then | |
37447 | cat >>confdefs.h <<\_ACEOF | |
37448 | #define HAVE_SCHED_YIELD 1 | |
37449 | _ACEOF | |
37450 | ||
37451 | else | |
37452 | ||
37453 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 | |
37454 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
37455 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
37456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37457 | else | |
37458 | ac_check_lib_save_LIBS=$LIBS | |
37459 | LIBS="-lposix4 $LIBS" | |
37460 | cat >conftest.$ac_ext <<_ACEOF | |
37461 | /* confdefs.h. */ | |
37462 | _ACEOF | |
37463 | cat confdefs.h >>conftest.$ac_ext | |
37464 | cat >>conftest.$ac_ext <<_ACEOF | |
37465 | /* end confdefs.h. */ | |
37466 | ||
37467 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37468 | #ifdef __cplusplus | |
37469 | extern "C" | |
37470 | #endif | |
37471 | /* We use char because int might match the return type of a gcc2 | |
37472 | builtin and then its argument prototype would still apply. */ | |
37473 | char sched_yield (); | |
37474 | int | |
37475 | main () | |
37476 | { | |
37477 | sched_yield (); | |
37478 | ; | |
37479 | return 0; | |
37480 | } | |
37481 | _ACEOF | |
37482 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37483 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37484 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37485 | ac_status=$? |
ac1cb8d3 VS |
37486 | grep -v '^ *+' conftest.er1 >conftest.err |
37487 | rm -f conftest.er1 | |
37488 | cat conftest.err >&5 | |
a848cd7e SC |
37489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37490 | (exit $ac_status); } && | |
3565d135 RR |
37491 | { ac_try='test -z "$ac_c_werror_flag" |
37492 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37494 | (eval $ac_try) 2>&5 | |
37495 | ac_status=$? | |
37496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37497 | (exit $ac_status); }; } && | |
37498 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37500 | (eval $ac_try) 2>&5 | |
37501 | ac_status=$? | |
37502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37503 | (exit $ac_status); }; }; then | |
37504 | ac_cv_lib_posix4_sched_yield=yes | |
37505 | else | |
37506 | echo "$as_me: failed program was:" >&5 | |
37507 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37508 | ||
37509 | ac_cv_lib_posix4_sched_yield=no | |
37510 | fi | |
ac1cb8d3 VS |
37511 | rm -f conftest.err conftest.$ac_objext \ |
37512 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37513 | LIBS=$ac_check_lib_save_LIBS |
37514 | fi | |
37515 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
37516 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
37517 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
37518 | cat >>confdefs.h <<\_ACEOF | |
37519 | #define HAVE_SCHED_YIELD 1 | |
37520 | _ACEOF | |
37521 | POSIX4_LINK=" -lposix4" | |
37522 | else | |
37523 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 | |
37524 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
37525 | ||
37526 | fi | |
37527 | ||
37528 | ||
37529 | ||
37530 | fi | |
37531 | ||
37532 | fi | |
37533 | ||
37534 | HAVE_PRIOR_FUNCS=0 | |
37535 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 | |
37536 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
37537 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
37538 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37539 | else | |
37540 | cat >conftest.$ac_ext <<_ACEOF | |
37541 | /* confdefs.h. */ | |
37542 | _ACEOF | |
37543 | cat confdefs.h >>conftest.$ac_ext | |
37544 | cat >>conftest.$ac_ext <<_ACEOF | |
37545 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37546 | /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy. |
37547 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37548 | #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy | |
37549 | ||
a848cd7e SC |
37550 | /* System header to define __stub macros and hopefully few prototypes, |
37551 | which can conflict with char pthread_attr_getschedpolicy (); below. | |
37552 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37553 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37554 | |
a848cd7e SC |
37555 | #ifdef __STDC__ |
37556 | # include <limits.h> | |
37557 | #else | |
37558 | # include <assert.h> | |
37559 | #endif | |
ac1cb8d3 VS |
37560 | |
37561 | #undef pthread_attr_getschedpolicy | |
37562 | ||
a848cd7e SC |
37563 | /* Override any gcc2 internal prototype to avoid an error. */ |
37564 | #ifdef __cplusplus | |
37565 | extern "C" | |
37566 | { | |
37567 | #endif | |
37568 | /* We use char because int might match the return type of a gcc2 | |
37569 | builtin and then its argument prototype would still apply. */ | |
37570 | char pthread_attr_getschedpolicy (); | |
37571 | /* The GNU C library defines this for functions which it implements | |
37572 | to always fail with ENOSYS. Some functions are actually named | |
37573 | something starting with __ and the normal name is an alias. */ | |
37574 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
37575 | choke me | |
37576 | #else | |
37577 | char (*f) () = pthread_attr_getschedpolicy; | |
37578 | #endif | |
37579 | #ifdef __cplusplus | |
37580 | } | |
37581 | #endif | |
37582 | ||
37583 | int | |
37584 | main () | |
37585 | { | |
37586 | return f != pthread_attr_getschedpolicy; | |
37587 | ; | |
37588 | return 0; | |
37589 | } | |
37590 | _ACEOF | |
37591 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37592 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37593 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37594 | ac_status=$? |
ac1cb8d3 VS |
37595 | grep -v '^ *+' conftest.er1 >conftest.err |
37596 | rm -f conftest.er1 | |
37597 | cat conftest.err >&5 | |
a848cd7e SC |
37598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37599 | (exit $ac_status); } && | |
3565d135 RR |
37600 | { ac_try='test -z "$ac_c_werror_flag" |
37601 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37603 | (eval $ac_try) 2>&5 | |
37604 | ac_status=$? | |
37605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37606 | (exit $ac_status); }; } && | |
37607 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37609 | (eval $ac_try) 2>&5 | |
37610 | ac_status=$? | |
37611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37612 | (exit $ac_status); }; }; then | |
37613 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
37614 | else | |
37615 | echo "$as_me: failed program was:" >&5 | |
37616 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37617 | ||
37618 | ac_cv_func_pthread_attr_getschedpolicy=no | |
37619 | fi | |
ac1cb8d3 VS |
37620 | rm -f conftest.err conftest.$ac_objext \ |
37621 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37622 | fi |
37623 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
37624 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
37625 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
37626 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
37627 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
37628 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
37629 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37630 | else | |
37631 | cat >conftest.$ac_ext <<_ACEOF | |
37632 | /* confdefs.h. */ | |
37633 | _ACEOF | |
37634 | cat confdefs.h >>conftest.$ac_ext | |
37635 | cat >>conftest.$ac_ext <<_ACEOF | |
37636 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37637 | /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam. |
37638 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37639 | #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam | |
37640 | ||
a848cd7e SC |
37641 | /* System header to define __stub macros and hopefully few prototypes, |
37642 | which can conflict with char pthread_attr_setschedparam (); below. | |
37643 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37644 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37645 | |
a848cd7e SC |
37646 | #ifdef __STDC__ |
37647 | # include <limits.h> | |
37648 | #else | |
37649 | # include <assert.h> | |
37650 | #endif | |
ac1cb8d3 VS |
37651 | |
37652 | #undef pthread_attr_setschedparam | |
37653 | ||
a848cd7e SC |
37654 | /* Override any gcc2 internal prototype to avoid an error. */ |
37655 | #ifdef __cplusplus | |
37656 | extern "C" | |
37657 | { | |
37658 | #endif | |
37659 | /* We use char because int might match the return type of a gcc2 | |
37660 | builtin and then its argument prototype would still apply. */ | |
37661 | char pthread_attr_setschedparam (); | |
37662 | /* The GNU C library defines this for functions which it implements | |
37663 | to always fail with ENOSYS. Some functions are actually named | |
37664 | something starting with __ and the normal name is an alias. */ | |
37665 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
37666 | choke me | |
37667 | #else | |
37668 | char (*f) () = pthread_attr_setschedparam; | |
37669 | #endif | |
37670 | #ifdef __cplusplus | |
37671 | } | |
37672 | #endif | |
37673 | ||
37674 | int | |
37675 | main () | |
37676 | { | |
37677 | return f != pthread_attr_setschedparam; | |
37678 | ; | |
37679 | return 0; | |
37680 | } | |
37681 | _ACEOF | |
37682 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37683 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37684 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37685 | ac_status=$? |
ac1cb8d3 VS |
37686 | grep -v '^ *+' conftest.er1 >conftest.err |
37687 | rm -f conftest.er1 | |
37688 | cat conftest.err >&5 | |
a848cd7e SC |
37689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37690 | (exit $ac_status); } && | |
3565d135 RR |
37691 | { ac_try='test -z "$ac_c_werror_flag" |
37692 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37694 | (eval $ac_try) 2>&5 | |
37695 | ac_status=$? | |
37696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37697 | (exit $ac_status); }; } && | |
37698 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37700 | (eval $ac_try) 2>&5 | |
37701 | ac_status=$? | |
37702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37703 | (exit $ac_status); }; }; then | |
37704 | ac_cv_func_pthread_attr_setschedparam=yes | |
37705 | else | |
37706 | echo "$as_me: failed program was:" >&5 | |
37707 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37708 | ||
37709 | ac_cv_func_pthread_attr_setschedparam=no | |
37710 | fi | |
ac1cb8d3 VS |
37711 | rm -f conftest.err conftest.$ac_objext \ |
37712 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37713 | fi |
37714 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
37715 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
37716 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
37717 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
37718 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
37719 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
37720 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37721 | else | |
37722 | cat >conftest.$ac_ext <<_ACEOF | |
37723 | /* confdefs.h. */ | |
37724 | _ACEOF | |
37725 | cat confdefs.h >>conftest.$ac_ext | |
37726 | cat >>conftest.$ac_ext <<_ACEOF | |
37727 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37728 | /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max. |
37729 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37730 | #define sched_get_priority_max innocuous_sched_get_priority_max | |
37731 | ||
a848cd7e SC |
37732 | /* System header to define __stub macros and hopefully few prototypes, |
37733 | which can conflict with char sched_get_priority_max (); below. | |
37734 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37735 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37736 | |
a848cd7e SC |
37737 | #ifdef __STDC__ |
37738 | # include <limits.h> | |
37739 | #else | |
37740 | # include <assert.h> | |
37741 | #endif | |
ac1cb8d3 VS |
37742 | |
37743 | #undef sched_get_priority_max | |
37744 | ||
a848cd7e SC |
37745 | /* Override any gcc2 internal prototype to avoid an error. */ |
37746 | #ifdef __cplusplus | |
37747 | extern "C" | |
37748 | { | |
37749 | #endif | |
37750 | /* We use char because int might match the return type of a gcc2 | |
37751 | builtin and then its argument prototype would still apply. */ | |
37752 | char sched_get_priority_max (); | |
37753 | /* The GNU C library defines this for functions which it implements | |
37754 | to always fail with ENOSYS. Some functions are actually named | |
37755 | something starting with __ and the normal name is an alias. */ | |
37756 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
37757 | choke me | |
37758 | #else | |
37759 | char (*f) () = sched_get_priority_max; | |
37760 | #endif | |
37761 | #ifdef __cplusplus | |
37762 | } | |
37763 | #endif | |
37764 | ||
37765 | int | |
37766 | main () | |
37767 | { | |
37768 | return f != sched_get_priority_max; | |
37769 | ; | |
37770 | return 0; | |
37771 | } | |
37772 | _ACEOF | |
37773 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37774 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37775 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37776 | ac_status=$? |
ac1cb8d3 VS |
37777 | grep -v '^ *+' conftest.er1 >conftest.err |
37778 | rm -f conftest.er1 | |
37779 | cat conftest.err >&5 | |
a848cd7e SC |
37780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37781 | (exit $ac_status); } && | |
3565d135 RR |
37782 | { ac_try='test -z "$ac_c_werror_flag" |
37783 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37785 | (eval $ac_try) 2>&5 | |
37786 | ac_status=$? | |
37787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37788 | (exit $ac_status); }; } && | |
37789 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37791 | (eval $ac_try) 2>&5 | |
37792 | ac_status=$? | |
37793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37794 | (exit $ac_status); }; }; then | |
37795 | ac_cv_func_sched_get_priority_max=yes | |
37796 | else | |
37797 | echo "$as_me: failed program was:" >&5 | |
37798 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37799 | ||
37800 | ac_cv_func_sched_get_priority_max=no | |
37801 | fi | |
ac1cb8d3 VS |
37802 | rm -f conftest.err conftest.$ac_objext \ |
37803 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37804 | fi |
37805 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
37806 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
37807 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
37808 | HAVE_PRIOR_FUNCS=1 | |
37809 | else | |
37810 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 | |
37811 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
37812 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
37813 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37814 | else | |
37815 | ac_check_lib_save_LIBS=$LIBS | |
37816 | LIBS="-lposix4 $LIBS" | |
37817 | cat >conftest.$ac_ext <<_ACEOF | |
37818 | /* confdefs.h. */ | |
37819 | _ACEOF | |
37820 | cat confdefs.h >>conftest.$ac_ext | |
37821 | cat >>conftest.$ac_ext <<_ACEOF | |
37822 | /* end confdefs.h. */ | |
37823 | ||
37824 | /* Override any gcc2 internal prototype to avoid an error. */ | |
37825 | #ifdef __cplusplus | |
37826 | extern "C" | |
37827 | #endif | |
37828 | /* We use char because int might match the return type of a gcc2 | |
37829 | builtin and then its argument prototype would still apply. */ | |
37830 | char sched_get_priority_max (); | |
37831 | int | |
37832 | main () | |
37833 | { | |
37834 | sched_get_priority_max (); | |
37835 | ; | |
37836 | return 0; | |
37837 | } | |
37838 | _ACEOF | |
37839 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37840 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37841 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37842 | ac_status=$? |
ac1cb8d3 VS |
37843 | grep -v '^ *+' conftest.er1 >conftest.err |
37844 | rm -f conftest.er1 | |
37845 | cat conftest.err >&5 | |
a848cd7e SC |
37846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37847 | (exit $ac_status); } && | |
3565d135 RR |
37848 | { ac_try='test -z "$ac_c_werror_flag" |
37849 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37851 | (eval $ac_try) 2>&5 | |
37852 | ac_status=$? | |
37853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37854 | (exit $ac_status); }; } && | |
37855 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37857 | (eval $ac_try) 2>&5 | |
37858 | ac_status=$? | |
37859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37860 | (exit $ac_status); }; }; then | |
37861 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
37862 | else | |
37863 | echo "$as_me: failed program was:" >&5 | |
37864 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37865 | ||
37866 | ac_cv_lib_posix4_sched_get_priority_max=no | |
37867 | fi | |
ac1cb8d3 VS |
37868 | rm -f conftest.err conftest.$ac_objext \ |
37869 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37870 | LIBS=$ac_check_lib_save_LIBS |
37871 | fi | |
37872 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
37873 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
37874 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
37875 | ||
37876 | HAVE_PRIOR_FUNCS=1 | |
37877 | POSIX4_LINK=" -lposix4" | |
37878 | ||
37879 | fi | |
37880 | ||
37881 | ||
37882 | fi | |
37883 | ||
37884 | ||
37885 | fi | |
37886 | ||
37887 | ||
37888 | fi | |
37889 | ||
37890 | ||
37891 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
37892 | cat >>confdefs.h <<\_ACEOF | |
37893 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
37894 | _ACEOF | |
37895 | ||
37896 | else | |
37897 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 | |
37898 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
37899 | fi | |
37900 | ||
37901 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 | |
37902 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
37903 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
37904 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37905 | else | |
37906 | cat >conftest.$ac_ext <<_ACEOF | |
37907 | /* confdefs.h. */ | |
37908 | _ACEOF | |
37909 | cat confdefs.h >>conftest.$ac_ext | |
37910 | cat >>conftest.$ac_ext <<_ACEOF | |
37911 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
37912 | /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel. |
37913 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
37914 | #define pthread_cancel innocuous_pthread_cancel | |
37915 | ||
a848cd7e SC |
37916 | /* System header to define __stub macros and hopefully few prototypes, |
37917 | which can conflict with char pthread_cancel (); below. | |
37918 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
37919 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 37920 | |
a848cd7e SC |
37921 | #ifdef __STDC__ |
37922 | # include <limits.h> | |
37923 | #else | |
37924 | # include <assert.h> | |
37925 | #endif | |
ac1cb8d3 VS |
37926 | |
37927 | #undef pthread_cancel | |
37928 | ||
a848cd7e SC |
37929 | /* Override any gcc2 internal prototype to avoid an error. */ |
37930 | #ifdef __cplusplus | |
37931 | extern "C" | |
37932 | { | |
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 pthread_cancel (); | |
37937 | /* The GNU C library defines this for functions which it implements | |
37938 | to always fail with ENOSYS. Some functions are actually named | |
37939 | something starting with __ and the normal name is an alias. */ | |
37940 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
37941 | choke me | |
37942 | #else | |
37943 | char (*f) () = pthread_cancel; | |
37944 | #endif | |
37945 | #ifdef __cplusplus | |
37946 | } | |
37947 | #endif | |
37948 | ||
37949 | int | |
37950 | main () | |
37951 | { | |
37952 | return f != pthread_cancel; | |
37953 | ; | |
37954 | return 0; | |
37955 | } | |
37956 | _ACEOF | |
37957 | rm -f conftest.$ac_objext conftest$ac_exeext | |
37958 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 37959 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 37960 | ac_status=$? |
ac1cb8d3 VS |
37961 | grep -v '^ *+' conftest.er1 >conftest.err |
37962 | rm -f conftest.er1 | |
37963 | cat conftest.err >&5 | |
a848cd7e SC |
37964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37965 | (exit $ac_status); } && | |
3565d135 RR |
37966 | { ac_try='test -z "$ac_c_werror_flag" |
37967 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
37968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37969 | (eval $ac_try) 2>&5 | |
37970 | ac_status=$? | |
37971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37972 | (exit $ac_status); }; } && | |
37973 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
37974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37975 | (eval $ac_try) 2>&5 | |
37976 | ac_status=$? | |
37977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37978 | (exit $ac_status); }; }; then | |
37979 | ac_cv_func_pthread_cancel=yes | |
37980 | else | |
37981 | echo "$as_me: failed program was:" >&5 | |
37982 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37983 | ||
37984 | ac_cv_func_pthread_cancel=no | |
37985 | fi | |
ac1cb8d3 VS |
37986 | rm -f conftest.err conftest.$ac_objext \ |
37987 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
37988 | fi |
37989 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
37990 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
37991 | if test $ac_cv_func_pthread_cancel = yes; then | |
37992 | cat >>confdefs.h <<\_ACEOF | |
37993 | #define HAVE_PTHREAD_CANCEL 1 | |
37994 | _ACEOF | |
37995 | ||
37996 | else | |
37997 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 | |
37998 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
37999 | fi | |
38000 | ||
38001 | ||
abc736fd MW |
38002 | echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5 |
38003 | echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6 | |
38004 | if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then | |
38005 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38006 | else | |
38007 | cat >conftest.$ac_ext <<_ACEOF | |
38008 | /* confdefs.h. */ | |
38009 | _ACEOF | |
38010 | cat confdefs.h >>conftest.$ac_ext | |
38011 | cat >>conftest.$ac_ext <<_ACEOF | |
38012 | /* end confdefs.h. */ | |
38013 | /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize. | |
38014 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38015 | #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize | |
38016 | ||
38017 | /* System header to define __stub macros and hopefully few prototypes, | |
38018 | which can conflict with char pthread_attr_setstacksize (); below. | |
38019 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38020 | <limits.h> exists even on freestanding compilers. */ | |
38021 | ||
38022 | #ifdef __STDC__ | |
38023 | # include <limits.h> | |
38024 | #else | |
38025 | # include <assert.h> | |
38026 | #endif | |
38027 | ||
38028 | #undef pthread_attr_setstacksize | |
38029 | ||
38030 | /* Override any gcc2 internal prototype to avoid an error. */ | |
38031 | #ifdef __cplusplus | |
38032 | extern "C" | |
38033 | { | |
38034 | #endif | |
38035 | /* We use char because int might match the return type of a gcc2 | |
38036 | builtin and then its argument prototype would still apply. */ | |
38037 | char pthread_attr_setstacksize (); | |
38038 | /* The GNU C library defines this for functions which it implements | |
38039 | to always fail with ENOSYS. Some functions are actually named | |
38040 | something starting with __ and the normal name is an alias. */ | |
38041 | #if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize) | |
38042 | choke me | |
38043 | #else | |
38044 | char (*f) () = pthread_attr_setstacksize; | |
38045 | #endif | |
38046 | #ifdef __cplusplus | |
38047 | } | |
38048 | #endif | |
38049 | ||
38050 | int | |
38051 | main () | |
38052 | { | |
38053 | return f != pthread_attr_setstacksize; | |
38054 | ; | |
38055 | return 0; | |
38056 | } | |
38057 | _ACEOF | |
38058 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38059 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
38060 | (eval $ac_link) 2>conftest.er1 | |
38061 | ac_status=$? | |
38062 | grep -v '^ *+' conftest.er1 >conftest.err | |
38063 | rm -f conftest.er1 | |
38064 | cat conftest.err >&5 | |
38065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38066 | (exit $ac_status); } && | |
3565d135 RR |
38067 | { ac_try='test -z "$ac_c_werror_flag" |
38068 | || test ! -s conftest.err' | |
abc736fd MW |
38069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38070 | (eval $ac_try) 2>&5 | |
38071 | ac_status=$? | |
38072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38073 | (exit $ac_status); }; } && | |
38074 | { ac_try='test -s conftest$ac_exeext' | |
38075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38076 | (eval $ac_try) 2>&5 | |
38077 | ac_status=$? | |
38078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38079 | (exit $ac_status); }; }; then | |
38080 | ac_cv_func_pthread_attr_setstacksize=yes | |
38081 | else | |
38082 | echo "$as_me: failed program was:" >&5 | |
38083 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38084 | ||
38085 | ac_cv_func_pthread_attr_setstacksize=no | |
38086 | fi | |
38087 | rm -f conftest.err conftest.$ac_objext \ | |
38088 | conftest$ac_exeext conftest.$ac_ext | |
38089 | fi | |
38090 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5 | |
38091 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6 | |
38092 | if test $ac_cv_func_pthread_attr_setstacksize = yes; then | |
38093 | cat >>confdefs.h <<\_ACEOF | |
38094 | #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1 | |
38095 | _ACEOF | |
38096 | ||
38097 | fi | |
38098 | ||
a848cd7e SC |
38099 | |
38100 | ||
38101 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
38102 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
38103 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
38104 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38105 | else | |
38106 | ||
38107 | cat >conftest.$ac_ext <<_ACEOF | |
38108 | /* confdefs.h. */ | |
38109 | _ACEOF | |
38110 | cat confdefs.h >>conftest.$ac_ext | |
38111 | cat >>conftest.$ac_ext <<_ACEOF | |
38112 | /* end confdefs.h. */ | |
38113 | #include <pthread.h> | |
38114 | int | |
38115 | main () | |
38116 | { | |
38117 | ||
38118 | pthread_mutexattr_t attr; | |
38119 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
38120 | ||
38121 | ; | |
38122 | return 0; | |
38123 | } | |
38124 | _ACEOF | |
38125 | rm -f conftest.$ac_objext | |
38126 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38127 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38128 | ac_status=$? |
ac1cb8d3 VS |
38129 | grep -v '^ *+' conftest.er1 >conftest.err |
38130 | rm -f conftest.er1 | |
38131 | cat conftest.err >&5 | |
a848cd7e SC |
38132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38133 | (exit $ac_status); } && | |
3565d135 RR |
38134 | { ac_try='test -z "$ac_c_werror_flag" |
38135 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38137 | (eval $ac_try) 2>&5 | |
38138 | ac_status=$? | |
38139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38140 | (exit $ac_status); }; } && | |
38141 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38143 | (eval $ac_try) 2>&5 | |
38144 | ac_status=$? | |
38145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38146 | (exit $ac_status); }; }; then | |
123dca7d | 38147 | wx_cv_type_pthread_mutexattr_t=yes |
a848cd7e SC |
38148 | else |
38149 | echo "$as_me: failed program was:" >&5 | |
38150 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38151 | ||
123dca7d | 38152 | wx_cv_type_pthread_mutexattr_t=no |
a848cd7e SC |
38153 | |
38154 | fi | |
ac1cb8d3 | 38155 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38156 | |
38157 | fi | |
38158 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
38159 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
38160 | ||
38161 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
38162 | cat >>confdefs.h <<\_ACEOF | |
38163 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
38164 | _ACEOF | |
38165 | ||
123dca7d VZ |
38166 | |
38167 | echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5 | |
38168 | echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6 | |
38169 | if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then | |
38170 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38171 | else | |
38172 | ||
38173 | cat >conftest.$ac_ext <<_ACEOF | |
38174 | /* confdefs.h. */ | |
38175 | _ACEOF | |
38176 | cat confdefs.h >>conftest.$ac_ext | |
38177 | cat >>conftest.$ac_ext <<_ACEOF | |
38178 | /* end confdefs.h. */ | |
38179 | #include <pthread.h> | |
38180 | int | |
38181 | main () | |
38182 | { | |
38183 | ||
38184 | pthread_mutexattr_t attr; | |
38185 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
38186 | ||
38187 | ; | |
38188 | return 0; | |
38189 | } | |
38190 | _ACEOF | |
38191 | rm -f conftest.$ac_objext | |
38192 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38193 | (eval $ac_compile) 2>conftest.er1 | |
38194 | ac_status=$? | |
38195 | grep -v '^ *+' conftest.er1 >conftest.err | |
38196 | rm -f conftest.er1 | |
38197 | cat conftest.err >&5 | |
38198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38199 | (exit $ac_status); } && | |
3565d135 RR |
38200 | { ac_try='test -z "$ac_c_werror_flag" |
38201 | || test ! -s conftest.err' | |
123dca7d VZ |
38202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38203 | (eval $ac_try) 2>&5 | |
38204 | ac_status=$? | |
38205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38206 | (exit $ac_status); }; } && | |
38207 | { ac_try='test -s conftest.$ac_objext' | |
38208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38209 | (eval $ac_try) 2>&5 | |
38210 | ac_status=$? | |
38211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38212 | (exit $ac_status); }; }; then | |
38213 | wx_cv_func_pthread_mutexattr_settype_decl=yes | |
38214 | else | |
38215 | echo "$as_me: failed program was:" >&5 | |
38216 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38217 | ||
38218 | wx_cv_func_pthread_mutexattr_settype_decl=no | |
38219 | ||
38220 | fi | |
38221 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38222 | ||
38223 | fi | |
38224 | echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5 | |
38225 | echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6 | |
38226 | if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then | |
38227 | cat >>confdefs.h <<\_ACEOF | |
38228 | #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1 | |
38229 | _ACEOF | |
38230 | ||
38231 | fi | |
a848cd7e SC |
38232 | else |
38233 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
38234 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
38235 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
38236 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38237 | else | |
38238 | ||
38239 | cat >conftest.$ac_ext <<_ACEOF | |
38240 | /* confdefs.h. */ | |
38241 | _ACEOF | |
38242 | cat confdefs.h >>conftest.$ac_ext | |
38243 | cat >>conftest.$ac_ext <<_ACEOF | |
38244 | /* end confdefs.h. */ | |
38245 | #include <pthread.h> | |
38246 | int | |
38247 | main () | |
38248 | { | |
38249 | ||
38250 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
38251 | ||
38252 | ; | |
38253 | return 0; | |
38254 | } | |
38255 | _ACEOF | |
38256 | rm -f conftest.$ac_objext | |
38257 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38258 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38259 | ac_status=$? |
ac1cb8d3 VS |
38260 | grep -v '^ *+' conftest.er1 >conftest.err |
38261 | rm -f conftest.er1 | |
38262 | cat conftest.err >&5 | |
a848cd7e SC |
38263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38264 | (exit $ac_status); } && | |
3565d135 RR |
38265 | { ac_try='test -z "$ac_c_werror_flag" |
38266 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38268 | (eval $ac_try) 2>&5 | |
38269 | ac_status=$? | |
38270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38271 | (exit $ac_status); }; } && | |
38272 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38274 | (eval $ac_try) 2>&5 | |
38275 | ac_status=$? | |
38276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38277 | (exit $ac_status); }; }; then | |
38278 | ||
38279 | wx_cv_type_pthread_rec_mutex_init=yes | |
38280 | ||
38281 | else | |
38282 | echo "$as_me: failed program was:" >&5 | |
38283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38284 | ||
38285 | ||
38286 | wx_cv_type_pthread_rec_mutex_init=no | |
38287 | ||
38288 | ||
38289 | fi | |
ac1cb8d3 | 38290 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38291 | |
38292 | fi | |
38293 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
38294 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
38295 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
38296 | cat >>confdefs.h <<\_ACEOF | |
38297 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
38298 | _ACEOF | |
38299 | ||
38300 | else | |
38301 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 | |
38302 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
38303 | fi | |
38304 | fi | |
38305 | fi | |
38306 | ||
38307 | else | |
38308 | if test "$wxUSE_THREADS" = "yes" ; then | |
38309 | case "${host}" in | |
38310 | *-*-mingw32* ) | |
38311 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 | |
38312 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
38313 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
38314 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38315 | else | |
38316 | ||
38317 | CFLAGS_OLD="$CFLAGS" | |
c92ad099 | 38318 | CFLAGS="-mthreads $CFLAGS" |
a848cd7e SC |
38319 | cat >conftest.$ac_ext <<_ACEOF |
38320 | /* confdefs.h. */ | |
38321 | _ACEOF | |
38322 | cat confdefs.h >>conftest.$ac_ext | |
38323 | cat >>conftest.$ac_ext <<_ACEOF | |
38324 | /* end confdefs.h. */ | |
38325 | ||
38326 | int | |
38327 | main () | |
38328 | { | |
38329 | ||
38330 | ; | |
38331 | return 0; | |
38332 | } | |
38333 | _ACEOF | |
38334 | rm -f conftest.$ac_objext | |
38335 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 38336 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 38337 | ac_status=$? |
ac1cb8d3 VS |
38338 | grep -v '^ *+' conftest.er1 >conftest.err |
38339 | rm -f conftest.er1 | |
38340 | cat conftest.err >&5 | |
a848cd7e SC |
38341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38342 | (exit $ac_status); } && | |
3565d135 RR |
38343 | { ac_try='test -z "$ac_c_werror_flag" |
38344 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
38345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38346 | (eval $ac_try) 2>&5 | |
38347 | ac_status=$? | |
38348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38349 | (exit $ac_status); }; } && | |
38350 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
38351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38352 | (eval $ac_try) 2>&5 | |
38353 | ac_status=$? | |
38354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38355 | (exit $ac_status); }; }; then | |
38356 | wx_cv_cflags_mthread=yes | |
38357 | else | |
38358 | echo "$as_me: failed program was:" >&5 | |
38359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38360 | ||
38361 | wx_cv_cflags_mthread=no | |
38362 | ||
38363 | fi | |
ac1cb8d3 | 38364 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
38365 | |
38366 | ||
38367 | fi | |
38368 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
38369 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
38370 | ||
38371 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
5ff751d6 | 38372 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads" |
a848cd7e SC |
38373 | LDFLAGS="$LDFLAGS -mthreads" |
38374 | else | |
38375 | CFLAGS="$CFLAGS_OLD" | |
38376 | fi | |
38377 | ;; | |
38378 | *-pc-os2*emx ) | |
5ff751d6 VZ |
38379 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__" |
38380 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
a848cd7e SC |
38381 | LDFLAGS="$LDFLAGS -Zmt" |
38382 | ;; | |
38383 | esac | |
38384 | fi | |
38385 | fi | |
38386 | ||
004ee6da RL |
38387 | echo "$as_me:$LINENO: checking for localtime_r" >&5 |
38388 | echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6 | |
38389 | if test "${ac_cv_func_localtime_r+set}" = set; then | |
a848cd7e SC |
38390 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
38391 | else | |
38392 | cat >conftest.$ac_ext <<_ACEOF | |
38393 | /* confdefs.h. */ | |
38394 | _ACEOF | |
38395 | cat confdefs.h >>conftest.$ac_ext | |
38396 | cat >>conftest.$ac_ext <<_ACEOF | |
38397 | /* end confdefs.h. */ | |
004ee6da | 38398 | /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r. |
ac1cb8d3 | 38399 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
004ee6da | 38400 | #define localtime_r innocuous_localtime_r |
ac1cb8d3 | 38401 | |
a848cd7e | 38402 | /* System header to define __stub macros and hopefully few prototypes, |
004ee6da | 38403 | which can conflict with char localtime_r (); below. |
a848cd7e SC |
38404 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
38405 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 38406 | |
a848cd7e SC |
38407 | #ifdef __STDC__ |
38408 | # include <limits.h> | |
38409 | #else | |
38410 | # include <assert.h> | |
38411 | #endif | |
ac1cb8d3 | 38412 | |
004ee6da | 38413 | #undef localtime_r |
ac1cb8d3 | 38414 | |
a848cd7e SC |
38415 | /* Override any gcc2 internal prototype to avoid an error. */ |
38416 | #ifdef __cplusplus | |
38417 | extern "C" | |
38418 | { | |
38419 | #endif | |
38420 | /* We use char because int might match the return type of a gcc2 | |
38421 | builtin and then its argument prototype would still apply. */ | |
004ee6da | 38422 | char localtime_r (); |
a848cd7e SC |
38423 | /* The GNU C library defines this for functions which it implements |
38424 | to always fail with ENOSYS. Some functions are actually named | |
38425 | something starting with __ and the normal name is an alias. */ | |
004ee6da | 38426 | #if defined (__stub_localtime_r) || defined (__stub___localtime_r) |
a848cd7e SC |
38427 | choke me |
38428 | #else | |
004ee6da | 38429 | char (*f) () = localtime_r; |
a848cd7e SC |
38430 | #endif |
38431 | #ifdef __cplusplus | |
38432 | } | |
38433 | #endif | |
38434 | ||
38435 | int | |
38436 | main () | |
38437 | { | |
004ee6da RL |
38438 | return f != localtime_r; |
38439 | ; | |
38440 | return 0; | |
38441 | } | |
38442 | _ACEOF | |
38443 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38444 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
38445 | (eval $ac_link) 2>conftest.er1 | |
38446 | ac_status=$? | |
38447 | grep -v '^ *+' conftest.er1 >conftest.err | |
38448 | rm -f conftest.er1 | |
38449 | cat conftest.err >&5 | |
38450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38451 | (exit $ac_status); } && | |
3565d135 RR |
38452 | { ac_try='test -z "$ac_c_werror_flag" |
38453 | || test ! -s conftest.err' | |
004ee6da RL |
38454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38455 | (eval $ac_try) 2>&5 | |
38456 | ac_status=$? | |
38457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38458 | (exit $ac_status); }; } && | |
38459 | { ac_try='test -s conftest$ac_exeext' | |
38460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38461 | (eval $ac_try) 2>&5 | |
38462 | ac_status=$? | |
38463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38464 | (exit $ac_status); }; }; then | |
38465 | ac_cv_func_localtime_r=yes | |
38466 | else | |
38467 | echo "$as_me: failed program was:" >&5 | |
38468 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38469 | ||
38470 | ac_cv_func_localtime_r=no | |
38471 | fi | |
38472 | rm -f conftest.err conftest.$ac_objext \ | |
38473 | conftest$ac_exeext conftest.$ac_ext | |
38474 | fi | |
38475 | echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5 | |
38476 | echo "${ECHO_T}$ac_cv_func_localtime_r" >&6 | |
38477 | if test $ac_cv_func_localtime_r = yes; then | |
38478 | cat >>confdefs.h <<\_ACEOF | |
38479 | #define HAVE_LOCALTIME_R 1 | |
38480 | _ACEOF | |
38481 | ||
38482 | fi | |
38483 | ||
38484 | echo "$as_me:$LINENO: checking for gmtime_r" >&5 | |
38485 | echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6 | |
38486 | if test "${ac_cv_func_gmtime_r+set}" = set; then | |
38487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38488 | else | |
38489 | cat >conftest.$ac_ext <<_ACEOF | |
38490 | /* confdefs.h. */ | |
38491 | _ACEOF | |
38492 | cat confdefs.h >>conftest.$ac_ext | |
38493 | cat >>conftest.$ac_ext <<_ACEOF | |
38494 | /* end confdefs.h. */ | |
38495 | /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r. | |
38496 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38497 | #define gmtime_r innocuous_gmtime_r | |
38498 | ||
38499 | /* System header to define __stub macros and hopefully few prototypes, | |
38500 | which can conflict with char gmtime_r (); below. | |
38501 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38502 | <limits.h> exists even on freestanding compilers. */ | |
38503 | ||
38504 | #ifdef __STDC__ | |
38505 | # include <limits.h> | |
38506 | #else | |
38507 | # include <assert.h> | |
38508 | #endif | |
38509 | ||
38510 | #undef gmtime_r | |
38511 | ||
38512 | /* Override any gcc2 internal prototype to avoid an error. */ | |
38513 | #ifdef __cplusplus | |
38514 | extern "C" | |
38515 | { | |
38516 | #endif | |
38517 | /* We use char because int might match the return type of a gcc2 | |
38518 | builtin and then its argument prototype would still apply. */ | |
38519 | char gmtime_r (); | |
38520 | /* The GNU C library defines this for functions which it implements | |
38521 | to always fail with ENOSYS. Some functions are actually named | |
38522 | something starting with __ and the normal name is an alias. */ | |
38523 | #if defined (__stub_gmtime_r) || defined (__stub___gmtime_r) | |
38524 | choke me | |
38525 | #else | |
38526 | char (*f) () = gmtime_r; | |
38527 | #endif | |
38528 | #ifdef __cplusplus | |
38529 | } | |
38530 | #endif | |
38531 | ||
38532 | int | |
38533 | main () | |
38534 | { | |
38535 | return f != gmtime_r; | |
38536 | ; | |
38537 | return 0; | |
38538 | } | |
38539 | _ACEOF | |
38540 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38541 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
38542 | (eval $ac_link) 2>conftest.er1 | |
38543 | ac_status=$? | |
38544 | grep -v '^ *+' conftest.er1 >conftest.err | |
38545 | rm -f conftest.er1 | |
38546 | cat conftest.err >&5 | |
38547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38548 | (exit $ac_status); } && | |
3565d135 RR |
38549 | { ac_try='test -z "$ac_c_werror_flag" |
38550 | || test ! -s conftest.err' | |
004ee6da RL |
38551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38552 | (eval $ac_try) 2>&5 | |
38553 | ac_status=$? | |
38554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38555 | (exit $ac_status); }; } && | |
38556 | { ac_try='test -s conftest$ac_exeext' | |
38557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38558 | (eval $ac_try) 2>&5 | |
38559 | ac_status=$? | |
38560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38561 | (exit $ac_status); }; }; then | |
38562 | ac_cv_func_gmtime_r=yes | |
38563 | else | |
38564 | echo "$as_me: failed program was:" >&5 | |
38565 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38566 | ||
38567 | ac_cv_func_gmtime_r=no | |
38568 | fi | |
38569 | rm -f conftest.err conftest.$ac_objext \ | |
38570 | conftest$ac_exeext conftest.$ac_ext | |
38571 | fi | |
38572 | echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5 | |
38573 | echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6 | |
38574 | if test $ac_cv_func_gmtime_r = yes; then | |
38575 | cat >>confdefs.h <<\_ACEOF | |
38576 | #define HAVE_GMTIME_R 1 | |
38577 | _ACEOF | |
38578 | ||
38579 | fi | |
38580 | ||
38581 | echo "$as_me:$LINENO: checking for readdir_r" >&5 | |
38582 | echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6 | |
38583 | if test "${ac_cv_func_readdir_r+set}" = set; then | |
38584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38585 | else | |
38586 | cat >conftest.$ac_ext <<_ACEOF | |
38587 | /* confdefs.h. */ | |
38588 | _ACEOF | |
38589 | cat confdefs.h >>conftest.$ac_ext | |
38590 | cat >>conftest.$ac_ext <<_ACEOF | |
38591 | /* end confdefs.h. */ | |
38592 | /* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r. | |
38593 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
38594 | #define readdir_r innocuous_readdir_r | |
38595 | ||
38596 | /* System header to define __stub macros and hopefully few prototypes, | |
38597 | which can conflict with char readdir_r (); below. | |
38598 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
38599 | <limits.h> exists even on freestanding compilers. */ | |
38600 | ||
38601 | #ifdef __STDC__ | |
38602 | # include <limits.h> | |
38603 | #else | |
38604 | # include <assert.h> | |
38605 | #endif | |
38606 | ||
38607 | #undef readdir_r | |
38608 | ||
38609 | /* Override any gcc2 internal prototype to avoid an error. */ | |
38610 | #ifdef __cplusplus | |
38611 | extern "C" | |
38612 | { | |
38613 | #endif | |
38614 | /* We use char because int might match the return type of a gcc2 | |
38615 | builtin and then its argument prototype would still apply. */ | |
38616 | char readdir_r (); | |
38617 | /* The GNU C library defines this for functions which it implements | |
38618 | to always fail with ENOSYS. Some functions are actually named | |
38619 | something starting with __ and the normal name is an alias. */ | |
38620 | #if defined (__stub_readdir_r) || defined (__stub___readdir_r) | |
38621 | choke me | |
38622 | #else | |
38623 | char (*f) () = readdir_r; | |
38624 | #endif | |
38625 | #ifdef __cplusplus | |
38626 | } | |
38627 | #endif | |
38628 | ||
38629 | int | |
38630 | main () | |
38631 | { | |
38632 | return f != readdir_r; | |
38633 | ; | |
38634 | return 0; | |
38635 | } | |
38636 | _ACEOF | |
38637 | rm -f conftest.$ac_objext conftest$ac_exeext | |
38638 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
38639 | (eval $ac_link) 2>conftest.er1 | |
38640 | ac_status=$? | |
38641 | grep -v '^ *+' conftest.er1 >conftest.err | |
38642 | rm -f conftest.er1 | |
38643 | cat conftest.err >&5 | |
38644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38645 | (exit $ac_status); } && | |
3565d135 RR |
38646 | { ac_try='test -z "$ac_c_werror_flag" |
38647 | || test ! -s conftest.err' | |
004ee6da RL |
38648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38649 | (eval $ac_try) 2>&5 | |
38650 | ac_status=$? | |
38651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38652 | (exit $ac_status); }; } && | |
38653 | { ac_try='test -s conftest$ac_exeext' | |
38654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38655 | (eval $ac_try) 2>&5 | |
38656 | ac_status=$? | |
38657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38658 | (exit $ac_status); }; }; then | |
38659 | ac_cv_func_readdir_r=yes | |
38660 | else | |
38661 | echo "$as_me: failed program was:" >&5 | |
38662 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38663 | ||
38664 | ac_cv_func_readdir_r=no | |
38665 | fi | |
38666 | rm -f conftest.err conftest.$ac_objext \ | |
38667 | conftest$ac_exeext conftest.$ac_ext | |
38668 | fi | |
38669 | echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5 | |
38670 | echo "${ECHO_T}$ac_cv_func_readdir_r" >&6 | |
38671 | if test $ac_cv_func_readdir_r = yes; then | |
38672 | cat >>confdefs.h <<\_ACEOF | |
38673 | #define HAVE_READDIR_R 1 | |
38674 | _ACEOF | |
38675 | ||
38676 | fi | |
38677 | ||
004ee6da | 38678 | |
004ee6da RL |
38679 | |
38680 | ||
38681 | ac_ext=c | |
38682 | ac_cpp='$CPP $CPPFLAGS' | |
38683 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
38684 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
38685 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
38686 | ||
38687 | echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5 | |
38688 | echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6 | |
38689 | ||
38690 | if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then | |
38691 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38692 | else | |
38693 | ||
38694 | ||
38695 | ################################################################ | |
38696 | ||
38697 | ac_cv_func_which_gethostbyname_r=unknown | |
38698 | ||
38699 | # | |
38700 | # ONE ARGUMENT (sanity check) | |
38701 | # | |
38702 | ||
38703 | # This should fail, as there is no variant of gethostbyname_r() that takes | |
38704 | # a single argument. If it actually compiles, then we can assume that | |
38705 | # netdb.h is not declaring the function, and the compiler is thereby | |
38706 | # assuming an implicit prototype. In which case, we're out of luck. | |
38707 | # | |
38708 | cat >conftest.$ac_ext <<_ACEOF | |
38709 | /* confdefs.h. */ | |
38710 | _ACEOF | |
38711 | cat confdefs.h >>conftest.$ac_ext | |
38712 | cat >>conftest.$ac_ext <<_ACEOF | |
38713 | /* end confdefs.h. */ | |
38714 | #include <netdb.h> | |
38715 | int | |
38716 | main () | |
38717 | { | |
38718 | ||
38719 | char *name = "www.gnu.org"; | |
38720 | (void)gethostbyname_r(name) /* ; */ | |
38721 | ||
38722 | ; | |
38723 | return 0; | |
38724 | } | |
38725 | _ACEOF | |
38726 | rm -f conftest.$ac_objext | |
38727 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38728 | (eval $ac_compile) 2>conftest.er1 | |
38729 | ac_status=$? | |
38730 | grep -v '^ *+' conftest.er1 >conftest.err | |
38731 | rm -f conftest.er1 | |
38732 | cat conftest.err >&5 | |
38733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38734 | (exit $ac_status); } && | |
3565d135 RR |
38735 | { ac_try='test -z "$ac_c_werror_flag" |
38736 | || test ! -s conftest.err' | |
004ee6da RL |
38737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38738 | (eval $ac_try) 2>&5 | |
38739 | ac_status=$? | |
38740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38741 | (exit $ac_status); }; } && | |
38742 | { ac_try='test -s conftest.$ac_objext' | |
38743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38744 | (eval $ac_try) 2>&5 | |
38745 | ac_status=$? | |
38746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38747 | (exit $ac_status); }; }; then | |
38748 | ac_cv_func_which_gethostbyname_r=no | |
38749 | else | |
38750 | echo "$as_me: failed program was:" >&5 | |
38751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38752 | ||
38753 | fi | |
38754 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38755 | ||
38756 | # | |
38757 | # SIX ARGUMENTS | |
38758 | # (e.g. Linux) | |
38759 | # | |
38760 | ||
38761 | if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then | |
38762 | ||
38763 | cat >conftest.$ac_ext <<_ACEOF | |
38764 | /* confdefs.h. */ | |
38765 | _ACEOF | |
38766 | cat confdefs.h >>conftest.$ac_ext | |
38767 | cat >>conftest.$ac_ext <<_ACEOF | |
38768 | /* end confdefs.h. */ | |
38769 | #include <netdb.h> | |
38770 | int | |
38771 | main () | |
38772 | { | |
38773 | ||
38774 | char *name = "www.gnu.org"; | |
38775 | struct hostent ret, *retp; | |
38776 | char buf[1024]; | |
38777 | int buflen = 1024; | |
38778 | int my_h_errno; | |
38779 | (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */ | |
38780 | ||
38781 | ; | |
38782 | return 0; | |
38783 | } | |
38784 | _ACEOF | |
38785 | rm -f conftest.$ac_objext | |
38786 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38787 | (eval $ac_compile) 2>conftest.er1 | |
38788 | ac_status=$? | |
38789 | grep -v '^ *+' conftest.er1 >conftest.err | |
38790 | rm -f conftest.er1 | |
38791 | cat conftest.err >&5 | |
38792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38793 | (exit $ac_status); } && | |
3565d135 RR |
38794 | { ac_try='test -z "$ac_c_werror_flag" |
38795 | || test ! -s conftest.err' | |
004ee6da RL |
38796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38797 | (eval $ac_try) 2>&5 | |
38798 | ac_status=$? | |
38799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38800 | (exit $ac_status); }; } && | |
38801 | { ac_try='test -s conftest.$ac_objext' | |
38802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38803 | (eval $ac_try) 2>&5 | |
38804 | ac_status=$? | |
38805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38806 | (exit $ac_status); }; }; then | |
38807 | ac_cv_func_which_gethostbyname_r=six | |
38808 | else | |
38809 | echo "$as_me: failed program was:" >&5 | |
38810 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38811 | ||
38812 | fi | |
38813 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38814 | ||
38815 | fi | |
38816 | ||
38817 | # | |
38818 | # FIVE ARGUMENTS | |
38819 | # (e.g. Solaris) | |
38820 | # | |
38821 | ||
38822 | if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then | |
38823 | ||
38824 | cat >conftest.$ac_ext <<_ACEOF | |
38825 | /* confdefs.h. */ | |
38826 | _ACEOF | |
38827 | cat confdefs.h >>conftest.$ac_ext | |
38828 | cat >>conftest.$ac_ext <<_ACEOF | |
38829 | /* end confdefs.h. */ | |
38830 | #include <netdb.h> | |
38831 | int | |
38832 | main () | |
38833 | { | |
38834 | ||
38835 | char *name = "www.gnu.org"; | |
38836 | struct hostent ret; | |
38837 | char buf[1024]; | |
38838 | int buflen = 1024; | |
38839 | int my_h_errno; | |
38840 | (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */ | |
38841 | ||
38842 | ; | |
38843 | return 0; | |
38844 | } | |
38845 | _ACEOF | |
38846 | rm -f conftest.$ac_objext | |
38847 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38848 | (eval $ac_compile) 2>conftest.er1 | |
38849 | ac_status=$? | |
38850 | grep -v '^ *+' conftest.er1 >conftest.err | |
38851 | rm -f conftest.er1 | |
38852 | cat conftest.err >&5 | |
38853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38854 | (exit $ac_status); } && | |
3565d135 RR |
38855 | { ac_try='test -z "$ac_c_werror_flag" |
38856 | || test ! -s conftest.err' | |
004ee6da RL |
38857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38858 | (eval $ac_try) 2>&5 | |
38859 | ac_status=$? | |
38860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38861 | (exit $ac_status); }; } && | |
38862 | { ac_try='test -s conftest.$ac_objext' | |
38863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38864 | (eval $ac_try) 2>&5 | |
38865 | ac_status=$? | |
38866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38867 | (exit $ac_status); }; }; then | |
38868 | ac_cv_func_which_gethostbyname_r=five | |
38869 | else | |
38870 | echo "$as_me: failed program was:" >&5 | |
38871 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38872 | ||
38873 | fi | |
38874 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38875 | ||
38876 | fi | |
38877 | ||
38878 | # | |
38879 | # THREE ARGUMENTS | |
38880 | # (e.g. AIX, HP-UX, Tru64) | |
38881 | # | |
38882 | ||
38883 | if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then | |
38884 | ||
38885 | cat >conftest.$ac_ext <<_ACEOF | |
38886 | /* confdefs.h. */ | |
38887 | _ACEOF | |
38888 | cat confdefs.h >>conftest.$ac_ext | |
38889 | cat >>conftest.$ac_ext <<_ACEOF | |
38890 | /* end confdefs.h. */ | |
38891 | #include <netdb.h> | |
38892 | int | |
38893 | main () | |
38894 | { | |
38895 | ||
38896 | char *name = "www.gnu.org"; | |
38897 | struct hostent ret; | |
38898 | struct hostent_data data; | |
38899 | (void)gethostbyname_r(name, &ret, &data) /* ; */ | |
38900 | ||
38901 | ; | |
38902 | return 0; | |
38903 | } | |
38904 | _ACEOF | |
38905 | rm -f conftest.$ac_objext | |
38906 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38907 | (eval $ac_compile) 2>conftest.er1 | |
38908 | ac_status=$? | |
38909 | grep -v '^ *+' conftest.er1 >conftest.err | |
38910 | rm -f conftest.er1 | |
38911 | cat conftest.err >&5 | |
38912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38913 | (exit $ac_status); } && | |
3565d135 RR |
38914 | { ac_try='test -z "$ac_c_werror_flag" |
38915 | || test ! -s conftest.err' | |
004ee6da RL |
38916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38917 | (eval $ac_try) 2>&5 | |
38918 | ac_status=$? | |
38919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38920 | (exit $ac_status); }; } && | |
38921 | { ac_try='test -s conftest.$ac_objext' | |
38922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38923 | (eval $ac_try) 2>&5 | |
38924 | ac_status=$? | |
38925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38926 | (exit $ac_status); }; }; then | |
38927 | ac_cv_func_which_gethostbyname_r=three | |
38928 | else | |
38929 | echo "$as_me: failed program was:" >&5 | |
38930 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38931 | ||
38932 | fi | |
38933 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38934 | ||
38935 | fi | |
38936 | ||
38937 | ################################################################ | |
38938 | ||
38939 | ||
38940 | fi | |
38941 | ||
38942 | case "$ac_cv_func_which_gethostbyname_r" in | |
38943 | three) | |
38944 | echo "$as_me:$LINENO: result: three" >&5 | |
38945 | echo "${ECHO_T}three" >&6 | |
38946 | cat >>confdefs.h <<\_ACEOF | |
38947 | #define HAVE_FUNC_GETHOSTBYNAME_R_3 1 | |
38948 | _ACEOF | |
38949 | ||
38950 | ;; | |
38951 | ||
38952 | five) | |
38953 | echo "$as_me:$LINENO: result: five" >&5 | |
38954 | echo "${ECHO_T}five" >&6 | |
38955 | cat >>confdefs.h <<\_ACEOF | |
38956 | #define HAVE_FUNC_GETHOSTBYNAME_R_5 1 | |
38957 | _ACEOF | |
38958 | ||
38959 | ;; | |
38960 | ||
38961 | six) | |
38962 | echo "$as_me:$LINENO: result: six" >&5 | |
38963 | echo "${ECHO_T}six" >&6 | |
38964 | cat >>confdefs.h <<\_ACEOF | |
38965 | #define HAVE_FUNC_GETHOSTBYNAME_R_6 1 | |
38966 | _ACEOF | |
38967 | ||
38968 | ;; | |
38969 | ||
38970 | no) | |
38971 | echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5 | |
38972 | echo "${ECHO_T}cannot find function declaration in netdb.h" >&6 | |
38973 | ;; | |
38974 | ||
38975 | unknown) | |
38976 | echo "$as_me:$LINENO: result: can't tell" >&5 | |
38977 | echo "${ECHO_T}can't tell" >&6 | |
38978 | ;; | |
38979 | ||
38980 | *) | |
38981 | { { echo "$as_me:$LINENO: error: internal error" >&5 | |
38982 | echo "$as_me: error: internal error" >&2;} | |
38983 | { (exit 1); exit 1; }; } | |
38984 | ;; | |
38985 | esac | |
38986 | ||
38987 | ac_ext=c | |
38988 | ac_cpp='$CPP $CPPFLAGS' | |
38989 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
38990 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
38991 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
38992 | ||
38993 | ||
38994 | ||
38995 | if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \ | |
38996 | "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then | |
38997 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
38998 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
38999 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
39000 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39001 | else | |
39002 | cat >conftest.$ac_ext <<_ACEOF | |
39003 | /* confdefs.h. */ | |
39004 | _ACEOF | |
39005 | cat confdefs.h >>conftest.$ac_ext | |
39006 | cat >>conftest.$ac_ext <<_ACEOF | |
39007 | /* end confdefs.h. */ | |
39008 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. | |
39009 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39010 | #define gethostbyname innocuous_gethostbyname | |
39011 | ||
39012 | /* System header to define __stub macros and hopefully few prototypes, | |
39013 | which can conflict with char gethostbyname (); below. | |
39014 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39015 | <limits.h> exists even on freestanding compilers. */ | |
39016 | ||
39017 | #ifdef __STDC__ | |
39018 | # include <limits.h> | |
39019 | #else | |
39020 | # include <assert.h> | |
39021 | #endif | |
39022 | ||
39023 | #undef gethostbyname | |
39024 | ||
39025 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39026 | #ifdef __cplusplus | |
39027 | extern "C" | |
39028 | { | |
39029 | #endif | |
39030 | /* We use char because int might match the return type of a gcc2 | |
39031 | builtin and then its argument prototype would still apply. */ | |
39032 | char gethostbyname (); | |
39033 | /* The GNU C library defines this for functions which it implements | |
39034 | to always fail with ENOSYS. Some functions are actually named | |
39035 | something starting with __ and the normal name is an alias. */ | |
39036 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
39037 | choke me | |
39038 | #else | |
39039 | char (*f) () = gethostbyname; | |
39040 | #endif | |
39041 | #ifdef __cplusplus | |
39042 | } | |
39043 | #endif | |
39044 | ||
39045 | int | |
39046 | main () | |
39047 | { | |
39048 | return f != gethostbyname; | |
39049 | ; | |
39050 | return 0; | |
39051 | } | |
39052 | _ACEOF | |
39053 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39054 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
39055 | (eval $ac_link) 2>conftest.er1 | |
39056 | ac_status=$? | |
39057 | grep -v '^ *+' conftest.er1 >conftest.err | |
39058 | rm -f conftest.er1 | |
39059 | cat conftest.err >&5 | |
39060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39061 | (exit $ac_status); } && | |
3565d135 RR |
39062 | { ac_try='test -z "$ac_c_werror_flag" |
39063 | || test ! -s conftest.err' | |
004ee6da RL |
39064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39065 | (eval $ac_try) 2>&5 | |
39066 | ac_status=$? | |
39067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39068 | (exit $ac_status); }; } && | |
39069 | { ac_try='test -s conftest$ac_exeext' | |
39070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39071 | (eval $ac_try) 2>&5 | |
39072 | ac_status=$? | |
39073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39074 | (exit $ac_status); }; }; then | |
39075 | ac_cv_func_gethostbyname=yes | |
39076 | else | |
39077 | echo "$as_me: failed program was:" >&5 | |
39078 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39079 | ||
39080 | ac_cv_func_gethostbyname=no | |
39081 | fi | |
39082 | rm -f conftest.err conftest.$ac_objext \ | |
39083 | conftest$ac_exeext conftest.$ac_ext | |
39084 | fi | |
39085 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
39086 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
39087 | if test $ac_cv_func_gethostbyname = yes; then | |
39088 | cat >>confdefs.h <<\_ACEOF | |
39089 | #define HAVE_GETHOSTBYNAME 1 | |
39090 | _ACEOF | |
39091 | ||
39092 | fi | |
39093 | ||
39094 | fi | |
39095 | echo "$as_me:$LINENO: checking for getservbyname_r" >&5 | |
39096 | echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6 | |
004ee6da RL |
39097 | if test "${ac_cv_func_getservbyname_r+set}" = set; then |
39098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39099 | else | |
39100 | cat >conftest.$ac_ext <<_ACEOF | |
39101 | /* confdefs.h. */ | |
39102 | _ACEOF | |
39103 | cat confdefs.h >>conftest.$ac_ext | |
39104 | cat >>conftest.$ac_ext <<_ACEOF | |
39105 | /* end confdefs.h. */ | |
39106 | /* Define getservbyname_r to an innocuous variant, in case <limits.h> declares getservbyname_r. | |
39107 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39108 | #define getservbyname_r innocuous_getservbyname_r | |
39109 | ||
39110 | /* System header to define __stub macros and hopefully few prototypes, | |
39111 | which can conflict with char getservbyname_r (); below. | |
39112 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39113 | <limits.h> exists even on freestanding compilers. */ | |
39114 | ||
39115 | #ifdef __STDC__ | |
39116 | # include <limits.h> | |
39117 | #else | |
39118 | # include <assert.h> | |
39119 | #endif | |
39120 | ||
39121 | #undef getservbyname_r | |
39122 | ||
39123 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39124 | #ifdef __cplusplus | |
39125 | extern "C" | |
39126 | { | |
39127 | #endif | |
39128 | /* We use char because int might match the return type of a gcc2 | |
39129 | builtin and then its argument prototype would still apply. */ | |
39130 | char getservbyname_r (); | |
39131 | /* The GNU C library defines this for functions which it implements | |
39132 | to always fail with ENOSYS. Some functions are actually named | |
39133 | something starting with __ and the normal name is an alias. */ | |
39134 | #if defined (__stub_getservbyname_r) || defined (__stub___getservbyname_r) | |
39135 | choke me | |
39136 | #else | |
39137 | char (*f) () = getservbyname_r; | |
39138 | #endif | |
39139 | #ifdef __cplusplus | |
39140 | } | |
39141 | #endif | |
39142 | ||
39143 | int | |
39144 | main () | |
39145 | { | |
39146 | return f != getservbyname_r; | |
39147 | ; | |
39148 | return 0; | |
39149 | } | |
39150 | _ACEOF | |
39151 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39152 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
39153 | (eval $ac_link) 2>conftest.er1 | |
39154 | ac_status=$? | |
39155 | grep -v '^ *+' conftest.er1 >conftest.err | |
39156 | rm -f conftest.er1 | |
39157 | cat conftest.err >&5 | |
39158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39159 | (exit $ac_status); } && | |
3565d135 RR |
39160 | { ac_try='test -z "$ac_c_werror_flag" |
39161 | || test ! -s conftest.err' | |
004ee6da RL |
39162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39163 | (eval $ac_try) 2>&5 | |
39164 | ac_status=$? | |
39165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39166 | (exit $ac_status); }; } && | |
39167 | { ac_try='test -s conftest$ac_exeext' | |
39168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39169 | (eval $ac_try) 2>&5 | |
39170 | ac_status=$? | |
39171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39172 | (exit $ac_status); }; }; then | |
39173 | ac_cv_func_getservbyname_r=yes | |
39174 | else | |
39175 | echo "$as_me: failed program was:" >&5 | |
39176 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39177 | ||
39178 | ac_cv_func_getservbyname_r=no | |
39179 | fi | |
39180 | rm -f conftest.err conftest.$ac_objext \ | |
39181 | conftest$ac_exeext conftest.$ac_ext | |
39182 | fi | |
39183 | echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_r" >&5 | |
39184 | echo "${ECHO_T}$ac_cv_func_getservbyname_r" >&6 | |
39185 | if test $ac_cv_func_getservbyname_r = yes; then | |
99879bbf | 39186 | cat >conftest.$ac_ext <<_ACEOF |
004ee6da RL |
39187 | /* confdefs.h. */ |
39188 | _ACEOF | |
39189 | cat confdefs.h >>conftest.$ac_ext | |
39190 | cat >>conftest.$ac_ext <<_ACEOF | |
39191 | /* end confdefs.h. */ | |
99879bbf | 39192 | #include <netdb.h> |
004ee6da RL |
39193 | int |
39194 | main () | |
39195 | { | |
39196 | ||
99879bbf MR |
39197 | char *name; |
39198 | char *proto; | |
39199 | struct servent *se; | |
39200 | struct servent_data data; | |
39201 | (void) getservbyname_r(name, proto, se, &data); | |
004ee6da RL |
39202 | |
39203 | ; | |
39204 | return 0; | |
39205 | } | |
39206 | _ACEOF | |
39207 | rm -f conftest.$ac_objext | |
39208 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39209 | (eval $ac_compile) 2>conftest.er1 | |
39210 | ac_status=$? | |
39211 | grep -v '^ *+' conftest.er1 >conftest.err | |
39212 | rm -f conftest.er1 | |
39213 | cat conftest.err >&5 | |
39214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39215 | (exit $ac_status); } && | |
3565d135 RR |
39216 | { ac_try='test -z "$ac_c_werror_flag" |
39217 | || test ! -s conftest.err' | |
004ee6da RL |
39218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39219 | (eval $ac_try) 2>&5 | |
39220 | ac_status=$? | |
39221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39222 | (exit $ac_status); }; } && | |
39223 | { ac_try='test -s conftest.$ac_objext' | |
39224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39225 | (eval $ac_try) 2>&5 | |
39226 | ac_status=$? | |
39227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39228 | (exit $ac_status); }; }; then | |
39229 | ac_cv_func_which_getservbyname_r=four | |
39230 | else | |
39231 | echo "$as_me: failed program was:" >&5 | |
39232 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39233 | ||
99879bbf | 39234 | cat >conftest.$ac_ext <<_ACEOF |
004ee6da RL |
39235 | /* confdefs.h. */ |
39236 | _ACEOF | |
39237 | cat confdefs.h >>conftest.$ac_ext | |
39238 | cat >>conftest.$ac_ext <<_ACEOF | |
39239 | /* end confdefs.h. */ | |
99879bbf | 39240 | #include <netdb.h> |
004ee6da RL |
39241 | int |
39242 | main () | |
39243 | { | |
39244 | ||
99879bbf MR |
39245 | char *name; |
39246 | char *proto; | |
39247 | struct servent *se, *res; | |
39248 | char buffer[2048]; | |
39249 | int buflen = 2048; | |
39250 | (void) getservbyname_r(name, proto, se, buffer, buflen, &res); | |
004ee6da RL |
39251 | |
39252 | ; | |
39253 | return 0; | |
39254 | } | |
39255 | _ACEOF | |
39256 | rm -f conftest.$ac_objext | |
39257 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39258 | (eval $ac_compile) 2>conftest.er1 | |
39259 | ac_status=$? | |
39260 | grep -v '^ *+' conftest.er1 >conftest.err | |
39261 | rm -f conftest.er1 | |
39262 | cat conftest.err >&5 | |
39263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39264 | (exit $ac_status); } && | |
3565d135 RR |
39265 | { ac_try='test -z "$ac_c_werror_flag" |
39266 | || test ! -s conftest.err' | |
004ee6da RL |
39267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39268 | (eval $ac_try) 2>&5 | |
39269 | ac_status=$? | |
39270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39271 | (exit $ac_status); }; } && | |
39272 | { ac_try='test -s conftest.$ac_objext' | |
39273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39274 | (eval $ac_try) 2>&5 | |
39275 | ac_status=$? | |
39276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39277 | (exit $ac_status); }; }; then | |
39278 | ac_cv_func_which_getservbyname_r=six | |
39279 | else | |
39280 | echo "$as_me: failed program was:" >&5 | |
39281 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39282 | ||
99879bbf | 39283 | cat >conftest.$ac_ext <<_ACEOF |
004ee6da RL |
39284 | /* confdefs.h. */ |
39285 | _ACEOF | |
39286 | cat confdefs.h >>conftest.$ac_ext | |
39287 | cat >>conftest.$ac_ext <<_ACEOF | |
39288 | /* end confdefs.h. */ | |
99879bbf | 39289 | #include <netdb.h> |
004ee6da RL |
39290 | int |
39291 | main () | |
39292 | { | |
39293 | ||
99879bbf MR |
39294 | char *name; |
39295 | char *proto; | |
39296 | struct servent *se; | |
39297 | char buffer[2048]; | |
39298 | int buflen = 2048; | |
39299 | (void) getservbyname_r(name, proto, se, buffer, buflen) | |
004ee6da RL |
39300 | |
39301 | ; | |
39302 | return 0; | |
39303 | } | |
39304 | _ACEOF | |
39305 | rm -f conftest.$ac_objext | |
39306 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
39307 | (eval $ac_compile) 2>conftest.er1 | |
39308 | ac_status=$? | |
39309 | grep -v '^ *+' conftest.er1 >conftest.err | |
39310 | rm -f conftest.er1 | |
39311 | cat conftest.err >&5 | |
39312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39313 | (exit $ac_status); } && | |
3565d135 RR |
39314 | { ac_try='test -z "$ac_c_werror_flag" |
39315 | || test ! -s conftest.err' | |
004ee6da RL |
39316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39317 | (eval $ac_try) 2>&5 | |
39318 | ac_status=$? | |
39319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39320 | (exit $ac_status); }; } && | |
39321 | { ac_try='test -s conftest.$ac_objext' | |
39322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39323 | (eval $ac_try) 2>&5 | |
39324 | ac_status=$? | |
39325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39326 | (exit $ac_status); }; }; then | |
39327 | ac_cv_func_which_getservbyname_r=five | |
39328 | else | |
39329 | echo "$as_me: failed program was:" >&5 | |
39330 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39331 | ||
39332 | ac_cv_func_which_getservbyname_r=no | |
99879bbf | 39333 | |
004ee6da RL |
39334 | fi |
39335 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39336 | ||
004ee6da RL |
39337 | fi |
39338 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
39339 | ||
004ee6da RL |
39340 | fi |
39341 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
004ee6da RL |
39342 | else |
39343 | ac_cv_func_which_getservbyname_r=no | |
39344 | fi | |
39345 | ||
004ee6da RL |
39346 | |
39347 | if test $ac_cv_func_which_getservbyname_r = six; then | |
39348 | cat >>confdefs.h <<\_ACEOF | |
39349 | #define HAVE_FUNC_GETSERVBYNAME_R_6 1 | |
39350 | _ACEOF | |
39351 | ||
39352 | elif test $ac_cv_func_which_getservbyname_r = five; then | |
39353 | cat >>confdefs.h <<\_ACEOF | |
39354 | #define HAVE_FUNC_GETSERVBYNAME_R_5 1 | |
39355 | _ACEOF | |
39356 | ||
39357 | elif test $ac_cv_func_which_getservbyname_r = four; then | |
39358 | cat >>confdefs.h <<\_ACEOF | |
39359 | #define HAVE_FUNC_GETSERVBYNAME_R_4 1 | |
39360 | _ACEOF | |
39361 | ||
004ee6da RL |
39362 | fi |
39363 | ||
39364 | ||
39365 | if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \ | |
39366 | "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then | |
39367 | ||
39368 | for ac_func in getservbyname | |
39369 | do | |
39370 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
39371 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39372 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
39373 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
39374 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39375 | else | |
39376 | cat >conftest.$ac_ext <<_ACEOF | |
39377 | /* confdefs.h. */ | |
39378 | _ACEOF | |
39379 | cat confdefs.h >>conftest.$ac_ext | |
39380 | cat >>conftest.$ac_ext <<_ACEOF | |
39381 | /* end confdefs.h. */ | |
39382 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
39383 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39384 | #define $ac_func innocuous_$ac_func | |
39385 | ||
39386 | /* System header to define __stub macros and hopefully few prototypes, | |
39387 | which can conflict with char $ac_func (); below. | |
39388 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39389 | <limits.h> exists even on freestanding compilers. */ | |
39390 | ||
39391 | #ifdef __STDC__ | |
39392 | # include <limits.h> | |
39393 | #else | |
39394 | # include <assert.h> | |
39395 | #endif | |
39396 | ||
39397 | #undef $ac_func | |
39398 | ||
39399 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39400 | #ifdef __cplusplus | |
39401 | extern "C" | |
39402 | { | |
39403 | #endif | |
39404 | /* We use char because int might match the return type of a gcc2 | |
39405 | builtin and then its argument prototype would still apply. */ | |
39406 | char $ac_func (); | |
39407 | /* The GNU C library defines this for functions which it implements | |
39408 | to always fail with ENOSYS. Some functions are actually named | |
39409 | something starting with __ and the normal name is an alias. */ | |
39410 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39411 | choke me | |
39412 | #else | |
39413 | char (*f) () = $ac_func; | |
39414 | #endif | |
39415 | #ifdef __cplusplus | |
39416 | } | |
39417 | #endif | |
39418 | ||
39419 | int | |
39420 | main () | |
39421 | { | |
39422 | return f != $ac_func; | |
39423 | ; | |
39424 | return 0; | |
39425 | } | |
39426 | _ACEOF | |
39427 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39428 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
39429 | (eval $ac_link) 2>conftest.er1 | |
39430 | ac_status=$? | |
39431 | grep -v '^ *+' conftest.er1 >conftest.err | |
39432 | rm -f conftest.er1 | |
39433 | cat conftest.err >&5 | |
39434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39435 | (exit $ac_status); } && | |
3565d135 RR |
39436 | { ac_try='test -z "$ac_c_werror_flag" |
39437 | || test ! -s conftest.err' | |
004ee6da RL |
39438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39439 | (eval $ac_try) 2>&5 | |
39440 | ac_status=$? | |
39441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39442 | (exit $ac_status); }; } && | |
39443 | { ac_try='test -s conftest$ac_exeext' | |
39444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39445 | (eval $ac_try) 2>&5 | |
39446 | ac_status=$? | |
39447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39448 | (exit $ac_status); }; }; then | |
39449 | eval "$as_ac_var=yes" | |
39450 | else | |
39451 | echo "$as_me: failed program was:" >&5 | |
39452 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39453 | ||
39454 | eval "$as_ac_var=no" | |
39455 | fi | |
39456 | rm -f conftest.err conftest.$ac_objext \ | |
39457 | conftest$ac_exeext conftest.$ac_ext | |
39458 | fi | |
39459 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39460 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39461 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39462 | cat >>confdefs.h <<_ACEOF | |
39463 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39464 | _ACEOF | |
39465 | cat >>confdefs.h <<\_ACEOF | |
39466 | #define HAVE_GETSERVBYNAME 1 | |
39467 | _ACEOF | |
39468 | ||
39469 | fi | |
39470 | done | |
39471 | ||
39472 | fi | |
39473 | ||
004ee6da RL |
39474 | if test "$wxUSE_THREADS" = "yes"; then |
39475 | cat >>confdefs.h <<\_ACEOF | |
39476 | #define wxUSE_THREADS 1 | |
39477 | _ACEOF | |
39478 | ||
39479 | ||
39480 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
39481 | else | |
39482 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
39483 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 | |
39484 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
39485 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
39486 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT" | |
39487 | echo "$as_me:$LINENO: result: yes" >&5 | |
39488 | echo "${ECHO_T}yes" >&6 | |
39489 | else | |
39490 | echo "$as_me:$LINENO: result: no" >&5 | |
39491 | echo "${ECHO_T}no" >&6 | |
39492 | fi | |
39493 | fi | |
39494 | fi | |
39495 | ||
39496 | if test "$WXGTK20" = 1 ; then | |
39497 | cat >>confdefs.h <<_ACEOF | |
39498 | #define __WXGTK20__ $WXGTK20 | |
39499 | _ACEOF | |
39500 | ||
39501 | WXGTK12=1 | |
39502 | fi | |
39503 | ||
39504 | if test "$WXGTK12" = 1 ; then | |
39505 | cat >>confdefs.h <<_ACEOF | |
39506 | #define __WXGTK12__ $WXGTK12 | |
39507 | _ACEOF | |
39508 | ||
39509 | fi | |
39510 | ||
39511 | if test "$WXGTK127" = 1 ; then | |
39512 | cat >>confdefs.h <<_ACEOF | |
39513 | #define __WXGTK127__ $WXGTK127 | |
39514 | _ACEOF | |
39515 | ||
39516 | fi | |
39517 | ||
39518 | if test "$WXGPE" = 1 ; then | |
39519 | cat >>confdefs.h <<_ACEOF | |
39520 | #define __WXGPE__ $WXGPE | |
39521 | _ACEOF | |
39522 | ||
39523 | fi | |
39524 | ||
39525 | DEBUG_CFLAGS= | |
39526 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
39527 | DEBUG_CFLAGS="-g" | |
39528 | wxUSE_OPTIMISE=no | |
39529 | fi | |
39530 | ||
39531 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
39532 | wxUSE_DEBUG_INFO=yes | |
39533 | if test "$GCC" = yes; then | |
39534 | DEBUG_CFLAGS="-ggdb" | |
39535 | fi | |
39536 | fi | |
39537 | ||
39538 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
39539 | cat >>confdefs.h <<\_ACEOF | |
39540 | #define WXDEBUG 1 | |
39541 | _ACEOF | |
39542 | ||
39543 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__" | |
39544 | else | |
39545 | if test "$wxUSE_GTK" = 1 ; then | |
99879bbf MR |
39546 | if test "x$wxGTK_VERSION" = "x1" ; then |
39547 | CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS" | |
39548 | fi | |
004ee6da RL |
39549 | fi |
39550 | fi | |
39551 | ||
39552 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
39553 | cat >>confdefs.h <<\_ACEOF | |
39554 | #define wxUSE_MEMORY_TRACING 1 | |
39555 | _ACEOF | |
39556 | ||
39557 | cat >>confdefs.h <<\_ACEOF | |
39558 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
39559 | _ACEOF | |
39560 | ||
39561 | cat >>confdefs.h <<\_ACEOF | |
39562 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
39563 | _ACEOF | |
39564 | ||
39565 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
39566 | fi | |
39567 | ||
39568 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
39569 | DMALLOC_LIBS="-ldmallocthcxx" | |
39570 | fi | |
39571 | ||
39572 | PROFILE_FLAGS= | |
39573 | if test "$wxUSE_PROFILE" = "yes" ; then | |
39574 | PROFILE_FLAGS=" -pg" | |
39575 | fi | |
39576 | ||
39577 | if test "$GCC" = "yes" ; then | |
39578 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
39579 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti" | |
39580 | fi | |
39581 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
39582 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions" | |
39583 | fi | |
39584 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
39585 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive" | |
39586 | fi | |
39587 | ||
39588 | case "${host}" in | |
39589 | powerpc*-*-aix* ) | |
39590 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc" | |
39591 | ;; | |
39592 | *-hppa* ) | |
39593 | WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections" | |
39594 | ;; | |
39595 | esac | |
39596 | fi | |
39597 | ||
39598 | OPTIMISE_CFLAGS= | |
39599 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
39600 | if test "$GCC" = yes ; then | |
39601 | OPTIMISE_CFLAGS="-O0" | |
39602 | fi | |
39603 | else | |
39604 | if test "$GCC" = yes ; then | |
39605 | OPTIMISE_CFLAGS="-O2" | |
39606 | else | |
39607 | OPTIMISE_CFLAGS="-O" | |
39608 | fi | |
39609 | fi | |
39610 | ||
39611 | ||
39612 | if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then | |
39613 | cat >>confdefs.h <<\_ACEOF | |
39614 | #define WXWIN_COMPATIBILITY_2_4 1 | |
39615 | _ACEOF | |
39616 | ||
39617 | ||
39618 | WXWIN_COMPATIBILITY_2_6="yes" | |
39619 | fi | |
39620 | ||
39621 | if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then | |
39622 | cat >>confdefs.h <<\_ACEOF | |
39623 | #define WXWIN_COMPATIBILITY_2_6 1 | |
39624 | _ACEOF | |
39625 | ||
39626 | fi | |
39627 | ||
39628 | ||
39629 | if test "$wxUSE_GUI" = "yes"; then | |
39630 | cat >>confdefs.h <<\_ACEOF | |
39631 | #define wxUSE_GUI 1 | |
39632 | _ACEOF | |
39633 | ||
39634 | ||
39635 | fi | |
39636 | ||
39637 | ||
39638 | if test "$wxUSE_UNIX" = "yes"; then | |
39639 | cat >>confdefs.h <<\_ACEOF | |
39640 | #define wxUSE_UNIX 1 | |
39641 | _ACEOF | |
39642 | ||
39643 | fi | |
39644 | ||
39645 | ||
39646 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
39647 | ||
39648 | HAVE_DL_FUNCS=0 | |
39649 | HAVE_SHL_FUNCS=0 | |
39650 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
39651 | if test "$USE_DARWIN" = 1; then | |
39652 | HAVE_DL_FUNCS=1 | |
39653 | elif test "$USE_DOS" = 1; then | |
39654 | HAVE_DL_FUNCS=0 | |
39655 | else | |
39656 | ||
39657 | for ac_func in dlopen | |
39658 | do | |
39659 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
39660 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39661 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
39662 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
39663 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39664 | else | |
39665 | cat >conftest.$ac_ext <<_ACEOF | |
39666 | /* confdefs.h. */ | |
39667 | _ACEOF | |
39668 | cat confdefs.h >>conftest.$ac_ext | |
39669 | cat >>conftest.$ac_ext <<_ACEOF | |
39670 | /* end confdefs.h. */ | |
39671 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
39672 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39673 | #define $ac_func innocuous_$ac_func | |
39674 | ||
39675 | /* System header to define __stub macros and hopefully few prototypes, | |
39676 | which can conflict with char $ac_func (); below. | |
39677 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39678 | <limits.h> exists even on freestanding compilers. */ | |
39679 | ||
39680 | #ifdef __STDC__ | |
39681 | # include <limits.h> | |
39682 | #else | |
39683 | # include <assert.h> | |
39684 | #endif | |
39685 | ||
39686 | #undef $ac_func | |
39687 | ||
39688 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39689 | #ifdef __cplusplus | |
39690 | extern "C" | |
39691 | { | |
39692 | #endif | |
39693 | /* We use char because int might match the return type of a gcc2 | |
39694 | builtin and then its argument prototype would still apply. */ | |
39695 | char $ac_func (); | |
39696 | /* The GNU C library defines this for functions which it implements | |
39697 | to always fail with ENOSYS. Some functions are actually named | |
39698 | something starting with __ and the normal name is an alias. */ | |
39699 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39700 | choke me | |
39701 | #else | |
39702 | char (*f) () = $ac_func; | |
39703 | #endif | |
39704 | #ifdef __cplusplus | |
39705 | } | |
39706 | #endif | |
39707 | ||
39708 | int | |
39709 | main () | |
39710 | { | |
39711 | return f != $ac_func; | |
a848cd7e SC |
39712 | ; |
39713 | return 0; | |
39714 | } | |
39715 | _ACEOF | |
39716 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39717 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39718 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39719 | ac_status=$? |
ac1cb8d3 VS |
39720 | grep -v '^ *+' conftest.er1 >conftest.err |
39721 | rm -f conftest.er1 | |
39722 | cat conftest.err >&5 | |
a848cd7e SC |
39723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39724 | (exit $ac_status); } && | |
3565d135 RR |
39725 | { ac_try='test -z "$ac_c_werror_flag" |
39726 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39728 | (eval $ac_try) 2>&5 | |
39729 | ac_status=$? | |
39730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39731 | (exit $ac_status); }; } && | |
39732 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39734 | (eval $ac_try) 2>&5 | |
39735 | ac_status=$? | |
39736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39737 | (exit $ac_status); }; }; then | |
39738 | eval "$as_ac_var=yes" | |
39739 | else | |
39740 | echo "$as_me: failed program was:" >&5 | |
39741 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39742 | ||
39743 | eval "$as_ac_var=no" | |
39744 | fi | |
ac1cb8d3 VS |
39745 | rm -f conftest.err conftest.$ac_objext \ |
39746 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39747 | fi |
39748 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39749 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39750 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39751 | cat >>confdefs.h <<_ACEOF | |
39752 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39753 | _ACEOF | |
39754 | ||
39755 | cat >>confdefs.h <<\_ACEOF | |
39756 | #define HAVE_DLOPEN 1 | |
39757 | _ACEOF | |
39758 | ||
39759 | HAVE_DL_FUNCS=1 | |
39760 | ||
39761 | else | |
39762 | ||
39763 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
39764 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
39765 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
39766 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39767 | else | |
39768 | ac_check_lib_save_LIBS=$LIBS | |
39769 | LIBS="-ldl $LIBS" | |
39770 | cat >conftest.$ac_ext <<_ACEOF | |
39771 | /* confdefs.h. */ | |
39772 | _ACEOF | |
39773 | cat confdefs.h >>conftest.$ac_ext | |
39774 | cat >>conftest.$ac_ext <<_ACEOF | |
39775 | /* end confdefs.h. */ | |
39776 | ||
39777 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39778 | #ifdef __cplusplus | |
39779 | extern "C" | |
39780 | #endif | |
39781 | /* We use char because int might match the return type of a gcc2 | |
39782 | builtin and then its argument prototype would still apply. */ | |
39783 | char dlopen (); | |
39784 | int | |
39785 | main () | |
39786 | { | |
39787 | dlopen (); | |
39788 | ; | |
39789 | return 0; | |
39790 | } | |
39791 | _ACEOF | |
39792 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39793 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39794 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39795 | ac_status=$? |
ac1cb8d3 VS |
39796 | grep -v '^ *+' conftest.er1 >conftest.err |
39797 | rm -f conftest.er1 | |
39798 | cat conftest.err >&5 | |
a848cd7e SC |
39799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39800 | (exit $ac_status); } && | |
3565d135 RR |
39801 | { ac_try='test -z "$ac_c_werror_flag" |
39802 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39804 | (eval $ac_try) 2>&5 | |
39805 | ac_status=$? | |
39806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39807 | (exit $ac_status); }; } && | |
39808 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39810 | (eval $ac_try) 2>&5 | |
39811 | ac_status=$? | |
39812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39813 | (exit $ac_status); }; }; then | |
39814 | ac_cv_lib_dl_dlopen=yes | |
39815 | else | |
39816 | echo "$as_me: failed program was:" >&5 | |
39817 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39818 | ||
39819 | ac_cv_lib_dl_dlopen=no | |
39820 | fi | |
ac1cb8d3 VS |
39821 | rm -f conftest.err conftest.$ac_objext \ |
39822 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39823 | LIBS=$ac_check_lib_save_LIBS |
39824 | fi | |
39825 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
39826 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
39827 | if test $ac_cv_lib_dl_dlopen = yes; then | |
39828 | ||
39829 | cat >>confdefs.h <<\_ACEOF | |
39830 | #define HAVE_DLOPEN 1 | |
39831 | _ACEOF | |
39832 | ||
39833 | HAVE_DL_FUNCS=1 | |
39834 | DL_LINK=" -ldl$DL_LINK" | |
39835 | ||
39836 | else | |
39837 | ||
39838 | ||
39839 | for ac_func in shl_load | |
39840 | do | |
39841 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
39842 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
39843 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
39844 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
39845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39846 | else | |
39847 | cat >conftest.$ac_ext <<_ACEOF | |
39848 | /* confdefs.h. */ | |
39849 | _ACEOF | |
39850 | cat confdefs.h >>conftest.$ac_ext | |
39851 | cat >>conftest.$ac_ext <<_ACEOF | |
39852 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
39853 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
39854 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
39855 | #define $ac_func innocuous_$ac_func | |
39856 | ||
a848cd7e SC |
39857 | /* System header to define __stub macros and hopefully few prototypes, |
39858 | which can conflict with char $ac_func (); below. | |
39859 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
39860 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 39861 | |
a848cd7e SC |
39862 | #ifdef __STDC__ |
39863 | # include <limits.h> | |
39864 | #else | |
39865 | # include <assert.h> | |
39866 | #endif | |
ac1cb8d3 VS |
39867 | |
39868 | #undef $ac_func | |
39869 | ||
a848cd7e SC |
39870 | /* Override any gcc2 internal prototype to avoid an error. */ |
39871 | #ifdef __cplusplus | |
39872 | extern "C" | |
39873 | { | |
39874 | #endif | |
39875 | /* We use char because int might match the return type of a gcc2 | |
39876 | builtin and then its argument prototype would still apply. */ | |
39877 | char $ac_func (); | |
39878 | /* The GNU C library defines this for functions which it implements | |
39879 | to always fail with ENOSYS. Some functions are actually named | |
39880 | something starting with __ and the normal name is an alias. */ | |
39881 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
39882 | choke me | |
39883 | #else | |
39884 | char (*f) () = $ac_func; | |
39885 | #endif | |
39886 | #ifdef __cplusplus | |
39887 | } | |
39888 | #endif | |
39889 | ||
39890 | int | |
39891 | main () | |
39892 | { | |
39893 | return f != $ac_func; | |
39894 | ; | |
39895 | return 0; | |
39896 | } | |
39897 | _ACEOF | |
39898 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39899 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39900 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39901 | ac_status=$? |
ac1cb8d3 VS |
39902 | grep -v '^ *+' conftest.er1 >conftest.err |
39903 | rm -f conftest.er1 | |
39904 | cat conftest.err >&5 | |
a848cd7e SC |
39905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39906 | (exit $ac_status); } && | |
3565d135 RR |
39907 | { ac_try='test -z "$ac_c_werror_flag" |
39908 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39910 | (eval $ac_try) 2>&5 | |
39911 | ac_status=$? | |
39912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39913 | (exit $ac_status); }; } && | |
39914 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39916 | (eval $ac_try) 2>&5 | |
39917 | ac_status=$? | |
39918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39919 | (exit $ac_status); }; }; then | |
39920 | eval "$as_ac_var=yes" | |
39921 | else | |
39922 | echo "$as_me: failed program was:" >&5 | |
39923 | sed 's/^/| /' conftest.$ac_ext >&5 | |
39924 | ||
39925 | eval "$as_ac_var=no" | |
39926 | fi | |
ac1cb8d3 VS |
39927 | rm -f conftest.err conftest.$ac_objext \ |
39928 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
39929 | fi |
39930 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
39931 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
39932 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
39933 | cat >>confdefs.h <<_ACEOF | |
39934 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
39935 | _ACEOF | |
39936 | ||
39937 | cat >>confdefs.h <<\_ACEOF | |
39938 | #define HAVE_SHL_LOAD 1 | |
39939 | _ACEOF | |
39940 | ||
39941 | HAVE_SHL_FUNCS=1 | |
39942 | ||
39943 | else | |
39944 | ||
39945 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
39946 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
39947 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
39948 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
39949 | else | |
39950 | ac_check_lib_save_LIBS=$LIBS | |
39951 | LIBS="-lshl_load $LIBS" | |
39952 | cat >conftest.$ac_ext <<_ACEOF | |
39953 | /* confdefs.h. */ | |
39954 | _ACEOF | |
39955 | cat confdefs.h >>conftest.$ac_ext | |
39956 | cat >>conftest.$ac_ext <<_ACEOF | |
39957 | /* end confdefs.h. */ | |
39958 | ||
39959 | /* Override any gcc2 internal prototype to avoid an error. */ | |
39960 | #ifdef __cplusplus | |
39961 | extern "C" | |
39962 | #endif | |
39963 | /* We use char because int might match the return type of a gcc2 | |
39964 | builtin and then its argument prototype would still apply. */ | |
39965 | char dld (); | |
39966 | int | |
39967 | main () | |
39968 | { | |
39969 | dld (); | |
39970 | ; | |
39971 | return 0; | |
39972 | } | |
39973 | _ACEOF | |
39974 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39975 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 39976 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 39977 | ac_status=$? |
ac1cb8d3 VS |
39978 | grep -v '^ *+' conftest.er1 >conftest.err |
39979 | rm -f conftest.er1 | |
39980 | cat conftest.err >&5 | |
a848cd7e SC |
39981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39982 | (exit $ac_status); } && | |
3565d135 RR |
39983 | { ac_try='test -z "$ac_c_werror_flag" |
39984 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
39985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39986 | (eval $ac_try) 2>&5 | |
39987 | ac_status=$? | |
39988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39989 | (exit $ac_status); }; } && | |
39990 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
39991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39992 | (eval $ac_try) 2>&5 | |
39993 | ac_status=$? | |
39994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39995 | (exit $ac_status); }; }; then | |
39996 | ac_cv_lib_shl_load_dld=yes | |
39997 | else | |
39998 | echo "$as_me: failed program was:" >&5 | |
39999 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40000 | ||
40001 | ac_cv_lib_shl_load_dld=no | |
40002 | fi | |
ac1cb8d3 VS |
40003 | rm -f conftest.err conftest.$ac_objext \ |
40004 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40005 | LIBS=$ac_check_lib_save_LIBS |
40006 | fi | |
40007 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
40008 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
40009 | if test $ac_cv_lib_shl_load_dld = yes; then | |
40010 | ||
40011 | HAVE_SHL_FUNCS=1 | |
40012 | DL_LINK=" -ldld$DL_LINK" | |
40013 | ||
40014 | fi | |
40015 | ||
40016 | ||
40017 | fi | |
40018 | done | |
40019 | ||
40020 | ||
40021 | fi | |
40022 | ||
40023 | ||
40024 | fi | |
40025 | done | |
40026 | ||
40027 | ||
40028 | if test "$HAVE_DL_FUNCS" = 1; then | |
40029 | ||
40030 | for ac_func in dlerror | |
40031 | do | |
40032 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
40033 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
40034 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
40035 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
40036 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40037 | else | |
40038 | cat >conftest.$ac_ext <<_ACEOF | |
40039 | /* confdefs.h. */ | |
40040 | _ACEOF | |
40041 | cat confdefs.h >>conftest.$ac_ext | |
40042 | cat >>conftest.$ac_ext <<_ACEOF | |
40043 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
40044 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
40045 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40046 | #define $ac_func innocuous_$ac_func | |
40047 | ||
a848cd7e SC |
40048 | /* System header to define __stub macros and hopefully few prototypes, |
40049 | which can conflict with char $ac_func (); below. | |
40050 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40051 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 40052 | |
a848cd7e SC |
40053 | #ifdef __STDC__ |
40054 | # include <limits.h> | |
40055 | #else | |
40056 | # include <assert.h> | |
40057 | #endif | |
ac1cb8d3 VS |
40058 | |
40059 | #undef $ac_func | |
40060 | ||
a848cd7e SC |
40061 | /* Override any gcc2 internal prototype to avoid an error. */ |
40062 | #ifdef __cplusplus | |
40063 | extern "C" | |
40064 | { | |
40065 | #endif | |
40066 | /* We use char because int might match the return type of a gcc2 | |
40067 | builtin and then its argument prototype would still apply. */ | |
40068 | char $ac_func (); | |
40069 | /* The GNU C library defines this for functions which it implements | |
40070 | to always fail with ENOSYS. Some functions are actually named | |
40071 | something starting with __ and the normal name is an alias. */ | |
40072 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
40073 | choke me | |
40074 | #else | |
40075 | char (*f) () = $ac_func; | |
40076 | #endif | |
40077 | #ifdef __cplusplus | |
40078 | } | |
40079 | #endif | |
40080 | ||
40081 | int | |
40082 | main () | |
40083 | { | |
40084 | return f != $ac_func; | |
40085 | ; | |
40086 | return 0; | |
40087 | } | |
40088 | _ACEOF | |
40089 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40090 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40091 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40092 | ac_status=$? |
ac1cb8d3 VS |
40093 | grep -v '^ *+' conftest.er1 >conftest.err |
40094 | rm -f conftest.er1 | |
40095 | cat conftest.err >&5 | |
a848cd7e SC |
40096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40097 | (exit $ac_status); } && | |
3565d135 RR |
40098 | { ac_try='test -z "$ac_c_werror_flag" |
40099 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
40100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40101 | (eval $ac_try) 2>&5 | |
40102 | ac_status=$? | |
40103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40104 | (exit $ac_status); }; } && | |
40105 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40107 | (eval $ac_try) 2>&5 | |
40108 | ac_status=$? | |
40109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40110 | (exit $ac_status); }; }; then | |
40111 | eval "$as_ac_var=yes" | |
40112 | else | |
40113 | echo "$as_me: failed program was:" >&5 | |
40114 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40115 | ||
40116 | eval "$as_ac_var=no" | |
40117 | fi | |
ac1cb8d3 VS |
40118 | rm -f conftest.err conftest.$ac_objext \ |
40119 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40120 | fi |
40121 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
40122 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
40123 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
40124 | cat >>confdefs.h <<_ACEOF | |
40125 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
40126 | _ACEOF | |
40127 | cat >>confdefs.h <<\_ACEOF | |
40128 | #define HAVE_DLERROR 1 | |
40129 | _ACEOF | |
40130 | ||
40131 | else | |
40132 | ||
40133 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
40134 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
40135 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
40136 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40137 | else | |
40138 | ac_check_lib_save_LIBS=$LIBS | |
40139 | LIBS="-ldl $LIBS" | |
40140 | cat >conftest.$ac_ext <<_ACEOF | |
40141 | /* confdefs.h. */ | |
40142 | _ACEOF | |
40143 | cat confdefs.h >>conftest.$ac_ext | |
40144 | cat >>conftest.$ac_ext <<_ACEOF | |
40145 | /* end confdefs.h. */ | |
40146 | ||
40147 | /* Override any gcc2 internal prototype to avoid an error. */ | |
40148 | #ifdef __cplusplus | |
40149 | extern "C" | |
40150 | #endif | |
40151 | /* We use char because int might match the return type of a gcc2 | |
40152 | builtin and then its argument prototype would still apply. */ | |
40153 | char dlerror (); | |
40154 | int | |
40155 | main () | |
40156 | { | |
40157 | dlerror (); | |
40158 | ; | |
40159 | return 0; | |
40160 | } | |
40161 | _ACEOF | |
40162 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40163 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40164 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40165 | ac_status=$? |
ac1cb8d3 VS |
40166 | grep -v '^ *+' conftest.er1 >conftest.err |
40167 | rm -f conftest.er1 | |
40168 | cat conftest.err >&5 | |
a848cd7e SC |
40169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40170 | (exit $ac_status); } && | |
3565d135 RR |
40171 | { ac_try='test -z "$ac_c_werror_flag" |
40172 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
40173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40174 | (eval $ac_try) 2>&5 | |
40175 | ac_status=$? | |
40176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40177 | (exit $ac_status); }; } && | |
40178 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40180 | (eval $ac_try) 2>&5 | |
40181 | ac_status=$? | |
40182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40183 | (exit $ac_status); }; }; then | |
40184 | ac_cv_lib_dl_dlerror=yes | |
40185 | else | |
40186 | echo "$as_me: failed program was:" >&5 | |
40187 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40188 | ||
40189 | ac_cv_lib_dl_dlerror=no | |
40190 | fi | |
ac1cb8d3 VS |
40191 | rm -f conftest.err conftest.$ac_objext \ |
40192 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40193 | LIBS=$ac_check_lib_save_LIBS |
40194 | fi | |
40195 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
40196 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
40197 | if test $ac_cv_lib_dl_dlerror = yes; then | |
40198 | cat >>confdefs.h <<\_ACEOF | |
40199 | #define HAVE_DLERROR 1 | |
40200 | _ACEOF | |
40201 | ||
40202 | fi | |
40203 | ||
40204 | ||
40205 | ||
40206 | fi | |
40207 | done | |
40208 | ||
40209 | fi | |
40210 | fi | |
40211 | ||
40212 | if test "$HAVE_DL_FUNCS" = 0; then | |
40213 | if test "$HAVE_SHL_FUNCS" = 0; then | |
47a7e797 | 40214 | if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then |
a848cd7e SC |
40215 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 |
40216 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
40217 | wxUSE_DYNAMIC_LOADER=no | |
40218 | wxUSE_DYNLIB_CLASS=no | |
40219 | else | |
40220 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
40221 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
40222 | fi | |
40223 | fi | |
40224 | fi | |
40225 | fi | |
40226 | fi | |
40227 | ||
40228 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
40229 | cat >>confdefs.h <<\_ACEOF | |
40230 | #define wxUSE_DYNAMIC_LOADER 1 | |
40231 | _ACEOF | |
40232 | ||
40233 | fi | |
40234 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
40235 | cat >>confdefs.h <<\_ACEOF | |
40236 | #define wxUSE_DYNLIB_CLASS 1 | |
40237 | _ACEOF | |
40238 | ||
40239 | fi | |
40240 | ||
40241 | ||
40242 | ||
40243 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
40244 | if test "$wxUSE_SHARED" = "no" ; then | |
40245 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 | |
40246 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
40247 | wxUSE_PLUGINS=no | |
40248 | fi | |
40249 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
40250 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 | |
40251 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
40252 | wxUSE_PLUGINS=no | |
40253 | fi | |
40254 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
40255 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 | |
40256 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
40257 | wxUSE_PLUGINS=no | |
40258 | fi | |
40259 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
40260 | cat >>confdefs.h <<\_ACEOF | |
40261 | #define wxUSE_PLUGINS 1 | |
40262 | _ACEOF | |
40263 | ||
40264 | fi | |
40265 | fi | |
40266 | ||
40267 | ||
40268 | if test "$wxUSE_STL" = "yes"; then | |
40269 | cat >>confdefs.h <<\_ACEOF | |
40270 | #define wxUSE_STL 1 | |
40271 | _ACEOF | |
40272 | ||
40273 | fi | |
40274 | ||
40275 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
40276 | cat >>confdefs.h <<\_ACEOF | |
40277 | #define wxUSE_APPLE_IEEE 1 | |
40278 | _ACEOF | |
40279 | ||
40280 | fi | |
40281 | ||
40282 | if test "$wxUSE_TIMER" = "yes"; then | |
40283 | cat >>confdefs.h <<\_ACEOF | |
40284 | #define wxUSE_TIMER 1 | |
40285 | _ACEOF | |
40286 | ||
40287 | fi | |
40288 | ||
9c112555 | 40289 | if test "$USE_UNIX" = "1" ; then |
d12aef51 VZ |
40290 | echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5 |
40291 | echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6 | |
40292 | if test "${ac_cv_header_sys_soundcard+set}" = set; then | |
a848cd7e | 40293 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a848cd7e | 40294 | else |
d12aef51 VZ |
40295 | |
40296 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
40297 | /* confdefs.h. */ |
40298 | _ACEOF | |
40299 | cat confdefs.h >>conftest.$ac_ext | |
40300 | cat >>conftest.$ac_ext <<_ACEOF | |
40301 | /* end confdefs.h. */ | |
d12aef51 VZ |
40302 | |
40303 | #include <sys/soundcard.h> | |
40304 | ||
40305 | int | |
40306 | main () | |
40307 | { | |
40308 | ||
40309 | ioctl(0, SNDCTL_DSP_SYNC, 0); | |
40310 | ||
40311 | ; | |
40312 | return 0; | |
40313 | } | |
a848cd7e | 40314 | _ACEOF |
d12aef51 VZ |
40315 | rm -f conftest.$ac_objext conftest$ac_exeext |
40316 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
40317 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e | 40318 | ac_status=$? |
ac1cb8d3 VS |
40319 | grep -v '^ *+' conftest.er1 >conftest.err |
40320 | rm -f conftest.er1 | |
40321 | cat conftest.err >&5 | |
a848cd7e SC |
40322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40323 | (exit $ac_status); } && | |
3565d135 RR |
40324 | { ac_try='test -z "$ac_c_werror_flag" |
40325 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
40326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40327 | (eval $ac_try) 2>&5 | |
40328 | ac_status=$? | |
40329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40330 | (exit $ac_status); }; } && | |
d12aef51 | 40331 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
40332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40333 | (eval $ac_try) 2>&5 | |
40334 | ac_status=$? | |
40335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40336 | (exit $ac_status); }; }; then | |
d12aef51 | 40337 | ac_cv_header_sys_soundcard=yes |
a848cd7e SC |
40338 | else |
40339 | echo "$as_me: failed program was:" >&5 | |
40340 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40341 | ||
a848cd7e | 40342 | |
d12aef51 VZ |
40343 | saveLibs="$LIBS" |
40344 | LIBS="$saveLibs -lossaudio" | |
40345 | cat >conftest.$ac_ext <<_ACEOF | |
a848cd7e SC |
40346 | /* confdefs.h. */ |
40347 | _ACEOF | |
40348 | cat confdefs.h >>conftest.$ac_ext | |
40349 | cat >>conftest.$ac_ext <<_ACEOF | |
40350 | /* end confdefs.h. */ | |
d12aef51 VZ |
40351 | |
40352 | #include <sys/soundcard.h> | |
40353 | ||
40354 | int | |
40355 | main () | |
40356 | { | |
40357 | ||
40358 | ioctl(0, SNDCTL_DSP_SYNC, 0); | |
40359 | ||
40360 | ; | |
40361 | return 0; | |
40362 | } | |
a848cd7e | 40363 | _ACEOF |
d12aef51 VZ |
40364 | rm -f conftest.$ac_objext conftest$ac_exeext |
40365 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
40366 | (eval $ac_link) 2>conftest.er1 | |
a848cd7e SC |
40367 | ac_status=$? |
40368 | grep -v '^ *+' conftest.er1 >conftest.err | |
40369 | rm -f conftest.er1 | |
40370 | cat conftest.err >&5 | |
40371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
d12aef51 | 40372 | (exit $ac_status); } && |
3565d135 RR |
40373 | { ac_try='test -z "$ac_c_werror_flag" |
40374 | || test ! -s conftest.err' | |
d12aef51 VZ |
40375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40376 | (eval $ac_try) 2>&5 | |
40377 | ac_status=$? | |
40378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40379 | (exit $ac_status); }; } && | |
40380 | { ac_try='test -s conftest$ac_exeext' | |
40381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40382 | (eval $ac_try) 2>&5 | |
40383 | ac_status=$? | |
40384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40385 | (exit $ac_status); }; }; then | |
40386 | ac_cv_header_sys_soundcard=yes | |
a848cd7e SC |
40387 | else |
40388 | echo "$as_me: failed program was:" >&5 | |
40389 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40390 | ||
a848cd7e | 40391 | |
d12aef51 VZ |
40392 | LIBS="$saveLibs" |
40393 | ac_cv_header_sys_soundcard=no | |
40394 | ||
40395 | ||
a848cd7e | 40396 | fi |
d12aef51 VZ |
40397 | rm -f conftest.err conftest.$ac_objext \ |
40398 | conftest$ac_exeext conftest.$ac_ext | |
40399 | ||
a848cd7e SC |
40400 | |
40401 | fi | |
d12aef51 VZ |
40402 | rm -f conftest.err conftest.$ac_objext \ |
40403 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
40404 | |
40405 | fi | |
d12aef51 VZ |
40406 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5 |
40407 | echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6 | |
a848cd7e | 40408 | |
d12aef51 VZ |
40409 | if test "$ac_cv_header_sys_soundcard" = "yes"; then |
40410 | cat >>confdefs.h <<\_ACEOF | |
40411 | #define HAVE_SYS_SOUNDCARD_H 1 | |
40412 | _ACEOF | |
a848cd7e | 40413 | |
d12aef51 VZ |
40414 | else |
40415 | DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia" | |
40416 | fi | |
9c112555 MW |
40417 | fi |
40418 | WITH_PLUGIN_SDL=0 | |
40419 | if test "$wxUSE_SOUND" = "yes"; then | |
40420 | if test "$USE_UNIX" = "1" ; then | |
a848cd7e SC |
40421 | if test "$wxUSE_LIBSDL" != "no"; then |
40422 | ||
40423 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. | |
40424 | if test "${with_sdl_prefix+set}" = set; then | |
40425 | withval="$with_sdl_prefix" | |
40426 | sdl_prefix="$withval" | |
40427 | else | |
40428 | sdl_prefix="" | |
40429 | fi; | |
40430 | ||
40431 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. | |
40432 | if test "${with_sdl_exec_prefix+set}" = set; then | |
40433 | withval="$with_sdl_exec_prefix" | |
40434 | sdl_exec_prefix="$withval" | |
40435 | else | |
40436 | sdl_exec_prefix="" | |
40437 | fi; | |
40438 | # Check whether --enable-sdltest or --disable-sdltest was given. | |
40439 | if test "${enable_sdltest+set}" = set; then | |
40440 | enableval="$enable_sdltest" | |
40441 | ||
40442 | else | |
40443 | enable_sdltest=yes | |
40444 | fi; | |
40445 | ||
40446 | if test x$sdl_exec_prefix != x ; then | |
40447 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" | |
40448 | if test x${SDL_CONFIG+set} != xset ; then | |
40449 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
40450 | fi | |
40451 | fi | |
40452 | if test x$sdl_prefix != x ; then | |
40453 | sdl_args="$sdl_args --prefix=$sdl_prefix" | |
40454 | if test x${SDL_CONFIG+set} != xset ; then | |
40455 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
40456 | fi | |
40457 | fi | |
40458 | ||
40459 | ||
40460 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
40461 | # Extract the first word of "sdl-config", so it can be a program name with args. | |
40462 | set dummy sdl-config; ac_word=$2 | |
40463 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40464 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40465 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then | |
40466 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40467 | else | |
40468 | case $SDL_CONFIG in | |
40469 | [\\/]* | ?:[\\/]*) | |
40470 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
40471 | ;; | |
40472 | *) | |
40473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40474 | for as_dir in $PATH | |
40475 | do | |
40476 | IFS=$as_save_IFS | |
40477 | test -z "$as_dir" && as_dir=. | |
40478 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40479 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40480 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
40481 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40482 | break 2 | |
40483 | fi | |
40484 | done | |
40485 | done | |
40486 | ||
40487 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
40488 | ;; | |
40489 | esac | |
40490 | fi | |
40491 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
40492 | ||
40493 | if test -n "$SDL_CONFIG"; then | |
40494 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 | |
40495 | echo "${ECHO_T}$SDL_CONFIG" >&6 | |
40496 | else | |
40497 | echo "$as_me:$LINENO: result: no" >&5 | |
40498 | echo "${ECHO_T}no" >&6 | |
40499 | fi | |
40500 | ||
40501 | min_sdl_version=1.2.0 | |
40502 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 | |
40503 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 | |
40504 | no_sdl="" | |
40505 | if test "$SDL_CONFIG" = "no" ; then | |
40506 | no_sdl=yes | |
40507 | else | |
40508 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
40509 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
40510 | ||
40511 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
40512 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
40513 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
40514 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
40515 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
40516 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
40517 | if test "x$enable_sdltest" = "xyes" ; then | |
40518 | ac_save_CFLAGS="$CFLAGS" | |
94acd38e | 40519 | ac_save_CXXFLAGS="$CXXFLAGS" |
a848cd7e SC |
40520 | ac_save_LIBS="$LIBS" |
40521 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 40522 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
40523 | LIBS="$LIBS $SDL_LIBS" |
40524 | rm -f conf.sdltest | |
40525 | if test "$cross_compiling" = yes; then | |
40526 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
40527 | else | |
40528 | cat >conftest.$ac_ext <<_ACEOF | |
40529 | /* confdefs.h. */ | |
40530 | _ACEOF | |
40531 | cat confdefs.h >>conftest.$ac_ext | |
40532 | cat >>conftest.$ac_ext <<_ACEOF | |
40533 | /* end confdefs.h. */ | |
40534 | ||
40535 | #include <stdio.h> | |
40536 | #include <stdlib.h> | |
40537 | #include <string.h> | |
40538 | #include "SDL.h" | |
40539 | ||
40540 | char* | |
40541 | my_strdup (char *str) | |
40542 | { | |
40543 | char *new_str; | |
40544 | ||
40545 | if (str) | |
40546 | { | |
40547 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
40548 | strcpy (new_str, str); | |
40549 | } | |
40550 | else | |
40551 | new_str = NULL; | |
40552 | ||
40553 | return new_str; | |
40554 | } | |
40555 | ||
40556 | int main (int argc, char *argv[]) | |
40557 | { | |
40558 | int major, minor, micro; | |
40559 | char *tmp_version; | |
40560 | ||
40561 | /* This hangs on some systems (?) | |
40562 | system ("touch conf.sdltest"); | |
40563 | */ | |
40564 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
40565 | ||
40566 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
40567 | tmp_version = my_strdup("$min_sdl_version"); | |
40568 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
40569 | printf("%s, bad version string\n", "$min_sdl_version"); | |
40570 | exit(1); | |
40571 | } | |
40572 | ||
40573 | if (($sdl_major_version > major) || | |
40574 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
40575 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
40576 | { | |
40577 | return 0; | |
40578 | } | |
40579 | else | |
40580 | { | |
40581 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
40582 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
40583 | printf("*** best to upgrade to the required version.\n"); | |
40584 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
40585 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
40586 | printf("*** config.cache before re-running configure\n"); | |
40587 | return 1; | |
40588 | } | |
40589 | } | |
40590 | ||
40591 | ||
40592 | _ACEOF | |
40593 | rm -f conftest$ac_exeext | |
40594 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
40595 | (eval $ac_link) 2>&5 | |
40596 | ac_status=$? | |
40597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40598 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
40599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40600 | (eval $ac_try) 2>&5 | |
40601 | ac_status=$? | |
40602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40603 | (exit $ac_status); }; }; then | |
40604 | : | |
40605 | else | |
40606 | echo "$as_me: program exited with status $ac_status" >&5 | |
40607 | echo "$as_me: failed program was:" >&5 | |
40608 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40609 | ||
40610 | ( exit $ac_status ) | |
40611 | no_sdl=yes | |
40612 | fi | |
ac1cb8d3 | 40613 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
40614 | fi |
40615 | CFLAGS="$ac_save_CFLAGS" | |
94acd38e | 40616 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
40617 | LIBS="$ac_save_LIBS" |
40618 | fi | |
40619 | fi | |
40620 | if test "x$no_sdl" = x ; then | |
40621 | echo "$as_me:$LINENO: result: yes" >&5 | |
40622 | echo "${ECHO_T}yes" >&6 | |
40623 | ||
40624 | EXTRALIBS_SDL="$SDL_LIBS" | |
c92ad099 | 40625 | CXXFLAGS="$SDL_CFLAGS $CXXFLAGS" |
a848cd7e SC |
40626 | cat >>confdefs.h <<\_ACEOF |
40627 | #define wxUSE_LIBSDL 1 | |
40628 | _ACEOF | |
40629 | ||
40630 | ||
40631 | else | |
40632 | echo "$as_me:$LINENO: result: no" >&5 | |
40633 | echo "${ECHO_T}no" >&6 | |
40634 | if test "$SDL_CONFIG" = "no" ; then | |
40635 | echo "*** The sdl-config script installed by SDL could not be found" | |
40636 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
40637 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
40638 | echo "*** full path to sdl-config." | |
40639 | else | |
40640 | if test -f conf.sdltest ; then | |
40641 | : | |
40642 | else | |
40643 | echo "*** Could not run SDL test program, checking why..." | |
40644 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
94acd38e | 40645 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" |
a848cd7e SC |
40646 | LIBS="$LIBS $SDL_LIBS" |
40647 | cat >conftest.$ac_ext <<_ACEOF | |
40648 | /* confdefs.h. */ | |
40649 | _ACEOF | |
40650 | cat confdefs.h >>conftest.$ac_ext | |
40651 | cat >>conftest.$ac_ext <<_ACEOF | |
40652 | /* end confdefs.h. */ | |
40653 | ||
40654 | #include <stdio.h> | |
40655 | #include "SDL.h" | |
40656 | ||
40657 | int main(int argc, char *argv[]) | |
40658 | { return 0; } | |
40659 | #undef main | |
40660 | #define main K_and_R_C_main | |
40661 | ||
40662 | int | |
40663 | main () | |
40664 | { | |
40665 | return 0; | |
40666 | ; | |
40667 | return 0; | |
40668 | } | |
40669 | _ACEOF | |
40670 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40671 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 40672 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 40673 | ac_status=$? |
ac1cb8d3 VS |
40674 | grep -v '^ *+' conftest.er1 >conftest.err |
40675 | rm -f conftest.er1 | |
40676 | cat conftest.err >&5 | |
a848cd7e SC |
40677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40678 | (exit $ac_status); } && | |
3565d135 RR |
40679 | { ac_try='test -z "$ac_c_werror_flag" |
40680 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
40681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40682 | (eval $ac_try) 2>&5 | |
40683 | ac_status=$? | |
40684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40685 | (exit $ac_status); }; } && | |
40686 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
40687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40688 | (eval $ac_try) 2>&5 | |
40689 | ac_status=$? | |
40690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40691 | (exit $ac_status); }; }; then | |
40692 | echo "*** The test program compiled, but did not run. This usually means" | |
40693 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
40694 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
40695 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
40696 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
40697 | echo "*** is required on your system" | |
40698 | echo "***" | |
40699 | echo "*** If you have an old version installed, it is best to remove it, although" | |
40700 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
40701 | else | |
40702 | echo "$as_me: failed program was:" >&5 | |
40703 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40704 | ||
40705 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
40706 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
40707 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
40708 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
40709 | fi | |
ac1cb8d3 VS |
40710 | rm -f conftest.err conftest.$ac_objext \ |
40711 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e | 40712 | CFLAGS="$ac_save_CFLAGS" |
94acd38e | 40713 | CXXFLAGS="$ac_save_CXXFLAGS" |
a848cd7e SC |
40714 | LIBS="$ac_save_LIBS" |
40715 | fi | |
40716 | fi | |
40717 | SDL_CFLAGS="" | |
40718 | SDL_LIBS="" | |
40719 | wxUSE_LIBSDL="no" | |
40720 | fi | |
40721 | ||
40722 | ||
40723 | rm -f conf.sdltest | |
40724 | ||
40725 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
40726 | WITH_PLUGIN_SDL=1 | |
40727 | fi | |
40728 | fi | |
40729 | fi | |
40730 | ||
40731 | cat >>confdefs.h <<\_ACEOF | |
40732 | #define wxUSE_SOUND 1 | |
40733 | _ACEOF | |
40734 | ||
40735 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
40736 | fi | |
40737 | ||
d1c38808 VZ |
40738 | if test "$WXGTK20" = 1; then |
40739 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
40740 | if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then | |
40741 | ||
40742 | ||
40743 | succeeded=no | |
40744 | ||
40745 | if test -z "$PKG_CONFIG"; then | |
40746 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
40747 | set dummy pkg-config; ac_word=$2 | |
40748 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40749 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40750 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
40751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40752 | else | |
40753 | case $PKG_CONFIG in | |
40754 | [\\/]* | ?:[\\/]*) | |
40755 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
40756 | ;; | |
40757 | *) | |
40758 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40759 | for as_dir in $PATH | |
40760 | do | |
40761 | IFS=$as_save_IFS | |
40762 | test -z "$as_dir" && as_dir=. | |
40763 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40764 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40765 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
40766 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40767 | break 2 | |
40768 | fi | |
40769 | done | |
40770 | done | |
40771 | ||
40772 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
40773 | ;; | |
40774 | esac | |
40775 | fi | |
40776 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
40777 | ||
40778 | if test -n "$PKG_CONFIG"; then | |
40779 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
40780 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
40781 | else | |
40782 | echo "$as_me:$LINENO: result: no" >&5 | |
40783 | echo "${ECHO_T}no" >&6 | |
40784 | fi | |
40785 | ||
40786 | fi | |
40787 | ||
40788 | if test "$PKG_CONFIG" = "no" ; then | |
40789 | echo "*** The pkg-config script could not be found. Make sure it is" | |
40790 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
40791 | echo "*** to the full path to pkg-config." | |
40792 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
40793 | else | |
40794 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
40795 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
ffa762ff VS |
40796 | echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5 |
40797 | echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6 | |
d1c38808 | 40798 | |
ffa762ff | 40799 | if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then |
d1c38808 VZ |
40800 | echo "$as_me:$LINENO: result: yes" >&5 |
40801 | echo "${ECHO_T}yes" >&6 | |
40802 | succeeded=yes | |
40803 | ||
40804 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5 | |
40805 | echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6 | |
ffa762ff | 40806 | LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
40807 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5 |
40808 | echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6 | |
40809 | ||
40810 | echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5 | |
40811 | echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6 | |
ffa762ff | 40812 | LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
40813 | echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5 |
40814 | echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6 | |
40815 | else | |
40816 | LIBGNOMEPRINTUI_CFLAGS="" | |
40817 | LIBGNOMEPRINTUI_LIBS="" | |
40818 | ## If we have a custom action on failure, don't print errors, but | |
40819 | ## do set a variable so people can do so. | |
ffa762ff | 40820 | LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"` |
d1c38808 VZ |
40821 | |
40822 | fi | |
40823 | ||
40824 | ||
40825 | ||
40826 | else | |
40827 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
40828 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
40829 | fi | |
40830 | fi | |
40831 | ||
40832 | if test $succeeded = yes; then | |
40833 | ||
c92ad099 | 40834 | CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS" |
d1c38808 VZ |
40835 | cat >>confdefs.h <<\_ACEOF |
40836 | #define wxUSE_LIBGNOMEPRINT 1 | |
40837 | _ACEOF | |
40838 | ||
40839 | ||
40840 | else | |
40841 | ||
40842 | { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5 | |
40843 | echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;} | |
40844 | wxUSE_LIBGNOMEPRINT="no" | |
40845 | ||
40846 | ||
40847 | fi | |
40848 | ||
40849 | fi | |
40850 | fi | |
40851 | fi | |
40852 | ||
3565d135 RR |
40853 | if test "$WXGTK20" = 1; then |
40854 | if test "$wxUSE_LIBHILDON" = "yes" ; then | |
40855 | ||
40856 | succeeded=no | |
40857 | ||
40858 | if test -z "$PKG_CONFIG"; then | |
40859 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
40860 | set dummy pkg-config; ac_word=$2 | |
40861 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
40862 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
40863 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
40864 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40865 | else | |
40866 | case $PKG_CONFIG in | |
40867 | [\\/]* | ?:[\\/]*) | |
40868 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
40869 | ;; | |
40870 | *) | |
40871 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
40872 | for as_dir in $PATH | |
40873 | do | |
40874 | IFS=$as_save_IFS | |
40875 | test -z "$as_dir" && as_dir=. | |
40876 | for ac_exec_ext in '' $ac_executable_extensions; do | |
40877 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
40878 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
40879 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
40880 | break 2 | |
40881 | fi | |
40882 | done | |
40883 | done | |
40884 | ||
40885 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
40886 | ;; | |
40887 | esac | |
40888 | fi | |
40889 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
40890 | ||
40891 | if test -n "$PKG_CONFIG"; then | |
40892 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
40893 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
40894 | else | |
40895 | echo "$as_me:$LINENO: result: no" >&5 | |
40896 | echo "${ECHO_T}no" >&6 | |
40897 | fi | |
40898 | ||
40899 | fi | |
40900 | ||
40901 | if test "$PKG_CONFIG" = "no" ; then | |
40902 | echo "*** The pkg-config script could not be found. Make sure it is" | |
40903 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
40904 | echo "*** to the full path to pkg-config." | |
40905 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
40906 | else | |
40907 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
40908 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
40909 | echo "$as_me:$LINENO: checking for hildon-lgpl >= 0.9" >&5 | |
40910 | echo $ECHO_N "checking for hildon-lgpl >= 0.9... $ECHO_C" >&6 | |
40911 | ||
40912 | if $PKG_CONFIG --exists "hildon-lgpl >= 0.9" ; then | |
40913 | echo "$as_me:$LINENO: result: yes" >&5 | |
40914 | echo "${ECHO_T}yes" >&6 | |
40915 | succeeded=yes | |
40916 | ||
40917 | echo "$as_me:$LINENO: checking HILDON_CFLAGS" >&5 | |
40918 | echo $ECHO_N "checking HILDON_CFLAGS... $ECHO_C" >&6 | |
40919 | HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9"` | |
40920 | echo "$as_me:$LINENO: result: $HILDON_CFLAGS" >&5 | |
40921 | echo "${ECHO_T}$HILDON_CFLAGS" >&6 | |
40922 | ||
40923 | echo "$as_me:$LINENO: checking HILDON_LIBS" >&5 | |
40924 | echo $ECHO_N "checking HILDON_LIBS... $ECHO_C" >&6 | |
40925 | HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9"` | |
40926 | echo "$as_me:$LINENO: result: $HILDON_LIBS" >&5 | |
40927 | echo "${ECHO_T}$HILDON_LIBS" >&6 | |
40928 | else | |
40929 | HILDON_CFLAGS="" | |
40930 | HILDON_LIBS="" | |
40931 | ## If we have a custom action on failure, don't print errors, but | |
40932 | ## do set a variable so people can do so. | |
40933 | HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"` | |
40934 | ||
40935 | fi | |
40936 | ||
40937 | ||
40938 | ||
40939 | else | |
40940 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
40941 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
40942 | fi | |
40943 | fi | |
40944 | ||
40945 | if test $succeeded = yes; then | |
40946 | ||
40947 | EXTRALIBS_HILDON="$HILDON_LIBS" | |
40948 | CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS" | |
40949 | cat >>confdefs.h <<\_ACEOF | |
40950 | #define wxUSE_LIBHILDON 1 | |
40951 | _ACEOF | |
40952 | ||
40953 | ||
40954 | else | |
40955 | ||
40956 | { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5 | |
40957 | echo "$as_me: WARNING: libhildon_lgpl not found" >&2;} | |
40958 | wxUSE_LIBHILDON="no" | |
40959 | ||
40960 | ||
40961 | fi | |
40962 | ||
40963 | fi | |
40964 | fi | |
d1c38808 | 40965 | |
a848cd7e SC |
40966 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
40967 | cat >>confdefs.h <<\_ACEOF | |
40968 | #define wxUSE_CMDLINE_PARSER 1 | |
40969 | _ACEOF | |
40970 | ||
40971 | fi | |
40972 | ||
40973 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
40974 | cat >>confdefs.h <<\_ACEOF | |
40975 | #define wxUSE_STOPWATCH 1 | |
40976 | _ACEOF | |
40977 | ||
40978 | fi | |
40979 | ||
40980 | if test "$wxUSE_DATETIME" = "yes"; then | |
40981 | cat >>confdefs.h <<\_ACEOF | |
40982 | #define wxUSE_DATETIME 1 | |
40983 | _ACEOF | |
40984 | ||
40985 | fi | |
40986 | ||
40987 | if test "$wxUSE_FILE" = "yes"; then | |
40988 | cat >>confdefs.h <<\_ACEOF | |
40989 | #define wxUSE_FILE 1 | |
40990 | _ACEOF | |
40991 | ||
40992 | fi | |
40993 | ||
40994 | if test "$wxUSE_FFILE" = "yes"; then | |
40995 | cat >>confdefs.h <<\_ACEOF | |
40996 | #define wxUSE_FFILE 1 | |
40997 | _ACEOF | |
40998 | ||
40999 | fi | |
41000 | ||
41001 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
41002 | cat >>confdefs.h <<\_ACEOF | |
41003 | #define wxUSE_FILESYSTEM 1 | |
41004 | _ACEOF | |
41005 | ||
41006 | fi | |
41007 | ||
41008 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
41009 | cat >>confdefs.h <<\_ACEOF | |
41010 | #define wxUSE_FS_ZIP 1 | |
41011 | _ACEOF | |
41012 | ||
41013 | fi | |
41014 | ||
9e8e867f | 41015 | if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then |
a848cd7e | 41016 | cat >>confdefs.h <<\_ACEOF |
9e8e867f | 41017 | #define wxUSE_ARCHIVE_STREAMS 1 |
81f90336 MW |
41018 | _ACEOF |
41019 | ||
41020 | fi | |
41021 | ||
41022 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
9e8e867f | 41023 | if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then |
81f90336 MW |
41024 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5 |
41025 | echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;} | |
41026 | elif test "$wxUSE_ZLIB" = "no"; then | |
41027 | { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5 | |
41028 | echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;} | |
41029 | else | |
41030 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
41031 | #define wxUSE_ZIPSTREAM 1 |
41032 | _ACEOF | |
41033 | ||
81f90336 | 41034 | fi |
a848cd7e SC |
41035 | fi |
41036 | ||
a848cd7e | 41037 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
18228ab4 MW |
41038 | if test "$USE_UNIX" != 1; then |
41039 | { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5 | |
41040 | echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;} | |
41041 | wxUSE_ON_FATAL_EXCEPTION=no | |
41042 | else | |
41043 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
41044 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
41045 | _ACEOF | |
41046 | ||
18228ab4 | 41047 | fi |
a848cd7e SC |
41048 | fi |
41049 | ||
eaff0f0d VZ |
41050 | if test "$wxUSE_STACKWALKER" = "yes"; then |
41051 | cat >>confdefs.h <<\_ACEOF | |
41052 | #define wxUSE_STACKWALKER 1 | |
41053 | _ACEOF | |
41054 | ||
41055 | fi | |
41056 | ||
36b6448c | 41057 | if test "$wxUSE_DEBUGREPORT" = "yes"; then |
18228ab4 MW |
41058 | if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then |
41059 | { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5 | |
41060 | echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;} | |
dfe0c803 JS |
41061 | wxUSE_DEBUGREPORT=no |
41062 | else | |
41063 | cat >>confdefs.h <<\_ACEOF | |
36b6448c VZ |
41064 | #define wxUSE_DEBUGREPORT 1 |
41065 | _ACEOF | |
41066 | ||
21dfc162 MW |
41067 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
41068 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt" | |
41069 | fi | |
dfe0c803 | 41070 | fi |
36b6448c VZ |
41071 | fi |
41072 | ||
a848cd7e SC |
41073 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
41074 | cat >>confdefs.h <<\_ACEOF | |
41075 | #define wxUSE_SNGLINST_CHECKER 1 | |
41076 | _ACEOF | |
41077 | ||
41078 | fi | |
41079 | ||
41080 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
41081 | cat >>confdefs.h <<\_ACEOF | |
41082 | #define wxUSE_BUSYINFO 1 | |
41083 | _ACEOF | |
41084 | ||
41085 | fi | |
41086 | ||
41087 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
41088 | cat >>confdefs.h <<\_ACEOF | |
41089 | #define wxUSE_STD_IOSTREAM 1 | |
41090 | _ACEOF | |
41091 | ||
41092 | fi | |
41093 | ||
59746b65 MW |
41094 | if test "$wxUSE_STD_STRING" = "yes"; then |
41095 | cat >>confdefs.h <<\_ACEOF | |
41096 | #define wxUSE_STD_STRING 1 | |
41097 | _ACEOF | |
41098 | ||
41099 | fi | |
41100 | ||
07158944 VZ |
41101 | if test "$wxUSE_STDPATHS" = "yes"; then |
41102 | cat >>confdefs.h <<\_ACEOF | |
41103 | #define wxUSE_STDPATHS 1 | |
41104 | _ACEOF | |
41105 | ||
41106 | fi | |
41107 | ||
a848cd7e SC |
41108 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
41109 | cat >>confdefs.h <<\_ACEOF | |
41110 | #define wxUSE_TEXTBUFFER 1 | |
41111 | _ACEOF | |
41112 | ||
41113 | fi | |
41114 | ||
41115 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
41116 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
41117 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
41118 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
41119 | else | |
41120 | cat >>confdefs.h <<\_ACEOF | |
41121 | #define wxUSE_TEXTFILE 1 | |
41122 | _ACEOF | |
41123 | ||
41124 | fi | |
41125 | fi | |
41126 | ||
41127 | if test "$wxUSE_CONFIG" = "yes" ; then | |
41128 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
41129 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
41130 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
41131 | else | |
41132 | cat >>confdefs.h <<\_ACEOF | |
41133 | #define wxUSE_CONFIG 1 | |
89be85c2 VS |
41134 | _ACEOF |
41135 | ||
41136 | cat >>confdefs.h <<\_ACEOF | |
41137 | #define wxUSE_CONFIG_NATIVE 1 | |
a848cd7e SC |
41138 | _ACEOF |
41139 | ||
41140 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
41141 | fi | |
41142 | fi | |
41143 | ||
41144 | if test "$wxUSE_INTL" = "yes" ; then | |
41145 | if test "$wxUSE_FILE" != "yes"; then | |
41146 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
41147 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
41148 | else | |
41149 | cat >>confdefs.h <<\_ACEOF | |
41150 | #define wxUSE_INTL 1 | |
41151 | _ACEOF | |
41152 | ||
41153 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
41154 | GUIDIST="$GUIDIST INTL_DIST" | |
41155 | fi | |
41156 | fi | |
41157 | ||
41158 | if test "$wxUSE_LOG" = "yes"; then | |
41159 | cat >>confdefs.h <<\_ACEOF | |
41160 | #define wxUSE_LOG 1 | |
41161 | _ACEOF | |
41162 | ||
41163 | ||
41164 | if test "$wxUSE_LOGGUI" = "yes"; then | |
41165 | cat >>confdefs.h <<\_ACEOF | |
41166 | #define wxUSE_LOGGUI 1 | |
41167 | _ACEOF | |
41168 | ||
41169 | fi | |
41170 | ||
41171 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
41172 | cat >>confdefs.h <<\_ACEOF | |
41173 | #define wxUSE_LOGWINDOW 1 | |
41174 | _ACEOF | |
41175 | ||
41176 | fi | |
41177 | ||
41178 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
41179 | cat >>confdefs.h <<\_ACEOF | |
41180 | #define wxUSE_LOG_DIALOG 1 | |
41181 | _ACEOF | |
41182 | ||
41183 | fi | |
0b78747f MW |
41184 | |
41185 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard" | |
a848cd7e SC |
41186 | fi |
41187 | ||
41188 | if test "$wxUSE_LONGLONG" = "yes"; then | |
41189 | cat >>confdefs.h <<\_ACEOF | |
41190 | #define wxUSE_LONGLONG 1 | |
41191 | _ACEOF | |
41192 | ||
41193 | fi | |
41194 | ||
41195 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
41196 | cat >>confdefs.h <<\_ACEOF | |
41197 | #define wxUSE_GEOMETRY 1 | |
41198 | _ACEOF | |
41199 | ||
41200 | fi | |
41201 | ||
a848cd7e SC |
41202 | if test "$wxUSE_STREAMS" = "yes" ; then |
41203 | cat >>confdefs.h <<\_ACEOF | |
41204 | #define wxUSE_STREAMS 1 | |
41205 | _ACEOF | |
41206 | ||
41207 | fi | |
41208 | ||
41209 | ||
41210 | if test "$wxUSE_DATETIME" = "yes"; then | |
41211 | ||
41212 | for ac_func in strptime | |
41213 | do | |
41214 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
41215 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
41216 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
41217 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
41218 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41219 | else | |
41220 | cat >conftest.$ac_ext <<_ACEOF | |
41221 | /* confdefs.h. */ | |
41222 | _ACEOF | |
41223 | cat confdefs.h >>conftest.$ac_ext | |
41224 | cat >>conftest.$ac_ext <<_ACEOF | |
41225 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
41226 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
41227 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
41228 | #define $ac_func innocuous_$ac_func | |
41229 | ||
a848cd7e SC |
41230 | /* System header to define __stub macros and hopefully few prototypes, |
41231 | which can conflict with char $ac_func (); below. | |
41232 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
41233 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 41234 | |
a848cd7e SC |
41235 | #ifdef __STDC__ |
41236 | # include <limits.h> | |
41237 | #else | |
41238 | # include <assert.h> | |
41239 | #endif | |
ac1cb8d3 VS |
41240 | |
41241 | #undef $ac_func | |
41242 | ||
a848cd7e SC |
41243 | /* Override any gcc2 internal prototype to avoid an error. */ |
41244 | #ifdef __cplusplus | |
41245 | extern "C" | |
41246 | { | |
41247 | #endif | |
41248 | /* We use char because int might match the return type of a gcc2 | |
41249 | builtin and then its argument prototype would still apply. */ | |
41250 | char $ac_func (); | |
41251 | /* The GNU C library defines this for functions which it implements | |
41252 | to always fail with ENOSYS. Some functions are actually named | |
41253 | something starting with __ and the normal name is an alias. */ | |
41254 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
41255 | choke me | |
41256 | #else | |
41257 | char (*f) () = $ac_func; | |
41258 | #endif | |
41259 | #ifdef __cplusplus | |
41260 | } | |
41261 | #endif | |
41262 | ||
41263 | int | |
41264 | main () | |
41265 | { | |
41266 | return f != $ac_func; | |
41267 | ; | |
41268 | return 0; | |
41269 | } | |
41270 | _ACEOF | |
41271 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41272 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 41273 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 41274 | ac_status=$? |
ac1cb8d3 VS |
41275 | grep -v '^ *+' conftest.er1 >conftest.err |
41276 | rm -f conftest.er1 | |
41277 | cat conftest.err >&5 | |
a848cd7e SC |
41278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41279 | (exit $ac_status); } && | |
3565d135 RR |
41280 | { ac_try='test -z "$ac_c_werror_flag" |
41281 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41283 | (eval $ac_try) 2>&5 | |
41284 | ac_status=$? | |
41285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41286 | (exit $ac_status); }; } && | |
41287 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
41288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41289 | (eval $ac_try) 2>&5 | |
41290 | ac_status=$? | |
41291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41292 | (exit $ac_status); }; }; then | |
41293 | eval "$as_ac_var=yes" | |
41294 | else | |
41295 | echo "$as_me: failed program was:" >&5 | |
41296 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41297 | ||
41298 | eval "$as_ac_var=no" | |
41299 | fi | |
ac1cb8d3 VS |
41300 | rm -f conftest.err conftest.$ac_objext \ |
41301 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
41302 | fi |
41303 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
41304 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
41305 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
41306 | cat >>confdefs.h <<_ACEOF | |
41307 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
41308 | _ACEOF | |
41309 | ||
41310 | fi | |
41311 | done | |
41312 | ||
f536f005 VZ |
41313 | if test "$ac_cv_func_strptime" = "yes"; then |
41314 | echo "$as_me:$LINENO: checking for strptime declaration" >&5 | |
41315 | echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6 | |
41316 | if test "${wx_cv_func_strptime_decl+set}" = set; then | |
41317 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41318 | else | |
41319 | ||
41320 | ||
41321 | ||
41322 | ac_ext=cc | |
41323 | ac_cpp='$CXXCPP $CPPFLAGS' | |
41324 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
41325 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
41326 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
41327 | ||
41328 | cat >conftest.$ac_ext <<_ACEOF | |
41329 | /* confdefs.h. */ | |
41330 | _ACEOF | |
41331 | cat confdefs.h >>conftest.$ac_ext | |
41332 | cat >>conftest.$ac_ext <<_ACEOF | |
41333 | /* end confdefs.h. */ | |
41334 | ||
41335 | #include <time.h> | |
41336 | ||
41337 | int | |
41338 | main () | |
41339 | { | |
41340 | ||
41341 | struct tm t; | |
41342 | strptime("foo", "bar", &t); | |
41343 | ||
41344 | ; | |
41345 | return 0; | |
41346 | } | |
41347 | _ACEOF | |
41348 | rm -f conftest.$ac_objext | |
41349 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
41350 | (eval $ac_compile) 2>conftest.er1 | |
41351 | ac_status=$? | |
41352 | grep -v '^ *+' conftest.er1 >conftest.err | |
41353 | rm -f conftest.er1 | |
41354 | cat conftest.err >&5 | |
41355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41356 | (exit $ac_status); } && | |
3565d135 RR |
41357 | { ac_try='test -z "$ac_cxx_werror_flag" |
41358 | || test ! -s conftest.err' | |
f536f005 VZ |
41359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41360 | (eval $ac_try) 2>&5 | |
41361 | ac_status=$? | |
41362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41363 | (exit $ac_status); }; } && | |
41364 | { ac_try='test -s conftest.$ac_objext' | |
41365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
41366 | (eval $ac_try) 2>&5 | |
41367 | ac_status=$? | |
41368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41369 | (exit $ac_status); }; }; then | |
41370 | wx_cv_func_strptime_decl=yes | |
41371 | else | |
41372 | echo "$as_me: failed program was:" >&5 | |
41373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41374 | ||
41375 | wx_cv_func_strptime_decl=no | |
41376 | ||
41377 | fi | |
41378 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
41379 | ac_ext=c | |
41380 | ac_cpp='$CPP $CPPFLAGS' | |
41381 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
41382 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
41383 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
41384 | ||
41385 | ||
41386 | ||
41387 | fi | |
41388 | echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5 | |
41389 | echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6 | |
41390 | fi | |
41391 | if test "$wx_cv_func_strptime_decl" = "yes"; then | |
41392 | cat >>confdefs.h <<\_ACEOF | |
41393 | #define HAVE_STRPTIME_DECL 1 | |
41394 | _ACEOF | |
41395 | ||
41396 | fi | |
a848cd7e SC |
41397 | |
41398 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
41399 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
41400 | if test "${wx_cv_var_timezone+set}" = set; then | |
41401 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41402 | else | |
41403 | ||
41404 | cat >conftest.$ac_ext <<_ACEOF | |
41405 | /* confdefs.h. */ | |
41406 | _ACEOF | |
41407 | cat confdefs.h >>conftest.$ac_ext | |
41408 | cat >>conftest.$ac_ext <<_ACEOF | |
41409 | /* end confdefs.h. */ | |
41410 | ||
41411 | #include <time.h> | |
41412 | ||
41413 | int | |
41414 | main () | |
41415 | { | |
41416 | ||
41417 | int tz; | |
41418 | tz = timezone; | |
41419 | ||
41420 | ; | |
41421 | return 0; | |
41422 | } | |
41423 | _ACEOF | |
41424 | rm -f conftest.$ac_objext | |
41425 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41426 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41427 | ac_status=$? |
ac1cb8d3 VS |
41428 | grep -v '^ *+' conftest.er1 >conftest.err |
41429 | rm -f conftest.er1 | |
41430 | cat conftest.err >&5 | |
a848cd7e SC |
41431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41432 | (exit $ac_status); } && | |
3565d135 RR |
41433 | { ac_try='test -z "$ac_c_werror_flag" |
41434 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41436 | (eval $ac_try) 2>&5 | |
41437 | ac_status=$? | |
41438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41439 | (exit $ac_status); }; } && | |
41440 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41442 | (eval $ac_try) 2>&5 | |
41443 | ac_status=$? | |
41444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41445 | (exit $ac_status); }; }; then | |
41446 | ||
41447 | wx_cv_var_timezone=timezone | |
41448 | ||
41449 | else | |
41450 | echo "$as_me: failed program was:" >&5 | |
41451 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41452 | ||
41453 | ||
41454 | cat >conftest.$ac_ext <<_ACEOF | |
41455 | /* confdefs.h. */ | |
41456 | _ACEOF | |
41457 | cat confdefs.h >>conftest.$ac_ext | |
41458 | cat >>conftest.$ac_ext <<_ACEOF | |
41459 | /* end confdefs.h. */ | |
41460 | ||
41461 | #include <time.h> | |
41462 | ||
41463 | int | |
41464 | main () | |
41465 | { | |
41466 | ||
41467 | int tz; | |
41468 | tz = _timezone; | |
41469 | ||
41470 | ; | |
41471 | return 0; | |
41472 | } | |
41473 | _ACEOF | |
41474 | rm -f conftest.$ac_objext | |
41475 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41476 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41477 | ac_status=$? |
ac1cb8d3 VS |
41478 | grep -v '^ *+' conftest.er1 >conftest.err |
41479 | rm -f conftest.er1 | |
41480 | cat conftest.err >&5 | |
a848cd7e SC |
41481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41482 | (exit $ac_status); } && | |
3565d135 RR |
41483 | { ac_try='test -z "$ac_c_werror_flag" |
41484 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41486 | (eval $ac_try) 2>&5 | |
41487 | ac_status=$? | |
41488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41489 | (exit $ac_status); }; } && | |
41490 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41492 | (eval $ac_try) 2>&5 | |
41493 | ac_status=$? | |
41494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41495 | (exit $ac_status); }; }; then | |
41496 | ||
41497 | wx_cv_var_timezone=_timezone | |
41498 | ||
41499 | else | |
41500 | echo "$as_me: failed program was:" >&5 | |
41501 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41502 | ||
41503 | ||
41504 | cat >conftest.$ac_ext <<_ACEOF | |
41505 | /* confdefs.h. */ | |
41506 | _ACEOF | |
41507 | cat confdefs.h >>conftest.$ac_ext | |
41508 | cat >>conftest.$ac_ext <<_ACEOF | |
41509 | /* end confdefs.h. */ | |
41510 | ||
41511 | #include <time.h> | |
41512 | ||
41513 | int | |
41514 | main () | |
41515 | { | |
41516 | ||
41517 | int tz; | |
41518 | tz = __timezone; | |
41519 | ||
41520 | ; | |
41521 | return 0; | |
41522 | } | |
41523 | _ACEOF | |
41524 | rm -f conftest.$ac_objext | |
41525 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41526 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41527 | ac_status=$? |
ac1cb8d3 VS |
41528 | grep -v '^ *+' conftest.er1 >conftest.err |
41529 | rm -f conftest.er1 | |
41530 | cat conftest.err >&5 | |
a848cd7e SC |
41531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41532 | (exit $ac_status); } && | |
3565d135 RR |
41533 | { ac_try='test -z "$ac_c_werror_flag" |
41534 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41536 | (eval $ac_try) 2>&5 | |
41537 | ac_status=$? | |
41538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41539 | (exit $ac_status); }; } && | |
41540 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41542 | (eval $ac_try) 2>&5 | |
41543 | ac_status=$? | |
41544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41545 | (exit $ac_status); }; }; then | |
41546 | ||
41547 | wx_cv_var_timezone=__timezone | |
41548 | ||
41549 | else | |
41550 | echo "$as_me: failed program was:" >&5 | |
41551 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41552 | ||
41553 | ||
41554 | if test "$USE_DOS" = 0 ; then | |
41555 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
41556 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
41557 | fi | |
41558 | ||
41559 | ||
41560 | fi | |
ac1cb8d3 | 41561 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41562 | |
41563 | ||
41564 | fi | |
ac1cb8d3 | 41565 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41566 | |
41567 | ||
41568 | fi | |
ac1cb8d3 | 41569 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41570 | |
41571 | ||
41572 | fi | |
41573 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
41574 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
41575 | ||
41576 | if test "x$wx_cv_var_timezone" != x ; then | |
41577 | cat >>confdefs.h <<_ACEOF | |
41578 | #define WX_TIMEZONE $wx_cv_var_timezone | |
41579 | _ACEOF | |
41580 | ||
41581 | fi | |
41582 | ||
41583 | ||
41584 | for ac_func in localtime | |
41585 | do | |
41586 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
41587 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
41588 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
41589 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
41590 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41591 | else | |
41592 | cat >conftest.$ac_ext <<_ACEOF | |
41593 | /* confdefs.h. */ | |
41594 | _ACEOF | |
41595 | cat confdefs.h >>conftest.$ac_ext | |
41596 | cat >>conftest.$ac_ext <<_ACEOF | |
41597 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
41598 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
41599 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
41600 | #define $ac_func innocuous_$ac_func | |
41601 | ||
a848cd7e SC |
41602 | /* System header to define __stub macros and hopefully few prototypes, |
41603 | which can conflict with char $ac_func (); below. | |
41604 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
41605 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 41606 | |
a848cd7e SC |
41607 | #ifdef __STDC__ |
41608 | # include <limits.h> | |
41609 | #else | |
41610 | # include <assert.h> | |
41611 | #endif | |
ac1cb8d3 VS |
41612 | |
41613 | #undef $ac_func | |
41614 | ||
a848cd7e SC |
41615 | /* Override any gcc2 internal prototype to avoid an error. */ |
41616 | #ifdef __cplusplus | |
41617 | extern "C" | |
41618 | { | |
41619 | #endif | |
41620 | /* We use char because int might match the return type of a gcc2 | |
41621 | builtin and then its argument prototype would still apply. */ | |
41622 | char $ac_func (); | |
41623 | /* The GNU C library defines this for functions which it implements | |
41624 | to always fail with ENOSYS. Some functions are actually named | |
41625 | something starting with __ and the normal name is an alias. */ | |
41626 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
41627 | choke me | |
41628 | #else | |
41629 | char (*f) () = $ac_func; | |
41630 | #endif | |
41631 | #ifdef __cplusplus | |
41632 | } | |
41633 | #endif | |
41634 | ||
41635 | int | |
41636 | main () | |
41637 | { | |
41638 | return f != $ac_func; | |
41639 | ; | |
41640 | return 0; | |
41641 | } | |
41642 | _ACEOF | |
41643 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41644 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 41645 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 41646 | ac_status=$? |
ac1cb8d3 VS |
41647 | grep -v '^ *+' conftest.er1 >conftest.err |
41648 | rm -f conftest.er1 | |
41649 | cat conftest.err >&5 | |
a848cd7e SC |
41650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41651 | (exit $ac_status); } && | |
3565d135 RR |
41652 | { ac_try='test -z "$ac_c_werror_flag" |
41653 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41655 | (eval $ac_try) 2>&5 | |
41656 | ac_status=$? | |
41657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41658 | (exit $ac_status); }; } && | |
41659 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
41660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41661 | (eval $ac_try) 2>&5 | |
41662 | ac_status=$? | |
41663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41664 | (exit $ac_status); }; }; then | |
41665 | eval "$as_ac_var=yes" | |
41666 | else | |
41667 | echo "$as_me: failed program was:" >&5 | |
41668 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41669 | ||
41670 | eval "$as_ac_var=no" | |
41671 | fi | |
ac1cb8d3 VS |
41672 | rm -f conftest.err conftest.$ac_objext \ |
41673 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
41674 | fi |
41675 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
41676 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
41677 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
41678 | cat >>confdefs.h <<_ACEOF | |
41679 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
41680 | _ACEOF | |
41681 | ||
41682 | fi | |
41683 | done | |
41684 | ||
41685 | ||
41686 | if test "$ac_cv_func_localtime" = "yes"; then | |
41687 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
41688 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
41689 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
41690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41691 | else | |
41692 | ||
41693 | cat >conftest.$ac_ext <<_ACEOF | |
41694 | /* confdefs.h. */ | |
41695 | _ACEOF | |
41696 | cat confdefs.h >>conftest.$ac_ext | |
41697 | cat >>conftest.$ac_ext <<_ACEOF | |
41698 | /* end confdefs.h. */ | |
41699 | ||
41700 | #include <time.h> | |
41701 | ||
41702 | int | |
41703 | main () | |
41704 | { | |
41705 | ||
41706 | struct tm tm; | |
41707 | tm.tm_gmtoff++; | |
41708 | ||
41709 | ; | |
41710 | return 0; | |
41711 | } | |
41712 | _ACEOF | |
41713 | rm -f conftest.$ac_objext | |
41714 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41715 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41716 | ac_status=$? |
ac1cb8d3 VS |
41717 | grep -v '^ *+' conftest.er1 >conftest.err |
41718 | rm -f conftest.er1 | |
41719 | cat conftest.err >&5 | |
a848cd7e SC |
41720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41721 | (exit $ac_status); } && | |
3565d135 RR |
41722 | { ac_try='test -z "$ac_c_werror_flag" |
41723 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41725 | (eval $ac_try) 2>&5 | |
41726 | ac_status=$? | |
41727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41728 | (exit $ac_status); }; } && | |
41729 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41731 | (eval $ac_try) 2>&5 | |
41732 | ac_status=$? | |
41733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41734 | (exit $ac_status); }; }; then | |
41735 | ||
41736 | wx_cv_struct_tm_has_gmtoff=yes | |
41737 | ||
41738 | else | |
41739 | echo "$as_me: failed program was:" >&5 | |
41740 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41741 | ||
41742 | wx_cv_struct_tm_has_gmtoff=no | |
41743 | ||
41744 | fi | |
ac1cb8d3 | 41745 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41746 | |
41747 | fi | |
41748 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
41749 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
41750 | fi | |
41751 | ||
41752 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
41753 | cat >>confdefs.h <<\_ACEOF | |
41754 | #define WX_GMTOFF_IN_TM 1 | |
41755 | _ACEOF | |
41756 | ||
41757 | fi | |
41758 | ||
41759 | ||
41760 | ||
41761 | for ac_func in gettimeofday ftime | |
41762 | do | |
41763 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
41764 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
41765 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
41766 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
41767 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41768 | else | |
41769 | cat >conftest.$ac_ext <<_ACEOF | |
41770 | /* confdefs.h. */ | |
41771 | _ACEOF | |
41772 | cat confdefs.h >>conftest.$ac_ext | |
41773 | cat >>conftest.$ac_ext <<_ACEOF | |
41774 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
41775 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
41776 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
41777 | #define $ac_func innocuous_$ac_func | |
41778 | ||
a848cd7e SC |
41779 | /* System header to define __stub macros and hopefully few prototypes, |
41780 | which can conflict with char $ac_func (); below. | |
41781 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
41782 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 41783 | |
a848cd7e SC |
41784 | #ifdef __STDC__ |
41785 | # include <limits.h> | |
41786 | #else | |
41787 | # include <assert.h> | |
41788 | #endif | |
ac1cb8d3 VS |
41789 | |
41790 | #undef $ac_func | |
41791 | ||
a848cd7e SC |
41792 | /* Override any gcc2 internal prototype to avoid an error. */ |
41793 | #ifdef __cplusplus | |
41794 | extern "C" | |
41795 | { | |
41796 | #endif | |
41797 | /* We use char because int might match the return type of a gcc2 | |
41798 | builtin and then its argument prototype would still apply. */ | |
41799 | char $ac_func (); | |
41800 | /* The GNU C library defines this for functions which it implements | |
41801 | to always fail with ENOSYS. Some functions are actually named | |
41802 | something starting with __ and the normal name is an alias. */ | |
41803 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
41804 | choke me | |
41805 | #else | |
41806 | char (*f) () = $ac_func; | |
41807 | #endif | |
41808 | #ifdef __cplusplus | |
41809 | } | |
41810 | #endif | |
41811 | ||
41812 | int | |
41813 | main () | |
41814 | { | |
41815 | return f != $ac_func; | |
41816 | ; | |
41817 | return 0; | |
41818 | } | |
41819 | _ACEOF | |
41820 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41821 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 41822 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 41823 | ac_status=$? |
ac1cb8d3 VS |
41824 | grep -v '^ *+' conftest.er1 >conftest.err |
41825 | rm -f conftest.er1 | |
41826 | cat conftest.err >&5 | |
a848cd7e SC |
41827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41828 | (exit $ac_status); } && | |
3565d135 RR |
41829 | { ac_try='test -z "$ac_c_werror_flag" |
41830 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41832 | (eval $ac_try) 2>&5 | |
41833 | ac_status=$? | |
41834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41835 | (exit $ac_status); }; } && | |
41836 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
41837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41838 | (eval $ac_try) 2>&5 | |
41839 | ac_status=$? | |
41840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41841 | (exit $ac_status); }; }; then | |
41842 | eval "$as_ac_var=yes" | |
41843 | else | |
41844 | echo "$as_me: failed program was:" >&5 | |
41845 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41846 | ||
41847 | eval "$as_ac_var=no" | |
41848 | fi | |
ac1cb8d3 VS |
41849 | rm -f conftest.err conftest.$ac_objext \ |
41850 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
41851 | fi |
41852 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
41853 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
41854 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
41855 | cat >>confdefs.h <<_ACEOF | |
41856 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
41857 | _ACEOF | |
41858 | break | |
41859 | fi | |
41860 | done | |
41861 | ||
41862 | ||
41863 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
41864 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
41865 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
41866 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
41867 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41868 | else | |
41869 | ||
41870 | ||
41871 | ||
41872 | ac_ext=cc | |
41873 | ac_cpp='$CXXCPP $CPPFLAGS' | |
41874 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
41875 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
41876 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
41877 | ||
41878 | ||
41879 | cat >conftest.$ac_ext <<_ACEOF | |
41880 | /* confdefs.h. */ | |
41881 | _ACEOF | |
41882 | cat confdefs.h >>conftest.$ac_ext | |
41883 | cat >>conftest.$ac_ext <<_ACEOF | |
41884 | /* end confdefs.h. */ | |
41885 | ||
41886 | #include <sys/time.h> | |
41887 | #include <unistd.h> | |
41888 | ||
41889 | int | |
41890 | main () | |
41891 | { | |
41892 | ||
41893 | struct timeval tv; | |
41894 | gettimeofday(&tv, NULL); | |
41895 | ||
41896 | ; | |
41897 | return 0; | |
41898 | } | |
41899 | _ACEOF | |
41900 | rm -f conftest.$ac_objext | |
41901 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41902 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41903 | ac_status=$? |
ac1cb8d3 VS |
41904 | grep -v '^ *+' conftest.er1 >conftest.err |
41905 | rm -f conftest.er1 | |
41906 | cat conftest.err >&5 | |
a848cd7e SC |
41907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41908 | (exit $ac_status); } && | |
3565d135 RR |
41909 | { ac_try='test -z "$ac_cxx_werror_flag" |
41910 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41912 | (eval $ac_try) 2>&5 | |
41913 | ac_status=$? | |
41914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41915 | (exit $ac_status); }; } && | |
41916 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41918 | (eval $ac_try) 2>&5 | |
41919 | ac_status=$? | |
41920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41921 | (exit $ac_status); }; }; then | |
41922 | wx_cv_func_gettimeofday_has_2_args=yes | |
41923 | else | |
41924 | echo "$as_me: failed program was:" >&5 | |
41925 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41926 | ||
41927 | cat >conftest.$ac_ext <<_ACEOF | |
41928 | /* confdefs.h. */ | |
41929 | _ACEOF | |
41930 | cat confdefs.h >>conftest.$ac_ext | |
41931 | cat >>conftest.$ac_ext <<_ACEOF | |
41932 | /* end confdefs.h. */ | |
41933 | ||
41934 | #include <sys/time.h> | |
41935 | #include <unistd.h> | |
41936 | ||
41937 | int | |
41938 | main () | |
41939 | { | |
41940 | ||
41941 | struct timeval tv; | |
41942 | gettimeofday(&tv); | |
41943 | ||
41944 | ; | |
41945 | return 0; | |
41946 | } | |
41947 | _ACEOF | |
41948 | rm -f conftest.$ac_objext | |
41949 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 41950 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 41951 | ac_status=$? |
ac1cb8d3 VS |
41952 | grep -v '^ *+' conftest.er1 >conftest.err |
41953 | rm -f conftest.er1 | |
41954 | cat conftest.err >&5 | |
a848cd7e SC |
41955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41956 | (exit $ac_status); } && | |
3565d135 RR |
41957 | { ac_try='test -z "$ac_cxx_werror_flag" |
41958 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
41959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41960 | (eval $ac_try) 2>&5 | |
41961 | ac_status=$? | |
41962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41963 | (exit $ac_status); }; } && | |
41964 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
41965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41966 | (eval $ac_try) 2>&5 | |
41967 | ac_status=$? | |
41968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41969 | (exit $ac_status); }; }; then | |
41970 | wx_cv_func_gettimeofday_has_2_args=no | |
41971 | else | |
41972 | echo "$as_me: failed program was:" >&5 | |
41973 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41974 | ||
41975 | ||
41976 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
41977 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
41978 | wx_cv_func_gettimeofday_has_2_args=unknown | |
41979 | ||
41980 | ||
41981 | fi | |
ac1cb8d3 | 41982 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41983 | |
41984 | fi | |
ac1cb8d3 | 41985 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
41986 | ac_ext=c |
41987 | ac_cpp='$CPP $CPPFLAGS' | |
41988 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
41989 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
41990 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
41991 | ||
41992 | ||
41993 | fi | |
41994 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
41995 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
41996 | ||
41997 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
41998 | cat >>confdefs.h <<\_ACEOF | |
41999 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
42000 | _ACEOF | |
42001 | ||
42002 | fi | |
42003 | fi | |
42004 | ||
42005 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
42006 | fi | |
42007 | ||
42008 | ||
42009 | if test "$wxUSE_SOCKETS" = "yes"; then | |
42010 | if test "$wxUSE_MGL" = "1"; then | |
42011 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
42012 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
42013 | wxUSE_SOCKETS="no" | |
42014 | fi | |
42015 | fi | |
42016 | ||
42017 | if test "$wxUSE_SOCKETS" = "yes"; then | |
42018 | if test "$TOOLKIT" != "MSW"; then | |
42019 | echo "$as_me:$LINENO: checking for socket" >&5 | |
42020 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
42021 | if test "${ac_cv_func_socket+set}" = set; then | |
42022 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42023 | else | |
42024 | cat >conftest.$ac_ext <<_ACEOF | |
42025 | /* confdefs.h. */ | |
42026 | _ACEOF | |
42027 | cat confdefs.h >>conftest.$ac_ext | |
42028 | cat >>conftest.$ac_ext <<_ACEOF | |
42029 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
42030 | /* Define socket to an innocuous variant, in case <limits.h> declares socket. |
42031 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
42032 | #define socket innocuous_socket | |
42033 | ||
a848cd7e SC |
42034 | /* System header to define __stub macros and hopefully few prototypes, |
42035 | which can conflict with char socket (); below. | |
42036 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
42037 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 42038 | |
a848cd7e SC |
42039 | #ifdef __STDC__ |
42040 | # include <limits.h> | |
42041 | #else | |
42042 | # include <assert.h> | |
42043 | #endif | |
ac1cb8d3 VS |
42044 | |
42045 | #undef socket | |
42046 | ||
a848cd7e SC |
42047 | /* Override any gcc2 internal prototype to avoid an error. */ |
42048 | #ifdef __cplusplus | |
42049 | extern "C" | |
42050 | { | |
42051 | #endif | |
42052 | /* We use char because int might match the return type of a gcc2 | |
42053 | builtin and then its argument prototype would still apply. */ | |
42054 | char socket (); | |
42055 | /* The GNU C library defines this for functions which it implements | |
42056 | to always fail with ENOSYS. Some functions are actually named | |
42057 | something starting with __ and the normal name is an alias. */ | |
42058 | #if defined (__stub_socket) || defined (__stub___socket) | |
42059 | choke me | |
42060 | #else | |
42061 | char (*f) () = socket; | |
42062 | #endif | |
42063 | #ifdef __cplusplus | |
42064 | } | |
42065 | #endif | |
42066 | ||
42067 | int | |
42068 | main () | |
42069 | { | |
42070 | return f != socket; | |
42071 | ; | |
42072 | return 0; | |
42073 | } | |
42074 | _ACEOF | |
42075 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42076 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42077 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42078 | ac_status=$? |
ac1cb8d3 VS |
42079 | grep -v '^ *+' conftest.er1 >conftest.err |
42080 | rm -f conftest.er1 | |
42081 | cat conftest.err >&5 | |
a848cd7e SC |
42082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42083 | (exit $ac_status); } && | |
3565d135 RR |
42084 | { ac_try='test -z "$ac_c_werror_flag" |
42085 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42087 | (eval $ac_try) 2>&5 | |
42088 | ac_status=$? | |
42089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42090 | (exit $ac_status); }; } && | |
42091 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42093 | (eval $ac_try) 2>&5 | |
42094 | ac_status=$? | |
42095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42096 | (exit $ac_status); }; }; then | |
42097 | ac_cv_func_socket=yes | |
42098 | else | |
42099 | echo "$as_me: failed program was:" >&5 | |
42100 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42101 | ||
42102 | ac_cv_func_socket=no | |
42103 | fi | |
ac1cb8d3 VS |
42104 | rm -f conftest.err conftest.$ac_objext \ |
42105 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42106 | fi |
42107 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
42108 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
42109 | if test $ac_cv_func_socket = yes; then | |
42110 | : | |
42111 | else | |
42112 | ||
42113 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
42114 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
42115 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
42116 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42117 | else | |
42118 | ac_check_lib_save_LIBS=$LIBS | |
42119 | LIBS="-lsocket $LIBS" | |
42120 | cat >conftest.$ac_ext <<_ACEOF | |
42121 | /* confdefs.h. */ | |
42122 | _ACEOF | |
42123 | cat confdefs.h >>conftest.$ac_ext | |
42124 | cat >>conftest.$ac_ext <<_ACEOF | |
42125 | /* end confdefs.h. */ | |
42126 | ||
42127 | /* Override any gcc2 internal prototype to avoid an error. */ | |
42128 | #ifdef __cplusplus | |
42129 | extern "C" | |
42130 | #endif | |
42131 | /* We use char because int might match the return type of a gcc2 | |
42132 | builtin and then its argument prototype would still apply. */ | |
42133 | char socket (); | |
42134 | int | |
42135 | main () | |
42136 | { | |
42137 | socket (); | |
42138 | ; | |
42139 | return 0; | |
42140 | } | |
42141 | _ACEOF | |
42142 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42143 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42144 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42145 | ac_status=$? |
ac1cb8d3 VS |
42146 | grep -v '^ *+' conftest.er1 >conftest.err |
42147 | rm -f conftest.er1 | |
42148 | cat conftest.err >&5 | |
a848cd7e SC |
42149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42150 | (exit $ac_status); } && | |
3565d135 RR |
42151 | { ac_try='test -z "$ac_c_werror_flag" |
42152 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42154 | (eval $ac_try) 2>&5 | |
42155 | ac_status=$? | |
42156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42157 | (exit $ac_status); }; } && | |
42158 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42160 | (eval $ac_try) 2>&5 | |
42161 | ac_status=$? | |
42162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42163 | (exit $ac_status); }; }; then | |
42164 | ac_cv_lib_socket_socket=yes | |
42165 | else | |
42166 | echo "$as_me: failed program was:" >&5 | |
42167 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42168 | ||
42169 | ac_cv_lib_socket_socket=no | |
42170 | fi | |
ac1cb8d3 VS |
42171 | rm -f conftest.err conftest.$ac_objext \ |
42172 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42173 | LIBS=$ac_check_lib_save_LIBS |
42174 | fi | |
42175 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
42176 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
42177 | if test $ac_cv_lib_socket_socket = yes; then | |
42178 | if test "$INET_LINK" != " -lsocket"; then | |
42179 | INET_LINK="$INET_LINK -lsocket" | |
42180 | fi | |
42181 | else | |
42182 | ||
42183 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
42184 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
42185 | wxUSE_SOCKETS=no | |
42186 | ||
42187 | ||
42188 | fi | |
42189 | ||
42190 | ||
42191 | ||
42192 | fi | |
42193 | ||
42194 | fi | |
42195 | fi | |
42196 | ||
42197 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
42198 | if test "$TOOLKIT" != "MSW"; then | |
4d4ff94c VZ |
42199 | ac_ext=cc |
42200 | ac_cpp='$CXXCPP $CPPFLAGS' | |
42201 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
42202 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
42203 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
42204 | ||
42205 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 | |
a848cd7e SC |
42206 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 |
42207 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
42208 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42209 | else | |
42210 | ||
42211 | cat >conftest.$ac_ext <<_ACEOF | |
42212 | /* confdefs.h. */ | |
42213 | _ACEOF | |
42214 | cat confdefs.h >>conftest.$ac_ext | |
42215 | cat >>conftest.$ac_ext <<_ACEOF | |
42216 | /* end confdefs.h. */ | |
42217 | ||
42218 | #include <sys/types.h> | |
42219 | #include <sys/socket.h> | |
42220 | ||
42221 | int | |
42222 | main () | |
42223 | { | |
42224 | ||
42225 | socklen_t len; | |
42226 | getsockname(0, 0, &len); | |
42227 | ||
42228 | ; | |
42229 | return 0; | |
42230 | } | |
42231 | _ACEOF | |
42232 | rm -f conftest.$ac_objext | |
42233 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42234 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42235 | ac_status=$? |
ac1cb8d3 VS |
42236 | grep -v '^ *+' conftest.er1 >conftest.err |
42237 | rm -f conftest.er1 | |
42238 | cat conftest.err >&5 | |
a848cd7e SC |
42239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42240 | (exit $ac_status); } && | |
3565d135 RR |
42241 | { ac_try='test -z "$ac_cxx_werror_flag" |
42242 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42244 | (eval $ac_try) 2>&5 | |
42245 | ac_status=$? | |
42246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42247 | (exit $ac_status); }; } && | |
42248 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42250 | (eval $ac_try) 2>&5 | |
42251 | ac_status=$? | |
42252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42253 | (exit $ac_status); }; }; then | |
42254 | wx_cv_type_getsockname3=socklen_t | |
42255 | else | |
42256 | echo "$as_me: failed program was:" >&5 | |
42257 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42258 | ||
42259 | ||
6459a506 | 42260 | CXXFLAGS_OLD="$CXXFLAGS" |
a848cd7e | 42261 | if test "$GCC" = yes ; then |
c92ad099 | 42262 | CXXFLAGS="-Werror $CXXFLAGS" |
a848cd7e SC |
42263 | fi |
42264 | ||
42265 | cat >conftest.$ac_ext <<_ACEOF | |
42266 | /* confdefs.h. */ | |
42267 | _ACEOF | |
42268 | cat confdefs.h >>conftest.$ac_ext | |
42269 | cat >>conftest.$ac_ext <<_ACEOF | |
42270 | /* end confdefs.h. */ | |
42271 | ||
42272 | #include <sys/types.h> | |
42273 | #include <sys/socket.h> | |
42274 | ||
42275 | int | |
42276 | main () | |
42277 | { | |
42278 | ||
42279 | size_t len; | |
42280 | getsockname(0, 0, &len); | |
42281 | ||
42282 | ; | |
42283 | return 0; | |
42284 | } | |
42285 | _ACEOF | |
42286 | rm -f conftest.$ac_objext | |
42287 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42288 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42289 | ac_status=$? |
ac1cb8d3 VS |
42290 | grep -v '^ *+' conftest.er1 >conftest.err |
42291 | rm -f conftest.er1 | |
42292 | cat conftest.err >&5 | |
a848cd7e SC |
42293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42294 | (exit $ac_status); } && | |
3565d135 RR |
42295 | { ac_try='test -z "$ac_cxx_werror_flag" |
42296 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42298 | (eval $ac_try) 2>&5 | |
42299 | ac_status=$? | |
42300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42301 | (exit $ac_status); }; } && | |
42302 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42304 | (eval $ac_try) 2>&5 | |
42305 | ac_status=$? | |
42306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42307 | (exit $ac_status); }; }; then | |
42308 | wx_cv_type_getsockname3=size_t | |
42309 | else | |
42310 | echo "$as_me: failed program was:" >&5 | |
42311 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42312 | ||
42313 | cat >conftest.$ac_ext <<_ACEOF | |
42314 | /* confdefs.h. */ | |
42315 | _ACEOF | |
42316 | cat confdefs.h >>conftest.$ac_ext | |
42317 | cat >>conftest.$ac_ext <<_ACEOF | |
42318 | /* end confdefs.h. */ | |
42319 | ||
42320 | #include <sys/types.h> | |
42321 | #include <sys/socket.h> | |
42322 | ||
42323 | int | |
42324 | main () | |
42325 | { | |
42326 | ||
42327 | int len; | |
42328 | getsockname(0, 0, &len); | |
42329 | ||
42330 | ; | |
42331 | return 0; | |
42332 | } | |
42333 | _ACEOF | |
42334 | rm -f conftest.$ac_objext | |
42335 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42336 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42337 | ac_status=$? |
ac1cb8d3 VS |
42338 | grep -v '^ *+' conftest.er1 >conftest.err |
42339 | rm -f conftest.er1 | |
42340 | cat conftest.err >&5 | |
a848cd7e SC |
42341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42342 | (exit $ac_status); } && | |
3565d135 RR |
42343 | { ac_try='test -z "$ac_cxx_werror_flag" |
42344 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42346 | (eval $ac_try) 2>&5 | |
42347 | ac_status=$? | |
42348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42349 | (exit $ac_status); }; } && | |
42350 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42352 | (eval $ac_try) 2>&5 | |
42353 | ac_status=$? | |
42354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42355 | (exit $ac_status); }; }; then | |
42356 | wx_cv_type_getsockname3=int | |
42357 | else | |
42358 | echo "$as_me: failed program was:" >&5 | |
42359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42360 | ||
42361 | wx_cv_type_getsockname3=unknown | |
42362 | ||
42363 | fi | |
ac1cb8d3 | 42364 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42365 | |
42366 | fi | |
ac1cb8d3 | 42367 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 42368 | |
6459a506 | 42369 | CXXFLAGS="$CXXFLAGS_OLD" |
a848cd7e SC |
42370 | |
42371 | ||
42372 | fi | |
ac1cb8d3 | 42373 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42374 | |
42375 | fi | |
42376 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
42377 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
42378 | ||
42379 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
42380 | wxUSE_SOCKETS=no | |
42381 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
42382 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
42383 | else | |
42384 | cat >>confdefs.h <<_ACEOF | |
9e03e02d | 42385 | #define WX_SOCKLEN_T $wx_cv_type_getsockname3 |
5b674b9d DE |
42386 | _ACEOF |
42387 | ||
42388 | fi | |
42389 | echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5 | |
42390 | echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6 | |
42391 | if test "${wx_cv_type_getsockopt5+set}" = set; then | |
42392 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42393 | else | |
42394 | ||
42395 | cat >conftest.$ac_ext <<_ACEOF | |
42396 | /* confdefs.h. */ | |
42397 | _ACEOF | |
42398 | cat confdefs.h >>conftest.$ac_ext | |
42399 | cat >>conftest.$ac_ext <<_ACEOF | |
42400 | /* end confdefs.h. */ | |
42401 | ||
42402 | #include <sys/types.h> | |
42403 | #include <sys/socket.h> | |
42404 | ||
42405 | int | |
42406 | main () | |
42407 | { | |
42408 | ||
42409 | socklen_t len; | |
42410 | getsockopt(0, 0, 0, 0, &len); | |
42411 | ||
42412 | ; | |
42413 | return 0; | |
42414 | } | |
42415 | _ACEOF | |
42416 | rm -f conftest.$ac_objext | |
42417 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
42418 | (eval $ac_compile) 2>conftest.er1 | |
42419 | ac_status=$? | |
42420 | grep -v '^ *+' conftest.er1 >conftest.err | |
42421 | rm -f conftest.er1 | |
42422 | cat conftest.err >&5 | |
42423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42424 | (exit $ac_status); } && | |
3565d135 RR |
42425 | { ac_try='test -z "$ac_cxx_werror_flag" |
42426 | || test ! -s conftest.err' | |
5b674b9d DE |
42427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42428 | (eval $ac_try) 2>&5 | |
42429 | ac_status=$? | |
42430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42431 | (exit $ac_status); }; } && | |
42432 | { ac_try='test -s conftest.$ac_objext' | |
42433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42434 | (eval $ac_try) 2>&5 | |
42435 | ac_status=$? | |
42436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42437 | (exit $ac_status); }; }; then | |
42438 | wx_cv_type_getsockopt5=socklen_t | |
42439 | else | |
42440 | echo "$as_me: failed program was:" >&5 | |
42441 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42442 | ||
42443 | ||
6459a506 | 42444 | CXXFLAGS_OLD="$CXXFLAGS" |
5b674b9d | 42445 | if test "$GCC" = yes ; then |
c92ad099 | 42446 | CXXFLAGS="-Werror $CXXFLAGS" |
5b674b9d DE |
42447 | fi |
42448 | ||
42449 | cat >conftest.$ac_ext <<_ACEOF | |
42450 | /* confdefs.h. */ | |
42451 | _ACEOF | |
42452 | cat confdefs.h >>conftest.$ac_ext | |
42453 | cat >>conftest.$ac_ext <<_ACEOF | |
42454 | /* end confdefs.h. */ | |
42455 | ||
42456 | #include <sys/types.h> | |
42457 | #include <sys/socket.h> | |
42458 | ||
42459 | int | |
42460 | main () | |
42461 | { | |
42462 | ||
42463 | size_t len; | |
42464 | getsockopt(0, 0, 0, 0, &len); | |
42465 | ||
42466 | ; | |
42467 | return 0; | |
42468 | } | |
42469 | _ACEOF | |
42470 | rm -f conftest.$ac_objext | |
42471 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
42472 | (eval $ac_compile) 2>conftest.er1 | |
42473 | ac_status=$? | |
42474 | grep -v '^ *+' conftest.er1 >conftest.err | |
42475 | rm -f conftest.er1 | |
42476 | cat conftest.err >&5 | |
42477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42478 | (exit $ac_status); } && | |
3565d135 RR |
42479 | { ac_try='test -z "$ac_cxx_werror_flag" |
42480 | || test ! -s conftest.err' | |
5b674b9d DE |
42481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42482 | (eval $ac_try) 2>&5 | |
42483 | ac_status=$? | |
42484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42485 | (exit $ac_status); }; } && | |
42486 | { ac_try='test -s conftest.$ac_objext' | |
42487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42488 | (eval $ac_try) 2>&5 | |
42489 | ac_status=$? | |
42490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42491 | (exit $ac_status); }; }; then | |
42492 | wx_cv_type_getsockopt5=size_t | |
42493 | else | |
42494 | echo "$as_me: failed program was:" >&5 | |
42495 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42496 | ||
42497 | cat >conftest.$ac_ext <<_ACEOF | |
42498 | /* confdefs.h. */ | |
42499 | _ACEOF | |
42500 | cat confdefs.h >>conftest.$ac_ext | |
42501 | cat >>conftest.$ac_ext <<_ACEOF | |
42502 | /* end confdefs.h. */ | |
42503 | ||
42504 | #include <sys/types.h> | |
42505 | #include <sys/socket.h> | |
42506 | ||
42507 | int | |
42508 | main () | |
42509 | { | |
42510 | ||
42511 | int len; | |
42512 | getsockopt(0, 0, 0, 0, &len); | |
42513 | ||
42514 | ; | |
42515 | return 0; | |
42516 | } | |
42517 | _ACEOF | |
42518 | rm -f conftest.$ac_objext | |
42519 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
42520 | (eval $ac_compile) 2>conftest.er1 | |
42521 | ac_status=$? | |
42522 | grep -v '^ *+' conftest.er1 >conftest.err | |
42523 | rm -f conftest.er1 | |
42524 | cat conftest.err >&5 | |
42525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42526 | (exit $ac_status); } && | |
3565d135 RR |
42527 | { ac_try='test -z "$ac_cxx_werror_flag" |
42528 | || test ! -s conftest.err' | |
5b674b9d DE |
42529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42530 | (eval $ac_try) 2>&5 | |
42531 | ac_status=$? | |
42532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42533 | (exit $ac_status); }; } && | |
42534 | { ac_try='test -s conftest.$ac_objext' | |
42535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42536 | (eval $ac_try) 2>&5 | |
42537 | ac_status=$? | |
42538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42539 | (exit $ac_status); }; }; then | |
42540 | wx_cv_type_getsockopt5=int | |
42541 | else | |
42542 | echo "$as_me: failed program was:" >&5 | |
42543 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42544 | ||
42545 | wx_cv_type_getsockopt5=unknown | |
42546 | ||
42547 | fi | |
42548 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
42549 | ||
42550 | fi | |
42551 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
42552 | ||
6459a506 | 42553 | CXXFLAGS="$CXXFLAGS_OLD" |
5b674b9d DE |
42554 | |
42555 | ||
42556 | fi | |
42557 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
42558 | ||
42559 | fi | |
42560 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5 | |
42561 | echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6 | |
42562 | ||
42563 | if test "$wx_cv_type_getsockopt5" = "unknown"; then | |
42564 | wxUSE_SOCKETS=no | |
42565 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
42566 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
42567 | else | |
42568 | cat >>confdefs.h <<_ACEOF | |
42569 | #define SOCKOPTLEN_T $wx_cv_type_getsockopt5 | |
a848cd7e SC |
42570 | _ACEOF |
42571 | ||
42572 | fi | |
4d4ff94c VZ |
42573 | ac_ext=c |
42574 | ac_cpp='$CPP $CPPFLAGS' | |
42575 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
42576 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
42577 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
42578 | ||
a848cd7e SC |
42579 | fi |
42580 | fi | |
42581 | ||
42582 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
42583 | cat >>confdefs.h <<\_ACEOF | |
42584 | #define wxUSE_SOCKETS 1 | |
42585 | _ACEOF | |
42586 | ||
42587 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
42588 | fi | |
42589 | ||
42590 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
42591 | if test "$wxUSE_SOCKETS" != "yes"; then | |
42592 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
42593 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
42594 | wxUSE_PROTOCOL=no | |
42595 | fi | |
42596 | fi | |
42597 | ||
42598 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
42599 | cat >>confdefs.h <<\_ACEOF | |
42600 | #define wxUSE_PROTOCOL 1 | |
42601 | _ACEOF | |
42602 | ||
42603 | ||
42604 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
42605 | cat >>confdefs.h <<\_ACEOF | |
42606 | #define wxUSE_PROTOCOL_HTTP 1 | |
42607 | _ACEOF | |
42608 | ||
42609 | fi | |
42610 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
42611 | cat >>confdefs.h <<\_ACEOF | |
42612 | #define wxUSE_PROTOCOL_FTP 1 | |
42613 | _ACEOF | |
42614 | ||
42615 | fi | |
42616 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
42617 | cat >>confdefs.h <<\_ACEOF | |
42618 | #define wxUSE_PROTOCOL_FILE 1 | |
42619 | _ACEOF | |
42620 | ||
42621 | fi | |
42622 | else | |
42623 | if test "$wxUSE_FS_INET" = "yes"; then | |
42624 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
42625 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
42626 | wxUSE_FS_INET="no" | |
42627 | fi | |
42628 | fi | |
42629 | ||
42630 | if test "$wxUSE_URL" = "yes"; then | |
42631 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
42632 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
42633 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
42634 | wxUSE_URL=no | |
42635 | fi | |
42636 | if test "$wxUSE_URL" = "yes"; then | |
42637 | cat >>confdefs.h <<\_ACEOF | |
42638 | #define wxUSE_URL 1 | |
42639 | _ACEOF | |
42640 | ||
42641 | fi | |
42642 | fi | |
42643 | ||
42644 | if test "$wxUSE_FS_INET" = "yes"; then | |
42645 | cat >>confdefs.h <<\_ACEOF | |
42646 | #define wxUSE_FS_INET 1 | |
42647 | _ACEOF | |
42648 | ||
42649 | fi | |
42650 | ||
42651 | ||
ee45c548 MW |
42652 | if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then |
42653 | wxUSE_JOYSTICK=no | |
42654 | ||
42655 | if test "$TOOLKIT" = "MSW"; then | |
42656 | wxUSE_JOYSTICK=yes | |
42657 | ||
42658 | elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then | |
42659 | if test "$USE_DARWIN" = 1; then | |
42660 | echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5 | |
42661 | echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6 | |
42662 | ac_ext=cc | |
42663 | ac_cpp='$CXXCPP $CPPFLAGS' | |
42664 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
42665 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
42666 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
42667 | ||
42668 | cat >conftest.$ac_ext <<_ACEOF | |
42669 | /* confdefs.h. */ | |
42670 | _ACEOF | |
42671 | cat confdefs.h >>conftest.$ac_ext | |
42672 | cat >>conftest.$ac_ext <<_ACEOF | |
42673 | /* end confdefs.h. */ | |
42674 | #include <IOKit/hid/IOHIDLib.h> | |
42675 | int | |
42676 | main () | |
42677 | { | |
42678 | IOHIDQueueInterface *qi = NULL; | |
42679 | IOHIDCallbackFunction cb = NULL; | |
42680 | qi->setEventCallout(NULL, cb, NULL, NULL); | |
42681 | ; | |
42682 | return 0; | |
42683 | } | |
42684 | _ACEOF | |
42685 | rm -f conftest.$ac_objext | |
42686 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
42687 | (eval $ac_compile) 2>conftest.er1 | |
42688 | ac_status=$? | |
42689 | grep -v '^ *+' conftest.er1 >conftest.err | |
42690 | rm -f conftest.er1 | |
42691 | cat conftest.err >&5 | |
42692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42693 | (exit $ac_status); } && | |
3565d135 RR |
42694 | { ac_try='test -z "$ac_cxx_werror_flag" |
42695 | || test ! -s conftest.err' | |
ee45c548 MW |
42696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42697 | (eval $ac_try) 2>&5 | |
42698 | ac_status=$? | |
42699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42700 | (exit $ac_status); }; } && | |
42701 | { ac_try='test -s conftest.$ac_objext' | |
42702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42703 | (eval $ac_try) 2>&5 | |
42704 | ac_status=$? | |
42705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42706 | (exit $ac_status); }; }; then | |
42707 | wxUSE_JOYSTICK=yes | |
a848cd7e | 42708 | |
ee45c548 MW |
42709 | else |
42710 | echo "$as_me: failed program was:" >&5 | |
42711 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42712 | ||
42713 | fi | |
42714 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
42715 | ac_ext=c | |
42716 | ac_cpp='$CPP $CPPFLAGS' | |
42717 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
42718 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
42719 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
42720 | ||
42721 | echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5 | |
42722 | echo "${ECHO_T}$wxUSE_JOYSTICK" >&6 | |
42723 | fi | |
42724 | ||
42725 | else | |
a848cd7e SC |
42726 | |
42727 | for ac_header in linux/joystick.h | |
42728 | do | |
42729 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
42730 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
42731 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
42732 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
42733 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
42734 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42735 | fi | |
42736 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
42737 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
42738 | else | |
42739 | # Is the header compilable? | |
42740 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
42741 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
42742 | cat >conftest.$ac_ext <<_ACEOF | |
42743 | /* confdefs.h. */ | |
42744 | _ACEOF | |
42745 | cat confdefs.h >>conftest.$ac_ext | |
42746 | cat >>conftest.$ac_ext <<_ACEOF | |
42747 | /* end confdefs.h. */ | |
42748 | $ac_includes_default | |
42749 | #include <$ac_header> | |
42750 | _ACEOF | |
42751 | rm -f conftest.$ac_objext | |
42752 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 42753 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 42754 | ac_status=$? |
ac1cb8d3 VS |
42755 | grep -v '^ *+' conftest.er1 >conftest.err |
42756 | rm -f conftest.er1 | |
42757 | cat conftest.err >&5 | |
a848cd7e SC |
42758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42759 | (exit $ac_status); } && | |
3565d135 RR |
42760 | { ac_try='test -z "$ac_c_werror_flag" |
42761 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42763 | (eval $ac_try) 2>&5 | |
42764 | ac_status=$? | |
42765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42766 | (exit $ac_status); }; } && | |
42767 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
42768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42769 | (eval $ac_try) 2>&5 | |
42770 | ac_status=$? | |
42771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42772 | (exit $ac_status); }; }; then | |
42773 | ac_header_compiler=yes | |
42774 | else | |
42775 | echo "$as_me: failed program was:" >&5 | |
42776 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42777 | ||
42778 | ac_header_compiler=no | |
42779 | fi | |
ac1cb8d3 | 42780 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
42781 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
42782 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
42783 | ||
42784 | # Is the header present? | |
42785 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
42786 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
42787 | cat >conftest.$ac_ext <<_ACEOF | |
42788 | /* confdefs.h. */ | |
42789 | _ACEOF | |
42790 | cat confdefs.h >>conftest.$ac_ext | |
42791 | cat >>conftest.$ac_ext <<_ACEOF | |
42792 | /* end confdefs.h. */ | |
42793 | #include <$ac_header> | |
42794 | _ACEOF | |
42795 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
42796 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
42797 | ac_status=$? | |
42798 | grep -v '^ *+' conftest.er1 >conftest.err | |
42799 | rm -f conftest.er1 | |
42800 | cat conftest.err >&5 | |
42801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42802 | (exit $ac_status); } >/dev/null; then | |
42803 | if test -s conftest.err; then | |
42804 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 42805 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
42806 | else |
42807 | ac_cpp_err= | |
42808 | fi | |
42809 | else | |
42810 | ac_cpp_err=yes | |
42811 | fi | |
42812 | if test -z "$ac_cpp_err"; then | |
42813 | ac_header_preproc=yes | |
42814 | else | |
42815 | echo "$as_me: failed program was:" >&5 | |
42816 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42817 | ||
42818 | ac_header_preproc=no | |
42819 | fi | |
42820 | rm -f conftest.err conftest.$ac_ext | |
42821 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
42822 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
42823 | ||
42824 | # So? What about this header? | |
ac1cb8d3 VS |
42825 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
42826 | yes:no: ) | |
a848cd7e SC |
42827 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
42828 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
42829 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
42830 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
42831 | ac_header_preproc=yes | |
a848cd7e | 42832 | ;; |
ac1cb8d3 | 42833 | no:yes:* ) |
a848cd7e SC |
42834 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
42835 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
42836 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
42837 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
42838 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
42839 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
42840 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
42841 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
42842 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
42843 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
42844 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
42845 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
42846 | ( |
42847 | cat <<\_ASBOX | |
ac1cb8d3 VS |
42848 | ## ----------------------------------------- ## |
42849 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
42850 | ## ----------------------------------------- ## | |
a848cd7e SC |
42851 | _ASBOX |
42852 | ) | | |
42853 | sed "s/^/$as_me: WARNING: /" >&2 | |
42854 | ;; | |
42855 | esac | |
42856 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
42857 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
42858 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
42859 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42860 | else | |
ac1cb8d3 | 42861 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
42862 | fi |
42863 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
42864 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
42865 | ||
42866 | fi | |
42867 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
42868 | cat >>confdefs.h <<_ACEOF | |
42869 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
42870 | _ACEOF | |
ee45c548 | 42871 | wxUSE_JOYSTICK=yes |
a848cd7e SC |
42872 | fi |
42873 | ||
42874 | done | |
42875 | ||
ee45c548 | 42876 | fi |
4cb1d3da | 42877 | |
ee45c548 MW |
42878 | if test "$wxUSE_JOYSTICK" = "yes"; then |
42879 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
42880 | #define wxUSE_JOYSTICK 1 |
42881 | _ACEOF | |
42882 | ||
ee45c548 MW |
42883 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
42884 | else | |
42885 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
42886 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
a848cd7e SC |
42887 | fi |
42888 | fi | |
42889 | ||
42890 | ||
42891 | ||
42892 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
42893 | cat >>confdefs.h <<\_ACEOF | |
42894 | #define wxUSE_FONTMAP 1 | |
42895 | _ACEOF | |
42896 | ||
42897 | fi | |
42898 | ||
42899 | if test "$wxUSE_UNICODE" = "yes" ; then | |
42900 | cat >>confdefs.h <<\_ACEOF | |
42901 | #define wxUSE_UNICODE 1 | |
42902 | _ACEOF | |
42903 | ||
42904 | ||
42905 | if test "$USE_WIN32" != 1; then | |
42906 | wxUSE_UNICODE_MSLU=no | |
42907 | fi | |
42908 | ||
42909 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
42910 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 | |
42911 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
42912 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
42913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42914 | else | |
42915 | ac_check_lib_save_LIBS=$LIBS | |
42916 | LIBS="-lunicows $LIBS" | |
42917 | cat >conftest.$ac_ext <<_ACEOF | |
42918 | /* confdefs.h. */ | |
42919 | _ACEOF | |
42920 | cat confdefs.h >>conftest.$ac_ext | |
42921 | cat >>conftest.$ac_ext <<_ACEOF | |
42922 | /* end confdefs.h. */ | |
42923 | ||
42924 | ||
42925 | int | |
42926 | main () | |
42927 | { | |
42928 | main (); | |
42929 | ; | |
42930 | return 0; | |
42931 | } | |
42932 | _ACEOF | |
42933 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42934 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 42935 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 42936 | ac_status=$? |
ac1cb8d3 VS |
42937 | grep -v '^ *+' conftest.er1 >conftest.err |
42938 | rm -f conftest.er1 | |
42939 | cat conftest.err >&5 | |
a848cd7e SC |
42940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42941 | (exit $ac_status); } && | |
3565d135 RR |
42942 | { ac_try='test -z "$ac_c_werror_flag" |
42943 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
42944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42945 | (eval $ac_try) 2>&5 | |
42946 | ac_status=$? | |
42947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42948 | (exit $ac_status); }; } && | |
42949 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
42950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42951 | (eval $ac_try) 2>&5 | |
42952 | ac_status=$? | |
42953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42954 | (exit $ac_status); }; }; then | |
42955 | ac_cv_lib_unicows_main=yes | |
42956 | else | |
42957 | echo "$as_me: failed program was:" >&5 | |
42958 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42959 | ||
42960 | ac_cv_lib_unicows_main=no | |
42961 | fi | |
ac1cb8d3 VS |
42962 | rm -f conftest.err conftest.$ac_objext \ |
42963 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
42964 | LIBS=$ac_check_lib_save_LIBS |
42965 | fi | |
42966 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
42967 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
42968 | if test $ac_cv_lib_unicows_main = yes; then | |
42969 | ||
42970 | cat >>confdefs.h <<\_ACEOF | |
42971 | #define wxUSE_UNICODE_MSLU 1 | |
42972 | _ACEOF | |
42973 | ||
42974 | ||
42975 | else | |
42976 | ||
42977 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
42978 | Applications will only run on Windows NT/2000/XP!" >&5 | |
42979 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
42980 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
42981 | wxUSE_UNICODE_MSLU=no | |
42982 | ||
42983 | fi | |
42984 | ||
42985 | fi | |
42986 | fi | |
42987 | ||
42988 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
42989 | cat >>confdefs.h <<\_ACEOF | |
42990 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
42991 | _ACEOF | |
42992 | ||
42993 | fi | |
42994 | ||
42995 | ||
42996 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
42997 | cat >>confdefs.h <<\_ACEOF | |
42998 | #define wxUSE_POSTSCRIPT 1 | |
42999 | _ACEOF | |
43000 | ||
43001 | fi | |
43002 | ||
43003 | cat >>confdefs.h <<\_ACEOF | |
43004 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
43005 | _ACEOF | |
43006 | ||
43007 | ||
43008 | cat >>confdefs.h <<\_ACEOF | |
43009 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
43010 | _ACEOF | |
43011 | ||
43012 | ||
43013 | ||
43014 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
43015 | cat >>confdefs.h <<\_ACEOF | |
43016 | #define wxUSE_CONSTRAINTS 1 | |
43017 | _ACEOF | |
43018 | ||
43019 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
43020 | fi | |
43021 | ||
8a7b1113 VZ |
43022 | if test "$wxUSE_MDI" = "yes"; then |
43023 | cat >>confdefs.h <<\_ACEOF | |
43024 | #define wxUSE_MDI 1 | |
43025 | _ACEOF | |
43026 | ||
43027 | ||
43028 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
43029 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
43030 | #define wxUSE_MDI_ARCHITECTURE 1 |
43031 | _ACEOF | |
43032 | ||
8a7b1113 VZ |
43033 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
43034 | fi | |
a848cd7e SC |
43035 | fi |
43036 | ||
43037 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
43038 | cat >>confdefs.h <<\_ACEOF | |
43039 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
43040 | _ACEOF | |
43041 | ||
43042 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
43043 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
43044 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
43045 | fi | |
43046 | fi | |
43047 | ||
43048 | if test "$wxUSE_HELP" = "yes"; then | |
43049 | cat >>confdefs.h <<\_ACEOF | |
43050 | #define wxUSE_HELP 1 | |
43051 | _ACEOF | |
43052 | ||
43053 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
43054 | ||
43055 | if test "$wxUSE_MSW" = 1; then | |
43056 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
43057 | cat >>confdefs.h <<\_ACEOF | |
43058 | #define wxUSE_MS_HTML_HELP 1 | |
43059 | _ACEOF | |
43060 | ||
43061 | fi | |
43062 | fi | |
43063 | ||
43064 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
43065 | if test "$wxUSE_HTML" = "yes"; then | |
43066 | cat >>confdefs.h <<\_ACEOF | |
43067 | #define wxUSE_WXHTML_HELP 1 | |
43068 | _ACEOF | |
43069 | ||
43070 | else | |
43071 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 | |
43072 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
43073 | wxUSE_WXHTML_HELP=no | |
43074 | fi | |
43075 | fi | |
43076 | fi | |
43077 | ||
43078 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
43079 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
43080 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 | |
43081 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
43082 | else | |
43083 | cat >>confdefs.h <<\_ACEOF | |
43084 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
43085 | _ACEOF | |
43086 | ||
43087 | fi | |
43088 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
43089 | fi | |
43090 | ||
43091 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then | |
43092 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
43093 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
43094 | { (exit 1); exit 1; }; } | |
43095 | fi | |
43096 | ||
43097 | ||
efdf6afe VZ |
43098 | if test "$wxUSE_METAFILE" = "yes"; then |
43099 | if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then | |
43100 | { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5 | |
43101 | echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;} | |
43102 | wxUSE_METAFILE=no | |
43103 | fi | |
43104 | fi | |
43105 | ||
43106 | ||
a848cd7e SC |
43107 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ |
43108 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
43109 | -o "$wxUSE_OLE" = "yes" \ | |
43110 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
43111 | ||
43112 | for ac_header in ole2.h | |
43113 | do | |
43114 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
43115 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
43116 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
43117 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
43118 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
43119 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43120 | fi | |
43121 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
43122 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
43123 | else | |
43124 | # Is the header compilable? | |
43125 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
43126 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
43127 | cat >conftest.$ac_ext <<_ACEOF | |
43128 | /* confdefs.h. */ | |
43129 | _ACEOF | |
43130 | cat confdefs.h >>conftest.$ac_ext | |
43131 | cat >>conftest.$ac_ext <<_ACEOF | |
43132 | /* end confdefs.h. */ | |
43133 | $ac_includes_default | |
43134 | #include <$ac_header> | |
43135 | _ACEOF | |
43136 | rm -f conftest.$ac_objext | |
43137 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43138 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43139 | ac_status=$? |
ac1cb8d3 VS |
43140 | grep -v '^ *+' conftest.er1 >conftest.err |
43141 | rm -f conftest.er1 | |
43142 | cat conftest.err >&5 | |
a848cd7e SC |
43143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43144 | (exit $ac_status); } && | |
3565d135 RR |
43145 | { ac_try='test -z "$ac_c_werror_flag" |
43146 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
43147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43148 | (eval $ac_try) 2>&5 | |
43149 | ac_status=$? | |
43150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43151 | (exit $ac_status); }; } && | |
43152 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43154 | (eval $ac_try) 2>&5 | |
43155 | ac_status=$? | |
43156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43157 | (exit $ac_status); }; }; then | |
43158 | ac_header_compiler=yes | |
43159 | else | |
43160 | echo "$as_me: failed program was:" >&5 | |
43161 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43162 | ||
43163 | ac_header_compiler=no | |
43164 | fi | |
ac1cb8d3 | 43165 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
43166 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
43167 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
43168 | ||
43169 | # Is the header present? | |
43170 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
43171 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
43172 | cat >conftest.$ac_ext <<_ACEOF | |
43173 | /* confdefs.h. */ | |
43174 | _ACEOF | |
43175 | cat confdefs.h >>conftest.$ac_ext | |
43176 | cat >>conftest.$ac_ext <<_ACEOF | |
43177 | /* end confdefs.h. */ | |
43178 | #include <$ac_header> | |
43179 | _ACEOF | |
43180 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
43181 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
43182 | ac_status=$? | |
43183 | grep -v '^ *+' conftest.er1 >conftest.err | |
43184 | rm -f conftest.er1 | |
43185 | cat conftest.err >&5 | |
43186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43187 | (exit $ac_status); } >/dev/null; then | |
43188 | if test -s conftest.err; then | |
43189 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ac1cb8d3 | 43190 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a848cd7e SC |
43191 | else |
43192 | ac_cpp_err= | |
43193 | fi | |
43194 | else | |
43195 | ac_cpp_err=yes | |
43196 | fi | |
43197 | if test -z "$ac_cpp_err"; then | |
43198 | ac_header_preproc=yes | |
43199 | else | |
43200 | echo "$as_me: failed program was:" >&5 | |
43201 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43202 | ||
43203 | ac_header_preproc=no | |
43204 | fi | |
43205 | rm -f conftest.err conftest.$ac_ext | |
43206 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
43207 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
43208 | ||
43209 | # So? What about this header? | |
ac1cb8d3 VS |
43210 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
43211 | yes:no: ) | |
a848cd7e SC |
43212 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
43213 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
ac1cb8d3 VS |
43214 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
43215 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
43216 | ac_header_preproc=yes | |
a848cd7e | 43217 | ;; |
ac1cb8d3 | 43218 | no:yes:* ) |
a848cd7e SC |
43219 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
43220 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
ac1cb8d3 VS |
43221 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
43222 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
43223 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
43224 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
43225 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
43226 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a848cd7e SC |
43227 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
43228 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
ac1cb8d3 VS |
43229 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
43230 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a848cd7e SC |
43231 | ( |
43232 | cat <<\_ASBOX | |
ac1cb8d3 VS |
43233 | ## ----------------------------------------- ## |
43234 | ## Report this to wx-dev@lists.wxwidgets.org ## | |
43235 | ## ----------------------------------------- ## | |
a848cd7e SC |
43236 | _ASBOX |
43237 | ) | | |
43238 | sed "s/^/$as_me: WARNING: /" >&2 | |
43239 | ;; | |
43240 | esac | |
43241 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
43242 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
43243 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
43244 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43245 | else | |
ac1cb8d3 | 43246 | eval "$as_ac_Header=\$ac_header_preproc" |
a848cd7e SC |
43247 | fi |
43248 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
43249 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
43250 | ||
43251 | fi | |
43252 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
43253 | cat >>confdefs.h <<_ACEOF | |
43254 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
43255 | _ACEOF | |
43256 | ||
43257 | fi | |
43258 | ||
43259 | done | |
43260 | ||
43261 | ||
43262 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
43263 | if test "$GCC" = yes ; then | |
43264 | ||
43265 | ||
43266 | ac_ext=cc | |
43267 | ac_cpp='$CXXCPP $CPPFLAGS' | |
43268 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
43269 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
43270 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
43271 | ||
43272 | ||
43273 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
43274 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
43275 | cat >conftest.$ac_ext <<_ACEOF | |
43276 | /* confdefs.h. */ | |
43277 | _ACEOF | |
43278 | cat confdefs.h >>conftest.$ac_ext | |
43279 | cat >>conftest.$ac_ext <<_ACEOF | |
43280 | /* end confdefs.h. */ | |
43281 | #include <windows.h> | |
43282 | #include <ole2.h> | |
43283 | int | |
43284 | main () | |
43285 | { | |
43286 | ||
43287 | ; | |
43288 | return 0; | |
43289 | } | |
43290 | _ACEOF | |
43291 | rm -f conftest.$ac_objext | |
43292 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 43293 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 43294 | ac_status=$? |
ac1cb8d3 VS |
43295 | grep -v '^ *+' conftest.er1 >conftest.err |
43296 | rm -f conftest.er1 | |
43297 | cat conftest.err >&5 | |
a848cd7e SC |
43298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43299 | (exit $ac_status); } && | |
3565d135 RR |
43300 | { ac_try='test -z "$ac_cxx_werror_flag" |
43301 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
43302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43303 | (eval $ac_try) 2>&5 | |
43304 | ac_status=$? | |
43305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43306 | (exit $ac_status); }; } && | |
43307 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
43308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43309 | (eval $ac_try) 2>&5 | |
43310 | ac_status=$? | |
43311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43312 | (exit $ac_status); }; }; then | |
43313 | echo "$as_me:$LINENO: result: no" >&5 | |
43314 | echo "${ECHO_T}no" >&6 | |
43315 | else | |
43316 | echo "$as_me: failed program was:" >&5 | |
43317 | sed 's/^/| /' conftest.$ac_ext >&5 | |
43318 | ||
43319 | echo "$as_me:$LINENO: result: yes" >&5 | |
43320 | echo "${ECHO_T}yes" >&6 | |
5ff751d6 | 43321 | WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks" |
a848cd7e | 43322 | fi |
ac1cb8d3 | 43323 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
43324 | ac_ext=c |
43325 | ac_cpp='$CPP $CPPFLAGS' | |
43326 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
43327 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
43328 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
43329 | ||
a848cd7e SC |
43330 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
43331 | if test "$wxUSE_OLE" = "yes" ; then | |
43332 | cat >>confdefs.h <<\_ACEOF | |
43333 | #define wxUSE_OLE 1 | |
43334 | _ACEOF | |
43335 | ||
0b78747f | 43336 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto" |
a848cd7e SC |
43337 | fi |
43338 | fi | |
43339 | ||
43340 | if test "$wxUSE_DATAOBJ" = "yes" ; then | |
43341 | cat >>confdefs.h <<\_ACEOF | |
43342 | #define wxUSE_DATAOBJ 1 | |
43343 | _ACEOF | |
43344 | ||
43345 | fi | |
43346 | else | |
43347 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 | |
43348 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
43349 | ||
43350 | wxUSE_CLIPBOARD=no | |
43351 | wxUSE_DRAG_AND_DROP=no | |
43352 | wxUSE_DATAOBJ=no | |
43353 | wxUSE_OLE=no | |
43354 | fi | |
43355 | ||
43356 | if test "$wxUSE_METAFILE" = "yes"; then | |
43357 | cat >>confdefs.h <<\_ACEOF | |
43358 | #define wxUSE_METAFILE 1 | |
43359 | _ACEOF | |
43360 | ||
43361 | ||
43362 | cat >>confdefs.h <<\_ACEOF | |
43363 | #define wxUSE_ENH_METAFILE 1 | |
43364 | _ACEOF | |
43365 | ||
43366 | fi | |
43367 | fi | |
43368 | ||
43369 | if test "$wxUSE_IPC" = "yes"; then | |
0b78747f | 43370 | if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then |
77ffb593 JS |
43371 | { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5 |
43372 | echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;} | |
0b78747f | 43373 | wxUSE_IPC=no |
a848cd7e SC |
43374 | fi |
43375 | ||
0b78747f MW |
43376 | if test "$wxUSE_IPC" = "yes"; then |
43377 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
43378 | #define wxUSE_IPC 1 |
43379 | _ACEOF | |
43380 | ||
0b78747f MW |
43381 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc" |
43382 | fi | |
a848cd7e SC |
43383 | fi |
43384 | ||
eb730a0c | 43385 | if test "$wxUSE_DATAOBJ" = "yes"; then |
2113bc77 MW |
43386 | if test "$wxUSE_MGL" = 1; then |
43387 | { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5 | |
43388 | echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;} | |
43389 | wxUSE_DATAOBJ=no | |
43390 | else | |
43391 | cat >>confdefs.h <<\_ACEOF | |
eb730a0c JS |
43392 | #define wxUSE_DATAOBJ 1 |
43393 | _ACEOF | |
43394 | ||
2113bc77 | 43395 | fi |
eb730a0c JS |
43396 | else |
43397 | { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5 | |
43398 | echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;} | |
43399 | wxUSE_CLIPBOARD=no | |
43400 | wxUSE_DRAG_AND_DROP=no | |
43401 | fi | |
43402 | ||
a848cd7e SC |
43403 | if test "$wxUSE_CLIPBOARD" = "yes"; then |
43404 | if test "$wxUSE_MGL" = 1; then | |
43405 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 | |
43406 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
43407 | wxUSE_CLIPBOARD=no | |
43408 | fi | |
43409 | ||
43410 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
43411 | cat >>confdefs.h <<\_ACEOF | |
43412 | #define wxUSE_CLIPBOARD 1 | |
43413 | _ACEOF | |
43414 | ||
a848cd7e SC |
43415 | fi |
43416 | fi | |
43417 | ||
43418 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
43419 | if test "$wxUSE_GTK" = 1; then | |
43420 | if test "$WXGTK12" != 1; then | |
43421 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 | |
43422 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
43423 | wxUSE_DRAG_AND_DROP=no | |
43424 | fi | |
43425 | fi | |
43426 | ||
43427 | if test "$wxUSE_MOTIF" = 1; then | |
43428 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 | |
43429 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
43430 | wxUSE_DRAG_AND_DROP=no | |
43431 | fi | |
43432 | ||
43433 | if test "$wxUSE_X11" = 1; then | |
43434 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 | |
43435 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
43436 | wxUSE_DRAG_AND_DROP=no | |
43437 | fi | |
43438 | ||
43439 | if test "$wxUSE_MGL" = 1; then | |
43440 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 | |
43441 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
43442 | wxUSE_DRAG_AND_DROP=no | |
43443 | fi | |
43444 | ||
43445 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
43446 | cat >>confdefs.h <<\_ACEOF | |
43447 | #define wxUSE_DRAG_AND_DROP 1 | |
43448 | _ACEOF | |
43449 | ||
43450 | fi | |
43451 | ||
43452 | fi | |
43453 | ||
43454 | if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then | |
43455 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
43456 | fi | |
43457 | ||
43458 | if test "$wxUSE_SPLINES" = "yes" ; then | |
43459 | cat >>confdefs.h <<\_ACEOF | |
43460 | #define wxUSE_SPLINES 1 | |
43461 | _ACEOF | |
43462 | ||
43463 | fi | |
43464 | ||
fbe2ca43 SN |
43465 | if test "$wxUSE_MOUSEWHEEL" = "yes" ; then |
43466 | cat >>confdefs.h <<\_ACEOF | |
43467 | #define wxUSE_MOUSEWHEEL 1 | |
43468 | _ACEOF | |
43469 | ||
43470 | fi | |
43471 | ||
a848cd7e SC |
43472 | |
43473 | USES_CONTROLS=0 | |
43474 | if test "$wxUSE_CONTROLS" = "yes"; then | |
43475 | USES_CONTROLS=1 | |
43476 | fi | |
43477 | ||
43478 | if test "$wxUSE_ACCEL" = "yes"; then | |
43479 | cat >>confdefs.h <<\_ACEOF | |
43480 | #define wxUSE_ACCEL 1 | |
43481 | _ACEOF | |
43482 | ||
43483 | USES_CONTROLS=1 | |
43484 | fi | |
43485 | ||
43486 | if test "$wxUSE_BUTTON" = "yes"; then | |
43487 | cat >>confdefs.h <<\_ACEOF | |
43488 | #define wxUSE_BUTTON 1 | |
43489 | _ACEOF | |
43490 | ||
43491 | USES_CONTROLS=1 | |
43492 | fi | |
43493 | ||
43494 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
43495 | cat >>confdefs.h <<\_ACEOF | |
43496 | #define wxUSE_BMPBUTTON 1 | |
43497 | _ACEOF | |
43498 | ||
43499 | USES_CONTROLS=1 | |
43500 | fi | |
43501 | ||
43502 | if test "$wxUSE_CALCTRL" = "yes"; then | |
43503 | cat >>confdefs.h <<\_ACEOF | |
43504 | #define wxUSE_CALENDARCTRL 1 | |
43505 | _ACEOF | |
43506 | ||
43507 | USES_CONTROLS=1 | |
43508 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
43509 | fi | |
43510 | ||
43511 | if test "$wxUSE_CARET" = "yes"; then | |
43512 | cat >>confdefs.h <<\_ACEOF | |
43513 | #define wxUSE_CARET 1 | |
43514 | _ACEOF | |
43515 | ||
43516 | USES_CONTROLS=1 | |
43517 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
43518 | fi | |
43519 | ||
43520 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
43521 | cat >>confdefs.h <<\_ACEOF | |
43522 | #define wxUSE_COMBOBOX 1 | |
43523 | _ACEOF | |
43524 | ||
43525 | USES_CONTROLS=1 | |
43526 | fi | |
43527 | ||
43528 | if test "$wxUSE_CHOICE" = "yes"; then | |
43529 | cat >>confdefs.h <<\_ACEOF | |
43530 | #define wxUSE_CHOICE 1 | |
43531 | _ACEOF | |
43532 | ||
43533 | USES_CONTROLS=1 | |
43534 | fi | |
43535 | ||
92bbdbcd WS |
43536 | if test "$wxUSE_CHOICEBOOK" = "yes"; then |
43537 | cat >>confdefs.h <<\_ACEOF | |
43538 | #define wxUSE_CHOICEBOOK 1 | |
43539 | _ACEOF | |
43540 | ||
43541 | USES_CONTROLS=1 | |
43542 | fi | |
43543 | ||
a848cd7e SC |
43544 | if test "$wxUSE_CHECKBOX" = "yes"; then |
43545 | cat >>confdefs.h <<\_ACEOF | |
43546 | #define wxUSE_CHECKBOX 1 | |
43547 | _ACEOF | |
43548 | ||
43549 | USES_CONTROLS=1 | |
43550 | fi | |
43551 | ||
43552 | if test "$wxUSE_CHECKLST" = "yes"; then | |
43553 | cat >>confdefs.h <<\_ACEOF | |
43554 | #define wxUSE_CHECKLISTBOX 1 | |
43555 | _ACEOF | |
43556 | ||
43557 | USES_CONTROLS=1 | |
43558 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
43559 | fi | |
43560 | ||
da98e9be VZ |
43561 | if test "$wxUSE_DATEPICKCTRL" = "yes"; then |
43562 | cat >>confdefs.h <<\_ACEOF | |
43563 | #define wxUSE_DATEPICKCTRL 1 | |
43564 | _ACEOF | |
43565 | ||
43566 | USES_CONTROLS=1 | |
43567 | fi | |
43568 | ||
a848cd7e SC |
43569 | if test "$wxUSE_DISPLAY" = "yes"; then |
43570 | cat >>confdefs.h <<\_ACEOF | |
43571 | #define wxUSE_DISPLAY 1 | |
43572 | _ACEOF | |
43573 | ||
0b78747f | 43574 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon" |
a848cd7e SC |
43575 | fi |
43576 | ||
43577 | if test "$wxUSE_GAUGE" = "yes"; then | |
43578 | cat >>confdefs.h <<\_ACEOF | |
43579 | #define wxUSE_GAUGE 1 | |
43580 | _ACEOF | |
43581 | ||
43582 | USES_CONTROLS=1 | |
43583 | fi | |
43584 | ||
43585 | if test "$wxUSE_GRID" = "yes"; then | |
43586 | cat >>confdefs.h <<\_ACEOF | |
43587 | #define wxUSE_GRID 1 | |
43588 | _ACEOF | |
43589 | ||
43590 | USES_CONTROLS=1 | |
43591 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
43592 | fi | |
43593 | ||
20e34ecc RR |
43594 | if test "$wxUSE_DATAVIEWCTRL" = "yes"; then |
43595 | cat >>confdefs.h <<\_ACEOF | |
43596 | #define wxUSE_DATAVIEWCTRL 1 | |
43597 | _ACEOF | |
43598 | ||
43599 | USES_CONTROLS=1 | |
43600 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview" | |
43601 | fi | |
43602 | ||
a848cd7e SC |
43603 | if test "$wxUSE_IMAGLIST" = "yes"; then |
43604 | cat >>confdefs.h <<\_ACEOF | |
43605 | #define wxUSE_IMAGLIST 1 | |
43606 | _ACEOF | |
43607 | ||
43608 | fi | |
43609 | ||
43610 | if test "$wxUSE_LISTBOOK" = "yes"; then | |
43611 | cat >>confdefs.h <<\_ACEOF | |
43612 | #define wxUSE_LISTBOOK 1 | |
43613 | _ACEOF | |
43614 | ||
43615 | USES_CONTROLS=1 | |
43616 | fi | |
43617 | ||
43618 | if test "$wxUSE_LISTBOX" = "yes"; then | |
43619 | cat >>confdefs.h <<\_ACEOF | |
43620 | #define wxUSE_LISTBOX 1 | |
43621 | _ACEOF | |
43622 | ||
43623 | USES_CONTROLS=1 | |
0b78747f | 43624 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox" |
a848cd7e SC |
43625 | fi |
43626 | ||
43627 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
43628 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
43629 | cat >>confdefs.h <<\_ACEOF | |
43630 | #define wxUSE_LISTCTRL 1 | |
43631 | _ACEOF | |
43632 | ||
43633 | USES_CONTROLS=1 | |
43634 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
43635 | else | |
43636 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 | |
43637 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
43638 | fi | |
43639 | fi | |
43640 | ||
43641 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
43642 | cat >>confdefs.h <<\_ACEOF | |
43643 | #define wxUSE_NOTEBOOK 1 | |
43644 | _ACEOF | |
43645 | ||
43646 | USES_CONTROLS=1 | |
43647 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
43648 | fi | |
43649 | ||
43650 | ||
43651 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
43652 | cat >>confdefs.h <<\_ACEOF | |
43653 | #define wxUSE_RADIOBOX 1 | |
43654 | _ACEOF | |
43655 | ||
43656 | USES_CONTROLS=1 | |
43657 | fi | |
43658 | ||
43659 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
43660 | cat >>confdefs.h <<\_ACEOF | |
43661 | #define wxUSE_RADIOBTN 1 | |
43662 | _ACEOF | |
43663 | ||
43664 | USES_CONTROLS=1 | |
43665 | fi | |
43666 | ||
43667 | if test "$wxUSE_SASH" = "yes"; then | |
43668 | cat >>confdefs.h <<\_ACEOF | |
43669 | #define wxUSE_SASH 1 | |
43670 | _ACEOF | |
43671 | ||
43672 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
43673 | fi | |
43674 | ||
43675 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
43676 | cat >>confdefs.h <<\_ACEOF | |
43677 | #define wxUSE_SCROLLBAR 1 | |
43678 | _ACEOF | |
43679 | ||
43680 | USES_CONTROLS=1 | |
43681 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
43682 | fi | |
43683 | ||
43684 | if test "$wxUSE_SLIDER" = "yes"; then | |
43685 | cat >>confdefs.h <<\_ACEOF | |
43686 | #define wxUSE_SLIDER 1 | |
43687 | _ACEOF | |
43688 | ||
43689 | USES_CONTROLS=1 | |
43690 | fi | |
43691 | ||
43692 | if test "$wxUSE_SPINBTN" = "yes"; then | |
43693 | cat >>confdefs.h <<\_ACEOF | |
43694 | #define wxUSE_SPINBTN 1 | |
43695 | _ACEOF | |
43696 | ||
43697 | USES_CONTROLS=1 | |
43698 | fi | |
43699 | ||
43700 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
43701 | cat >>confdefs.h <<\_ACEOF | |
43702 | #define wxUSE_SPINCTRL 1 | |
43703 | _ACEOF | |
43704 | ||
43705 | USES_CONTROLS=1 | |
43706 | fi | |
43707 | ||
43708 | if test "$wxUSE_SPLITTER" = "yes"; then | |
43709 | cat >>confdefs.h <<\_ACEOF | |
43710 | #define wxUSE_SPLITTER 1 | |
43711 | _ACEOF | |
43712 | ||
43713 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
43714 | fi | |
43715 | ||
43716 | if test "$wxUSE_STATBMP" = "yes"; then | |
43717 | cat >>confdefs.h <<\_ACEOF | |
43718 | #define wxUSE_STATBMP 1 | |
43719 | _ACEOF | |
43720 | ||
43721 | USES_CONTROLS=1 | |
43722 | fi | |
43723 | ||
43724 | if test "$wxUSE_STATBOX" = "yes"; then | |
43725 | cat >>confdefs.h <<\_ACEOF | |
43726 | #define wxUSE_STATBOX 1 | |
43727 | _ACEOF | |
43728 | ||
43729 | USES_CONTROLS=1 | |
43730 | fi | |
43731 | ||
43732 | if test "$wxUSE_STATTEXT" = "yes"; then | |
43733 | cat >>confdefs.h <<\_ACEOF | |
43734 | #define wxUSE_STATTEXT 1 | |
43735 | _ACEOF | |
43736 | ||
43737 | USES_CONTROLS=1 | |
43738 | fi | |
43739 | ||
43740 | if test "$wxUSE_STATLINE" = "yes"; then | |
43741 | cat >>confdefs.h <<\_ACEOF | |
43742 | #define wxUSE_STATLINE 1 | |
43743 | _ACEOF | |
43744 | ||
43745 | USES_CONTROLS=1 | |
43746 | fi | |
43747 | ||
43748 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
da4486fb VZ |
43749 | cat >>confdefs.h <<\_ACEOF |
43750 | #define wxUSE_NATIVE_STATUSBAR 1 | |
43751 | _ACEOF | |
43752 | ||
a848cd7e SC |
43753 | cat >>confdefs.h <<\_ACEOF |
43754 | #define wxUSE_STATUSBAR 1 | |
43755 | _ACEOF | |
43756 | ||
43757 | USES_CONTROLS=1 | |
43758 | ||
43759 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
43760 | fi | |
43761 | ||
43762 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
43763 | cat >>confdefs.h <<\_ACEOF | |
43764 | #define wxUSE_TAB_DIALOG 1 | |
43765 | _ACEOF | |
43766 | ||
a848cd7e SC |
43767 | fi |
43768 | ||
43769 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
43770 | cat >>confdefs.h <<\_ACEOF | |
43771 | #define wxUSE_TEXTCTRL 1 | |
43772 | _ACEOF | |
43773 | ||
43774 | USES_CONTROLS=1 | |
43775 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
43776 | fi | |
43777 | ||
43778 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
43779 | if test "$wxUSE_COCOA" = 1 ; then | |
43780 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 | |
43781 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
43782 | wxUSE_TOGGLEBTN=no | |
43783 | fi | |
43784 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
43785 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 | |
43786 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
43787 | wxUSE_TOGGLEBTN=no | |
43788 | fi | |
43789 | ||
43790 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
43791 | cat >>confdefs.h <<\_ACEOF | |
43792 | #define wxUSE_TOGGLEBTN 1 | |
43793 | _ACEOF | |
43794 | ||
43795 | USES_CONTROLS=1 | |
43796 | fi | |
43797 | fi | |
43798 | ||
43799 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
43800 | cat >>confdefs.h <<\_ACEOF | |
43801 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
43802 | _ACEOF | |
43803 | ||
43804 | wxUSE_TOOLBAR="yes" | |
43805 | USES_CONTROLS=1 | |
43806 | fi | |
43807 | ||
43808 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
43809 | cat >>confdefs.h <<\_ACEOF | |
43810 | #define wxUSE_TOOLBAR 1 | |
43811 | _ACEOF | |
43812 | ||
43813 | USES_CONTROLS=1 | |
43814 | ||
43815 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
43816 | wxUSE_TOOLBAR_NATIVE="yes" | |
43817 | fi | |
43818 | ||
43819 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
43820 | cat >>confdefs.h <<\_ACEOF | |
43821 | #define wxUSE_TOOLBAR_NATIVE 1 | |
43822 | _ACEOF | |
43823 | ||
43824 | USES_CONTROLS=1 | |
43825 | fi | |
43826 | ||
43827 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
43828 | fi | |
43829 | ||
43830 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
43831 | if test "$wxUSE_MOTIF" = 1; then | |
43832 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 | |
43833 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
43834 | else | |
43835 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
43836 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 | |
43837 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
43838 | else | |
43839 | cat >>confdefs.h <<\_ACEOF | |
43840 | #define wxUSE_TOOLTIPS 1 | |
43841 | _ACEOF | |
43842 | ||
43843 | fi | |
43844 | fi | |
43845 | fi | |
43846 | ||
0093c2fc VZ |
43847 | if test "$wxUSE_TREEBOOK" = "yes"; then |
43848 | cat >>confdefs.h <<\_ACEOF | |
43849 | #define wxUSE_TREEBOOK 1 | |
43850 | _ACEOF | |
43851 | ||
43852 | USES_CONTROLS=1 | |
43853 | fi | |
43854 | ||
a848cd7e SC |
43855 | if test "$wxUSE_TREECTRL" = "yes"; then |
43856 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
43857 | cat >>confdefs.h <<\_ACEOF | |
43858 | #define wxUSE_TREECTRL 1 | |
43859 | _ACEOF | |
43860 | ||
43861 | USES_CONTROLS=1 | |
43862 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
43863 | else | |
43864 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 | |
43865 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
43866 | fi | |
43867 | fi | |
43868 | ||
43869 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
43870 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
43871 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 | |
43872 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
43873 | else | |
43874 | if test "$wxUSE_PM" = 1; then | |
43875 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
43876 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
43877 | else | |
43878 | cat >>confdefs.h <<\_ACEOF | |
43879 | #define wxUSE_POPUPWIN 1 | |
43880 | _ACEOF | |
43881 | ||
0b78747f | 43882 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup" |
a848cd7e SC |
43883 | |
43884 | USES_CONTROLS=1 | |
43885 | fi | |
43886 | fi | |
43887 | fi | |
43888 | ||
0dcd06dd | 43889 | if test "$wxUSE_DIALUP_MANAGER" = "yes"; then |
b843b628 MB |
43890 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
43891 | { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5 | |
43892 | echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;} | |
43893 | else | |
43894 | cat >>confdefs.h <<\_ACEOF | |
43895 | #define wxUSE_DIALUP_MANAGER 1 | |
43896 | _ACEOF | |
43897 | ||
43898 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
43899 | fi | |
43900 | fi | |
43901 | ||
a848cd7e SC |
43902 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
43903 | if test "$wxUSE_PM" = 1; then | |
43904 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 | |
43905 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
43906 | else | |
43907 | cat >>confdefs.h <<\_ACEOF | |
43908 | #define wxUSE_TIPWINDOW 1 | |
43909 | _ACEOF | |
43910 | ||
43911 | fi | |
43912 | fi | |
43913 | ||
43914 | if test "$USES_CONTROLS" = 1; then | |
43915 | cat >>confdefs.h <<\_ACEOF | |
43916 | #define wxUSE_CONTROLS 1 | |
43917 | _ACEOF | |
43918 | ||
43919 | fi | |
43920 | ||
43921 | ||
43922 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then | |
43923 | cat >>confdefs.h <<\_ACEOF | |
43924 | #define wxUSE_ACCESSIBILITY 1 | |
43925 | _ACEOF | |
43926 | ||
43927 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
43928 | fi | |
43929 | ||
38b4a946 VZ |
43930 | if test "$wxUSE_DC_CACHEING" = "yes"; then |
43931 | cat >>confdefs.h <<\_ACEOF | |
43932 | #define wxUSE_DC_CACHEING 1 | |
43933 | _ACEOF | |
43934 | ||
43935 | fi | |
43936 | ||
a848cd7e SC |
43937 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
43938 | cat >>confdefs.h <<\_ACEOF | |
43939 | #define wxUSE_DRAGIMAGE 1 | |
43940 | _ACEOF | |
43941 | ||
43942 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
43943 | fi | |
43944 | ||
43945 | if test "$wxUSE_EXCEPTIONS" = "yes"; then | |
07bea8f0 VS |
43946 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
43947 | { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5 | |
43948 | echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;} | |
43949 | else | |
43950 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
43951 | #define wxUSE_EXCEPTIONS 1 |
43952 | _ACEOF | |
43953 | ||
07bea8f0 VS |
43954 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except" |
43955 | fi | |
a848cd7e SC |
43956 | fi |
43957 | ||
43958 | USE_HTML=0 | |
43959 | if test "$wxUSE_HTML" = "yes"; then | |
43960 | cat >>confdefs.h <<\_ACEOF | |
43961 | #define wxUSE_HTML 1 | |
43962 | _ACEOF | |
43963 | ||
43964 | USE_HTML=1 | |
43965 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
de59c161 RD |
43966 | if test "$wxUSE_MAC" = 1; then |
43967 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl" | |
43968 | fi | |
a848cd7e | 43969 | fi |
646b6ec1 | 43970 | if test "$wxUSE_WEBKIT" = "yes"; then |
1e9e8aba | 43971 | if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then |
07bea8f0 | 43972 | old_CPPFLAGS="$CPPFLAGS" |
c92ad099 | 43973 | CPPFLAGS="-x objective-c++ $CPPFLAGS" |
07bea8f0 VS |
43974 | echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5 |
43975 | echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6 | |
43976 | if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then | |
43977 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
43978 | else | |
43979 | cat >conftest.$ac_ext <<_ACEOF | |
43980 | /* confdefs.h. */ | |
43981 | _ACEOF | |
43982 | cat confdefs.h >>conftest.$ac_ext | |
43983 | cat >>conftest.$ac_ext <<_ACEOF | |
43984 | /* end confdefs.h. */ | |
43985 | #include <Carbon/Carbon.h> | |
43986 | ||
43987 | #include <WebKit/HIWebView.h> | |
43988 | _ACEOF | |
43989 | rm -f conftest.$ac_objext | |
43990 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
43991 | (eval $ac_compile) 2>conftest.er1 | |
43992 | ac_status=$? | |
43993 | grep -v '^ *+' conftest.er1 >conftest.err | |
43994 | rm -f conftest.er1 | |
43995 | cat conftest.err >&5 | |
43996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43997 | (exit $ac_status); } && | |
3565d135 RR |
43998 | { ac_try='test -z "$ac_c_werror_flag" |
43999 | || test ! -s conftest.err' | |
07bea8f0 VS |
44000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44001 | (eval $ac_try) 2>&5 | |
44002 | ac_status=$? | |
44003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44004 | (exit $ac_status); }; } && | |
44005 | { ac_try='test -s conftest.$ac_objext' | |
44006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
44007 | (eval $ac_try) 2>&5 | |
44008 | ac_status=$? | |
44009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44010 | (exit $ac_status); }; }; then | |
44011 | ac_cv_header_WebKit_HIWebView_h=yes | |
44012 | else | |
44013 | echo "$as_me: failed program was:" >&5 | |
44014 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44015 | ||
44016 | ac_cv_header_WebKit_HIWebView_h=no | |
44017 | fi | |
44018 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
44019 | fi | |
44020 | echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5 | |
44021 | echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6 | |
44022 | if test $ac_cv_header_WebKit_HIWebView_h = yes; then | |
44023 | ||
44024 | cat >>confdefs.h <<\_ACEOF | |
646b6ec1 VS |
44025 | #define wxUSE_WEBKIT 1 |
44026 | _ACEOF | |
44027 | ||
07bea8f0 VS |
44028 | WEBKIT_LINK="-framework WebKit" |
44029 | ||
44030 | else | |
44031 | ||
44032 | { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5 | |
44033 | echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;} | |
44034 | wxUSE_WEBKIT=no | |
44035 | ||
646b6ec1 VS |
44036 | fi |
44037 | ||
07bea8f0 VS |
44038 | |
44039 | CPPFLAGS="$old_CPPFLAGS" | |
44040 | elif test "$wxUSE_COCOA" = 1; then | |
44041 | cat >>confdefs.h <<\_ACEOF | |
44042 | #define wxUSE_WEBKIT 1 | |
44043 | _ACEOF | |
44044 | ||
44045 | else | |
44046 | wxUSE_WEBKIT=no | |
44047 | fi | |
44048 | fi | |
44049 | ||
9a8f0513 VS |
44050 | USE_XRC=0 |
44051 | if test "$wxUSE_XRC" = "yes"; then | |
d2ebf0b7 VS |
44052 | if test "$wxUSE_XML" != "yes"; then |
44053 | { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5 | |
44054 | echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;} | |
44055 | wxUSE_XRC=no | |
44056 | else | |
44057 | cat >>confdefs.h <<\_ACEOF | |
9a8f0513 VS |
44058 | #define wxUSE_XRC 1 |
44059 | _ACEOF | |
44060 | ||
d2ebf0b7 VS |
44061 | USE_XRC=1 |
44062 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc" | |
44063 | fi | |
9a8f0513 | 44064 | fi |
07bea8f0 | 44065 | |
a848cd7e SC |
44066 | if test "$wxUSE_MENUS" = "yes"; then |
44067 | cat >>confdefs.h <<\_ACEOF | |
44068 | #define wxUSE_MENUS 1 | |
44069 | _ACEOF | |
44070 | ||
44071 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
44072 | fi | |
44073 | ||
44074 | if test "$wxUSE_METAFILE" = "yes"; then | |
44075 | cat >>confdefs.h <<\_ACEOF | |
44076 | #define wxUSE_METAFILE 1 | |
44077 | _ACEOF | |
44078 | ||
44079 | fi | |
44080 | ||
44081 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
44082 | cat >>confdefs.h <<\_ACEOF | |
44083 | #define wxUSE_MIMETYPE 1 | |
44084 | _ACEOF | |
44085 | ||
44086 | fi | |
44087 | ||
44088 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
44089 | cat >>confdefs.h <<\_ACEOF | |
44090 | #define wxUSE_MINIFRAME 1 | |
44091 | _ACEOF | |
44092 | ||
44093 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
44094 | fi | |
44095 | ||
44096 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
44097 | cat >>confdefs.h <<\_ACEOF | |
44098 | #define wxUSE_SYSTEM_OPTIONS 1 | |
44099 | _ACEOF | |
44100 | ||
44101 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ | |
a49baeab | 44102 | "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then |
a848cd7e SC |
44103 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" |
44104 | fi | |
44105 | fi | |
44106 | ||
44107 | ||
44108 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
44109 | cat >>confdefs.h <<\_ACEOF | |
44110 | #define wxUSE_VALIDATORS 1 | |
44111 | _ACEOF | |
44112 | ||
44113 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
44114 | fi | |
44115 | ||
44116 | if test "$wxUSE_PALETTE" = "yes" ; then | |
44117 | cat >>confdefs.h <<\_ACEOF | |
44118 | #define wxUSE_PALETTE 1 | |
44119 | _ACEOF | |
44120 | ||
44121 | fi | |
44122 | ||
44123 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
44124 | LIBS=" -lunicows $LIBS" | |
44125 | fi | |
44126 | ||
91dea314 MW |
44127 | USE_RICHTEXT=0 |
44128 | if test "$wxUSE_RICHTEXT" = "yes"; then | |
44129 | cat >>confdefs.h <<\_ACEOF | |
44130 | #define wxUSE_RICHTEXT 1 | |
44131 | _ACEOF | |
44132 | ||
44133 | USE_RICHTEXT=1 | |
44134 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext" | |
44135 | fi | |
44136 | ||
a848cd7e SC |
44137 | |
44138 | if test "$wxUSE_IMAGE" = "yes" ; then | |
44139 | cat >>confdefs.h <<\_ACEOF | |
44140 | #define wxUSE_IMAGE 1 | |
44141 | _ACEOF | |
44142 | ||
44143 | ||
44144 | if test "$wxUSE_GIF" = "yes" ; then | |
44145 | cat >>confdefs.h <<\_ACEOF | |
44146 | #define wxUSE_GIF 1 | |
44147 | _ACEOF | |
44148 | ||
44149 | fi | |
44150 | ||
44151 | if test "$wxUSE_PCX" = "yes" ; then | |
44152 | cat >>confdefs.h <<\_ACEOF | |
44153 | #define wxUSE_PCX 1 | |
44154 | _ACEOF | |
44155 | ||
44156 | fi | |
44157 | ||
44158 | if test "$wxUSE_IFF" = "yes" ; then | |
44159 | cat >>confdefs.h <<\_ACEOF | |
44160 | #define wxUSE_IFF 1 | |
44161 | _ACEOF | |
44162 | ||
44163 | fi | |
44164 | ||
44165 | if test "$wxUSE_PNM" = "yes" ; then | |
44166 | cat >>confdefs.h <<\_ACEOF | |
44167 | #define wxUSE_PNM 1 | |
44168 | _ACEOF | |
44169 | ||
44170 | fi | |
44171 | ||
44172 | if test "$wxUSE_XPM" = "yes" ; then | |
44173 | cat >>confdefs.h <<\_ACEOF | |
44174 | #define wxUSE_XPM 1 | |
44175 | _ACEOF | |
44176 | ||
44177 | fi | |
44178 | ||
44179 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
44180 | cat >>confdefs.h <<\_ACEOF | |
44181 | #define wxUSE_ICO_CUR 1 | |
44182 | _ACEOF | |
44183 | ||
44184 | fi | |
44185 | fi | |
44186 | ||
44187 | ||
44188 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
44189 | cat >>confdefs.h <<\_ACEOF | |
44190 | #define wxUSE_CHOICEDLG 1 | |
44191 | _ACEOF | |
44192 | ||
44193 | fi | |
44194 | ||
44195 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
44196 | cat >>confdefs.h <<\_ACEOF | |
44197 | #define wxUSE_COLOURDLG 1 | |
44198 | _ACEOF | |
44199 | ||
44200 | fi | |
44201 | ||
44202 | if test "$wxUSE_FILEDLG" = "yes"; then | |
44203 | cat >>confdefs.h <<\_ACEOF | |
44204 | #define wxUSE_FILEDLG 1 | |
44205 | _ACEOF | |
44206 | ||
44207 | fi | |
44208 | ||
44209 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
44210 | cat >>confdefs.h <<\_ACEOF | |
44211 | #define wxUSE_FINDREPLDLG 1 | |
44212 | _ACEOF | |
44213 | ||
44214 | fi | |
44215 | ||
44216 | if test "$wxUSE_FONTDLG" = "yes"; then | |
44217 | cat >>confdefs.h <<\_ACEOF | |
44218 | #define wxUSE_FONTDLG 1 | |
44219 | _ACEOF | |
44220 | ||
44221 | fi | |
44222 | ||
44223 | if test "$wxUSE_DIRDLG" = "yes"; then | |
44224 | if test "$wxUSE_TREECTRL" != "yes"; then | |
44225 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 | |
44226 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
44227 | else | |
44228 | cat >>confdefs.h <<\_ACEOF | |
44229 | #define wxUSE_DIRDLG 1 | |
44230 | _ACEOF | |
44231 | ||
44232 | fi | |
44233 | fi | |
44234 | ||
44235 | if test "$wxUSE_MSGDLG" = "yes"; then | |
44236 | cat >>confdefs.h <<\_ACEOF | |
44237 | #define wxUSE_MSGDLG 1 | |
44238 | _ACEOF | |
44239 | ||
44240 | fi | |
44241 | ||
44242 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
44243 | cat >>confdefs.h <<\_ACEOF | |
44244 | #define wxUSE_NUMBERDLG 1 | |
44245 | _ACEOF | |
44246 | ||
44247 | fi | |
44248 | ||
44249 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
44250 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
44251 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 | |
44252 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
44253 | else | |
44254 | cat >>confdefs.h <<\_ACEOF | |
44255 | #define wxUSE_PROGRESSDLG 1 | |
44256 | _ACEOF | |
44257 | ||
44258 | fi | |
44259 | fi | |
44260 | ||
44261 | if test "$wxUSE_SPLASH" = "yes"; then | |
44262 | cat >>confdefs.h <<\_ACEOF | |
44263 | #define wxUSE_SPLASH 1 | |
44264 | _ACEOF | |
44265 | ||
2057db16 | 44266 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash" |
a848cd7e SC |
44267 | fi |
44268 | ||
44269 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
44270 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
44271 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 | |
44272 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
44273 | else | |
44274 | cat >>confdefs.h <<\_ACEOF | |
44275 | #define wxUSE_STARTUP_TIPS 1 | |
44276 | _ACEOF | |
44277 | ||
44278 | fi | |
44279 | fi | |
44280 | ||
44281 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
44282 | cat >>confdefs.h <<\_ACEOF | |
44283 | #define wxUSE_TEXTDLG 1 | |
44284 | _ACEOF | |
44285 | ||
44286 | fi | |
44287 | ||
44288 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
44289 | cat >>confdefs.h <<\_ACEOF | |
44290 | #define wxUSE_WIZARDDLG 1 | |
44291 | _ACEOF | |
44292 | ||
44293 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
44294 | fi | |
44295 | ||
44296 | ||
ce756cb0 | 44297 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
ce756cb0 RN |
44298 | if test "$wxUSE_GTK" = 1; then |
44299 | wxUSE_GSTREAMER="yes" | |
44300 | ||
ce756cb0 | 44301 | |
dae87f93 | 44302 | succeeded=no |
ce756cb0 | 44303 | |
dae87f93 RN |
44304 | if test -z "$PKG_CONFIG"; then |
44305 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
44306 | set dummy pkg-config; ac_word=$2 | |
44307 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
44308 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
44309 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
44310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44311 | else | |
44312 | case $PKG_CONFIG in | |
44313 | [\\/]* | ?:[\\/]*) | |
44314 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
44315 | ;; | |
44316 | *) | |
44317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
44318 | for as_dir in $PATH | |
44319 | do | |
44320 | IFS=$as_save_IFS | |
44321 | test -z "$as_dir" && as_dir=. | |
44322 | for ac_exec_ext in '' $ac_executable_extensions; do | |
44323 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
44324 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
44325 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
44326 | break 2 | |
44327 | fi | |
44328 | done | |
44329 | done | |
44330 | ||
44331 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
44332 | ;; | |
44333 | esac | |
44334 | fi | |
44335 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
44336 | ||
44337 | if test -n "$PKG_CONFIG"; then | |
44338 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
44339 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
44340 | else | |
44341 | echo "$as_me:$LINENO: result: no" >&5 | |
44342 | echo "${ECHO_T}no" >&6 | |
44343 | fi | |
44344 | ||
44345 | fi | |
44346 | ||
44347 | if test "$PKG_CONFIG" = "no" ; then | |
44348 | echo "*** The pkg-config script could not be found. Make sure it is" | |
44349 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
44350 | echo "*** to the full path to pkg-config." | |
44351 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
44352 | else | |
44353 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
44354 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
44355 | echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5 | |
44356 | echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6 | |
44357 | ||
44358 | if $PKG_CONFIG --exists "gstreamer-0.8" ; then | |
44359 | echo "$as_me:$LINENO: result: yes" >&5 | |
ce756cb0 | 44360 | echo "${ECHO_T}yes" >&6 |
dae87f93 | 44361 | succeeded=yes |
ce756cb0 | 44362 | |
dae87f93 RN |
44363 | echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5 |
44364 | echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6 | |
44365 | GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"` | |
44366 | echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5 | |
44367 | echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6 | |
44368 | ||
44369 | echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5 | |
44370 | echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6 | |
44371 | GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"` | |
44372 | echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5 | |
44373 | echo "${ECHO_T}$GSTREAMER_LIBS" >&6 | |
44374 | else | |
44375 | GSTREAMER_CFLAGS="" | |
44376 | GSTREAMER_LIBS="" | |
44377 | ## If we have a custom action on failure, don't print errors, but | |
44378 | ## do set a variable so people can do so. | |
44379 | GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"` | |
ce756cb0 | 44380 | |
dae87f93 RN |
44381 | fi |
44382 | ||
44383 | ||
44384 | ||
44385 | else | |
44386 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
44387 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
44388 | fi | |
44389 | fi | |
44390 | ||
44391 | if test $succeeded = yes; then | |
44392 | ||
c92ad099 | 44393 | CPPFLAGS="$GSTREAMER_CFLAGS $CPPFLAGS" |
dae87f93 | 44394 | LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8" |
ce756cb0 | 44395 | |
ce756cb0 | 44396 | else |
dae87f93 RN |
44397 | |
44398 | { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5 | |
44399 | echo "$as_me: WARNING: GStreamer installation not found" >&2;} | |
44400 | wxUSE_GSTREAMER="no" | |
44401 | ||
44402 | fi | |
44403 | ||
44404 | ||
44405 | ||
44406 | ||
44407 | ||
44408 | if test "x$GST_INSPECT" == "x"; then | |
44409 | # Extract the first word of "gst-inspect", so it can be a program name with args. | |
44410 | set dummy gst-inspect; ac_word=$2 | |
44411 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
44412 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
44413 | if test "${ac_cv_prog_GST_INSPECT+set}" = set; then | |
44414 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44415 | else | |
44416 | if test -n "$GST_INSPECT"; then | |
44417 | ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test. | |
44418 | else | |
44419 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
44420 | for as_dir in $PATH | |
44421 | do | |
44422 | IFS=$as_save_IFS | |
44423 | test -z "$as_dir" && as_dir=. | |
44424 | for ac_exec_ext in '' $ac_executable_extensions; do | |
44425 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
44426 | ac_cv_prog_GST_INSPECT="gst-inspect" | |
44427 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
44428 | break 2 | |
ce756cb0 | 44429 | fi |
dae87f93 RN |
44430 | done |
44431 | done | |
44432 | ||
44433 | fi | |
44434 | fi | |
44435 | GST_INSPECT=$ac_cv_prog_GST_INSPECT | |
44436 | if test -n "$GST_INSPECT"; then | |
44437 | echo "$as_me:$LINENO: result: $GST_INSPECT" >&5 | |
44438 | echo "${ECHO_T}$GST_INSPECT" >&6 | |
44439 | else | |
44440 | echo "$as_me:$LINENO: result: no" >&5 | |
44441 | echo "${ECHO_T}no" >&6 | |
44442 | fi | |
44443 | ||
44444 | fi | |
44445 | ||
44446 | if test "x$GST_INSPECT" != "x"; then | |
44447 | echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5 | |
44448 | echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6 | |
44449 | if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then | |
44450 | echo "$as_me:$LINENO: result: found." >&5 | |
44451 | echo "${ECHO_T}found." >&6 | |
ce756cb0 | 44452 | |
ce756cb0 | 44453 | else |
dae87f93 RN |
44454 | echo "$as_me:$LINENO: result: not found." >&5 |
44455 | echo "${ECHO_T}not found." >&6 | |
44456 | ||
44457 | wxUSE_GSTREAMER="no" | |
44458 | { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5 | |
44459 | echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;} | |
44460 | ||
44461 | fi | |
44462 | fi | |
44463 | ||
44464 | ||
44465 | echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5 | |
44466 | echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6 | |
44467 | if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then | |
44468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44469 | else | |
44470 | cat >conftest.$ac_ext <<_ACEOF | |
ce756cb0 RN |
44471 | /* confdefs.h. */ |
44472 | _ACEOF | |
44473 | cat confdefs.h >>conftest.$ac_ext | |
44474 | cat >>conftest.$ac_ext <<_ACEOF | |
44475 | /* end confdefs.h. */ | |
dae87f93 | 44476 | #include <gst/gst.h> |
ce756cb0 | 44477 | |
dae87f93 | 44478 | #include <gst/xoverlay/xoverlay.h> |
ce756cb0 RN |
44479 | _ACEOF |
44480 | rm -f conftest.$ac_objext | |
44481 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
44482 | (eval $ac_compile) 2>conftest.er1 | |
44483 | ac_status=$? | |
44484 | grep -v '^ *+' conftest.er1 >conftest.err | |
44485 | rm -f conftest.er1 | |
44486 | cat conftest.err >&5 | |
44487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44488 | (exit $ac_status); } && | |
3565d135 RR |
44489 | { ac_try='test -z "$ac_c_werror_flag" |
44490 | || test ! -s conftest.err' | |
ce756cb0 RN |
44491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44492 | (eval $ac_try) 2>&5 | |
44493 | ac_status=$? | |
44494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44495 | (exit $ac_status); }; } && | |
44496 | { ac_try='test -s conftest.$ac_objext' | |
44497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
44498 | (eval $ac_try) 2>&5 | |
44499 | ac_status=$? | |
44500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44501 | (exit $ac_status); }; }; then | |
dae87f93 | 44502 | ac_cv_header_gst_xoverlay_xoverlay_h=yes |
ce756cb0 RN |
44503 | else |
44504 | echo "$as_me: failed program was:" >&5 | |
44505 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44506 | ||
dae87f93 | 44507 | ac_cv_header_gst_xoverlay_xoverlay_h=no |
ce756cb0 RN |
44508 | fi |
44509 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
dae87f93 RN |
44510 | fi |
44511 | echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5 | |
44512 | echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6 | |
44513 | if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then | |
44514 | : | |
44515 | else | |
ce756cb0 | 44516 | |
dae87f93 RN |
44517 | wxUSE_GSTREAMER="no" |
44518 | { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5 | |
44519 | echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;} | |
ce756cb0 | 44520 | |
dae87f93 | 44521 | fi |
ce756cb0 | 44522 | |
dae87f93 RN |
44523 | |
44524 | ||
44525 | echo "$as_me:$LINENO: checking for gstplay 0.8" >&5 | |
ce756cb0 RN |
44526 | echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6 |
44527 | ||
0ad5d837 VZ |
44528 | ac_find_libraries= |
44529 | for ac_dir in $SEARCH_LIB; | |
ce756cb0 | 44530 | do |
3eca31dc | 44531 | for ac_extension in a so sl dylib dll.a; do |
ce756cb0 RN |
44532 | if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then |
44533 | ac_find_libraries=$ac_dir | |
44534 | break 2 | |
44535 | fi | |
44536 | done | |
44537 | done | |
44538 | ||
ce756cb0 | 44539 | |
dae87f93 RN |
44540 | if test "$ac_find_libraries" = "" ; then |
44541 | echo "$as_me:$LINENO: result: no" >&5 | |
44542 | echo "${ECHO_T}no" >&6 | |
44543 | wxUSE_GSTREAMER="no" | |
44544 | else | |
44545 | echo "$as_me:$LINENO: result: yes" >&5 | |
ce756cb0 | 44546 | echo "${ECHO_T}yes" >&6 |
dae87f93 | 44547 | fi |
ce756cb0 | 44548 | |
dae87f93 RN |
44549 | if test "$wxUSE_GSTREAMER" = "yes"; then |
44550 | cat >>confdefs.h <<\_ACEOF | |
ce756cb0 RN |
44551 | #define wxUSE_GSTREAMER 1 |
44552 | _ACEOF | |
44553 | ||
dae87f93 RN |
44554 | echo "$as_me:$LINENO: result: GStreamer detection successful" >&5 |
44555 | echo "${ECHO_T}GStreamer detection successful" >&6 | |
ce756cb0 RN |
44556 | fi |
44557 | fi | |
44558 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer" | |
44559 | cat >>confdefs.h <<\_ACEOF | |
44560 | #define wxUSE_MEDIACTRL 1 | |
44561 | _ACEOF | |
44562 | ||
44563 | fi | |
44564 | ||
44565 | ||
a848cd7e SC |
44566 | if test "$cross_compiling" = "yes"; then |
44567 | OSINFO="\"$host\"" | |
44568 | else | |
44569 | OSINFO=`uname -s -r -m` | |
44570 | OSINFO="\"$OSINFO\"" | |
44571 | fi | |
44572 | ||
44573 | cat >>confdefs.h <<_ACEOF | |
44574 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
44575 | _ACEOF | |
44576 | ||
44577 | ||
44578 | ||
44579 | if test "x$prefix" != "xNONE"; then | |
44580 | wxPREFIX=$prefix | |
44581 | else | |
44582 | wxPREFIX=$ac_default_prefix | |
44583 | fi | |
44584 | ||
44585 | cat >>confdefs.h <<_ACEOF | |
44586 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
44587 | _ACEOF | |
44588 | ||
44589 | ||
a848cd7e SC |
44590 | |
44591 | ||
44592 | CORE_BASE_LIBS="net base" | |
44593 | CORE_GUI_LIBS="adv core" | |
44594 | ||
44595 | if test "$wxUSE_XML" = "yes" ; then | |
44596 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
44597 | fi | |
44598 | if test "$wxUSE_ODBC" != "no" ; then | |
44599 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
44600 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
44601 | fi | |
44602 | if test "$wxUSE_HTML" = "yes" ; then | |
44603 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
44604 | fi | |
61639efb VZ |
44605 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
44606 | CORE_GUI_LIBS="qa $CORE_GUI_LIBS" | |
44607 | fi | |
9a8f0513 VS |
44608 | if test "$wxUSE_XRC" = "yes" ; then |
44609 | CORE_GUI_LIBS="xrc $CORE_GUI_LIBS" | |
44610 | fi | |
a848cd7e SC |
44611 | |
44612 | if test "$wxUSE_GUI" != "yes"; then | |
44613 | CORE_GUI_LIBS="" | |
44614 | fi | |
44615 | ||
44616 | ||
44617 | ||
44618 | ||
44619 | ||
44620 | ||
44621 | ||
44622 | ||
44623 | if test "$wxUSE_MAC" = 1 ; then | |
a98bf0c0 | 44624 | if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then |
1e9e8aba DE |
44625 | if test "$USE_DARWIN" = 1; then |
44626 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
44627 | else | |
44628 | LDFLAGS="$LDFLAGS -lQuickTimeLib" | |
44629 | fi | |
07bea8f0 | 44630 | fi |
5dcf30a0 | 44631 | if test "$USE_DARWIN" = 1; then |
1e9e8aba DE |
44632 | LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System" |
44633 | else | |
44634 | LDFLAGS="$LDFLAGS -lCarbonLib" | |
5dcf30a0 | 44635 | fi |
a848cd7e SC |
44636 | fi |
44637 | if test "$wxUSE_COCOA" = 1 ; then | |
4cb1d3da | 44638 | LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa" |
4fc81cbc RN |
44639 | if test "$wxUSE_MEDIACTRL" = "yes"; then |
44640 | LDFLAGS="$LDFLAGS -framework QuickTime" | |
44641 | fi | |
a848cd7e | 44642 | fi |
19b27e78 MW |
44643 | if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then |
44644 | LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices" | |
44645 | fi | |
a848cd7e SC |
44646 | |
44647 | ||
44648 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" | |
44649 | ||
44650 | have_cos=0 | |
44651 | have_floor=0 | |
44652 | ||
44653 | for ac_func in cos | |
44654 | do | |
44655 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
44656 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
44657 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
44658 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
44659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44660 | else | |
44661 | cat >conftest.$ac_ext <<_ACEOF | |
44662 | /* confdefs.h. */ | |
44663 | _ACEOF | |
44664 | cat confdefs.h >>conftest.$ac_ext | |
44665 | cat >>conftest.$ac_ext <<_ACEOF | |
44666 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
44667 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
44668 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
44669 | #define $ac_func innocuous_$ac_func | |
44670 | ||
a848cd7e SC |
44671 | /* System header to define __stub macros and hopefully few prototypes, |
44672 | which can conflict with char $ac_func (); below. | |
44673 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
44674 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 44675 | |
a848cd7e SC |
44676 | #ifdef __STDC__ |
44677 | # include <limits.h> | |
44678 | #else | |
44679 | # include <assert.h> | |
44680 | #endif | |
ac1cb8d3 VS |
44681 | |
44682 | #undef $ac_func | |
44683 | ||
a848cd7e SC |
44684 | /* Override any gcc2 internal prototype to avoid an error. */ |
44685 | #ifdef __cplusplus | |
44686 | extern "C" | |
44687 | { | |
44688 | #endif | |
44689 | /* We use char because int might match the return type of a gcc2 | |
44690 | builtin and then its argument prototype would still apply. */ | |
44691 | char $ac_func (); | |
44692 | /* The GNU C library defines this for functions which it implements | |
44693 | to always fail with ENOSYS. Some functions are actually named | |
44694 | something starting with __ and the normal name is an alias. */ | |
44695 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
44696 | choke me | |
44697 | #else | |
44698 | char (*f) () = $ac_func; | |
44699 | #endif | |
44700 | #ifdef __cplusplus | |
44701 | } | |
44702 | #endif | |
44703 | ||
44704 | int | |
44705 | main () | |
44706 | { | |
44707 | return f != $ac_func; | |
44708 | ; | |
44709 | return 0; | |
44710 | } | |
44711 | _ACEOF | |
44712 | rm -f conftest.$ac_objext conftest$ac_exeext | |
44713 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 44714 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 44715 | ac_status=$? |
ac1cb8d3 VS |
44716 | grep -v '^ *+' conftest.er1 >conftest.err |
44717 | rm -f conftest.er1 | |
44718 | cat conftest.err >&5 | |
a848cd7e SC |
44719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
44720 | (exit $ac_status); } && | |
3565d135 RR |
44721 | { ac_try='test -z "$ac_c_werror_flag" |
44722 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
44723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44724 | (eval $ac_try) 2>&5 | |
44725 | ac_status=$? | |
44726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44727 | (exit $ac_status); }; } && | |
44728 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
44729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44730 | (eval $ac_try) 2>&5 | |
44731 | ac_status=$? | |
44732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44733 | (exit $ac_status); }; }; then | |
44734 | eval "$as_ac_var=yes" | |
44735 | else | |
44736 | echo "$as_me: failed program was:" >&5 | |
44737 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44738 | ||
44739 | eval "$as_ac_var=no" | |
44740 | fi | |
ac1cb8d3 VS |
44741 | rm -f conftest.err conftest.$ac_objext \ |
44742 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
44743 | fi |
44744 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
44745 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
44746 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
44747 | cat >>confdefs.h <<_ACEOF | |
44748 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
44749 | _ACEOF | |
44750 | have_cos=1 | |
44751 | fi | |
44752 | done | |
44753 | ||
44754 | ||
44755 | for ac_func in floor | |
44756 | do | |
44757 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
44758 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
44759 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
44760 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
44761 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44762 | else | |
44763 | cat >conftest.$ac_ext <<_ACEOF | |
44764 | /* confdefs.h. */ | |
44765 | _ACEOF | |
44766 | cat confdefs.h >>conftest.$ac_ext | |
44767 | cat >>conftest.$ac_ext <<_ACEOF | |
44768 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
44769 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
44770 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
44771 | #define $ac_func innocuous_$ac_func | |
44772 | ||
a848cd7e SC |
44773 | /* System header to define __stub macros and hopefully few prototypes, |
44774 | which can conflict with char $ac_func (); below. | |
44775 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
44776 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 44777 | |
a848cd7e SC |
44778 | #ifdef __STDC__ |
44779 | # include <limits.h> | |
44780 | #else | |
44781 | # include <assert.h> | |
44782 | #endif | |
ac1cb8d3 VS |
44783 | |
44784 | #undef $ac_func | |
44785 | ||
a848cd7e SC |
44786 | /* Override any gcc2 internal prototype to avoid an error. */ |
44787 | #ifdef __cplusplus | |
44788 | extern "C" | |
44789 | { | |
44790 | #endif | |
44791 | /* We use char because int might match the return type of a gcc2 | |
44792 | builtin and then its argument prototype would still apply. */ | |
44793 | char $ac_func (); | |
44794 | /* The GNU C library defines this for functions which it implements | |
44795 | to always fail with ENOSYS. Some functions are actually named | |
44796 | something starting with __ and the normal name is an alias. */ | |
44797 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
44798 | choke me | |
44799 | #else | |
44800 | char (*f) () = $ac_func; | |
44801 | #endif | |
44802 | #ifdef __cplusplus | |
44803 | } | |
44804 | #endif | |
44805 | ||
44806 | int | |
44807 | main () | |
44808 | { | |
44809 | return f != $ac_func; | |
44810 | ; | |
44811 | return 0; | |
44812 | } | |
44813 | _ACEOF | |
44814 | rm -f conftest.$ac_objext conftest$ac_exeext | |
44815 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 44816 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 44817 | ac_status=$? |
ac1cb8d3 VS |
44818 | grep -v '^ *+' conftest.er1 >conftest.err |
44819 | rm -f conftest.er1 | |
44820 | cat conftest.err >&5 | |
a848cd7e SC |
44821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
44822 | (exit $ac_status); } && | |
3565d135 RR |
44823 | { ac_try='test -z "$ac_c_werror_flag" |
44824 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
44825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44826 | (eval $ac_try) 2>&5 | |
44827 | ac_status=$? | |
44828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44829 | (exit $ac_status); }; } && | |
44830 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
44831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44832 | (eval $ac_try) 2>&5 | |
44833 | ac_status=$? | |
44834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44835 | (exit $ac_status); }; }; then | |
44836 | eval "$as_ac_var=yes" | |
44837 | else | |
44838 | echo "$as_me: failed program was:" >&5 | |
44839 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44840 | ||
44841 | eval "$as_ac_var=no" | |
44842 | fi | |
ac1cb8d3 VS |
44843 | rm -f conftest.err conftest.$ac_objext \ |
44844 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
44845 | fi |
44846 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
44847 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
44848 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
44849 | cat >>confdefs.h <<_ACEOF | |
44850 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
44851 | _ACEOF | |
44852 | have_floor=1 | |
44853 | fi | |
44854 | done | |
44855 | ||
44856 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 | |
44857 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
44858 | if test "$have_cos" = 1 -a "$have_floor" = 1; then | |
44859 | echo "$as_me:$LINENO: result: yes" >&5 | |
44860 | echo "${ECHO_T}yes" >&6 | |
44861 | else | |
44862 | echo "$as_me:$LINENO: result: no" >&5 | |
44863 | echo "${ECHO_T}no" >&6 | |
44864 | LIBS="$LIBS -lm" | |
44865 | # use different functions to avoid configure caching | |
44866 | have_sin=0 | |
44867 | have_ceil=0 | |
44868 | ||
44869 | for ac_func in sin | |
44870 | do | |
44871 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
44872 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
44873 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
44874 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
44875 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44876 | else | |
44877 | cat >conftest.$ac_ext <<_ACEOF | |
44878 | /* confdefs.h. */ | |
44879 | _ACEOF | |
44880 | cat confdefs.h >>conftest.$ac_ext | |
44881 | cat >>conftest.$ac_ext <<_ACEOF | |
44882 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
44883 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
44884 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
44885 | #define $ac_func innocuous_$ac_func | |
44886 | ||
a848cd7e SC |
44887 | /* System header to define __stub macros and hopefully few prototypes, |
44888 | which can conflict with char $ac_func (); below. | |
44889 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
44890 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 44891 | |
a848cd7e SC |
44892 | #ifdef __STDC__ |
44893 | # include <limits.h> | |
44894 | #else | |
44895 | # include <assert.h> | |
44896 | #endif | |
ac1cb8d3 VS |
44897 | |
44898 | #undef $ac_func | |
44899 | ||
a848cd7e SC |
44900 | /* Override any gcc2 internal prototype to avoid an error. */ |
44901 | #ifdef __cplusplus | |
44902 | extern "C" | |
44903 | { | |
44904 | #endif | |
44905 | /* We use char because int might match the return type of a gcc2 | |
44906 | builtin and then its argument prototype would still apply. */ | |
44907 | char $ac_func (); | |
44908 | /* The GNU C library defines this for functions which it implements | |
44909 | to always fail with ENOSYS. Some functions are actually named | |
44910 | something starting with __ and the normal name is an alias. */ | |
44911 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
44912 | choke me | |
44913 | #else | |
44914 | char (*f) () = $ac_func; | |
44915 | #endif | |
44916 | #ifdef __cplusplus | |
44917 | } | |
44918 | #endif | |
44919 | ||
44920 | int | |
44921 | main () | |
44922 | { | |
44923 | return f != $ac_func; | |
44924 | ; | |
44925 | return 0; | |
44926 | } | |
44927 | _ACEOF | |
44928 | rm -f conftest.$ac_objext conftest$ac_exeext | |
44929 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 44930 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 44931 | ac_status=$? |
ac1cb8d3 VS |
44932 | grep -v '^ *+' conftest.er1 >conftest.err |
44933 | rm -f conftest.er1 | |
44934 | cat conftest.err >&5 | |
a848cd7e SC |
44935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
44936 | (exit $ac_status); } && | |
3565d135 RR |
44937 | { ac_try='test -z "$ac_c_werror_flag" |
44938 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
44939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44940 | (eval $ac_try) 2>&5 | |
44941 | ac_status=$? | |
44942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44943 | (exit $ac_status); }; } && | |
44944 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
44945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
44946 | (eval $ac_try) 2>&5 | |
44947 | ac_status=$? | |
44948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
44949 | (exit $ac_status); }; }; then | |
44950 | eval "$as_ac_var=yes" | |
44951 | else | |
44952 | echo "$as_me: failed program was:" >&5 | |
44953 | sed 's/^/| /' conftest.$ac_ext >&5 | |
44954 | ||
44955 | eval "$as_ac_var=no" | |
44956 | fi | |
ac1cb8d3 VS |
44957 | rm -f conftest.err conftest.$ac_objext \ |
44958 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
44959 | fi |
44960 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
44961 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
44962 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
44963 | cat >>confdefs.h <<_ACEOF | |
44964 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
44965 | _ACEOF | |
44966 | have_sin=1 | |
44967 | fi | |
44968 | done | |
44969 | ||
44970 | ||
44971 | for ac_func in ceil | |
44972 | do | |
44973 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
44974 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
44975 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
44976 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
44977 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
44978 | else | |
44979 | cat >conftest.$ac_ext <<_ACEOF | |
44980 | /* confdefs.h. */ | |
44981 | _ACEOF | |
44982 | cat confdefs.h >>conftest.$ac_ext | |
44983 | cat >>conftest.$ac_ext <<_ACEOF | |
44984 | /* end confdefs.h. */ | |
ac1cb8d3 VS |
44985 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
44986 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
44987 | #define $ac_func innocuous_$ac_func | |
44988 | ||
a848cd7e SC |
44989 | /* System header to define __stub macros and hopefully few prototypes, |
44990 | which can conflict with char $ac_func (); below. | |
44991 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
44992 | <limits.h> exists even on freestanding compilers. */ | |
ac1cb8d3 | 44993 | |
a848cd7e SC |
44994 | #ifdef __STDC__ |
44995 | # include <limits.h> | |
44996 | #else | |
44997 | # include <assert.h> | |
44998 | #endif | |
ac1cb8d3 VS |
44999 | |
45000 | #undef $ac_func | |
45001 | ||
a848cd7e SC |
45002 | /* Override any gcc2 internal prototype to avoid an error. */ |
45003 | #ifdef __cplusplus | |
45004 | extern "C" | |
45005 | { | |
45006 | #endif | |
45007 | /* We use char because int might match the return type of a gcc2 | |
45008 | builtin and then its argument prototype would still apply. */ | |
45009 | char $ac_func (); | |
45010 | /* The GNU C library defines this for functions which it implements | |
45011 | to always fail with ENOSYS. Some functions are actually named | |
45012 | something starting with __ and the normal name is an alias. */ | |
45013 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
45014 | choke me | |
45015 | #else | |
45016 | char (*f) () = $ac_func; | |
45017 | #endif | |
45018 | #ifdef __cplusplus | |
45019 | } | |
45020 | #endif | |
45021 | ||
45022 | int | |
45023 | main () | |
45024 | { | |
45025 | return f != $ac_func; | |
45026 | ; | |
45027 | return 0; | |
45028 | } | |
45029 | _ACEOF | |
45030 | rm -f conftest.$ac_objext conftest$ac_exeext | |
45031 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ac1cb8d3 | 45032 | (eval $ac_link) 2>conftest.er1 |
a848cd7e | 45033 | ac_status=$? |
ac1cb8d3 VS |
45034 | grep -v '^ *+' conftest.er1 >conftest.err |
45035 | rm -f conftest.er1 | |
45036 | cat conftest.err >&5 | |
a848cd7e SC |
45037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
45038 | (exit $ac_status); } && | |
3565d135 RR |
45039 | { ac_try='test -z "$ac_c_werror_flag" |
45040 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
45041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
45042 | (eval $ac_try) 2>&5 | |
45043 | ac_status=$? | |
45044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45045 | (exit $ac_status); }; } && | |
45046 | { ac_try='test -s conftest$ac_exeext' | |
a848cd7e SC |
45047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
45048 | (eval $ac_try) 2>&5 | |
45049 | ac_status=$? | |
45050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
45051 | (exit $ac_status); }; }; then | |
45052 | eval "$as_ac_var=yes" | |
45053 | else | |
45054 | echo "$as_me: failed program was:" >&5 | |
45055 | sed 's/^/| /' conftest.$ac_ext >&5 | |
45056 | ||
45057 | eval "$as_ac_var=no" | |
45058 | fi | |
ac1cb8d3 VS |
45059 | rm -f conftest.err conftest.$ac_objext \ |
45060 | conftest$ac_exeext conftest.$ac_ext | |
a848cd7e SC |
45061 | fi |
45062 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
45063 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
45064 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
45065 | cat >>confdefs.h <<_ACEOF | |
45066 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
45067 | _ACEOF | |
45068 | have_ceil=1 | |
45069 | fi | |
45070 | done | |
45071 | ||
45072 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 | |
45073 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
45074 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then | |
45075 | echo "$as_me:$LINENO: result: yes" >&5 | |
45076 | echo "${ECHO_T}yes" >&6 | |
45077 | else | |
45078 | echo "$as_me:$LINENO: result: no" >&5 | |
45079 | echo "${ECHO_T}no" >&6 | |
45080 | # not sure we should warn the user, crash, etc. | |
45081 | fi | |
45082 | fi | |
45083 | ||
45084 | if test "$wxUSE_GUI" = "yes"; then | |
45085 | ||
45086 | ||
8bce5cda MW |
45087 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \ |
45088 | dynamic erase event exec font image minimal mobile \ | |
45089 | mobile/wxedit mobile/styles propsize render \ | |
45090 | richedit rotate shaped vscroll widgets" | |
a848cd7e SC |
45091 | |
45092 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
45093 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
45094 | fi | |
0b78747f | 45095 | if test "$TOOLKIT" = "MSW"; then |
8bce5cda MW |
45096 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest" |
45097 | if test "$wxUSE_UNIVERSAL" != "yes"; then | |
45098 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg" | |
45099 | fi | |
45100 | fi | |
45101 | if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then | |
45102 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw" | |
0b78747f | 45103 | fi |
a848cd7e SC |
45104 | else |
45105 | SAMPLES_SUBDIRS="console" | |
45106 | fi | |
45107 | ||
45108 | ||
48f625bc | 45109 | if test "x$INTELCC" = "xyes" ; then |
17a1ebd1 VZ |
45110 | CWARNINGS="-Wall -wd810,869,981,1418,1572,1684" |
45111 | elif test "$GCC" = yes ; then | |
45112 | CWARNINGS="-Wall -Wundef" | |
45113 | fi | |
45114 | ||
48f625bc | 45115 | if test "x$INTELCXX" = "xyes" ; then |
7f47faf4 | 45116 | CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419" |
17a1ebd1 VZ |
45117 | elif test "$GXX" = yes ; then |
45118 | CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy" | |
6ebeb4c7 | 45119 | fi |
a848cd7e | 45120 | |
a848cd7e | 45121 | |
5ff751d6 VZ |
45122 | WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS` |
45123 | WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS` | |
45124 | ||
45125 | ||
c92ad099 | 45126 | CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \ |
bc6ee4ae | 45127 | -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \ |
c92ad099 VZ |
45128 | -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \ |
45129 | $CPPFLAGS ` | |
5ff751d6 | 45130 | |
8aeeb05c | 45131 | C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS" |
c92ad099 | 45132 | CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS ` |
9cbac6d1 | 45133 | CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS ` |
5ff751d6 VZ |
45134 | |
45135 | WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS` | |
45136 | ||
a848cd7e | 45137 | |
95986553 DE |
45138 | if test "x$MWCC" = "xyes"; then |
45139 | ||
45140 | CC="$CC -cwd source -I-" | |
45141 | CXX="$CXX -cwd source -I-" | |
45142 | fi | |
45143 | ||
a848cd7e | 45144 | |
0c3c69fc | 45145 | LIBS=`echo $LIBS` |
a848cd7e SC |
45146 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
45147 | EXTRALIBS_XML="$EXPAT_LINK" | |
45148 | EXTRALIBS_HTML="$MSPACK_LINK" | |
45149 | EXTRALIBS_ODBC="$ODBC_LINK" | |
45150 | if test "$wxUSE_GUI" = "yes"; then | |
3565d135 | 45151 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEPRINT` |
a848cd7e SC |
45152 | fi |
45153 | if test "$wxUSE_OPENGL" = "yes"; then | |
45154 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
45155 | fi | |
45156 | ||
8aeeb05c | 45157 | LDFLAGS="$LDFLAGS $PROFILE_FLAGS" |
a848cd7e | 45158 | |
5ff751d6 | 45159 | WXCONFIG_LIBS="$LIBS" |
a848cd7e SC |
45160 | |
45161 | if test "$wxUSE_REGEX" = "builtin" ; then | |
74802184 | 45162 | wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty" |
a848cd7e SC |
45163 | fi |
45164 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
74802184 | 45165 | wxconfig_3rdparty="expat $wxconfig_3rdparty" |
a848cd7e SC |
45166 | fi |
45167 | if test "$wxUSE_ODBC" = "builtin" ; then | |
74802184 | 45168 | wxconfig_3rdparty="odbc $wxconfig_3rdparty" |
a848cd7e SC |
45169 | fi |
45170 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
74802184 | 45171 | wxconfig_3rdparty="tiff $wxconfig_3rdparty" |
a848cd7e SC |
45172 | fi |
45173 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
74802184 | 45174 | wxconfig_3rdparty="jpeg $wxconfig_3rdparty" |
a848cd7e SC |
45175 | fi |
45176 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
74802184 | 45177 | wxconfig_3rdparty="png $wxconfig_3rdparty" |
a848cd7e SC |
45178 | fi |
45179 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
74802184 | 45180 | wxconfig_3rdparty="zlib $wxconfig_3rdparty" |
a848cd7e SC |
45181 | fi |
45182 | ||
45183 | for i in $wxconfig_3rdparty ; do | |
5ff751d6 | 45184 | WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS" |
a848cd7e SC |
45185 | done |
45186 | ||
45187 | ||
45188 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then | |
45189 | WXUNIV=1 | |
45190 | else | |
45191 | WXUNIV=0 | |
45192 | fi | |
45193 | ||
45194 | ||
45195 | ||
45196 | ||
45197 | ||
45198 | ||
45199 | ||
45200 | ||
45201 | ||
45202 | if test $wxUSE_MONOLITHIC = "yes" ; then | |
45203 | MONOLITHIC=1 | |
45204 | else | |
45205 | MONOLITHIC=0 | |
45206 | fi | |
45207 | ||
45208 | if test $wxUSE_PLUGINS = "yes" ; then | |
45209 | USE_PLUGINS=1 | |
45210 | else | |
45211 | USE_PLUGINS=0 | |
45212 | fi | |
45213 | ||
45214 | if test $wxUSE_ODBC != "no" ; then | |
45215 | USE_ODBC=1 | |
45216 | else | |
45217 | USE_ODBC=0 | |
45218 | fi | |
45219 | ||
16358932 VZ |
45220 | if test "$wxUSE_DEBUGREPORT" = "yes" ; then |
45221 | USE_QA=1 | |
45222 | else | |
45223 | USE_QA=0 | |
45224 | fi | |
45225 | ||
a848cd7e SC |
45226 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then |
45227 | OFFICIAL_BUILD=1 | |
45228 | else | |
45229 | OFFICIAL_BUILD=0 | |
45230 | fi | |
45231 | ||
45232 | ||
45233 | ||
45234 | ||
45235 | ||
45236 | ||
45237 | ||
45238 | ||
45239 | ||
45240 | ||
45241 | ||
45242 | ||
45243 | ||
45244 | ||
45245 | ||
45246 | ||
45247 | ||
45248 | ||
45249 | ||
ceec2216 | 45250 | |
d1c38808 | 45251 | |
3565d135 | 45252 | |
a848cd7e SC |
45253 | |
45254 | ||
45255 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` | |
45256 | ||
45257 | ||
45258 | ||
45259 | ||
45260 | ||
45261 | ||
45262 | ||
45263 | ||
4d4ff94c VZ |
45264 | case "$TOOLKIT" in |
45265 | GTK) | |
45266 | TOOLKIT_USER="GTK+" | |
45267 | if test "$WXGTK20" = 1; then | |
45268 | TOOLKIT_USER="$TOOLKIT_USER 2" | |
45269 | fi | |
9a8f0513 | 45270 | ;; |
4d4ff94c VZ |
45271 | |
45272 | *) | |
45273 | TOOLKIT_USER=$TOOLKIT_LOWERCASE | |
9a8f0513 | 45274 | ;; |
4d4ff94c | 45275 | esac |
a848cd7e | 45276 | |
fb00f58d JS |
45277 | if test "$wxUSE_WINE" = "yes"; then |
45278 | BAKEFILE_FORCE_PLATFORM=win32 | |
45279 | fi | |
45280 | ||
9a8f0513 | 45281 | |
1e9e8aba DE |
45282 | |
45283 | ||
a848cd7e SC |
45284 | if test "x$BAKEFILE_HOST" = "x"; then |
45285 | BAKEFILE_HOST="${host}" | |
45286 | fi | |
45287 | ||
45288 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then | |
45289 | ||
45290 | if test -n "$ac_tool_prefix"; then | |
45291 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
45292 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
45293 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45294 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45295 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
45296 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45297 | else | |
45298 | if test -n "$RANLIB"; then | |
45299 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
45300 | else | |
45301 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45302 | for as_dir in $PATH | |
45303 | do | |
45304 | IFS=$as_save_IFS | |
45305 | test -z "$as_dir" && as_dir=. | |
45306 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45307 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45308 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
45309 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45310 | break 2 | |
45311 | fi | |
45312 | done | |
45313 | done | |
45314 | ||
45315 | fi | |
45316 | fi | |
45317 | RANLIB=$ac_cv_prog_RANLIB | |
45318 | if test -n "$RANLIB"; then | |
45319 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
45320 | echo "${ECHO_T}$RANLIB" >&6 | |
45321 | else | |
45322 | echo "$as_me:$LINENO: result: no" >&5 | |
45323 | echo "${ECHO_T}no" >&6 | |
45324 | fi | |
45325 | ||
45326 | fi | |
45327 | if test -z "$ac_cv_prog_RANLIB"; then | |
45328 | ac_ct_RANLIB=$RANLIB | |
45329 | # Extract the first word of "ranlib", so it can be a program name with args. | |
45330 | set dummy ranlib; ac_word=$2 | |
45331 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45332 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45333 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
45334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45335 | else | |
45336 | if test -n "$ac_ct_RANLIB"; then | |
45337 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
45338 | else | |
45339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45340 | for as_dir in $PATH | |
45341 | do | |
45342 | IFS=$as_save_IFS | |
45343 | test -z "$as_dir" && as_dir=. | |
45344 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45345 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45346 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
45347 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45348 | break 2 | |
45349 | fi | |
45350 | done | |
45351 | done | |
45352 | ||
45353 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
45354 | fi | |
45355 | fi | |
45356 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
45357 | if test -n "$ac_ct_RANLIB"; then | |
45358 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
45359 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
45360 | else | |
45361 | echo "$as_me:$LINENO: result: no" >&5 | |
45362 | echo "${ECHO_T}no" >&6 | |
45363 | fi | |
45364 | ||
45365 | RANLIB=$ac_ct_RANLIB | |
45366 | else | |
45367 | RANLIB="$ac_cv_prog_RANLIB" | |
45368 | fi | |
45369 | ||
45370 | # Find a good install program. We prefer a C program (faster), | |
45371 | # so one script is as good as another. But avoid the broken or | |
45372 | # incompatible versions: | |
45373 | # SysV /etc/install, /usr/sbin/install | |
45374 | # SunOS /usr/etc/install | |
45375 | # IRIX /sbin/install | |
45376 | # AIX /bin/install | |
45377 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
45378 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
45379 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
45380 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ac1cb8d3 | 45381 | # OS/2's system install, which has a completely different semantic |
a848cd7e SC |
45382 | # ./install, which can be erroneously created by make from ./install.sh. |
45383 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
45384 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
45385 | if test -z "$INSTALL"; then | |
45386 | if test "${ac_cv_path_install+set}" = set; then | |
45387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45388 | else | |
45389 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45390 | for as_dir in $PATH | |
45391 | do | |
45392 | IFS=$as_save_IFS | |
45393 | test -z "$as_dir" && as_dir=. | |
45394 | # Account for people who put trailing slashes in PATH elements. | |
45395 | case $as_dir/ in | |
45396 | ./ | .// | /cC/* | \ | |
45397 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ac1cb8d3 | 45398 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
a848cd7e SC |
45399 | /usr/ucb/* ) ;; |
45400 | *) | |
45401 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
45402 | # Don't use installbsd from OSF since it installs stuff as root | |
45403 | # by default. | |
45404 | for ac_prog in ginstall scoinst install; do | |
45405 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ac1cb8d3 VS |
45406 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
45407 | if test $ac_prog = install && | |
45408 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
45409 | # AIX install. It has an incompatible calling convention. | |
45410 | : | |
45411 | elif test $ac_prog = install && | |
45412 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
45413 | # program-specific install script used by HP pwplus--don't use. | |
45414 | : | |
45415 | else | |
45416 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
45417 | break 3 | |
45418 | fi | |
45419 | fi | |
a848cd7e SC |
45420 | done |
45421 | done | |
45422 | ;; | |
45423 | esac | |
45424 | done | |
45425 | ||
45426 | ||
45427 | fi | |
45428 | if test "${ac_cv_path_install+set}" = set; then | |
45429 | INSTALL=$ac_cv_path_install | |
45430 | else | |
45431 | # As a last resort, use the slow shell script. We don't cache a | |
45432 | # path for INSTALL within a source directory, because that will | |
45433 | # break other packages using the cache if that directory is | |
45434 | # removed, or if the path is relative. | |
45435 | INSTALL=$ac_install_sh | |
45436 | fi | |
45437 | fi | |
45438 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
45439 | echo "${ECHO_T}$INSTALL" >&6 | |
45440 | ||
45441 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
45442 | # It thinks the first close brace ends the variable substitution. | |
45443 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
45444 | ||
45445 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
45446 | ||
45447 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
45448 | ||
45449 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
45450 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
45451 | LN_S=$as_ln_s | |
45452 | if test "$LN_S" = "ln -s"; then | |
45453 | echo "$as_me:$LINENO: result: yes" >&5 | |
45454 | echo "${ECHO_T}yes" >&6 | |
45455 | else | |
45456 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
45457 | echo "${ECHO_T}no, using $LN_S" >&6 | |
45458 | fi | |
45459 | ||
45460 | ||
45461 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
45462 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 45463 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
45464 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
45465 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45466 | else | |
45467 | cat >conftest.make <<\_ACEOF | |
45468 | all: | |
45469 | @echo 'ac_maketemp="$(MAKE)"' | |
45470 | _ACEOF | |
45471 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
45472 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
45473 | if test -n "$ac_maketemp"; then | |
45474 | eval ac_cv_prog_make_${ac_make}_set=yes | |
45475 | else | |
45476 | eval ac_cv_prog_make_${ac_make}_set=no | |
45477 | fi | |
45478 | rm -f conftest.make | |
45479 | fi | |
45480 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
45481 | echo "$as_me:$LINENO: result: yes" >&5 | |
45482 | echo "${ECHO_T}yes" >&6 | |
45483 | SET_MAKE= | |
45484 | else | |
45485 | echo "$as_me:$LINENO: result: no" >&5 | |
45486 | echo "${ECHO_T}no" >&6 | |
45487 | SET_MAKE="MAKE=${MAKE-make}" | |
45488 | fi | |
45489 | ||
45490 | ||
45491 | ||
45492 | if test -n "$ac_tool_prefix"; then | |
45493 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
45494 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
45495 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45496 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45497 | if test "${ac_cv_prog_AR+set}" = set; then | |
45498 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45499 | else | |
45500 | if test -n "$AR"; then | |
45501 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
45502 | else | |
45503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45504 | for as_dir in $PATH | |
45505 | do | |
45506 | IFS=$as_save_IFS | |
45507 | test -z "$as_dir" && as_dir=. | |
45508 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45509 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45510 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
45511 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45512 | break 2 | |
45513 | fi | |
45514 | done | |
45515 | done | |
45516 | ||
45517 | fi | |
45518 | fi | |
45519 | AR=$ac_cv_prog_AR | |
45520 | if test -n "$AR"; then | |
45521 | echo "$as_me:$LINENO: result: $AR" >&5 | |
45522 | echo "${ECHO_T}$AR" >&6 | |
45523 | else | |
45524 | echo "$as_me:$LINENO: result: no" >&5 | |
45525 | echo "${ECHO_T}no" >&6 | |
45526 | fi | |
45527 | ||
45528 | fi | |
45529 | if test -z "$ac_cv_prog_AR"; then | |
45530 | ac_ct_AR=$AR | |
45531 | # Extract the first word of "ar", so it can be a program name with args. | |
45532 | set dummy ar; ac_word=$2 | |
45533 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45534 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45535 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
45536 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45537 | else | |
45538 | if test -n "$ac_ct_AR"; then | |
45539 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
45540 | else | |
45541 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45542 | for as_dir in $PATH | |
45543 | do | |
45544 | IFS=$as_save_IFS | |
45545 | test -z "$as_dir" && as_dir=. | |
45546 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45547 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45548 | ac_cv_prog_ac_ct_AR="ar" | |
45549 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45550 | break 2 | |
45551 | fi | |
45552 | done | |
45553 | done | |
45554 | ||
45555 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
45556 | fi | |
45557 | fi | |
45558 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
45559 | if test -n "$ac_ct_AR"; then | |
45560 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
45561 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
45562 | else | |
45563 | echo "$as_me:$LINENO: result: no" >&5 | |
45564 | echo "${ECHO_T}no" >&6 | |
45565 | fi | |
45566 | ||
45567 | AR=$ac_ct_AR | |
45568 | else | |
45569 | AR="$ac_cv_prog_AR" | |
45570 | fi | |
45571 | ||
45572 | if test -n "$ac_tool_prefix"; then | |
45573 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
45574 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
45575 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45576 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45577 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
45578 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45579 | else | |
45580 | if test -n "$STRIP"; then | |
45581 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
45582 | else | |
45583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45584 | for as_dir in $PATH | |
45585 | do | |
45586 | IFS=$as_save_IFS | |
45587 | test -z "$as_dir" && as_dir=. | |
45588 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45589 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45590 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
45591 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45592 | break 2 | |
45593 | fi | |
45594 | done | |
45595 | done | |
45596 | ||
45597 | fi | |
45598 | fi | |
45599 | STRIP=$ac_cv_prog_STRIP | |
45600 | if test -n "$STRIP"; then | |
45601 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
45602 | echo "${ECHO_T}$STRIP" >&6 | |
45603 | else | |
45604 | echo "$as_me:$LINENO: result: no" >&5 | |
45605 | echo "${ECHO_T}no" >&6 | |
45606 | fi | |
45607 | ||
45608 | fi | |
45609 | if test -z "$ac_cv_prog_STRIP"; then | |
45610 | ac_ct_STRIP=$STRIP | |
45611 | # Extract the first word of "strip", so it can be a program name with args. | |
45612 | set dummy strip; ac_word=$2 | |
45613 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45614 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45615 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
45616 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45617 | else | |
45618 | if test -n "$ac_ct_STRIP"; then | |
45619 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
45620 | else | |
45621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45622 | for as_dir in $PATH | |
45623 | do | |
45624 | IFS=$as_save_IFS | |
45625 | test -z "$as_dir" && as_dir=. | |
45626 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45627 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45628 | ac_cv_prog_ac_ct_STRIP="strip" | |
45629 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45630 | break 2 | |
45631 | fi | |
45632 | done | |
45633 | done | |
45634 | ||
45635 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
45636 | fi | |
45637 | fi | |
45638 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
45639 | if test -n "$ac_ct_STRIP"; then | |
45640 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
45641 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
45642 | else | |
45643 | echo "$as_me:$LINENO: result: no" >&5 | |
45644 | echo "${ECHO_T}no" >&6 | |
45645 | fi | |
45646 | ||
45647 | STRIP=$ac_ct_STRIP | |
45648 | else | |
45649 | STRIP="$ac_cv_prog_STRIP" | |
45650 | fi | |
45651 | ||
45652 | if test -n "$ac_tool_prefix"; then | |
45653 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
45654 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
45655 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45656 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45657 | if test "${ac_cv_prog_NM+set}" = set; then | |
45658 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45659 | else | |
45660 | if test -n "$NM"; then | |
45661 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
45662 | else | |
45663 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45664 | for as_dir in $PATH | |
45665 | do | |
45666 | IFS=$as_save_IFS | |
45667 | test -z "$as_dir" && as_dir=. | |
45668 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45669 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45670 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
45671 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45672 | break 2 | |
45673 | fi | |
45674 | done | |
45675 | done | |
45676 | ||
45677 | fi | |
45678 | fi | |
45679 | NM=$ac_cv_prog_NM | |
45680 | if test -n "$NM"; then | |
45681 | echo "$as_me:$LINENO: result: $NM" >&5 | |
45682 | echo "${ECHO_T}$NM" >&6 | |
45683 | else | |
45684 | echo "$as_me:$LINENO: result: no" >&5 | |
45685 | echo "${ECHO_T}no" >&6 | |
45686 | fi | |
45687 | ||
45688 | fi | |
45689 | if test -z "$ac_cv_prog_NM"; then | |
45690 | ac_ct_NM=$NM | |
45691 | # Extract the first word of "nm", so it can be a program name with args. | |
45692 | set dummy nm; ac_word=$2 | |
45693 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
45694 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
45695 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
45696 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45697 | else | |
45698 | if test -n "$ac_ct_NM"; then | |
45699 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
45700 | else | |
45701 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
45702 | for as_dir in $PATH | |
45703 | do | |
45704 | IFS=$as_save_IFS | |
45705 | test -z "$as_dir" && as_dir=. | |
45706 | for ac_exec_ext in '' $ac_executable_extensions; do | |
45707 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
45708 | ac_cv_prog_ac_ct_NM="nm" | |
45709 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
45710 | break 2 | |
45711 | fi | |
45712 | done | |
45713 | done | |
45714 | ||
45715 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
45716 | fi | |
45717 | fi | |
45718 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
45719 | if test -n "$ac_ct_NM"; then | |
45720 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
45721 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
45722 | else | |
45723 | echo "$as_me:$LINENO: result: no" >&5 | |
45724 | echo "${ECHO_T}no" >&6 | |
45725 | fi | |
45726 | ||
45727 | NM=$ac_ct_NM | |
45728 | else | |
45729 | NM="$ac_cv_prog_NM" | |
45730 | fi | |
45731 | ||
45732 | ||
45733 | case ${BAKEFILE_HOST} in | |
45734 | *-hp-hpux* ) | |
1e9e8aba | 45735 | INSTALL_DIR="mkdir -p" |
a848cd7e SC |
45736 | ;; |
45737 | *) INSTALL_DIR="$INSTALL -d" | |
45738 | ;; | |
45739 | esac | |
45740 | ||
45741 | ||
45742 | LDFLAGS_GUI= | |
45743 | case ${BAKEFILE_HOST} in | |
45744 | *-*-cygwin* | *-*-mingw32* ) | |
45745 | LDFLAGS_GUI="-mwindows" | |
45746 | esac | |
45747 | ||
45748 | ||
45749 | fi | |
45750 | ||
45751 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
45752 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
45753 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then | |
45754 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45755 | else | |
45756 | ||
45757 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
45758 | egrep -s GNU > /dev/null); then | |
45759 | bakefile_cv_prog_makeisgnu="yes" | |
45760 | else | |
45761 | bakefile_cv_prog_makeisgnu="no" | |
45762 | fi | |
45763 | ||
45764 | fi | |
45765 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 | |
45766 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
45767 | ||
45768 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
45769 | IF_GNU_MAKE="" | |
45770 | else | |
45771 | IF_GNU_MAKE="#" | |
45772 | fi | |
45773 | ||
45774 | ||
45775 | ||
45776 | PLATFORM_UNIX=0 | |
45777 | PLATFORM_WIN32=0 | |
45778 | PLATFORM_MSDOS=0 | |
45779 | PLATFORM_MAC=0 | |
1e9e8aba | 45780 | PLATFORM_MACOS=0 |
a848cd7e SC |
45781 | PLATFORM_MACOSX=0 |
45782 | PLATFORM_OS2=0 | |
1e9e8aba | 45783 | PLATFORM_BEOS=0 |
a848cd7e SC |
45784 | |
45785 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then | |
45786 | case "${BAKEFILE_HOST}" in | |
810b94f0 | 45787 | *-*-mingw32* ) |
a848cd7e SC |
45788 | PLATFORM_WIN32=1 |
45789 | ;; | |
45790 | *-pc-msdosdjgpp ) | |
45791 | PLATFORM_MSDOS=1 | |
45792 | ;; | |
45793 | *-pc-os2_emx | *-pc-os2-emx ) | |
45794 | PLATFORM_OS2=1 | |
45795 | ;; | |
47bd5406 | 45796 | *-*-darwin* ) |
a848cd7e SC |
45797 | PLATFORM_MAC=1 |
45798 | PLATFORM_MACOSX=1 | |
45799 | ;; | |
1e9e8aba DE |
45800 | *-*-beos* ) |
45801 | PLATFORM_BEOS=1 | |
45802 | ;; | |
45803 | powerpc-apple-macos* ) | |
45804 | PLATFORM_MAC=1 | |
45805 | PLATFORM_MACOS=1 | |
45806 | ;; | |
a848cd7e SC |
45807 | * ) |
45808 | PLATFORM_UNIX=1 | |
45809 | ;; | |
45810 | esac | |
45811 | else | |
45812 | case "$BAKEFILE_FORCE_PLATFORM" in | |
45813 | win32 ) | |
45814 | PLATFORM_WIN32=1 | |
45815 | ;; | |
45816 | msdos ) | |
45817 | PLATFORM_MSDOS=1 | |
45818 | ;; | |
45819 | os2 ) | |
45820 | PLATFORM_OS2=1 | |
45821 | ;; | |
45822 | darwin ) | |
45823 | PLATFORM_MAC=1 | |
45824 | PLATFORM_MACOSX=1 | |
45825 | ;; | |
45826 | unix ) | |
45827 | PLATFORM_UNIX=1 | |
45828 | ;; | |
1e9e8aba DE |
45829 | beos ) |
45830 | PLATFORM_BEOS=1 | |
45831 | ;; | |
a848cd7e SC |
45832 | * ) |
45833 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
45834 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
45835 | { (exit 1); exit 1; }; } | |
45836 | ;; | |
45837 | esac | |
45838 | fi | |
45839 | ||
45840 | ||
45841 | ||
45842 | ||
45843 | ||
45844 | ||
45845 | ||
45846 | ||
45847 | ||
1e9e8aba DE |
45848 | |
45849 | ||
a848cd7e SC |
45850 | # Check whether --enable-omf or --disable-omf was given. |
45851 | if test "${enable_omf+set}" = set; then | |
45852 | enableval="$enable_omf" | |
45853 | bk_os2_use_omf="$enableval" | |
45854 | fi; | |
45855 | ||
45856 | case "${BAKEFILE_HOST}" in | |
45857 | *-*-darwin* ) | |
47bd5406 VZ |
45858 | if test "x$GCC" = "xyes"; then |
45859 | CFLAGS="$CFLAGS -fno-common" | |
45860 | CXXFLAGS="$CXXFLAGS -fno-common" | |
45861 | fi | |
45862 | if test "x$XLCC" = "xyes"; then | |
45863 | CFLAGS="$CFLAGS -qnocommon" | |
45864 | CXXFLAGS="$CXXFLAGS -qnocommon" | |
45865 | fi | |
a848cd7e SC |
45866 | ;; |
45867 | ||
45868 | *-pc-os2_emx | *-pc-os2-emx ) | |
45869 | if test "x$bk_os2_use_omf" = "xyes" ; then | |
45870 | AR=emxomfar | |
45871 | RANLIB=: | |
45872 | LDFLAGS="-Zomf $LDFLAGS" | |
45873 | CFLAGS="-Zomf $CFLAGS" | |
45874 | CXXFLAGS="-Zomf $CXXFLAGS" | |
45875 | OS2_LIBEXT="lib" | |
45876 | else | |
45877 | OS2_LIBEXT="a" | |
45878 | fi | |
45879 | ;; | |
1e9e8aba DE |
45880 | |
45881 | i*86-*-beos* ) | |
45882 | LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS" | |
45883 | ;; | |
a848cd7e SC |
45884 | esac |
45885 | ||
45886 | ||
45887 | SO_SUFFIX="so" | |
45888 | SO_SUFFIX_MODULE="so" | |
45889 | EXEEXT="" | |
45890 | LIBPREFIX="lib" | |
45891 | LIBEXT=".a" | |
45892 | DLLPREFIX="lib" | |
45893 | DLLPREFIX_MODULE="" | |
45894 | DLLIMP_SUFFIX="" | |
810b94f0 | 45895 | dlldir="$libdir" |
a848cd7e SC |
45896 | |
45897 | case "${BAKEFILE_HOST}" in | |
45898 | *-hp-hpux* ) | |
45899 | SO_SUFFIX="sl" | |
45900 | SO_SUFFIX_MODULE="sl" | |
45901 | ;; | |
45902 | *-*-aix* ) | |
45903 | SO_SUFFIX="a" | |
45904 | SO_SUFFIX_MODULE="a" | |
45905 | ;; | |
810b94f0 MW |
45906 | *-*-cygwin* ) |
45907 | SO_SUFFIX="dll" | |
45908 | SO_SUFFIX_MODULE="dll" | |
45909 | DLLIMP_SUFFIX="dll.a" | |
45910 | EXEEXT=".exe" | |
45911 | DLLPREFIX="cyg" | |
45912 | dlldir="$bindir" | |
45913 | ;; | |
45914 | *-*-mingw32* ) | |
a848cd7e SC |
45915 | SO_SUFFIX="dll" |
45916 | SO_SUFFIX_MODULE="dll" | |
45917 | DLLIMP_SUFFIX="dll.a" | |
45918 | EXEEXT=".exe" | |
45919 | DLLPREFIX="" | |
810b94f0 | 45920 | dlldir="$bindir" |
a848cd7e SC |
45921 | ;; |
45922 | *-pc-msdosdjgpp ) | |
45923 | EXEEXT=".exe" | |
45924 | DLLPREFIX="" | |
810b94f0 | 45925 | dlldir="$bindir" |
a848cd7e SC |
45926 | ;; |
45927 | *-pc-os2_emx | *-pc-os2-emx ) | |
45928 | SO_SUFFIX="dll" | |
45929 | SO_SUFFIX_MODULE="dll" | |
45930 | DLLIMP_SUFFIX=$OS2_LIBEXT | |
45931 | EXEEXT=".exe" | |
45932 | DLLPREFIX="" | |
45933 | LIBPREFIX="" | |
45934 | LIBEXT=".$OS2_LIBEXT" | |
810b94f0 | 45935 | dlldir="$bindir" |
a848cd7e | 45936 | ;; |
47bd5406 | 45937 | *-*-darwin* ) |
a848cd7e SC |
45938 | SO_SUFFIX="dylib" |
45939 | SO_SUFFIX_MODULE="bundle" | |
45940 | ;; | |
45941 | esac | |
45942 | ||
45943 | if test "x$DLLIMP_SUFFIX" = "x" ; then | |
45944 | DLLIMP_SUFFIX="$SO_SUFFIX" | |
45945 | fi | |
45946 | ||
45947 | ||
45948 | ||
45949 | ||
45950 | ||
45951 | ||
45952 | ||
45953 | ||
45954 | ||
45955 | ||
45956 | ||
810b94f0 | 45957 | |
1e9e8aba DE |
45958 | PIC_FLAG="" |
45959 | if test "x$GCC" = "xyes"; then | |
a848cd7e SC |
45960 | PIC_FLAG="-fPIC" |
45961 | fi | |
45962 | ||
1e9e8aba DE |
45963 | SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o" |
45964 | SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o" | |
810b94f0 | 45965 | WINDOWS_IMPLIB=0 |
1e9e8aba | 45966 | |
a848cd7e SC |
45967 | case "${BAKEFILE_HOST}" in |
45968 | *-hp-hpux* ) | |
1e9e8aba | 45969 | if test "x$GCC" != "xyes"; then |
a848cd7e SC |
45970 | LDFLAGS="$LDFLAGS -L/usr/lib" |
45971 | ||
45972 | SHARED_LD_CC="${CC} -b -o" | |
45973 | SHARED_LD_CXX="${CXX} -b -o" | |
45974 | PIC_FLAG="+Z" | |
45975 | fi | |
45976 | ;; | |
45977 | ||
45978 | *-*-linux* ) | |
45979 | if test "x$GCC" != "xyes"; then | |
45980 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 | |
45981 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
45982 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
45983 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
45984 | else | |
45985 | ||
45986 | cat >conftest.$ac_ext <<_ACEOF | |
45987 | /* confdefs.h. */ | |
45988 | _ACEOF | |
45989 | cat confdefs.h >>conftest.$ac_ext | |
45990 | cat >>conftest.$ac_ext <<_ACEOF | |
45991 | /* end confdefs.h. */ | |
45992 | ||
45993 | int | |
45994 | main () | |
45995 | { | |
45996 | ||
45997 | #ifndef __INTEL_COMPILER | |
45998 | #error Not icc | |
45999 | #endif | |
46000 | ||
46001 | ; | |
46002 | return 0; | |
46003 | } | |
46004 | _ACEOF | |
46005 | rm -f conftest.$ac_objext | |
46006 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 46007 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 46008 | ac_status=$? |
ac1cb8d3 VS |
46009 | grep -v '^ *+' conftest.er1 >conftest.err |
46010 | rm -f conftest.er1 | |
46011 | cat conftest.err >&5 | |
a848cd7e SC |
46012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
46013 | (exit $ac_status); } && | |
3565d135 RR |
46014 | { ac_try='test -z "$ac_c_werror_flag" |
46015 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
46016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
46017 | (eval $ac_try) 2>&5 | |
46018 | ac_status=$? | |
46019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46020 | (exit $ac_status); }; } && | |
46021 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
46022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
46023 | (eval $ac_try) 2>&5 | |
46024 | ac_status=$? | |
46025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46026 | (exit $ac_status); }; }; then | |
46027 | bakefile_cv_prog_icc=yes | |
46028 | else | |
46029 | echo "$as_me: failed program was:" >&5 | |
46030 | sed 's/^/| /' conftest.$ac_ext >&5 | |
46031 | ||
46032 | bakefile_cv_prog_icc=no | |
46033 | ||
46034 | fi | |
ac1cb8d3 | 46035 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
46036 | |
46037 | fi | |
46038 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
46039 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
46040 | if test "$bakefile_cv_prog_icc" = "yes"; then | |
46041 | PIC_FLAG="-KPIC" | |
46042 | fi | |
46043 | fi | |
46044 | ;; | |
46045 | ||
46046 | *-*-solaris2* ) | |
46047 | if test "x$GCC" != xyes ; then | |
46048 | SHARED_LD_CC="${CC} -G -o" | |
46049 | SHARED_LD_CXX="${CXX} -G -o" | |
46050 | PIC_FLAG="-KPIC" | |
46051 | fi | |
46052 | ;; | |
46053 | ||
46054 | *-*-darwin* ) | |
46055 | ||
473276a9 VS |
46056 | D='$' |
46057 | cat <<EOF >shared-ld-sh | |
a848cd7e SC |
46058 | #!/bin/sh |
46059 | #----------------------------------------------------------------------------- | |
46060 | #-- Name: distrib/mac/shared-ld-sh | |
46061 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
46062 | #-- Author: Gilles Depeyrot | |
46063 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
46064 | #-- Licence: any use permitted | |
46065 | #----------------------------------------------------------------------------- | |
46066 | ||
46067 | verbose=0 | |
46068 | args="" | |
46069 | objects="" | |
46070 | linking_flag="-dynamiclib" | |
810b94f0 | 46071 | ldargs="-r -keep_private_externs -nostdlib" |
a848cd7e | 46072 | |
473276a9 VS |
46073 | while test ${D}# -gt 0; do |
46074 | case ${D}1 in | |
a848cd7e SC |
46075 | |
46076 | -v) | |
46077 | verbose=1 | |
46078 | ;; | |
46079 | ||
46080 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
46081 | # collect these options and values | |
473276a9 | 46082 | args="${D}{args} ${D}1 ${D}2" |
a848cd7e SC |
46083 | shift |
46084 | ;; | |
46085 | ||
810b94f0 MW |
46086 | -s|-Wl,*) |
46087 | # collect these load args | |
46088 | ldargs="${D}{ldargs} ${D}1" | |
2113bc77 | 46089 | ;; |
810b94f0 MW |
46090 | |
46091 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) | |
a848cd7e | 46092 | # collect these options |
473276a9 | 46093 | args="${D}{args} ${D}1" |
a848cd7e SC |
46094 | ;; |
46095 | ||
46096 | -dynamiclib|-bundle) | |
473276a9 | 46097 | linking_flag="${D}1" |
a848cd7e SC |
46098 | ;; |
46099 | ||
46100 | -*) | |
473276a9 | 46101 | echo "shared-ld: unhandled option '${D}1'" |
a848cd7e SC |
46102 | exit 1 |
46103 | ;; | |
46104 | ||
46105 | *.o | *.a | *.dylib) | |
46106 | # collect object files | |
473276a9 | 46107 | objects="${D}{objects} ${D}1" |
a848cd7e SC |
46108 | ;; |
46109 | ||
46110 | *) | |
473276a9 | 46111 | echo "shared-ld: unhandled argument '${D}1'" |
a848cd7e SC |
46112 | exit 1 |
46113 | ;; | |
46114 | ||
46115 | esac | |
46116 | shift | |
46117 | done | |
46118 | ||
810b94f0 MW |
46119 | status=0 |
46120 | ||
a848cd7e SC |
46121 | # |
46122 | # Link one module containing all the others | |
46123 | # | |
473276a9 | 46124 | if test ${D}{verbose} = 1; then |
810b94f0 | 46125 | echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o" |
a848cd7e | 46126 | fi |
810b94f0 | 46127 | c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o |
473276a9 | 46128 | status=${D}? |
a848cd7e SC |
46129 | |
46130 | # | |
810b94f0 MW |
46131 | # Link the shared library from the single module created, but only if the |
46132 | # previous command didn't fail: | |
a848cd7e | 46133 | # |
810b94f0 MW |
46134 | if test ${D}{status} = 0; then |
46135 | if test ${D}{verbose} = 1; then | |
46136 | echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}" | |
46137 | fi | |
46138 | c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args} | |
46139 | status=${D}? | |
a848cd7e SC |
46140 | fi |
46141 | ||
46142 | # | |
46143 | # Remove intermediate module | |
46144 | # | |
473276a9 | 46145 | rm -f master.${D}${D}.o |
a848cd7e | 46146 | |
810b94f0 | 46147 | exit ${D}status |
a848cd7e | 46148 | EOF |
473276a9 | 46149 | |
583d6b4b VZ |
46150 | chmod +x shared-ld-sh |
46151 | ||
46152 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
46153 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
46154 | ||
46155 | ||
46156 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 | |
46157 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 | |
46158 | if test "${bakefile_cv_gcc31+set}" = set; then | |
46159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46160 | else | |
46161 | ||
46162 | cat >conftest.$ac_ext <<_ACEOF | |
46163 | /* confdefs.h. */ | |
46164 | _ACEOF | |
46165 | cat confdefs.h >>conftest.$ac_ext | |
46166 | cat >>conftest.$ac_ext <<_ACEOF | |
46167 | /* end confdefs.h. */ | |
46168 | ||
46169 | int | |
46170 | main () | |
46171 | { | |
46172 | ||
46173 | #if (__GNUC__ < 3) || \ | |
46174 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
46175 | #error old gcc | |
46176 | #endif | |
a848cd7e | 46177 | |
583d6b4b VZ |
46178 | ; |
46179 | return 0; | |
46180 | } | |
46181 | _ACEOF | |
46182 | rm -f conftest.$ac_objext | |
46183 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
46184 | (eval $ac_compile) 2>conftest.er1 | |
46185 | ac_status=$? | |
46186 | grep -v '^ *+' conftest.er1 >conftest.err | |
46187 | rm -f conftest.er1 | |
46188 | cat conftest.err >&5 | |
46189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46190 | (exit $ac_status); } && | |
3565d135 RR |
46191 | { ac_try='test -z "$ac_c_werror_flag" |
46192 | || test ! -s conftest.err' | |
583d6b4b VZ |
46193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
46194 | (eval $ac_try) 2>&5 | |
46195 | ac_status=$? | |
46196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46197 | (exit $ac_status); }; } && | |
46198 | { ac_try='test -s conftest.$ac_objext' | |
46199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
46200 | (eval $ac_try) 2>&5 | |
46201 | ac_status=$? | |
46202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
46203 | (exit $ac_status); }; }; then | |
46204 | ||
46205 | bakefile_cv_gcc31=yes | |
46206 | ||
46207 | else | |
46208 | echo "$as_me: failed program was:" >&5 | |
46209 | sed 's/^/| /' conftest.$ac_ext >&5 | |
46210 | ||
46211 | ||
46212 | bakefile_cv_gcc31=no | |
46213 | ||
46214 | ||
46215 | fi | |
46216 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
46217 | ||
46218 | fi | |
46219 | echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5 | |
46220 | echo "${ECHO_T}$bakefile_cv_gcc31" >&6 | |
46221 | if test "$bakefile_cv_gcc31" = "no"; then | |
a848cd7e | 46222 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" |
a848cd7e | 46223 | SHARED_LD_CXX="$SHARED_LD_CC" |
a848cd7e SC |
46224 | else |
46225 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" | |
a848cd7e | 46226 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" |
a848cd7e SC |
46227 | fi |
46228 | ||
47bd5406 VZ |
46229 | if test "x$GCC" == "xyes"; then |
46230 | PIC_FLAG="-dynamic -fPIC" | |
46231 | fi | |
46232 | if test "x$XLCC" = "xyes"; then | |
46233 | PIC_FLAG="-dynamic -DPIC" | |
46234 | fi | |
a848cd7e SC |
46235 | ;; |
46236 | ||
46237 | *-*-aix* ) | |
f6b50c59 | 46238 | if test "x$GCC" = "xyes"; then |
583d6b4b | 46239 | PIC_FLAG="" |
f6b50c59 | 46240 | |
583d6b4b VZ |
46241 | case "${BAKEFILE_HOST}" in |
46242 | *-*-aix5* ) | |
46243 | LD_EXPFULL="-Wl,-bexpfull" | |
46244 | ;; | |
46245 | esac | |
f6b50c59 | 46246 | |
583d6b4b VZ |
46247 | SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o" |
46248 | SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o" | |
46249 | else | |
46250 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
a848cd7e SC |
46251 | set dummy makeC++SharedLib; ac_word=$2 |
46252 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
46253 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
46254 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
46255 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46256 | else | |
46257 | if test -n "$AIX_CXX_LD"; then | |
46258 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
46259 | else | |
46260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
46261 | for as_dir in $PATH | |
46262 | do | |
46263 | IFS=$as_save_IFS | |
46264 | test -z "$as_dir" && as_dir=. | |
46265 | for ac_exec_ext in '' $ac_executable_extensions; do | |
46266 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
46267 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
46268 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
46269 | break 2 | |
46270 | fi | |
46271 | done | |
46272 | done | |
46273 | ||
46274 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
46275 | fi | |
46276 | fi | |
46277 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD | |
46278 | if test -n "$AIX_CXX_LD"; then | |
46279 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 | |
46280 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
46281 | else | |
46282 | echo "$as_me:$LINENO: result: no" >&5 | |
46283 | echo "${ECHO_T}no" >&6 | |
46284 | fi | |
46285 | ||
f6b50c59 | 46286 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" |
a848cd7e SC |
46287 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" |
46288 | fi | |
46289 | ;; | |
46290 | ||
46291 | *-*-beos* ) | |
1e9e8aba DE |
46292 | SHARED_LD_CC="${LD} -nostart -o" |
46293 | SHARED_LD_CXX="${LD} -nostart -o" | |
a848cd7e SC |
46294 | ;; |
46295 | ||
46296 | *-*-irix* ) | |
46297 | if test "x$GCC" != "xyes"; then | |
46298 | PIC_FLAG="-KPIC" | |
46299 | fi | |
46300 | ;; | |
46301 | ||
46302 | *-*-cygwin* | *-*-mingw32* ) | |
46303 | PIC_FLAG="" | |
1e9e8aba DE |
46304 | SHARED_LD_CC="\$(CC) -shared -o" |
46305 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
810b94f0 | 46306 | WINDOWS_IMPLIB=1 |
a848cd7e SC |
46307 | ;; |
46308 | ||
46309 | *-pc-os2_emx | *-pc-os2-emx ) | |
b1d22ded DE |
46310 | SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" |
46311 | SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
a848cd7e | 46312 | PIC_FLAG="" |
473276a9 VS |
46313 | |
46314 | D='$' | |
46315 | cat <<EOF >dllar.sh | |
46316 | #!/bin/sh | |
46317 | # | |
46318 | # dllar - a tool to build both a .dll and an .a file | |
46319 | # from a set of object (.o) files for EMX/OS2. | |
46320 | # | |
46321 | # Written by Andrew Zabolotny, bit@freya.etu.ru | |
46322 | # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de | |
46323 | # | |
46324 | # This script will accept a set of files on the command line. | |
46325 | # All the public symbols from the .o files will be exported into | |
46326 | # a .DEF file, then linker will be run (through gcc) against them to | |
46327 | # build a shared library consisting of all given .o files. All libraries | |
46328 | # (.a) will be first decompressed into component .o files then act as | |
46329 | # described above. You can optionally give a description (-d "description") | |
46330 | # which will be put into .DLL. To see the list of accepted options (as well | |
46331 | # as command-line format) simply run this program without options. The .DLL | |
46332 | # is built to be imported by name (there is no guarantee that new versions | |
46333 | # of the library you build will have same ordinals for same symbols). | |
46334 | # | |
46335 | # dllar is free software; you can redistribute it and/or modify | |
46336 | # it under the terms of the GNU General Public License as published by | |
46337 | # the Free Software Foundation; either version 2, or (at your option) | |
46338 | # any later version. | |
46339 | # | |
46340 | # dllar is distributed in the hope that it will be useful, | |
46341 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
46342 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
46343 | # GNU General Public License for more details. | |
46344 | # | |
46345 | # You should have received a copy of the GNU General Public License | |
46346 | # along with dllar; see the file COPYING. If not, write to the Free | |
46347 | # Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
46348 | # 02111-1307, USA. | |
46349 | ||
46350 | # To successfuly run this program you will need: | |
46351 | # - Current drive should have LFN support (HPFS, ext2, network, etc) | |
46352 | # (Sometimes dllar generates filenames which won't fit 8.3 scheme) | |
46353 | # - gcc | |
46354 | # (used to build the .dll) | |
46355 | # - emxexp | |
46356 | # (used to create .def file from .o files) | |
46357 | # - emximp | |
46358 | # (used to create .a file from .def file) | |
46359 | # - GNU text utilites (cat, sort, uniq) | |
46360 | # used to process emxexp output | |
46361 | # - GNU file utilities (mv, rm) | |
46362 | # - GNU sed | |
46363 | # - lxlite (optional, see flag below) | |
46364 | # (used for general .dll cleanup) | |
46365 | # | |
46366 | ||
46367 | flag_USE_LXLITE=1; | |
46368 | ||
46369 | # | |
46370 | # helper functions | |
46371 | # basnam, variant of basename, which does _not_ remove the path, _iff_ | |
46372 | # second argument (suffix to remove) is given | |
46373 | basnam(){ | |
46374 | case ${D}# in | |
46375 | 1) | |
1e9e8aba | 46376 | echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//' |
473276a9 VS |
46377 | ;; |
46378 | 2) | |
46379 | echo ${D}1 | sed 's/'${D}2'${D}//' | |
46380 | ;; | |
46381 | *) | |
46382 | echo "error in basnam ${D}*" | |
46383 | exit 8 | |
46384 | ;; | |
46385 | esac | |
46386 | } | |
46387 | ||
46388 | # Cleanup temporary files and output | |
46389 | CleanUp() { | |
46390 | cd ${D}curDir | |
46391 | for i in ${D}inputFiles ; do | |
46392 | case ${D}i in | |
46393 | *!) | |
46394 | rm -rf \`basnam ${D}i !\` | |
46395 | ;; | |
46396 | *) | |
46397 | ;; | |
46398 | esac | |
46399 | done | |
46400 | ||
46401 | # Kill result in case of failure as there is just to many stupid make/nmake | |
46402 | # things out there which doesn't do this. | |
1e9e8aba | 46403 | if [ ${D}# -eq 0 ]; then |
473276a9 VS |
46404 | rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile |
46405 | fi | |
46406 | } | |
46407 | ||
46408 | # Print usage and exit script with rc=1. | |
46409 | PrintHelp() { | |
b1d22ded DE |
46410 | echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]' |
46411 | echo ' [-name-mangler-script script.sh]' | |
46412 | echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]' | |
46413 | echo ' [-ord[inals]] -ex[clude] "symbol(s)"' | |
46414 | echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]' | |
1e9e8aba | 46415 | echo ' [*.o] [*.a]' |
473276a9 VS |
46416 | echo '*> "output_file" should have no extension.' |
46417 | echo ' If it has the .o, .a or .dll extension, it is automatically removed.' | |
46418 | echo ' The import library name is derived from this and is set to "name".a,' | |
46419 | echo ' unless overridden by -import' | |
46420 | echo '*> "importlib_name" should have no extension.' | |
46421 | echo ' If it has the .o, or .a extension, it is automatically removed.' | |
46422 | echo ' This name is used as the import library name and may be longer and' | |
46423 | echo ' more descriptive than the DLL name which has to follow the old ' | |
46424 | echo ' 8.3 convention of FAT.' | |
b1d22ded DE |
46425 | echo '*> "script.sh may be given to override the output_file name by a' |
46426 | echo ' different name. It is mainly useful if the regular make process' | |
46427 | echo ' of some package does not take into account OS/2 restriction of' | |
46428 | echo ' DLL name lengths. It takes the importlib name as input and is' | |
46429 | echo ' supposed to procude a shorter name as output. The script should' | |
46430 | echo ' expect to get importlib_name without extension and should produce' | |
46431 | echo ' a (max.) 8 letter name without extension.' | |
473276a9 VS |
46432 | echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)' |
46433 | echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)' | |
46434 | echo ' These flags will be put at the start of GCC command line.' | |
b1d22ded DE |
46435 | echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.' |
46436 | echo '*> -ex[clude] defines symbols which will not be exported. You can define' | |
473276a9 VS |
46437 | echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".' |
46438 | echo ' If the last character of a symbol is "*", all symbols beginning' | |
46439 | echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).' | |
b1d22ded | 46440 | echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or' |
473276a9 | 46441 | echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.' |
b1d22ded | 46442 | echo '*> -nocrt[dll] switch will disable linking the library against emx''s' |
473276a9 | 46443 | echo ' C runtime DLLs.' |
b1d22ded | 46444 | echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.' |
473276a9 VS |
46445 | echo '*> All other switches (for example -L./ or -lmylib) will be passed' |
46446 | echo ' unchanged to GCC at the end of command line.' | |
46447 | echo '*> If you create a DLL from a library and you do not specify -o,' | |
46448 | echo ' the basename for DLL and import library will be set to library name,' | |
46449 | echo ' the initial library will be renamed to 'name'_s.a (_s for static)' | |
46450 | echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial' | |
46451 | echo ' library will be renamed into gcc_s.a.' | |
46452 | echo '--------' | |
46453 | echo 'Example:' | |
46454 | echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord' | |
46455 | echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"' | |
46456 | CleanUp | |
46457 | exit 1 | |
46458 | } | |
46459 | ||
46460 | # Execute a command. | |
46461 | # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script. | |
46462 | # @Uses Whatever CleanUp() uses. | |
46463 | doCommand() { | |
46464 | echo "${D}*" | |
46465 | eval ${D}* | |
46466 | rcCmd=${D}? | |
46467 | ||
1e9e8aba | 46468 | if [ ${D}rcCmd -ne 0 ]; then |
473276a9 VS |
46469 | echo "command failed, exit code="${D}rcCmd |
46470 | CleanUp | |
46471 | exit ${D}rcCmd | |
46472 | fi | |
46473 | } | |
46474 | ||
46475 | # main routine | |
46476 | # setup globals | |
46477 | cmdLine=${D}* | |
46478 | outFile="" | |
46479 | outimpFile="" | |
46480 | inputFiles="" | |
b1d22ded | 46481 | renameScript="" |
473276a9 VS |
46482 | description="" |
46483 | CC=gcc.exe | |
46484 | CFLAGS="-s -Zcrtdll" | |
46485 | EXTRA_CFLAGS="" | |
46486 | EXPORT_BY_ORDINALS=0 | |
46487 | exclude_symbols="" | |
46488 | library_flags="" | |
46489 | curDir=\`pwd\` | |
46490 | curDirS=curDir | |
46491 | case ${D}curDirS in | |
46492 | */) | |
46493 | ;; | |
46494 | *) | |
46495 | curDirS=${D}{curDirS}"/" | |
46496 | ;; | |
46497 | esac | |
46498 | # Parse commandline | |
46499 | libsToLink=0 | |
b1d22ded | 46500 | omfLinking=0 |
1e9e8aba | 46501 | while [ ${D}1 ]; do |
473276a9 VS |
46502 | case ${D}1 in |
46503 | -ord*) | |
46504 | EXPORT_BY_ORDINALS=1; | |
46505 | ;; | |
46506 | -o*) | |
46507 | shift | |
46508 | outFile=${D}1 | |
46509 | ;; | |
46510 | -i*) | |
46511 | shift | |
46512 | outimpFile=${D}1 | |
46513 | ;; | |
b1d22ded DE |
46514 | -name-mangler-script) |
46515 | shift | |
46516 | renameScript=${D}1 | |
46517 | ;; | |
473276a9 VS |
46518 | -d*) |
46519 | shift | |
46520 | description=${D}1 | |
46521 | ;; | |
46522 | -f*) | |
46523 | shift | |
46524 | CFLAGS=${D}1 | |
46525 | ;; | |
46526 | -c*) | |
46527 | shift | |
46528 | CC=${D}1 | |
46529 | ;; | |
46530 | -h*) | |
46531 | PrintHelp | |
46532 | ;; | |
46533 | -ex*) | |
46534 | shift | |
46535 | exclude_symbols=${D}{exclude_symbols}${D}1" " | |
46536 | ;; | |
46537 | -libf*) | |
46538 | shift | |
46539 | library_flags=${D}{library_flags}${D}1" " | |
46540 | ;; | |
46541 | -nocrt*) | |
46542 | CFLAGS="-s" | |
46543 | ;; | |
46544 | -nolxl*) | |
46545 | flag_USE_LXLITE=0 | |
46546 | ;; | |
46547 | -* | /*) | |
46548 | case ${D}1 in | |
46549 | -L* | -l*) | |
46550 | libsToLink=1 | |
46551 | ;; | |
b1d22ded DE |
46552 | -Zomf) |
46553 | omfLinking=1 | |
46554 | ;; | |
473276a9 VS |
46555 | *) |
46556 | ;; | |
46557 | esac | |
46558 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 | |
46559 | ;; | |
b1d22ded DE |
46560 | *.dll) |
46561 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`" | |
46562 | if [ ${D}omfLinking -eq 1 ]; then | |
46563 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib" | |
46564 | else | |
46565 | EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a" | |
46566 | fi | |
46567 | ;; | |
473276a9 VS |
46568 | *) |
46569 | found=0; | |
1e9e8aba | 46570 | if [ ${D}libsToLink -ne 0 ]; then |
473276a9 VS |
46571 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 |
46572 | else | |
46573 | for file in ${D}1 ; do | |
1e9e8aba | 46574 | if [ -f ${D}file ]; then |
473276a9 VS |
46575 | inputFiles="${D}{inputFiles} ${D}file" |
46576 | found=1 | |
46577 | fi | |
46578 | done | |
1e9e8aba | 46579 | if [ ${D}found -eq 0 ]; then |
473276a9 VS |
46580 | echo "ERROR: No file(s) found: "${D}1 |
46581 | exit 8 | |
46582 | fi | |
46583 | fi | |
46584 | ;; | |
46585 | esac | |
46586 | shift | |
46587 | done # iterate cmdline words | |
46588 | ||
46589 | # | |
1e9e8aba | 46590 | if [ -z "${D}inputFiles" ]; then |
473276a9 VS |
46591 | echo "dllar: no input files" |
46592 | PrintHelp | |
46593 | fi | |
46594 | ||
46595 | # Now extract all .o files from .a files | |
46596 | newInputFiles="" | |
46597 | for file in ${D}inputFiles ; do | |
46598 | case ${D}file in | |
46599 | *.a | *.lib) | |
46600 | case ${D}file in | |
46601 | *.a) | |
46602 | suffix=".a" | |
46603 | AR="ar" | |
46604 | ;; | |
46605 | *.lib) | |
46606 | suffix=".lib" | |
46607 | AR="emxomfar" | |
46608 | EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf" | |
46609 | ;; | |
46610 | *) | |
46611 | ;; | |
46612 | esac | |
46613 | dirname=\`basnam ${D}file ${D}suffix\`"_%" | |
46614 | mkdir ${D}dirname | |
1e9e8aba | 46615 | if [ ${D}? -ne 0 ]; then |
473276a9 VS |
46616 | echo "Failed to create subdirectory ./${D}dirname" |
46617 | CleanUp | |
46618 | exit 8; | |
46619 | fi | |
46620 | # Append '!' to indicate archive | |
46621 | newInputFiles="${D}newInputFiles ${D}{dirname}!" | |
46622 | doCommand "cd ${D}dirname; ${D}AR x ../${D}file" | |
46623 | cd ${D}curDir | |
46624 | found=0; | |
46625 | for subfile in ${D}dirname/*.o* ; do | |
1e9e8aba | 46626 | if [ -f ${D}subfile ]; then |
473276a9 | 46627 | found=1 |
1e9e8aba | 46628 | if [ -s ${D}subfile ]; then |
473276a9 VS |
46629 | # FIXME: This should be: is file size > 32 byte, _not_ > 0! |
46630 | newInputFiles="${D}newInputFiles ${D}subfile" | |
46631 | fi | |
46632 | fi | |
46633 | done | |
1e9e8aba DE |
46634 | if [ ${D}found -eq 0 ]; then |
46635 | echo "WARNING: there are no files in archive \\'${D}file\\'" | |
473276a9 VS |
46636 | fi |
46637 | ;; | |
46638 | *) | |
46639 | newInputFiles="${D}{newInputFiles} ${D}file" | |
46640 | ;; | |
46641 | esac | |
46642 | done | |
46643 | inputFiles="${D}newInputFiles" | |
46644 | ||
46645 | # Output filename(s). | |
46646 | do_backup=0; | |
1e9e8aba | 46647 | if [ -z ${D}outFile ]; then |
473276a9 VS |
46648 | do_backup=1; |
46649 | set outFile ${D}inputFiles; outFile=${D}2 | |
46650 | fi | |
46651 | ||
46652 | # If it is an archive, remove the '!' and the '_%' suffixes | |
46653 | case ${D}outFile in | |
46654 | *_%!) | |
46655 | outFile=\`basnam ${D}outFile _%!\` | |
46656 | ;; | |
46657 | *) | |
46658 | ;; | |
46659 | esac | |
46660 | case ${D}outFile in | |
46661 | *.dll) | |
46662 | outFile=\`basnam ${D}outFile .dll\` | |
46663 | ;; | |
46664 | *.DLL) | |
46665 | outFile=\`basnam ${D}outFile .DLL\` | |
46666 | ;; | |
46667 | *.o) | |
46668 | outFile=\`basnam ${D}outFile .o\` | |
46669 | ;; | |
46670 | *.obj) | |
46671 | outFile=\`basnam ${D}outFile .obj\` | |
46672 | ;; | |
46673 | *.a) | |
46674 | outFile=\`basnam ${D}outFile .a\` | |
46675 | ;; | |
46676 | *.lib) | |
46677 | outFile=\`basnam ${D}outFile .lib\` | |
46678 | ;; | |
46679 | *) | |
46680 | ;; | |
46681 | esac | |
46682 | case ${D}outimpFile in | |
46683 | *.a) | |
46684 | outimpFile=\`basnam ${D}outimpFile .a\` | |
46685 | ;; | |
46686 | *.lib) | |
46687 | outimpFile=\`basnam ${D}outimpFile .lib\` | |
46688 | ;; | |
46689 | *) | |
46690 | ;; | |
46691 | esac | |
1e9e8aba | 46692 | if [ -z ${D}outimpFile ]; then |
473276a9 VS |
46693 | outimpFile=${D}outFile |
46694 | fi | |
46695 | defFile="${D}{outFile}.def" | |
46696 | arcFile="${D}{outimpFile}.a" | |
46697 | arcFile2="${D}{outimpFile}.lib" | |
b1d22ded DE |
46698 | |
46699 | #create ${D}dllFile as something matching 8.3 restrictions, | |
46700 | if [ -z ${D}renameScript ] ; then | |
46701 | dllFile="${D}outFile" | |
46702 | else | |
46703 | dllFile=\`${D}renameScript ${D}outimpFile\` | |
46704 | fi | |
473276a9 | 46705 | |
1e9e8aba DE |
46706 | if [ ${D}do_backup -ne 0 ] ; then |
46707 | if [ -f ${D}arcFile ] ; then | |
473276a9 VS |
46708 | doCommand "mv ${D}arcFile ${D}{outFile}_s.a" |
46709 | fi | |
1e9e8aba | 46710 | if [ -f ${D}arcFile2 ] ; then |
473276a9 VS |
46711 | doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib" |
46712 | fi | |
46713 | fi | |
46714 | ||
46715 | # Extract public symbols from all the object files. | |
46716 | tmpdefFile=${D}{defFile}_% | |
46717 | rm -f ${D}tmpdefFile | |
46718 | for file in ${D}inputFiles ; do | |
46719 | case ${D}file in | |
46720 | *!) | |
46721 | ;; | |
46722 | *) | |
46723 | doCommand "emxexp -u ${D}file >> ${D}tmpdefFile" | |
46724 | ;; | |
46725 | esac | |
46726 | done | |
46727 | ||
46728 | # Create the def file. | |
46729 | rm -f ${D}defFile | |
46730 | echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile | |
b1d22ded DE |
46731 | dllFile="${D}{dllFile}.dll" |
46732 | if [ ! -z ${D}description ]; then | |
1e9e8aba | 46733 | echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile |
473276a9 VS |
46734 | fi |
46735 | echo "EXPORTS" >> ${D}defFile | |
46736 | ||
46737 | doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%" | |
46738 | grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile | |
46739 | ||
46740 | # Checks if the export is ok or not. | |
46741 | for word in ${D}exclude_symbols; do | |
46742 | grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}% | |
46743 | mv ${D}{tmpdefFile}% ${D}tmpdefFile | |
46744 | done | |
46745 | ||
46746 | ||
1e9e8aba DE |
46747 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
46748 | sed "=" < ${D}tmpdefFile | \\ | |
473276a9 VS |
46749 | sed ' |
46750 | N | |
46751 | : loop | |
1e9e8aba | 46752 | s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/ |
473276a9 VS |
46753 | t loop |
46754 | ' > ${D}{tmpdefFile}% | |
46755 | grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile | |
46756 | else | |
46757 | rm -f ${D}{tmpdefFile}% | |
46758 | fi | |
46759 | cat ${D}tmpdefFile >> ${D}defFile | |
46760 | rm -f ${D}tmpdefFile | |
46761 | ||
46762 | # Do linking, create implib, and apply lxlite. | |
46763 | gccCmdl=""; | |
46764 | for file in ${D}inputFiles ; do | |
46765 | case ${D}file in | |
46766 | *!) | |
46767 | ;; | |
46768 | *) | |
46769 | gccCmdl="${D}gccCmdl ${D}file" | |
46770 | ;; | |
46771 | esac | |
46772 | done | |
46773 | doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS" | |
46774 | touch "${D}{outFile}.dll" | |
46775 | ||
46776 | doCommand "emximp -o ${D}arcFile ${D}defFile" | |
1e9e8aba | 46777 | if [ ${D}flag_USE_LXLITE -ne 0 ]; then |
473276a9 | 46778 | add_flags=""; |
1e9e8aba | 46779 | if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then |
473276a9 VS |
46780 | add_flags="-ynd" |
46781 | fi | |
46782 | doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile" | |
46783 | fi | |
46784 | doCommand "emxomf -s -l ${D}arcFile" | |
46785 | ||
46786 | # Successful exit. | |
46787 | CleanUp 1 | |
46788 | exit 0 | |
46789 | EOF | |
46790 | ||
46791 | chmod +x dllar.sh | |
a848cd7e SC |
46792 | ;; |
46793 | ||
1e9e8aba | 46794 | powerpc-apple-macos* | \ |
0ad5d837 | 46795 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \ |
a848cd7e SC |
46796 | *-*-sunos4* | \ |
46797 | *-*-osf* | \ | |
46798 | *-*-dgux5* | \ | |
47a7e797 MW |
46799 | *-*-sysv5* | \ |
46800 | *-pc-msdosdjgpp ) | |
a848cd7e SC |
46801 | ;; |
46802 | ||
46803 | *) | |
46804 | { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5 | |
46805 | echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;} | |
46806 | { (exit 1); exit 1; }; } | |
46807 | esac | |
46808 | ||
2057db16 VS |
46809 | if test "x$PIC_FLAG" != "x" ; then |
46810 | PIC_FLAG="$PIC_FLAG -DPIC" | |
46811 | fi | |
46812 | ||
a848cd7e SC |
46813 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
46814 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
46815 | fi | |
46816 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
46817 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" | |
46818 | fi | |
46819 | ||
46820 | ||
46821 | ||
46822 | ||
46823 | ||
46824 | ||
46825 | ||
46826 | ||
810b94f0 | 46827 | |
a848cd7e SC |
46828 | USE_SOVERSION=0 |
46829 | USE_SOVERLINUX=0 | |
46830 | USE_SOVERSOLARIS=0 | |
810b94f0 | 46831 | USE_SOVERCYGWIN=0 |
a848cd7e SC |
46832 | USE_SOSYMLINKS=0 |
46833 | USE_MACVERSION=0 | |
46834 | SONAME_FLAG= | |
46835 | ||
46836 | case "${BAKEFILE_HOST}" in | |
0ad5d837 | 46837 | *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu ) |
5f652d0d VS |
46838 | SONAME_FLAG="-Wl,-soname," |
46839 | USE_SOVERSION=1 | |
46840 | USE_SOVERLINUX=1 | |
46841 | USE_SOSYMLINKS=1 | |
46842 | ;; | |
46843 | ||
a848cd7e SC |
46844 | *-*-solaris2* ) |
46845 | SONAME_FLAG="-h " | |
46846 | USE_SOVERSION=1 | |
46847 | USE_SOVERSOLARIS=1 | |
46848 | USE_SOSYMLINKS=1 | |
46849 | ;; | |
46850 | ||
46851 | *-*-darwin* ) | |
46852 | USE_MACVERSION=1 | |
46853 | USE_SOVERSION=1 | |
46854 | USE_SOSYMLINKS=1 | |
46855 | ;; | |
810b94f0 MW |
46856 | |
46857 | *-*-cygwin* ) | |
46858 | USE_SOVERSION=1 | |
46859 | USE_SOVERCYGWIN=1 | |
46860 | ;; | |
a848cd7e SC |
46861 | esac |
46862 | ||
46863 | ||
46864 | ||
46865 | ||
46866 | ||
46867 | ||
46868 | ||
46869 | ||
46870 | ||
810b94f0 | 46871 | |
a848cd7e SC |
46872 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 |
46873 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
0ad5d837 | 46874 | DEPS_TRACKING=1 |
a848cd7e SC |
46875 | |
46876 | if test "x$GCC" = "xyes"; then | |
46877 | DEPSMODE=gcc | |
a848cd7e | 46878 | case "${BAKEFILE_HOST}" in |
47bd5406 | 46879 | *-*-darwin* ) |
0ad5d837 | 46880 | DEPSFLAG="-no-cpp-precomp -MMD" |
a848cd7e SC |
46881 | ;; |
46882 | * ) | |
0ad5d837 | 46883 | DEPSFLAG="-MMD" |
a848cd7e SC |
46884 | ;; |
46885 | esac | |
46886 | echo "$as_me:$LINENO: result: gcc" >&5 | |
46887 | echo "${ECHO_T}gcc" >&6 | |
b1d22ded | 46888 | elif test "x$MWCC" = "xyes"; then |
81f90336 | 46889 | DEPSMODE=mwcc |
0ad5d837 | 46890 | DEPSFLAG="-MM" |
b1d22ded DE |
46891 | echo "$as_me:$LINENO: result: mwcc" >&5 |
46892 | echo "${ECHO_T}mwcc" >&6 | |
a9e5b1f0 | 46893 | elif test "x$SUNCC" = "xyes"; then |
0ad5d837 VZ |
46894 | DEPSMODE=unixcc |
46895 | DEPSFLAG="-xM1" | |
46896 | echo "$as_me:$LINENO: result: Sun cc" >&5 | |
46897 | echo "${ECHO_T}Sun cc" >&6 | |
46898 | elif test "x$SGICC" = "xyes"; then | |
46899 | DEPSMODE=unixcc | |
46900 | DEPSFLAG="-M" | |
46901 | echo "$as_me:$LINENO: result: SGI cc" >&5 | |
46902 | echo "${ECHO_T}SGI cc" >&6 | |
3006edc0 VZ |
46903 | elif test "x$HPCC" = "xyes"; then |
46904 | DEPSMODE=unixcc | |
46905 | DEPSFLAG="+make" | |
46906 | echo "$as_me:$LINENO: result: HP cc" >&5 | |
46907 | echo "${ECHO_T}HP cc" >&6 | |
a1aa0349 VZ |
46908 | elif test "x$COMPAQCC" = "xyes"; then |
46909 | DEPSMODE=gcc | |
46910 | DEPSFLAG="-MD" | |
46911 | echo "$as_me:$LINENO: result: Compaq cc" >&5 | |
46912 | echo "${ECHO_T}Compaq cc" >&6 | |
a848cd7e | 46913 | else |
3006edc0 | 46914 | DEPS_TRACKING=0 |
a848cd7e SC |
46915 | echo "$as_me:$LINENO: result: none" >&5 |
46916 | echo "${ECHO_T}none" >&6 | |
46917 | fi | |
46918 | ||
46919 | if test $DEPS_TRACKING = 1 ; then | |
473276a9 VS |
46920 | |
46921 | D='$' | |
46922 | cat <<EOF >bk-deps | |
a848cd7e SC |
46923 | #!/bin/sh |
46924 | ||
46925 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
46926 | # script. It is used to track C/C++ files dependencies in portable way. | |
46927 | # | |
46928 | # Permission is given to use this file in any way. | |
46929 | ||
473276a9 | 46930 | DEPSMODE=${DEPSMODE} |
a848cd7e | 46931 | DEPSDIR=.deps |
0ad5d837 | 46932 | DEPSFLAG="${DEPSFLAG}" |
a848cd7e | 46933 | |
473276a9 | 46934 | mkdir -p ${D}DEPSDIR |
a848cd7e | 46935 | |
473276a9 | 46936 | if test ${D}DEPSMODE = gcc ; then |
0ad5d837 | 46937 | ${D}* ${D}{DEPSFLAG} |
473276a9 VS |
46938 | status=${D}? |
46939 | if test ${D}{status} != 0 ; then | |
46940 | exit ${D}{status} | |
a848cd7e SC |
46941 | fi |
46942 | # move created file to the location we want it in: | |
473276a9 VS |
46943 | while test ${D}# -gt 0; do |
46944 | case "${D}1" in | |
a848cd7e SC |
46945 | -o ) |
46946 | shift | |
473276a9 | 46947 | objfile=${D}1 |
a848cd7e SC |
46948 | ;; |
46949 | -* ) | |
46950 | ;; | |
46951 | * ) | |
473276a9 | 46952 | srcfile=${D}1 |
a848cd7e SC |
46953 | ;; |
46954 | esac | |
46955 | shift | |
46956 | done | |
1e9e8aba DE |
46957 | depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\` |
46958 | depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\` | |
473276a9 VS |
46959 | if test -f ${D}depfile ; then |
46960 | sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
46961 | rm -f ${D}depfile | |
a848cd7e | 46962 | else |
a1aa0349 | 46963 | # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d |
1e9e8aba | 46964 | depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\` |
a1aa0349 VZ |
46965 | if test ! -f ${D}depfile ; then |
46966 | # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++) | |
46967 | depfile="${D}objfile.d" | |
46968 | fi | |
473276a9 VS |
46969 | if test -f ${D}depfile ; then |
46970 | sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
46971 | rm -f ${D}depfile | |
a848cd7e SC |
46972 | fi |
46973 | fi | |
46974 | exit 0 | |
81f90336 | 46975 | elif test ${D}DEPSMODE = mwcc ; then |
f6b50c59 | 46976 | ${D}* || exit ${D}? |
81f90336 MW |
46977 | # Run mwcc again with -MM and redirect into the dep file we want |
46978 | # NOTE: We can't use shift here because we need ${D}* to be valid | |
46979 | prevarg= | |
46980 | for arg in ${D}* ; do | |
46981 | if test "${D}prevarg" = "-o"; then | |
46982 | objfile=${D}arg | |
46983 | else | |
46984 | case "${D}arg" in | |
46985 | -* ) | |
46986 | ;; | |
46987 | * ) | |
46988 | srcfile=${D}arg | |
46989 | ;; | |
46990 | esac | |
46991 | fi | |
46992 | prevarg="${D}arg" | |
46993 | done | |
0ad5d837 | 46994 | ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d |
81f90336 | 46995 | exit 0 |
0ad5d837 | 46996 | elif test ${D}DEPSMODE = unixcc; then |
f6b50c59 | 46997 | ${D}* || exit ${D}? |
a9e5b1f0 MW |
46998 | # Run compiler again with deps flag and redirect into the dep file. |
46999 | # It doesn't work if the '-o FILE' option is used, but without it the | |
47000 | # dependency file will contain the wrong name for the object. So it is | |
47001 | # removed from the command line, and the dep file is fixed with sed. | |
47002 | cmd="" | |
47003 | while test ${D}# -gt 0; do | |
47004 | case "${D}1" in | |
47005 | -o ) | |
47006 | shift | |
47007 | objfile=${D}1 | |
47008 | ;; | |
47009 | * ) | |
47010 | eval arg${D}#=\\${D}1 | |
47011 | cmd="${D}cmd \\${D}arg${D}#" | |
47012 | ;; | |
47013 | esac | |
47014 | shift | |
47015 | done | |
0ad5d837 | 47016 | eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d |
a9e5b1f0 | 47017 | exit 0 |
a848cd7e | 47018 | else |
473276a9 VS |
47019 | ${D}* |
47020 | exit ${D}? | |
a848cd7e SC |
47021 | fi |
47022 | EOF | |
473276a9 | 47023 | |
a848cd7e SC |
47024 | chmod +x bk-deps |
47025 | fi | |
47026 | ||
47027 | ||
47028 | ||
47029 | ||
a848cd7e SC |
47030 | case ${BAKEFILE_HOST} in |
47031 | *-*-cygwin* | *-*-mingw32* ) | |
8ced02f6 DE |
47032 | if test -n "$ac_tool_prefix"; then |
47033 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
47034 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
47035 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
47036 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
47037 | if test "${ac_cv_prog_WINDRES+set}" = set; then | |
47038 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
47039 | else | |
47040 | if test -n "$WINDRES"; then | |
47041 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
47042 | else | |
47043 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
47044 | for as_dir in $PATH | |
47045 | do | |
47046 | IFS=$as_save_IFS | |
47047 | test -z "$as_dir" && as_dir=. | |
47048 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47049 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
47050 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" | |
47051 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
47052 | break 2 | |
47053 | fi | |
47054 | done | |
47055 | done | |
47056 | ||
47057 | fi | |
47058 | fi | |
47059 | WINDRES=$ac_cv_prog_WINDRES | |
47060 | if test -n "$WINDRES"; then | |
47061 | echo "$as_me:$LINENO: result: $WINDRES" >&5 | |
47062 | echo "${ECHO_T}$WINDRES" >&6 | |
47063 | else | |
47064 | echo "$as_me:$LINENO: result: no" >&5 | |
47065 | echo "${ECHO_T}no" >&6 | |
47066 | fi | |
47067 | ||
47068 | fi | |
47069 | if test -z "$ac_cv_prog_WINDRES"; then | |
47070 | ac_ct_WINDRES=$WINDRES | |
47071 | # Extract the first word of "windres", so it can be a program name with args. | |
a848cd7e SC |
47072 | set dummy windres; ac_word=$2 |
47073 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
47074 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 47075 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
a848cd7e SC |
47076 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
47077 | else | |
8ced02f6 DE |
47078 | if test -n "$ac_ct_WINDRES"; then |
47079 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
a848cd7e SC |
47080 | else |
47081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
47082 | for as_dir in $PATH | |
47083 | do | |
47084 | IFS=$as_save_IFS | |
47085 | test -z "$as_dir" && as_dir=. | |
47086 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47087 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 47088 | ac_cv_prog_ac_ct_WINDRES="windres" |
a848cd7e SC |
47089 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
47090 | break 2 | |
47091 | fi | |
47092 | done | |
47093 | done | |
47094 | ||
a848cd7e SC |
47095 | fi |
47096 | fi | |
8ced02f6 DE |
47097 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
47098 | if test -n "$ac_ct_WINDRES"; then | |
47099 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 | |
47100 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
a848cd7e SC |
47101 | else |
47102 | echo "$as_me:$LINENO: result: no" >&5 | |
47103 | echo "${ECHO_T}no" >&6 | |
47104 | fi | |
47105 | ||
8ced02f6 DE |
47106 | WINDRES=$ac_ct_WINDRES |
47107 | else | |
47108 | WINDRES="$ac_cv_prog_WINDRES" | |
47109 | fi | |
47110 | ||
a848cd7e SC |
47111 | ;; |
47112 | ||
1e9e8aba | 47113 | *-*-darwin* | powerpc-apple-macos* ) |
a848cd7e SC |
47114 | # Extract the first word of "Rez", so it can be a program name with args. |
47115 | set dummy Rez; ac_word=$2 | |
47116 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
47117 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8ced02f6 | 47118 | if test "${ac_cv_prog_REZ+set}" = set; then |
a848cd7e SC |
47119 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
47120 | else | |
8ced02f6 DE |
47121 | if test -n "$REZ"; then |
47122 | ac_cv_prog_REZ="$REZ" # Let the user override the test. | |
a848cd7e SC |
47123 | else |
47124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
47125 | for as_dir in $PATH | |
47126 | do | |
47127 | IFS=$as_save_IFS | |
47128 | test -z "$as_dir" && as_dir=. | |
47129 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47130 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8ced02f6 | 47131 | ac_cv_prog_REZ="Rez" |
a848cd7e SC |
47132 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
47133 | break 2 | |
47134 | fi | |
47135 | done | |
47136 | done | |
47137 | ||
8ced02f6 | 47138 | test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez" |
a848cd7e SC |
47139 | fi |
47140 | fi | |
8ced02f6 DE |
47141 | REZ=$ac_cv_prog_REZ |
47142 | if test -n "$REZ"; then | |
47143 | echo "$as_me:$LINENO: result: $REZ" >&5 | |
47144 | echo "${ECHO_T}$REZ" >&6 | |
a848cd7e SC |
47145 | else |
47146 | echo "$as_me:$LINENO: result: no" >&5 | |
47147 | echo "${ECHO_T}no" >&6 | |
47148 | fi | |
47149 | ||
47150 | # Extract the first word of "SetFile", so it can be a program name with args. | |
47151 | set dummy SetFile; ac_word=$2 | |
47152 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
47153 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
47154 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
47155 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
47156 | else | |
47157 | if test -n "$SETFILE"; then | |
47158 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
47159 | else | |
47160 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
47161 | for as_dir in $PATH | |
47162 | do | |
47163 | IFS=$as_save_IFS | |
47164 | test -z "$as_dir" && as_dir=. | |
47165 | for ac_exec_ext in '' $ac_executable_extensions; do | |
47166 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
47167 | ac_cv_prog_SETFILE="SetFile" | |
47168 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
47169 | break 2 | |
47170 | fi | |
47171 | done | |
47172 | done | |
47173 | ||
47174 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
47175 | fi | |
47176 | fi | |
47177 | SETFILE=$ac_cv_prog_SETFILE | |
47178 | if test -n "$SETFILE"; then | |
47179 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
47180 | echo "${ECHO_T}$SETFILE" >&6 | |
47181 | else | |
47182 | echo "$as_me:$LINENO: result: no" >&5 | |
47183 | echo "${ECHO_T}no" >&6 | |
47184 | fi | |
47185 | ||
47186 | ;; | |
47187 | esac | |
47188 | ||
47189 | ||
47190 | ||
47191 | ||
47192 | ||
8ced02f6 | 47193 | |
c9469659 | 47194 | BAKEFILE_BAKEFILE_M4_VERSION="0.1.9" |
a848cd7e | 47195 | |
dcc1b6ad | 47196 | |
c9469659 | 47197 | BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.9" |
a848cd7e | 47198 | |
646b6ec1 | 47199 | |
74b84332 | 47200 | |
a848cd7e SC |
47201 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
47202 | if test "${enable_precomp_headers+set}" = set; then | |
47203 | enableval="$enable_precomp_headers" | |
47204 | bk_use_pch="$enableval" | |
47205 | fi; | |
47206 | ||
47207 | GCC_PCH=0 | |
47208 | ||
5c60e845 MW |
47209 | case ${BAKEFILE_HOST} in |
47210 | *-*-cygwin* ) | |
47211 | bk_use_pch="no" | |
47212 | ;; | |
47213 | esac | |
47214 | ||
a848cd7e SC |
47215 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then |
47216 | if test "x$GCC" = "xyes"; then | |
47217 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
47218 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
47219 | cat >conftest.$ac_ext <<_ACEOF | |
47220 | /* confdefs.h. */ | |
47221 | _ACEOF | |
47222 | cat confdefs.h >>conftest.$ac_ext | |
47223 | cat >>conftest.$ac_ext <<_ACEOF | |
47224 | /* end confdefs.h. */ | |
47225 | ||
47226 | int | |
47227 | main () | |
47228 | { | |
47229 | ||
47230 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
47231 | #error "no pch support" | |
47232 | #endif | |
47233 | #if (__GNUC__ < 3) | |
47234 | #error "no pch support" | |
47235 | #endif | |
47236 | #if (__GNUC__ == 3) && \ | |
47237 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
47238 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
47239 | #error "no pch support" | |
47240 | #endif | |
47241 | ||
47242 | ; | |
47243 | return 0; | |
47244 | } | |
47245 | _ACEOF | |
47246 | rm -f conftest.$ac_objext | |
47247 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ac1cb8d3 | 47248 | (eval $ac_compile) 2>conftest.er1 |
a848cd7e | 47249 | ac_status=$? |
ac1cb8d3 VS |
47250 | grep -v '^ *+' conftest.er1 >conftest.err |
47251 | rm -f conftest.er1 | |
47252 | cat conftest.err >&5 | |
a848cd7e SC |
47253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
47254 | (exit $ac_status); } && | |
3565d135 RR |
47255 | { ac_try='test -z "$ac_c_werror_flag" |
47256 | || test ! -s conftest.err' | |
ac1cb8d3 VS |
47257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
47258 | (eval $ac_try) 2>&5 | |
47259 | ac_status=$? | |
47260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47261 | (exit $ac_status); }; } && | |
47262 | { ac_try='test -s conftest.$ac_objext' | |
a848cd7e SC |
47263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
47264 | (eval $ac_try) 2>&5 | |
47265 | ac_status=$? | |
47266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
47267 | (exit $ac_status); }; }; then | |
47268 | ||
47269 | echo "$as_me:$LINENO: result: yes" >&5 | |
47270 | echo "${ECHO_T}yes" >&6 | |
a848cd7e SC |
47271 | GCC_PCH=1 |
47272 | ||
47273 | else | |
47274 | echo "$as_me: failed program was:" >&5 | |
47275 | sed 's/^/| /' conftest.$ac_ext >&5 | |
47276 | ||
47277 | ||
47278 | echo "$as_me:$LINENO: result: no" >&5 | |
47279 | echo "${ECHO_T}no" >&6 | |
47280 | ||
47281 | fi | |
ac1cb8d3 | 47282 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 47283 | if test $GCC_PCH = 1 ; then |
1e9e8aba DE |
47284 | |
47285 | D='$' | |
47286 | cat <<EOF >bk-make-pch | |
a848cd7e SC |
47287 | #!/bin/sh |
47288 | ||
47289 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
47290 | # script. It is used to generated precompiled headers. | |
47291 | # | |
47292 | # Permission is given to use this file in any way. | |
47293 | ||
1e9e8aba DE |
47294 | outfile="${D}{1}" |
47295 | header="${D}{2}" | |
a848cd7e SC |
47296 | shift |
47297 | shift | |
47298 | ||
47299 | compiler= | |
47300 | headerfile= | |
1e9e8aba DE |
47301 | while test ${D}{#} -gt 0; do |
47302 | case "${D}{1}" in | |
a848cd7e | 47303 | -I* ) |
1e9e8aba DE |
47304 | incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\` |
47305 | if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then | |
47306 | headerfile="${D}{incdir}/${D}{header}" | |
a848cd7e SC |
47307 | fi |
47308 | ;; | |
47309 | esac | |
1e9e8aba | 47310 | compiler="${D}{compiler} ${D}{1}" |
a848cd7e SC |
47311 | shift |
47312 | done | |
47313 | ||
1e9e8aba DE |
47314 | if test "x${D}{headerfile}" = "x" ; then |
47315 | echo "error: can't find header ${D}{header} in include paths" >2 | |
a848cd7e | 47316 | else |
1e9e8aba DE |
47317 | if test -f ${D}{outfile} ; then |
47318 | rm -f ${D}{outfile} | |
a848cd7e | 47319 | else |
1e9e8aba | 47320 | mkdir -p \`dirname ${D}{outfile}\` |
a848cd7e | 47321 | fi |
1e9e8aba | 47322 | depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d" |
a848cd7e SC |
47323 | mkdir -p .deps |
47324 | # can do this because gcc is >= 3.4: | |
1e9e8aba DE |
47325 | ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}" |
47326 | exit ${D}{?} | |
a848cd7e SC |
47327 | fi |
47328 | EOF | |
1e9e8aba | 47329 | |
a848cd7e SC |
47330 | chmod +x bk-make-pch |
47331 | fi | |
47332 | fi | |
47333 | fi | |
47334 | ||
47335 | ||
47336 | ||
a848cd7e SC |
47337 | COND_BUILD_DEBUG="#" |
47338 | if test "x$BUILD" = "xdebug" ; then | |
47339 | COND_BUILD_DEBUG="" | |
47340 | fi | |
47341 | ||
47342 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
47343 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
47344 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
47345 | fi | |
47346 | ||
47347 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
47348 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
47349 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
47350 | fi | |
47351 | ||
47352 | COND_BUILD_DEBUG_UNICODE_0="#" | |
47353 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
47354 | COND_BUILD_DEBUG_UNICODE_0="" | |
47355 | fi | |
47356 | ||
47357 | COND_BUILD_DEBUG_UNICODE_1="#" | |
47358 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
47359 | COND_BUILD_DEBUG_UNICODE_1="" | |
47360 | fi | |
47361 | ||
47362 | COND_BUILD_RELEASE="#" | |
47363 | if test "x$BUILD" = "xrelease" ; then | |
47364 | COND_BUILD_RELEASE="" | |
47365 | fi | |
47366 | ||
47367 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
47368 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
47369 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
47370 | fi | |
47371 | ||
47372 | COND_BUILD_RELEASE_UNICODE_0="#" | |
47373 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
47374 | COND_BUILD_RELEASE_UNICODE_0="" | |
47375 | fi | |
47376 | ||
47377 | COND_BUILD_RELEASE_UNICODE_1="#" | |
47378 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
47379 | COND_BUILD_RELEASE_UNICODE_1="" | |
47380 | fi | |
47381 | ||
47382 | COND_DEBUG_FLAG_1="#" | |
47383 | if test "x$DEBUG_FLAG" = "x1" ; then | |
47384 | COND_DEBUG_FLAG_1="" | |
47385 | fi | |
47386 | ||
47387 | COND_DEBUG_INFO_0="#" | |
47388 | if test "x$DEBUG_INFO" = "x0" ; then | |
47389 | COND_DEBUG_INFO_0="" | |
47390 | fi | |
47391 | ||
47392 | COND_DEBUG_INFO_1="#" | |
47393 | if test "x$DEBUG_INFO" = "x1" ; then | |
47394 | COND_DEBUG_INFO_1="" | |
47395 | fi | |
47396 | ||
47397 | COND_DEPS_TRACKING_0="#" | |
47398 | if test "x$DEPS_TRACKING" = "x0" ; then | |
47399 | COND_DEPS_TRACKING_0="" | |
47400 | fi | |
47401 | ||
47402 | COND_DEPS_TRACKING_1="#" | |
47403 | if test "x$DEPS_TRACKING" = "x1" ; then | |
47404 | COND_DEPS_TRACKING_1="" | |
47405 | fi | |
47406 | ||
47407 | COND_GCC_PCH_1="#" | |
47408 | if test "x$GCC_PCH" = "x1" ; then | |
47409 | COND_GCC_PCH_1="" | |
47410 | fi | |
47411 | ||
47412 | COND_MONOLITHIC_0="#" | |
47413 | if test "x$MONOLITHIC" = "x0" ; then | |
47414 | COND_MONOLITHIC_0="" | |
47415 | fi | |
47416 | ||
47417 | COND_MONOLITHIC_0_SHARED_0="#" | |
47418 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
47419 | COND_MONOLITHIC_0_SHARED_0="" | |
47420 | fi | |
47421 | ||
47422 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
47423 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
47424 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
47425 | fi | |
47426 | ||
90970d69 DE |
47427 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#" |
47428 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
47429 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="" | |
47430 | fi | |
47431 | ||
a848cd7e SC |
47432 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" |
47433 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
47434 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
47435 | fi | |
47436 | ||
6671c68b VZ |
47437 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#" |
47438 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
47439 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="" | |
47440 | fi | |
47441 | ||
a848cd7e SC |
47442 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" |
47443 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
47444 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
47445 | fi | |
47446 | ||
ceec2216 RL |
47447 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#" |
47448 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
47449 | COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="" | |
47450 | fi | |
47451 | ||
a848cd7e SC |
47452 | COND_MONOLITHIC_0_SHARED_1="#" |
47453 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
47454 | COND_MONOLITHIC_0_SHARED_1="" | |
47455 | fi | |
47456 | ||
47457 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
47458 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
47459 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
47460 | fi | |
47461 | ||
90970d69 DE |
47462 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#" |
47463 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then | |
47464 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="" | |
47465 | fi | |
47466 | ||
a848cd7e SC |
47467 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" |
47468 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
47469 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
47470 | fi | |
47471 | ||
6671c68b VZ |
47472 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#" |
47473 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then | |
47474 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="" | |
47475 | fi | |
47476 | ||
a848cd7e SC |
47477 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" |
47478 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
47479 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
47480 | fi | |
47481 | ||
ceec2216 RL |
47482 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#" |
47483 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
47484 | COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="" | |
47485 | fi | |
47486 | ||
a848cd7e SC |
47487 | COND_MONOLITHIC_0_USE_ODBC_1="#" |
47488 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
47489 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
47490 | fi | |
47491 | ||
47492 | COND_MONOLITHIC_1="#" | |
47493 | if test "x$MONOLITHIC" = "x1" ; then | |
47494 | COND_MONOLITHIC_1="" | |
47495 | fi | |
47496 | ||
47497 | COND_MONOLITHIC_1_SHARED_0="#" | |
47498 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
47499 | COND_MONOLITHIC_1_SHARED_0="" | |
47500 | fi | |
47501 | ||
47502 | COND_MONOLITHIC_1_SHARED_1="#" | |
47503 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
47504 | COND_MONOLITHIC_1_SHARED_1="" | |
47505 | fi | |
47506 | ||
47507 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
47508 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
47509 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
47510 | fi | |
47511 | ||
47512 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
47513 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
47514 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
47515 | fi | |
47516 | ||
eb730a0c JS |
47517 | COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#" |
47518 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
47519 | COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="" | |
47520 | fi | |
47521 | ||
a848cd7e SC |
47522 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" |
47523 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
47524 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
47525 | fi | |
47526 | ||
47527 | COND_PLATFORM_MACOSX_1="#" | |
47528 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
47529 | COND_PLATFORM_MACOSX_1="" | |
47530 | fi | |
47531 | ||
a30f955f VS |
47532 | COND_PLATFORM_MACOSX_1_TOOLKIT_="#" |
47533 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then | |
47534 | COND_PLATFORM_MACOSX_1_TOOLKIT_="" | |
47535 | fi | |
47536 | ||
a848cd7e SC |
47537 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" |
47538 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
47539 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
47540 | fi | |
47541 | ||
47542 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
47543 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
47544 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
47545 | fi | |
47546 | ||
47547 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
47548 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
47549 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
47550 | fi | |
47551 | ||
fc480dc1 DE |
47552 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#" |
47553 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
47554 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="" | |
47555 | fi | |
47556 | ||
1e9e8aba DE |
47557 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" |
47558 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47559 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
47560 | fi | |
47561 | ||
ebee3cd0 VS |
47562 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#" |
47563 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then | |
47564 | COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="" | |
47565 | fi | |
47566 | ||
47567 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#" | |
47568 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then | |
47569 | COND_PLATFORM_MACOSX_1_TOOLKIT_X11="" | |
47570 | fi | |
47571 | ||
a848cd7e SC |
47572 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
47573 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
47574 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
47575 | fi | |
47576 | ||
47577 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
47578 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
47579 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
47580 | fi | |
47581 | ||
b48a2016 DE |
47582 | COND_PLATFORM_MACOS_1="#" |
47583 | if test "x$PLATFORM_MACOS" = "x1" ; then | |
47584 | COND_PLATFORM_MACOS_1="" | |
47585 | fi | |
47586 | ||
083508af MW |
47587 | COND_PLATFORM_MAC_1="#" |
47588 | if test "x$PLATFORM_MAC" = "x1" ; then | |
47589 | COND_PLATFORM_MAC_1="" | |
47590 | fi | |
47591 | ||
83d8eb47 MW |
47592 | COND_PLATFORM_MSDOS_1="#" |
47593 | if test "x$PLATFORM_MSDOS" = "x1" ; then | |
47594 | COND_PLATFORM_MSDOS_1="" | |
47595 | fi | |
47596 | ||
a848cd7e SC |
47597 | COND_PLATFORM_OS2_1="#" |
47598 | if test "x$PLATFORM_OS2" = "x1" ; then | |
47599 | COND_PLATFORM_OS2_1="" | |
47600 | fi | |
47601 | ||
47602 | COND_PLATFORM_UNIX_0="#" | |
47603 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
47604 | COND_PLATFORM_UNIX_0="" | |
47605 | fi | |
47606 | ||
47607 | COND_PLATFORM_UNIX_1="#" | |
47608 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
47609 | COND_PLATFORM_UNIX_1="" | |
47610 | fi | |
47611 | ||
47612 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
47613 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
47614 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
47615 | fi | |
47616 | ||
47617 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
47618 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
47619 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
47620 | fi | |
47621 | ||
47622 | COND_PLATFORM_WIN32_0="#" | |
47623 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
47624 | COND_PLATFORM_WIN32_0="" | |
47625 | fi | |
47626 | ||
47627 | COND_PLATFORM_WIN32_1="#" | |
47628 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
47629 | COND_PLATFORM_WIN32_1="" | |
47630 | fi | |
47631 | ||
47632 | COND_SHARED_0="#" | |
47633 | if test "x$SHARED" = "x0" ; then | |
47634 | COND_SHARED_0="" | |
47635 | fi | |
47636 | ||
083508af MW |
47637 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#" |
47638 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then | |
47639 | COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="" | |
47640 | fi | |
47641 | ||
47642 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#" | |
47643 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
47644 | COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="" | |
47645 | fi | |
47646 | ||
47647 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#" | |
47648 | if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then | |
47649 | COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="" | |
47650 | fi | |
47651 | ||
a848cd7e SC |
47652 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
47653 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
47654 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
47655 | fi | |
47656 | ||
47657 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
47658 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
47659 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
47660 | fi | |
47661 | ||
47662 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
47663 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
47664 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
47665 | fi | |
47666 | ||
47667 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
47668 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
47669 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
47670 | fi | |
47671 | ||
083508af MW |
47672 | COND_SHARED_0_USE_XRC_1="#" |
47673 | if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then | |
47674 | COND_SHARED_0_USE_XRC_1="" | |
47675 | fi | |
47676 | ||
a848cd7e SC |
47677 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" |
47678 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
47679 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
47680 | fi | |
47681 | ||
47682 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
47683 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
47684 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
47685 | fi | |
47686 | ||
47687 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
47688 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
47689 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
47690 | fi | |
47691 | ||
47692 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
47693 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
47694 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
47695 | fi | |
47696 | ||
47697 | COND_SHARED_1="#" | |
47698 | if test "x$SHARED" = "x1" ; then | |
47699 | COND_SHARED_1="" | |
47700 | fi | |
47701 | ||
47702 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
47703 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
47704 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
47705 | fi | |
47706 | ||
083508af MW |
47707 | COND_SHARED_1_USE_XRC_1="#" |
47708 | if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then | |
47709 | COND_SHARED_1_USE_XRC_1="" | |
47710 | fi | |
47711 | ||
a30f955f VS |
47712 | COND_TOOLKIT_="#" |
47713 | if test "x$TOOLKIT" = "x" ; then | |
47714 | COND_TOOLKIT_="" | |
47715 | fi | |
47716 | ||
a848cd7e SC |
47717 | COND_TOOLKIT_COCOA="#" |
47718 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
47719 | COND_TOOLKIT_COCOA="" | |
47720 | fi | |
47721 | ||
a49baeab DE |
47722 | COND_TOOLKIT_COCOA_USE_GUI_1="#" |
47723 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then | |
47724 | COND_TOOLKIT_COCOA_USE_GUI_1="" | |
47725 | fi | |
47726 | ||
a848cd7e SC |
47727 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
47728 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47729 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
47730 | fi | |
47731 | ||
47732 | COND_TOOLKIT_GTK="#" | |
47733 | if test "x$TOOLKIT" = "xGTK" ; then | |
47734 | COND_TOOLKIT_GTK="" | |
47735 | fi | |
47736 | ||
d044deea MW |
47737 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#" |
47738 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then | |
47739 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_="" | |
47740 | fi | |
47741 | ||
47742 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#" | |
47743 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then | |
47744 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="" | |
47745 | fi | |
47746 | ||
47747 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#" | |
47748 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then | |
47749 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="" | |
47750 | fi | |
47751 | ||
47752 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#" | |
47753 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47754 | COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="" | |
47755 | fi | |
47756 | ||
47757 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#" | |
47758 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then | |
47759 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="" | |
47760 | fi | |
47761 | ||
47762 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#" | |
47763 | if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47764 | COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="" | |
47765 | fi | |
47766 | ||
a848cd7e SC |
47767 | COND_TOOLKIT_GTK_USE_GUI_1="#" |
47768 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
47769 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
47770 | fi | |
47771 | ||
a848cd7e SC |
47772 | COND_TOOLKIT_MAC="#" |
47773 | if test "x$TOOLKIT" = "xMAC" ; then | |
47774 | COND_TOOLKIT_MAC="" | |
47775 | fi | |
47776 | ||
47777 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
47778 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
47779 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
47780 | fi | |
47781 | ||
47782 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
47783 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47784 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
47785 | fi | |
47786 | ||
47787 | COND_TOOLKIT_MGL="#" | |
47788 | if test "x$TOOLKIT" = "xMGL" ; then | |
47789 | COND_TOOLKIT_MGL="" | |
47790 | fi | |
47791 | ||
47792 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
47793 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
47794 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
47795 | fi | |
47796 | ||
47797 | COND_TOOLKIT_MOTIF="#" | |
47798 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
47799 | COND_TOOLKIT_MOTIF="" | |
47800 | fi | |
47801 | ||
47802 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
47803 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
47804 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
47805 | fi | |
47806 | ||
47807 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
47808 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47809 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
47810 | fi | |
47811 | ||
47812 | COND_TOOLKIT_MSW="#" | |
47813 | if test "x$TOOLKIT" = "xMSW" ; then | |
47814 | COND_TOOLKIT_MSW="" | |
47815 | fi | |
47816 | ||
47817 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
47818 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
47819 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
47820 | fi | |
47821 | ||
47822 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
47823 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47824 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
47825 | fi | |
47826 | ||
0ee4059d DE |
47827 | COND_TOOLKIT_MSW_WXUNIV_0="#" |
47828 | if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then | |
47829 | COND_TOOLKIT_MSW_WXUNIV_0="" | |
47830 | fi | |
47831 | ||
a848cd7e SC |
47832 | COND_TOOLKIT_PM="#" |
47833 | if test "x$TOOLKIT" = "xPM" ; then | |
47834 | COND_TOOLKIT_PM="" | |
47835 | fi | |
47836 | ||
47837 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
47838 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
47839 | COND_TOOLKIT_PM_USE_GUI_1="" | |
47840 | fi | |
47841 | ||
47842 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
47843 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47844 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
47845 | fi | |
47846 | ||
3fd9c298 DE |
47847 | COND_TOOLKIT_WINCE="#" |
47848 | if test "x$TOOLKIT" = "xWINCE" ; then | |
47849 | COND_TOOLKIT_WINCE="" | |
47850 | fi | |
47851 | ||
47852 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
47853 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
47854 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
47855 | fi | |
47856 | ||
47857 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
47858 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47859 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
47860 | fi | |
47861 | ||
0ee4059d DE |
47862 | COND_TOOLKIT_WINCE_WXUNIV_0="#" |
47863 | if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then | |
47864 | COND_TOOLKIT_WINCE_WXUNIV_0="" | |
47865 | fi | |
47866 | ||
a848cd7e SC |
47867 | COND_TOOLKIT_X11="#" |
47868 | if test "x$TOOLKIT" = "xX11" ; then | |
47869 | COND_TOOLKIT_X11="" | |
47870 | fi | |
47871 | ||
47872 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
47873 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
47874 | COND_TOOLKIT_X11_USE_GUI_1="" | |
47875 | fi | |
47876 | ||
47877 | COND_UNICODE_1="#" | |
47878 | if test "x$UNICODE" = "x1" ; then | |
47879 | COND_UNICODE_1="" | |
47880 | fi | |
47881 | ||
47882 | COND_USE_EXCEPTIONS_0="#" | |
47883 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
47884 | COND_USE_EXCEPTIONS_0="" | |
47885 | fi | |
47886 | ||
47887 | COND_USE_EXCEPTIONS_1="#" | |
47888 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
47889 | COND_USE_EXCEPTIONS_1="" | |
47890 | fi | |
47891 | ||
47892 | COND_USE_GUI_0="#" | |
47893 | if test "x$USE_GUI" = "x0" ; then | |
47894 | COND_USE_GUI_0="" | |
47895 | fi | |
47896 | ||
47897 | COND_USE_GUI_1="#" | |
47898 | if test "x$USE_GUI" = "x1" ; then | |
47899 | COND_USE_GUI_1="" | |
47900 | fi | |
47901 | ||
47902 | COND_USE_GUI_1_WXUNIV_0="#" | |
47903 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
47904 | COND_USE_GUI_1_WXUNIV_0="" | |
47905 | fi | |
47906 | ||
47907 | COND_USE_GUI_1_WXUNIV_1="#" | |
47908 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
47909 | COND_USE_GUI_1_WXUNIV_1="" | |
47910 | fi | |
47911 | ||
47912 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
47913 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
47914 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
47915 | fi | |
47916 | ||
47917 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
47918 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
47919 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
47920 | fi | |
47921 | ||
47922 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
47923 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
47924 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
47925 | fi | |
47926 | ||
083508af MW |
47927 | COND_USE_ODBC_1="#" |
47928 | if test "x$USE_ODBC" = "x1" ; then | |
47929 | COND_USE_ODBC_1="" | |
47930 | fi | |
47931 | ||
47932 | COND_USE_OPENGL_1="#" | |
47933 | if test "x$USE_OPENGL" = "x1" ; then | |
47934 | COND_USE_OPENGL_1="" | |
47935 | fi | |
47936 | ||
a848cd7e SC |
47937 | COND_USE_PLUGINS_0="#" |
47938 | if test "x$USE_PLUGINS" = "x0" ; then | |
47939 | COND_USE_PLUGINS_0="" | |
47940 | fi | |
47941 | ||
0b78747f MW |
47942 | COND_USE_RTTI_0="#" |
47943 | if test "x$USE_RTTI" = "x0" ; then | |
47944 | COND_USE_RTTI_0="" | |
47945 | fi | |
47946 | ||
47947 | COND_USE_RTTI_1="#" | |
47948 | if test "x$USE_RTTI" = "x1" ; then | |
47949 | COND_USE_RTTI_1="" | |
47950 | fi | |
47951 | ||
a848cd7e SC |
47952 | COND_USE_SOSYMLINKS_1="#" |
47953 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
47954 | COND_USE_SOSYMLINKS_1="" | |
47955 | fi | |
47956 | ||
eb730a0c JS |
47957 | COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#" |
47958 | if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
47959 | COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="" | |
47960 | fi | |
47961 | ||
a848cd7e SC |
47962 | COND_USE_SOVERLINUX_1="#" |
47963 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
47964 | COND_USE_SOVERLINUX_1="" | |
47965 | fi | |
47966 | ||
47967 | COND_USE_SOVERSION_0="#" | |
47968 | if test "x$USE_SOVERSION" = "x0" ; then | |
47969 | COND_USE_SOVERSION_0="" | |
47970 | fi | |
47971 | ||
47972 | COND_USE_SOVERSOLARIS_1="#" | |
47973 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
47974 | COND_USE_SOVERSOLARIS_1="" | |
47975 | fi | |
47976 | ||
0b78747f MW |
47977 | COND_USE_THREADS_0="#" |
47978 | if test "x$USE_THREADS" = "x0" ; then | |
47979 | COND_USE_THREADS_0="" | |
47980 | fi | |
47981 | ||
47982 | COND_USE_THREADS_1="#" | |
47983 | if test "x$USE_THREADS" = "x1" ; then | |
47984 | COND_USE_THREADS_1="" | |
47985 | fi | |
47986 | ||
a13a7f89 RL |
47987 | COND_USE_XRC_1="#" |
47988 | if test "x$USE_XRC" = "x1" ; then | |
47989 | COND_USE_XRC_1="" | |
47990 | fi | |
47991 | ||
eb730a0c JS |
47992 | COND_WINDOWS_IMPLIB_1="#" |
47993 | if test "x$WINDOWS_IMPLIB" = "x1" ; then | |
47994 | COND_WINDOWS_IMPLIB_1="" | |
47995 | fi | |
47996 | ||
a848cd7e SC |
47997 | COND_WITH_PLUGIN_SDL_1="#" |
47998 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
47999 | COND_WITH_PLUGIN_SDL_1="" | |
48000 | fi | |
48001 | ||
1e6eb025 VZ |
48002 | COND_WXUNIV_0="#" |
48003 | if test "x$WXUNIV" = "x0" ; then | |
48004 | COND_WXUNIV_0="" | |
48005 | fi | |
48006 | ||
a848cd7e SC |
48007 | COND_WXUNIV_1="#" |
48008 | if test "x$WXUNIV" = "x1" ; then | |
48009 | COND_WXUNIV_1="" | |
48010 | fi | |
48011 | ||
48012 | COND_WXUSE_EXPAT_BUILTIN="#" | |
48013 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
48014 | COND_WXUSE_EXPAT_BUILTIN="" | |
48015 | fi | |
48016 | ||
48017 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
48018 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
48019 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
48020 | fi | |
48021 | ||
48022 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
48023 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
48024 | COND_WXUSE_LIBPNG_BUILTIN="" | |
48025 | fi | |
48026 | ||
48027 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
48028 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
48029 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
48030 | fi | |
48031 | ||
48032 | COND_WXUSE_ODBC_BUILTIN="#" | |
48033 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
48034 | COND_WXUSE_ODBC_BUILTIN="" | |
48035 | fi | |
48036 | ||
48037 | COND_WXUSE_REGEX_BUILTIN="#" | |
48038 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
48039 | COND_WXUSE_REGEX_BUILTIN="" | |
48040 | fi | |
48041 | ||
48042 | COND_WXUSE_ZLIB_BUILTIN="#" | |
48043 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
48044 | COND_WXUSE_ZLIB_BUILTIN="" | |
48045 | fi | |
48046 | ||
48047 | ||
48048 | ||
810b94f0 MW |
48049 | if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then |
48050 | { { 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 | |
48051 | 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;} | |
48052 | { (exit 1); exit 1; }; } | |
48053 | fi | |
48054 | ||
2057db16 VS |
48055 | if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then |
48056 | { { 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 | |
48057 | 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;} | |
48058 | { (exit 1); exit 1; }; } | |
48059 | fi | |
48060 | ||
a848cd7e | 48061 | |
ceec2216 RL |
48062 | if test "$wxUSE_SHARED" = "yes"; then |
48063 | ||
48064 | sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'` | |
48065 | EXE_LINKER=`eval echo "$sanitised_bakefile_mess"` | |
48066 | ||
5b674b9d DE |
48067 | case "${host}" in |
48068 | *-pc-os2_emx | *-pc-os2-emx ) | |
48069 | SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
48070 | SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o" | |
48071 | cp -p ${srcdir}/src/os2/dllnames.sh . | |
48072 | cp -p ${srcdir}/src/os2/dllar.sh . | |
48073 | ;; | |
48074 | esac | |
ceec2216 RL |
48075 | else |
48076 | ||
48077 | EXE_LINKER="$CXX -o" | |
48078 | ||
48079 | fi | |
69120ee4 VZ |
48080 | if test "$wxUSE_OMF" = "yes"; then |
48081 | case "${host}" in | |
48082 | *-pc-os2_emx | *-pc-os2-emx ) | |
48083 | LDFLAGS="$LDFLAGS -Zlinker /EXEPACK" | |
48084 | LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
48085 | WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM" | |
48086 | ;; | |
48087 | esac | |
48088 | fi | |
a848cd7e | 48089 | |
c08ebc62 | 48090 | if test $GCC_PCH = 1 ; then |
254e8e29 | 48091 | CPPFLAGS="-DWX_PRECOMP $CPPFLAGS" |
ddd14b14 | 48092 | fi |
a848cd7e | 48093 | |
5ff751d6 | 48094 | WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS" |
a848cd7e SC |
48095 | |
48096 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
48097 | ||
48098 | ||
48099 | ||
48100 | ||
48101 | ||
48102 | ||
48103 | ||
48104 | ||
48105 | ||
48106 | ||
48107 | ||
48108 | ||
48109 | ||
48110 | ||
48111 | ||
48112 | ||
48113 | ||
48114 | ||
48115 | ||
48116 | ||
48117 | ||
48118 | ||
48119 | ||
48120 | ||
48121 | ||
48122 | ||
48123 | ||
48124 | ||
48125 | ||
48126 | ||
48127 | ||
48128 | ||
48129 | ||
48130 | ||
48131 | ||
48132 | ||
48133 | ||
48134 | ||
48135 | ||
48136 | ||
48137 | ||
48138 | ||
a848cd7e SC |
48139 | |
48140 | ||
48141 | ||
48142 | ||
48143 | ||
48144 | ||
48145 | ||
48146 | ||
48147 | ||
48148 | ||
48149 | ||
48150 | ||
a848cd7e SC |
48151 | |
48152 | ||
ddd14b14 | 48153 | |
370d2fd7 | 48154 | |
8ced02f6 | 48155 | |
a848cd7e SC |
48156 | |
48157 | ||
48158 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
48159 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ac1cb8d3 | 48160 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
a848cd7e SC |
48161 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
48162 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48163 | else | |
48164 | cat >conftest.make <<\_ACEOF | |
48165 | all: | |
48166 | @echo 'ac_maketemp="$(MAKE)"' | |
48167 | _ACEOF | |
48168 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
48169 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
48170 | if test -n "$ac_maketemp"; then | |
48171 | eval ac_cv_prog_make_${ac_make}_set=yes | |
48172 | else | |
48173 | eval ac_cv_prog_make_${ac_make}_set=no | |
48174 | fi | |
48175 | rm -f conftest.make | |
48176 | fi | |
48177 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
48178 | echo "$as_me:$LINENO: result: yes" >&5 | |
48179 | echo "${ECHO_T}yes" >&6 | |
48180 | SET_MAKE= | |
48181 | else | |
48182 | echo "$as_me:$LINENO: result: no" >&5 | |
48183 | echo "${ECHO_T}no" >&6 | |
48184 | SET_MAKE="MAKE=${MAKE-make}" | |
48185 | fi | |
48186 | ||
48187 | ||
a848cd7e | 48188 | |
ceec2216 RL |
48189 | ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" |
48190 | ||
a848cd7e | 48191 | |
5c60e845 MW |
48192 | if test "$USE_WIN32" = 1; then |
48193 | ac_config_commands="$ac_config_commands | |
48194 | rcdefs.h | |
48195 | " | |
48196 | ||
48197 | fi | |
48198 | ||
ceec2216 | 48199 | ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" |
a848cd7e | 48200 | |
a848cd7e | 48201 | |
ceec2216 | 48202 | ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" |
a848cd7e | 48203 | |
ceec2216 RL |
48204 | |
48205 | ac_config_files="$ac_config_files version-script Makefile" | |
48206 | ||
48207 | ||
5c60e845 | 48208 | ac_config_commands="$ac_config_commands wx-config" |
a848cd7e SC |
48209 | |
48210 | ||
9103d280 | 48211 | |
1c14217d | 48212 | if test "$wxWITH_SUBDIRS" != "no"; then |
a848cd7e SC |
48213 | if test "$wxUSE_GUI" = "yes"; then |
48214 | SUBDIRS="samples demos utils contrib" | |
48215 | else SUBDIRS="samples utils" | |
48216 | fi | |
48217 | ||
48218 | ||
48219 | ||
48220 | # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given. | |
48221 | if test "${with_cppunit_prefix+set}" = set; then | |
48222 | withval="$with_cppunit_prefix" | |
48223 | cppunit_config_prefix="$withval" | |
48224 | else | |
48225 | cppunit_config_prefix="" | |
48226 | fi; | |
48227 | ||
48228 | # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given. | |
48229 | if test "${with_cppunit_exec_prefix+set}" = set; then | |
48230 | withval="$with_cppunit_exec_prefix" | |
48231 | cppunit_config_exec_prefix="$withval" | |
48232 | else | |
48233 | cppunit_config_exec_prefix="" | |
48234 | fi; | |
48235 | ||
48236 | if test x$cppunit_config_exec_prefix != x ; then | |
48237 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" | |
48238 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
48239 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config | |
48240 | fi | |
48241 | fi | |
48242 | if test x$cppunit_config_prefix != x ; then | |
48243 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" | |
48244 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
48245 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config | |
48246 | fi | |
48247 | fi | |
48248 | ||
48249 | # Extract the first word of "cppunit-config", so it can be a program name with args. | |
48250 | set dummy cppunit-config; ac_word=$2 | |
48251 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
48252 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
48253 | if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then | |
48254 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
48255 | else | |
48256 | case $CPPUNIT_CONFIG in | |
48257 | [\\/]* | ?:[\\/]*) | |
48258 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. | |
48259 | ;; | |
48260 | *) | |
48261 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
48262 | for as_dir in $PATH | |
48263 | do | |
48264 | IFS=$as_save_IFS | |
48265 | test -z "$as_dir" && as_dir=. | |
48266 | for ac_exec_ext in '' $ac_executable_extensions; do | |
48267 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
48268 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
48269 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
48270 | break 2 | |
48271 | fi | |
48272 | done | |
48273 | done | |
48274 | ||
48275 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" | |
48276 | ;; | |
48277 | esac | |
48278 | fi | |
48279 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG | |
48280 | ||
48281 | if test -n "$CPPUNIT_CONFIG"; then | |
48282 | echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 | |
48283 | echo "${ECHO_T}$CPPUNIT_CONFIG" >&6 | |
48284 | else | |
48285 | echo "$as_me:$LINENO: result: no" >&5 | |
48286 | echo "${ECHO_T}no" >&6 | |
48287 | fi | |
48288 | ||
48289 | cppunit_version_min=1.8.0 | |
48290 | ||
48291 | echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 | |
48292 | echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6 | |
48293 | no_cppunit="" | |
48294 | if test "$CPPUNIT_CONFIG" = "no" ; then | |
48295 | no_cppunit=yes | |
48296 | else | |
48297 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` | |
48298 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` | |
48299 | cppunit_version=`$CPPUNIT_CONFIG --version` | |
48300 | ||
48301 | cppunit_major_version=`echo $cppunit_version | \ | |
48302 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
48303 | cppunit_minor_version=`echo $cppunit_version | \ | |
48304 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
48305 | cppunit_micro_version=`echo $cppunit_version | \ | |
48306 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
48307 | ||
48308 | cppunit_major_min=`echo $cppunit_version_min | \ | |
48309 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
48310 | cppunit_minor_min=`echo $cppunit_version_min | \ | |
48311 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
48312 | cppunit_micro_min=`echo $cppunit_version_min | \ | |
48313 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
48314 | ||
48315 | cppunit_version_proper=`expr \ | |
48316 | $cppunit_major_version \> $cppunit_major_min \| \ | |
48317 | $cppunit_major_version \= $cppunit_major_min \& \ | |
48318 | $cppunit_minor_version \> $cppunit_minor_min \| \ | |
48319 | $cppunit_major_version \= $cppunit_major_min \& \ | |
48320 | $cppunit_minor_version \= $cppunit_minor_min \& \ | |
48321 | $cppunit_micro_version \>= $cppunit_micro_min ` | |
48322 | ||
48323 | if test "$cppunit_version_proper" = "1" ; then | |
48324 | echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 | |
48325 | echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6 | |
48326 | else | |
48327 | echo "$as_me:$LINENO: result: no" >&5 | |
48328 | echo "${ECHO_T}no" >&6 | |
48329 | no_cppunit=yes | |
48330 | fi | |
48331 | fi | |
48332 | ||
48333 | if test "x$no_cppunit" = x ; then | |
c2218763 | 48334 | SUBDIRS="$SUBDIRS tests" |
a848cd7e SC |
48335 | else |
48336 | CPPUNIT_CFLAGS="" | |
48337 | CPPUNIT_LIBS="" | |
c2218763 | 48338 | : |
a848cd7e SC |
48339 | fi |
48340 | ||
48341 | ||
48342 | ||
48343 | ||
48344 | ||
48345 | for subdir in `echo $SUBDIRS`; do | |
48346 | if test -d ${srcdir}/${subdir} ; then | |
48347 | if test "$wxUSE_GUI" = "yes"; then | |
48348 | if test ${subdir} = "samples"; then | |
48349 | makefiles="samples/Makefile.in $makefiles" | |
48350 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
48351 | if test -d $srcdir/samples/$sample; then | |
48352 | makefiles="samples/$sample/Makefile.in $makefiles" | |
48353 | fi | |
48354 | done | |
9c112555 MW |
48355 | else |
48356 | disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`; | |
48357 | eval "disabled=\$$disabled_var" | |
48358 | disabled=/`echo X $disabled | sed 's@ @/|/@g'`/ | |
48359 | makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"` | |
a848cd7e SC |
48360 | fi |
48361 | else if test ${subdir} = "samples"; then | |
48362 | makefiles="samples/Makefile.in samples/console/Makefile.in" | |
48363 | elif test ${subdir} = "utils"; then | |
6537ccf8 VS |
48364 | makefiles="" |
48365 | for util in HelpGen tex2rtf ; do | |
48366 | if test -d $srcdir/utils/$util ; then | |
48367 | makefiles="utils/$util/Makefile.in \ | |
48368 | utils/$util/src/Makefile.in \ | |
48369 | $makefiles" | |
48370 | fi | |
48371 | done | |
a848cd7e SC |
48372 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` |
48373 | fi | |
48374 | fi | |
48375 | ||
48376 | for mkin in $makefiles ; do | |
48377 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
48378 | ac_config_files="$ac_config_files $mk" | |
48379 | ||
48380 | done | |
48381 | fi | |
48382 | done | |
1c14217d | 48383 | fi |
a848cd7e SC |
48384 | cat >confcache <<\_ACEOF |
48385 | # This file is a shell script that caches the results of configure | |
48386 | # tests run on this system so they can be shared between configure | |
48387 | # scripts and configure runs, see configure's option --config-cache. | |
48388 | # It is not useful on other systems. If it contains results you don't | |
48389 | # want to keep, you may remove or edit it. | |
48390 | # | |
48391 | # config.status only pays attention to the cache file if you give it | |
48392 | # the --recheck option to rerun configure. | |
48393 | # | |
48394 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
48395 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
48396 | # following values. | |
48397 | ||
48398 | _ACEOF | |
48399 | ||
48400 | # The following way of writing the cache mishandles newlines in values, | |
48401 | # but we know of no workaround that is simple, portable, and efficient. | |
48402 | # So, don't put newlines in cache variables' values. | |
48403 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
48404 | # and sets the high bit in the cache file unless we assign to the vars. | |
48405 | { | |
48406 | (set) 2>&1 | | |
48407 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
48408 | *ac_space=\ *) | |
48409 | # `set' does not quote correctly, so add quotes (double-quote | |
48410 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
48411 | sed -n \ | |
ac1cb8d3 VS |
48412 | "s/'/'\\\\''/g; |
48413 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
48414 | ;; |
48415 | *) | |
48416 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
48417 | sed -n \ | |
ac1cb8d3 | 48418 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
48419 | ;; |
48420 | esac; | |
48421 | } | | |
48422 | sed ' | |
48423 | t clear | |
48424 | : clear | |
48425 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
48426 | t end | |
48427 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
48428 | : end' >>confcache | |
48429 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
48430 | if test -w $cache_file; then | |
48431 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
48432 | cat confcache >$cache_file | |
48433 | else | |
48434 | echo "not updating unwritable cache $cache_file" | |
48435 | fi | |
48436 | fi | |
48437 | rm -f confcache | |
48438 | ||
48439 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
48440 | # Let make expand exec_prefix. | |
48441 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
48442 | ||
48443 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
48444 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
48445 | # trailing colons and then remove the whole line if VPATH becomes empty | |
48446 | # (actually we leave an empty line to preserve line numbers). | |
48447 | if test "x$srcdir" = x.; then | |
ac1cb8d3 | 48448 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
a848cd7e SC |
48449 | s/:*\$(srcdir):*/:/; |
48450 | s/:*\${srcdir}:*/:/; | |
48451 | s/:*@srcdir@:*/:/; | |
ac1cb8d3 | 48452 | s/^\([^=]*=[ ]*\):*/\1/; |
a848cd7e | 48453 | s/:*$//; |
ac1cb8d3 | 48454 | s/^[^=]*=[ ]*$//; |
a848cd7e SC |
48455 | }' |
48456 | fi | |
48457 | ||
48458 | DEFS=-DHAVE_CONFIG_H | |
48459 | ||
48460 | ac_libobjs= | |
48461 | ac_ltlibobjs= | |
48462 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
48463 | # 1. Remove the extension, and $U if already installed. | |
48464 | ac_i=`echo "$ac_i" | | |
ac1cb8d3 | 48465 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
a848cd7e SC |
48466 | # 2. Add them. |
48467 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
48468 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
48469 | done | |
48470 | LIBOBJS=$ac_libobjs | |
48471 | ||
48472 | LTLIBOBJS=$ac_ltlibobjs | |
48473 | ||
48474 | ||
48475 | ||
48476 | : ${CONFIG_STATUS=./config.status} | |
48477 | ac_clean_files_save=$ac_clean_files | |
48478 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
48479 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
48480 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
48481 | cat >$CONFIG_STATUS <<_ACEOF | |
48482 | #! $SHELL | |
48483 | # Generated by $as_me. | |
48484 | # Run this file to recreate the current configuration. | |
48485 | # Compiler output produced by configure, useful for debugging | |
48486 | # configure, is in config.log if it exists. | |
48487 | ||
48488 | debug=false | |
48489 | ac_cs_recheck=false | |
48490 | ac_cs_silent=false | |
48491 | SHELL=\${CONFIG_SHELL-$SHELL} | |
48492 | _ACEOF | |
48493 | ||
48494 | cat >>$CONFIG_STATUS <<\_ACEOF | |
48495 | ## --------------------- ## | |
48496 | ## M4sh Initialization. ## | |
48497 | ## --------------------- ## | |
48498 | ||
48499 | # Be Bourne compatible | |
48500 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
48501 | emulate sh | |
48502 | NULLCMD=: | |
48503 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
48504 | # is contrary to our usage. Disable this feature. | |
48505 | alias -g '${1+"$@"}'='"$@"' | |
48506 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
48507 | set -o posix | |
48508 | fi | |
ac1cb8d3 | 48509 | DUALCASE=1; export DUALCASE # for MKS sh |
a848cd7e SC |
48510 | |
48511 | # Support unset when possible. | |
ac1cb8d3 | 48512 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
a848cd7e SC |
48513 | as_unset=unset |
48514 | else | |
48515 | as_unset=false | |
48516 | fi | |
48517 | ||
48518 | ||
48519 | # Work around bugs in pre-3.0 UWIN ksh. | |
48520 | $as_unset ENV MAIL MAILPATH | |
48521 | PS1='$ ' | |
48522 | PS2='> ' | |
48523 | PS4='+ ' | |
48524 | ||
48525 | # NLS nuisances. | |
48526 | for as_var in \ | |
48527 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
48528 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
48529 | LC_TELEPHONE LC_TIME | |
48530 | do | |
ac1cb8d3 | 48531 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
48532 | eval $as_var=C; export $as_var |
48533 | else | |
48534 | $as_unset $as_var | |
48535 | fi | |
48536 | done | |
48537 | ||
48538 | # Required to use basename. | |
48539 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
48540 | as_expr=expr | |
48541 | else | |
48542 | as_expr=false | |
48543 | fi | |
48544 | ||
48545 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
48546 | as_basename=basename | |
48547 | else | |
48548 | as_basename=false | |
48549 | fi | |
48550 | ||
48551 | ||
48552 | # Name of the executable. | |
48553 | as_me=`$as_basename "$0" || | |
48554 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
48555 | X"$0" : 'X\(//\)$' \| \ | |
48556 | X"$0" : 'X\(/\)$' \| \ | |
48557 | . : '\(.\)' 2>/dev/null || | |
48558 | echo X/"$0" | | |
48559 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
48560 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
48561 | /^X\/\(\/\).*/{ s//\1/; q; } | |
48562 | s/.*/./; q'` | |
48563 | ||
48564 | ||
48565 | # PATH needs CR, and LINENO needs CR and PATH. | |
48566 | # Avoid depending upon Character Ranges. | |
48567 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
48568 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
48569 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
48570 | as_cr_digits='0123456789' | |
48571 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
48572 | ||
48573 | # The user is always right. | |
48574 | if test "${PATH_SEPARATOR+set}" != set; then | |
48575 | echo "#! /bin/sh" >conf$$.sh | |
48576 | echo "exit 0" >>conf$$.sh | |
48577 | chmod +x conf$$.sh | |
48578 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
48579 | PATH_SEPARATOR=';' | |
48580 | else | |
48581 | PATH_SEPARATOR=: | |
48582 | fi | |
48583 | rm -f conf$$.sh | |
48584 | fi | |
48585 | ||
48586 | ||
48587 | as_lineno_1=$LINENO | |
48588 | as_lineno_2=$LINENO | |
48589 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
48590 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
48591 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
48592 | # Find who we are. Look in the path if we contain no path at all | |
48593 | # relative or not. | |
48594 | case $0 in | |
48595 | *[\\/]* ) as_myself=$0 ;; | |
48596 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
48597 | for as_dir in $PATH | |
48598 | do | |
48599 | IFS=$as_save_IFS | |
48600 | test -z "$as_dir" && as_dir=. | |
48601 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
48602 | done | |
48603 | ||
48604 | ;; | |
48605 | esac | |
48606 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
48607 | # in which case we are not to be found in the path. | |
48608 | if test "x$as_myself" = x; then | |
48609 | as_myself=$0 | |
48610 | fi | |
48611 | if test ! -f "$as_myself"; then | |
48612 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
48613 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
48614 | { (exit 1); exit 1; }; } | |
48615 | fi | |
48616 | case $CONFIG_SHELL in | |
48617 | '') | |
48618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
48619 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
48620 | do | |
48621 | IFS=$as_save_IFS | |
48622 | test -z "$as_dir" && as_dir=. | |
48623 | for as_base in sh bash ksh sh5; do | |
48624 | case $as_dir in | |
48625 | /*) | |
48626 | if ("$as_dir/$as_base" -c ' | |
48627 | as_lineno_1=$LINENO | |
48628 | as_lineno_2=$LINENO | |
48629 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
48630 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
48631 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
48632 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
48633 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
48634 | CONFIG_SHELL=$as_dir/$as_base | |
48635 | export CONFIG_SHELL | |
48636 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
48637 | fi;; | |
48638 | esac | |
48639 | done | |
48640 | done | |
48641 | ;; | |
48642 | esac | |
48643 | ||
48644 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
48645 | # uniformly replaced by the line number. The first 'sed' inserts a | |
48646 | # line-number line before each line; the second 'sed' does the real | |
48647 | # work. The second script uses 'N' to pair each line-number line | |
48648 | # with the numbered line, and appends trailing '-' during | |
48649 | # substitution so that $LINENO is not a special case at line end. | |
48650 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
48651 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
48652 | sed '=' <$as_myself | | |
48653 | sed ' | |
48654 | N | |
48655 | s,$,-, | |
48656 | : loop | |
48657 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
48658 | t loop | |
48659 | s,-$,, | |
48660 | s,^['$as_cr_digits']*\n,, | |
48661 | ' >$as_me.lineno && | |
48662 | chmod +x $as_me.lineno || | |
48663 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
48664 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
48665 | { (exit 1); exit 1; }; } | |
48666 | ||
48667 | # Don't try to exec as it changes $[0], causing all sort of problems | |
48668 | # (the dirname of $[0] is not the place where we might find the | |
48669 | # original and so on. Autoconf is especially sensible to this). | |
48670 | . ./$as_me.lineno | |
48671 | # Exit status is that of the last command. | |
48672 | exit | |
48673 | } | |
48674 | ||
48675 | ||
48676 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
48677 | *c*,-n*) ECHO_N= ECHO_C=' | |
48678 | ' ECHO_T=' ' ;; | |
48679 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
48680 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
48681 | esac | |
48682 | ||
48683 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
48684 | as_expr=expr | |
48685 | else | |
48686 | as_expr=false | |
48687 | fi | |
48688 | ||
48689 | rm -f conf$$ conf$$.exe conf$$.file | |
48690 | echo >conf$$.file | |
48691 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
48692 | # We could just check for DJGPP; but this test a) works b) is more generic | |
48693 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
48694 | if test -f conf$$.exe; then | |
48695 | # Don't use ln at all; we don't have any links | |
48696 | as_ln_s='cp -p' | |
48697 | else | |
48698 | as_ln_s='ln -s' | |
48699 | fi | |
48700 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
48701 | as_ln_s=ln | |
48702 | else | |
48703 | as_ln_s='cp -p' | |
48704 | fi | |
48705 | rm -f conf$$ conf$$.exe conf$$.file | |
48706 | ||
48707 | if mkdir -p . 2>/dev/null; then | |
48708 | as_mkdir_p=: | |
48709 | else | |
ac1cb8d3 | 48710 | test -d ./-p && rmdir ./-p |
a848cd7e SC |
48711 | as_mkdir_p=false |
48712 | fi | |
48713 | ||
48714 | as_executable_p="test -f" | |
48715 | ||
48716 | # Sed expression to map a string onto a valid CPP name. | |
ac1cb8d3 | 48717 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
48718 | |
48719 | # Sed expression to map a string onto a valid variable name. | |
ac1cb8d3 | 48720 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
a848cd7e SC |
48721 | |
48722 | ||
48723 | # IFS | |
48724 | # We need space, tab and new line, in precisely that order. | |
48725 | as_nl=' | |
48726 | ' | |
48727 | IFS=" $as_nl" | |
48728 | ||
48729 | # CDPATH. | |
48730 | $as_unset CDPATH | |
48731 | ||
48732 | exec 6>&1 | |
48733 | ||
48734 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
48735 | # report actual input values of CONFIG_FILES etc. instead of their | |
48736 | # values after options handling. Logging --version etc. is OK. | |
48737 | exec 5>>config.log | |
48738 | { | |
48739 | echo | |
48740 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
48741 | ## Running $as_me. ## | |
48742 | _ASBOX | |
48743 | } >&5 | |
48744 | cat >&5 <<_CSEOF | |
48745 | ||
dd8df4fc | 48746 | This file was extended by wxWidgets $as_me 2.7.0, which was |
ac1cb8d3 | 48747 | generated by GNU Autoconf 2.59. Invocation command line was |
a848cd7e SC |
48748 | |
48749 | CONFIG_FILES = $CONFIG_FILES | |
48750 | CONFIG_HEADERS = $CONFIG_HEADERS | |
48751 | CONFIG_LINKS = $CONFIG_LINKS | |
48752 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
48753 | $ $0 $@ | |
48754 | ||
48755 | _CSEOF | |
48756 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
48757 | echo >&5 | |
48758 | _ACEOF | |
48759 | ||
48760 | # Files that config.status was made for. | |
48761 | if test -n "$ac_config_files"; then | |
48762 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
48763 | fi | |
48764 | ||
48765 | if test -n "$ac_config_headers"; then | |
48766 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
48767 | fi | |
48768 | ||
48769 | if test -n "$ac_config_links"; then | |
48770 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
48771 | fi | |
48772 | ||
48773 | if test -n "$ac_config_commands"; then | |
48774 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
48775 | fi | |
48776 | ||
48777 | cat >>$CONFIG_STATUS <<\_ACEOF | |
48778 | ||
48779 | ac_cs_usage="\ | |
48780 | \`$as_me' instantiates files from templates according to the | |
48781 | current configuration. | |
48782 | ||
48783 | Usage: $0 [OPTIONS] [FILE]... | |
48784 | ||
48785 | -h, --help print this help, then exit | |
48786 | -V, --version print version number, then exit | |
48787 | -q, --quiet do not print progress messages | |
48788 | -d, --debug don't remove temporary files | |
48789 | --recheck update $as_me by reconfiguring in the same conditions | |
48790 | --file=FILE[:TEMPLATE] | |
ac1cb8d3 | 48791 | instantiate the configuration file FILE |
a848cd7e | 48792 | --header=FILE[:TEMPLATE] |
ac1cb8d3 | 48793 | instantiate the configuration header FILE |
a848cd7e SC |
48794 | |
48795 | Configuration files: | |
48796 | $config_files | |
48797 | ||
48798 | Configuration headers: | |
48799 | $config_headers | |
48800 | ||
48801 | Configuration commands: | |
48802 | $config_commands | |
48803 | ||
48804 | Report bugs to <bug-autoconf@gnu.org>." | |
48805 | _ACEOF | |
48806 | ||
48807 | cat >>$CONFIG_STATUS <<_ACEOF | |
48808 | ac_cs_version="\\ | |
dd8df4fc | 48809 | wxWidgets config.status 2.7.0 |
ac1cb8d3 | 48810 | configured by $0, generated by GNU Autoconf 2.59, |
a848cd7e SC |
48811 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
48812 | ||
ac1cb8d3 | 48813 | Copyright (C) 2003 Free Software Foundation, Inc. |
a848cd7e SC |
48814 | This config.status script is free software; the Free Software Foundation |
48815 | gives unlimited permission to copy, distribute and modify it." | |
48816 | srcdir=$srcdir | |
48817 | INSTALL="$INSTALL" | |
48818 | _ACEOF | |
48819 | ||
48820 | cat >>$CONFIG_STATUS <<\_ACEOF | |
48821 | # If no file are specified by the user, then we need to provide default | |
48822 | # value. By we need to know if files were specified by the user. | |
48823 | ac_need_defaults=: | |
48824 | while test $# != 0 | |
48825 | do | |
48826 | case $1 in | |
48827 | --*=*) | |
48828 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
48829 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
48830 | ac_shift=: | |
48831 | ;; | |
48832 | -*) | |
48833 | ac_option=$1 | |
48834 | ac_optarg=$2 | |
48835 | ac_shift=shift | |
48836 | ;; | |
48837 | *) # This is not an option, so the user has probably given explicit | |
48838 | # arguments. | |
48839 | ac_option=$1 | |
48840 | ac_need_defaults=false;; | |
48841 | esac | |
48842 | ||
48843 | case $ac_option in | |
48844 | # Handling of the options. | |
48845 | _ACEOF | |
48846 | cat >>$CONFIG_STATUS <<\_ACEOF | |
48847 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
48848 | ac_cs_recheck=: ;; | |
48849 | --version | --vers* | -V ) | |
48850 | echo "$ac_cs_version"; exit 0 ;; | |
48851 | --he | --h) | |
48852 | # Conflict between --help and --header | |
48853 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
48854 | Try \`$0 --help' for more information." >&5 | |
48855 | echo "$as_me: error: ambiguous option: $1 | |
48856 | Try \`$0 --help' for more information." >&2;} | |
48857 | { (exit 1); exit 1; }; };; | |
48858 | --help | --hel | -h ) | |
48859 | echo "$ac_cs_usage"; exit 0 ;; | |
48860 | --debug | --d* | -d ) | |
48861 | debug=: ;; | |
48862 | --file | --fil | --fi | --f ) | |
48863 | $ac_shift | |
48864 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
48865 | ac_need_defaults=false;; | |
48866 | --header | --heade | --head | --hea ) | |
48867 | $ac_shift | |
48868 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
48869 | ac_need_defaults=false;; | |
48870 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
48871 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
48872 | ac_cs_silent=: ;; | |
48873 | ||
48874 | # This is an error. | |
48875 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
48876 | Try \`$0 --help' for more information." >&5 | |
48877 | echo "$as_me: error: unrecognized option: $1 | |
48878 | Try \`$0 --help' for more information." >&2;} | |
48879 | { (exit 1); exit 1; }; } ;; | |
48880 | ||
48881 | *) ac_config_targets="$ac_config_targets $1" ;; | |
48882 | ||
48883 | esac | |
48884 | shift | |
48885 | done | |
48886 | ||
48887 | ac_configure_extra_args= | |
48888 | ||
48889 | if $ac_cs_silent; then | |
48890 | exec 6>/dev/null | |
48891 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
48892 | fi | |
48893 | ||
48894 | _ACEOF | |
48895 | cat >>$CONFIG_STATUS <<_ACEOF | |
48896 | if \$ac_cs_recheck; then | |
48897 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
48898 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
48899 | fi | |
48900 | ||
48901 | _ACEOF | |
48902 | ||
48903 | cat >>$CONFIG_STATUS <<_ACEOF | |
48904 | # | |
48905 | # INIT-COMMANDS section. | |
48906 | # | |
48907 | ||
5c60e845 MW |
48908 | |
48909 | CPP="$CPP" | |
48910 | infile="$srcdir/include/wx/msw/genrcdefs.h" | |
48911 | outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw" | |
48912 | ||
48913 | ||
ceec2216 RL |
48914 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" |
48915 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
48916 | TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}" | |
48917 | LN_S="${LN_S}" | |
a848cd7e SC |
48918 | |
48919 | ||
48920 | _ACEOF | |
48921 | ||
48922 | ||
48923 | ||
48924 | cat >>$CONFIG_STATUS <<\_ACEOF | |
48925 | for ac_config_target in $ac_config_targets | |
48926 | do | |
48927 | case "$ac_config_target" in | |
48928 | # Handling of arguments. | |
ceec2216 RL |
48929 | "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;; |
48930 | "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;; | |
a848cd7e SC |
48931 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; |
48932 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
48933 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; | |
5c60e845 | 48934 | "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;; |
ceec2216 RL |
48935 | "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;; |
48936 | "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 |
48937 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
48938 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
48939 | { (exit 1); exit 1; }; };; | |
48940 | esac | |
48941 | done | |
48942 | ||
48943 | # If the user did not use the arguments to specify the items to instantiate, | |
48944 | # then the envvar interface is used. Set only those that are not. | |
48945 | # We use the long form for the default assignment because of an extremely | |
48946 | # bizarre bug on SunOS 4.1.3. | |
48947 | if $ac_need_defaults; then | |
48948 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
48949 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
48950 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
48951 | fi | |
48952 | ||
48953 | # Have a temporary directory for convenience. Make it in the build tree | |
48954 | # simply because there is no reason to put it here, and in addition, | |
48955 | # creating and moving files from /tmp can sometimes cause problems. | |
48956 | # Create a temporary directory, and hook for its removal unless debugging. | |
48957 | $debug || | |
48958 | { | |
48959 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
48960 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
48961 | } | |
48962 | ||
48963 | # Create a (secure) tmp directory for tmp files. | |
48964 | ||
48965 | { | |
48966 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
48967 | test -n "$tmp" && test -d "$tmp" | |
48968 | } || | |
48969 | { | |
48970 | tmp=./confstat$$-$RANDOM | |
48971 | (umask 077 && mkdir $tmp) | |
48972 | } || | |
48973 | { | |
48974 | echo "$me: cannot create a temporary directory in ." >&2 | |
48975 | { (exit 1); exit 1; } | |
48976 | } | |
48977 | ||
48978 | _ACEOF | |
48979 | ||
48980 | cat >>$CONFIG_STATUS <<_ACEOF | |
48981 | ||
48982 | # | |
48983 | # CONFIG_FILES section. | |
48984 | # | |
48985 | ||
48986 | # No need to generate the scripts if there are no CONFIG_FILES. | |
48987 | # This happens for instance when ./config.status config.h | |
48988 | if test -n "\$CONFIG_FILES"; then | |
48989 | # Protect against being on the right side of a sed subst in config.status. | |
48990 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
48991 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
48992 | s,@SHELL@,$SHELL,;t t | |
48993 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
48994 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
48995 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
48996 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
48997 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
48998 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
48999 | s,@exec_prefix@,$exec_prefix,;t t | |
49000 | s,@prefix@,$prefix,;t t | |
49001 | s,@program_transform_name@,$program_transform_name,;t t | |
49002 | s,@bindir@,$bindir,;t t | |
49003 | s,@sbindir@,$sbindir,;t t | |
49004 | s,@libexecdir@,$libexecdir,;t t | |
49005 | s,@datadir@,$datadir,;t t | |
49006 | s,@sysconfdir@,$sysconfdir,;t t | |
49007 | s,@sharedstatedir@,$sharedstatedir,;t t | |
49008 | s,@localstatedir@,$localstatedir,;t t | |
49009 | s,@libdir@,$libdir,;t t | |
49010 | s,@includedir@,$includedir,;t t | |
49011 | s,@oldincludedir@,$oldincludedir,;t t | |
49012 | s,@infodir@,$infodir,;t t | |
49013 | s,@mandir@,$mandir,;t t | |
49014 | s,@build_alias@,$build_alias,;t t | |
49015 | s,@host_alias@,$host_alias,;t t | |
49016 | s,@target_alias@,$target_alias,;t t | |
49017 | s,@DEFS@,$DEFS,;t t | |
49018 | s,@ECHO_C@,$ECHO_C,;t t | |
49019 | s,@ECHO_N@,$ECHO_N,;t t | |
49020 | s,@ECHO_T@,$ECHO_T,;t t | |
49021 | s,@LIBS@,$LIBS,;t t | |
49022 | s,@build@,$build,;t t | |
49023 | s,@build_cpu@,$build_cpu,;t t | |
49024 | s,@build_vendor@,$build_vendor,;t t | |
49025 | s,@build_os@,$build_os,;t t | |
49026 | s,@host@,$host,;t t | |
49027 | s,@host_cpu@,$host_cpu,;t t | |
49028 | s,@host_vendor@,$host_vendor,;t t | |
49029 | s,@host_os@,$host_os,;t t | |
49030 | s,@target@,$target,;t t | |
49031 | s,@target_cpu@,$target_cpu,;t t | |
49032 | s,@target_vendor@,$target_vendor,;t t | |
49033 | s,@target_os@,$target_os,;t t | |
49034 | s,@CC@,$CC,;t t | |
49035 | s,@CFLAGS@,$CFLAGS,;t t | |
49036 | s,@LDFLAGS@,$LDFLAGS,;t t | |
49037 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
49038 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
49039 | s,@EXEEXT@,$EXEEXT,;t t | |
49040 | s,@OBJEXT@,$OBJEXT,;t t | |
49041 | s,@CPP@,$CPP,;t t | |
49042 | s,@EGREP@,$EGREP,;t t | |
49043 | s,@CXX@,$CXX,;t t | |
49044 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
49045 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
49046 | s,@RANLIB@,$RANLIB,;t t | |
49047 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
49048 | s,@AR@,$AR,;t t | |
8c80d384 | 49049 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
a848cd7e SC |
49050 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
49051 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
49052 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
49053 | s,@STRIP@,$STRIP,;t t | |
8c80d384 | 49054 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t |
8ced02f6 DE |
49055 | s,@WINDRES@,$WINDRES,;t t |
49056 | s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t | |
8c80d384 DE |
49057 | s,@DLLTOOL@,$DLLTOOL,;t t |
49058 | s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t | |
a848cd7e SC |
49059 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t |
49060 | s,@LN_S@,$LN_S,;t t | |
bcaab0f9 | 49061 | s,@LNDIR@,$LNDIR,;t t |
a848cd7e SC |
49062 | s,@CXXCPP@,$CXXCPP,;t t |
49063 | s,@subdirs@,$subdirs,;t t | |
49064 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
49065 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
49066 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
49067 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
a848cd7e SC |
49068 | s,@X_CFLAGS@,$X_CFLAGS,;t t |
49069 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
49070 | s,@X_LIBS@,$X_LIBS,;t t | |
49071 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
49072 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
49073 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
d1c38808 VZ |
49074 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t |
49075 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
a848cd7e SC |
49076 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t |
49077 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
8ced02f6 | 49078 | s,@REZ@,$REZ,;t t |
a848cd7e SC |
49079 | s,@DEREZ@,$DEREZ,;t t |
49080 | s,@SETFILE@,$SETFILE,;t t | |
49081 | s,@LIBICONV@,$LIBICONV,;t t | |
49082 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t | |
49083 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t | |
49084 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t | |
49085 | s,@SDL_LIBS@,$SDL_LIBS,;t t | |
d1c38808 VZ |
49086 | s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t |
49087 | s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t | |
3565d135 RR |
49088 | s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t |
49089 | s,@HILDON_LIBS@,$HILDON_LIBS,;t t | |
dae87f93 RN |
49090 | s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t |
49091 | s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t | |
49092 | s,@GST_INSPECT@,$GST_INSPECT,;t t | |
a848cd7e SC |
49093 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t |
49094 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
49095 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t | |
49096 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
49097 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t | |
49098 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t | |
49099 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
49100 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
49101 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
49102 | s,@VENDOR@,$VENDOR,;t t | |
49103 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
ceec2216 RL |
49104 | s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t |
49105 | s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t | |
a848cd7e SC |
49106 | s,@WXUNIV@,$WXUNIV,;t t |
49107 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
49108 | s,@USE_PLUGINS@,$USE_PLUGINS,;t t | |
49109 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
49110 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t | |
49111 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t | |
49112 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t | |
49113 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t | |
49114 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t | |
49115 | s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t | |
49116 | s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t | |
d1c38808 | 49117 | s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t |
3565d135 | 49118 | s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t |
a848cd7e SC |
49119 | s,@UNICODE@,$UNICODE,;t t |
49120 | s,@BUILD@,$BUILD,;t t | |
49121 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t | |
49122 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
a848cd7e SC |
49123 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t |
49124 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
49125 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
49126 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t | |
49127 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t | |
49128 | s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t | |
49129 | s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t | |
49130 | s,@SET_MAKE@,$SET_MAKE,;t t | |
49131 | s,@MAKE_SET@,$MAKE_SET,;t t | |
a848cd7e SC |
49132 | s,@NM@,$NM,;t t |
49133 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
49134 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
49135 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t | |
49136 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t | |
49137 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
49138 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
49139 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
1e9e8aba | 49140 | s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t |
a848cd7e SC |
49141 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t |
49142 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t | |
1e9e8aba | 49143 | s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t |
a848cd7e SC |
49144 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t |
49145 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t | |
49146 | s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t | |
49147 | s,@LIBPREFIX@,$LIBPREFIX,;t t | |
49148 | s,@LIBEXT@,$LIBEXT,;t t | |
49149 | s,@DLLPREFIX@,$DLLPREFIX,;t t | |
49150 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t | |
810b94f0 | 49151 | s,@dlldir@,$dlldir,;t t |
a848cd7e SC |
49152 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t |
49153 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t | |
49154 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
49155 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t | |
49156 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
49157 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
810b94f0 | 49158 | s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t |
a848cd7e SC |
49159 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t |
49160 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
49161 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
810b94f0 | 49162 | s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t |
a848cd7e SC |
49163 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t |
49164 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
49165 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
49166 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t | |
49167 | s,@GCC_PCH@,$GCC_PCH,;t t | |
49168 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t | |
49169 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t | |
49170 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
49171 | s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t | |
49172 | s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t | |
49173 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t | |
49174 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t | |
49175 | s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t | |
49176 | s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t | |
49177 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
49178 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
49179 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
49180 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t | |
49181 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t | |
49182 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t | |
49183 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t | |
49184 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t | |
49185 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
90970d69 | 49186 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1,;t t |
a848cd7e | 49187 | 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 | 49188 | 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 | 49189 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t |
ceec2216 | 49190 | s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
49191 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
49192 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t | |
90970d69 | 49193 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1,;t t |
a848cd7e | 49194 | 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 | 49195 | 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 | 49196 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t |
ceec2216 | 49197 | s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t |
a848cd7e SC |
49198 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t |
49199 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t | |
49200 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t | |
49201 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
49202 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t | |
49203 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
eb730a0c | 49204 | 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 |
49205 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t |
49206 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t | |
a30f955f | 49207 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t |
a848cd7e SC |
49208 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t |
49209 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
49210 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
fc480dc1 | 49211 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t |
1e9e8aba | 49212 | 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 |
49213 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t |
49214 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t | |
a848cd7e SC |
49215 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t |
49216 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t | |
b48a2016 | 49217 | s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t |
083508af | 49218 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
83d8eb47 | 49219 | s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t |
a848cd7e SC |
49220 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t |
49221 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t | |
49222 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t | |
49223 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t | |
49224 | s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t | |
49225 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
49226 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
49227 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t | |
083508af MW |
49228 | s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t |
49229 | s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t | |
49230 | s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t | |
a848cd7e SC |
49231 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
49232 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
49233 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
49234 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
083508af | 49235 | s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t |
a848cd7e SC |
49236 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t |
49237 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
49238 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
49239 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
49240 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
49241 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t | |
083508af | 49242 | s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t |
a30f955f | 49243 | s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t |
a848cd7e | 49244 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
a49baeab | 49245 | s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t |
a848cd7e SC |
49246 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t |
49247 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
d044deea MW |
49248 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t |
49249 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t | |
49250 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t | |
49251 | 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 | |
49252 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t | |
49253 | s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t | |
a848cd7e | 49254 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t |
a848cd7e SC |
49255 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t |
49256 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t | |
49257 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t | |
49258 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
49259 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
49260 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t | |
49261 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
49262 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
49263 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t | |
49264 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t | |
49265 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
0ee4059d | 49266 | s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t |
a848cd7e SC |
49267 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t |
49268 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
49269 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
3fd9c298 DE |
49270 | s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t |
49271 | s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t | |
49272 | s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t | |
0ee4059d | 49273 | s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t |
a848cd7e SC |
49274 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
49275 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
49276 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t | |
49277 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t | |
49278 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
49279 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
49280 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
49281 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t | |
49282 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
49283 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
49284 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
49285 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
083508af MW |
49286 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t |
49287 | s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t | |
a848cd7e | 49288 | s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t |
0b78747f MW |
49289 | s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t |
49290 | s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t | |
a848cd7e | 49291 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t |
eb730a0c | 49292 | s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t |
a848cd7e SC |
49293 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t |
49294 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
49295 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
0b78747f MW |
49296 | s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t |
49297 | s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t | |
a13a7f89 | 49298 | s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t |
eb730a0c | 49299 | s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t |
a848cd7e | 49300 | s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t |
1e6eb025 | 49301 | s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t |
a848cd7e SC |
49302 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
49303 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t | |
49304 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t | |
49305 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
49306 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
49307 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
49308 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
49309 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
ceec2216 | 49310 | s,@SHARED@,$SHARED,;t t |
a848cd7e SC |
49311 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
49312 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
a848cd7e SC |
49313 | s,@USE_GUI@,$USE_GUI,;t t |
49314 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
49315 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
49316 | s,@TOOLKIT@,$TOOLKIT,;t t | |
49317 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
a848cd7e | 49318 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t |
ceec2216 | 49319 | s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t |
a848cd7e | 49320 | s,@cross_compiling@,$cross_compiling,;t t |
ceec2216 RL |
49321 | s,@WIDGET_SET@,$WIDGET_SET,;t t |
49322 | s,@WX_RELEASE@,$WX_RELEASE,;t t | |
49323 | s,@WX_VERSION@,$WX_VERSION,;t t | |
49324 | s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t | |
49325 | s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t | |
49326 | s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t | |
5ff751d6 VZ |
49327 | s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t |
49328 | s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t | |
49329 | s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t | |
49330 | s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t | |
a848cd7e SC |
49331 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t |
49332 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t | |
004ee6da | 49333 | s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t |
ceec2216 | 49334 | s,@EXE_LINKER@,$EXE_LINKER,;t t |
a848cd7e | 49335 | s,@GUIDIST@,$GUIDIST,;t t |
a848cd7e SC |
49336 | s,@DISTDIR@,$DISTDIR,;t t |
49337 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
49338 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
a848cd7e SC |
49339 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t |
49340 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
49341 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
004ee6da | 49342 | s,@RESCOMP@,$RESCOMP,;t t |
a848cd7e SC |
49343 | s,@RESFLAGS@,$RESFLAGS,;t t |
49344 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
49345 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
49346 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
49347 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
8ced02f6 | 49348 | s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t |
a848cd7e | 49349 | s,@MACSETFILE@,$MACSETFILE,;t t |
a848cd7e | 49350 | s,@GCC@,$GCC,;t t |
a848cd7e SC |
49351 | s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t |
49352 | s,@LIBOBJS@,$LIBOBJS,;t t | |
49353 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
49354 | CEOF | |
49355 | ||
49356 | _ACEOF | |
49357 | ||
49358 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49359 | # Split the substitutions into bite-sized pieces for seds with | |
49360 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
49361 | ac_max_sed_lines=48 | |
49362 | ac_sed_frag=1 # Number of current file. | |
49363 | ac_beg=1 # First line for current file. | |
49364 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
49365 | ac_more_lines=: | |
49366 | ac_sed_cmds= | |
49367 | while $ac_more_lines; do | |
49368 | if test $ac_beg -gt 1; then | |
49369 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
49370 | else | |
49371 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
49372 | fi | |
49373 | if test ! -s $tmp/subs.frag; then | |
49374 | ac_more_lines=false | |
49375 | else | |
49376 | # The purpose of the label and of the branching condition is to | |
49377 | # speed up the sed processing (if there are no `@' at all, there | |
49378 | # is no need to browse any of the substitutions). | |
49379 | # These are the two extra sed commands mentioned above. | |
49380 | (echo ':t | |
49381 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
49382 | if test -z "$ac_sed_cmds"; then | |
ac1cb8d3 | 49383 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e | 49384 | else |
ac1cb8d3 | 49385 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e SC |
49386 | fi |
49387 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
49388 | ac_beg=$ac_end | |
49389 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
49390 | fi | |
49391 | done | |
49392 | if test -z "$ac_sed_cmds"; then | |
49393 | ac_sed_cmds=cat | |
49394 | fi | |
49395 | fi # test -n "$CONFIG_FILES" | |
49396 | ||
49397 | _ACEOF | |
49398 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49399 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
49400 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
49401 | case $ac_file in | |
49402 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
49403 | cat >$tmp/stdin |
49404 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
49405 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 49406 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 49407 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
49408 | * ) ac_file_in=$ac_file.in ;; |
49409 | esac | |
49410 | ||
49411 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
49412 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
49413 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
49414 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
49415 | X"$ac_file" : 'X\(//\)$' \| \ | |
49416 | X"$ac_file" : 'X\(/\)' \| \ | |
49417 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
49418 | echo X"$ac_file" | |
49419 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
49420 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
49421 | /^X\(\/\/\)$/{ s//\1/; q; } | |
49422 | /^X\(\/\).*/{ s//\1/; q; } | |
49423 | s/.*/./; q'` | |
49424 | { if $as_mkdir_p; then | |
49425 | mkdir -p "$ac_dir" | |
49426 | else | |
49427 | as_dir="$ac_dir" | |
49428 | as_dirs= | |
49429 | while test ! -d "$as_dir"; do | |
49430 | as_dirs="$as_dir $as_dirs" | |
49431 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
49432 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
49433 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
49434 | X"$as_dir" : 'X\(//\)$' \| \ | |
49435 | X"$as_dir" : 'X\(/\)' \| \ | |
49436 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
49437 | echo X"$as_dir" | |
49438 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
49439 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
49440 | /^X\(\/\/\)$/{ s//\1/; q; } | |
49441 | /^X\(\/\).*/{ s//\1/; q; } | |
49442 | s/.*/./; q'` | |
49443 | done | |
49444 | test ! -n "$as_dirs" || mkdir $as_dirs | |
49445 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
49446 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
49447 | { (exit 1); exit 1; }; }; } | |
49448 | ||
49449 | ac_builddir=. | |
49450 | ||
49451 | if test "$ac_dir" != .; then | |
49452 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
49453 | # A "../" for each directory in $ac_dir_suffix. | |
49454 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
49455 | else | |
49456 | ac_dir_suffix= ac_top_builddir= | |
49457 | fi | |
49458 | ||
49459 | case $srcdir in | |
49460 | .) # No --srcdir option. We are building in place. | |
49461 | ac_srcdir=. | |
49462 | if test -z "$ac_top_builddir"; then | |
49463 | ac_top_srcdir=. | |
49464 | else | |
49465 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
49466 | fi ;; | |
49467 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
49468 | ac_srcdir=$srcdir$ac_dir_suffix; | |
49469 | ac_top_srcdir=$srcdir ;; | |
49470 | *) # Relative path. | |
49471 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
49472 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
49473 | esac | |
ac1cb8d3 VS |
49474 | |
49475 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
49476 | # the directories may not exist. | |
49477 | case `pwd` in | |
49478 | .) ac_abs_builddir="$ac_dir";; | |
49479 | *) | |
49480 | case "$ac_dir" in | |
49481 | .) ac_abs_builddir=`pwd`;; | |
49482 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
49483 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
49484 | esac;; | |
49485 | esac | |
49486 | case $ac_abs_builddir in | |
49487 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
49488 | *) | |
49489 | case ${ac_top_builddir}. in | |
49490 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
49491 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
49492 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
49493 | esac;; | |
49494 | esac | |
49495 | case $ac_abs_builddir in | |
49496 | .) ac_abs_srcdir=$ac_srcdir;; | |
49497 | *) | |
49498 | case $ac_srcdir in | |
49499 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
49500 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
49501 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
49502 | esac;; | |
49503 | esac | |
49504 | case $ac_abs_builddir in | |
49505 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
49506 | *) | |
49507 | case $ac_top_srcdir in | |
49508 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
49509 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
49510 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
49511 | esac;; | |
49512 | esac | |
a848cd7e SC |
49513 | |
49514 | ||
49515 | case $INSTALL in | |
49516 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
49517 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
49518 | esac | |
49519 | ||
3565d135 RR |
49520 | if test x"$ac_file" != x-; then |
49521 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
49522 | echo "$as_me: creating $ac_file" >&6;} | |
49523 | rm -f "$ac_file" | |
49524 | fi | |
a848cd7e SC |
49525 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
49526 | # use $as_me), people would be surprised to read: | |
49527 | # /* config.h. Generated by config.status. */ | |
49528 | if test x"$ac_file" = x-; then | |
49529 | configure_input= | |
49530 | else | |
49531 | configure_input="$ac_file. " | |
49532 | fi | |
49533 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
ac1cb8d3 | 49534 | sed 's,.*/,,'` by configure." |
a848cd7e SC |
49535 | |
49536 | # First look for the input files in the build tree, otherwise in the | |
49537 | # src tree. | |
49538 | ac_file_inputs=`IFS=: | |
49539 | for f in $ac_file_in; do | |
49540 | case $f in | |
49541 | -) echo $tmp/stdin ;; | |
49542 | [\\/$]*) | |
ac1cb8d3 VS |
49543 | # Absolute (can't be DOS-style, as IFS=:) |
49544 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
49545 | echo "$as_me: error: cannot find input file: $f" >&2;} |
49546 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 49547 | echo "$f";; |
a848cd7e | 49548 | *) # Relative |
ac1cb8d3 VS |
49549 | if test -f "$f"; then |
49550 | # Build tree | |
49551 | echo "$f" | |
49552 | elif test -f "$srcdir/$f"; then | |
49553 | # Source tree | |
49554 | echo "$srcdir/$f" | |
49555 | else | |
49556 | # /dev/null tree | |
49557 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
49558 | echo "$as_me: error: cannot find input file: $f" >&2;} |
49559 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 49560 | fi;; |
a848cd7e SC |
49561 | esac |
49562 | done` || { (exit 1); exit 1; } | |
49563 | _ACEOF | |
49564 | cat >>$CONFIG_STATUS <<_ACEOF | |
49565 | sed "$ac_vpsub | |
49566 | $extrasub | |
49567 | _ACEOF | |
49568 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49569 | :t | |
49570 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
49571 | s,@configure_input@,$configure_input,;t t | |
49572 | s,@srcdir@,$ac_srcdir,;t t | |
49573 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
49574 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
49575 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
49576 | s,@builddir@,$ac_builddir,;t t | |
49577 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
49578 | s,@top_builddir@,$ac_top_builddir,;t t | |
49579 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
49580 | s,@INSTALL@,$ac_INSTALL,;t t | |
49581 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
49582 | rm -f $tmp/stdin | |
49583 | if test x"$ac_file" != x-; then | |
49584 | mv $tmp/out $ac_file | |
49585 | else | |
49586 | cat $tmp/out | |
49587 | rm -f $tmp/out | |
49588 | fi | |
49589 | ||
ceec2216 RL |
49590 | # Run the commands associated with the file. |
49591 | case $ac_file in | |
49592 | lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;; | |
49593 | lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;; | |
49594 | esac | |
a848cd7e SC |
49595 | done |
49596 | _ACEOF | |
49597 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49598 | ||
49599 | # | |
49600 | # CONFIG_HEADER section. | |
49601 | # | |
49602 | ||
49603 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
49604 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
49605 | # | |
49606 | # ac_d sets the value in "#define NAME VALUE" lines. | |
ac1cb8d3 VS |
49607 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
49608 | ac_dB='[ ].*$,\1#\2' | |
a848cd7e SC |
49609 | ac_dC=' ' |
49610 | ac_dD=',;t' | |
49611 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
ac1cb8d3 | 49612 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
a848cd7e SC |
49613 | ac_uB='$,\1#\2define\3' |
49614 | ac_uC=' ' | |
49615 | ac_uD=',;t' | |
49616 | ||
49617 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
49618 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
49619 | case $ac_file in | |
49620 | - | *:- | *:-:* ) # input from stdin | |
ac1cb8d3 VS |
49621 | cat >$tmp/stdin |
49622 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
49623 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 49624 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
ac1cb8d3 | 49625 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
49626 | * ) ac_file_in=$ac_file.in ;; |
49627 | esac | |
49628 | ||
49629 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
49630 | echo "$as_me: creating $ac_file" >&6;} | |
49631 | ||
49632 | # First look for the input files in the build tree, otherwise in the | |
49633 | # src tree. | |
49634 | ac_file_inputs=`IFS=: | |
49635 | for f in $ac_file_in; do | |
49636 | case $f in | |
49637 | -) echo $tmp/stdin ;; | |
49638 | [\\/$]*) | |
ac1cb8d3 VS |
49639 | # Absolute (can't be DOS-style, as IFS=:) |
49640 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
49641 | echo "$as_me: error: cannot find input file: $f" >&2;} |
49642 | { (exit 1); exit 1; }; } | |
ac1cb8d3 VS |
49643 | # Do quote $f, to prevent DOS paths from being IFS'd. |
49644 | echo "$f";; | |
a848cd7e | 49645 | *) # Relative |
ac1cb8d3 VS |
49646 | if test -f "$f"; then |
49647 | # Build tree | |
49648 | echo "$f" | |
49649 | elif test -f "$srcdir/$f"; then | |
49650 | # Source tree | |
49651 | echo "$srcdir/$f" | |
49652 | else | |
49653 | # /dev/null tree | |
49654 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
49655 | echo "$as_me: error: cannot find input file: $f" >&2;} |
49656 | { (exit 1); exit 1; }; } | |
ac1cb8d3 | 49657 | fi;; |
a848cd7e SC |
49658 | esac |
49659 | done` || { (exit 1); exit 1; } | |
49660 | # Remove the trailing spaces. | |
ac1cb8d3 | 49661 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
a848cd7e SC |
49662 | |
49663 | _ACEOF | |
49664 | ||
49665 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
49666 | # `conftest.undefs', that substitutes the proper values into | |
49667 | # config.h.in to produce config.h. The first handles `#define' | |
49668 | # templates, and the second `#undef' templates. | |
49669 | # And first: Protect against being on the right side of a sed subst in | |
49670 | # config.status. Protect against being in an unquoted here document | |
49671 | # in config.status. | |
49672 | rm -f conftest.defines conftest.undefs | |
49673 | # Using a here document instead of a string reduces the quoting nightmare. | |
49674 | # Putting comments in sed scripts is not portable. | |
49675 | # | |
49676 | # `end' is used to avoid that the second main sed command (meant for | |
49677 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
49678 | # See the Autoconf documentation for `clear'. | |
49679 | cat >confdef2sed.sed <<\_ACEOF | |
49680 | s/[\\&,]/\\&/g | |
49681 | s,[\\$`],\\&,g | |
49682 | t clear | |
49683 | : clear | |
ac1cb8d3 | 49684 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
a848cd7e | 49685 | t end |
ac1cb8d3 | 49686 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
a848cd7e SC |
49687 | : end |
49688 | _ACEOF | |
49689 | # If some macros were called several times there might be several times | |
49690 | # the same #defines, which is useless. Nevertheless, we may not want to | |
49691 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
49692 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
49693 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
49694 | rm -f confdef2sed.sed | |
49695 | ||
49696 | # This sed command replaces #undef with comments. This is necessary, for | |
49697 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
49698 | # on some systems where configure will not decide to define it. | |
49699 | cat >>conftest.undefs <<\_ACEOF | |
ac1cb8d3 | 49700 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
a848cd7e SC |
49701 | _ACEOF |
49702 | ||
49703 | # Break up conftest.defines because some shells have a limit on the size | |
49704 | # of here documents, and old seds have small limits too (100 cmds). | |
49705 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
ac1cb8d3 | 49706 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
a848cd7e SC |
49707 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
49708 | echo ' :' >>$CONFIG_STATUS | |
49709 | rm -f conftest.tail | |
49710 | while grep . conftest.defines >/dev/null | |
49711 | do | |
49712 | # Write a limited-size here document to $tmp/defines.sed. | |
49713 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
49714 | # Speed up: don't consider the non `#define' lines. | |
ac1cb8d3 | 49715 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
a848cd7e SC |
49716 | # Work around the forget-to-reset-the-flag bug. |
49717 | echo 't clr' >>$CONFIG_STATUS | |
49718 | echo ': clr' >>$CONFIG_STATUS | |
49719 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
49720 | echo 'CEOF | |
49721 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
49722 | rm -f $tmp/in | |
49723 | mv $tmp/out $tmp/in | |
49724 | ' >>$CONFIG_STATUS | |
49725 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
49726 | rm -f conftest.defines | |
49727 | mv conftest.tail conftest.defines | |
49728 | done | |
49729 | rm -f conftest.defines | |
49730 | echo ' fi # grep' >>$CONFIG_STATUS | |
49731 | echo >>$CONFIG_STATUS | |
49732 | ||
49733 | # Break up conftest.undefs because some shells have a limit on the size | |
49734 | # of here documents, and old seds have small limits too (100 cmds). | |
49735 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
49736 | rm -f conftest.tail | |
49737 | while grep . conftest.undefs >/dev/null | |
49738 | do | |
49739 | # Write a limited-size here document to $tmp/undefs.sed. | |
49740 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
49741 | # Speed up: don't consider the non `#undef' | |
ac1cb8d3 | 49742 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
a848cd7e SC |
49743 | # Work around the forget-to-reset-the-flag bug. |
49744 | echo 't clr' >>$CONFIG_STATUS | |
49745 | echo ': clr' >>$CONFIG_STATUS | |
49746 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
49747 | echo 'CEOF | |
49748 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
49749 | rm -f $tmp/in | |
49750 | mv $tmp/out $tmp/in | |
49751 | ' >>$CONFIG_STATUS | |
49752 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
49753 | rm -f conftest.undefs | |
49754 | mv conftest.tail conftest.undefs | |
49755 | done | |
49756 | rm -f conftest.undefs | |
49757 | ||
49758 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49759 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
49760 | # use $as_me), people would be surprised to read: | |
49761 | # /* config.h. Generated by config.status. */ | |
49762 | if test x"$ac_file" = x-; then | |
49763 | echo "/* Generated by configure. */" >$tmp/config.h | |
49764 | else | |
49765 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
49766 | fi | |
49767 | cat $tmp/in >>$tmp/config.h | |
49768 | rm -f $tmp/in | |
49769 | if test x"$ac_file" != x-; then | |
49770 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
49771 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
49772 | echo "$as_me: $ac_file is unchanged" >&6;} | |
49773 | else | |
49774 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
49775 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
49776 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
49777 | X"$ac_file" : 'X\(//\)$' \| \ | |
49778 | X"$ac_file" : 'X\(/\)' \| \ | |
49779 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
49780 | echo X"$ac_file" | |
49781 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
49782 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
49783 | /^X\(\/\/\)$/{ s//\1/; q; } | |
49784 | /^X\(\/\).*/{ s//\1/; q; } | |
49785 | s/.*/./; q'` | |
49786 | { if $as_mkdir_p; then | |
49787 | mkdir -p "$ac_dir" | |
49788 | else | |
49789 | as_dir="$ac_dir" | |
49790 | as_dirs= | |
49791 | while test ! -d "$as_dir"; do | |
49792 | as_dirs="$as_dir $as_dirs" | |
49793 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
49794 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
49795 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
49796 | X"$as_dir" : 'X\(//\)$' \| \ | |
49797 | X"$as_dir" : 'X\(/\)' \| \ | |
49798 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
49799 | echo X"$as_dir" | |
49800 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
49801 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
49802 | /^X\(\/\/\)$/{ s//\1/; q; } | |
49803 | /^X\(\/\).*/{ s//\1/; q; } | |
49804 | s/.*/./; q'` | |
49805 | done | |
49806 | test ! -n "$as_dirs" || mkdir $as_dirs | |
49807 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
49808 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
49809 | { (exit 1); exit 1; }; }; } | |
49810 | ||
49811 | rm -f $ac_file | |
49812 | mv $tmp/config.h $ac_file | |
49813 | fi | |
49814 | else | |
49815 | cat $tmp/config.h | |
49816 | rm -f $tmp/config.h | |
49817 | fi | |
49818 | done | |
49819 | _ACEOF | |
49820 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49821 | ||
49822 | # | |
49823 | # CONFIG_COMMANDS section. | |
49824 | # | |
49825 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
49826 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
49827 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
49828 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
49829 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
49830 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
49831 | X"$ac_dest" : 'X\(//\)$' \| \ | |
49832 | X"$ac_dest" : 'X\(/\)' \| \ | |
49833 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
49834 | echo X"$ac_dest" | |
49835 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
49836 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
49837 | /^X\(\/\/\)$/{ s//\1/; q; } | |
49838 | /^X\(\/\).*/{ s//\1/; q; } | |
49839 | s/.*/./; q'` | |
ac1cb8d3 VS |
49840 | { if $as_mkdir_p; then |
49841 | mkdir -p "$ac_dir" | |
49842 | else | |
49843 | as_dir="$ac_dir" | |
49844 | as_dirs= | |
49845 | while test ! -d "$as_dir"; do | |
49846 | as_dirs="$as_dir $as_dirs" | |
49847 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
49848 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
49849 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
49850 | X"$as_dir" : 'X\(//\)$' \| \ | |
49851 | X"$as_dir" : 'X\(/\)' \| \ | |
49852 | . : '\(.\)' 2>/dev/null || | |
49853 | echo X"$as_dir" | | |
49854 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
49855 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
49856 | /^X\(\/\/\)$/{ s//\1/; q; } | |
49857 | /^X\(\/\).*/{ s//\1/; q; } | |
49858 | s/.*/./; q'` | |
49859 | done | |
49860 | test ! -n "$as_dirs" || mkdir $as_dirs | |
49861 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
49862 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
49863 | { (exit 1); exit 1; }; }; } | |
49864 | ||
a848cd7e SC |
49865 | ac_builddir=. |
49866 | ||
49867 | if test "$ac_dir" != .; then | |
49868 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
49869 | # A "../" for each directory in $ac_dir_suffix. | |
49870 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
49871 | else | |
49872 | ac_dir_suffix= ac_top_builddir= | |
49873 | fi | |
49874 | ||
49875 | case $srcdir in | |
49876 | .) # No --srcdir option. We are building in place. | |
49877 | ac_srcdir=. | |
49878 | if test -z "$ac_top_builddir"; then | |
49879 | ac_top_srcdir=. | |
49880 | else | |
49881 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
49882 | fi ;; | |
49883 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
49884 | ac_srcdir=$srcdir$ac_dir_suffix; | |
49885 | ac_top_srcdir=$srcdir ;; | |
49886 | *) # Relative path. | |
49887 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
49888 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
49889 | esac | |
ac1cb8d3 VS |
49890 | |
49891 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
49892 | # the directories may not exist. | |
49893 | case `pwd` in | |
49894 | .) ac_abs_builddir="$ac_dir";; | |
49895 | *) | |
49896 | case "$ac_dir" in | |
49897 | .) ac_abs_builddir=`pwd`;; | |
49898 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
49899 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
49900 | esac;; | |
49901 | esac | |
49902 | case $ac_abs_builddir in | |
49903 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
49904 | *) | |
49905 | case ${ac_top_builddir}. in | |
49906 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
49907 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
49908 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
49909 | esac;; | |
49910 | esac | |
49911 | case $ac_abs_builddir in | |
49912 | .) ac_abs_srcdir=$ac_srcdir;; | |
49913 | *) | |
49914 | case $ac_srcdir in | |
49915 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
49916 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
49917 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
49918 | esac;; | |
49919 | esac | |
49920 | case $ac_abs_builddir in | |
49921 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
49922 | *) | |
49923 | case $ac_top_srcdir in | |
49924 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
49925 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
49926 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
49927 | esac;; | |
49928 | esac | |
a848cd7e SC |
49929 | |
49930 | ||
49931 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
49932 | echo "$as_me: executing $ac_dest commands" >&6;} | |
49933 | case $ac_dest in | |
5c60e845 MW |
49934 | rcdefs.h ) |
49935 | mkdir -p $outdir && | |
49936 | $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h | |
49937 | ;; | |
ceec2216 RL |
49938 | wx-config ) rm -f wx-config |
49939 | ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config | |
49940 | ;; | |
a848cd7e SC |
49941 | esac |
49942 | done | |
49943 | _ACEOF | |
49944 | ||
49945 | cat >>$CONFIG_STATUS <<\_ACEOF | |
49946 | ||
49947 | { (exit 0); exit 0; } | |
49948 | _ACEOF | |
49949 | chmod +x $CONFIG_STATUS | |
49950 | ac_clean_files=$ac_clean_files_save | |
49951 | ||
49952 | ||
49953 | # configure is writing to config.log, and then calls config.status. | |
49954 | # config.status does its own redirection, appending to config.log. | |
49955 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
49956 | # by configure, so config.status won't be able to write to it; its | |
49957 | # output is simply discarded. So we exec the FD to /dev/null, | |
49958 | # effectively closing config.log, so it can be properly (re)opened and | |
49959 | # appended to by config.status. When coming back to configure, we | |
49960 | # need to make the FD available again. | |
49961 | if test "$no_create" != yes; then | |
49962 | ac_cs_success=: | |
49963 | ac_config_status_args= | |
49964 | test "$silent" = yes && | |
49965 | ac_config_status_args="$ac_config_status_args --quiet" | |
49966 | exec 5>/dev/null | |
49967 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
49968 | exec 5>>config.log | |
49969 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
49970 | # would make configure fail if this is the last instruction. | |
49971 | $ac_cs_success || { (exit 1); exit 1; } | |
49972 | fi | |
49973 | ||
49974 | # | |
49975 | # CONFIG_SUBDIRS section. | |
49976 | # | |
49977 | if test "$no_recursion" != yes; then | |
49978 | ||
49979 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
49980 | ac_sub_configure_args= | |
49981 | ac_prev= | |
49982 | for ac_arg in $ac_configure_args; do | |
49983 | if test -n "$ac_prev"; then | |
49984 | ac_prev= | |
49985 | continue | |
49986 | fi | |
49987 | case $ac_arg in | |
49988 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
49989 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
49990 | ac_prev=cache_file ;; | |
49991 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
49992 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
49993 | | --c=*) | |
49994 | ;; | |
49995 | --config-cache | -C) | |
49996 | ;; | |
49997 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
49998 | ac_prev=srcdir ;; | |
49999 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
50000 | ;; | |
50001 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
50002 | ac_prev=prefix ;; | |
50003 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
50004 | ;; | |
50005 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
50006 | esac | |
50007 | done | |
50008 | ||
50009 | # Always prepend --prefix to ensure using the same prefix | |
50010 | # in subdir configurations. | |
50011 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
50012 | ||
50013 | ac_popdir=`pwd` | |
50014 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
50015 | ||
50016 | # Do not complain, so a configure script can configure whichever | |
50017 | # parts of a large source tree are present. | |
50018 | test -d $srcdir/$ac_dir || continue | |
50019 | ||
50020 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
50021 | echo "$as_me: configuring in $ac_dir" >&6;} | |
50022 | { if $as_mkdir_p; then | |
50023 | mkdir -p "$ac_dir" | |
50024 | else | |
50025 | as_dir="$ac_dir" | |
50026 | as_dirs= | |
50027 | while test ! -d "$as_dir"; do | |
50028 | as_dirs="$as_dir $as_dirs" | |
50029 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
50030 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ac1cb8d3 VS |
50031 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
50032 | X"$as_dir" : 'X\(//\)$' \| \ | |
50033 | X"$as_dir" : 'X\(/\)' \| \ | |
50034 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
50035 | echo X"$as_dir" | |
50036 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
50037 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
50038 | /^X\(\/\/\)$/{ s//\1/; q; } | |
50039 | /^X\(\/\).*/{ s//\1/; q; } | |
50040 | s/.*/./; q'` | |
50041 | done | |
50042 | test ! -n "$as_dirs" || mkdir $as_dirs | |
50043 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
50044 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
50045 | { (exit 1); exit 1; }; }; } | |
50046 | ||
50047 | ac_builddir=. | |
50048 | ||
50049 | if test "$ac_dir" != .; then | |
50050 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
50051 | # A "../" for each directory in $ac_dir_suffix. | |
50052 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
50053 | else | |
50054 | ac_dir_suffix= ac_top_builddir= | |
50055 | fi | |
50056 | ||
50057 | case $srcdir in | |
50058 | .) # No --srcdir option. We are building in place. | |
50059 | ac_srcdir=. | |
50060 | if test -z "$ac_top_builddir"; then | |
50061 | ac_top_srcdir=. | |
50062 | else | |
50063 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
50064 | fi ;; | |
50065 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
50066 | ac_srcdir=$srcdir$ac_dir_suffix; | |
50067 | ac_top_srcdir=$srcdir ;; | |
50068 | *) # Relative path. | |
50069 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
50070 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
50071 | esac | |
ac1cb8d3 VS |
50072 | |
50073 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
50074 | # the directories may not exist. | |
50075 | case `pwd` in | |
50076 | .) ac_abs_builddir="$ac_dir";; | |
50077 | *) | |
50078 | case "$ac_dir" in | |
50079 | .) ac_abs_builddir=`pwd`;; | |
50080 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
50081 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
50082 | esac;; | |
50083 | esac | |
50084 | case $ac_abs_builddir in | |
50085 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
50086 | *) | |
50087 | case ${ac_top_builddir}. in | |
50088 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
50089 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
50090 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
50091 | esac;; | |
50092 | esac | |
50093 | case $ac_abs_builddir in | |
50094 | .) ac_abs_srcdir=$ac_srcdir;; | |
50095 | *) | |
50096 | case $ac_srcdir in | |
50097 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
50098 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
50099 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
50100 | esac;; | |
50101 | esac | |
50102 | case $ac_abs_builddir in | |
50103 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
50104 | *) | |
50105 | case $ac_top_srcdir in | |
50106 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
50107 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
50108 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
50109 | esac;; | |
50110 | esac | |
a848cd7e SC |
50111 | |
50112 | ||
50113 | cd $ac_dir | |
50114 | ||
50115 | # Check for guested configure; otherwise get Cygnus style configure. | |
50116 | if test -f $ac_srcdir/configure.gnu; then | |
50117 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
50118 | elif test -f $ac_srcdir/configure; then | |
50119 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
50120 | elif test -f $ac_srcdir/configure.in; then | |
50121 | ac_sub_configure=$ac_configure | |
50122 | else | |
50123 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
50124 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
50125 | ac_sub_configure= | |
50126 | fi | |
50127 | ||
50128 | # The recursion is here. | |
50129 | if test -n "$ac_sub_configure"; then | |
50130 | # Make the cache file name correct relative to the subdirectory. | |
50131 | case $cache_file in | |
50132 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
50133 | *) # Relative path. | |
ac1cb8d3 | 50134 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
a848cd7e SC |
50135 | esac |
50136 | ||
50137 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
50138 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
50139 | # The eval makes quoting arguments work. | |
50140 | eval $ac_sub_configure $ac_sub_configure_args \ | |
ac1cb8d3 VS |
50141 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
50142 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
a848cd7e SC |
50143 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
50144 | { (exit 1); exit 1; }; } | |
50145 | fi | |
50146 | ||
3565d135 | 50147 | cd $ac_popdir |
a848cd7e SC |
50148 | done |
50149 | fi | |
50150 | ||
50151 | ||
50152 | echo | |
77ffb593 | 50153 | echo "Configured wxWidgets ${WX_VERSION} for \`${host}'" |
a848cd7e | 50154 | echo "" |
4d4ff94c | 50155 | echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}" |
77ffb593 | 50156 | echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
a848cd7e | 50157 | |
77ffb593 JS |
50158 | echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}" |
50159 | echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}" | |
50160 | echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
a848cd7e | 50161 | |
77ffb593 | 50162 | echo " What level of wxWidgets compatibility should be enabled?" |
dee1a63f MB |
50163 | echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}" |
50164 | echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}" | |
a848cd7e | 50165 | |
77ffb593 | 50166 | echo " Which libraries should wxWidgets use?" |
a848cd7e SC |
50167 | echo " jpeg ${wxUSE_LIBJPEG-none}" |
50168 | echo " png ${wxUSE_LIBPNG-none}" | |
50169 | echo " regex ${wxUSE_REGEX}" | |
50170 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
50171 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then | |
50172 | echo " xpm ${wxUSE_LIBXPM-none}" | |
50173 | fi | |
50174 | echo " zlib ${wxUSE_ZLIB}" | |
50175 | echo " odbc ${wxUSE_ODBC}" | |
50176 | echo " expat ${wxUSE_EXPAT}" | |
50177 | echo " libmspack ${wxUSE_LIBMSPACK}" | |
50178 | echo " sdl ${wxUSE_LIBSDL}" | |
6d1ce868 | 50179 | echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}" |
3565d135 | 50180 | echo " hildon ${wxUSE_LIBHILDON-none}" |
a848cd7e SC |
50181 | |
50182 | echo "" | |
50183 |